claude-code-best 2.8.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/chunks/{AddWorkspaceDirectory-DRO4tbYd.js → AddWorkspaceDirectory-BCCbaWoh.js} +1 -1
- package/dist/chunks/{App-DJyiiVKi.js → App-BIAYUFvT.js} +1 -1
- package/dist/chunks/{ApproveApiKey-DygOEAkM.js → ApproveApiKey-DRARgWX3.js} +1 -1
- package/dist/chunks/ApproveApiKey-Do-Qth0X.js +1 -0
- package/dist/chunks/{AssistantSessionChooser-C67mOxVi.js → AssistantSessionChooser-eUrEGDlX.js} +1 -1
- package/dist/chunks/{BackgroundTasksDialog-Bqk_Cn3j.js → BackgroundTasksDialog-DSeAqhMC.js} +2 -2
- package/dist/chunks/{BypassPermissionsModeDialog-C4z7RkFV.js → BypassPermissionsModeDialog-8z7R5EpU.js} +1 -1
- package/dist/chunks/{ClaudeInChromeOnboarding-CyVFdjBe.js → ClaudeInChromeOnboarding-B7mDm5Hb.js} +1 -1
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-IpqqBuJs.js → ClaudeMdExternalIncludesDialog-DE9dpWtg.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DTZS-dek.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-UcQCmIWd.js +1 -0
- package/dist/chunks/{DesktopHandoff-CJpa8Xy-.js → DesktopHandoff-Ce0nE7D6.js} +1 -1
- package/dist/chunks/{DevChannelsDialog-CfAuHVRL.js → DevChannelsDialog-mt0lA5wR.js} +1 -1
- package/dist/chunks/Dialog-91X6ZGg9.js +1 -0
- package/dist/chunks/{DiffDialog-CV3brWsG.js → DiffDialog-BfSnz8L-.js} +2 -2
- package/dist/chunks/{Doctor-D3GysagF.js → Doctor-BOVjkAKn.js} +1 -1
- package/dist/chunks/Doctor-osWC5WVY.js +1 -0
- package/dist/chunks/{ExitFlow-L2sh80sm.js → ExitFlow-C3BGvwv-.js} +1 -1
- package/dist/chunks/{Feedback-DfkBCvva.js → Feedback-BtZb1A8b.js} +1 -1
- package/dist/chunks/Grove-DyC_Wrfx.js +1 -0
- package/dist/chunks/{Grove-Bo74aZx-.js → Grove-HpMLktXp.js} +1 -1
- package/dist/chunks/{HybridTransport-BItIDJyC.js → HybridTransport-COk7jAC7.js} +1 -1
- package/dist/chunks/{ITermBackend-3iS8Bvmo.js → ITermBackend-BlwyeN8U.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-6lPGcuOX.js → InvalidConfigDialog-QVIRDXwA.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-D8DwHiys.js → InvalidSettingsDialog-CZRZm0oa.js} +1 -1
- package/dist/chunks/ListItem-DCQhApdJ.js +1 -0
- package/dist/chunks/{MCPConnectionManager-CsPizxTx.js → MCPConnectionManager-2Fulnp8q.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-Cepe7RPZ.js → McpParsingWarnings-DWMO0bV6.js} +1 -1
- package/dist/chunks/{MessageSelector-BzUQUeDn.js → MessageSelector-B4jJQ-KQ.js} +2 -2
- package/dist/chunks/Messages-ltcn1Qkf.js +11 -0
- package/dist/chunks/{Onboarding-BZUXID6q.js → Onboarding-CHcND5Tt.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-Dhm7HBuD.js → OverageCreditUpsell-CMBqZrnz.js} +1 -1
- package/dist/chunks/{PermissionDialog-BrRBxx5o.js → PermissionDialog-R-Vl4Tk-.js} +1 -1
- package/dist/chunks/{PluginSettings-BZ-PX9Tg.js → PluginSettings-DIS_qrVA.js} +1 -1
- package/dist/chunks/{PressEnterToContinue-DtA_p3X6.js → PressEnterToContinue-BYdiZwYD.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-Da8Fty6P.js → PromptInputFooterSuggestions-DAFZfAT0.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-Bz7EPzzq.js → PromptInputHelpMenu-CAwbW7z2.js} +1 -1
- package/dist/chunks/{QueryEngine-CmJK27jU.js → QueryEngine-BQs519Rb.js} +1 -1
- package/dist/chunks/REPL-DJh_wVWI.js +1 -0
- package/dist/chunks/{REPL-DxEJZpIp.js → REPL-Dx3SPe95.js} +13 -13
- package/dist/chunks/{RemoteCallout-DONJj8l2.js → RemoteCallout-CwI1mLQ9.js} +1 -1
- package/dist/chunks/{RemoteSessionManager-BvvNspY8.js → RemoteSessionManager-BXMBhfQD.js} +1 -1
- package/dist/chunks/{ResumeConversation-EpjJdFHu.js → ResumeConversation-BK7L_YBI.js} +1 -1
- package/dist/chunks/{SSETransport-D51Jfdaj.js → SSETransport-Co-0nMlR.js} +1 -1
- package/dist/chunks/SearchBox-Bu4gYF0J.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-DVi-ggud.js +1 -0
- package/dist/chunks/SentryErrorBoundary-DLML64E_.js +1 -0
- package/dist/chunks/{SentryErrorBoundary-nYTimi4l.js → SentryErrorBoundary-kEgE7qeH.js} +1 -1
- package/dist/chunks/{Settings-C2vEJjLx.js → Settings-DOve7mW1.js} +2 -2
- package/dist/chunks/{TeleportProgress--jgrqIfW.js → TeleportProgress--n-u7MYY.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-BKDaFT_L.js → TeleportRepoMismatchDialog-CzQzdYb2.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-CxlpiHIz.js → TeleportResumeWrapper-CtANoO1Z.js} +1 -1
- package/dist/chunks/{ThemePicker-CYL4C-F-.js → ThemePicker-kBt6obJb.js} +1 -1
- package/dist/chunks/{TmuxBackend-C_N4ww8i.js → TmuxBackend-Q5xdOkW4.js} +1 -1
- package/dist/chunks/{TrustDialog-CYdftZ1M.js → TrustDialog-CoCFqyRD.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-CaTwOP3f.js → ValidationErrorsList-CL42YlaS.js} +1 -1
- package/dist/chunks/{WelcomeV2-5rgKm4Mz.js → WelcomeV2-B0d9sH1c.js} +1 -1
- package/dist/chunks/{WindowsTerminalBackend-BzoSs0VA.js → WindowsTerminalBackend-CLSeqqHh.js} +1 -1
- package/dist/chunks/{add-dir-RNzFR3XZ.js → add-dir-IrADCHV-.js} +1 -1
- package/dist/chunks/{agentDisplay-DgeOQY1E.js → agentDisplay-BUXpQhYh.js} +1 -1
- package/dist/chunks/{agents-iMtFurok.js → agents-BqQtaTaM.js} +1 -1
- package/dist/chunks/{agents-D7cgzb3f.js → agents-Cx0f6suK.js} +1 -1
- package/dist/chunks/{ant-CF1iRpXD.js → ant-BUkS8Em4.js} +1 -1
- package/dist/chunks/api-CoBZPEi-.js +1 -0
- package/dist/chunks/{api-DMbWqJlK.js → api-Cy1N7XAQ.js} +1 -1
- package/dist/chunks/{artifacts-D2kY_AMp.js → artifacts-DH8c2yG0.js} +1 -1
- package/dist/chunks/assistant-B2_c5C4T.js +1 -0
- package/dist/chunks/{assistant-CZ4VXgzH.js → assistant-BGzd9a5x.js} +1 -1
- package/dist/chunks/{assistant-JAqAZqaE.js → assistant-C3dP-BSJ.js} +1 -1
- package/dist/chunks/auth-CRVuUNwf.js +1 -0
- package/dist/chunks/{auth-BemPA3ot.js → auth-DVtMm7Hj.js} +1 -1
- package/dist/chunks/{autoMode-CGovMAzJ.js → autoMode-ThlM20qr.js} +1 -1
- package/dist/chunks/{autonomy-BVXyNEj0.js → autonomy-B637YdCF.js} +1 -1
- package/dist/chunks/{autonomy-BnAHLZWH.js → autonomy-B_vxYZbV.js} +1 -1
- package/dist/chunks/{autonomyPanel-COMI2iR0.js → autonomyPanel-BM2VhTsn.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-BWAfdRVf.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-BRtG20l2.js → backgroundHousekeeping-Cll7XHG1.js} +2 -2
- package/dist/chunks/{banner-D_rqe2XQ.js → banner-DUL-7A0b.js} +1 -1
- package/dist/chunks/{branch-BnKwIQtC.js → branch-BlH5WYNu.js} +1 -1
- package/dist/chunks/{break-cache-CDzQDHwY.js → break-cache-DjCRzxDv.js} +1 -1
- package/dist/chunks/{bridge-ChVjEHVq.js → bridge-QRFJRzVG.js} +2 -2
- package/dist/chunks/{bridgeConfig-e0MGfed6.js → bridgeConfig-Di9LziJ3.js} +1 -1
- package/dist/chunks/bridgeConfig-pVTHa_ED.js +1 -0
- package/dist/chunks/bridgeEnabled-c_BeJX3S.js +1 -0
- package/dist/chunks/{bridgeEnabled-DR-v8AXw.js → bridgeEnabled-z1fPRzzV.js} +1 -1
- package/dist/chunks/bridgeMain-CHk_DCxy.js +1 -0
- package/dist/chunks/{bridgeMain-OsR-_PRp.js → bridgeMain-DVoobI7G.js} +11 -11
- package/dist/chunks/{bridgeMessaging-BvBnxgD4.js → bridgeMessaging-BG8fNZac.js} +1 -1
- package/dist/chunks/{btw-_b16RGoh.js → btw-DpeWZQbf.js} +1 -1
- package/dist/chunks/{buddy-DJ3QSQyd.js → buddy-Bni2g0Km.js} +1 -1
- package/dist/chunks/{bypassPermissionsKillswitch-OhGSWZrB.js → bypassPermissionsKillswitch-7e56Rquc.js} +1 -1
- package/dist/chunks/caches-3byHT6VF.js +1 -0
- package/dist/chunks/{caches-Bp4F7tZ5.js → caches-CzEBsMvP.js} +2 -2
- package/dist/chunks/{ccrClient-D7pEGzQa.js → ccrClient-iR6zwGb1.js} +1 -1
- package/dist/chunks/changeDetector-Cg75mKOu.js +1 -0
- package/dist/chunks/channelNotification-BSmZprUZ.js +1 -0
- package/dist/chunks/{channelNotification-BZFMAWln.js → channelNotification-CSmLgwtO.js} +1 -1
- package/dist/chunks/{chrome-B5IxDA16.js → chrome-BO1vbvZ0.js} +1 -1
- package/dist/chunks/clear-CTOCrXv_.js +1 -0
- package/dist/chunks/client-BgdjJNnC.js +1 -0
- package/dist/chunks/{color-BYVWpzI8.js → color-BP4FmcMn.js} +1 -1
- package/dist/chunks/commands-CkfOhzGE.js +1 -0
- package/dist/chunks/commitAttribution-DKvggTZx.js +1 -0
- package/dist/chunks/{commitAttribution-ClSlXMPG.js → commitAttribution-Djh1ZpYH.js} +1 -1
- package/dist/chunks/{compact-B9c12JXf.js → compact-BtAvCkY0.js} +1 -1
- package/dist/chunks/{companion-C8e7dVlu.js → companion-C-jfFhlz.js} +1 -1
- package/dist/chunks/completionCache-BQgiR45Q.js +1 -0
- package/dist/chunks/{completionCache-Br6OwASx.js → completionCache-C7hDqIDL.js} +1 -1
- package/dist/chunks/{config-Bxgfx_nO.js → config-CloXpblh.js} +1 -1
- package/dist/chunks/{config-C-yz-f4W.js → config-DwsIX0hc.js} +1 -1
- package/dist/chunks/{context-Bf5t6C-a.js → context-DdwMoH4j.js} +1 -1
- package/dist/chunks/{context-noninteractive-CJu7hZCM.js → context-noninteractive-BWbEqad6.js} +13 -13
- package/dist/chunks/context-noninteractive-DNOyQYnM.js +1 -0
- package/dist/chunks/{conversation-BYMS5Hqa.js → conversation-DR4MFYYi.js} +1 -1
- package/dist/chunks/conversation-DVhyJA1O.js +1 -0
- package/dist/chunks/{copy-C0BZ7Gm0.js → copy-tl-41wwU.js} +1 -1
- package/dist/chunks/{createSSHSession-DNXCWneI.js → createSSHSession-B_IyqOll.js} +1 -1
- package/dist/chunks/createSession-CIM50iEU.js +1 -0
- package/dist/chunks/{createSession-DjM6Ev45.js → createSession-Csaqw8kb.js} +1 -1
- package/dist/chunks/{cronJitterConfig-CaFkPXKB.js → cronJitterConfig-2sHTXBLu.js} +1 -1
- package/dist/chunks/crossProjectResume-C1I0X__e.js +40 -0
- package/dist/chunks/{datadog-ClZjR-jM.js → datadog-BzkFYNcv.js} +1 -1
- package/dist/chunks/datadog-vQKKqB6Z.js +1 -0
- package/dist/chunks/desktop-oTXppB2O.js +1 -0
- package/dist/chunks/{diff-D9hjPq4W.js → diff-B23DUoT8.js} +1 -1
- package/dist/chunks/{doctor-4-im_J_h.js → doctor-o2MJvjAE.js} +1 -1
- package/dist/chunks/{effort-Bz-9GIpe.js → effort-B1X_S_oa.js} +1 -1
- package/dist/chunks/entry-BAXMpXJ0.js +14 -0
- package/dist/chunks/envLessBridgeConfig-Dj0umjOo.js +1 -0
- package/dist/chunks/{envLessBridgeConfig-DW4-nPbZ.js → envLessBridgeConfig-YNTOVEqU.js} +1 -1
- package/dist/chunks/{exit-DBNDTR4b.js → exit-CwGJifQF.js} +1 -1
- package/dist/chunks/{export-CQHUM_Nv.js → export-CqbYdFmJ.js} +1 -1
- package/dist/chunks/{exportRenderer-CuIDQBLH.js → exportRenderer-DP_z8YD1.js} +1 -1
- package/dist/chunks/extra-usage-1FUBiJOE.js +1 -0
- package/dist/chunks/{extra-usage-DTr6gExD.js → extra-usage-BQ5Z1wJb.js} +1 -1
- package/dist/chunks/{extra-usage-core-D3CwYO_8.js → extra-usage-core-B1oJoxYa.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-d-QVg1D5.js → extra-usage-noninteractive-BV_6cpdd.js} +1 -1
- package/dist/chunks/{extraUsage-BNRQOkgU.js → extraUsage-Ca_6qcke.js} +1 -1
- package/dist/chunks/extractMemories-B-yrLjpP.js +1 -0
- package/dist/chunks/{fast-bkGXbuHX.js → fast-BJMGfO_S.js} +1 -1
- package/dist/chunks/fast-CFtN26up.js +1 -0
- package/dist/chunks/{feedback-BvFgE_FF.js → feedback-O0Gushxg.js} +1 -1
- package/dist/chunks/{firstPartyEventLogger-D-ifHvWu.js → firstPartyEventLogger-0s2WJ6SR.js} +1 -1
- package/dist/chunks/{flushGate-BA24vFBg.js → flushGate-CLjpgnG6.js} +1 -1
- package/dist/chunks/{fpsMetrics-CBFlAGTS.js → fpsMetrics-DH78PzGr.js} +1 -1
- package/dist/chunks/gates-4fq2Ws2D.js +1 -0
- package/dist/chunks/{gates-C66Nz9b2.js → gates-C5y8P5t9.js} +1 -1
- package/dist/chunks/{gemini-DuQl4hTA.js → gemini-D6lfJRGH.js} +1 -1
- package/dist/chunks/{generateRecap-CwBU76xi.js → generateRecap-AYujRzfu.js} +1 -1
- package/dist/chunks/{generateSessionName-LnmjE9jh.js → generateSessionName-CXg1uVLN.js} +1 -1
- package/dist/chunks/{githubRepoPathMapping-DrreQj47.js → githubRepoPathMapping-CdjkMIX3.js} +1 -1
- package/dist/chunks/{goal-BIvjF6B7.js → goal-BGr-SlcA.js} +1 -1
- package/dist/chunks/{grok-KNLYSRBQ.js → grok-DxyRt4Jq.js} +1 -1
- package/dist/chunks/{growthbook-ksjGAskq.js → growthbook-D93ZmHUL.js} +1 -1
- package/dist/chunks/{heapdump-Cz8vkcOr.js → heapdump-DZz5qnZg.js} +1 -1
- package/dist/chunks/{help-Cx9OordP.js → help-C8HhaC70.js} +1 -1
- package/dist/chunks/hooks-CmW7bdtz.js +1 -0
- package/dist/chunks/{hooks-BW-d9Bdu.js → hooks-De2yBPig.js} +1 -1
- package/dist/chunks/{hostAdapter-DLmaB6eN.js → hostAdapter-CZdJUeS1.js} +1 -1
- package/dist/chunks/{ide-CECrIg1r.js → ide-GnSLasRI.js} +1 -1
- package/dist/chunks/{inboundAttachments-B0sGIu79.js → inboundAttachments-C8y3D5mp.js} +1 -1
- package/dist/chunks/inboundAttachments-DZiITyN8.js +1 -0
- package/dist/chunks/{initReplBridge-BAEMZEcg.js → initReplBridge-YGXqLbNZ.js} +1 -1
- package/dist/chunks/{insights-DeWggLxC.js → insights-23tyPxXV.js} +1 -1
- package/dist/chunks/{install-pxH_HR1p.js → install-BXi4d63r.js} +1 -1
- package/dist/chunks/{install-github-app-DqKEiHQ1.js → install-github-app-D2X7BgzJ.js} +1 -1
- package/dist/chunks/{install-slack-app-P1L9x-YI.js → install-slack-app-_J1t0kSP.js} +1 -1
- package/dist/chunks/{instrumentation-Dx0s2jzr.js → instrumentation-C9WDRy-K.js} +3 -3
- package/dist/chunks/{job-CbxxkPgE.js → job-DXX7dNN_.js} +1 -1
- package/dist/chunks/{keybindings-BBPC7FAc.js → keybindings-CChhkkE0.js} +1 -1
- package/dist/chunks/{lang-CKp0Tn76.js → lang-COIVItM_.js} +1 -1
- package/dist/chunks/language-CiMwEWO-.js +1 -0
- package/dist/chunks/{language-iERMuOEu.js → language-DzWvcLCu.js} +1 -1
- package/dist/chunks/{launchAgentsPlatform-DQvKVtl2.js → launchAgentsPlatform-Du_WvKeU.js} +1 -1
- package/dist/chunks/{launchAutofixPr-B7hu9C8h.js → launchAutofixPr-CypNniKH.js} +1 -1
- package/dist/chunks/{launchCommand-CJsikSlW.js → launchCommand-9eYsPG7W.js} +1 -1
- package/dist/chunks/{launchLocalMemory-Cpz7L5j5.js → launchLocalMemory-GkqB_Gcr.js} +1 -1
- package/dist/chunks/{launchLocalVault-XLfOQtP7.js → launchLocalVault-CBihJDzq.js} +1 -1
- package/dist/chunks/{launchMemoryStores-Cz04PaDE.js → launchMemoryStores-BkK0wwq0.js} +1 -1
- package/dist/chunks/{launchOnboarding-XPbUNdHS.js → launchOnboarding-BubTG5vY.js} +1 -1
- package/dist/chunks/{launchSchedule-B1VEe3o-.js → launchSchedule-CkV6Ai-0.js} +1 -1
- package/dist/chunks/{launchSkillStore-Cy59z5xx.js → launchSkillStore-DIrFg_WZ.js} +1 -1
- package/dist/chunks/{launchTeleport-ZPM_DvzK.js → launchTeleport-DFrgN9sU.js} +1 -1
- package/dist/chunks/{launchVault-BhnTOZq8.js → launchVault-CIiNsg91.js} +1 -1
- package/dist/chunks/loadAgentsDir-CjhNkoq0.js +1 -0
- package/dist/chunks/{loadAgentsDir-CQF8qhne.js → loadAgentsDir-DC4jN6-f.js} +777 -777
- package/dist/chunks/{loadPluginHooks-TyULD8KH.js → loadPluginHooks-DukITDP2.js} +1 -1
- package/dist/chunks/{localSearch-BNYypHsK.js → localSearch-But4wyLg.js} +1 -1
- package/dist/chunks/localSearch-D8FFon8N.js +1 -0
- package/dist/chunks/login-B3TV33p4.js +1 -0
- package/dist/chunks/{login-CxbcJk9_.js → login-ajsn1Sg7.js} +1 -1
- package/dist/chunks/{logoV2Utils-Br_w1z39.js → logoV2Utils-CpeUvaOM.js} +1 -1
- package/dist/chunks/logout-BqbTEPv9.js +1 -0
- package/dist/chunks/{magicDocs-DnxdS9yV.js → magicDocs-TF6U6QoB.js} +1 -1
- package/dist/chunks/{main-FBmdv32j.js → main-bjQRqaUr.js} +31 -31
- package/dist/chunks/mappers-Bg-xtimK.js +1 -0
- package/dist/chunks/{mcp-BhAGhDQE.js → mcp-DtHGTZUo.js} +1 -1
- package/dist/chunks/{mcp-esqdO_lV.js → mcp-Vj0ijoSq.js} +3 -3
- package/dist/chunks/{mcp-DbqUZ1Cf.js → mcp-i8lqdWTr.js} +1 -1
- package/dist/chunks/{mcpServer-DeL2ADSF.js → mcpServer-CuqaXxiJ.js} +1 -1
- package/dist/chunks/{mcpServer-Ct-GVL-y.js → mcpServer-Dr9UfcEd.js} +1 -1
- package/dist/chunks/{memory-DwapBEsD.js → memory-DVJxsbcO.js} +1 -1
- package/dist/chunks/{mobile-D7MSmMhc.js → mobile-DLGq6g08.js} +1 -1
- package/dist/chunks/{modalContext-DxfeT_3m.js → modalContext-CuTwi_eD.js} +1 -1
- package/dist/chunks/{mode-B5cmHCvz.js → mode-C9yWWppB.js} +1 -1
- package/dist/chunks/model-BYSyXf9-.js +1 -0
- package/dist/chunks/{model-BePO0VaC.js → model-Dq-13vaB.js} +1 -1
- package/dist/chunks/{onChangeAppState-B3d5iy6T.js → onChangeAppState-Cc4zOnqx.js} +1 -1
- package/dist/chunks/{openai-fRhGOIQq.js → openai-DMCGGZts.js} +1 -1
- package/dist/chunks/{overageCreditGrant-B6sx7IFi.js → overageCreditGrant-CzkWDmsQ.js} +1 -1
- package/dist/chunks/{panel-CAVG5BOM.js → panel-BY6q16am.js} +1 -1
- package/dist/chunks/{panel-DU8y_jcf.js → panel-BdRBXAv3.js} +1 -1
- package/dist/chunks/panelCall-D36EWzwF.js +1 -0
- package/dist/chunks/{passes-CWPPUigp.js → passes-CPAwB9_F.js} +1 -1
- package/dist/chunks/{paths-4ZWdjPP4.js → paths-CEAy4QCs.js} +3 -3
- package/dist/chunks/{permissions-DW8CRuJp.js → permissions-B39hfy0O.js} +1 -1
- package/dist/chunks/{pipeTransport-CUeYRWJn.js → pipeTransport-7auNUakO.js} +1 -1
- package/dist/chunks/{plan-Cf-tHvGq.js → plan-pCEs76NM.js} +1 -1
- package/dist/chunks/plugin-BSC-7wQh.js +1 -0
- package/dist/chunks/{pluginAutoupdate-CdmKzIRf.js → pluginAutoupdate-Cre72Rtf.js} +1 -1
- package/dist/chunks/{pluginBlocklist-C9XwbFSo.js → pluginBlocklist-D2Cj4TR2.js} +1 -1
- package/dist/chunks/{pluginCliCommands-CmY_maYg.js → pluginCliCommands-CTxmCPph.js} +1 -1
- package/dist/chunks/{pluginFlagging-DyzxZolj.js → pluginFlagging-C5EGcjZe.js} +1 -1
- package/dist/chunks/{pluginOperations-mr4I7Jw9.js → pluginOperations-DDI1CG0K.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-B6OdK29Z.js → pluginStartupCheck-B3QqfRt6.js} +1 -1
- package/dist/chunks/pluginStartupCheck-DYC8CWxw.js +1 -0
- package/dist/chunks/{plugins-rdPgpjF8.js → plugins-Bz7JxD43.js} +1 -1
- package/dist/chunks/policyLimits-C-oHygGe.js +1 -0
- package/dist/chunks/{pollConfig-DLbuHBse.js → pollConfig-CyO4Ycwc.js} +1 -1
- package/dist/chunks/{poor-pmz2b7zu.js → poor-eRoBwI0Z.js} +1 -1
- package/dist/chunks/{poorMode-DD-q_w6Z.js → poorMode-BdNsLBQ-.js} +1 -1
- package/dist/chunks/poorMode-D2-4vRxb.js +1 -0
- package/dist/chunks/{print-luaON-Cg.js → print-Ogibzjap.js} +4 -4
- package/dist/chunks/{privacy-settings-BpigC4oX.js → privacy-settings-Dd7PtKbY.js} +1 -1
- package/dist/chunks/{processBashCommand-f_84bSlP.js → processBashCommand-BjdUo_Na.js} +1 -1
- package/dist/chunks/{processSlashCommand-BkBqV3Jd.js → processSlashCommand-tetvMLMl.js} +1 -1
- package/dist/chunks/projectContext-2CzYVggO.js +1 -0
- package/dist/chunks/projectContext-CVk2Ix1r.js +1 -0
- package/dist/chunks/prompt-BHI7PZe4.js +227 -0
- package/dist/chunks/prompt-DZ1EAUlC.js +1 -0
- package/dist/chunks/prompt-DeRHlPn1.js +1 -0
- package/dist/chunks/{promptEditor-C___2FFs.js → promptEditor-DoJ-xPi4.js} +1 -1
- package/dist/chunks/{protocolHandler-qwll5gSY.js → protocolHandler-Dgzu5UWb.js} +1 -1
- package/dist/chunks/{rate-limit-options-nQcTipEp.js → rate-limit-options-B6QH2-xn.js} +1 -1
- package/dist/chunks/{rcDebugLog-DOXxIr8l.js → rcDebugLog-C0Bam8V9.js} +1 -1
- package/dist/chunks/{referral-CMPZjf3I.js → referral-B10JtHMk.js} +1 -1
- package/dist/chunks/{refresh-CP7Dnjp4.js → refresh-DmEsCaJ0.js} +1 -1
- package/dist/chunks/{registerProtocol-DCNuqdCC.js → registerProtocol-CQjmvg7a.js} +1 -1
- package/dist/chunks/{registry-DLqZJleQ.js → registry-CLaXh4Gk.js} +1 -1
- package/dist/chunks/{release-notes-BsDW6T9f.js → release-notes-dxng0ob_.js} +1 -1
- package/dist/chunks/{releaseNotes-Tbd018Qz.js → releaseNotes-CS5L5W0H.js} +2 -2
- package/dist/chunks/{reload-plugins-iG9ZE9wF.js → reload-plugins-CgzAjBDp.js} +1 -1
- package/dist/chunks/{remote-env-BFntnltf.js → remote-env-BasfU8Ra.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-Dpko9c-J.js → remoteBridgeCore-IJI5koHz.js} +1 -1
- package/dist/chunks/{remoteControlServer-D3P82kVF.js → remoteControlServer-BBCt7ySV.js} +1 -1
- package/dist/chunks/{rename-Codm2nfB.js → rename-eEdSZsJ2.js} +1 -1
- package/dist/chunks/{resume-BB1ceL_x.js → resume-DjnfattK.js} +1 -1
- package/dist/chunks/{runtimeObserver-D6aF77Dq.js → runtimeObserver-ByTBtmBf.js} +2 -2
- package/dist/chunks/{runtimeObserver-BpRn0RiL.js → runtimeObserver-COpkJmg-.js} +1 -1
- package/dist/chunks/sandbox-adapter-DagBhoTC.js +1 -0
- package/dist/chunks/{sandbox-toggle-DZ-8qXDS.js → sandbox-toggle-CQohaYND.js} +1 -1
- package/dist/chunks/searchExtraTools-kk-wV-cC.js +1 -0
- package/dist/chunks/{sentry-CVdHlmNQ.js → sentry-C0bQlih_.js} +1 -1
- package/dist/chunks/{session-B4j1ViVc.js → session-Dx_ODOHl.js} +1 -1
- package/dist/chunks/{sessionDiscovery-DkIIFsWX.js → sessionDiscovery-DAqs0Ra6.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-C-Ic-0Ry.js +1 -0
- package/dist/chunks/sessionMemory-BMtFup-Y.js +1 -0
- package/dist/chunks/{sessionMemory-CnT3-Mj7.js → sessionMemory-Bq3ECr1S.js} +1 -1
- package/dist/chunks/sessionMemoryUtils-BU7N_IQG.js +1 -0
- package/dist/chunks/sessionObserver-BwAfzGUg.js +1 -0
- package/dist/chunks/{sessionObserver-gjdJ91cv.js → sessionObserver-rd6RRTzc.js} +1 -1
- package/dist/chunks/sessionStorage-X2u45U9z.js +1 -0
- package/dist/chunks/{sessionTitle-CSU5-VK9.js → sessionTitle-1k_2BhFL.js} +1 -1
- package/dist/chunks/{sessionTracing-BDN64fWh.js → sessionTracing-DNSDPYdR.js} +1 -1
- package/dist/chunks/{settingsSync-Nixbcaox.js → settingsSync-3xG2A_wN.js} +1 -1
- package/dist/chunks/{setup-n3Ixr_gs.js → setup-C2V4elOv.js} +2 -2
- package/dist/chunks/{setup-CZxLEcQh.js → setup-CY808VaY.js} +1 -1
- package/dist/chunks/{setup-9nXlu56r.js → setup-Hlga8GJ_.js} +1 -1
- package/dist/chunks/{shadowedRuleDetection-CCS7R7F1.js → shadowedRuleDetection-BdBNo5eP.js} +1 -1
- package/dist/chunks/{sideQuestion-MzExGTvn.js → sideQuestion-DWOCUKMh.js} +1 -1
- package/dist/chunks/{sink-BL75jACh.js → sink-DCh0VJ4g.js} +1 -1
- package/dist/chunks/sink-nZmawD5W.js +1 -0
- package/dist/chunks/sinks-BTZnXPr_.js +1 -0
- package/dist/chunks/{sinks-C-gxj_Eu.js → sinks-_9T2oPB_.js} +2 -2
- package/dist/chunks/{skill-learning-B9Msm4jG.js → skill-learning-CzZFGFZO.js} +2 -2
- package/dist/chunks/{skillChangeDetector-DlWPJTny.js → skillChangeDetector-345QNWDp.js} +1 -1
- package/dist/chunks/{skillGapStore-CsADiV5a.js → skillGapStore-Bz_qbwI1.js} +2 -2
- package/dist/chunks/{skillGapStore-Cpmbwyo3.js → skillGapStore-DJm3SULe.js} +1 -1
- package/dist/chunks/{skillGenerator-_khb-Gmc.js → skillGenerator-BcNv-VZ5.js} +2 -2
- package/dist/chunks/skillLearning-BJAfTX2G.js +1 -0
- package/dist/chunks/skillLearning-DPhuKS4j.js +1 -0
- package/dist/chunks/{skillPanel-DQmj3Yh1.js → skillPanel-Q85P-Gg4.js} +3 -3
- package/dist/chunks/{skillSearchPanel-6w_zzoI3.js → skillSearchPanel-CMCQDAcX.js} +2 -2
- package/dist/chunks/{skills-B3LN9tp9.js → skills-D3eUg3HG.js} +1 -1
- package/dist/chunks/{sprites-8JVWnXzp.js → sprites-ChoMSqpa.js} +1 -1
- package/dist/chunks/{src-KjMLauwe.js → src-Di342QoJ.js} +1 -1
- package/dist/chunks/{src-BJM0zMNO.js → src-poaoYkuc.js} +1 -1
- package/dist/chunks/startupProfiler-CBcN1Chw.js +3 -0
- package/dist/chunks/startupProfiler-DtTgsdnI.js +1 -0
- package/dist/chunks/{staticRender-DboURbK0.js → staticRender-DKFIRhkH.js} +1 -1
- package/dist/chunks/{stats-BDlygx5X.js → stats-DdhEa_6-.js} +1 -1
- package/dist/chunks/status-CX7Kgn21.js +1 -0
- package/dist/chunks/{statusNoticeHelpers-Cd_LDPvn.js → statusNoticeHelpers-AibXOONm.js} +1 -1
- package/dist/chunks/{tag-BLPgXlQZ.js → tag-BJ_u3aJm.js} +1 -1
- package/dist/chunks/tasks-DeEWOchP.js +1 -0
- package/dist/chunks/teamHelpers-CxoQp7OY.js +1 -0
- package/dist/chunks/{teamHelpers-B-poMJeE.js → teamHelpers-WmWa_h3B.js} +1 -1
- package/dist/chunks/{teammateModeSnapshot-B1_3D1CQ.js → teammateModeSnapshot-DZ6ulELC.js} +1 -1
- package/dist/chunks/teammateModeSnapshot-KWxn1jxl.js +1 -0
- package/dist/chunks/{teleport-CSo3PT05.js → teleport-CuDXJj_f.js} +1 -1
- package/dist/chunks/{templateJobs-BVebX2BK.js → templateJobs-nFBp68za.js} +1 -1
- package/dist/chunks/{terminalSetup-DZTEKKne.js → terminalSetup-BORjK3qH.js} +1 -1
- package/dist/chunks/{terminalSetup-DHWL0gnz.js → terminalSetup-DULcnnWe.js} +1 -1
- package/dist/chunks/{theme-BHQSNwSe.js → theme-Bf2QD0ja.js} +1 -1
- package/dist/chunks/thinkback-C1nnGg5r.js +1 -0
- package/dist/chunks/{thinkback-DOzxcgMy.js → thinkback-DZEhr3Ii.js} +1 -1
- package/dist/chunks/{thinkback-play-CK1C_F7G.js → thinkback-play-BtEBESXM.js} +1 -1
- package/dist/chunks/{toolEventObserver-XPorjjtG.js → toolEventObserver-CNZy5TpN.js} +1 -1
- package/dist/chunks/{toolEventObserver-BIjUIh4k.js → toolEventObserver-DMdrez6V.js} +1 -1
- package/dist/chunks/toolPool-DDj2TbY6.js +1 -0
- package/dist/chunks/{toolPool-hQlvQn-j.js → toolPool-DHQyHmDY.js} +1 -1
- package/dist/chunks/{trustedDevice-D-L5uAor.js → trustedDevice-DWb5CPB_.js} +1 -1
- package/dist/chunks/{trustedDevice-CyfQd_GU.js → trustedDevice-Dw2crViN.js} +1 -1
- package/dist/chunks/{tui-C7aBeORE.js → tui-DcXIK0fP.js} +1 -1
- package/dist/chunks/{ultrareviewCommand-rnMsUWTn.js → ultrareviewCommand-BfN25zni.js} +1 -1
- package/dist/chunks/undercover-DSp7SB7e.js +1 -0
- package/dist/chunks/{undercover-ClLYK52H.js → undercover-rcR56jZx.js} +1 -1
- package/dist/chunks/{updateCCB-pqkACWbs.js → updateCCB-DlTAqQJq.js} +1 -1
- package/dist/chunks/{upgrade-DpfZlPyC.js → upgrade-ClLcX7zy.js} +1 -1
- package/dist/chunks/upgrade-kf1QWUo7.js +1 -0
- package/dist/chunks/{upload-D98tqZnO.js → upload-BqEzK59v.js} +1 -1
- package/dist/chunks/{usage-CRquq5_O.js → usage-BgKDh8pQ.js} +1 -1
- package/dist/chunks/{usage-BWd5R6DU.js → usage-DW-akzSR.js} +1 -1
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-Dkcp6EkA.js → useExitOnCtrlCDWithKeybindings-BHi41Ku_.js} +1 -1
- package/dist/chunks/useKeybinding-DPOUuymz.js +1 -0
- package/dist/chunks/useMainLoopModel-BTpZ8k3k.js +1 -0
- package/dist/chunks/{useManagePlugins-DMY74XAk.js → useManagePlugins-z0qezP5r.js} +1 -1
- package/dist/chunks/{useMergedTools-NN58Kguw.js → useMergedTools-B78rAreW.js} +1 -1
- package/dist/chunks/{useSearchInput-CodP_5SB.js → useSearchInput-CwxF3CHN.js} +1 -1
- package/dist/chunks/{useSettingsErrors-BRxaYl6B.js → useSettingsErrors-CjDaon07.js} +1 -1
- package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
- package/dist/chunks/{useVoice-ByU-q_w4.js → useVoice-X5WSnyed.js} +1 -1
- package/dist/chunks/{util-SpgBY5_I.js → util-CP-_gsEO.js} +1 -1
- package/dist/chunks/utils-CULcnflj.js +1 -0
- package/dist/chunks/{validatePlugin-CxCXNV8o.js → validatePlugin-DUuaprqR.js} +1 -1
- package/dist/chunks/{vim-ByXlYzf9.js → vim-BfmsdxOa.js} +1 -1
- package/dist/chunks/{voice-BnLS_SdQ.js → voice-B3GIfFlB.js} +1 -1
- package/dist/chunks/voiceModeEnabled-BrA5ZhH4.js +1 -0
- package/dist/chunks/{voiceModeEnabled-D070o6QK.js → voiceModeEnabled-C1Q9j5q6.js} +1 -1
- package/dist/chunks/{voiceStreamSTT-vkQ-Aop7.js → voiceStreamSTT-BguyxdrW.js} +1 -1
- package/dist/chunks/voiceStreamSTT-Dmp7Vm1S.js +1 -0
- package/dist/chunks/{web-tools-1yM0ZBfA.js → web-tools-qf_VwWRn.js} +1 -1
- package/dist/chunks/{workerRegistry-7xGv_sNB.js → workerRegistry-SbiLJIsG.js} +1 -1
- package/dist/chunks/worktree-Djga1wtm.js +1 -0
- package/dist/chunks/{xml-BUaEXGXx.js → xml-D7-jJqSA.js} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-oTZKoMvB.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-5FCT81WS.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-BmGziW64.js +0 -1
- package/dist/chunks/Dialog-C8eGKH-e.js +0 -1
- package/dist/chunks/Doctor-DohPtIKu.js +0 -1
- package/dist/chunks/Grove-C_ocvHd3.js +0 -1
- package/dist/chunks/ListItem-DDMe4CJ3.js +0 -1
- package/dist/chunks/Messages-KmeXIJqL.js +0 -11
- package/dist/chunks/REPL-BBmn_itf.js +0 -1
- package/dist/chunks/SearchBox-CciJ8giD.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-kjVFsFkT.js +0 -1
- package/dist/chunks/SentryErrorBoundary-DsrmgmKF.js +0 -1
- package/dist/chunks/api-DkgaFAzq.js +0 -1
- package/dist/chunks/assistant-CiNV3Q0f.js +0 -1
- package/dist/chunks/auth-CbQCc9vz.js +0 -1
- package/dist/chunks/backgroundHousekeeping-LYpOamcN.js +0 -1
- package/dist/chunks/bridgeConfig-Budgp2Go.js +0 -1
- package/dist/chunks/bridgeEnabled-DmvmwuUY.js +0 -1
- package/dist/chunks/bridgeMain-KYR5iq6H.js +0 -1
- package/dist/chunks/caches-CkH9F-Fd.js +0 -1
- package/dist/chunks/ccshareResume-DPP1blaU.js +0 -1
- package/dist/chunks/changeDetector-IFbty4jj.js +0 -1
- package/dist/chunks/channelNotification-CIyWY0hs.js +0 -1
- package/dist/chunks/clear-BVjSQsUL.js +0 -1
- package/dist/chunks/client-BUUsZdSe.js +0 -1
- package/dist/chunks/commands-pTQdOvN6.js +0 -1
- package/dist/chunks/commitAttribution-QPrKt_BF.js +0 -1
- package/dist/chunks/completionCache-BB7-y2BX.js +0 -1
- package/dist/chunks/context-noninteractive-OUTZ6BKj.js +0 -1
- package/dist/chunks/conversation-Bs8l0KNl.js +0 -1
- package/dist/chunks/createSession-DpqtD4ML.js +0 -1
- package/dist/chunks/crossProjectResume-BCr6jfGz.js +0 -40
- package/dist/chunks/datadog-DlzPb5oG.js +0 -1
- package/dist/chunks/desktop-WH8s-9-6.js +0 -1
- package/dist/chunks/entry-CEBaLwEG.js +0 -14
- package/dist/chunks/envLessBridgeConfig-izoVnE8s.js +0 -1
- package/dist/chunks/extra-usage-VSASGlte.js +0 -1
- package/dist/chunks/extractMemories-hQlhiVOD.js +0 -1
- package/dist/chunks/fast-2gWrhEFZ.js +0 -1
- package/dist/chunks/gates-dO6m4Hdp.js +0 -1
- package/dist/chunks/hooks-BWoN0nQP.js +0 -1
- package/dist/chunks/inboundAttachments-D8vq1NQO.js +0 -1
- package/dist/chunks/language-CSDpzbTz.js +0 -1
- package/dist/chunks/loadAgentsDir-B-4D2dVE.js +0 -1
- package/dist/chunks/localSearch-DsFH9yls.js +0 -1
- package/dist/chunks/login-CEJEl2mW.js +0 -1
- package/dist/chunks/logout-BXr4jzNY.js +0 -1
- package/dist/chunks/mappers-BNI_df3v.js +0 -1
- package/dist/chunks/model-CgH43-hO.js +0 -1
- package/dist/chunks/panelCall-DUQdjDee.js +0 -1
- package/dist/chunks/plugin-DXhCgoNC.js +0 -1
- package/dist/chunks/pluginStartupCheck-BFuZqpnX.js +0 -1
- package/dist/chunks/policyLimits-B3dtp_Fe.js +0 -1
- package/dist/chunks/poorMode-BPIUnFFi.js +0 -1
- package/dist/chunks/projectContext-2Z2w8AI8.js +0 -1
- package/dist/chunks/projectContext-fS1t-xRh.js +0 -1
- package/dist/chunks/prompt-CogZQuTN.js +0 -227
- package/dist/chunks/prompt-CriAIdkT.js +0 -1
- package/dist/chunks/prompt-TGc_H1cL.js +0 -1
- package/dist/chunks/sandbox-adapter-DrHD1mch.js +0 -1
- package/dist/chunks/searchExtraTools-Dwg6ZafS.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-n7HcOfZ7.js +0 -1
- package/dist/chunks/sessionMemory-DVq43VXP.js +0 -1
- package/dist/chunks/sessionMemoryUtils-BjkdLRvh.js +0 -1
- package/dist/chunks/sessionObserver-CrfmnMzL.js +0 -1
- package/dist/chunks/sessionStorage-BTbr9wkZ.js +0 -1
- package/dist/chunks/sink-CoUVbLFs.js +0 -1
- package/dist/chunks/sinks-wuo1yQ_m.js +0 -1
- package/dist/chunks/skillLearning-CFnZiM5J.js +0 -1
- package/dist/chunks/skillLearning-D6mvGN90.js +0 -1
- package/dist/chunks/startupProfiler-BmnoJtfF.js +0 -1
- package/dist/chunks/startupProfiler-rCtNuhXz.js +0 -3
- package/dist/chunks/status-DlT1tUmc.js +0 -1
- package/dist/chunks/tasks-Bf1Nf3WX.js +0 -1
- package/dist/chunks/teamHelpers-DeQCfdgu.js +0 -1
- package/dist/chunks/teammateModeSnapshot-BRuKcJNr.js +0 -1
- package/dist/chunks/thinkback-CVYpxAyO.js +0 -1
- package/dist/chunks/toolPool-CDEeuQd2.js +0 -1
- package/dist/chunks/undercover-BviGW-bQ.js +0 -1
- package/dist/chunks/upgrade-DAuhXFVI.js +0 -1
- package/dist/chunks/useKeybinding-DOjEx42R.js +0 -1
- package/dist/chunks/useMainLoopModel-BZoZdEdj.js +0 -1
- package/dist/chunks/useTerminalSize-mqo2Swmk.js +0 -1
- package/dist/chunks/utils-CM5oEyAY.js +0 -1
- package/dist/chunks/voiceModeEnabled-B3njLfhA.js +0 -1
- package/dist/chunks/voiceStreamSTT-BkeyhhFJ.js +0 -1
- package/dist/chunks/worktree-UA9gKCwL.js +0 -1
- /package/dist/chunks/{chromeNativeHost-DfYuJafI.js → chromeNativeHost-BldB1Zzi.js} +0 -0
- /package/dist/chunks/{claudeDesktop-CEQCLZmG.js → claudeDesktop-BqTW_pbB.js} +0 -0
- /package/dist/chunks/{cleanup-DUVwlFl7.js → cleanup-rCLlo4w8.js} +0 -0
- /package/dist/chunks/{eventLoopStallDetector-MNrFR4OH.js → eventLoopStallDetector-bYy0fesH.js} +0 -0
- /package/dist/chunks/{postCommitAttribution-Br4g4R6h.js → postCommitAttribution-D8MoHFoz.js} +0 -0
- /package/dist/chunks/{sdkHeapDumpMonitor-DTHI5WbD.js → sdkHeapDumpMonitor-DLMMNeqo.js} +0 -0
- /package/dist/chunks/{sessionDataUploader-BgmJTXQr.js → sessionDataUploader-CsNePsOb.js} +0 -0
- /package/dist/chunks/{udsClient-B85rNglp.js → udsClient-CBF_cZFW.js} +0 -0
package/dist/chunks/{WindowsTerminalBackend-BzoSs0VA.js → WindowsTerminalBackend-CLSeqqHh.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{l as r,p as i}from"./debug-otxXY3j-.js";import{i as a,o}from"./platform-mh9ypxS8.js";import{r as s,t as c}from"./execFileNoThrow-azCkYhmF.js";import{Nd as l,Rd as u}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{l as r,p as i}from"./debug-otxXY3j-.js";import{i as a,o}from"./platform-mh9ypxS8.js";import{r as s,t as c}from"./execFileNoThrow-azCkYhmF.js";import{Nd as l,Rd as u}from"./loadAgentsDir-DC4jN6-f.js";import{a as d,r as f}from"./detection-95TCHkW8.js";import{tmpdir as p}from"os";import{join as m}from"path";import{randomUUID as h}from"crypto";import{readFile as g,unlink as _}from"fs/promises";function v(e){return`'${e.replace(/'/g,`''`)}'`}function y(e,t){let n=v(t);return[`$ErrorActionPreference = 'Stop'`,`Set-Content -LiteralPath ${n} -Value $PID`,[`try { ${e}; if ($LASTEXITCODE -is [int]) { exit $LASTEXITCODE } }`,`catch { Write-Error $_; exit 1 }`,`finally { Remove-Item -LiteralPath ${n} -Force -ErrorAction SilentlyContinue }`].join(`
|
|
2
2
|
`)].join(`; `)}function b(){let e=process.env.CLAUDE_WT_PANE_TIMEOUT_MS;if(!e)return S;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:S}async function x(e,t){let n=Date.now()+t,r;for(;Date.now()<n;){try{let t=(await g(e,`utf-8`)).trim();if(!/^\d+$/.test(t))r=Error(`pidFile content not a valid pid: ${JSON.stringify(t)}`);else{let e=Number.parseInt(t,10);if(Number.isFinite(e)&&e>0)return e;r=Error(`pidFile content parsed to invalid pid: ${e}`)}}catch(e){r=e}await new Promise(e=>setTimeout(e,C))}throw r??Error(`pidFile never appeared`)}var S,C,w;e((()=>{r(),s(),o(),f(),l(),t(),S=8e3,C=200,w=class{constructor(e,t){n(this,`type`,`windows-terminal`),n(this,`displayName`,`Windows Terminal`),n(this,`supportsHideShow`,!1),n(this,`panes`,new Map),n(this,`runCommand`,void 0),n(this,`getPlatformValue`,void 0),n(this,`pidFileDir`,void 0),typeof e==`function`||e===void 0?(this.runCommand=e??c,this.getPlatformValue=t??a,this.pidFileDir=p()):(this.runCommand=e.runCommand??c,this.getPlatformValue=e.getPlatform??a,this.pidFileDir=e.pidFileDir??p())}makePidFile(e){return m(this.pidFileDir,`${e.replace(/[^a-zA-Z0-9_-]/g,`-`)}.pid`)}async isAvailable(){return this.getPlatformValue()===`windows`?process.env.WT_SESSION?!0:(await this.runCommand(`where.exe`,[`wt.exe`])).code===0:!1}async isRunningInside(){return this.getPlatformValue()===`windows`&&d()}async createTeammatePaneInSwarmView(e,t){let n=`wt-${h()}`,r=this.panes.size===0;return this.panes.set(n,{title:e,mode:`pane`,pidFile:this.makePidFile(n),status:`registered`}),{paneId:n,isFirstTeammate:r}}async createTeammateWindowInSwarmView(e,t){let n=`wt-${h()}`,r=`teammate-${e.replace(/[^a-zA-Z0-9]/g,`-`).toLowerCase()}`;return this.panes.set(n,{title:e,mode:`window`,pidFile:this.makePidFile(n),status:`registered`}),{paneId:n,isFirstTeammate:!1,windowName:r}}async sendCommandToPane(e,t,n){let r=this.panes.get(e);if(!r)throw Error(`Unknown Windows Terminal pane id: ${e}`);if(r.status===`ready`||r.status===`killing`)throw Error(`Pane ${e} already spawned (status=${r.status}); create a new pane to re-launch`);if(r.status===`spawning`)throw Error(`Pane ${e} is currently spawning; wait for the in-flight launch to complete`);if(r.status===`dead`)throw Error(`Pane ${e} is dead; create a new pane`);let i,a,o=new Promise((e,t)=>{i=e,a=t});o.catch(()=>{}),r.status=`spawning`,r.spawnPromise=o;try{let n=y(t,r.pidFile),a=Buffer.from(n,`utf16le`).toString(`base64`),o=r.mode===`window`?[`-w`,`-1`,`new-tab`,`--title`,r.title]:[`-w`,`0`,`split-pane`,`--vertical`,`--title`,r.title];await _(r.pidFile).catch(()=>{});let s=await this.runCommand(`wt.exe`,[...o,`powershell.exe`,`-NoLogo`,`-NoProfile`,`-ExecutionPolicy`,`Bypass`,`-EncodedCommand`,a]);if(s.code!==0)throw Error(`Failed to launch Windows Terminal teammate ${e}: ${s.stderr}`);let c=b(),l;try{l=await x(r.pidFile,c)}catch(t){throw Error(`Windows Terminal pane failed to launch within ${c}ms\n paneId: ${e}\n pidFile: ${r.pidFile}\n wt.exe stdout: ${s.stdout||`(empty)`}\n wt.exe stderr: ${s.stderr||`(empty)`}\n underlying: ${t instanceof Error?t.message:String(t)}\n override timeout via env CLAUDE_WT_PANE_TIMEOUT_MS`)}r.pid=l,r.status=`ready`,i()}catch(e){throw r.status=`dead`,r.pid=void 0,a(e),e}finally{r.spawnPromise=void 0}}async setPaneBorderColor(e,t,n){}async setPaneTitle(e,t,n,r){}async enablePaneBorderStatus(e,t){}async rebalancePanes(e,t){}async killPane(e,t){let n=this.panes.get(e);if(!n)return!1;if(n.status===`spawning`&&n.spawnPromise&&await n.spawnPromise.catch(()=>{}),n.status===`dead`)return this.panes.delete(e),!1;if(n.status!==`ready`)return!1;n.status=`killing`;let r=n.pid;if(r===void 0){let t=null;for(let r=0;r<3;r++)try{t=(await g(n.pidFile,`utf-8`)).trim();break}catch{if(r===2)return n.status=`dead`,this.panes.delete(e),!1;await new Promise(e=>setTimeout(e,500))}if(!t||!/^\d+$/.test(t))return n.status=`dead`,this.panes.delete(e),!1;let i=Number.parseInt(t,10);if(!Number.isFinite(i)||i<=0)return n.status=`dead`,this.panes.delete(e),!1;r=i}let a=await this.runCommand(`powershell.exe`,[`-NoLogo`,`-NoProfile`,`-Command`,`Stop-Process -Id ${r} -Force -ErrorAction Stop`]);return n.pid=void 0,n.status=`dead`,this.panes.delete(e),i(`[WindowsTerminalBackend] killPane ${e} pid=${r} code=${a.code}`),a.code===0}async hidePane(e,t){return!1}async showPane(e,t,n){return!1}},u(w)}))();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{In as i,Ln as a,Rn as o,b as s,t as c,x as l}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{In as i,Ln as a,Rn as o,b as s,t as c,x as l}from"./src-Di342QoJ.js";import{t as u}from"./jsx-runtime-D-D469L8.js";import{Cn as d,cn as f,g as p}from"./state-sIHsFpDu.js";import{B as m,FA as h,FD as g,ID as _,MA as v,R as y,gT as b,hT as x,jD as S,z as C}from"./loadAgentsDir-DC4jN6-f.js";import{n as w,t as T}from"./AddWorkspaceDirectory-BCCbaWoh.js";function E({message:e,args:t,onDone:n}){return(0,O.useEffect)(()=>{let e=setTimeout(n,0);return()=>clearTimeout(e)},[n]),(0,k.jsxs)(l,{flexDirection:`column`,children:[(0,k.jsxs)(s,{dimColor:!0,children:[r.pointer,` /add-dir `,t]}),(0,k.jsx)(x,{children:(0,k.jsx)(s,{children:e})})]})}async function D(e,t,n){let r=(n??``).trim(),a=t.getAppState(),o=async(n,r=!1)=>{let a={type:`addDirectories`,directories:[n],destination:r?`localSettings`:`session`},o=S(t.getAppState().toolPermissionContext,a);t.setAppState(e=>({...e,toolPermissionContext:o}));let s=p();s.includes(n)||d([...s,n]),v.refreshConfig();let c;if(r)try{_(a),c=`Added ${i.bold(n)} as a working directory and saved to local settings`}catch(e){c=`Added ${i.bold(n)} as a working directory. Failed to save to local settings: ${e instanceof Error?e.message:`Unknown error`}`}else c=`Added ${i.bold(n)} as a working directory for this session`;e(`${c} ${i.dim(`· /permissions to manage`)}`)};if(!r)return(0,k.jsx)(T,{permissionContext:a.toolPermissionContext,onAddDirectory:o,onCancel:()=>{e(`Did not add a working directory.`)}});let s=await m(r,a.toolPermissionContext);if(s.resultType!==`success`){let t=y(s);return(0,k.jsx)(E,{message:t,args:n??``,onDone:()=>e(t)})}return(0,k.jsx)(T,{directoryPath:s.absolutePath,permissionContext:a.toolPermissionContext,onAddDirectory:o,onCancel:()=>{e(`Did not add ${i.bold(s.absolutePath)} as a working directory.`)}})}var O,k;e((()=>{a(),n(),O=t(o(),1),f(),b(),w(),c(),g(),h(),C(),k=u()}))();export{D as call};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Gs as t,Ws as n}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Gs as t,Ws as n}from"./paths-CEAy4QCs.js";import{J_ as r,Y_ as i}from"./loadAgentsDir-DC4jN6-f.js";function a(e,t){let n=new Map;for(let e of t)n.set(e.agentType,e);let r=new Set,i=[];for(let t of e){let e=`${t.agentType}:${t.source}`;if(r.has(e))continue;r.add(e);let a=n.get(t.agentType),o=a&&a.source!==t.source?a.source:void 0;i.push({...t,overriddenBy:o})}return i}function o(e){let t=e.model||r();if(t)return t===`inherit`?`inherit`:t}function s(e){return n(e).toLowerCase()}function c(e,t){return e.agentType.localeCompare(t.agentType,void 0,{sensitivity:`base`})}var l,u=e((()=>{i(),t(),l=[{label:`User agents`,source:`userSettings`},{label:`Project agents`,source:`projectSettings`},{label:`Local agents`,source:`localSettings`},{label:`Managed agents`,source:`policySettings`},{label:`Plugin agents`,source:`plugin`},{label:`CLI arg agents`,source:`flagSettings`},{label:`Built-in agents`,source:`built-in`}]}));export{o as a,u as i,c as n,a as o,s as r,l as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e,t}from"./cwd--iizewsn.js";import{i as n,o as r,r as i}from"./loadAgentsDir-
|
|
1
|
+
import{n as e,t}from"./cwd--iizewsn.js";import{i as n,o as r,r as i}from"./loadAgentsDir-DC4jN6-f.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./agentDisplay-BUXpQhYh.js";o(),r(),e();function d(e){let t=a(e),n=[e.agentType];return t&&n.push(t),e.memory&&n.push(`${e.memory} memory`),n.join(` · `)}async function f(){let{allAgents:e}=await n(t()),r=c(e,i(e)),a=[],o=0;for(let{label:e,source:t}of u){let n=r.filter(e=>e.source===t).sort(s);if(n.length!==0){a.push(`${e}:`);for(let e of n)if(e.overriddenBy){let t=l(e.overriddenBy);a.push(` (shadowed by ${t}) ${d(e)}`)}else a.push(` ${d(e)}`),o++;a.push(``)}}a.length===0?console.log(`No agents found.`):(console.log(`${o} active agents\n`),console.log(a.join(`
|
|
2
2
|
`).trimEnd()))}export{f as agentsHandler};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{g as i}from"./client-_sjL0I7A.js";import{n as a,t as o}from"./figures-gfT9mM8P.js";import{In as s,Ln as c,Rn as l,b as u,f as d,g as f,h as p,m,t as h,tt as g,x as _}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{g as i}from"./client-_sjL0I7A.js";import{n as a,t as o}from"./figures-gfT9mM8P.js";import{In as s,Ln as c,Rn as l,b as u,f as d,g as f,h as p,m,t as h,tt as g,x as _}from"./src-Di342QoJ.js";import{t as v}from"./jsx-runtime-D-D469L8.js";import{Ct as y,cn as b}from"./state-sIHsFpDu.js";import{$o as x,Fa as ee,Gs as S,Ho as te,Ko as C,Na as ne,Ol as re,Qo as ie,Us as ae,a as oe,jc as se,kc as ce,kl as le,s as ue}from"./paths-CEAy4QCs.js";import{B as de,D as fe,E as pe,J as me,U as he}from"./debug-otxXY3j-.js";import{n as ge,r as _e}from"./analytics-DqMQntaB.js";import{n as ve,t as ye}from"./cwd--iizewsn.js";import{t as be}from"./sdk-DEtgRZvI.js";import{o as xe,s as Se}from"./log-DSV4Ht5l.js";import{b as Ce,x as we}from"./teammate-CbskW5G9.js";import{T as Te,b as Ee}from"./startupProfiler-CBcN1Chw.js";import{l as De,n as Oe,o as ke}from"./stringUtils-KZoO4GUd.js";import{$D as Ae,$p as je,BC as Me,Bp as Ne,Cb as Pe,DC as w,Db as Fe,Dp as Ie,EC as T,Eb as Le,Eo as Re,Gp as ze,Jn as Be,K_ as Ve,Kc as He,Kp as Ue,Ky as We,ME as Ge,M_ as Ke,NE as qe,N_ as Je,Op as Ye,Ow as Xe,P_ as Ze,Qo as Qe,Qp as $e,Tb as et,Uk as tt,Uo as nt,Up as rt,VC as it,Wk as at,Wp as ot,Wy as st,Xf as ct,Xp as lt,Xu as ut,Y_ as dt,Yn as ft,Zf as pt,Zp as mt,Zu as ht,aS as gt,ap as _t,c as vt,cD as yt,ck as bt,dS as xt,d_ as St,eO as Ct,fC as wt,fS as Tt,hp as Et,ip as Dt,kw as Ot,l as kt,lC as At,lD as jt,lt as Mt,mT as Nt,mp as Pt,o as Ft,oS as It,op as Lt,pD as Rt,pT as zt,p_ as Bt,q_ as Vt,qc as Ht,qn as Ut,r as Wt,rp as Gt,rt as Kt,s as qt,sD as Jt,st as Yt,t as Xt,tt as Zt,uC as Qt,vu as $t,wb as en,yu as tn,zp as nn}from"./loadAgentsDir-DC4jN6-f.js";import{Qn as rn,Zn as an}from"./prompt-BHI7PZe4.js";import{X as on}from"./rcDebugLog-C0Bam8V9.js";import{t as E}from"./useKeybinding-DPOUuymz.js";import{n as sn,t as cn}from"./useExitOnCtrlCDWithKeybindings-BHi41Ku_.js";import{r as ln,t as un}from"./TungstenTool-CnAF4y0E.js";import{a as dn,i as fn,n as pn,o as mn,r as hn,t as gn}from"./agentDisplay-BUXpQhYh.js";import{n as _n,t as vn}from"./useMergedTools-B78rAreW.js";import{n as yn,r as bn,t as xn}from"./promptEditor-DoJ-xPi4.js";import{n as Sn,t as Cn}from"./useMainLoopModel-BTpZ8k3k.js";import{join as D}from"path";import{mkdir as wn,open as Tn,unlink as En}from"fs/promises";var O,Dn=e((()=>{O={FOLDER_NAME:`.claude`,AGENTS_DIR:`agents`}}));function On(e,t,n,r,i,a,o,s){return`---
|
|
2
2
|
name: ${e}
|
|
3
3
|
description: "${t.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\n/g,`\\\\n`)}"${n===void 0||n.length===1&&n[0]===`*`?``:`\ntools: ${n.join(`, `)}`}${a?`\nmodel: ${a}`:``}${s===void 0?``:`\neffort: ${s}`}${i?`\ncolor: ${i}`:``}${o?`\nmemory: ${o}`:``}
|
|
4
4
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as e,I as t,N as n,O as r,P as i,j as a}from"./teamHelpers-
|
|
1
|
+
import{H as e,I as t,N as n,O as r,P as i,j as a}from"./teamHelpers-WmWa_h3B.js";import{s as o,u as s}from"./logoV2Utils-CpeUvaOM.js";i(),s();var c=`default`;async function l(e,t){let n=await r(t.list||c,{subject:e,description:t.description||``,status:`pending`,blocks:[],blockedBy:[]});console.log(`Created task ${n}: ${e}`)}async function u(e){let n=await t(e.list||c);if(e.pending&&(n=n.filter(e=>e.status===`pending`)),e.json){console.log(JSON.stringify(n,null,2));return}if(n.length===0){console.log(`No tasks found.`);return}for(let e of n)console.log(` [${e.status}] ${e.id}: ${e.subject}`),e.description&&console.log(` ${e.description}`),e.owner&&console.log(` owner: ${e.owner}`)}async function d(e,t){let n=await a(t.list||c,e);if(!n){console.error(`Task not found: ${e}`),process.exitCode=1;return}console.log(JSON.stringify(n,null,2))}async function f(t,n){let r=n.list||c,i={};n.status&&(i.status=n.status),n.subject&&(i.subject=n.subject),n.description&&(i.description=n.description),n.owner&&(i.owner=n.owner),n.clearOwner&&(i.owner=void 0);let a=await e(r,t,i);if(!a){console.error(`Task not found: ${t}`),process.exitCode=1;return}console.log(`Updated task ${t}: [${a.status}] ${a.subject}`)}async function p(e){let t=e.list||c;console.log(n(t))}async function m(e){let t=await o();if(e===void 0){if(t.length===0){console.log(`No recent sessions.`);return}for(let e=0;e<Math.min(t.length,20);e++){let n=t[e],r=n.modified?new Date(n.modified).toLocaleString():`unknown`,i=n.title||n.sessionId||`untitled`;console.log(` ${e}: ${i} (${r})`)}return}let n=typeof e==`string`?parseInt(e,10):e,r=Number.isFinite(n)&&n>=0&&n<t.length?t[n]:t.find(t=>t.sessionId===String(e));if(!r){console.error(`Session not found: ${e}`),process.exitCode=1;return}console.log(JSON.stringify(r,null,2))}async function h(e){let t=await o(),n=e??5;console.log(`Last ${n} sessions:`);for(let e=0;e<Math.min(n,t.length);e++){let n=t[e],r=n.modified?new Date(n.modified).toLocaleString():`unknown`;console.log(` ${e}: ${n.sessionId} (${r})`)}}async function g(e,t){let{writeFile:n,readFile:r}=await import(`fs/promises`),i=await o(),a=parseInt(e,10),s;if(s=Number.isFinite(a)&&a>=0&&a<i.length?i[a]:i.find(t=>t.sessionId===e),!s)try{await n(t,await r(e,`utf-8`),`utf-8`),console.log(`Exported ${e} → ${t}`);return}catch{console.error(`Source not found: ${e}`),process.exitCode=1;return}await n(t,JSON.stringify(s,null,2),`utf-8`),console.log(`Exported session ${s.sessionId} → ${t}`)}async function _(e,t,n){let{regenerateCompletionCache:r}=await import(`./completionCache-BQgiR45Q.js`);t.output,await r(),console.log(`Completion cache regenerated for ${e}.`)}export{_ as completionHandler,h as errorHandler,g as exportHandler,m as logHandler,l as taskCreateHandler,p as taskDirHandler,d as taskGetHandler,u as taskListHandler,f as taskUpdateHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,n as t,o as n}from"./api-Cy1N7XAQ.js";n();export{t as fetchCodeSessionsFromSessionsAPI,e as getOAuthHeaders};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{n as r,t as i}from"./v4-f1i_CNUT.js";import{Jt as a,dc as o,la as s,on as c,ua as l,yc as u}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{n as r,t as i}from"./v4-f1i_CNUT.js";import{Jt as a,dc as o,la as s,on as c,ua as l,yc as u}from"./paths-CEAy4QCs.js";import{E as d,J as f,O as p,U as m,l as h,p as g,z as _}from"./debug-otxXY3j-.js";import{l as v,u as y}from"./oauth-CdZEzMww.js";import{o as b,s as x}from"./log-DSV4Ht5l.js";import{n as S,t as C}from"./lazySchema-B0QShMaQ.js";import{n as w,t as T}from"./sleep-C6koP5Ka.js";import{a as E,o as D}from"./detectRepository-2ICvGD0U.js";import{randomUUID as O}from"crypto";function k(e){return t.isAxiosError(e)?!e.response||e.response.status>=500:!1}async function A(e,n){let r;for(let i=0;i<=V;i++)try{return await t.get(e,n)}catch(e){if(r=e,!k(e))throw e;if(i>=V)throw g(`Teleport request failed after ${i+1} attempts: ${_(e)}`),e;let t=B[i]??2e3;g(`Teleport request failed (attempt ${i+1}/${V+1}), retrying in ${t}ms: ${_(e)}`),await w(t)}throw r}function j(e){return e===null||typeof e==`string`&&e.trim()===``}async function M(){let e=o(),t=process.env.ANTHROPIC_API_KEY?.trim()||e.workspaceApiKey?.trim();if(!t){let t=e.workspaceApiKey,n=j(t)?`Your workspace API key was cleared. `:`A workspace API key (sk-ant-api03-*) is required to use workspace endpoints (/v1/agents, /v1/vaults, /v1/memory_stores, /v1/skills). `;throw Error(n+`Press W in /login to save your key directly (no restart needed), or set ANTHROPIC_API_KEY=<key> and restart. Obtain a key from https://console.anthropic.com/settings/keys. Subscription OAuth (claude.ai login) cannot reach these endpoints.`)}if(!t.startsWith(`sk-ant-api03-`))throw Error(`Workspace API key must start with sk-ant-api03-, got prefix "${t.slice(0,4)}...". Obtain a workspace API key from https://console.anthropic.com/settings/keys. Press W in /login to save your key, or set ANTHROPIC_API_KEY.`);return{apiKey:t}}async function N(){let e=a()?.accessToken;if(e===void 0)throw Error(`Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`);let t=await s();if(!t)throw Error(`Unable to get organization UUID`);return{accessToken:e,orgUUID:t}}async function P(){let{accessToken:e,orgUUID:t}=await N(),n=`${v().BASE_API_URL}/v1/sessions`;try{let r=await A(n,{headers:{...F(e),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":t}});if(r.status!==200)throw Error(`Failed to fetch code sessions: ${r.statusText}`);return r.data.data.map(e=>{let t=e.session_context.sources.find(e=>e.type===`git_repository`),n=null;if(t?.url){let e=D(t.url);if(e){let[r,i]=e.split(`/`);r&&i&&(n={name:i,owner:{login:r},default_branch:t.revision||void 0})}}return{id:e.id,title:e.title||`Untitled`,description:``,status:e.session_status,repo:n,turns:[],created_at:e.created_at,updated_at:e.updated_at}})}catch(e){throw x(f(e)),e}}function F(e){return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,"anthropic-version":`2023-06-01`}}async function I(e){let{accessToken:n,orgUUID:r}=await N(),i=`${v().BASE_API_URL}/v1/sessions/${e}`,a={...F(n),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":r},o=await t.get(i,{headers:a,timeout:15e3,validateStatus:e=>e<500});if(o.status!==200){let t=o.data?.error?.message;throw o.status===404?Error(`Session not found: ${e}`):o.status===401?Error(`Session expired. Please run /login to sign in again.`):Error(t||`Failed to fetch session: ${o.status} ${o.statusText}`)}return o.data}function L(e){return(e.session_context.outcomes?.find(e=>e.type===`git_repository`))?.git_info?.branches[0]}async function R(e,n,r){try{let{accessToken:i,orgUUID:a}=await N(),o=`${v().BASE_API_URL}/v1/sessions/${e}/events`,s={...F(i),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":a},c={events:[{uuid:r?.uuid??O(),session_id:e,type:`user`,parent_tool_use_id:null,message:{role:`user`,content:n}}]};g(`[sendEventToRemoteSession] Sending event to session ${e}`);let l=await t.post(o,c,{headers:s,validateStatus:e=>e<500,timeout:3e4});return l.status===200||l.status===201?(g(`[sendEventToRemoteSession] Successfully sent event to session ${e}`),!0):(g(`[sendEventToRemoteSession] Failed with status ${l.status}: ${p(l.data)}`),!1)}catch(e){return g(`[sendEventToRemoteSession] Error: ${_(e)}`),!1}}async function z(e,n){try{let{accessToken:r,orgUUID:i}=await N(),a=`${v().BASE_API_URL}/v1/sessions/${e}`,o={...F(r),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":i};g(`[updateSessionTitle] Updating title for session ${e}: "${n}"`);let s=await t.patch(a,{title:n},{headers:o,validateStatus:e=>e<500});return s.status===200?(g(`[updateSessionTitle] Successfully updated title for session ${e}`),!0):(g(`[updateSessionTitle] Failed with status ${s.status}: ${p(s.data)}`),!1)}catch(e){return g(`[updateSessionTitle] Error: ${_(e)}`),!1}}var B,V,H=e((()=>{n(),y(),l(),i(),c(),u(),h(),E(),m(),C(),b(),T(),d(),B=[2e3,4e3,8e3,16e3],V=B.length,S(()=>r.object({id:r.string(),title:r.string(),description:r.string(),status:r.enum([`idle`,`working`,`waiting`,`completed`,`archived`,`cancelled`,`rejected`]),repo:r.object({name:r.string(),owner:r.object({login:r.string()}),default_branch:r.string().optional()}).nullable(),turns:r.array(r.string()),created_at:r.string(),updated_at:r.string()}))}));export{F as a,j as c,R as d,z as f,L as i,N as l,P as n,H as o,I as r,k as s,A as t,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,t as i,tn as a,x as o,xt as s}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,t as i,tn as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{n as l,t as u}from"./browser-Bt-ckCaU.js";import{basename as d}from"path";function f({artifacts:e,onExit:t}){let[n,i]=m.useState(0);return s((r,o)=>{if(r===`q`||o.escape){t();return}if(e.length!==0){if(o.upArrow){i(t=>(t-1+e.length)%e.length);return}if(o.downArrow){i(t=>(t+1)%e.length);return}if(o.return){let t=e[n];t.url&&l(t.url);return}if(r===`c`){let t=e[n];t.url&&a(t.url).then(e=>{e&&process.stdout.write(e)})}}}),(0,h.jsxs)(o,{flexDirection:`column`,paddingX:1,paddingY:0,children:[(0,h.jsx)(o,{marginBottom:1,children:(0,h.jsxs)(r,{bold:!0,children:[`Artifacts (`,e.length,`)`]})}),e.length===0?(0,h.jsx)(r,{color:`subtle`,children:`No artifacts uploaded this session. Run /use-artifacts to learn how.`}):(0,h.jsxs)(o,{flexDirection:`column`,children:[e.map((e,t)=>(0,h.jsx)(p,{artifact:e,isSelected:t===n},e.toolUseId)),(0,h.jsx)(o,{marginTop:1,children:(0,h.jsx)(r,{color:`subtle`,children:`↑/↓ select · Enter open · c copy URL · Esc exit`})})]})]})}function p({artifact:e,isSelected:t}){return(0,h.jsxs)(o,{flexDirection:`column`,children:[(0,h.jsxs)(o,{children:[(0,h.jsxs)(r,{color:t?`suggestion`:void 0,children:[t?`›`:` `,` `]}),(0,h.jsx)(r,{bold:t,color:e.isError?`error`:void 0,children:e.basename}),e.hash?(0,h.jsxs)(r,{color:`subtle`,children:[` (`,e.hash,`)`]}):null]}),e.url?(0,h.jsx)(o,{marginLeft:2,children:(0,h.jsx)(r,{color:`background`,children:e.url})}):(0,h.jsx)(o,{marginLeft:2,children:(0,h.jsx)(r,{color:`error`,children:e.rawContent})}),e.expiresAt?(0,h.jsx)(o,{marginLeft:2,children:(0,h.jsxs)(r,{color:`subtle`,children:[`expires: `,e.expiresAt]})}):null]})}var m,h,g=e((()=>{m=t(n(),1),i(),u(),h=c()}));function _(e){let t=[];for(let n of e){if(n.type!==`assistant`)continue;let r=n.message?.content;if(Array.isArray(r))for(let n of r){if(typeof n!=`object`||!n||!(`type`in n))continue;let r=n;if(r.type!==`tool_use`||r.name!==`artifact`)continue;let i=r.id,a=r.input?.file_path??`<unknown>`,o=v(e,i);if(!o)continue;let s=typeof o.content==`string`?o.content:Array.isArray(o.content)?o.content.map(e=>typeof e==`string`?e:`text`in e?e.text:``).join(``):``,c=o.is_error===!0,l=s.match(y),u=s.match(b),f=s.match(x);t.push({toolUseId:i,filePath:a,basename:d(a),hash:u?.[1],url:l?.[0],expiresAt:f?.[1],rawContent:s,isError:c})}}return t.reverse()}function v(e,t){for(let n of e){if(n.type!==`user`)continue;let e=n.message?.content;if(Array.isArray(e))for(let n of e){if(typeof n!=`object`||!n||!(`type`in n))continue;let e=n;if(e.type===`tool_result`&&e.tool_use_id===t)return{content:e.content,is_error:e.is_error}}}return null}var y,b,x,S=e((()=>{y=/https?:\/\/[^\s)"',]+\.html\b/,b=/\bid:\s*([A-Za-z0-9_-]+)/,x=/\bexpires:\s*([0-9T:.Z+-]+)/}));async function C(e,t){return(0,w.jsx)(f,{artifacts:_(t.messages??[]),onExit:e})}var w;e((()=>{n(),g(),S(),w=c()}))();export{C as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,s as t}from"./assistant-C3dP-BSJ.js";e();export{t as isAssistantMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{K as u,Kn as d,cn as f}from"./state-sIHsFpDu.js";import{r as p,v as m}from"./git-C0IuvuIy.js";import{sS as h,uS as g}from"./loadAgentsDir-DC4jN6-f.js";import{t as _}from"./useKeybinding-DPOUuymz.js";import{t as v}from"./Dialog-91X6ZGg9.js";import{t as y}from"./ListItem-DCQhApdJ.js";import{i as b,o as x,t as S}from"./cliLaunch-Citfs01Q.js";import{resolve as C}from"path";async function w(){let e=process.cwd();return p(e)||C(e)}function T({defaultDir:e,onInstalled:t,onCancel:n,onError:s}){g(`assistant-install-wizard`);let[l,u]=(0,D.useState)(0),[d,f]=(0,D.useState)(!1);o({"select:next":()=>u(e=>(e+1)%2),"select:previous":()=>u(e=>(e-1+2)%2),"select:accept":()=>{l===0?p():n()}},{context:`Select`});function p(){if(d)return;f(!0);let n=e||C(`.`);try{let e=x(S([`daemon`,`start`,`--dir=${n}`]),{cwd:n,stdio:`ignore`,detached:!0});e.unref(),e.on(`error`,e=>{s(`Failed to start daemon: ${e.message}`)}),setTimeout(()=>{t(n)},1500)}catch(e){s(`Failed to start daemon: ${e instanceof Error?e.message:String(e)}`)}}return d?(0,O.jsx)(a,{title:`Assistant Setup`,onCancel:n,hideInputGuide:!0,children:(0,O.jsxs)(r,{children:[`Starting daemon in `,e,`...`]})}):(0,O.jsx)(a,{title:`Assistant Setup`,onCancel:n,hideInputGuide:!0,children:(0,O.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,O.jsx)(r,{children:`No active assistant sessions found.`}),(0,O.jsxs)(r,{children:[`Start a daemon in `,(0,O.jsx)(r,{bold:!0,children:e||`.`}),` to create a cloud session?`]}),(0,O.jsxs)(c,{flexDirection:`column`,children:[(0,O.jsx)(i,{isFocused:l===0,children:(0,O.jsx)(r,{children:`Start assistant daemon`})}),(0,O.jsx)(i,{isFocused:l===1,children:(0,O.jsx)(r,{children:`Cancel`})})]}),(0,O.jsx)(r,{dimColor:!0,children:`Enter to select · Esc to cancel`})]})})}async function E(e,t,n){let{setAppState:r,getAppState:i}=t;return u()?(i().assistantPanelVisible?(r(e=>({...e,assistantPanelVisible:!1})),e(`Assistant panel hidden.`,{display:`system`})):(r(e=>({...e,assistantPanelVisible:!0})),e(`Assistant panel opened.`,{display:`system`})),null):(d(!0),r(e=>({...e,kairosEnabled:!0,assistantPanelVisible:!0})),e(`KAIROS assistant mode activated.`,{display:`system`}),null)}var D,O;e((()=>{n(),D=t(n(),1),s(),v(),y(),h(),_(),m(),b(),f(),O=l()}))();export{T as NewInstallWizard,E as call,w as computeDefaultInstallDir};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,K as a,cn as o}from"./state-sIHsFpDu.js";import{n as s,t as c}from"./cwd--iizewsn.js";import{Bd as l,Vd as u,ab as d,ob as f}from"./loadAgentsDir-
|
|
1
|
+
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,K as a,cn as o}from"./state-sIHsFpDu.js";import{n as s,t as c}from"./cwd--iizewsn.js";import{Bd as l,Vd as u,ab as d,ob as f}from"./loadAgentsDir-DC4jN6-f.js";import{A as p,B as m,P as h,R as g,a as _,c as v,i as y,p as b,y as x}from"./teamHelpers-WmWa_h3B.js";import{a as S,c as C}from"./constants-BljlAJOX.js";import{join as w}from"path";import{readFileSync as T}from"fs";var E=t({getAssistantActivationPath:()=>M,getAssistantSystemPromptAddendum:()=>j,initializeAssistantTeam:()=>A,isAssistantForced:()=>k,isAssistantMode:()=>D,markAssistantForced:()=>O});function D(){return a()}function O(){N=!0}function k(){return N}async function A(){let e=i(),t=b(`assistant-${e.slice(0,8)}`),n=d(S,t),r=y(t),a=Date.now(),o=c(),s=l(n);return await x(t,{name:t,description:`Assistant mode in-process team`,createdAt:a,leadAgentId:n,leadSessionId:e,members:[{agentId:n,name:S,agentType:`assistant`,color:s,joinedAt:a,tmuxPaneId:``,cwd:o,subscriptions:[],backendType:`in-process`}]}),v(t),await g(t),await p(t),m(t),{teamName:t,teamFilePath:r,leadAgentId:n,selfAgentId:n,selfAgentName:S,isLeader:!0,selfAgentColor:s,teammates:{[n]:{name:S,agentType:`assistant`,color:s,tmuxSessionName:`in-process`,tmuxPaneId:`leader`,cwd:o,spawnedAt:a}}}}function j(){try{return T(w(n(),`agents`,`assistant.md`),`utf-8`)}catch{return``}}function M(){if(D())return N?`daemon`:`gate`}var N,P=e((()=>{o(),f(),s(),r(),C(),_(),u(),h(),N=!1}));export{A as a,O as c,P as i,M as n,k as o,j as r,D as s,E as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jb as e,Kb as t,Yb as n,qb as r}from"./loadAgentsDir-DC4jN6-f.js";n();export{t as authLogin,r as authLogout,e as authStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jt as e,Pt as t,cn as n,nn as r,on as i,zt as a}from"./paths-
|
|
1
|
+
import{Jt as e,Pt as t,cn as n,nn as r,on as i,zt as a}from"./paths-CEAy4QCs.js";i();export{t as checkAndRefreshOAuthTokenIfNeeded,a as clearOAuthTokenCache,e as getClaudeAIOAuthTokens,r as handleOAuth401Error,n as isAnthropicAuthEnabled};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Br as e,Dr as t,Ga as n,Mr as r,Pr as i,oo as a}from"./paths-
|
|
1
|
+
import{Br as e,Dr as t,Ga as n,Mr as r,Pr as i,oo as a}from"./paths-CEAy4QCs.js";import{E as o,O as s,U as c,z as l}from"./debug-otxXY3j-.js";import{F_ as u,I_ as d,L_ as f,R_ as p,z_ as m}from"./loadAgentsDir-DC4jN6-f.js";import{n as h,t as g}from"./poorMode-BdNsLBQ-.js";c(),i(),f(),a(),g(),p(),o();function _(e){process.stdout.write(s(e,null,2)+`
|
|
2
2
|
`)}function v(){_(d())}function y(){let e=n(),t=d();_({allow:e?.allow?.length?e.allow:t.allow,soft_deny:e?.soft_deny?.length?e.soft_deny:t.soft_deny,environment:e?.environment?.length?e.environment:t.environment})}var b=`You are an expert reviewer of auto mode classifier rules for Claude Code.
|
|
3
3
|
|
|
4
4
|
Claude Code has an "auto mode" that uses an AI classifier to decide whether tool calls should be auto-approved or require user confirmation. Users can write custom rules in three categories:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,m as r,n as i,o as a,r as o,t as s}from"./autonomy-
|
|
1
|
+
import{a as e,c as t,i as n,m as r,n as i,o as a,r as o,t as s}from"./autonomy-B_vxYZbV.js";r();export{s as autonomyFlowCancelHandler,i as autonomyFlowHandler,o as autonomyFlowResumeHandler,n as autonomyFlowsHandler,e as autonomyRunsHandler,a as autonomyStatusHandler,t as getAutonomyCommandText};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{i as t,s as n}from"./envUtils-BWeoiL4Y.js";import{cn as r,ut as i}from"./state-sIHsFpDu.js";import{s as a,u as ee}from"./types-KeqFPzY5.js";import{AO as te,BO as ne,CO as o,D as re,EO as s,FO as c,KO as ie,MO as ae,NO as l,OO as u,PO as d,S as f,SO as p,TO as m,ZO as oe,bf as se,jO as h,kO as ce,vf as le,w as ue,wO as g,yf as de}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{i as t,s as n}from"./envUtils-BWeoiL4Y.js";import{cn as r,ut as i}from"./state-sIHsFpDu.js";import{s as a,u as ee}from"./types-KeqFPzY5.js";import{AO as te,BO as ne,CO as o,D as re,EO as s,FO as c,KO as ie,MO as ae,NO as l,OO as u,PO as d,S as f,SO as p,TO as m,ZO as oe,bf as se,jO as h,kO as ce,vf as le,w as ue,wO as g,yf as de}from"./loadAgentsDir-DC4jN6-f.js";import{G as fe,U as pe,V as me}from"./prompt-BHI7PZe4.js";import{n as he,r as _}from"./cron-DwR6OJuW.js";import{I as v,P as y}from"./teamHelpers-WmWa_h3B.js";import{a as b,n as x,o as S,t as C}from"./bridgeConfig-Di9LziJ3.js";import{i as w,o as T}from"./bg-DgpgS_VU.js";import{n as E,t as D}from"./state-BiRT9RAF.js";import{a as O,i as k,n as A,r as j}from"./pipeTransport-7auNUakO.js";import{join as M}from"path";import"crypto";import{readFile as N,readdir as P}from"fs/promises";function F(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function I(e){return typeof e==`string`&&H.includes(e)}function L(e){return typeof e==`string`&&U.includes(e)}function R(e){return!F(e)||typeof e.name!=`string`||!L(e.status)?null:{name:e.name,...typeof e.prompt==`string`?{prompt:e.prompt}:{},status:e.status,...typeof e.startedAt==`number`?{startedAt:e.startedAt}:{},...typeof e.completedAt==`number`?{completedAt:e.completedAt}:{}}}function ge(e){if(!F(e)||typeof e.runId!=`string`||typeof e.workflow!=`string`||!I(e.status)||typeof e.createdAt!=`number`||typeof e.updatedAt!=`number`||typeof e.currentStepIndex!=`number`||!Array.isArray(e.steps))return null;let t=e.steps.map(R).filter(e=>e!==null);return t.length===e.steps.length?{runId:e.runId,workflow:e.workflow,...typeof e.args==`string`?{args:e.args}:{},status:e.status,createdAt:e.createdAt,updatedAt:e.updatedAt,currentStepIndex:e.currentStepIndex,steps:t}:null}async function _e(e,t){try{return ge(ee(await N(M(e,B,`${t}.json`),`utf-8`),!1))}catch{return null}}async function ve(e=i()){let t;try{t=await P(M(e,B))}catch{return[]}let n=t.filter(e=>e.endsWith(`.json`));return(await Promise.all(n.slice(0,V).map(t=>_e(e,t.slice(0,-5))))).filter(e=>e!==null).sort((e,t)=>t.updatedAt-e.updatedAt)}function z(e){if(e.length===0)return[`Workflow runs: 0`,` none`].join(`
|
|
2
2
|
`);let t=e.filter(e=>e.status===`running`).length,n=e.filter(e=>e.status===`completed`).length,r=e.filter(e=>e.status===`cancelled`).length,i=[`Workflow runs: ${e.length}`,` Running: ${t}`,` Completed: ${n}`,` Cancelled: ${r}`];for(let t of e.slice(0,10)){let e=t.steps[t.currentStepIndex];i.push(` ${t.runId}: ${t.workflow}: ${t.status} step=${e?.name??`none`} updated=${new Date(t.updatedAt).toLocaleString()}`)}return e.length>10&&i.push(` ... ${e.length-10} more workflow run(s)`),i.join(`
|
|
3
3
|
`)}var B,V,H,U,ye=e((()=>{r(),a(),B=M(`.claude`,`workflow-runs`),V=200,H=[`running`,`completed`,`cancelled`],U=[`pending`,`running`,`completed`,`cancelled`]}));function be(){return M(A(),`registry.json`)}async function xe(){try{let e=await N(be(),`utf8`),t=JSON.parse(e);return t.version===1?t:{...W}}catch{return{...W}}}var W,Se=e((()=>{j(),W={version:1,mainMachineId:null,main:null,subs:[]}}));async function Ce(){return we(await xe())}function we(e){let t=[`Pipe registry: ${+!!e.main} main, ${e.subs.length} sub(s)`];e.mainMachineId&&t.push(` main_machine=${e.mainMachineId.slice(0,8)}...`),e.main&&t.push(` [main] ${e.main.pipeName} pid=${e.main.pid} host=${e.main.hostname} tcp=${e.main.tcpPort??`none`}`);for(let n of e.subs.slice(0,10))t.push(` [sub-${n.subIndex}] ${n.pipeName} pid=${n.pid} host=${n.hostname} bound=${n.boundToMain??`none`} tcp=${n.tcpPort??`none`}`);return!e.main&&e.subs.length===0&&t.push(` none`),e.subs.length>10&&t.push(` ... ${e.subs.length-10} more sub pipe(s)`),t.join(`
|
|
4
4
|
`)}var Te=e((()=>{Se()}));function Ee(){try{let e=S(),t=C();return[`Remote Control: ${e?`self-hosted`:`official`}`,` base_url=${x()}`,` token=${t?`present`:`missing`}`,` entitlement=checked at remote-control startup`].join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{NO as l,PO as u,sS as d,uS as f}from"./loadAgentsDir-DC4jN6-f.js";import{c as p,l as m,m as h,p as g}from"./autonomy-B_vxYZbV.js";function _(){return S}function v({onDone:e}){f(`autonomy-panel`);let[t,n]=(0,b.useState)(0),[a,c]=(0,b.useState)([]);(0,b.useEffect)(()=>{let e=!1;return u().then(t=>{e||c(t.slice(0,5))}),()=>{e=!0}},[]);let l=(0,b.useMemo)(()=>{let e=[{label:`Overview`,description:`Show run and flow counts plus the latest automatic activity`,run:()=>g()},{label:`Full deep status`,description:`Print every local autonomy surface in one diagnostic report`,run:()=>g({deep:!0})},{label:`Auto mode`,description:`Check whether auto permission mode is available and why`,run:()=>m(`auto-mode`)},{label:`Runs summary`,description:`Show queued/running/completed/failed run totals and latest run`,run:()=>m(`runs`)},{label:`Recent runs`,description:`List recent autonomy run IDs, triggers, statuses, and prompts`,run:()=>p(`runs 10`)},{label:`Flows summary`,description:`Show managed flow totals across queued/running/waiting states`,run:()=>m(`flows`)},{label:`Recent flows`,description:`List recent managed flow IDs, status, current step, and goal`,run:()=>p(`flows 10`)},{label:`Cron`,description:`Show scheduled autonomy jobs, durability, recurrence, and next run`,run:()=>m(`cron`)},{label:`Workflow runs`,description:`Show persisted WorkflowTool runs and their current workflow step`,run:()=>m(`workflow-runs`)},{label:`Teams`,description:`Show Agent Teams, teammate backends, activity, and open tasks`,run:()=>m(`teams`)},{label:`Pipes`,description:`Show UDS/named-pipe and LAN registry for terminal messaging`,run:()=>m(`pipes`)},{label:`Runtime`,description:`Show daemon state and live background or interactive sessions`,run:()=>m(`runtime`)},{label:`Remote Control`,description:`Show bridge mode, base URL, token presence, and entitlement note`,run:()=>m(`remote-control`)},{label:`RemoteTrigger`,description:`Show recent remote trigger audit records, failures, and latest call`,run:()=>m(`remote-trigger`)}],t=a.flatMap(e=>{let t=e.flowId.slice(0,8),n=[{label:`Flow ${t}`,description:`${e.status}: ${e.goal}`,run:()=>p(`flow ${e.flowId}`)}];return e.status===`waiting`&&n.push({label:`Resume ${t}`,description:e.currentStep?`Resume waiting step: ${e.currentStep}`:`Resume waiting flow`,run:()=>p(`flow resume ${e.flowId}`,{enqueueInMemory:!0})}),(e.status===`queued`||e.status===`running`||e.status===`waiting`||e.status===`blocked`)&&n.push({label:`Cancel ${t}`,description:`Cancel ${e.status} flow`,run:()=>p(`flow cancel ${e.flowId}`,{removeQueuedInMemory:!0})}),n});return[...e,...t]},[a]),d=()=>{let n=l[t];n&&n.run().then(t=>{e(t,{display:`system`})})};return s((e,t)=>{if(t.upArrow){n(e=>Math.max(0,e-1));return}if(t.downArrow){n(e=>Math.min(l.length-1,e+1));return}t.return&&d()}),(0,x.jsx)(i,{title:`Autonomy`,subtitle:`${l.length} actions`,onCancel:()=>e(`Autonomy panel dismissed`,{display:`system`}),color:`background`,hideInputGuide:!0,children:(0,x.jsxs)(o,{flexDirection:`column`,children:[l.map((e,n)=>(0,x.jsxs)(o,{flexDirection:`row`,children:[(0,x.jsx)(r,{children:`${n===t?`›`:` `} ${e.label}`.padEnd(C)}),(0,x.jsx)(r,{dimColor:!0,children:e.description})]},`${e.label}-${n}`)),(0,x.jsx)(o,{marginTop:1,children:(0,x.jsx)(r,{dimColor:!0,children:`↑/↓ select · Enter run · Esc close`})})]})})}async function y(e,t,n){let r=n?.trim()??``;return r?(e(await p(r,{enqueueInMemory:!0,removeQueuedInMemory:!0}),{display:`system`}),null):(0,x.jsx)(v,{onDone:e})}var b,x,S,C;e((()=>{b=t(n(),1),a(),d(),h(),l(),x=c(),S=14,C=24}))();export{y as call,_ as getAutonomyPanelBaseActionCountForTests};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./backgroundHousekeeping-Cll7XHG1.js";export{e as startBackgroundHousekeeping};
|
package/dist/chunks/{backgroundHousekeeping-BRtG20l2.js → backgroundHousekeeping-Cll7XHG1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,H as a,X as o,cn as s}from"./state-sIHsFpDu.js";import{Fa as c,Mr as l,Na as u,Pr as d,S as f,co as p,no as ee,oo as te}from"./paths-
|
|
1
|
+
import{a as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,H as a,X as o,cn as s}from"./state-sIHsFpDu.js";import{Fa as c,Mr as l,Na as u,Pr as d,S as f,co as p,no as ee,oo as te}from"./paths-CEAy4QCs.js";import{E as ne,J as re,U as m,_ as ie,h,l as ae,p as g}from"./debug-otxXY3j-.js";import{n as oe,r as _}from"./analytics-DqMQntaB.js";import{n as se,t as v}from"./cwd--iizewsn.js";import{o as y,s as b,v as x,y as S}from"./log-DSV4Ht5l.js";import{E as C,O as w,T as ce}from"./teammate-CbskW5G9.js";import{$D as le,Eo as ue,Er as de,Fr as fe,HC as pe,Oo as T,Ot as E,Uo as D,WC as O,XS as k,Xl as A,ZS as j,Zl as M,_t as N,cD as P,ck as F,cx as I,eO as L,iO as R,jC as z,kC as B,ko as me,lD as he,lx as ge,pD as _e,px as V,rt as ve,sD as ye,tt as H,ux as U}from"./loadAgentsDir-DC4jN6-f.js";import{Qn as be,Zn as xe}from"./prompt-BHI7PZe4.js";import{X as Se}from"./rcDebugLog-C0Bam8V9.js";import{n as Ce,r as we}from"./magicDocs-TF6U6QoB.js";import{n as Te,t as Ee}from"./pluginAutoupdate-Cre72Rtf.js";import{n as De,r as Oe}from"./registerProtocol-CQjmvg7a.js";import{homedir as ke}from"os";import{join as W}from"path";import"crypto";import*as G from"fs/promises";r(),s(),se(),ne(),ie(),ae(),S(),te(),c(),d(),f(),be(),R(),ye(),M(),fe(),we(),H(),y(),m(),D(),F(),H(),L(),m(),y(),D(),F();async function Ae(e,t){if(!e)return;let{join:n}=await import(`path`),r=await import(`fs/promises`),a=n(v(),`.claude`,`skills`,e,`SKILL.md`),o;try{o=await r.readFile(a,`utf-8`)}catch{b(Error(`Failed to read skill file for improvement: ${a}`));return}let s=t.map(e=>`- ${e.section}: ${e.change}`).join(`
|
|
2
2
|
`),c=l(),d=_e()?P({sessionId:i(),model:c,provider:u(),name:`skill-improvement-apply`}):null,f=await ve({messages:[ue({content:`You are editing a skill definition file. Apply the following improvements to the skill.
|
|
3
3
|
|
|
4
4
|
<current_skill_file>
|
|
@@ -14,4 +14,4 @@ Rules:
|
|
|
14
14
|
- Preserve frontmatter (--- block) exactly as-is
|
|
15
15
|
- Preserve the overall format and style
|
|
16
16
|
- Do not remove existing content unless an improvement explicitly replaces it
|
|
17
|
-
- Output the complete updated file inside <updated_file> tags`})],systemPrompt:Se([`You edit skill definition files to incorporate user preferences. Output only the updated file content.`]),thinkingConfig:{type:`disabled`},tools:[],signal:le().signal,options:{getToolPermissionContext:async()=>xe(),model:c,toolChoice:void 0,isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,temperatureOverride:0,agents:[],querySource:`skill_improvement_apply`,mcpTools:[],langfuseTrace:d}});he(d);let p=T(me(Array.isArray(f.message.content)?f.message.content:[]).trim(),`updated_file`);if(!p){b(Error(`Skill improvement apply: no updated_file tag in response`));return}try{await r.writeFile(a,p,`utf-8`)}catch(e){b(re(e))}}oe(),z(),ce(),y(),U(),j(),ge(),O(),E();var je=30;function K(){let e=((ee()||{}).cleanupPeriodDays??je)*24*60*60*1e3;return new Date(Date.now()-e)}function Me(e,t){return{messages:e.messages+t.messages,errors:e.errors+t.errors}}function Ne(e){let t=e.split(`.`)[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,`T$1:$2:$3.$4Z`);return new Date(t)}async function q(e,t,n){let r={messages:0,errors:0};try{let i=await h().readdir(e);for(let a of i)try{Ne(a.name)<t&&(await h().unlink(W(e,a.name)),n?r.messages++:r.errors++)}catch(e){b(e)}}catch(e){e instanceof Error&&`code`in e&&e.code!==`ENOENT`&&b(e)}return r}async function Pe(){let e=h(),t=K(),n=x.errors(),r=x.baseLogs(),i=await q(n,t,!1);try{let n;try{n=await e.readdir(r)}catch{return i}let a=n.filter(e=>e.isDirectory()&&e.name.startsWith(`mcp-logs-`)).map(e=>W(r,e.name));for(let n of a)i=Me(i,await q(n,t,!0)),await Y(n,e)}catch(e){e instanceof Error&&`code`in e&&e.code!==`ENOENT`&&b(e)}return i}async function J(e,t,n){return(await n.stat(e)).mtime<t?(await n.unlink(e),!0):!1}async function Y(e,t){try{await t.rmdir(e)}catch{}}async function Fe(){let e=K(),t={messages:0,errors:0},n=de(),r=h(),i;try{i=await r.readdir(n)}catch{return t}for(let a of i){if(!a.isDirectory())continue;let i=W(n,a.name),o;try{o=await r.readdir(i)}catch{t.errors++;continue}for(let n of o)if(n.isFile()){if(!n.name.endsWith(`.jsonl`)&&!n.name.endsWith(`.cast`))continue;try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}}else if(n.isDirectory()){let a=W(i,n.name),o=W(a,pe),s;try{s=await r.readdir(o)}catch{await Y(a,r);continue}for(let n of s)if(n.isFile())try{await J(W(o,n.name),e,r)&&t.messages++}catch{t.errors++}else if(n.isDirectory()){let i=W(o,n.name),a;try{a=await r.readdir(i)}catch{continue}for(let n of a)if(n.isFile())try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}await Y(i,r)}await Y(o,r),await Y(a,r)}await Y(i,r)}return t}async function Ie(e,t,n=!0){let r=K(),i={messages:0,errors:0},a=h(),o;try{o=await a.readdir(e)}catch{return i}for(let n of o)if(!(!n.isFile()||!n.name.endsWith(t)))try{await J(W(e,n.name),r,a)&&i.messages++}catch{i.errors++}return n&&await Y(e,a),i}function X(){return Ie(W(n(),`plans`),`.md`)}async function Le(){let e=K(),t={messages:0,errors:0},r=h();try{let i=W(n(),`file-history`),a;try{a=await r.readdir(i)}catch{return t}let o=a.filter(e=>e.isDirectory()).map(e=>W(i,e.name));await Promise.all(o.map(async n=>{try{(await r.stat(n)).mtime<e&&(await r.rm(n,{recursive:!0,force:!0}),t.messages++)}catch{t.errors++}})),await Y(i,r)}catch(e){b(e)}return t}async function Re(){let e=K(),t={messages:0,errors:0},r=h();try{let i=W(n(),`session-env`),a;try{a=await r.readdir(i)}catch{return t}let o=a.filter(e=>e.isDirectory()).map(e=>W(i,e.name));for(let n of o)try{(await r.stat(n)).mtime<e&&(await r.rm(n,{recursive:!0,force:!0}),t.messages++)}catch{t.errors++}await Y(i,r)}catch(e){b(e)}return t}async function ze(){let e=K(),t={messages:0,errors:0},r=h(),i=W(n(),`debug`),a;try{a=await r.readdir(i)}catch{return t}for(let n of a)if(!(!n.isFile()||!n.name.endsWith(`.txt`)||n.name===`latest`))try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}return t}var Z=1440*60*1e3;async function Q(){let e=W(n(),`.npm-cache-cleanup`);try{let t=await G.stat(e);if(Date.now()-t.mtimeMs<Z){g(`npm cache cleanup: skipping, ran recently`);return}}catch{}try{await C(e,{retries:0,realpath:!1})}catch{g(`npm cache cleanup: skipping, lock held`);return}g(`npm cache cleanup: starting`);let r=W(ke(),`.npm`,`_cacache`),i=Date.now();try{let n=await import(`./lib-inCisXen.js`).then(e=>t(e.default,1)),a=i-Z,o=n.ls.stream(r),s=[];for await(let e of o)e.key.includes(`@anthropic-ai/claude-`)&&s.push({key:e.key,time:e.time});let c=new Map;for(let e of s){let t=e.key.lastIndexOf(`@`),n=t>0?e.key.slice(0,t):e.key,r=c.get(n)??[];r.push(e),c.set(n,r)}let l=[];for(let[,e]of c){e.sort((e,t)=>t.time-e.time);for(let t=0;t<e.length;t++){let n=e[t];(n.time<a||t>=5)&&l.push(n.key)}}await Promise.all(l.map(e=>n.rm.entry(r,e))),await G.writeFile(e,new Date().toISOString());let u=Date.now()-i;l.length>0?g(`npm cache cleanup: Removed ${l.length} old @anthropic-ai entries in ${u}ms`):g(`npm cache cleanup: completed in ${u}ms`),_(`tengu_npm_cache_cleanup`,{success:!0,durationMs:u,entriesRemoved:l.length})}catch(e){b(e),_(`tengu_npm_cache_cleanup`,{success:!1,durationMs:Date.now()-i})}finally{await w(e,{realpath:!1}).catch(()=>{})}}async function Be(){let e=W(n(),`.version-cleanup`);try{let t=await G.stat(e);if(Date.now()-t.mtimeMs<Z){g(`version cleanup: skipping, ran recently`);return}}catch{}try{await C(e,{retries:0,realpath:!1})}catch{g(`version cleanup: skipping, lock held`);return}g(`version cleanup: starting (throttled)`);try{await V(),await G.writeFile(e,new Date().toISOString())}catch(e){b(e)}finally{await w(e,{realpath:!1}).catch(()=>{})}}async function Ve(){let{errors:e}=I();if(e.length>0&&p(`cleanupPeriodDays`)){g(`Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.`);return}await Pe(),await Fe(),await X(),await Le(),await Re(),await ze(),await B(),await k(K());let t=await N(K());t>0&&_(`tengu_worktree_cleanup`,{removed:t}),process.env.USER_TYPE===`ant`&&await Q()}s(),U(),Te();var He=(De(),e(Oe)),Ue=1440*60*1e3,$=600*1e3;function We(){Ce(),import(`./extractMemories-
|
|
17
|
+
- Output the complete updated file inside <updated_file> tags`})],systemPrompt:Se([`You edit skill definition files to incorporate user preferences. Output only the updated file content.`]),thinkingConfig:{type:`disabled`},tools:[],signal:le().signal,options:{getToolPermissionContext:async()=>xe(),model:c,toolChoice:void 0,isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,temperatureOverride:0,agents:[],querySource:`skill_improvement_apply`,mcpTools:[],langfuseTrace:d}});he(d);let p=T(me(Array.isArray(f.message.content)?f.message.content:[]).trim(),`updated_file`);if(!p){b(Error(`Skill improvement apply: no updated_file tag in response`));return}try{await r.writeFile(a,p,`utf-8`)}catch(e){b(re(e))}}oe(),z(),ce(),y(),U(),j(),ge(),O(),E();var je=30;function K(){let e=((ee()||{}).cleanupPeriodDays??je)*24*60*60*1e3;return new Date(Date.now()-e)}function Me(e,t){return{messages:e.messages+t.messages,errors:e.errors+t.errors}}function Ne(e){let t=e.split(`.`)[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,`T$1:$2:$3.$4Z`);return new Date(t)}async function q(e,t,n){let r={messages:0,errors:0};try{let i=await h().readdir(e);for(let a of i)try{Ne(a.name)<t&&(await h().unlink(W(e,a.name)),n?r.messages++:r.errors++)}catch(e){b(e)}}catch(e){e instanceof Error&&`code`in e&&e.code!==`ENOENT`&&b(e)}return r}async function Pe(){let e=h(),t=K(),n=x.errors(),r=x.baseLogs(),i=await q(n,t,!1);try{let n;try{n=await e.readdir(r)}catch{return i}let a=n.filter(e=>e.isDirectory()&&e.name.startsWith(`mcp-logs-`)).map(e=>W(r,e.name));for(let n of a)i=Me(i,await q(n,t,!0)),await Y(n,e)}catch(e){e instanceof Error&&`code`in e&&e.code!==`ENOENT`&&b(e)}return i}async function J(e,t,n){return(await n.stat(e)).mtime<t?(await n.unlink(e),!0):!1}async function Y(e,t){try{await t.rmdir(e)}catch{}}async function Fe(){let e=K(),t={messages:0,errors:0},n=de(),r=h(),i;try{i=await r.readdir(n)}catch{return t}for(let a of i){if(!a.isDirectory())continue;let i=W(n,a.name),o;try{o=await r.readdir(i)}catch{t.errors++;continue}for(let n of o)if(n.isFile()){if(!n.name.endsWith(`.jsonl`)&&!n.name.endsWith(`.cast`))continue;try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}}else if(n.isDirectory()){let a=W(i,n.name),o=W(a,pe),s;try{s=await r.readdir(o)}catch{await Y(a,r);continue}for(let n of s)if(n.isFile())try{await J(W(o,n.name),e,r)&&t.messages++}catch{t.errors++}else if(n.isDirectory()){let i=W(o,n.name),a;try{a=await r.readdir(i)}catch{continue}for(let n of a)if(n.isFile())try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}await Y(i,r)}await Y(o,r),await Y(a,r)}await Y(i,r)}return t}async function Ie(e,t,n=!0){let r=K(),i={messages:0,errors:0},a=h(),o;try{o=await a.readdir(e)}catch{return i}for(let n of o)if(!(!n.isFile()||!n.name.endsWith(t)))try{await J(W(e,n.name),r,a)&&i.messages++}catch{i.errors++}return n&&await Y(e,a),i}function X(){return Ie(W(n(),`plans`),`.md`)}async function Le(){let e=K(),t={messages:0,errors:0},r=h();try{let i=W(n(),`file-history`),a;try{a=await r.readdir(i)}catch{return t}let o=a.filter(e=>e.isDirectory()).map(e=>W(i,e.name));await Promise.all(o.map(async n=>{try{(await r.stat(n)).mtime<e&&(await r.rm(n,{recursive:!0,force:!0}),t.messages++)}catch{t.errors++}})),await Y(i,r)}catch(e){b(e)}return t}async function Re(){let e=K(),t={messages:0,errors:0},r=h();try{let i=W(n(),`session-env`),a;try{a=await r.readdir(i)}catch{return t}let o=a.filter(e=>e.isDirectory()).map(e=>W(i,e.name));for(let n of o)try{(await r.stat(n)).mtime<e&&(await r.rm(n,{recursive:!0,force:!0}),t.messages++)}catch{t.errors++}await Y(i,r)}catch(e){b(e)}return t}async function ze(){let e=K(),t={messages:0,errors:0},r=h(),i=W(n(),`debug`),a;try{a=await r.readdir(i)}catch{return t}for(let n of a)if(!(!n.isFile()||!n.name.endsWith(`.txt`)||n.name===`latest`))try{await J(W(i,n.name),e,r)&&t.messages++}catch{t.errors++}return t}var Z=1440*60*1e3;async function Q(){let e=W(n(),`.npm-cache-cleanup`);try{let t=await G.stat(e);if(Date.now()-t.mtimeMs<Z){g(`npm cache cleanup: skipping, ran recently`);return}}catch{}try{await C(e,{retries:0,realpath:!1})}catch{g(`npm cache cleanup: skipping, lock held`);return}g(`npm cache cleanup: starting`);let r=W(ke(),`.npm`,`_cacache`),i=Date.now();try{let n=await import(`./lib-inCisXen.js`).then(e=>t(e.default,1)),a=i-Z,o=n.ls.stream(r),s=[];for await(let e of o)e.key.includes(`@anthropic-ai/claude-`)&&s.push({key:e.key,time:e.time});let c=new Map;for(let e of s){let t=e.key.lastIndexOf(`@`),n=t>0?e.key.slice(0,t):e.key,r=c.get(n)??[];r.push(e),c.set(n,r)}let l=[];for(let[,e]of c){e.sort((e,t)=>t.time-e.time);for(let t=0;t<e.length;t++){let n=e[t];(n.time<a||t>=5)&&l.push(n.key)}}await Promise.all(l.map(e=>n.rm.entry(r,e))),await G.writeFile(e,new Date().toISOString());let u=Date.now()-i;l.length>0?g(`npm cache cleanup: Removed ${l.length} old @anthropic-ai entries in ${u}ms`):g(`npm cache cleanup: completed in ${u}ms`),_(`tengu_npm_cache_cleanup`,{success:!0,durationMs:u,entriesRemoved:l.length})}catch(e){b(e),_(`tengu_npm_cache_cleanup`,{success:!1,durationMs:Date.now()-i})}finally{await w(e,{realpath:!1}).catch(()=>{})}}async function Be(){let e=W(n(),`.version-cleanup`);try{let t=await G.stat(e);if(Date.now()-t.mtimeMs<Z){g(`version cleanup: skipping, ran recently`);return}}catch{}try{await C(e,{retries:0,realpath:!1})}catch{g(`version cleanup: skipping, lock held`);return}g(`version cleanup: starting (throttled)`);try{await V(),await G.writeFile(e,new Date().toISOString())}catch(e){b(e)}finally{await w(e,{realpath:!1}).catch(()=>{})}}async function Ve(){let{errors:e}=I();if(e.length>0&&p(`cleanupPeriodDays`)){g(`Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.`);return}await Pe(),await Fe(),await X(),await Le(),await Re(),await ze(),await B(),await k(K());let t=await N(K());t>0&&_(`tengu_worktree_cleanup`,{removed:t}),process.env.USER_TYPE===`ant`&&await Q()}s(),U(),Te();var He=(De(),e(Oe)),Ue=1440*60*1e3,$=600*1e3;function We(){Ce(),import(`./extractMemories-B-yrLjpP.js`).then(({initExtractMemories:e})=>{e()}).catch(()=>{}),A(),Ee(),a()&&He.ensureDeepLinkProtocolRegistered();let e=!0;async function t(){if(a()&&o()>Date.now()-1e3*60){setTimeout(t,$).unref();return}if(e&&(e=!1,await Ve()),a()&&o()>Date.now()-1e3*60){setTimeout(t,$).unref();return}await V()}setTimeout(t,$).unref(),process.env.USER_TYPE===`ant`&&setInterval(()=>{Q(),Be()},Ue).unref()}export{Ae as n,We as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as e,E as t,s as n,v as r}from"./git-C0IuvuIy.js";import{
|
|
1
|
+
import{C as e,E as t,s as n,v as r}from"./git-C0IuvuIy.js";import{b as i,h as a,p as o}from"./startupProfiler-CBcN1Chw.js";import{homedir as s}from"os";import{join as c,sep as l}from"path";import{stat as u}from"fs/promises";i(),t(),r();var d=10080*60*1e3,f=1e3;function p(e){let t=[`This session was opened by an external deep link in ${g(e.cwd)}`];if(e.repo){let n=e.lastFetch?a(e.lastFetch):`never`,r=!e.lastFetch||Date.now()-e.lastFetch.getTime()>d;t.push(`Resolved ${e.repo} from local clones · last fetched ${n}${r?` — CLAUDE.md may be stale`:``}`)}return e.prefillLength&&t.push(e.prefillLength>f?`The prompt below (${o(e.prefillLength)} chars) was supplied by the link — scroll to review the entire prompt before pressing Enter.`:`The prompt below was supplied by the link — review carefully before pressing Enter.`),t.join(`
|
|
2
2
|
`)}async function m(t){let r=await n(t);if(!r)return;let i=await e(r),[a,o]=await Promise.all([h(c(r,`FETCH_HEAD`)),i?h(c(i,`FETCH_HEAD`)):Promise.resolve(void 0)]);return a&&o?a>o?a:o:a??o}async function h(e){try{let{mtime:t}=await u(e);return t}catch{return}}function g(e){let t=s();return e===t?`~`:e.startsWith(t+l)?`~`+e.slice(t.length):e}export{m as n,p as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Ct as t,cn as n,ot as r}from"./state-sIHsFpDu.js";import{E as i,O as a}from"./debug-otxXY3j-.js";import{n as o,r as s}from"./analytics-DqMQntaB.js";import{c,s as l}from"./types-KeqFPzY5.js";import{i as u,o as d}from"./stringUtils-KZoO4GUd.js";import{Ar as f,Fr as p,Oi as m,Si as h,Tr as g,Vr as _,jr as v}from"./loadAgentsDir-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Ct as t,cn as n,ot as r}from"./state-sIHsFpDu.js";import{E as i,O as a}from"./debug-otxXY3j-.js";import{n as o,r as s}from"./analytics-DqMQntaB.js";import{c,s as l}from"./types-KeqFPzY5.js";import{i as u,o as d}from"./stringUtils-KZoO4GUd.js";import{Ar as f,Fr as p,Oi as m,Si as h,Tr as g,Vr as _,jr as v}from"./loadAgentsDir-DC4jN6-f.js";import{randomUUID as y}from"crypto";import{mkdir as b,readFile as x,writeFile as S}from"fs/promises";function C(e){let t=e?.message?.content;if(!t)return`Branched conversation`;let n=typeof t==`string`?t:t.find(e=>e.type===`text`)?.text;return n&&n.replace(/\s+/g,` `).trim().slice(0,100)||`Branched conversation`}async function w(e){let n=y(),i=t(),o=g(r()),s=v(n),l=f();await b(o,{recursive:!0,mode:448});let u;try{u=await x(l)}catch{throw Error(`No conversation to branch`)}if(u.length===0)throw Error(`No conversation to branch`);let d=c(u),p=d.filter(e=>_(e)&&!e.isSidechain),m=d.filter(e=>e.type===`content-replacement`&&e.sessionId===i).flatMap(e=>e.replacements);if(p.length===0)throw Error(`No messages to branch`);let h=null,C=[],w=[];for(let e of p){let t={...e,sessionId:n,parentUuid:h,isSidechain:!1,forkedFrom:{sessionId:i,messageUuid:e.uuid}},r={...e,sessionId:n};w.push(r),C.push(a(t)),e.type!==`progress`&&(h=e.uuid)}if(m.length>0){let e={type:`content-replacement`,sessionId:n,replacements:m};C.push(a(e))}return await S(s,C.join(`
|
|
2
2
|
`)+`
|
|
3
3
|
`,{encoding:`utf8`,mode:384}),{sessionId:n,title:e,forkPath:s,serializedMessages:w,contentReplacementRecords:m}}async function T(e){let t=`${e} (Branch)`;if((await m(t,{exact:!0})).length===0)return t;let n=await m(`${e} (Branch`),r=new Set([1]),i=RegExp(`^${u(e)} \\(Branch(?: (\\d+))?\\)$`);for(let e of n){let t=e.customTitle?.match(i);t&&(t[1]?r.add(parseInt(t[1],10)):r.add(1))}let a=2;for(;r.has(a);)a++;return`${e} (Branch ${a})`}async function E(e,n,r){let i=r?.trim()||void 0,a=t();try{let{sessionId:t,title:r,forkPath:o,serializedMessages:c,contentReplacementRecords:l}=await w(i),u=new Date,d=C(c.find(e=>e.type===`user`)),f=await T(r??d);await h(t,f,o),s(`tengu_conversation_forked`,{message_count:c.length,has_custom_title:!!r});let p={date:u.toISOString().split(`T`)[0],messages:c,fullPath:o,value:u.getTime(),created:u,modified:u,firstPrompt:d,messageCount:c.length,isSidechain:!1,sessionId:t,customTitle:f,contentReplacements:l},m=r?` "${r}"`:``,g=`Branched conversation${m}. You are now in the branch.${`\nTo resume the original: claude -r ${a}`}`;return n.resume?(await n.resume(t,p,`fork`),e(g,{display:`system`})):e(`Branched conversation${m}. Resume with: /resume ${t}`),null}catch(t){return e(`Failed to branch conversation: ${t instanceof Error?t.message:`Unknown error occurred`}`),null}}e((()=>{n(),o(),l(),p(),i(),d()}))();export{E as call,C as deriveFirstPrompt};
|
|
@@ -5,4 +5,4 @@ import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWe
|
|
|
5
5
|
`)};if(t===``||t===`once`){let e=new Date().toISOString();d(n,e,`utf8`),_();let t=h();return{type:`text`,value:[`## Cache break scheduled`,``,`Marker written: \`${n}\``,`Timestamp: ${e}`,``,`The next API call will append a random nonce to the system prompt,`,`causing a cache miss. The marker is removed automatically after use.`,``,"To cancel before the next call: `/break-cache --clear`","For every call: `/break-cache always`",``,`Total breaks this session: ${t.totalBreaks}`,``,`_How it works: Anthropic prompt cache keys on the system-prompt prefix hash._`,`_A unique nonce invalidates the hash, forcing a fresh compute._`].join(`
|
|
6
6
|
`)}}return{type:`text`,value:[`Unknown scope: "${t}"`,``,y].join(`
|
|
7
7
|
`)}}var y,b,x,S=e((()=>{i(),n(),y=[`Usage: /break-cache [scope]`,``,` (no args) Schedule a one-time cache break for the next API call`,` once Same as no args`,` always Enable persistent cache-break mode (every request)`,` off Disable always mode and clear any pending marker`,` --clear Clear the pending once marker (cancel before next call)`,` status Show current break-cache status and stats`,``,`How it works:`,` The Anthropic prompt cache keys on the system-prompt prefix hash.`,` A unique nonce invalidates the hash, forcing a fresh compute.`,` This is useful when you want to ensure a clean context window.`].join(`
|
|
8
|
-
`),b={type:`local-jsx`,name:`break-cache`,description:`Manage prompt-cache breaking. Open actions or run: once, status, always, off`,isHidden:!1,isEnabled:()=>!r(),argumentHint:`[once|status|always|off|--clear]`,bridgeSafe:!0,getBridgeInvocationError:e=>e.trim()?void 0:`Use /break-cache once/status/always/off over Remote Control.`,load:()=>import(`./panel-
|
|
8
|
+
`),b={type:`local-jsx`,name:`break-cache`,description:`Manage prompt-cache breaking. Open actions or run: once, status, always, off`,isHidden:!1,isEnabled:()=>!r(),argumentHint:`[once|status|always|off|--clear]`,bridgeSafe:!0,getBridgeInvocationError:e=>e.trim()?void 0:`Use /break-cache once/status/always/off over Remote Control.`,load:()=>import(`./panel-BY6q16am.js`)},x={type:`local`,name:`break-cache`,description:`Force the next (or all) API call(s) to miss prompt cache. Scopes: once, status, always, off`,isHidden:!1,isEnabled:()=>r(),supportsNonInteractive:!0,bridgeSafe:!0,load:async()=>({call:v})}}));export{f as a,p as i,x as n,S as o,v as r,b as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-
|
|
2
|
-
`).filter(e=>e.length>0):[];return(0,B.jsx)(a,{title:`Remote Control`,onCancel:C,hideInputGuide:!0,children:(0,B.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,B.jsxs)(r,{children:[`This session is available via Remote Control`,b?` at ${b}`:``,`.`]}),f&&w.length>0&&(0,B.jsx)(c,{flexDirection:`column`,children:w.map((e,t)=>(0,B.jsx)(r,{children:e},t))}),(0,B.jsxs)(c,{flexDirection:`column`,children:[(0,B.jsx)(i,{isFocused:u===0,children:(0,B.jsx)(r,{children:`Disconnect this session`})}),(0,B.jsx)(i,{isFocused:u===1,children:(0,B.jsx)(r,{children:f?`Hide QR code`:`Show QR code`})}),(0,B.jsx)(i,{isFocused:u===2,children:(0,B.jsx)(r,{children:`Continue`})})]}),(0,B.jsx)(r,{dimColor:!0,children:`Enter to select · Esc to continue`})]})})}async function I(){let{waitForPolicyLimitsToLoad:e,isPolicyAllowed:t}=await import(`./policyLimits-
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{l as u,p as d}from"./debug-otxXY3j-.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{fC as m,lC as h,sS as g,uC as _,uS as v}from"./loadAgentsDir-DC4jN6-f.js";import{t as y}from"./useKeybinding-DPOUuymz.js";import{a as b,t as x}from"./bridgeConfig-Di9LziJ3.js";import{n as S,r as C,s as w,t as T}from"./bridgeEnabled-z1fPRzzV.js";import{a as E,i as D,n as O}from"./types-C0nqJFkV.js";import{t as k}from"./lib-Cf16LgKj.js";import{i as A,n as j}from"./envLessBridgeConfig-YNTOVEqU.js";import{n as M,r as N}from"./RemoteCallout-CwI1mLQ9.js";function P({onDone:e,name:t}){let n=m(),r=_(e=>e.replBridgeConnected),i=_(e=>e.replBridgeEnabled),a=_(e=>e.replBridgeOutboundOnly),[o,s]=(0,z.useState)(!1);return(0,z.useEffect)(()=>{if((r||i)&&!a){s(!0);return}let o=!1;return(async()=>{let r=await I();if(!o){if(r){p(`tengu_bridge_command`,{action:`preflight_failed`}),e(r,{display:`system`});return}if(N()){n(e=>e.showRemoteCallout?e:{...e,showRemoteCallout:!0,replBridgeInitialName:t}),e(``,{display:`system`});return}p(`tengu_bridge_command`,{action:`connect`}),n(e=>e.replBridgeEnabled&&!e.replBridgeOutboundOnly?e:{...e,replBridgeEnabled:!0,replBridgeExplicit:!0,replBridgeOutboundOnly:!1,replBridgeInitialName:t}),e(`Remote Control connecting…`,{display:`system`})}})(),()=>{o=!0}},[]),o?(0,B.jsx)(F,{onDone:e}):null}function F({onDone:e}){v(`bridge-disconnect-dialog`);let t=m(),n=_(e=>e.replBridgeSessionUrl),s=_(e=>e.replBridgeConnectUrl),l=_(e=>e.replBridgeSessionActive),[u,d]=(0,z.useState)(2),[f,h]=(0,z.useState)(!1),[g,y]=(0,z.useState)(``),b=l?n:s;(0,z.useEffect)(()=>{if(!f||!b){y(``);return}(0,R.toString)(b,{type:`utf8`,errorCorrectionLevel:`L`,small:!0}).then(y).catch(()=>y(``))},[f,b]);function x(){t(e=>e.replBridgeEnabled?{...e,replBridgeEnabled:!1,replBridgeExplicit:!1,replBridgeOutboundOnly:!1}:e),p(`tengu_bridge_command`,{action:`disconnect`}),e(D,{display:`system`})}function S(){h(e=>!e)}function C(){e(void 0,{display:`skip`})}o({"select:next":()=>d(e=>(e+1)%3),"select:previous":()=>d(e=>(e-1+3)%3),"select:accept":()=>{u===0?x():u===1?S():C()}},{context:`Select`});let w=g?g.split(`
|
|
2
|
+
`).filter(e=>e.length>0):[];return(0,B.jsx)(a,{title:`Remote Control`,onCancel:C,hideInputGuide:!0,children:(0,B.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,B.jsxs)(r,{children:[`This session is available via Remote Control`,b?` at ${b}`:``,`.`]}),f&&w.length>0&&(0,B.jsx)(c,{flexDirection:`column`,children:w.map((e,t)=>(0,B.jsx)(r,{children:e},t))}),(0,B.jsxs)(c,{flexDirection:`column`,children:[(0,B.jsx)(i,{isFocused:u===0,children:(0,B.jsx)(r,{children:`Disconnect this session`})}),(0,B.jsx)(i,{isFocused:u===1,children:(0,B.jsx)(r,{children:f?`Hide QR code`:`Show QR code`})}),(0,B.jsx)(i,{isFocused:u===2,children:(0,B.jsx)(r,{children:`Continue`})})]}),(0,B.jsx)(r,{dimColor:!0,children:`Enter to select · Esc to continue`})]})})}async function I(){let{waitForPolicyLimitsToLoad:e,isPolicyAllowed:t}=await import(`./policyLimits-C-oHygGe.js`);if(await e(),!t(`allow_remote_control`))return`Remote Control is disabled by your organization's policy.`;let n=await S();if(n)return n;let r=w();if(r){let{isAssistantMode:e}=await import(`./assistant-B2_c5C4T.js`);e()&&(r=!1)}return(r?await j():T())||(x()?(d(`[bridge] Prerequisites passed, enabling bridge`),null):O)}async function L(e,t,n){return(0,B.jsx)(P,{onDone:e,name:n.trim()||void 0})}var R,z,B;e((()=>{R=k(),n(),z=t(n(),1),b(),C(),A(),E(),s(),M(),g(),y(),f(),h(),u(),B=l()}))();export{L as call};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Jt as t,on as n}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Jt as t,on as n}from"./paths-CEAy4QCs.js";import{l as r,u as i}from"./oauth-CdZEzMww.js";function a(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function o(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function s(){return a()??t()?.accessToken}function c(){return o()??r().BASE_API_URL}function l(){return!!o()}var u=e((()=>{i(),n()}));export{u as a,a as i,c as n,l as o,o as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,n as t,o as n,t as r}from"./bridgeConfig-Di9LziJ3.js";e();export{r as getBridgeAccessToken,t as getBridgeBaseUrl,n as isSelfHostedBridge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./bridgeEnabled-z1fPRzzV.js";t();export{n as checkBridgeMinVersion,e as getBridgeDisabledReason};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t}from"./envUtils-BWeoiL4Y.js";import{S as n,Zt as r,_ as i,an as a,dn as o,g as s,l as c,on as l}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t}from"./envUtils-BWeoiL4Y.js";import{S as n,Zt as r,_ as i,an as a,dn as o,g as s,l as c,on as l}from"./paths-CEAy4QCs.js";import{i as u,r as d}from"./semver-Di5OaTd5.js";import{a as f,o as p}from"./bridgeConfig-Di9LziJ3.js";function m(){return p()?!0:_()&&i(`tengu_ccr_bridge`,!1)}async function h(){return p()?!0:_()&&await c(`tengu_ccr_bridge`)}async function g(){return p()?null:_()?v()?y()?.organizationUuid?await c(`tengu_ccr_bridge`)?null:`Remote Control is not yet enabled for your account.`:"Unable to determine your organization for Remote Control eligibility. Run `claude auth login` to refresh your account information.":"Remote Control requires a full-scope login token. Long-lived tokens (from `claude setup-token` or CLAUDE_CODE_OAUTH_TOKEN) are limited to inference-only for security reasons. Run `claude auth login` to use Remote Control.":"Remote Control requires a claude.ai subscription. Run `claude auth login` to sign in with your claude.ai account."}function _(){try{return o()}catch{return!1}}function v(){try{return a()}catch{return!1}}function y(){try{return r()}catch{return}}function b(){return i(`tengu_bridge_repl_v2`,!1)}function x(){return i(`tengu_bridge_repl_v2_cse_shim_enabled`,!0)}function S(){{let e=s(`tengu_bridge_min_version`,{minVersion:`0.0.0`});if(e.minVersion&&u(`2.8.2`,e.minVersion))return`Your version of Claude Code (2.8.2) is too old for Remote Control.\nVersion ${e.minVersion} or higher is required. Run \`claude update\` to update.`}return null}var C=e((()=>{n(),f(),l(),t(),d()}));export{h as a,m as i,g as n,x as o,C as r,b as s,S as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./bridgeMain-DVoobI7G.js";export{e as bridgeMain};
|