claude-code-best 2.7.1 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AddWorkspaceDirectory-C7od6sFQ.js → AddWorkspaceDirectory-V2tF7iCY.js} +1 -1
- package/dist/chunks/{App-EfHjElWP.js → App-DLdRpU7c.js} +1 -1
- package/dist/chunks/ApproveApiKey-B7_TCGwt.js +1 -0
- package/dist/chunks/{ApproveApiKey-CSz0291w.js → ApproveApiKey-DPws3jax.js} +1 -1
- package/dist/chunks/{AssistantSessionChooser-mLIhDlxW.js → AssistantSessionChooser-D6rS0OVe.js} +1 -1
- package/dist/chunks/BackgroundTasksDialog-hGlbm5z5.js +2 -0
- package/dist/chunks/{BypassPermissionsModeDialog-BCdft-m_.js → BypassPermissionsModeDialog-CuEpdRVd.js} +1 -1
- package/dist/chunks/{ClaudeInChromeOnboarding-BPlrCIo-.js → ClaudeInChromeOnboarding-CTTKMRbt.js} +1 -1
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-D8fk-Ib5.js → ClaudeMdExternalIncludesDialog-B-GkVoA_.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DxJK9NiM.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-LPZ97jsm.js +1 -0
- package/dist/chunks/{DesktopHandoff-BQwx7qWA.js → DesktopHandoff-BjPylhOT.js} +1 -1
- package/dist/chunks/{DevChannelsDialog-CujM8Ivu.js → DevChannelsDialog-c4YVqBX9.js} +1 -1
- package/dist/chunks/{DiffDialog-Byv1UJvS.js → DiffDialog-I5wuXw2C.js} +1 -1
- package/dist/chunks/{Doctor-Cv7wbi6C.js → Doctor-Cr_MlSPc.js} +1 -1
- package/dist/chunks/Doctor-hgf3dMAW.js +1 -0
- package/dist/chunks/{ExitFlow-DKusdm_v.js → ExitFlow-Bz5grDWv.js} +2 -2
- package/dist/chunks/{Feedback-Diw8XUr-.js → Feedback-COgMI5tY.js} +1 -1
- package/dist/chunks/Grove-Bwmghb-e.js +1 -0
- package/dist/chunks/{Grove-CAi037VV.js → Grove-m57x4tY1.js} +1 -1
- package/dist/chunks/{HybridTransport-CP0RopXu.js → HybridTransport-Bok4-Ptt.js} +1 -1
- package/dist/chunks/{ITermBackend-RvD4VX7c.js → ITermBackend-BBSP-NNa.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-Bhlgysxl.js → InvalidConfigDialog-uTSuSBvO.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-dGStgJZN.js → InvalidSettingsDialog-B-Os12-H.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-D5a9ysw2.js → MCPConnectionManager-y97Inszc.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-B_z9pZ_8.js → McpParsingWarnings-DMFUZw92.js} +1 -1
- package/dist/chunks/MessageSelector-DwdAC2io.js +3 -0
- package/dist/chunks/{Messages-DTmFVhRG.js → Messages-FEBcX-cT.js} +3 -3
- package/dist/chunks/{Onboarding-BoAtphYb.js → Onboarding-B8qMJaBh.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-DA7Ne7Mj.js → OverageCreditUpsell-DnFv5z-z.js} +1 -1
- package/dist/chunks/PluginSettings-B_xVgTTp.js +17 -0
- package/dist/chunks/{PromptInputHelpMenu-B__j9zE6.js → PromptInputHelpMenu-CoMkWchC.js} +1 -1
- package/dist/chunks/QueryEngine-C7r7O-hH.js +1 -0
- package/dist/chunks/{REPL-B1BS9jwx.js → REPL-CmJdJrGO.js} +36 -36
- package/dist/chunks/REPL-nP7H_-qa.js +1 -0
- package/dist/chunks/{RemoteCallout-Bwe1ESr9.js → RemoteCallout-4JOZROfT.js} +1 -1
- package/dist/chunks/{RemoteSessionManager-BKD4YmzY.js → RemoteSessionManager-jcPnywfY.js} +2 -2
- package/dist/chunks/ResumeConversation-CZ2Uedkf.js +1 -0
- package/dist/chunks/{SSETransport-D3e5KNL3.js → SSETransport-kEH_p4Yq.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-C64oVFUD.js +1 -0
- package/dist/chunks/SentryErrorBoundary-2E2qGV11.js +1 -0
- package/dist/chunks/{SentryErrorBoundary-D-YZTGQG.js → SentryErrorBoundary-97iY7Nb7.js} +1 -1
- package/dist/chunks/Settings-CuljH0mu.js +2 -0
- package/dist/chunks/{TeleportProgress-C3Ubx1Se.js → TeleportProgress-Ctdqi7iS.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-D_ax3xQy.js → TeleportRepoMismatchDialog-DyTBg1YD.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-DeVKIXQp.js → TeleportResumeWrapper-B66clYsG.js} +1 -1
- package/dist/chunks/{ThemePicker-DKmIL5Ku.js → ThemePicker-WKmYvrqz.js} +1 -1
- package/dist/chunks/{TmuxBackend-Bm_cRJ2x.js → TmuxBackend-OKX2NP14.js} +2 -2
- package/dist/chunks/{TrustDialog-ClXFMKj6.js → TrustDialog-0anSIf-G.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-SdQADfvA.js → ValidationErrorsList-CfgC1KJb.js} +1 -1
- package/dist/chunks/{WelcomeV2-BijS6i2Z.js → WelcomeV2-BMHXiNt3.js} +1 -1
- package/dist/chunks/{WindowsTerminalBackend-CGEQ5ClB.js → WindowsTerminalBackend-fCSGVe4W.js} +2 -2
- package/dist/chunks/{add-dir-B7kleB6k.js → add-dir-CMtuW667.js} +1 -1
- package/dist/chunks/{agentDisplay-Dr1XbOAu.js → agentDisplay-CgYKW3G7.js} +1 -1
- package/dist/chunks/{agents-CpLvvWpO.js → agents-CdqcGm9o.js} +7 -7
- package/dist/chunks/{agents-Dy5YOJC9.js → agents-D90TsYOf.js} +1 -1
- package/dist/chunks/{ant-gwf-4eGN.js → ant-DZjimiuz.js} +1 -1
- package/dist/chunks/{api-CDmgYrwN.js → api-CQWbpxLP.js} +1 -1
- package/dist/chunks/api-quOYYOhi.js +1 -0
- package/dist/chunks/assistant-B5_xx00q.js +1 -0
- package/dist/chunks/{assistant-BULedprW.js → assistant-CEmC_DlU.js} +1 -1
- package/dist/chunks/{assistant-1usDIXtk.js → assistant-CyVcFPIR.js} +1 -1
- package/dist/chunks/auth-CjtaiRtF.js +1 -0
- package/dist/chunks/{auth-CvHVr2A5.js → auth-DsQEVs9W.js} +1 -1
- package/dist/chunks/{autoMode-DSMM2seL.js → autoMode-DEbM9UaE.js} +1 -1
- package/dist/chunks/{autonomy-TtBO2TAe.js → autonomy-Clap6Swl.js} +1 -1
- package/dist/chunks/{autonomy-Dj6Nzxus.js → autonomy-lNpGnyiu.js} +3 -3
- package/dist/chunks/{autonomyPanel-CbmU7lPg.js → autonomyPanel-BqEvfI0e.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-D-jt-ocx.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-Cp2RvmEN.js → backgroundHousekeeping-KvOpP_4M.js} +2 -2
- package/dist/chunks/{branch-Cj5TGroO.js → branch-CSYB04xC.js} +1 -1
- package/dist/chunks/{bridge-CsqJAoEg.js → bridge-DDgASypO.js} +2 -2
- package/dist/chunks/bridgeConfig-BdZVEqhx.js +1 -0
- package/dist/chunks/{bridgeConfig-pjDV5Z2l.js → bridgeConfig-DjC4oig1.js} +1 -1
- package/dist/chunks/{bridgeEnabled-D9jI6X-w.js → bridgeEnabled-Csn6Ym3k.js} +1 -1
- package/dist/chunks/bridgeEnabled-DLRIH243.js +1 -0
- package/dist/chunks/{bridgeMain-CNmR9iDD.js → bridgeMain-B5wsmwkN.js} +11 -11
- package/dist/chunks/bridgeMain-BN0Sag35.js +1 -0
- package/dist/chunks/{bridgeMessaging-DN0X35NX.js → bridgeMessaging-ChOzzVWj.js} +1 -1
- package/dist/chunks/{btw-BOg0RTKl.js → btw-BgjcOoeo.js} +1 -1
- package/dist/chunks/{buddy-BFuPeIxM.js → buddy-C1wE3noR.js} +1 -1
- package/dist/chunks/{bypassPermissionsKillswitch-kxVnIVRs.js → bypassPermissionsKillswitch-C0diGLRB.js} +1 -1
- package/dist/chunks/{caches-BumkMuGA.js → caches-CIoVGP24.js} +2 -2
- package/dist/chunks/caches-DMYdTEAr.js +1 -0
- package/dist/chunks/{ccrClient-BI1QPLmN.js → ccrClient-C1msT1E3.js} +1 -1
- package/dist/chunks/changeDetector-DoOBZOt1.js +1 -0
- package/dist/chunks/{channelNotification-CoZSFUlb.js → channelNotification-CWlu9ZWs.js} +1 -1
- package/dist/chunks/channelNotification-oZ6vG5R5.js +1 -0
- package/dist/chunks/{chrome-C_5EZcdc.js → chrome-Bo9uNZ7s.js} +1 -1
- package/dist/chunks/clear-BxdX_MUP.js +1 -0
- package/dist/chunks/client-BSoJ_vaA.js +1 -0
- package/dist/chunks/color-CkzktPHt.js +1 -0
- package/dist/chunks/commands-hyVX9-Lh.js +1 -0
- package/dist/chunks/commitAttribution-BwT0TbYF.js +1 -0
- package/dist/chunks/{commitAttribution-iKd8bTOI.js → commitAttribution-csu3NO7Y.js} +1 -1
- package/dist/chunks/{compact-B6Muofhz.js → compact-DNGIVZRN.js} +3 -3
- package/dist/chunks/{companion-B_LrjSk5.js → companion-Diuav3lA.js} +1 -1
- package/dist/chunks/{config-CQd4IkXo.js → config-B25IrkTA.js} +1 -1
- package/dist/chunks/{config-CJd9kJ57.js → config-ODoYZY8i.js} +1 -1
- package/dist/chunks/{context-qAHTuazZ.js → context-CZ5enuPE.js} +1 -1
- package/dist/chunks/{context-noninteractive-DZsSp-ES.js → context-noninteractive-62P5EnN5.js} +1 -1
- package/dist/chunks/context-noninteractive-CjuzL9q5.js +1 -0
- package/dist/chunks/conversation-DyhWeHw2.js +1 -0
- package/dist/chunks/conversation-uY-V0SNK.js +1 -0
- package/dist/chunks/{copy-B2jhZndZ.js → copy-9JLr2-Xs.js} +1 -1
- package/dist/chunks/{createSSHSession-CKdoEmAg.js → createSSHSession-B1hTuDpB.js} +1 -1
- package/dist/chunks/createSession-Qurw-N4x.js +1 -0
- package/dist/chunks/{createSession-WkBw7wdn.js → createSession-fzjzy0aS.js} +1 -1
- package/dist/chunks/cron-DwR6OJuW.js +1 -0
- package/dist/chunks/{cronJitterConfig-2u6WAlti.js → cronJitterConfig-9OmmYmIT.js} +1 -1
- package/dist/chunks/{crossProjectResume-CjJISRBQ.js → crossProjectResume-B6efoIur.js} +3 -3
- package/dist/chunks/datadog-C-llbwzP.js +1 -0
- package/dist/chunks/{datadog-YsyhnDmr.js → datadog-SSxsxcC-.js} +1 -1
- package/dist/chunks/{desktop-BN9pHpK_.js → desktop-CQnMcbex.js} +1 -1
- package/dist/chunks/{diff-BTtUFuf-.js → diff-uAwKYa51.js} +1 -1
- package/dist/chunks/{doctor-BKBb426q.js → doctor-CBF0fkBF.js} +1 -1
- package/dist/chunks/{effort-ClhxMqY6.js → effort-F-bhAM2u.js} +1 -1
- package/dist/chunks/{entry-CJlJ47nP.js → entry-DHN_Gr1b.js} +3 -3
- package/dist/chunks/envLessBridgeConfig-CDVtIEWT.js +1 -0
- package/dist/chunks/{envLessBridgeConfig-C9UUbQCo.js → envLessBridgeConfig-Dg0hNsdi.js} +1 -1
- package/dist/chunks/{exit-DxY3yJrp.js → exit-CqcvZJwI.js} +1 -1
- package/dist/chunks/{export-DS2esu8D.js → export-c6WoGlsG.js} +1 -1
- package/dist/chunks/{exportRenderer-DX2L5fQ7.js → exportRenderer-CaegIP5N.js} +1 -1
- package/dist/chunks/{extra-usage-XJxfHsbe.js → extra-usage-Cj8fokgc.js} +1 -1
- package/dist/chunks/extra-usage-Dk-wcvAu.js +1 -0
- package/dist/chunks/{extra-usage-core-D84ifgBo.js → extra-usage-core-sHzc4eE1.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-fxqxHnIt.js → extra-usage-noninteractive-D0kqrqsg.js} +1 -1
- package/dist/chunks/{extraUsage-P_NGI1-I.js → extraUsage-CbkqfG1U.js} +1 -1
- package/dist/chunks/extractMemories-BP8Opsbp.js +1 -0
- package/dist/chunks/{fast-CpN8lLnE.js → fast-DS3iQ1CH.js} +1 -1
- package/dist/chunks/fast-DklfqySb.js +1 -0
- package/dist/chunks/{feedback-CqRsOG3c.js → feedback-QJynmG5q.js} +1 -1
- package/dist/chunks/{firstPartyEventLogger-CM0V7Uev.js → firstPartyEventLogger-DlW8BUXq.js} +1 -1
- package/dist/chunks/{flushGate-DNutWuOE.js → flushGate-CK5B9-Zn.js} +1 -1
- package/dist/chunks/gates-6amRNsYl.js +1 -0
- package/dist/chunks/{gates-C4JvRq4i.js → gates-vlrMjO-X.js} +1 -1
- package/dist/chunks/{gemini-B0M6SQSG.js → gemini-B5ZRjDrh.js} +1 -1
- package/dist/chunks/{generateRecap-DhDOgXn3.js → generateRecap-SgRMdsyN.js} +1 -1
- package/dist/chunks/{generateSessionName-CoFR2wgK.js → generateSessionName-sZFzpwsq.js} +1 -1
- package/dist/chunks/{githubRepoPathMapping-DGiSNykv.js → githubRepoPathMapping-DUGvTwPB.js} +1 -1
- package/dist/chunks/{goal-DRb6pPAp.js → goal-Dy-GGn9r.js} +3 -3
- package/dist/chunks/{grok-emDua_hT.js → grok-BG4_buNt.js} +1 -1
- package/dist/chunks/{growthbook-COAneL48.js → growthbook-Br1dDRtd.js} +1 -1
- package/dist/chunks/{heapdump-CA6DHA8G.js → heapdump-B9PVKMxa.js} +1 -1
- package/dist/chunks/{help-XXY7deZm.js → help-BfWF7xij.js} +1 -1
- package/dist/chunks/hooks-BVrhxysz.js +1 -0
- package/dist/chunks/{hooks-C6zZYnDi.js → hooks-KK32pxq3.js} +2 -2
- package/dist/chunks/{hostAdapter-DZbdeXCV.js → hostAdapter-TBJav3vX.js} +1 -1
- package/dist/chunks/{ide-BLRNkzVx.js → ide-BU1A79BE.js} +2 -2
- package/dist/chunks/{inboundAttachments-60kD5Qt_.js → inboundAttachments-D4tBPCB8.js} +1 -1
- package/dist/chunks/inboundAttachments-DWJplT9p.js +1 -0
- package/dist/chunks/initReplBridge-99sUBVEk.js +1 -0
- package/dist/chunks/{insights-BBugI3tW.js → insights-lDHodCMG.js} +1 -1
- package/dist/chunks/{install-CuVHbwyW.js → install-Bg4ZgW81.js} +1 -1
- package/dist/chunks/{install-github-app-ByyzrlM9.js → install-github-app-RLbUq5EL.js} +2 -2
- package/dist/chunks/{install-slack-app-CJGtmacz.js → install-slack-app-CHmIwsbm.js} +1 -1
- package/dist/chunks/{instrumentation-C8zvzMg1.js → instrumentation-BCiV3SKX.js} +3 -3
- package/dist/chunks/{job-DBf6aPQX.js → job-xOGf0j5Q.js} +1 -1
- package/dist/chunks/{keybindings-Bi7SMp5-.js → keybindings-DMbReZ4p.js} +1 -1
- package/dist/chunks/{lang-CVDkUhjk.js → lang-A6LUGP_7.js} +1 -1
- package/dist/chunks/language-Bzp5KDCE.js +1 -0
- package/dist/chunks/{language-BYeqMX74.js → language-CGfURU2y.js} +1 -1
- package/dist/chunks/{launchAgentsPlatform-BKqxMFFn.js → launchAgentsPlatform-Dbpm7Jyo.js} +1 -1
- package/dist/chunks/{launchAutofixPr-CauX6gOB.js → launchAutofixPr-RZfqx5eM.js} +3 -3
- package/dist/chunks/{launchLocalMemory-Brrd_BJC.js → launchLocalMemory-DIntbsvg.js} +2 -2
- package/dist/chunks/{launchLocalVault-DtAn656A.js → launchLocalVault-CCUw0ayu.js} +3 -3
- package/dist/chunks/{launchMemoryStores-x7_Id7Yr.js → launchMemoryStores-QJTh8KSP.js} +1 -1
- package/dist/chunks/{launchOnboarding-DkamFByn.js → launchOnboarding--Pe30AYd.js} +1 -1
- package/dist/chunks/{launchSchedule-DjNQNxW4.js → launchSchedule-DjN1RbRX.js} +1 -1
- package/dist/chunks/{launchSkillStore-D2GUGhDD.js → launchSkillStore-CcKmVDz1.js} +1 -1
- package/dist/chunks/{launchTeleport-DTfhiZkf.js → launchTeleport-BKlEo0yF.js} +3 -3
- package/dist/chunks/{launchVault-BZ2Po4r8.js → launchVault-C7UHA-IG.js} +1 -1
- package/dist/chunks/{loadAgentsDir-C_wFhytF.js → loadAgentsDir-ClTeo0nk.js} +560 -560
- package/dist/chunks/loadAgentsDir-CshktEpX.js +1 -0
- package/dist/chunks/loadPluginHooks-DVZmzYLl.js +1 -0
- package/dist/chunks/localSearch-BtLNJRij.js +1 -0
- package/dist/chunks/{localSearch-B0p0_bjP.js → localSearch-Koc8naSr.js} +1 -1
- package/dist/chunks/login-BngE89_j.js +1 -0
- package/dist/chunks/{login-C1uE6Pg9.js → login-C3MZQTDL.js} +1 -1
- package/dist/chunks/{logoV2Utils-BJHvwGup.js → logoV2Utils-DAIIwt5R.js} +1 -1
- package/dist/chunks/logout-CXZBaUen.js +1 -0
- package/dist/chunks/{magicDocs-DPZzG7Z2.js → magicDocs-C_inI3JJ.js} +1 -1
- package/dist/chunks/{main-CNwSLti2.js → main-qqcmncHA.js} +36 -36
- package/dist/chunks/{mappers-Dxs_kNJH.js → mappers-7BSMbYvH.js} +1 -1
- package/dist/chunks/{mcp-CbDDqdzF.js → mcp-DRBiobrN.js} +1 -1
- package/dist/chunks/mcp-DV8Prhgi.js +1 -0
- package/dist/chunks/mcp-HQ8-nEZ1.js +6 -0
- package/dist/chunks/{mcpServer-BJNjQXsU.js → mcpServer-CLIYAgGs.js} +1 -1
- package/dist/chunks/{mcpServer-Py4Iz9Hx.js → mcpServer-DS0yRfcu.js} +1 -1
- package/dist/chunks/memory-Cz_JaFLF.js +1 -0
- package/dist/chunks/{mode-CqGusjoT.js → mode-Kx0kSZkr.js} +1 -1
- package/dist/chunks/model-Bwvn_acH.js +1 -0
- package/dist/chunks/{model-BBULcn7y.js → model-CNXtfiLg.js} +1 -1
- package/dist/chunks/{onChangeAppState-BkRihYau.js → onChangeAppState-C4ic-Mib.js} +1 -1
- package/dist/chunks/{openai-yNI_zoao.js → openai-CGGSfpPh.js} +3 -3
- package/dist/chunks/{overageCreditGrant-Cbh0_fbM.js → overageCreditGrant-BqW_6R5v.js} +1 -1
- package/dist/chunks/{panelCall-t10Sud9A.js → panelCall-DgPjuhQf.js} +1 -1
- package/dist/chunks/{passes-D_iS6DaC.js → passes-sYE91Vtr.js} +1 -1
- package/dist/chunks/{paths-Ci1iwL5Y.js → paths-DO4WOQtD.js} +2 -2
- package/dist/chunks/{permissions-CHvu4-yX.js → permissions-BPerbf1I.js} +3 -3
- package/dist/chunks/{pipeTransport-EAYXsubu.js → pipeTransport-CW9zF_UN.js} +1 -1
- package/dist/chunks/{plan-CP5nq_EB.js → plan-CDKBVRw6.js} +1 -1
- package/dist/chunks/{plugin-8apy_RBT.js → plugin-C6US4b8W.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-ClrgF5b3.js → pluginAutoupdate-BQKtcAhC.js} +1 -1
- package/dist/chunks/{pluginBlocklist-B1LVo0j_.js → pluginBlocklist-B8DKXi0i.js} +1 -1
- package/dist/chunks/{pluginCliCommands-eqyMBWcP.js → pluginCliCommands-DWCeXYTl.js} +1 -1
- package/dist/chunks/{pluginFlagging-BiTDVP10.js → pluginFlagging-DFMlWw2P.js} +1 -1
- package/dist/chunks/{pluginOperations-gZ-iCmhu.js → pluginOperations-CKmwDC3G.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-DCDWHam6.js → pluginStartupCheck-D6IbyWKe.js} +1 -1
- package/dist/chunks/pluginStartupCheck-cYnLsWOs.js +1 -0
- package/dist/chunks/{plugins-BAIVqfi8.js → plugins-BwZIRMh_.js} +1 -1
- package/dist/chunks/policyLimits-CFLBtFh3.js +1 -0
- package/dist/chunks/{pollConfig-_2W7bHoW.js → pollConfig-C3NjXYFc.js} +1 -1
- package/dist/chunks/{poor-Dii0mpOW.js → poor-BHhbua95.js} +1 -1
- package/dist/chunks/poorMode-CCK7Ek5w.js +1 -0
- package/dist/chunks/{poorMode-aDmmvJ_e.js → poorMode-mtlnXU-z.js} +1 -1
- package/dist/chunks/{print-BwSmcUQu.js → print-kxnXkqGc.js} +12 -12
- package/dist/chunks/{privacy-settings-DaAgSLKw.js → privacy-settings-DjY1annR.js} +1 -1
- package/dist/chunks/{processBashCommand-BZ1_JKu4.js → processBashCommand-BrqLqSva.js} +1 -1
- package/dist/chunks/processSlashCommand-DJGdVGbK.js +6 -0
- package/dist/chunks/prompt-BZjXpviP.js +1 -0
- package/dist/chunks/{prompt-6ZKyqv6z.js → prompt-CfM_xGPc.js} +1 -1
- package/dist/chunks/prompt-CusKF4-p.js +1 -0
- package/dist/chunks/{promptEditor-Dz41P-3I.js → promptEditor-FI_ewCpV.js} +2 -2
- package/dist/chunks/{protocolHandler-CHGHjfdf.js → protocolHandler-B7ybKpgJ.js} +1 -1
- package/dist/chunks/{rate-limit-options-BlU9av7g.js → rate-limit-options-DPJMNNou.js} +1 -1
- package/dist/chunks/{rcDebugLog-C42A0pX1.js → rcDebugLog-CwU_wJBE.js} +1 -1
- package/dist/chunks/{referral-IIcY3jkp.js → referral-Da4mpbd3.js} +1 -1
- package/dist/chunks/{refresh-DTGEx7X_.js → refresh-B6X4xb9r.js} +1 -1
- package/dist/chunks/{registerProtocol-BkNncGMI.js → registerProtocol-D8fFnceq.js} +1 -1
- package/dist/chunks/registry-y_z3pTg3.js +1 -0
- package/dist/chunks/{release-notes-BxzOD-zP.js → release-notes--tnd4K56.js} +1 -1
- package/dist/chunks/{releaseNotes-C8KQGZHq.js → releaseNotes-BPA229-J.js} +2 -2
- package/dist/chunks/{reload-plugins-gYyC6_g8.js → reload-plugins-yQ7tEUVh.js} +1 -1
- package/dist/chunks/{remote-env-CEJH5aJh.js → remote-env-CER5UxTX.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-Dte7ZUAN.js → remoteBridgeCore-Bi31i8gt.js} +1 -1
- package/dist/chunks/{remoteControlServer-GN-eDbEz.js → remoteControlServer-oUAcWB4i.js} +1 -1
- package/dist/chunks/{rename-BEU6BNRp.js → rename-BTngRRZU.js} +1 -1
- package/dist/chunks/{resume-D36S2rXg.js → resume-DZHKfBmm.js} +2 -2
- package/dist/chunks/{runtimeObserver-CDMCeww2.js → runtimeObserver-B4KekIF0.js} +1 -1
- package/dist/chunks/{runtimeObserver-DaKaKNVW.js → runtimeObserver-BUOcYxiK.js} +2 -2
- package/dist/chunks/sandbox-adapter-C--j-c76.js +1 -0
- package/dist/chunks/{sandbox-toggle-BPO26t48.js → sandbox-toggle-DLBL7myN.js} +1 -1
- package/dist/chunks/searchExtraTools-CBYp5XeI.js +1 -0
- package/dist/chunks/{sentry-9EbPa1Xu.js → sentry-B7ZBc8fA.js} +1 -1
- package/dist/chunks/{session-D18B22u4.js → session-DWYQk9YN.js} +1 -1
- package/dist/chunks/{sessionDiscovery-B-OTvXJf.js → sessionDiscovery-BP0nv36F.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-DVilA3Mm.js +1 -0
- package/dist/chunks/sessionMemory-cMgcTxtP.js +1 -0
- package/dist/chunks/{sessionMemory-Ctauybzs.js → sessionMemory-pT4lc1C-.js} +1 -1
- package/dist/chunks/sessionMemoryUtils-BgYf2OvX.js +1 -0
- package/dist/chunks/sessionObserver-CzyEF7mg.js +1 -0
- package/dist/chunks/{sessionObserver-ardnTJ37.js → sessionObserver-D4SV0Ar3.js} +1 -1
- package/dist/chunks/sessionStorage-CXBgVAx-.js +1 -0
- package/dist/chunks/{sessionTitle-DEKvIVCK.js → sessionTitle-CkrnWEW1.js} +1 -1
- package/dist/chunks/{sessionTracing-CJUUEWZ4.js → sessionTracing-Caw-kvQr.js} +1 -1
- package/dist/chunks/{settingsSync-BWt3oUR7.js → settingsSync-Dn_lGonC.js} +1 -1
- package/dist/chunks/{setup-CDxkPTCq.js → setup-DGkOT4DX.js} +2 -2
- package/dist/chunks/{setup-BECFDOT9.js → setup-Dihjl7jo.js} +1 -1
- package/dist/chunks/{setup-CmCTB2T_.js → setup-II1titXI.js} +1 -1
- package/dist/chunks/{shadowedRuleDetection-BbALfdxE.js → shadowedRuleDetection-DASW3j9H.js} +1 -1
- package/dist/chunks/{sideQuestion-BHK6dd1q.js → sideQuestion-C1qbLTAL.js} +1 -1
- package/dist/chunks/sink-BSPyC453.js +1 -0
- package/dist/chunks/{sink-Do5fWbUC.js → sink-CqOAfFlL.js} +1 -1
- package/dist/chunks/{sinks-Dc9V7k6a.js → sinks-BT_lBY6T.js} +2 -2
- package/dist/chunks/sinks-CpuRIC3H.js +1 -0
- package/dist/chunks/{skill-learning-BHW9G3Dn.js → skill-learning-kh0HKn6u.js} +1 -1
- package/dist/chunks/skillChangeDetector-DQuNepIV.js +1 -0
- package/dist/chunks/{skillGapStore-Wa7s6orv.js → skillGapStore-B1gUQXhE.js} +2 -2
- package/dist/chunks/{skillGapStore-DVMbI2yy.js → skillGapStore-CFmLJlYm.js} +1 -1
- package/dist/chunks/{skillGenerator-CBuoIFsH.js → skillGenerator-DIAwRpPg.js} +2 -2
- package/dist/chunks/skillLearning-Bxu1Uzl-.js +1 -0
- package/dist/chunks/skillLearning-CxAbHYEk.js +1 -0
- package/dist/chunks/{skillPanel-2w82nkOl.js → skillPanel-B9zJLHKV.js} +3 -3
- package/dist/chunks/{skillSearchPanel-7BhCBkdh.js → skillSearchPanel-C1O9sxYS.js} +2 -2
- package/dist/chunks/{skills-D5rMEo2w.js → skills-C6_3snFY.js} +1 -1
- package/dist/chunks/{sprites-uNWgVZT6.js → sprites-59l7vF4l.js} +1 -1
- package/dist/chunks/{stats-D0CJB2HV.js → stats-BmGdg4nj.js} +1 -1
- package/dist/chunks/{status-nte1Arzy.js → status-KLPT7uYP.js} +1 -1
- package/dist/chunks/{statusNoticeHelpers-Lqf99003.js → statusNoticeHelpers-DuqyBY-N.js} +1 -1
- package/dist/chunks/{tag-BnvWS9HE.js → tag-0vahEnrx.js} +1 -1
- package/dist/chunks/{tasks-CEs-pxkC.js → tasks-zVPemGv7.js} +1 -1
- package/dist/chunks/teamHelpers-B83RwCCC.js +1 -0
- package/dist/chunks/{teamHelpers-D8R_gGLb.js → teamHelpers-CXAmvFco.js} +1 -1
- package/dist/chunks/teammateModeSnapshot-AdUFmPGC.js +1 -0
- package/dist/chunks/{teammateModeSnapshot-Bdra3VIJ.js → teammateModeSnapshot-CdiglTzv.js} +1 -1
- package/dist/chunks/teleport-D6PvdjPy.js +1 -0
- package/dist/chunks/{templateJobs-BDKGtmr3.js → templateJobs-Ox5ZTKjW.js} +1 -1
- package/dist/chunks/{terminalSetup-Bbvq-9Xl.js → terminalSetup-Dh70ynBX.js} +1 -1
- package/dist/chunks/{terminalSetup-C1X-sXwp.js → terminalSetup-hLCi-2uB.js} +1 -1
- package/dist/chunks/{theme-DXv6bV7f.js → theme-DxgUVq9C.js} +1 -1
- package/dist/chunks/thinkback-C5vFU8dM.js +1 -0
- package/dist/chunks/{thinkback-CMsW7mvG.js → thinkback-DWgU7Qhr.js} +1 -1
- package/dist/chunks/{thinkback-play-CFdkpzlj.js → thinkback-play-CDzY6Ux4.js} +1 -1
- package/dist/chunks/{toolEventObserver-CF7T7FBH.js → toolEventObserver-DPoMAJwr.js} +1 -1
- package/dist/chunks/{toolEventObserver-DDJV8cvW.js → toolEventObserver-jO6-mlFU.js} +1 -1
- package/dist/chunks/toolPool-BmA-BnAq.js +1 -0
- package/dist/chunks/{toolPool-BJv0sBnR.js → toolPool-Dgn1Clq8.js} +1 -1
- package/dist/chunks/{trustedDevice-C9nJhhyZ.js → trustedDevice-CYR5AgSB.js} +1 -1
- package/dist/chunks/{trustedDevice-C5s2au0k.js → trustedDevice-D35gYkBT.js} +1 -1
- package/dist/chunks/{ultrareviewCommand-BEv1_AS1.js → ultrareviewCommand-o4GjzoXK.js} +2 -2
- package/dist/chunks/{undercover-DPVt2WN7.js → undercover-B4xr62Ux.js} +1 -1
- package/dist/chunks/undercover-nakrQDLh.js +1 -0
- package/dist/chunks/{updateCCB-D-4naIUu.js → updateCCB-Cthn50OV.js} +1 -1
- package/dist/chunks/{upgrade-CSld83v7.js → upgrade-D4Id4ebd.js} +1 -1
- package/dist/chunks/upgrade-DJTCV8sr.js +1 -0
- package/dist/chunks/{upload-DVlE8SRp.js → upload-BFDXvdfb.js} +1 -1
- package/dist/chunks/{usage-D4Ubnttz.js → usage-Csbso5mD.js} +1 -1
- package/dist/chunks/{usage-B_bY46ep.js → usage-DxudeFLL.js} +1 -1
- package/dist/chunks/{useMainLoopModel-D3tJJC3y.js → useMainLoopModel-CEqP4HOc.js} +1 -1
- package/dist/chunks/{useManagePlugins-B4kcqcyY.js → useManagePlugins-BmS3Adja.js} +1 -1
- package/dist/chunks/{useMergedTools-CTQl4cdV.js → useMergedTools-wR6Bglqq.js} +1 -1
- package/dist/chunks/{useSearchInput-JPayBRPC.js → useSearchInput-BhKAGgEN.js} +1 -1
- package/dist/chunks/{useSettingsErrors-YTgPxnRZ.js → useSettingsErrors-CjK3P-Ki.js} +1 -1
- package/dist/chunks/{useVoice-CaBv3G13.js → useVoice-DP1hHBWA.js} +1 -1
- package/dist/chunks/{util-Q70qdjeS.js → util-CMSErQoz.js} +1 -1
- package/dist/chunks/utils-CAQfwbv8.js +1 -0
- package/dist/chunks/{validatePlugin-6lg9B564.js → validatePlugin-_g0AqWZG.js} +1 -1
- package/dist/chunks/{vim-zOsQBIp4.js → vim-8y-2Q09k.js} +1 -1
- package/dist/chunks/{voice-DBQevAhk.js → voice-BJAsr0K-.js} +1 -1
- package/dist/chunks/{voiceModeEnabled-CjBjjeNR.js → voiceModeEnabled-BD9GZhQ3.js} +1 -1
- package/dist/chunks/voiceModeEnabled-DZbxaFIg.js +1 -0
- package/dist/chunks/{voiceStreamSTT-B8CTbb_6.js → voiceStreamSTT-B1T-8adN.js} +1 -1
- package/dist/chunks/voiceStreamSTT-B39XaGOU.js +1 -0
- package/dist/chunks/{web-tools-CGqBqo07.js → web-tools-DVIvcP41.js} +1 -1
- package/dist/chunks/{workerRegistry-Bx6FvTZF.js → workerRegistry-60_UCyc3.js} +1 -1
- package/dist/chunks/worktree-DNK8NprA.js +1 -0
- package/dist/chunks/{xml-CVF7dWfi.js → xml-CTdKuU6f.js} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-Cc5SaLqs.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-OkUSMj0I.js +0 -2
- package/dist/chunks/ClaudeMdExternalIncludesDialog-BbPaorIs.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-Dyv4mI_o.js +0 -1
- package/dist/chunks/Doctor-CRrE5Sf4.js +0 -1
- package/dist/chunks/Grove-CgX5Fdeh.js +0 -1
- package/dist/chunks/MessageSelector-CEvbAZGv.js +0 -3
- package/dist/chunks/PluginSettings-D3bQRsge.js +0 -17
- package/dist/chunks/QueryEngine-CMcQGyql.js +0 -1
- package/dist/chunks/REPL-C9f3ToGu.js +0 -1
- package/dist/chunks/ResumeConversation-DxqbAKA4.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-BVAhywUI.js +0 -1
- package/dist/chunks/SentryErrorBoundary-M1ipwe1n.js +0 -1
- package/dist/chunks/Settings-D5EWYL40.js +0 -2
- package/dist/chunks/api-BdbBnz5c.js +0 -1
- package/dist/chunks/assistant-BMviqf0l.js +0 -1
- package/dist/chunks/auth-ORBmEqnH.js +0 -1
- package/dist/chunks/backgroundHousekeeping-BAvSPaZ5.js +0 -1
- package/dist/chunks/bridgeConfig-B49H_B9L.js +0 -1
- package/dist/chunks/bridgeEnabled-DsG2JvIr.js +0 -1
- package/dist/chunks/bridgeMain-DYCShrcV.js +0 -1
- package/dist/chunks/caches-BsYvQnWV.js +0 -1
- package/dist/chunks/changeDetector-By54zja0.js +0 -1
- package/dist/chunks/channelNotification-Cx82K1CD.js +0 -1
- package/dist/chunks/clear-BQr2zTyP.js +0 -1
- package/dist/chunks/client-BbavFXJZ.js +0 -1
- package/dist/chunks/color-DOsgZO2n.js +0 -1
- package/dist/chunks/commands-CfwfGt3T.js +0 -1
- package/dist/chunks/commitAttribution-CH9C_hoL.js +0 -1
- package/dist/chunks/context-noninteractive-DCYvLxWx.js +0 -1
- package/dist/chunks/conversation-DYUVAAQt.js +0 -1
- package/dist/chunks/conversation-NrAy2em3.js +0 -1
- package/dist/chunks/createSession-Czx7_nf6.js +0 -1
- package/dist/chunks/cron-g_P3I5uT.js +0 -1
- package/dist/chunks/datadog-QSR9B7CZ.js +0 -1
- package/dist/chunks/envLessBridgeConfig-DSJqg3Ox.js +0 -1
- package/dist/chunks/extra-usage-DaxUQk9I.js +0 -1
- package/dist/chunks/extractMemories-B3cTWsph.js +0 -1
- package/dist/chunks/fast-CHiQGMBE.js +0 -1
- package/dist/chunks/gates-DvjyKZVA.js +0 -1
- package/dist/chunks/hooks-DOej0jqp.js +0 -1
- package/dist/chunks/inboundAttachments-BBYxcnvj.js +0 -1
- package/dist/chunks/initReplBridge-Dt2aQBia.js +0 -1
- package/dist/chunks/language-BoKr5ylY.js +0 -1
- package/dist/chunks/loadAgentsDir-whRB0phu.js +0 -1
- package/dist/chunks/loadPluginHooks-CYZjzxyO.js +0 -1
- package/dist/chunks/localSearch-DAwFmV2Y.js +0 -1
- package/dist/chunks/login-DOyB64Rv.js +0 -1
- package/dist/chunks/logout-DTPo3Myl.js +0 -1
- package/dist/chunks/mcp-CVnFM6nR.js +0 -6
- package/dist/chunks/mcp-CzfQB8BT.js +0 -1
- package/dist/chunks/memory-BdUqEKio.js +0 -1
- package/dist/chunks/model-BOc_-7m0.js +0 -1
- package/dist/chunks/pluginStartupCheck-EjLvCXru.js +0 -1
- package/dist/chunks/policyLimits-Cdp3QwZ1.js +0 -1
- package/dist/chunks/poorMode-DzEL0cu0.js +0 -1
- package/dist/chunks/processSlashCommand-v1Rvzxwn.js +0 -6
- package/dist/chunks/prompt-DPqKtC0b.js +0 -1
- package/dist/chunks/prompt-WjMHPk90.js +0 -1
- package/dist/chunks/registry-CBqb7wbi.js +0 -1
- package/dist/chunks/sandbox-adapter-DqTuhgud.js +0 -1
- package/dist/chunks/searchExtraTools-Brae4wmG.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-BXsK8Dwf.js +0 -1
- package/dist/chunks/sessionMemory-Bv-AYifm.js +0 -1
- package/dist/chunks/sessionMemoryUtils-D-bzdsAT.js +0 -1
- package/dist/chunks/sessionObserver-j8D9hidw.js +0 -1
- package/dist/chunks/sessionStorage-Cw5ibYWA.js +0 -1
- package/dist/chunks/sink-DFWgcGHX.js +0 -1
- package/dist/chunks/sinks-BnkxTOU9.js +0 -1
- package/dist/chunks/skillChangeDetector-DwAvG835.js +0 -1
- package/dist/chunks/skillLearning-BI2YDG3K.js +0 -1
- package/dist/chunks/skillLearning-BZMJRJPp.js +0 -1
- package/dist/chunks/teamHelpers-D4vCj2hP.js +0 -1
- package/dist/chunks/teammateModeSnapshot-BDJ1JTcl.js +0 -1
- package/dist/chunks/teleport-RxTr4aCi.js +0 -1
- package/dist/chunks/thinkback-DRJBz3Is.js +0 -1
- package/dist/chunks/toolPool-0zCdXfEu.js +0 -1
- package/dist/chunks/undercover-DYa00dVv.js +0 -1
- package/dist/chunks/upgrade-BHj8ALep.js +0 -1
- package/dist/chunks/utils-Cr-x1Oyd.js +0 -1
- package/dist/chunks/voiceModeEnabled-DK6u8Aaj.js +0 -1
- package/dist/chunks/voiceStreamSTT-CCkOfmdI.js +0 -1
- package/dist/chunks/worktree-DPpgPLLG.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-DR8-3Aex.js";import{d as t,s as n,u as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,cn as a,ot as o}from"./state-sIHsFpDu.js";import{Cc as s,Jt as c,Pt as l,S as u,dc as d,la as f,nn as p,on as m,ua as h,v as g,yc as _}from"./paths-Ci1iwL5Y.js";import{Q as v,U as y,Z as b,l as x,p as S,z as C}from"./debug-otxXY3j-.js";import{n as ee,r as w}from"./analytics-DqMQntaB.js";import{F as T,P as E,i as te,m as ne,v as D}from"./git-C0IuvuIy.js";import{g as O,m as k}from"./log-DSV4Ht5l.js";import{n as A,t as j}from"./sleep-C6koP5Ka.js";import{Aa as re,Cy as ie,Fa as ae,Fr as M,Ia as N,Ka as oe,La as P,Ma as se,Mo as F,Na as I,Oa as ce,Pa as le,Po as L,Qa as R,Ra as z,Sy as ue,Td as de,Uo as fe,Wa as pe,br as B,ja as me,ka as he,qo as V,xd as ge}from"./loadAgentsDir-C_wFhytF.js";import{O as H,_ as _e,d as U,k as ve,n as ye,t as W}from"./rcDebugLog-C42A0pX1.js";import{a as G,c as K,d as be,f as xe,o as q,r as Se,s as J,u as Y}from"./debugUtils-l8nsUZ6R.js";import{a as Ce,i as we}from"./trustedDevice-C5s2au0k.js";import{a as X,i as Te,n as Z,o as Q,t as $}from"./bridgeConfig-pjDV5Z2l.js";import{a as Ee,o as De,r as Oe,s as ke,t as Ae}from"./bridgeEnabled-D9jI6X-w.js";import{i as je,t as Me}from"./assistant-BULedprW.js";import{t as Ne}from"./capacityWake-DtmDHwEt.js";import{n as Pe,t as Fe}from"./pollConfig-_2W7bHoW.js";import{a as Ie,n as Le,r as Re,t as ze}from"./workSecret-DJu7k30X.js";import{a as Be,i as Ve,n as He,t as Ue}from"./createSession-WkBw7wdn.js";import{i as We,n as Ge}from"./envLessBridgeConfig-C9UUbQCo.js";import{n as Ke,o as qe}from"./mappers-Dxs_kNJH.js";import{n as Je,r as Ye,t as Xe}from"./sessionTitle-DEKvIVCK.js";import{a as Ze,i as Qe,n as $e,o as et,r as tt,t as nt}from"./bridgeMessaging-DN0X35NX.js";import{t as rt}from"./HybridTransport-CP0RopXu.js";import{n as it,r as at,t as ot}from"./flushGate-DNutWuOE.js";import{hostname as st}from"os";import{randomUUID as ct}from"crypto";a(),k(),D(),_(),h(),m(),u(),X(),ie(),Oe(),fe(),pe(),M(),Ve(),We(),Ke(),Ye(),ae(),x(),W(),E(),ee(),b(),K(),ge(),Ce(),H(),U(),n(),q(),y(),j(),he();var lt=2e3,ut=6e4,dt=900*1e3,ft=0;async function pt(e){let{dir:n,machineName:i,branch:a,gitRepoUrl:o,title:s,baseUrl:c,sessionIngressUrl:l,workerType:u,getAccessToken:d,createSession:f,archiveSession:p,getCurrentTitle:m=()=>s,toSDKMessages:h=()=>{throw Error(`BridgeCoreParams.toSDKMessages not provided. Pass it if you use writeMessages() or initialMessages — daemon callers that only use writeSdkMessages() never hit this path.`)},onAuth401:g,getPollIntervalConfig:_=()=>Pe,initialHistoryCap:y=200,initialMessages:b,previouslyFlushedUUIDs:x,onInboundMessage:ee,onPermissionResponse:E,onInterrupt:te,onSetModel:ne,onSetMaxThinkingTokens:D,onSetPermissionMode:O,onStateChange:k,onUserMessage:A,perpetual:j,initialSSESequenceNum:ie=0}=e,ae=++ft,{writeBridgePointer:M,clearBridgePointer:N,readBridgePointer:oe}=await import(`./bridgePointer-Clcvh52n.js`),P=j?await oe(n):null,F=P?.source===`repl`?P:null;S(`[bridge:repl] initBridgeCore #${ae} starting (initialMessages=${b?.length??0}${F?` perpetual prior=env:${F.environmentId}`:``})`);let I=le({baseUrl:c,getAccessToken:d,runnerVersion:`2.7.1`,onDebug:S,onAuth401:g,getTrustedDeviceToken:we}),L=process.env.USER_TYPE===`ant`?se(I):I,R={dir:n,machineName:i,branch:a,gitRepoUrl:o,maxSessions:1,spawnMode:`single-session`,verbose:!1,sandbox:!1,bridgeId:ct(),workerType:u,environmentId:ct(),reuseEnvironmentId:F?.environmentId,apiBaseUrl:c,sessionIngressUrl:l},z,ue;try{let e=await L.registerBridgeEnvironment(R);z=e.environment_id,ue=e.environment_secret}catch(e){return J(`registration_failed`,`[bridge:repl] Environment registration failed: ${C(e)}`),F&&await N(n),k?.(`failed`,C(e)),null}S(`[bridge:repl] Environment registered: ${z}`),T(`info`,`bridge_repl_env_registered`),w(`tengu_bridge_repl_env_registered`,{});async function fe(e,t){if(z!==e)return S(`[bridge:repl] Env mismatch (requested ${e}, got ${z}) — cannot reconnect in place`),!1;let n=xe(t),r=n===t?[t]:[t,n];for(let e of r)try{return await L.reconnectSession(z,e),S(`[bridge:repl] Reconnected session ${e} in place on env ${z}`),!0}catch(t){S(`[bridge:repl] reconnectSession(${e}) failed: ${C(t)}`)}return S(`[bridge:repl] reconnectSession exhausted — falling through to fresh session`),!1}let pe=F?await fe(F.environmentId,F.sessionId):!1;F&&!pe&&await N(n);let B;if(pe&&F){if(B=F.sessionId,S(`[bridge:repl] Perpetual session reused: ${B}`),b&&x)for(let e of b)x.add(e.uuid)}else{let e=await f({environmentId:z,title:s,gitRepoUrl:o,branch:a,signal:AbortSignal.timeout(15e3)});if(!e)return S(`[bridge:repl] Session creation failed, deregistering environment`),w(`tengu_bridge_repl_session_failed`,{}),await L.deregisterEnvironment(z).catch(()=>{}),k?.(`failed`,`Session creation failed`),null;B=e,S(`[bridge:repl] Session created: ${B}`)}await M(n,{sessionId:B,environmentId:z,source:`repl`}),T(`info`,`bridge_repl_session_created`),w(`tengu_bridge_repl_started`,{has_initial_messages:!!(b&&b.length>0),inProtectedNamespace:t()});let he=new Set;if(b)for(let e of b)he.add(e.uuid);let V=new nt(2e3);for(let e of he)V.add(e);let ge=new nt(2e3),H=new AbortController,U=null;_e(e=>{H.signal.aborted||U?.reportMetadata(e)},{replayCurrent:!0});let W=0,G=pe?ie:0,K=null,q=null,Se=Ne(H.signal),Y=Se.wake,Ce=Se.signal,X=new ot,Te=!A,Z=0,Q=null;async function $(){if(Q)return Q;Q=Ee();try{return await Q}finally{Q=null}}async function Ee(){if(Z++,ye(`doReconnect: attempt=${Z}/3 envId=${z} sessionId=${B} workId=${K}`),W++,S(`[bridge:repl] Reconnecting after env lost (attempt ${Z}/3)`),Z>3)return S(`[bridge:repl] Environment reconnect limit reached (3), giving up`),!1;if(U){let e=U.getLastSequenceNum();e>G&&(G=e),U.close(),U=null}if(Y(),X.drop(),K){let e=K;if(await L.stopWork(z,e,!1).catch(()=>{}),K!==e)return S(`[bridge:repl] Poll loop recovered during stopWork await — deferring to it`),Z=0,!0;K=null,q=null}if(H.signal.aborted)return S(`[bridge:repl] Reconnect aborted by teardown`),!1;let e=z;R.reuseEnvironmentId=e;try{let e=await L.registerBridgeEnvironment(R);z=e.environment_id,ue=e.environment_secret}catch(e){return R.reuseEnvironmentId=void 0,S(`[bridge:repl] Environment re-registration failed: ${C(e)}`),!1}if(R.reuseEnvironmentId=void 0,S(`[bridge:repl] Re-registered: requested=${e} got=${z}`),H.signal.aborted)return S(`[bridge:repl] Reconnect aborted after env registration, cleaning up`),await L.deregisterEnvironment(z).catch(()=>{}),!1;if(U!==null)return S(`[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it`),Z=0,!0;if(await fe(e,B))return w(`tengu_bridge_repl_reconnected_in_place`,{}),Z=0,!0;if(z!==e&&w(`tengu_bridge_repl_env_expired_fresh_session`,{}),await p(B),H.signal.aborted)return S(`[bridge:repl] Reconnect aborted after archive, cleaning up`),await L.deregisterEnvironment(z).catch(()=>{}),!1;let t=m(),r=await f({environmentId:z,title:t,gitRepoUrl:o,branch:a,signal:AbortSignal.timeout(15e3)});return r?H.signal.aborted?(S(`[bridge:repl] Reconnect aborted after session creation, cleaning up`),await p(r),!1):(B=r,de(be(r)).catch(()=>{}),G=0,ge.clear(),Te=!A,S(`[bridge:repl] Re-created session: ${B}`),await M(n,{sessionId:B,environmentId:z,source:`repl`}),x?.clear(),Z=0,!0):(S(`[bridge:repl] Session creation failed during reconnection`),!1)}function De(){return d()}function Oe(){let e=X.end();if(e.length===0)return;if(!U){S(`[bridge:repl] Cannot drain ${e.length} pending message(s): no transport`);return}for(let t of e)V.add(t.uuid);let t=h(e).map(e=>({...e,session_id:B}));S(`[bridge:repl] Drained ${e.length} pending message(s) after flush`),U.writeBatch(t)}let ke=null;function Ae(){ke?.()}function je(e){if(ye(`handleTransportPermanentClose: code=${e} transport=${U?`exists`:`null`} pollAborted=${H.signal.aborted}`),S(`[bridge:repl] Transport permanently closed: code=${e}`),w(`tengu_bridge_repl_ws_closed`,{code:e}),U){let e=U.getLastSequenceNum();e>G&&(G=e),U=null}Y();let t=X.drop();if(t>0&&S(`[bridge:repl] Dropping ${t} pending message(s) on transport close (code=${e})`,{level:`warn`}),e===1e3){k?.(`failed`,`session ended`),H.abort(),Ae();return}k?.(`reconnecting`,`Remote Control connection lost (code ${e})`),S(`[bridge:repl] Transport reconnect budget exhausted (code=${e}), attempting env reconnect`),$().then(t=>{t||H.signal.aborted||(S(`[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down`),w(`tengu_bridge_repl_reconnect_failed`,{close_code:e}),k?.(`failed`,`reconnection failed`),Ae())})}let Me;process.env.USER_TYPE===`ant`&&process.platform!==`win32`&&(Me=()=>{S(`[bridge:repl] SIGUSR2 received — forcing doReconnect() for testing`),$()},process.on(`SIGUSR2`,Me));let Fe=null;process.env.USER_TYPE===`ant`&&me({fireClose:e=>{if(!Fe){S(`[bridge:debug] fireClose: no transport wired yet`);return}S(`[bridge:debug] fireClose(${e}) — injecting`),Fe(e)},forceReconnect:()=>{S(`[bridge:debug] forceReconnect — injecting`),$()},injectFault:re,wakePollLoop:Y,describe:()=>`env=${z} session=${B} transport=${U?.getStateLabel()??`null`} workId=${K??`null`}`}),mt({api:L,getCredentials:()=>({environmentId:z,environmentSecret:ue}),signal:H.signal,getPollIntervalConfig:_,onStateChange:k,getWsState:()=>U?.getStateLabel()??`null`,isAtCapacity:()=>U!==null,capacitySignal:Ce,onFatalError:Ae,getHeartbeatInfo:()=>!K||!q?null:{environmentId:z,workId:K,sessionToken:q},onHeartbeatFatal:e=>{if(S(`[bridge:repl] heartbeatWork fatal (status=${e.status}) — tearing down work item for fast re-dispatch`),U){let e=U.getLastSequenceNum();e>G&&(G=e),U.close(),U=null}X.drop(),K&&L.stopWork(z,K,!1).catch(e=>{S(`[bridge:repl] stopWork after heartbeat fatal: ${C(e)}`)}),K=null,q=null,Y(),k?.(`reconnecting`,`Work item lease expired, fetching fresh token`)},async onEnvironmentLost(){return await $()?{environmentId:z,environmentSecret:ue}:null},onWorkReceived:(e,t,i,a)=>{if(U?.isConnectedStatus()&&S(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${i})`),S(`[bridge:repl] Work received: workId=${i} workSessionId=${e} currentSessionId=${B} match=${Ie(e,B)}`),M(n,{sessionId:B,environmentId:z,source:`repl`}),!Ie(e,B)){S(`[bridge:repl] Rejecting foreign session: expected=${B} got=${e}`);return}K=i,q=t;let o=a||r(process.env.CLAUDE_BRIDGE_USE_CCR_V2),s;if(!o){if(s=De(),!s){S(`[bridge:repl] No OAuth token available for session ingress, skipping work`);return}ve(s)}if(w(`tengu_bridge_repl_work_received`,{}),U){let e=U;U=null;let t=e.getLastSequenceNum();t>G&&(G=t),e.close()}X.deactivate();let u=e=>Qe(e,{transport:U,sessionId:B,onInterrupt:te,onSetModel:ne,onSetMaxThinkingTokens:D,onSetPermissionMode:O}),d=!1,f=e=>{U=e,e.setOnConnect(()=>{if(U===e){if(S(`[bridge:repl] Ingress transport connected`),w(`tengu_bridge_repl_ws_connected`,{}),!o){let e=De();e&&ve(e)}if(He=!1,!d&&b&&b.length>0){d=!0;let t=y,n=b.filter(e=>Ze(e)&&!x?.has(e.uuid)),r=t>0&&n.length>t?n.slice(-t):n;r.length<n.length&&(S(`[bridge:repl] Capped initial flush: ${n.length} -> ${r.length} (cap=${t})`),w(`tengu_bridge_repl_history_capped`,{eligible_count:n.length,capped_count:r.length}));let i=h(r);if(i.length>0){S(`[bridge:repl] Flushing ${i.length} initial message(s) via transport`);let t=i.map(e=>({...e,session_id:B})),n=e.droppedBatchCount;e.writeBatch(t).then(()=>{if(e.droppedBatchCount>n){S(`[bridge:repl] Initial flush dropped ${e.droppedBatchCount-n} batch(es) — not marking ${i.length} UUID(s) as flushed`);return}if(x)for(let e of i)e.uuid&&x.add(e.uuid)}).catch(e=>S(`[bridge:repl] Initial flush failed: ${e}`)).finally(()=>{U===e&&(Oe(),k?.(`connected`))})}else Oe(),k?.(`connected`)}else X.active||k?.(`connected`)}}),e.setOnData(e=>{try{let t=JSON.parse(e);ye(`ingress: type=${t.type}${t.type===`control_request`?` subtype=${t.request?.subtype} request_id=${t.request_id}`:``}${t.type===`control_response`?` subtype=${t.response?.subtype} request_id=${t.response?.request_id}`:``}${t.type===`user`?` uuid=${t.uuid}`:``}${t.type===`keep_alive`?``:` len=${e.length}`}`)}catch{ye(`ingress (non-JSON): ${String(e).slice(0,200)}`)}tt(e,V,ge,ee,E,u)}),Fe=je,e.setOnClose(t=>{U===e&&(ye(`transport onClose: code=${t} connected=${e.isConnectedStatus()} state=${e.getStateLabel()} seq=${e.getLastSequenceNum()}`),je(t))}),!d&&b&&b.length>0&&X.start(),e.connect()};if(W++,o){let n=ze(c,e),r=W;S(`[bridge:repl] CCR v2: sessionUrl=${n} session=${e} gen=${r}`),at({sessionUrl:n,ingressToken:t,sessionId:e,initialSequenceNum:G}).then(e=>{if(H.signal.aborted){e.close();return}if(r!==W){S(`[bridge:repl] CCR v2: discarding stale handshake gen=${r} current=${W}`),e.close();return}f(e)},e=>{S(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${C(e)}`,{level:`error`}),w(`tengu_bridge_repl_ccr_v2_init_failed`,{}),r===W&&(K&&(L.stopWork(z,K,!1).catch(e=>{S(`[bridge:repl] stopWork after v2 init failure: ${C(e)}`)}),K=null,q=null),Y())})}else{let t=Le(l,e);S(`[bridge:repl] Ingress URL: ${t}`),S(`[bridge:repl] Creating HybridTransport: session=${e}`);let n=s??``;f(it(new rt(new URL(t),{Authorization:`Bearer ${n}`,"anthropic-version":`2023-06-01`},e,()=>({Authorization:`Bearer ${De()??n}`,"anthropic-version":`2023-06-01`}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{k?.(`reconnecting`,`Lost sync with Remote Control — events could not be delivered`),Y()}})))}}});let Re=j?setInterval(()=>{Q||M(n,{sessionId:B,environmentId:z,source:`repl`})},60*6e4):null;Re?.unref?.();let Be=_().session_keepalive_interval_v2_ms,Ve=Be>0?setInterval(()=>{U&&(S(`[bridge:repl] keep_alive sent`),U.write({type:`keep_alive`}).catch(e=>{S(`[bridge:repl] keep_alive write failed: ${C(e)}`)}))},Be):null;Ve?.unref?.();let He=!1;ke=async()=>{if(He){S(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${z} session=${B}`);return}He=!0;let e=Date.now();if(S(`[bridge:repl] Teardown starting: env=${z} session=${B} workId=${K??`none`} transportState=${U?.getStateLabel()??`null`}`),Re!==null&&clearInterval(Re),Ve!==null&&clearInterval(Ve),Me&&process.off(`SIGUSR2`,Me),process.env.USER_TYPE===`ant`&&(ce(),Fe=null),H.abort(),S(`[bridge:repl] Teardown: poll loop aborted`),U){let e=U.getLastSequenceNum();e>G&&(G=e)}if(j){U=null,X.drop(),await M(n,{sessionId:B,environmentId:z,source:`repl`}),S(`[bridge:repl] Teardown (perpetual): leaving env=${z} session=${B} alive on server, duration=${Date.now()-e}ms`);return}let t=U;if(U=null,X.drop(),t){let e={...et(B),session_id:B};t.write(e)}let r=K?L.stopWork(z,K,!0).then(()=>{S(`[bridge:repl] Teardown: stopWork completed`)}).catch(e=>{S(`[bridge:repl] Teardown stopWork failed: ${C(e)}`)}):Promise.resolve();await Promise.all([r,p(B)]),t?.close(),S(`[bridge:repl] Teardown: transport closed`),await L.deregisterEnvironment(z).catch(e=>{S(`[bridge:repl] Teardown deregister failed: ${C(e)}`)}),await N(n),S(`[bridge:repl] Teardown complete: env=${z} duration=${Date.now()-e}ms`)};let Ue=v(()=>ke?.());return S(`[bridge:repl] Ready: env=${z} session=${B}`),k?.(`ready`),{get bridgeSessionId(){return B},get environmentId(){return z},getSSESequenceNum(){let e=U?.getLastSequenceNum()??0;return Math.max(G,e)},sessionIngressUrl:l,writeMessages(e){let t=e.filter(e=>Ze(e)&&!he.has(e.uuid)&&!V.has(e.uuid));if(t.length===0)return;if(!Te)for(let e of t){let t=$e(e);if(t!==void 0&&A?.(t,B)){Te=!0;break}}if(X.enqueue(...t)){S(`[bridge:repl] Queued ${t.length} message(s) during initial flush`);return}if(!U){let e=t.map(e=>e.type).join(`,`);S(`[bridge:repl] Transport not configured, dropping ${t.length} message(s) [${e}] for session=${B}`,{level:`warn`});return}for(let e of t)V.add(e.uuid);S(`[bridge:repl] Sending ${t.length} message(s) via transport`);let n=h(t).map(e=>({...e,session_id:B}));U.writeBatch(n)},writeSdkMessages(e){let t=e.filter(e=>!e.uuid||!V.has(e.uuid));if(t.length===0)return;if(!U){S(`[bridge:repl] Transport not configured, dropping ${t.length} SDK message(s) for session=${B}`,{level:`warn`});return}for(let e of t)e.uuid&&V.add(e.uuid);let n=t.map(e=>({...e,session_id:B}));U.writeBatch(n)},sendControlRequest(e){if(!U){S(`[bridge:repl] Transport not configured, skipping control_request`);return}let t={...e,session_id:B};U.write(t),S(`[bridge:repl] Sent control_request request_id=${e.request_id}`)},sendControlResponse(e){if(!U){S(`[bridge:repl] Transport not configured, skipping control_response`);return}let t={...e,session_id:B};U.write(t),S(`[bridge:repl] Sent control_response`)},sendControlCancelRequest(e){if(!U){S(`[bridge:repl] Transport not configured, skipping control_cancel_request`);return}let t={type:`control_cancel_request`,request_id:e,session_id:B};U.write(t),S(`[bridge:repl] Sent control_cancel_request request_id=${e}`)},sendResult(){if(!U){S(`[bridge:repl] sendResult: skipping, transport not configured session=${B}`);return}U.reportState(`idle`);let e={...et(B),session_id:B};U.write(e),S(`[bridge:repl] Sent result for session=${B}`)},async teardown(){Ue(),await ke?.(),S(`[bridge:repl] Torn down`),w(`tengu_bridge_repl_teardown`,{})}}}async function mt({api:e,getCredentials:t,signal:n,onStateChange:r,onWorkReceived:i,onEnvironmentLost:a,getWsState:o,isAtCapacity:s,capacitySignal:c,onFatalError:l,getPollIntervalConfig:u=()=>Pe,getHeartbeatInfo:d,onHeartbeatFatal:f}){S(`[bridge:repl] Starting work poll loop for env=${t().environmentId}`);let p=0,m=null,h=null,g=0,_=!1;for(;!n.aborted;){let{environmentId:v,environmentSecret:y}=t(),b=u();try{let t=await e.pollForWork(v,y,n,b.reclaim_older_than_ms);if(g=0,p>0&&(S(`[bridge:repl] Poll recovered after ${p} consecutive error(s)`),p=0,m=null,h=null,r?.(`ready`)),!t){let t=_;if(_=!1,s?.()&&c&&!t){let t=b.poll_interval_ms_at_capacity;if(b.non_exclusive_heartbeat_interval_ms>0&&d){w(`tengu_bridge_heartbeat_mode_entered`,{heartbeat_interval_ms:b.non_exclusive_heartbeat_interval_ms});let r=t>0?Date.now()+t:null,i=!1,a=0;for(;!n.aborted&&s()&&(r===null||Date.now()<r);){let t=u();if(t.non_exclusive_heartbeat_interval_ms<=0)break;let n=d();if(!n)break;let r=c();try{await e.heartbeatWork(n.environmentId,n.workId,n.sessionToken)}catch(e){if(S(`[bridge:repl:heartbeat] Failed: ${C(e)}`),e instanceof I){r.cleanup(),w(`tengu_bridge_heartbeat_error`,{status:e.status,error_type:e.status===401||e.status===403?`auth_failed`:`fatal`}),f?(f(e),S(`[bridge:repl:heartbeat] Fatal (status=${e.status}), work state cleared — fast-polling for re-dispatch`)):i=!0;break}}a++,await A(t.non_exclusive_heartbeat_interval_ms,r.signal),r.cleanup()}let o=i?`error`:n.aborted?`shutdown`:s()?r!==null&&Date.now()>=r?`poll_due`:`config_disabled`:`capacity_changed`;if(w(`tengu_bridge_heartbeat_mode_exited`,{reason:o,heartbeat_cycles:a}),!i){o===`poll_due`&&S(`[bridge:repl] Heartbeat poll_due after ${a} cycles — falling through to pollForWork`);continue}}let r=t>0?t:b.non_exclusive_heartbeat_interval_ms;if(r>0){let e=c(),t=Date.now();await A(r,e.signal),e.cleanup();let n=Date.now()-t-r;n>6e4&&(S(`[bridge:repl] At-capacity sleep overran by ${Math.round(n/1e3)}s — process suspension detected, forcing one fast-poll cycle`),w(`tengu_bridge_repl_suspension_detected`,{overrun_ms:n}),_=!0)}}else await A(b.poll_interval_ms_not_at_capacity,n);continue}let a;try{a=Re(t.secret)}catch(n){S(`[bridge:repl] Failed to decode work secret: ${C(n)}`),w(`tengu_bridge_repl_work_secret_failed`,{}),await e.stopWork(v,t.id,!1).catch(()=>{});continue}S(`[bridge:repl] Acknowledging workId=${t.id}`);try{await e.acknowledgeWork(v,t.id,a.session_ingress_token)}catch(e){S(`[bridge:repl] Acknowledge failed workId=${t.id}: ${C(e)}`)}if(t.data.type===`healthcheck`){S(`[bridge:repl] Healthcheck received`);continue}if(t.data.type===`session`){let e=t.data.id;try{z(e,`session_id`)}catch{S(`[bridge:repl] Invalid session_id in work: ${e}`);continue}i(e,a.session_ingress_token,t.id,a.use_code_sessions===!0),S(`[bridge:repl] Work accepted, continuing poll loop`)}}catch(i){if(n.aborted)break;if(i instanceof I&&i.status===404&&a){let e=t().environmentId;if(v!==e){S(`[bridge:repl] Stale poll error for old env=${v}, current env=${e} — skipping onEnvironmentLost`),p=0,m=null;continue}if(g++,S(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${g}/3)`),w(`tengu_bridge_repl_env_lost`,{attempt:g}),g>3){S(`[bridge:repl] Environment re-registration limit reached (3), giving up`),r?.(`failed`,`Environment deleted and re-registration limit reached`),l?.();break}r?.(`reconnecting`,`environment lost, recreating session`);let i=await a();if(n.aborted)break;if(i){p=0,m=null,r?.(`ready`),S(`[bridge:repl] Re-registered environment: ${i.environmentId}`);continue}r?.(`failed`,`Environment deleted and re-registration failed`),l?.();break}if(i instanceof I){let e=N(i.errorType),t=P(i);S(`[bridge:repl] Fatal poll error: ${i.message} (status=${i.status}, type=${i.errorType??`unknown`})${t?` (suppressed)`:``}`),w(`tengu_bridge_repl_fatal_error`,{status:i.status,error_type:i.errorType}),T(e?`info`:`error`,`bridge_repl_fatal_error`,{status:i.status,error_type:i.errorType}),t||r?.(`failed`,e?`session expired · /remote-control to reconnect`:i.message),l?.();break}let s=Date.now();h!==null&&s-h>6e4*2&&(S(`[bridge:repl] Detected system sleep (${Math.round((s-h)/1e3)}s gap), resetting poll error budget`),T(`info`,`bridge_repl_poll_sleep_detected`,{gapMs:s-h}),p=0,m=null),h=s,p++,m===null&&(m=s);let c=s-m,f=G(i),_=Se(i),y=o?.()??`unknown`;if(S(`[bridge:repl] Poll error (attempt ${p}, elapsed ${Math.round(c/1e3)}s, ws=${y}): ${_}`),w(`tengu_bridge_repl_poll_error`,{status:f,consecutiveErrors:p,elapsedMs:c}),p===1&&r?.(`reconnecting`,_),c>=9e5){S(`[bridge:repl] Poll failures exceeded ${dt/1e3}s (${p} errors), giving up`),T(`info`,`bridge_repl_poll_give_up`),w(`tengu_bridge_repl_poll_give_up`,{consecutiveErrors:p,elapsedMs:c,lastStatus:f}),r?.(`failed`,`connection to server lost`);break}let b=Math.min(lt*2**(p-1),ut);if(u().non_exclusive_heartbeat_interval_ms>0){let t=d?.();if(t)try{await e.heartbeatWork(t.environmentId,t.workId,t.sessionToken)}catch{}}await A(b,n)}}S(`[bridge:repl] Work poll loop ended (aborted=${n.aborted}) env=${t().environmentId}`)}x(),y(),q(),K();async function ht(t){let{onInboundMessage:n,onPermissionResponse:r,onInterrupt:a,onSetModel:u,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:_,initialMessages:v,getMessages:y,previouslyFlushedUUIDs:b,initialName:x,perpetual:ee,outboundOnly:w,tags:T}=t??{};if(Y(De),!await Ee())return J(`not_enabled`,`[bridge:repl] Skipping: bridge not enabled`),null;if(!$())return J(`no_oauth`,`[bridge:repl] Skipping: no OAuth tokens`),_?.(`failed`,`/login`),null;if(await R(),!oe(`allow_remote_control`))return J(`policy_denied`,`[bridge:repl] Skipping: allow_remote_control policy not allowed`),_?.(`failed`,`disabled by your organization's policy`),null;if(!Te()){let e=d();if(e.bridgeOauthDeadExpiresAt!=null&&(e.bridgeOauthDeadFailCount??0)>=3&&c()?.expiresAt===e.bridgeOauthDeadExpiresAt)return S(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${e.bridgeOauthDeadFailCount} times)`),null;await l();let t=c();if(t&&t.expiresAt!==null&&t.expiresAt<=Date.now()){J(`oauth_expired_unrefreshable`,`[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)`),_?.(`failed`,`/login`);let e=t.expiresAt;return s(t=>({...t,bridgeOauthDeadExpiresAt:e,bridgeOauthDeadFailCount:t.bridgeOauthDeadExpiresAt===e?(t.bridgeOauthDeadFailCount??0)+1:1})),null}}let E=Z(),D=`remote-control-${ue()}`,O=!1,k=!1;if(x)D=x,O=!0,k=!0;else{let e=i(),t=e?B(e):void 0;if(t)D=t,O=!0,k=!0;else if(v&&v.length>0)for(let e=v.length-1;e>=0;e--){let t=v[e];if(t.type!==`user`||t.isMeta||t.toolUseResult||t.isCompactSummary||t.origin&&t.origin.kind!==`human`||V(t))continue;let n=F(t.message.content);if(!n)continue;let r=_t(n);if(r){D=r,O=!0;break}}}let A=0,j,re=0,ie=(e,t,n)=>{O=!0,D=e,S(`[bridge:repl] derived title from message ${n}: ${e}`),Be(t,e,{baseUrl:E,getAccessToken:$}).catch(()=>{})},ae=(e,t)=>{let n=++re,r=A;Je(e,AbortSignal.timeout(15e3)).then(e=>{e&&n===re&&j===t&&!B(i())&&ie(e,t,r)})},M=(e,t)=>{if(k||B(i()))return!0;if(j!==void 0&&j!==t&&(A=0),j=t,A++,A===1&&!O){let n=_t(e);n&&ie(n,t,A),ae(e,t)}else if(A===3){let n=y?.();ae(n?Xe(L(n)):e,t)}return A>=3},N=g(`tengu_bridge_initial_history_cap`,200,300*1e3),P=Q()?`self-hosted`:await f();if(!P)return J(`no_org_uuid`,`[bridge:repl] Skipping: no org UUID`),_?.(`failed`,`/login`),null;if(ke()&&!ee){let e=await Ge();if(e)return J(`version_too_old`,`[bridge:repl] Skipping: ${e}`,!0),_?.(`failed`,"run `claude update` to upgrade"),null;S(`[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)`);let{initEnvLessBridgeCore:t}=await import(`./remoteBridgeCore-Dte7ZUAN.js`);return t({baseUrl:E,orgUUID:P,title:D,getAccessToken:$,onAuth401:p,toSDKMessages:qe,initialHistoryCap:N,initialMessages:v,onInboundMessage:n,onUserMessage:M,onPermissionResponse:r,onInterrupt:a,onSetModel:u,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:_,outboundOnly:w,tags:T})}let se=Ae();if(se)return J(`version_too_old`,`[bridge:repl] Skipping: ${se}`),_?.(`failed`,"run `claude update` to upgrade"),null;let I=await te(),ce=await ne(),le=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||E,z=`claude_code`;{let{isAssistantMode:t}=(je(),e(Me));t()&&(z=`claude_code_assistant`)}return pt({dir:o(),machineName:st(),branch:I,gitRepoUrl:ce,title:D,baseUrl:E,sessionIngressUrl:le,workerType:z,getAccessToken:$,createSession:e=>He({...e,events:[],baseUrl:E,getAccessToken:$}),archiveSession:e=>Ue(e,{baseUrl:E,getAccessToken:$,timeoutMs:1500}).catch(e=>{S(`[bridge:repl] archiveBridgeSession threw: ${C(e)}`,{level:`error`})}),getCurrentTitle:()=>B(i())??D,onUserMessage:M,toSDKMessages:qe,onAuth401:p,getPollIntervalConfig:Fe,initialHistoryCap:N,initialMessages:v,previouslyFlushedUUIDs:b,onInboundMessage:n,onPermissionResponse:r,onInterrupt:a,onSetModel:u,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:_,perpetual:ee})}var gt=50;function _t(e){let t=O(e),n=(/^(.*?[.!?])\s/.exec(t)?.[1]??t).replace(/\s+/g,` `).trim();if(n)return n.length>gt?n.slice(0,gt-1)+`…`:n}export{ht as initReplBridge};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./language-BYeqMX74.js";t();export{e as getResolvedLanguage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as clearAgentDefinitionsCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ly as e,oy as t,sy as n}from"./loadAgentsDir-C_wFhytF.js";t();export{n as loadPluginHooks,e as setupPluginHookHotReload};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,o as n,t as r}from"./localSearch-B0p0_bjP.js";n();export{r as clearSkillIndexCache,e as getSkillIndex,t as searchSkills};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./login-C1uE6Pg9.js";t();export{n as Login,e as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{iE as e,nE as t,rE as n,tE as r}from"./loadAgentsDir-C_wFhytF.js";n();export{r as call,t as clearAuthRelatedCaches,e as performLogout};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./p-map-D7WEmnBE.js";import{Mt as r,Rn as i,T as a,b as o,f as s,g as c,h as ee,t as l,v as te,x as u}from"./src-Di342QoJ.js";import{t as d}from"./jsx-runtime-D-D469L8.js";import{Sc as f,dc as p,lc as m,yc as h}from"./paths-Ci1iwL5Y.js";import{K as g,U as _}from"./debug-otxXY3j-.js";import{n as v,r as y}from"./analytics-DqMQntaB.js";import{n as b,o as x}from"./process-DMKLUQIO.js";import{i as S,o as C}from"./platform-mh9ypxS8.js";import{s as w,u as ne}from"./types-KeqFPzY5.js";import{l as T,o as re}from"./stringUtils-KZoO4GUd.js";import{$C as ie,$x as ae,DC as oe,Dw as E,EC as D,Gw as O,Hy as k,Iw as A,Iy as j,Ly as M,Ow as N,QC as P,Rw as F,SE as I,Vw as L,Vy as R,XC as z,Yx as B,ZC as V,_w as H,cC as U,gw as W,jw as G,lC as K,rw as se,tS as ce,tw as le,wE as q,zw as ue}from"./loadAgentsDir-C_wFhytF.js";import{n as J,t as Y}from"./exit-DOBLl8jN.js";import{stat as de}from"fs/promises";import{cwd as fe}from"process";n();var X=e(i(),1);q(),b(),l(),L(),re(),oe(),k();var Z=d();function pe({servers:e,scope:t,onDone:n}){let r=Object.keys(e),[i,l]=(0,X.useState)({});(0,X.useEffect)(()=>{A().then(({servers:e})=>l(e))},[]);let d=r.filter(e=>i[e]!==void 0);async function f(n){let r=0;for(let a of n){let n=e[a];if(n){let e=a;if(i[e]!==void 0){let t=1;for(;i[`${a}_${t}`]!==void 0;)t++;e=`${a}_${t}`}await G(e,n,t),r++}}m(r)}let[p]=a(),m=(0,X.useCallback)(e=>{x(e>0?`\n${te(`success`,p)(`Successfully imported ${e} MCP ${T(e,`server`)} to ${t} config.`)}\n`:`
|
|
2
|
-
No servers were imported.`),n(),I()},[p,t,n]),h=(0,X.useCallback)(()=>{m(0)},[m]);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(s,{title:`Import MCP Servers from Claude Desktop`,subtitle:`Found ${r.length} MCP ${T(r.length,`server`)} in Claude Desktop.`,color:`success`,onCancel:h,hideInputGuide:!0,children:[d.length>0&&(0,Z.jsx)(o,{color:`warning`,children:`Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix.`}),(0,Z.jsx)(o,{children:`Please select the servers you want to import:`}),(0,Z.jsx)(R,{options:r.map(e=>({label:`${e}${d.includes(e)?` (already exists)`:``}`,value:e})),defaultValue:r.filter(e=>!d.includes(e)),onSubmit:f,onCancel:h,hideIndexes:!0})]}),(0,Z.jsx)(u,{paddingX:1,children:(0,Z.jsx)(o,{dimColor:!0,italic:!0,children:(0,Z.jsxs)(ee,{children:[(0,Z.jsx)(c,{shortcut:`Space`,action:`select`}),(0,Z.jsx)(c,{shortcut:`Enter`,action:`confirm`}),(0,Z.jsx)(D,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]})}l(),M(),v(),ie(),ce(),L(),N(),K(),h(),_(),q(),w(),C();async function Q(e,t){try{let n=await B(e,t);return n.type===`connected`?`✓ Connected`:n.type===`needs-auth`?`! Needs authentication`:`✗ Failed to connect`}catch{return`✗ Connection error`}}async function me({debug:e,verbose:t}){let n=fe();y(`tengu_mcp_start`,{});try{await de(n)}catch(e){throw g(e)&&Y(`Error: Directory ${n} does not exist`),e}try{let{setup:r}=await import(`./setup-CDxkPTCq.js`);await r(n,`default`,!1,!1,void 0,!1);let{startMCPServer:i}=await import(`./mcp-CbDDqdzF.js`);await i(n,e??!1,t??!1)}catch(e){Y(`Error: Failed to start MCP server: ${e}`)}}async function he(e,t){let n=F(e),r=()=>{n&&(n.type===`sse`||n.type===`http`)&&(V(e,n),z(e,n))};try{if(t.scope){let n=H(t.scope);y(`tengu_mcp_delete`,{name:e,scope:n}),await O(e,n),r(),process.stdout.write(`Removed MCP server ${e} from ${n} config\n`),J(`File modified: ${W(n)}`)}let n=m(),i=p(),{servers:a}=ue(`project`),o=!!a[e],s=[];if(n.mcpServers?.[e]&&s.push(`local`),o&&s.push(`project`),i.mcpServers?.[e]&&s.push(`user`),s.length===0)Y(`No MCP server found with name: "${e}"`);else if(s.length===1){let t=s[0];y(`tengu_mcp_delete`,{name:e,scope:t}),await O(e,t),r(),process.stdout.write(`Removed MCP server "${e}" from ${t} config\n`),J(`File modified: ${W(t)}`)}else process.stderr.write(`MCP server "${e}" exists in multiple scopes:\n`),s.forEach(e=>{process.stderr.write(` - ${E(e)} (${W(e)})\n`)}),process.stderr.write(`
|
|
3
|
-
To remove from a specific scope, use:
|
|
4
|
-
`),s.forEach(t=>{process.stderr.write(` claude mcp remove "${e}" -s ${t}\n`)}),Y()}catch(e){Y(e.message)}}async function ge(){y(`tengu_mcp_list`,{});let{servers:e}=await A();if(Object.keys(e).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
|
|
5
|
-
`);let n=await t(Object.entries(e),async([e,t])=>({name:e,server:t,status:await Q(e,t)}),{concurrency:ae()});for(let{name:e,server:t,status:r}of n)if(t.type===`sse`)console.log(`${e}: ${t.url} (SSE) - ${r}`);else if(t.type===`http`)console.log(`${e}: ${t.url} (HTTP) - ${r}`);else if(t.type===`claudeai-proxy`)console.log(`${e}: ${t.url} - ${r}`);else if(!t.type||t.type===`stdio`){let n=t,i=Array.isArray(n.args)?n.args:[];console.log(`${e}: ${n.command} ${i.join(` `)} - ${r}`)}}await I(0)}async function $(e){y(`tengu_mcp_get`,{name:e});let t=F(e);t||Y(`No MCP server found with name: ${e}`),console.log(`${e}:`),console.log(` Scope: ${E(t.scope)}`);let n=await Q(e,t);if(console.log(` Status: ${n}`),t.type===`sse`){if(console.log(` Type: sse`),console.log(` URL: ${t.url}`),t.headers){console.log(` Headers:`);for(let[e,n]of Object.entries(t.headers))console.log(` ${e}: ${n}`)}if(t.oauth?.clientId||t.oauth?.callbackPort){let n=[];t.oauth.clientId&&(n.push(`client_id configured`),P(e,t)?.clientSecret&&n.push(`client_secret configured`)),t.oauth.callbackPort&&n.push(`callback_port ${t.oauth.callbackPort}`),console.log(` OAuth: ${n.join(`, `)}`)}}else if(t.type===`http`){if(console.log(` Type: http`),console.log(` URL: ${t.url}`),t.headers){console.log(` Headers:`);for(let[e,n]of Object.entries(t.headers))console.log(` ${e}: ${n}`)}if(t.oauth?.clientId||t.oauth?.callbackPort){let n=[];t.oauth.clientId&&(n.push(`client_id configured`),P(e,t)?.clientSecret&&n.push(`client_secret configured`)),t.oauth.callbackPort&&n.push(`callback_port ${t.oauth.callbackPort}`),console.log(` OAuth: ${n.join(`, `)}`)}}else if(t.type===`stdio`){console.log(` Type: stdio`),console.log(` Command: ${t.command}`);let e=Array.isArray(t.args)?t.args:[];if(console.log(` Args: ${e.join(` `)}`),t.env){console.log(` Environment:`);for(let[e,n]of Object.entries(t.env))console.log(` ${e}=${n}`)}}console.log(`\nTo remove this server, run: claude mcp remove "${e}" -s ${t.scope}`),await I(0)}async function _e(e,t,n){try{let r=H(n.scope),i=ne(t),a=n.clientSecret&&i&&typeof i==`object`&&`type`in i&&(i.type===`sse`||i.type===`http`)&&`url`in i&&typeof i.url==`string`&&`oauth`in i&&i.oauth&&typeof i.oauth==`object`&&`clientId`in i.oauth?await le():void 0;await G(e,i,r);let o=i&&typeof i==`object`&&`type`in i?String(i.type||`stdio`):`stdio`;a&&i&&typeof i==`object`&&`type`in i&&(i.type===`sse`||i.type===`http`)&&`url`in i&&typeof i.url==`string`&&se(e,{type:i.type,url:i.url},a),y(`tengu_mcp_add`,{scope:r,source:`json`,type:o}),J(`Added ${o} MCP server ${e} to ${r} config`)}catch(e){Y(e.message)}}async function ve(e){try{let t=H(e.scope);y(`tengu_mcp_add`,{scope:t,platform:S(),source:`desktop`});let{readClaudeDesktopMcpServers:n}=await import(`./claudeDesktop-BqTW_pbB.js`),i=await n();Object.keys(i).length===0&&J(`No MCP servers found in Claude Desktop configuration or configuration file does not exist.`);let{unmount:a}=await r((0,Z.jsx)(U,{children:(0,Z.jsx)(j,{children:(0,Z.jsx)(pe,{servers:i,scope:t,onDone:()=>{a()}})})}),{exitOnCtrlC:!0})}catch(e){Y(e.message)}}async function ye(){y(`tengu_mcp_reset_mcpjson_choices`,{}),f(e=>({...e,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),J(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
|
|
6
|
-
You will be prompted for approval next time you start Claude Code.`)}export{ve as mcpAddFromDesktopHandler,_e as mcpAddJsonHandler,$ as mcpGetHandler,ge as mcpListHandler,he as mcpRemoveHandler,ye as mcpResetChoicesHandler,me as mcpServeHandler};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{Q as i,Rn as a,T as o,b as s,f as c,g as l,h as u,nt as d,t as f,tt as p,v as m,x as h}from"./src-Di342QoJ.js";import{t as g}from"./jsx-runtime-D-D469L8.js";import{l as _,u as v}from"./debug-otxXY3j-.js";import{l as y,n as b,o as x}from"./stringUtils-KZoO4GUd.js";import{$C as S,By as C,Cw as w,DC as T,EC as E,JC as ee,Jy as D,Ky as O,Ow as k,Tw as A,YC as j,aS as M,dC as te,ew as ne,gw as N,lC as P,uC as F}from"./loadAgentsDir-C_wFhytF.js";import{D as re,O as ie}from"./rcDebugLog-C42A0pX1.js";import{t as ae}from"./useKeybinding-DPOUuymz.js";import{i as oe,n as se,r as ce}from"./MCPConnectionManager-D5a9ysw2.js";import{n as le,t as ue}from"./McpParsingWarnings-B_z9pZ_8.js";import{a as de,c as I,i as L,l as fe,n as pe,o as R,r as me,s as he,t as ge,u as z}from"./PluginSettings-D3bQRsge.js";function _e({agentServer:e,onCancel:t,onComplete:n}){let[a]=o(),[d,f]=(0,B.useState)(!1),[g,_]=(0,B.useState)(null),[v,y]=(0,B.useState)(null),x=(0,B.useRef)(null);(0,B.useEffect)(()=>()=>x.current?.abort(),[]),p(`confirm:no`,(0,B.useCallback)(()=>{d&&(x.current?.abort(),x.current=null,f(!1),y(null))},[d]),{context:`Confirmation`,isActive:d});let S=(0,B.useCallback)(async()=>{if(!e.needsAuth||!e.url)return;f(!0),_(null);let t=new AbortController;x.current=t;try{let r={type:e.transport,url:e.url};await ne(e.name,r,y,t.signal),n?.(`Authentication successful for ${e.name}. The server will connect when the agent runs.`)}catch(e){e instanceof Error&&!(e instanceof ee)&&_(e.message)}finally{f(!1),x.current=null}},[e,n]),C=b(String(e.name));if(d)return(0,V.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,V.jsxs)(s,{color:`claude`,children:[`Authenticating with `,e.name,`…`]}),(0,V.jsxs)(h,{children:[(0,V.jsx)(O,{}),(0,V.jsx)(s,{children:` A browser window will open for authentication`})]}),v&&(0,V.jsxs)(h,{flexDirection:`column`,children:[(0,V.jsx)(s,{dimColor:!0,children:`If your browser doesn't open automatically, copy this URL manually:`}),(0,V.jsx)(i,{url:v})]}),(0,V.jsx)(h,{marginLeft:3,children:(0,V.jsxs)(s,{dimColor:!0,children:[`Return here after authenticating in your browser.`,` `,(0,V.jsx)(E,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]})})]});let w=[];return e.needsAuth&&w.push({label:e.isAuthenticated?`Re-authenticate`:`Authenticate`,value:`auth`}),w.push({label:`Back`,value:`back`}),(0,V.jsxs)(c,{title:`${C} MCP Server`,subtitle:`agent-only`,onCancel:t,inputGuide:e=>e.pending?(0,V.jsxs)(s,{children:[`Press `,e.keyName,` again to exit`]}):(0,V.jsxs)(u,{children:[(0,V.jsx)(l,{shortcut:`↑↓`,action:`navigate`}),(0,V.jsx)(l,{shortcut:`Enter`,action:`confirm`}),(0,V.jsx)(E,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:[(0,V.jsxs)(h,{flexDirection:`column`,gap:0,children:[(0,V.jsxs)(h,{children:[(0,V.jsx)(s,{bold:!0,children:`Type: `}),(0,V.jsx)(s,{dimColor:!0,children:e.transport})]}),e.url&&(0,V.jsxs)(h,{children:[(0,V.jsx)(s,{bold:!0,children:`URL: `}),(0,V.jsx)(s,{dimColor:!0,children:e.url})]}),e.command&&(0,V.jsxs)(h,{children:[(0,V.jsx)(s,{bold:!0,children:`Command: `}),(0,V.jsx)(s,{dimColor:!0,children:e.command})]}),(0,V.jsxs)(h,{children:[(0,V.jsx)(s,{bold:!0,children:`Used by: `}),(0,V.jsx)(s,{dimColor:!0,children:e.sourceAgents.join(`, `)})]}),(0,V.jsxs)(h,{marginTop:1,children:[(0,V.jsx)(s,{bold:!0,children:`Status: `}),(0,V.jsxs)(s,{children:[m(`inactive`,a)(r.radioOff),` not connected (agent-only)`]})]}),e.needsAuth&&(0,V.jsxs)(h,{children:[(0,V.jsx)(s,{bold:!0,children:`Auth: `}),e.isAuthenticated?(0,V.jsxs)(s,{children:[m(`success`,a)(r.tick),` authenticated`]}):(0,V.jsxs)(s,{children:[m(`warning`,a)(r.triangleUpOutline),` may need authentication`]})]})]}),(0,V.jsx)(h,{children:(0,V.jsx)(s,{dimColor:!0,children:`This server connects only when running the agent.`})}),g&&(0,V.jsx)(h,{children:(0,V.jsxs)(s,{color:`error`,children:[`Error: `,g]})}),(0,V.jsx)(h,{children:(0,V.jsx)(M,{options:w,onChange:async e=>{switch(e){case`auth`:await S();break;case`back`:t();break}},onCancel:t})})]})}var B,V,H=e((()=>{n(),B=t(a(),1),f(),ae(),S(),x(),T(),C(),D(),V=g()}));function U(e){switch(e){case`project`:return{label:`Project MCPs`,path:N(e)};case`user`:return{label:`User MCPs`,path:N(e)};case`local`:return{label:`Local MCPs`,path:N(e)};case`enterprise`:return{label:`Enterprise MCPs`};case`dynamic`:return{label:`Built-in MCPs`,path:`always available`};default:return{label:e}}}function ve(e){let t=new Map;for(let n of e){let e=n.scope;t.has(e)||t.set(e,[]),t.get(e).push(n)}for(let[,e]of t)e.sort((e,t)=>e.name.localeCompare(t.name));return t}function ye({servers:e,agentServers:t=[],onSelectServer:n,onSelectAgentServer:a,onComplete:f}){let[p]=o(),[g,_]=(0,W.useState)(0),b=W.useMemo(()=>ve(e.filter(e=>e.client.config.type!==`claudeai-proxy`)),[e]),x=W.useMemo(()=>e.filter(e=>e.client.config.type===`claudeai-proxy`).sort((e,t)=>e.name.localeCompare(t.name)),[e]),S=W.useMemo(()=>(b.get(`dynamic`)??[]).sort((e,t)=>e.name.localeCompare(t.name)),[b]),C=U(`dynamic`),w=W.useMemo(()=>{let e=[];for(let t of K){let n=b.get(t)??[];for(let t of n)e.push({type:`server`,server:t})}for(let t of x)e.push({type:`server`,server:t});for(let n of t)e.push({type:`agent-server`,agentServer:n});for(let t of S)e.push({type:`server`,server:t});return e},[b,x,t,S]),T=(0,W.useCallback)(()=>{f(`MCP dialog dismissed`,{display:`system`})},[f]);d({"confirm:previous":()=>_(e=>e===0?w.length-1:e-1),"confirm:next":()=>_(e=>e===w.length-1?0:e+1),"confirm:yes":(0,W.useCallback)(()=>{let e=w[g];e&&(e.type===`server`?n(e.server):e.type===`agent-server`&&a&&a(e.agentServer))},[w,g,n,a]),"confirm:no":T},{context:`Confirmation`});let ee=e=>w.findIndex(t=>t.type===`server`&&t.server===e),D=e=>w.findIndex(t=>t.type===`agent-server`&&t.agentServer===e),O=v(),k=e.some(e=>e.client.type===`failed`);if(e.length===0&&t.length===0)return null;let A=e=>{let t=ee(e),n=g===t,i=``,a=``;if(e.client.type===`disabled`)i=m(`inactive`,p)(r.radioOff),a=`disabled`;else if(e.client.type===`connected`)i=m(`success`,p)(r.tick),a=`connected`;else if(e.client.type===`pending`){i=m(`inactive`,p)(r.radioOff);let{reconnectAttempt:t,maxReconnectAttempts:n}=e.client;a=t&&n?`reconnecting (${t}/${n})…`:`connecting…`}else e.client.type===`needs-auth`?(i=m(`warning`,p)(r.triangleUpOutline),a=`needs authentication`):(i=m(`error`,p)(r.cross),a=`failed`);return(0,G.jsxs)(h,{children:[(0,G.jsx)(s,{color:n?`suggestion`:void 0,children:n?`${r.pointer} `:` `}),(0,G.jsx)(s,{color:n?`suggestion`:void 0,children:e.name}),(0,G.jsxs)(s,{dimColor:!n,children:[` · `,i,` `]}),(0,G.jsx)(s,{dimColor:!n,children:a})]},`${e.name}-${t}`)},j=e=>{let t=D(e),n=g===t,i=e.needsAuth?m(`warning`,p)(r.triangleUpOutline):m(`inactive`,p)(r.radioOff),a=e.needsAuth?`may need auth`:`agent-only`;return(0,G.jsxs)(h,{children:[(0,G.jsx)(s,{color:n?`suggestion`:void 0,children:n?`${r.pointer} `:` `}),(0,G.jsx)(s,{color:n?`suggestion`:void 0,children:e.name}),(0,G.jsxs)(s,{dimColor:!n,children:[` · `,i,` `]}),(0,G.jsx)(s,{dimColor:!n,children:a})]},`agent-${e.name}-${t}`)},M=e.length+t.length;return(0,G.jsxs)(h,{flexDirection:`column`,children:[(0,G.jsx)(ue,{}),(0,G.jsx)(c,{title:`Manage MCP servers`,subtitle:`${M} ${y(M,`server`)}`,onCancel:T,hideInputGuide:!0,children:(0,G.jsxs)(h,{flexDirection:`column`,children:[K.map(e=>{let t=b.get(e);if(!t||t.length===0)return null;let n=U(e);return(0,G.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,G.jsxs)(h,{paddingLeft:2,children:[(0,G.jsx)(s,{bold:!0,children:n.label}),n.path&&(0,G.jsxs)(s,{dimColor:!0,children:[` (`,n.path,`)`]})]}),t.map(e=>A(e))]},e)}),x.length>0&&(0,G.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,G.jsx)(h,{paddingLeft:2,children:(0,G.jsx)(s,{bold:!0,children:`claude.ai`})}),x.map(e=>A(e))]}),t.length>0&&(0,G.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,G.jsx)(h,{paddingLeft:2,children:(0,G.jsx)(s,{bold:!0,children:`Agent MCPs`})}),[...new Set(t.flatMap(e=>e.sourceAgents))].map(e=>(0,G.jsxs)(h,{flexDirection:`column`,marginTop:1,children:[(0,G.jsx)(h,{paddingLeft:2,children:(0,G.jsxs)(s,{dimColor:!0,children:[`@`,e]})}),t.filter(t=>t.sourceAgents.includes(e)).map(e=>j(e))]},e))]}),S.length>0&&(0,G.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,G.jsxs)(h,{paddingLeft:2,children:[(0,G.jsx)(s,{bold:!0,children:C.label}),C.path&&(0,G.jsxs)(s,{dimColor:!0,children:[` (`,C.path,`)`]})]}),S.map(e=>A(e))]}),(0,G.jsxs)(h,{flexDirection:`column`,children:[k&&(0,G.jsx)(s,{dimColor:!0,children:O?`※ Error logs shown inline with --debug`:`※ Run claude --debug to see error logs`}),(0,G.jsxs)(s,{dimColor:!0,children:[(0,G.jsx)(i,{url:`https://code.claude.com/docs/en/mcp`,children:`https://code.claude.com/docs/en/mcp`}),` for help`]})]})]})}),(0,G.jsx)(h,{paddingX:1,children:(0,G.jsx)(s,{dimColor:!0,italic:!0,children:(0,G.jsxs)(u,{children:[(0,G.jsx)(l,{shortcut:`↑↓`,action:`navigate`}),(0,G.jsx)(l,{shortcut:`Enter`,action:`confirm`}),(0,G.jsx)(E,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]})}var W,G,K,be=e((()=>{n(),W=t(a(),1),f(),ae(),k(),_(),x(),T(),le(),G=g(),K=[`project`,`local`,`user`,`enterprise`]}));function xe({serverName:e,onComplete:t}){let[n]=o(),i=te(),a=ce(),[c,l]=(0,q.useState)(!0),[u,d]=(0,q.useState)(null);return(0,q.useEffect)(()=>{async function n(){try{if(!i.getState().mcp.clients.find(t=>t.name===e)){d(`MCP server "${e}" not found`),l(!1),t(`MCP server "${e}" not found`);return}switch((await a(e)).client.type){case`connected`:l(!1),t(`Successfully reconnected to ${e}`);break;case`needs-auth`:d(`${e} requires authentication`),l(!1),t(`${e} requires authentication. Use /mcp to authenticate.`);break;case`pending`:case`failed`:case`disabled`:d(`Failed to reconnect to ${e}`),l(!1),t(`Failed to reconnect to ${e}`);break}}catch(e){let n=e instanceof Error?e.message:String(e);d(n),l(!1),t(`Error: ${n}`)}}n()},[e,a,i,t]),c?(0,J.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,J.jsxs)(s,{color:`text`,children:[`Reconnecting to `,(0,J.jsx)(s,{bold:!0,children:e})]}),(0,J.jsxs)(h,{children:[(0,J.jsx)(O,{}),(0,J.jsx)(s,{children:` Establishing connection to MCP server`})]})]}):u?(0,J.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,J.jsxs)(h,{children:[(0,J.jsxs)(s,{children:[m(`error`,n)(r.cross),` `]}),(0,J.jsxs)(s,{color:`error`,children:[`Failed to reconnect to `,e]})]}),(0,J.jsxs)(s,{dimColor:!0,children:[`Error: `,u]})]}):null}var q,J,Se=e((()=>{n(),q=t(a(),1),f(),se(),P(),D(),J=g()}));function Y({onComplete:e}){let t=F(e=>e.mcp),n=F(e=>e.agentDefinitions),r=t.clients,[i,a]=X.useState({type:`list`}),[o,s]=X.useState([]),c=(0,X.useMemo)(()=>w(n.allAgents),[n.allAgents]),l=X.useMemo(()=>r.filter(e=>e.name!==`ide`).sort((e,t)=>e.name.localeCompare(t.name)),[r]);switch(X.useEffect(()=>{let e=!1;async function n(){let n=await Promise.all(l.map(async e=>{let n=e.config.scope,r=e.config.type===`sse`,i=e.config.type===`http`,a=e.config.type===`claudeai-proxy`,o;if(r||i){let n=await new j(e.name,e.config).tokens(),r=re()!==null&&e.type===`connected`,i=e.type===`connected`&&A(t.tools,e.name).length>0;o=!!n||r||i}let s={name:e.name,client:e,scope:n};return a?{...s,transport:`claudeai-proxy`,isAuthenticated:!1,config:e.config}:r?{...s,transport:`sse`,isAuthenticated:o,config:e.config}:i?{...s,transport:`http`,isAuthenticated:o,config:e.config}:{...s,transport:`stdio`,config:e.config}}));e||s(n)}return n(),()=>{e=!0}},[l,t.tools]),(0,X.useEffect)(()=>{o.length===0&&l.length>0||o.length===0&&c.length===0&&e("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},[o.length,l.length,c.length,e]),i.type){case`list`:return(0,Z.jsx)(ye,{servers:o,agentServers:c,onSelectServer:e=>a({type:`server-menu`,server:e}),onSelectAgentServer:e=>a({type:`agent-server-menu`,agentServer:e}),onComplete:e,defaultTab:i.defaultTab});case`server-menu`:{let n=A(t.tools,i.server.name),r=i.server.transport===`claudeai-proxy`?`claude.ai`:`Claude Code`;return i.server.transport===`stdio`?(0,Z.jsx)(he,{server:i.server,serverToolsCount:n.length,onViewTools:()=>a({type:`server-tools`,server:i.server}),onCancel:()=>a({type:`list`,defaultTab:r}),onComplete:e}):(0,Z.jsx)(fe,{server:i.server,serverToolsCount:n.length,onViewTools:()=>a({type:`server-tools`,server:i.server}),onCancel:()=>a({type:`list`,defaultTab:r}),onComplete:e})}case`server-tools`:return(0,Z.jsx)(me,{server:i.server,onSelectTool:(e,t)=>a({type:`server-tool-detail`,server:i.server,toolIndex:t}),onBack:()=>a({type:`server-menu`,server:i.server})});case`server-tool-detail`:{let e=A(t.tools,i.server.name)[i.toolIndex];return e?(0,Z.jsx)(de,{tool:e,server:i.server,onBack:()=>a({type:`server-tools`,server:i.server})}):(a({type:`server-tools`,server:i.server}),null)}case`agent-server-menu`:return(0,Z.jsx)(_e,{agentServer:i.agentServer,onCancel:()=>a({type:`list`,defaultTab:`Agents`}),onComplete:e})}}var X,Z,Ce=e((()=>{X=t(a(),1),S(),k(),P(),ie(),H(),be(),z(),I(),R(),L(),Z=g()})),we=e((()=>{H(),be(),Se(),z(),Ce(),I(),R(),L()}));function Te({action:e,target:t,onComplete:n}){let r=F(e=>e.mcp.clients),i=oe(),a=(0,Q.useRef)(!1);return(0,Q.useEffect)(()=>{if(a.current)return;a.current=!0;let o=e===`enable`,s=r.filter(e=>e.name!==`ide`),c=t===`all`?s.filter(e=>o?e.type===`disabled`:e.type!==`disabled`):s.filter(e=>e.name===t);if(c.length===0){n(t===`all`?`All MCP servers are already ${o?`enabled`:`disabled`}`:`MCP server "${t}" not found`);return}for(let e of c)i(e.name);n(t===`all`?`${o?`Enabled`:`Disabled`} ${c.length} MCP server(s)`:`MCP server "${t}" ${o?`enabled`:`disabled`}`)},[e,t,r,i,n]),null}async function Ee(e,t,n){if(n){let t=n.trim().split(/\s+/);if(t[0]===`no-redirect`)return(0,$.jsx)(Y,{onComplete:e});if(t[0]===`reconnect`&&t[1])return(0,$.jsx)(xe,{serverName:t.slice(1).join(` `),onComplete:e});if(t[0]===`enable`||t[0]===`disable`)return(0,$.jsx)(Te,{action:t[0],target:t.length>1?t.slice(1).join(` `):`all`,onComplete:e})}return process.env.USER_TYPE===`ant`?(0,$.jsx)(ge,{onComplete:e,args:`manage`,showMcpRedirectMessage:!0}):(0,$.jsx)(Y,{onComplete:e})}var Q,$;e((()=>{Q=t(a(),1),we(),Se(),se(),P(),pe(),$=g()}))();export{Ee as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{In as i,Ln as a,Q as o,Rn as s,b as c,d as l,f as u,t as d,tt as f,x as p}from"./src-Di342QoJ.js";import{t as m}from"./jsx-runtime-D-D469L8.js";import{cn as h,ot as g}from"./state-sIHsFpDu.js";import{Bc as ee,Uc as _,a as v,lo as y,n as b,oo as x,s as S}from"./paths-Ci1iwL5Y.js";import{B as C,U as w}from"./debug-otxXY3j-.js";import{n as T,r as E}from"./analytics-DqMQntaB.js";import{n as D,t as O}from"./cwd--iizewsn.js";import{r as k,v as A}from"./git-C0IuvuIy.js";import{o as j,s as M}from"./log-DSV4Ht5l.js";import{g as N,x as P}from"./startupProfiler-CAntGAbs.js";import{By as F,Cp as te,Jn as I,Kn as ne,Qk as L,Sp as R,Xk as z,aS as re,lC as B,ou as ie,qk as ae,su as oe,uC as V}from"./loadAgentsDir-C_wFhytF.js";import{r as se,t as ce}from"./browser-Bt-ckCaU.js";import{t as H}from"./useKeybinding-DPOUuymz.js";import{n as U,t as W}from"./useExitOnCtrlCDWithKeybindings-BHi41Ku_.js";import{r as le,t as ue}from"./promptEditor-Dz41P-3I.js";import{homedir as de}from"os";import{join as G,relative as fe}from"path";import{mkdir as K,writeFile as pe}from"fs/promises";function me(e){return k(e)!==null}var he=e((()=>{A()}));function ge({onSelect:e,onCancel:t}){let r=(0,q.use)(z()),a=G(n(),`CLAUDE.md`),o=G(g(),`CLAUDE.md`),s=r.some(e=>e.path===a),u=r.some(e=>e.path===o),d=[...r.filter(e=>e.type!==`AutoMem`&&e.type!==`TeamMem`).map(e=>({...e,exists:!0})),...s?[]:[{path:a,type:`User`,content:``,exists:!1}],...u?[]:[{path:o,type:`Project`,content:``,exists:!1}]],m=new Map,h=d.map(e=>{let t=ee(e.path),n=e.exists?``:` (new)`,r=e.parent?(m.get(e.parent)??0)+1:0;m.set(e.path,r);let i=r>0?` `.repeat(r-1):``,s;s=e.type===`User`&&!e.isNested&&e.path===a?`User memory`:e.type===`Project`&&!e.isNested&&e.path===o?`Project memory`:r>0?`${i}L ${t}${n}`:`${t}`;let c,l=me(g());return c=e.type===`User`&&!e.isNested?`Saved in ~/.claude/CLAUDE.md`:e.type===`Project`&&!e.isNested&&e.path===o?`${l?`Checked in at`:`Saved in`} ./CLAUDE.md`:e.parent?`@-imported`:e.isNested?`dynamically loaded`:``,{label:s,value:e.path,description:c}}),_=[],v=V(e=>e.agentDefinitions);if(S()){_.push({label:`Open auto-memory folder`,value:`${X}${b()}`,description:``});for(let e of v.activeAgents)if(e.memory){let t=ne(e.agentType,e.memory);_.push({label:`Open ${i.bold(e.agentType)} agent memory`,value:`${X}${t}`,description:`${e.memory} scope`})}}h.push(..._);let x=Y&&h.some(e=>e.value===Y)?Y:h[0]?.value||``,[C,w]=(0,q.useState)(S),[T,D]=(0,q.useState)(oe),[O]=(0,q.useState)(S),k=V(e=>Object.values(e.tasks).some(e=>e.type===`dream`&&e.status===`running`)),[A,j]=(0,q.useState)(null);(0,q.useEffect)(()=>{O&&te().then(j)},[O,k]);let M=k?`running`:A===null?``:A===0?`never`:`last ran ${N(new Date(A))}`,[P,F]=(0,q.useState)(null),I=P!==null,L=+!!O;function R(){let e=!C;y(`userSettings`,{autoMemoryEnabled:e}),w(e),E(`tengu_auto_memory_toggled`,{enabled:e})}function B(){let e=!T;y(`userSettings`,{autoDreamEnabled:e}),D(e),E(`tengu_auto_dream_toggled`,{enabled:e})}return U(),f(`confirm:no`,t,{context:`Confirmation`}),f(`confirm:yes`,()=>{P===0?R():P===1&&B()},{context:`Confirmation`,isActive:I}),f(`select:next`,()=>{F(e=>e!==null&&e<L?e+1:null)},{context:`Select`,isActive:I}),f(`select:previous`,()=>{F(e=>e!==null&&e>0?e-1:e)},{context:`Select`,isActive:I}),(0,J.jsxs)(p,{flexDirection:`column`,width:`100%`,children:[(0,J.jsxs)(p,{flexDirection:`column`,marginBottom:1,children:[(0,J.jsx)(l,{isFocused:P===0,children:(0,J.jsxs)(c,{children:[`Auto-memory: `,C?`on`:`off`]})}),O&&(0,J.jsx)(l,{isFocused:P===1,styled:!1,children:(0,J.jsxs)(c,{color:P===1?`suggestion`:void 0,children:[`Auto-dream: `,T?`on`:`off`,M&&(0,J.jsxs)(c,{dimColor:!0,children:[` · `,M]}),!k&&T&&(0,J.jsx)(c,{dimColor:!0,children:` · /dream to run`})]})})]}),(0,J.jsx)(re,{defaultFocusValue:x,options:h,isDisabled:I,onChange:t=>{if(t.startsWith(X)){let e=t.slice(15);K(e,{recursive:!0}).catch(()=>{}).then(()=>se(e));return}Y=t,e(t)},onCancel:t,onUpFromFirstItem:()=>F(L)})]})}var q,J,Y,X,_e=e((()=>{a(),s(),q=t(s(),1),h(),W(),d(),H(),v(),T(),ie(),R(),B(),I(),ce(),L(),r(),_(),P(),he(),x(),F(),J=m(),X=`__open_folder__`}));function ve(e){let t=de(),n=O(),r=e.startsWith(t)?`~`+e.slice(t.length):null,i=e.startsWith(n)?`./`+fe(n,e):null;return r&&i?r.length<=i.length?r:i:r||i||e}var ye=e((()=>{s(),d(),D(),m()}));function be({onDone:e}){let t=async t=>{try{t.includes(n())&&await K(n(),{recursive:!0});try{await pe(t,``,{encoding:`utf8`,flag:`wx`})}catch(e){if(C(e)!==`EEXIST`)throw e}await ue(t);let r=`default`,i=``;process.env.VISUAL?(r=`$VISUAL`,i=process.env.VISUAL):process.env.EDITOR&&(r=`$EDITOR`,i=process.env.EDITOR);let a=r===`default`?``:`Using ${r}="${i}".`,o=a?`> ${a} To change editor, set $EDITOR or $VISUAL environment variable.`:`> To use a different editor, set the $EDITOR or $VISUAL environment variable.`;e(`Opened memory file at ${ve(t)}\n\n${o}`,{display:`system`})}catch(t){M(t),e(`Error opening memory file: ${t}`)}},r=()=>{e(`Cancelled memory editing`,{display:`system`})};return(0,Q.jsx)(u,{title:`Memory`,onCancel:r,color:`remember`,children:(0,Q.jsxs)(p,{flexDirection:`column`,children:[(0,Q.jsx)(Z.Suspense,{fallback:null,children:(0,Q.jsx)(ge,{onSelect:t,onCancel:r})}),(0,Q.jsx)(p,{marginTop:1,children:(0,Q.jsxs)(c,{dimColor:!0,children:[`Learn more: `,(0,Q.jsx)(o,{url:`https://code.claude.com/docs/en/memory`})]})})]})})}var Z,Q,$;e((()=>{Z=t(s(),1),d(),_e(),ye(),L(),r(),w(),j(),le(),Q=m(),$=async e=>(ae(),await z(),(0,Q.jsx)(be,{onDone:e}))}))();export{$ as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Dr as e,Pr as t}from"./paths-Ci1iwL5Y.js";t();export{e as getMainLoopModel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./pluginStartupCheck-DCDWHam6.js";e();export{t as getPluginEditableScopes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ka as e,Qa as t,Wa as n}from"./loadAgentsDir-C_wFhytF.js";n();export{e as isPolicyAllowed,t as waitForPolicyLimitsToLoad};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./poorMode-aDmmvJ_e.js";t();export{e as isPoorModeActive};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t,u as n}from"./envUtils-BWeoiL4Y.js";import{Ct as r,cn as i,mr as a,t as o}from"./state-sIHsFpDu.js";import{$ as s,Bc as c,Dt as l,Ot as u,Uc as d,tt as f,vs as p,ys as m}from"./paths-Ci1iwL5Y.js";import{P as h,U as g,_,h as v,j as y,l as b,p as x}from"./debug-otxXY3j-.js";import{n as S,r as C}from"./analytics-DqMQntaB.js";import{O as w,et as T,k as E,o as D,s as O}from"./log-DSV4Ht5l.js";import{n as k,t as ee}from"./sleep-C6koP5Ka.js";import{$D as te,$_ as ne,$o as A,$w as re,A as ie,Ao as ae,BO as oe,CS as se,Co as ce,Dl as le,Eo as j,Fc as ue,Fk as de,G as fe,Il as M,Jo as pe,K as me,KO as he,Mc as N,Nc as P,O_ as F,Qw as I,Rk as L,Rl as R,So as z,TS as ge,To as _e,Ui as ve,Uo as ye,Wo as be,Xi as xe,Zo as Se,Zw as Ce,_D as we,_v as B,aA as Te,bO as Ee,bv as De,cp as Oe,dv as ke,eO as Ae,ev as je,fv as Me,gD as Ne,gv as Pe,ha as V,hv as Fe,k_ as H,kl as Ie,lj as Le,nO as Re,na as ze,qi as Be,rA as Ve,rO as He,sp as Ue,ta as We,tv as Ge,uj as Ke,vo as U,w as qe,wO as Je,xO as Ye,zO as Xe,zl as Ze}from"./loadAgentsDir-C_wFhytF.js";import{a as W,i as Qe,o as G}from"./xml-CVF7dWfi.js";import{E as $e,T as et,w as tt}from"./sessionTracing-CJUUEWZ4.js";import{n as nt,t as rt}from"./slashCommandParsing-BfanVchF.js";import{randomUUID as K}from"crypto";function it(e,t,n,r,i){let a=0;for(let o of p){let s=n[o];if(s)for(let n of s)for(let s of n.hooks){let c=s.once?()=>{x(`Removing one-shot hook for event ${o} in skill '${r}'`),Ge(e,t,o,s)}:void 0;ne(e,t,o,n.matcher||``,s,c,i),a++}}a>0&&x(`Registered ${a} hooks from skill '${r}'`)}var at=e((()=>{m(),b(),je()}));function ot(){return!1}function st(){if(!ot())throw Error(`ToolUseContext.options.allowBackgroundForkedSlashCommands is test-only and cannot be enabled outside NODE_ENV=test.`)}async function q(e,t,n,r,i,a,o){let s=ke(),u=e.pluginInfo?G(e.pluginInfo.repository).marketplace:void 0;C(`tengu_slash_command_forked`,{command_name:e.name,invocation_trigger:`user-slash`,...e.pluginInfo&&{_PROTO_plugin_name:e.pluginInfo.pluginManifest.name,...u&&{_PROTO_marketplace_name:u},...B(e.pluginInfo)}});let{skillContent:d,modifiedGetAppState:f,baseAgent:p,promptMessages:m}=await Ze(e,t,n),h=e.effort===void 0?p:{...p,effort:e.effort};x(`Executing forked slash command /${e.name} with agent ${h.agentType}`);let g=await n.getAppState();n.options.allowBackgroundForkedSlashCommands===!0&&st();let _=!1;if(g.kairosEnabled&&(_=!0),_){let t=te(),r=V(e),i=l(),c=e=>oe({value:e,mode:`prompt`,priority:`later`,isMeta:!0,skipSlashCommands:!0,workload:i}),u=async()=>{if(!o?.runId)return;let e=await Ee({runId:o.runId,rootDir:o.rootDir,priority:`later`,workload:i});for(let t of e)Xe(t)},d=async e=>{o?.runId&&await Ye({runId:o.runId,rootDir:o.rootDir,error:e instanceof Error?e.message:String(e)})};return(async()=>{let i=Date.now()+$;for(;Date.now()<i&&n.getAppState().mcp.clients.some(e=>e.type===`pending`);)await k(Q);let o=n.options.refreshTools?.()??n.options.tools,l=[];for await(let r of H({agentDefinition:h,promptMessages:m,toolUseContext:{...n,getAppState:f,abortController:t},canUseTool:a,isAsync:!0,querySource:`agent:custom`,model:e.model,availableTools:o,override:{agentId:s}}))l.push(r);let d=M(l,`Command completed`);x(`Background forked command /${r} completed (agent ${s})`),c(`<scheduled-task-result command="/${r}">\n${d}\n</scheduled-task-result>`);try{await u()}catch(e){O(e)}})().catch(async e=>{O(e),c(`<scheduled-task-result command="/${r}" status="failed">\n${e instanceof Error?e.message:String(e)}\n</scheduled-task-result>`),await d(e)}),{messages:[],shouldQuery:!1,command:e,deferAutonomyCompletion:!!o?.runId}}let v=[],y=[],b=`forked-command-${e.name}`,S=0,w=e=>(S++,{type:`progress`,data:{message:e,type:`agent_progress`,prompt:d,agentId:s},parentToolUseID:b,toolUseID:`${b}-${S}`,timestamp:new Date().toISOString(),uuid:K()}),T=()=>{i({jsx:Oe(y,{tools:n.options.tools,verbose:!1}),shouldHidePromptInput:!1,shouldContinueAnimation:!0,showSpinner:!0})};T();try{for await(let t of H({agentDefinition:h,promptMessages:m,toolUseContext:{...n,getAppState:f},canUseTool:a,isAsync:!1,querySource:`agent:custom`,model:e.model,availableTools:n.options.tools})){v.push(t);let e=Se([t]);if(t.type===`assistant`){let r=de(t);r>0&&n.setResponseLength(e=>e+r);let i=e[0];i&&i.type===`assistant`&&(y.push(w(t)),T())}if(t.type===`user`){let t=e[0];t&&t.type===`user`&&(y.push(w(t)),T())}}}finally{i(null)}let E=M(v,`Command completed`);return x(`Forked slash command /${e.name} completed with agent ${s}`),process.env.USER_TYPE===`ant`&&(E=`[ANT-ONLY] API calls: ${c(Re(s))}\n${E}`),{messages:[j({content:A({inputString:`/${V(e)} ${t}`.trim(),precedingInputBlocks:r})}),j({content:`<local-command-stdout>\n${E}\n</local-command-stdout>`})],shouldQuery:!1,command:e,resultText:E}}function ct(e){return!/[^a-zA-Z0-9:\-_]/.test(e)}async function lt(e,t,n,r,i,o,s,c,l,u){let d=nt(e);if(!d){C(`tengu_input_slash_missing`,{});let e="Commands are in the form `/command [args]`";return{messages:[z(),...r,j({content:A({inputString:e,precedingInputBlocks:t})})],shouldQuery:!1,resultText:e}}let{commandName:f,args:p,isMcp:m}=d,h=m?`mcp`:ve().has(f)?f:`custom`;if(!We(f,i.options.commands)){let n=!1;try{await v().stat(`/${f}`),n=!0}catch{}if(ct(f)&&!n){C(`tengu_input_slash_invalid`,{input:f});let e=`Unknown skill: ${f}`;return{messages:[z(),...r,j({content:A({inputString:e,precedingInputBlocks:t})}),...p?[ce(`Args from unknown skill: ${p}`,`warning`)]:[]],shouldQuery:!1,resultText:e}}let i=K();return a(i),C(`tengu_input_prompt`,{}),et(`user_prompt`,{prompt_length:String(e.length),prompt:$e(e),"prompt.id":i}),{messages:[j({content:A({inputString:e,precedingInputBlocks:t}),uuid:s}),...r],shouldQuery:!0}}let{messages:g,shouldQuery:_,allowedTools:y,model:b,effort:x,command:S,resultText:w,nextInput:T,submitNextInput:E,deferAutonomyCompletion:D}=await ut(f,p,o,i,t,n,c,l,s,u);if(g.length===0){let e={input:h};if(S.type===`prompt`&&S.pluginInfo){let{pluginManifest:t,repository:n}=S.pluginInfo,{marketplace:r}=G(n),i=W(r);e._PROTO_plugin_name=t.name,r&&(e._PROTO_marketplace_name=r),e.plugin_repository=i?n:`third-party`,e.plugin_name=i?t.name:`third-party`,i&&t.version&&(e.plugin_version=t.version),Object.assign(e,B(S.pluginInfo))}return C(`tengu_input_command`,{...e,invocation_trigger:`user-slash`,...process.env.USER_TYPE===`ant`&&{skill_name:f,...S.type===`prompt`&&{skill_source:S.source},...S.loadedFrom&&{skill_loaded_from:S.loadedFrom},...S.kind&&{skill_kind:S.kind}}}),{messages:[],shouldQuery:!1,model:b,nextInput:T,submitNextInput:E,deferAutonomyCompletion:D}}if(g.length===2&&g[1].type===`user`&&typeof g[1].message.content==`string`&&g[1].message.content.startsWith(`Unknown command:`))return e.startsWith(`/var`)||e.startsWith(`/tmp`)||e.startsWith(`/private`)||C(`tengu_input_slash_invalid`,{input:f}),{messages:[z(),...g],shouldQuery:_,allowedTools:y,model:b};let O={input:h};if(S.type===`prompt`&&S.pluginInfo){let{pluginManifest:e,repository:t}=S.pluginInfo,{marketplace:n}=G(t),r=W(n);O._PROTO_plugin_name=e.name,n&&(O._PROTO_marketplace_name=n),O.plugin_repository=r?t:`third-party`,O.plugin_name=r?e.name:`third-party`,r&&e.version&&(O.plugin_version=e.version),Object.assign(O,B(S.pluginInfo))}C(`tengu_input_command`,{...O,invocation_trigger:`user-slash`,...process.env.USER_TYPE===`ant`&&{skill_name:f,...S.type===`prompt`&&{skill_source:S.source},...S.loadedFrom&&{skill_loaded_from:S.loadedFrom},...S.kind&&{skill_kind:S.kind}}});let k=g.length>0&&g[0]&&be(g[0]);return{messages:_||g.every(pe)||k?g:[z(),...g],shouldQuery:_,allowedTools:y,model:b,effort:x,resultText:w,nextInput:T,submitNextInput:E,deferAutonomyCompletion:D}}async function ut(e,t,n,r,i,a,o,s,c,l){let u=xe(e,r.options.commands);if(u.type===`prompt`&&u.userInvocable!==!1&&Pe(e),u.userInvocable===!1)return{messages:[j({content:A({inputString:`/${e}`,precedingInputBlocks:i})}),j({content:`This skill can only be invoked by Claude, not directly by users. Ask Claude to use the "${e}" skill for you.`})],shouldQuery:!1,command:u};try{switch(u.type){case`local-jsx`:return new Promise(e=>{let a=!1,o=(n,r)=>{if(a=!0,r?.display===`skip`){e({messages:[],shouldQuery:!1,command:u,nextInput:r?.nextInput,submitNextInput:r?.submitNextInput});return}let o=(r?.metaMessages??[]).map(e=>j({content:e,isMeta:!0})),s=ge()&&typeof n==`string`&&n.endsWith(` dismissed`),c=r?.displayArgs??t;e({messages:r?.display===`system`?s?o:[U(J(u,c)),U(`<local-command-stdout>${n}</local-command-stdout>`),...o]:[j({content:A({inputString:J(u,c),precedingInputBlocks:i})}),j(n?{content:`<local-command-stdout>${n}</local-command-stdout>`}:{content:`<local-command-stdout>${Le}</local-command-stdout>`}),...o],shouldQuery:r?.shouldQuery??!1,command:u,nextInput:r?.nextInput,submitNextInput:r?.submitNextInput})};u.load().then(e=>e.call(o,{...r,canUseTool:s},t)).then(t=>{if(t!=null){if(r.options.isNonInteractiveSession){e({messages:[],shouldQuery:!1,command:u});return}a||n({jsx:t,shouldHidePromptInput:!0,showSpinner:!1,isLocalJSXCommand:!0,isImmediate:u.immediate===!0})}}).catch(t=>{O(t),!a&&(a=!0,n({jsx:null,shouldHidePromptInput:!1,clearLocalJSX:!0}),e({messages:[],shouldQuery:!1,command:u}))})});case`local`:{let e=j({content:A({inputString:J(u,u.isSensitive&&t.trim()?`***`:t),precedingInputBlocks:i})});try{let n=z(),i=await(await u.load()).call(t,r);if(i.type===`skip`)return{messages:[],shouldQuery:!1,command:u};if(i.type===`compact`){let t=[n,e,...i.displayText?[j({content:`<local-command-stdout>${i.displayText}</local-command-stdout>`,timestamp:new Date(Date.now()+100).toISOString()})]:[]],r={...i.compactionResult,messagesToKeep:[...i.compactionResult.messagesToKeep??[],...t]};return Te(),{messages:le(r),shouldQuery:!1,command:u}}return{messages:[e,U(`<local-command-stdout>${i.value}</local-command-stdout>`)],shouldQuery:!1,command:u,resultText:i.value}}catch(t){return O(t),{messages:[e,U(`<local-command-stderr>${String(t)}</local-command-stderr>`)],shouldQuery:!1,command:u}}}case`prompt`:try{return u.context===`fork`?await q(u,t,r,i,n,s??fe,l):await Z(u,t,r,i,a,c)}catch(e){return e instanceof y?{messages:[j({content:A({inputString:J(u,t),precedingInputBlocks:i})}),_e({toolUse:!1})],shouldQuery:!1,command:u}:{messages:[j({content:A({inputString:J(u,t),precedingInputBlocks:i})}),j({content:`<local-command-stderr>${String(e)}</local-command-stderr>`})],shouldQuery:!1,command:u}}}}catch(e){if(e instanceof h)return{messages:[j({content:A({inputString:e.message,precedingInputBlocks:i})})],shouldQuery:!1,command:u};throw e}}function J(e,t){return ae(V(e),t)}function Y(e,t=`loading`){return[`<${w}>${e}</${w}>`,`<${E}>${e}</${E}>`,`<skill-format>true</skill-format>`].join(`
|
|
2
|
-
`)}function dt(e,t){return[`<${w}>${e}</${w}>`,`<${E}>/${e}</${E}>`,t?`<command-args>${t}</command-args>`:null].filter(Boolean).join(`
|
|
3
|
-
`)}function X(e,t){return e.userInvocable===!1&&(e.loadedFrom===`skills`||e.loadedFrom===`plugin`||e.loadedFrom===`mcp`)?Y(e.name,e.progressMessage):dt(e.name,t)}async function ft(e,t,n,r,i=[]){let a=Be(e,n);if(!a)throw new h(`Unknown command: ${e}`);if(a.type!==`prompt`)throw Error(`Unexpected ${a.type} command. Expected 'prompt' command. Use /${e} directly in the main conversation.`);return Z(a,t,r,[],i)}async function Z(e,t,i,a=[],c=[],l){if(n(process.env.CLAUDE_CODE_COORDINATOR_MODE)&&!i.agentId){let n=X(e,t),r=[`Skill "/${e.name}" is available for workers.`];e.description&&r.push(`Description: ${e.description}`),e.whenToUse&&r.push(`When to use: ${e.whenToUse}`);let i=e.allowedTools??[];i.length>0&&r.push(`This skill grants workers additional tool permissions: ${i.join(`, `)}`),r.push(`\nInstruct a worker to use this skill by including "Use the /${e.name} skill" in your Agent prompt. The worker has access to the Skill tool and will receive the skill's content and permissions when it invokes it.`);let a=[{type:`text`,text:r.join(`
|
|
4
|
-
`)}];return{messages:[j({content:n,uuid:l}),j({content:a,isMeta:!0})],shouldQuery:!0,model:e.model,effort:e.effort,command:e}}let u=await e.getPromptForCommand(t,i),d=!I(`hooks`)||re(e.source);if(e.hooks&&d){let t=r();it(i.setAppState,t,e.hooks,e.name,e.type===`prompt`?e.skillRoot:void 0)}let f=e.source?`${e.source}:${e.name}`:e.name,p=u.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
5
|
-
|
|
6
|
-
`);o(e.name,f,p,s()?.agentId??null);let m=X(e,t),h=ie(e.allowedTools??[]),g=c.length>0||a.length>0?[...c,...a,...u]:u,_=await we(P(u.filter(e=>e.type===`text`).map(e=>e.text).join(` `),i,null,[],i.messages,`repl_main_thread`,{skipSkillDiscovery:!0}));return{messages:[j({content:m,uuid:l}),j({content:g,isMeta:!0}),..._,N({type:`command_permissions`,allowedTools:h,model:e.model})],shouldQuery:!0,allowedTools:h,model:e.model,effort:e.effort,command:e}}var Q,$;e((()=>{i(),ze(),Ke(),T(),S(),He(),Ie(),Ve(),F(),Ue(),Ae(),f(),ue(),b(),t(),g(),d(),R(),_(),se(),Ne(),at(),D(),he(),ye(),qe(),me(),Qe(),Ce(),rt(),ee(),Fe(),tt(),De(),L(),Me(),Je(),u(),Q=200,$=1e4}))();export{Y as formatSkillLoadingMetadata,ft as processPromptSlashCommand,lt as processSlashCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{TA as e,yA as t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as clearPromptCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./prompt-6ZKyqv6z.js";t();export{e as isDeferredTool};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ad as e,Bd as t,Dd as n,Fd as r,Id as i,Ld as a,Md as o,Nd as s,Od as c,Pd as l,Rd as u,Vd as d,jd as f,kd as p,zd as m}from"./loadAgentsDir-C_wFhytF.js";r();export{n as detectAndGetBackend,c as ensureBackendsRegistered,p as getBackendByType,e as getCachedBackend,f as getCachedDetectionResult,o as getInProcessBackend,s as getResolvedTeammateMode,l as getTeammateExecutor,i as isInProcessEnabled,a as markInProcessFallback,u as registerITermBackend,m as registerTmuxBackend,t as registerWindowsTerminalBackend,d as resetBackendDetection};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{FA as e,MA as t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as SandboxManager};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{rl as e,tl as t}from"./loadAgentsDir-C_wFhytF.js";t();export{e as isSearchExtraToolsEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Su as e,wu as t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as registerSessionFileAccessHooks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./sessionMemory-Ctauybzs.js";t();export{e as manuallyExtractSessionMemory};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Tk as e,xk as t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as getSessionMemoryContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./sessionObserver-ardnTJ37.js";e();export{t as heuristicObserverBackend};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Fr as e,Hr as t,di as n}from"./loadAgentsDir-C_wFhytF.js";e();export{t as linkSessionToPR,n as recordTranscript};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./sink-Do5fWbUC.js";t();export{e as initializeAnalyticsSink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./sinks-Dc9V7k6a.js";export{e as initSinks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-DR8-3Aex.js";import{i as t,r as n}from"./chokidar-SzksMqYp.js";import{Ct as r,Fr as i,Pr as a,cn as o,et as s,g as c,jr as ee,lr as l,nr as u,tr as te}from"./state-sIHsFpDu.js";import{Br as ne,Pr as re}from"./paths-Ci1iwL5Y.js";import{Q as ie,Z as ae,_ as oe,h as se,l as d,p as f}from"./debug-otxXY3j-.js";import{n as p,r as ce}from"./analytics-DqMQntaB.js";import{n as le,t as m}from"./cwd--iizewsn.js";import{$n as h,Am as ue,Cn as de,Co as fe,Di as g,Ed as pe,FE as me,Fc as he,Fr as ge,Gi as _e,Ic as ve,Jm as _,KE as ye,Km as be,Ny as xe,Ot as v,PE as y,Pt as b,Qk as x,Rt as S,Tt as C,Uo as w,Wi as T,Xm as E,Ym as D,_i as O,ad as k,ai as A,bn as j,by as M,gi as Se,i as N,jy as Ce,km as we,mh as P,na as Te,o as Ee,od as De,ph as Oe,qE as ke,qk as F,r as Ae,wi as I,xd as je,yy as L}from"./loadAgentsDir-C_wFhytF.js";import{Xt as Me}from"./prompt-6ZKyqv6z.js";import{f as Ne,l as Pe,t as Fe}from"./commitAttribution-iKd8bTOI.js";import{F as Ie,P as Le}from"./teamHelpers-D8R_gGLb.js";import{n as R,r as Re}from"./systemPromptSections-DY7epA2Y.js";import{r as ze}from"./asciicast-C_1Pi99k.js";import*as z from"path";import{dirname as Be}from"path";o(),Re(),we(),Ee(),Me(),ke(),x(),Pe(),je(),le(),d(),xe(),w(),re(),M(),Oe(),ge(),Le(),me(),v();function Ve(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n?.type!==`assistant`)continue;let r=n.message.content.find(e=>e.type===`tool_use`&&e.name===`TodoWrite`);if(!r||r.type!==`tool_use`)continue;let i=r.input;if(typeof i!=`object`||!i)return[];let a=y().safeParse(i.todos);return a.success?a.data:[]}return[]}function He(e,t){if(e.fileHistorySnapshots&&e.fileHistorySnapshots.length>0&&Ce(e.fileHistorySnapshots,e=>{t(t=>({...t,fileHistory:e}))}),e.attributionSnapshots&&e.attributionSnapshots.length>0&&Fe(e.attributionSnapshots,e=>{t(t=>({...t,attribution:e}))}),!Ie()&&e.messages&&e.messages.length>0){let n=Ve(e.messages);if(n.length>0){let e=r();t(t=>({...t,todos:{...t.todos,[e]:n}}))}}}function Ue(e){if(e.attributionSnapshots&&e.attributionSnapshots.length>0)return Ne(e.attributionSnapshots)}function B(e,t){if(!(!e&&!t))return{name:e??``,color:t===`default`?void 0:t}}function V(e,t,n){if(t)return{agentDefinition:t,agentType:void 0};if(!e)return u(void 0),{agentDefinition:void 0,agentType:void 0};let r=n.activeAgents.find(t=>t.agentType===e);return r?(u(r.agentType),!s()&&r.model&&r.model!==`inherit`&&te(ne(r.model)),{agentDefinition:r,agentType:r.agentType}):(f(`Resumed session had agent "${e}" but it is no longer available. Using default behavior.`),u(void 0),{agentDefinition:void 0,agentType:void 0})}async function We(e,t,n,r){if(!e)return r;N.cache.clear?.();let i=await N(t),a=[...i.allAgents,...n];return{...i,allAgents:a,activeAgents:Ae(a)}}function H(e){let t=C();if(t){g(t);return}if(e){try{process.chdir(e.worktreePath)}catch{g(null);return}P(e.worktreePath),l(m()),b(e),F(),R(),L.cache.clear?.()}}function Ge(){let e=C();if(e){b(null),F(),R(),L.cache.clear?.();try{process.chdir(e.originalCwd)}catch{return}P(e.originalCwd),l(m())}}async function Ke(t,n,i){let a;if(a=i.modeApi?.matchSessionMode(t.mode),a&&t.messages.push(fe(a,`warning`)),n.forkSession)t.contentReplacements?.length&&await A(t.contentReplacements);else{let e=n.sessionIdOverride??t.sessionId;e&&(ee(ye(e),n.transcriptPath?Be(n.transcriptPath):null),await ze(),await Se(),ue(e))}if(O(n.forkSession?{...t,worktreeSession:void 0}:t),t.goal){let{hydrateGoalFromTranscript:i}=(De(),e(k)),a=new Map,o=n.sessionIdOverride??t.sessionId??r();a.set(o,t.goal),i(a,o)}n.forkSession||(H(t.worktreeSession),h());let{agentDefinition:o,agentType:s}=V(t.agentSetting,i.mainThreadAgentDefinition,i.agentDefinitions);I(i.modeApi?.isCoordinatorMode()?`coordinator`:`normal`);let c=n.includeAttribution?Ue(t):void 0,l=B(t.agentName,t.agentColor);pe(t.agentName);let u=await We(!!a,i.currentCwd,i.cliAgents,i.agentDefinitions);return{messages:t.messages,fileHistorySnapshots:t.fileHistorySnapshots,contentReplacements:t.contentReplacements,agentName:t.agentName,agentColor:t.agentColor===`default`?void 0:t.agentColor,restoredAgentDef:o,initialState:{...i.initialState,...s&&{agent:s},...c&&{attribution:c},...l&&{standaloneAgentContext:l},agentDefinitions:u}}}t(),o(),Te(),p(),D(),he(),ae(),d(),oe(),de(),i();var qe=1e3,Je=500,Ye=300,Xe=2e3,Ze=typeof Bun<`u`,U=null,W=null,G=new Set,K=!1,q=!1,J=!1,Y=null,X=a(),Z=null;async function Qe(){if(K||q)return;K=!0,J||(J=!0,E(()=>{T(),X.emit()}));let e=await et();e.length!==0&&(f(`Watching for changes in skill/command directories: ${e.join(`, `)}...`),U=n.watch(e,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:Z?.stabilityThreshold??qe,pollInterval:Z?.pollInterval??Je},ignored:(e,t)=>t&&!t.isFile()&&!t.isDirectory()?!0:e.split(z.sep).some(e=>e===`.git`),ignorePermissionErrors:!0,usePolling:Ze,interval:Z?.chokidarInterval??Xe,atomic:!0}),U.on(`add`,$),U.on(`change`,$),U.on(`unlink`,$),Y=ie(async()=>{await Q()}))}function Q(){q=!0,Y&&(Y(),Y=null);let e=Promise.resolve();return U&&(e=U.close(),U=null),W&&(clearTimeout(W),W=null),G.clear(),X.clear(),e}var $e=X.subscribe;async function et(){let e=se(),t=[],n=_(`userSettings`,`skills`);if(n)try{await e.stat(n),t.push(n)}catch{}let r=_(`userSettings`,`commands`);if(r)try{await e.stat(r),t.push(r)}catch{}let i=_(`projectSettings`,`skills`);if(i)try{let n=z.resolve(i);await e.stat(n),t.push(n)}catch{}let a=_(`projectSettings`,`commands`);if(a)try{let n=z.resolve(a);await e.stat(n),t.push(n)}catch{}for(let n of c()){let r=z.join(n,`.claude`,`skills`);try{await e.stat(r),t.push(r)}catch{}}return t}function $(e){f(`Detected skill change: ${e}`),ce(`tengu_skill_file_changed`,{source:`chokidar`}),tt(e)}function tt(e){G.add(e),W&&clearTimeout(W),W=setTimeout(async()=>{W=null;let e=[...G];if(G.clear(),j(await S(`skills`,e[0]))){f(`ConfigChange hook blocked skill reload (${e.length} paths)`);return}be(),_e(),ve(),X.emit()},Z?.reloadDebounce??Ye)}async function nt(e){U&&(await U.close(),U=null),W&&(clearTimeout(W),W=null),G.clear(),X.clear(),K=!1,q=!1,Z=e??null}var rt={initialize:Qe,dispose:Q,subscribe:$e,resetForTesting:nt};export{V as a,Ke as i,B as n,He as o,Ge as r,H as s,rt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{t}from"./featureCheck-j7P30mry.js";import{b as n,m as r,o as i}from"./skillGenerator-CBuoIFsH.js";import{S as a,T as o,f as s,i as c,k as l,u}from"./runtimeObserver-DaKaKNVW.js";import{i as d}from"./observationStore-rLlDwRtG.js";import{a as f}from"./projectContext-Dn7umMp6.js";import{a as p,c as m,d as h,i as g}from"./sessionObserver-ardnTJ37.js";import{n as _}from"./toolEventObserver-DDJV8cvW.js";import{n as v}from"./skillGapStore-Wa7s6orv.js";var y=e((()=>{t(),a(),n(),s(),d(),u(),f(),c(),h(),p(),l(),o(),_(),g(),v(),i(),r(),m()}));export{y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./featureCheck-j7P30mry.js";import"./instinctParser-DOtj1Kni.js";import"./skillGenerator-CBuoIFsH.js";import{p as e}from"./runtimeObserver-DaKaKNVW.js";import{o as t}from"./observationStore-rLlDwRtG.js";import{c as n}from"./projectContext-Dn7umMp6.js";import"./sessionObserver-ardnTJ37.js";import"./toolEventObserver-DDJV8cvW.js";import"./skillGapStore-Wa7s6orv.js";import{t as r}from"./skillLearning-BI2YDG3K.js";r();export{e as loadInstincts,t as readObservations,n as resolveProjectContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./teamHelpers-D8R_gGLb.js";e();export{t as cleanupSessionTeams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./teammateModeSnapshot-Bdra3VIJ.js";e();export{t as captureTeammateModeSnapshot};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Fv as e,Hv as t,Lv as n,Pv as r,zv as i}from"./loadAgentsDir-C_wFhytF.js";e();export{r as checkOutTeleportedSessionBranch,n as processMessagesForTeleportResume,i as teleportResumeCodeSession,t as validateGitState};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./thinkback-CMsW7mvG.js";e();export{n as call,t as playAnimation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./toolPool-BJv0sBnR.js";e();export{t as applyCoordinatorToolFilter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t}from"./undercover-DPVt2WN7.js";t();export{e as shouldShowUndercoverAutoNotice};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./upgrade-CSld83v7.js";e();export{t as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Fp as e,jp as t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as clearWebFetchCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n}from"./voiceModeEnabled-CjBjjeNR.js";n();export{t as isVoiceGrowthBookEnabled,e as isVoiceModeEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./voiceStreamSTT-B8CTbb_6.js";t();export{e as isVoiceStreamAvailable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,Ot as t}from"./loadAgentsDir-C_wFhytF.js";t();export{e as execIntoTmuxWorktree};
|