claude-code-best 2.6.9 → 2.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AddWorkspaceDirectory-_RSNUS7K.js → AddWorkspaceDirectory-DYIf4o0g.js} +1 -1
- package/dist/chunks/{App-4VqMMjIu.js → App-Bw4stCcv.js} +1 -1
- package/dist/chunks/ApproveApiKey-CBEOrsej.js +1 -0
- package/dist/chunks/{ApproveApiKey-B7oSxzWc.js → ApproveApiKey-CNBKF9de.js} +1 -1
- package/dist/chunks/{AssistantSessionChooser-Lf5l_1Dh.js → AssistantSessionChooser-DU5OOPwq.js} +1 -1
- package/dist/chunks/{BackgroundTasksDialog-Ckgmqm6u.js → BackgroundTasksDialog-ChDZ6M4c.js} +1 -1
- package/dist/chunks/{BypassPermissionsModeDialog-DNqPpiPC.js → BypassPermissionsModeDialog-UOkwRr3W.js} +1 -1
- package/dist/chunks/{ClaudeInChromeOnboarding-BODZ64gw.js → ClaudeInChromeOnboarding-6UL2_PCg.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-CG26Jg7h.js +1 -0
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-DLI6ey3G.js → ClaudeMdExternalIncludesDialog-DBfmH_dG.js} +1 -1
- package/dist/chunks/ConsoleOAuthFlow-1aq67dJV.js +1 -0
- package/dist/chunks/{DesktopHandoff--xyI5kTQ.js → DesktopHandoff-B-ySC5nP.js} +1 -1
- package/dist/chunks/{DevChannelsDialog-DJ4mHsA_.js → DevChannelsDialog-DZMsKuak.js} +1 -1
- package/dist/chunks/{DiffDialog-CVWUlOjm.js → DiffDialog-CeYcqIIw.js} +1 -1
- package/dist/chunks/{Doctor-DVoFX-9y.js → Doctor-ByQrTdef.js} +1 -1
- package/dist/chunks/Doctor-DOil8Eh7.js +1 -0
- package/dist/chunks/{ExitFlow-BKzQPr75.js → ExitFlow-gMv13EpM.js} +1 -1
- package/dist/chunks/Feedback-CGRlFB5g.js +2 -0
- package/dist/chunks/Grove-CJn8QGFo.js +1 -0
- package/dist/chunks/{Grove-G0DtwY22.js → Grove-CnHyPepC.js} +1 -1
- package/dist/chunks/{HybridTransport-xN03sWrt.js → HybridTransport-CiY6jyhx.js} +1 -1
- package/dist/chunks/{ITermBackend-DzN3ZWds.js → ITermBackend-CG-a4QYW.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-Iy4Su1Lm.js → InvalidConfigDialog-umJZVrz-.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-dx4y_nY-.js → InvalidSettingsDialog-C62kuhHc.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-kVO-4BcA.js → MCPConnectionManager-BbGFGZTr.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-D420-W8M.js → McpParsingWarnings-DW0d9Lsb.js} +1 -1
- package/dist/chunks/MessageSelector-A-814zUi.js +3 -0
- package/dist/chunks/{Messages-C5gVVVmY.js → Messages-C4nIAGDL.js} +2 -2
- package/dist/chunks/{Onboarding-BkidUre_.js → Onboarding-BRePz3fJ.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-DoRUucoN.js → OverageCreditUpsell-DEZsyI6y.js} +1 -1
- package/dist/chunks/{PluginSettings-DhpNtjTm.js → PluginSettings-CuZtXDaS.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-BnpXzkW9.js → PromptInputFooterSuggestions-BrpVQJVn.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-DKbiO4C0.js → PromptInputHelpMenu-BlGRpX1Q.js} +1 -1
- package/dist/chunks/{QueryEngine-J15EOjWx.js → QueryEngine-CK9YRTZo.js} +1 -1
- package/dist/chunks/{REPL-nrJ13J1o.js → REPL-D-t0XQx2.js} +6 -6
- package/dist/chunks/REPL-DV96-Prr.js +1 -0
- package/dist/chunks/{RemoteCallout-DGXIcTKv.js → RemoteCallout-DvOZQWoG.js} +1 -1
- package/dist/chunks/{RemoteSessionManager-3KsuTCZM.js → RemoteSessionManager-BlIA65dM.js} +1 -1
- package/dist/chunks/{ResumeConversation-kS7lkjJm.js → ResumeConversation-BTccgPK8.js} +1 -1
- package/dist/chunks/{SSETransport-Cy1rXP6E.js → SSETransport-CIvM80QS.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-CmyZbRut.js +1 -0
- package/dist/chunks/SentryErrorBoundary-B9sk4zvj.js +1 -0
- package/dist/chunks/{SentryErrorBoundary-B_6MfzRa.js → SentryErrorBoundary-BK2HjzVw.js} +1 -1
- package/dist/chunks/Settings-D3Kpcb7q.js +2 -0
- package/dist/chunks/{TeleportProgress-CQUN_zoe.js → TeleportProgress-BFlMrsa_.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-CPquWrd-.js → TeleportRepoMismatchDialog-BUeyIQCH.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-NIFNCHIO.js → TeleportResumeWrapper-CHfeyo9J.js} +1 -1
- package/dist/chunks/{ThemePicker-DnK0DStD.js → ThemePicker-a5n2EKgk.js} +1 -1
- package/dist/chunks/{TmuxBackend-C00k5RF9.js → TmuxBackend-Ct9v-J78.js} +1 -1
- package/dist/chunks/{TrustDialog-CUnvtDeS.js → TrustDialog-e1nyM-Fp.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-CJbO1qub.js → ValidationErrorsList-BHCepjdO.js} +1 -1
- package/dist/chunks/WelcomeV2-BnyziLbm.js +1 -0
- package/dist/chunks/{WindowsTerminalBackend-DSsgxuNK.js → WindowsTerminalBackend-Dw6qjsBu.js} +1 -1
- package/dist/chunks/{add-dir-BPqd010H.js → add-dir-CjnY5yfR.js} +1 -1
- package/dist/chunks/{agentDisplay-C0B1b_90.js → agentDisplay-Dfx-axK9.js} +1 -1
- package/dist/chunks/{agents-DMzVeRly.js → agents-CICHEOOq.js} +1 -1
- package/dist/chunks/{agents-CYs7WGHP.js → agents-lM-cxA8_.js} +1 -1
- package/dist/chunks/{ant-BO0Hmoii.js → ant-JgExUpwJ.js} +1 -1
- package/dist/chunks/{api-DLLVkmRJ.js → api-CClu711S.js} +1 -1
- package/dist/chunks/api-DgzWK3bh.js +1 -0
- package/dist/chunks/{assistant-_dIpsqHM.js → assistant-Bih7t52W.js} +1 -1
- package/dist/chunks/{assistant-CHp4-EaF.js → assistant-D1XefK1z.js} +1 -1
- package/dist/chunks/assistant-Ojm6Wsb6.js +1 -0
- package/dist/chunks/{auth-DelyQc8g.js → auth-CU6ArDos.js} +1 -1
- package/dist/chunks/auth-lQWhUjLX.js +1 -0
- package/dist/chunks/{autoMode-D3-o7xPK.js → autoMode-DM9eDMmT.js} +1 -1
- package/dist/chunks/{autonomy-tTAucjip.js → autonomy-CZCZ9wlx.js} +1 -1
- package/dist/chunks/{autonomy-CzSRoxjl.js → autonomy-DUfXLZfq.js} +1 -1
- package/dist/chunks/{autonomyPanel-DcK8N52K.js → autonomyPanel-kUZwcjfu.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-BcLV1-Ap.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-Bbkz61_-.js → backgroundHousekeeping-KGRk7QeA.js} +2 -2
- package/dist/chunks/{branch-ZJF4xAh9.js → branch-Ac3HXXs2.js} +1 -1
- package/dist/chunks/{bridge-C6gSt_32.js → bridge-Drt-UmFp.js} +2 -2
- package/dist/chunks/bridgeConfig-ByjfIoJz.js +1 -0
- package/dist/chunks/{bridgeConfig-DXUNQp2l.js → bridgeConfig-GQzZVhuF.js} +1 -1
- package/dist/chunks/bridgeEnabled-C7AI9y8g.js +1 -0
- package/dist/chunks/{bridgeEnabled-G6vxQV-7.js → bridgeEnabled-CDoXbe3S.js} +1 -1
- package/dist/chunks/{bridgeMain-DlnIQOtX.js → bridgeMain-B0fLyOLC.js} +6 -6
- package/dist/chunks/bridgeMain-DKQ1u3k_.js +1 -0
- package/dist/chunks/{bridgeMessaging-mek-AaFi.js → bridgeMessaging-gRm2WcIE.js} +1 -1
- package/dist/chunks/{btw-Cz2lyle-.js → btw-B2Tq2ewP.js} +1 -1
- package/dist/chunks/{buddy-BMqKttFw.js → buddy-v00QHFZ6.js} +1 -1
- package/dist/chunks/{bypassPermissionsKillswitch-BxvX48jr.js → bypassPermissionsKillswitch-DAr5U3Ep.js} +1 -1
- package/dist/chunks/{caches-wtRUk5y5.js → caches-DHUk9KMo.js} +2 -2
- package/dist/chunks/caches-DbE9R4Zh.js +1 -0
- package/dist/chunks/{ccrClient-BOrmrmgF.js → ccrClient-1Q3C_3_r.js} +1 -1
- package/dist/chunks/changeDetector--9sSzU2e.js +1 -0
- package/dist/chunks/channelNotification-CLYOd2-R.js +1 -0
- package/dist/chunks/{channelNotification-D8do6HUN.js → channelNotification-d08DSK9u.js} +1 -1
- package/dist/chunks/{chrome-JF2BXNK6.js → chrome-CKo0_n71.js} +1 -1
- package/dist/chunks/clear-Cf1D1WkR.js +1 -0
- package/dist/chunks/client-Bzn58Ea4.js +1 -0
- package/dist/chunks/{color-oh8CGhkI.js → color-DqtpdhFx.js} +1 -1
- package/dist/chunks/commands-CJz20FMO.js +1 -0
- package/dist/chunks/{commitAttribution-CUdm_sRl.js → commitAttribution-BJvmLsVe.js} +1 -1
- package/dist/chunks/commitAttribution-BgNel6QS.js +1 -0
- package/dist/chunks/{compact-R6vMbGQQ.js → compact-DLYic2Oa.js} +1 -1
- package/dist/chunks/{companion-ClxqTyG9.js → companion-C2CBSYiF.js} +1 -1
- package/dist/chunks/{config-CPK9PlWS.js → config-Cht2x9n9.js} +1 -1
- package/dist/chunks/{config-BQ-MayP6.js → config-DnWYFpDc.js} +1 -1
- package/dist/chunks/{context-CWfsKYEB.js → context-CDz9HqRT.js} +1 -1
- package/dist/chunks/{context-noninteractive-BJ4hE3MX.js → context-noninteractive-BUIf4IMX.js} +1 -1
- package/dist/chunks/context-noninteractive-CzuLiIeO.js +1 -0
- package/dist/chunks/{conversation-DizpkPtq.js → conversation-CLRfdC_V.js} +1 -1
- package/dist/chunks/conversation-D2iFk7Te.js +1 -0
- package/dist/chunks/{copy-BuPCS2HG.js → copy-BgHTb1Z0.js} +1 -1
- package/dist/chunks/{createSSHSession-Di9Je4Th.js → createSSHSession-C_mpeqPy.js} +1 -1
- package/dist/chunks/createSession-XhPMcSns.js +1 -0
- package/dist/chunks/{createSession-D6v0lBtG.js → createSession-kVJBXQlZ.js} +1 -1
- package/dist/chunks/{cronJitterConfig-By18m-PD.js → cronJitterConfig-SI7bYvJj.js} +1 -1
- package/dist/chunks/{crossProjectResume-C4YT2T6P.js → crossProjectResume-BMWSw62A.js} +1 -1
- package/dist/chunks/datadog-B5oHSyS1.js +1 -0
- package/dist/chunks/{datadog-BFSdlK6C.js → datadog-Bd9AgZT-.js} +1 -1
- package/dist/chunks/{desktop-Bd-JHrBo.js → desktop-BeUj2fqu.js} +1 -1
- package/dist/chunks/{diff-DGmINgOc.js → diff-BzgXDp1o.js} +1 -1
- package/dist/chunks/{doctor-DQ42RQPx.js → doctor-HCOexiL5.js} +1 -1
- package/dist/chunks/{effort-E6XjzPYR.js → effort-BaJU_k2K.js} +1 -1
- package/dist/chunks/entry-BoXZIfxW.js +14 -0
- package/dist/chunks/envLessBridgeConfig-CnR1E53G.js +1 -0
- package/dist/chunks/envLessBridgeConfig-DgdkC9jO.js +1 -0
- package/dist/chunks/{exit-CVlpMwCq.js → exit-B-9k0zjK.js} +1 -1
- package/dist/chunks/{export-CXcPQd0T.js → export-p85q3g8t.js} +1 -1
- package/dist/chunks/{exportRenderer-B9WXgMV2.js → exportRenderer-CUqd8PZM.js} +1 -1
- package/dist/chunks/extra-usage-CsJ9Z2G1.js +1 -0
- package/dist/chunks/{extra-usage-core-B20tawuN.js → extra-usage-core-B9Fy8_RP.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-DZRe98BZ.js → extra-usage-noninteractive-B4vaWh0y.js} +1 -1
- package/dist/chunks/{extra-usage-B2KmuAZe.js → extra-usage-pPprHqwq.js} +1 -1
- package/dist/chunks/{extraUsage-CxqJdnGC.js → extraUsage-CEHCMe7l.js} +1 -1
- package/dist/chunks/extractMemories-D34FfNYT.js +1 -0
- package/dist/chunks/{fast-CPmJ2bp3.js → fast-CiSIZ5FI.js} +1 -1
- package/dist/chunks/fast-CxPB-PBH.js +1 -0
- package/dist/chunks/{feedback-4GY3ahvw.js → feedback-C2QLdCfW.js} +1 -1
- package/dist/chunks/{firstPartyEventLogger-CISUrAsf.js → firstPartyEventLogger-CozFbFD9.js} +1 -1
- package/dist/chunks/{flushGate-Dr8sMjB7.js → flushGate-LXr8ynSz.js} +1 -1
- package/dist/chunks/{gates-DI4pxvrD.js → gates-BGfvIJXl.js} +1 -1
- package/dist/chunks/gates-D-kXXHiv.js +1 -0
- package/dist/chunks/{gemini-Dcfosr2Z.js → gemini-BFBrPtVM.js} +1 -1
- package/dist/chunks/{generateRecap-CH_fgtxk.js → generateRecap-CLla3Ymz.js} +1 -1
- package/dist/chunks/{generateSessionName-DO0R__8w.js → generateSessionName-DF4I7gr2.js} +1 -1
- package/dist/chunks/{githubRepoPathMapping-D5I8CVDz.js → githubRepoPathMapping-C_5RCW_Z.js} +1 -1
- package/dist/chunks/{grok-X0FzcE6Y.js → grok-Dih61WOo.js} +1 -1
- package/dist/chunks/{growthbook-DZPT2JzB.js → growthbook-C39e6Byf.js} +1 -1
- package/dist/chunks/{heapdump-Cq6i0wJH.js → heapdump-BRj4tC1y.js} +1 -1
- package/dist/chunks/{help-B8ddA-Ec.js → help-fH9LNwox.js} +1 -1
- package/dist/chunks/hooks-Cw-F-1uO.js +1 -0
- package/dist/chunks/{hooks-CvFNccdv.js → hooks-D22Uu3Vs.js} +1 -1
- package/dist/chunks/{hostAdapter-D3s4JFk-.js → hostAdapter-CbXytx4y.js} +1 -1
- package/dist/chunks/{ide-CzxV5_D7.js → ide-DM5Tw70v.js} +1 -1
- package/dist/chunks/{inboundAttachments-B3ZTyNKF.js → inboundAttachments-2QIORKsd.js} +1 -1
- package/dist/chunks/inboundAttachments-CZN_sUNx.js +1 -0
- package/dist/chunks/initReplBridge-D8sWx97P.js +1 -0
- package/dist/chunks/{insights-DiWlKgVQ.js → insights-B6ogyLuv.js} +1 -1
- package/dist/chunks/{install-BFpg1zm1.js → install-DimDiHha.js} +1 -1
- package/dist/chunks/{install-github-app-BUCGGSw0.js → install-github-app-CQ7vkhIX.js} +1 -1
- package/dist/chunks/{install-slack-app-D5JDqzbs.js → install-slack-app-By9_5YS7.js} +1 -1
- package/dist/chunks/{instrumentation--BToLJT9.js → instrumentation-DbKu2GCL.js} +3 -3
- package/dist/chunks/{job-mUyxSEc2.js → job-D_DoFtev.js} +1 -1
- package/dist/chunks/{keybindings-D4DbE4G0.js → keybindings-DYRBv1bg.js} +1 -1
- package/dist/chunks/{lang-cMcnaxAR.js → lang-CAMxxG9F.js} +1 -1
- package/dist/chunks/{language-sTn9sA3E.js → language-CoHgN7rh.js} +1 -1
- package/dist/chunks/language-DB1HIsF8.js +1 -0
- package/dist/chunks/{launchAgentsPlatform-CAfyCAsQ.js → launchAgentsPlatform-9P8K66ku.js} +1 -1
- package/dist/chunks/{launchAutofixPr-CSMamZS6.js → launchAutofixPr-BbsqqUMA.js} +1 -1
- package/dist/chunks/{launchLocalMemory-nYAwNsNT.js → launchLocalMemory-K55Yo6JM.js} +1 -1
- package/dist/chunks/{launchLocalVault-yPp8S-tG.js → launchLocalVault-rrd1Q7jP.js} +1 -1
- package/dist/chunks/{launchMemoryStores-Dk3SXucB.js → launchMemoryStores-DMZ8GNQj.js} +1 -1
- package/dist/chunks/{launchOnboarding-BoqmHyRx.js → launchOnboarding-Duz_huXl.js} +1 -1
- package/dist/chunks/{launchSchedule-C2HBjD6C.js → launchSchedule-7VlG_3M6.js} +1 -1
- package/dist/chunks/{launchSkillStore-B5Yjvi-k.js → launchSkillStore-CcJL8RT0.js} +1 -1
- package/dist/chunks/{launchTeleport-BayvAnwh.js → launchTeleport-C8h_4F_L.js} +1 -1
- package/dist/chunks/{launchVault-BszsgPbZ.js → launchVault-Bm1EeT2x.js} +1 -1
- package/dist/chunks/loadAgentsDir-DsskgPWe.js +1 -0
- package/dist/chunks/{loadAgentsDir-Cl2w3uvH.js → loadAgentsDir-HZ19tmOZ.js} +45 -45
- package/dist/chunks/{loadPluginHooks-YHtjByxm.js → loadPluginHooks-DoFtrBWf.js} +1 -1
- package/dist/chunks/{localSearch-CpeqVibs.js → localSearch-4cz5ia5a.js} +1 -1
- package/dist/chunks/localSearch-CScvVw0c.js +1 -0
- package/dist/chunks/{login-TVtq34WQ.js → login-D6ywctRr.js} +1 -1
- package/dist/chunks/login-FdPNsHJs.js +1 -0
- package/dist/chunks/{logoV2Utils-DwaRnvOY.js → logoV2Utils-jaFn88oE.js} +1 -1
- package/dist/chunks/logout-CulTqT7V.js +1 -0
- package/dist/chunks/{magicDocs-_yNWB88A.js → magicDocs-DHGtJq0K.js} +1 -1
- package/dist/chunks/{main-gTbhsbIs.js → main-Bv4AvaJk.js} +15 -15
- package/dist/chunks/{mappers-COd8OOml.js → mappers-qcXgNBi5.js} +1 -1
- package/dist/chunks/{mcp-DoraEndj.js → mcp-BXPg0RPm.js} +1 -1
- package/dist/chunks/{mcp-CChzTC5v.js → mcp-iCbCqg7w.js} +2 -2
- package/dist/chunks/mcp-yDWIJznG.js +2 -0
- package/dist/chunks/{mcpServer-CpBN77YB.js → mcpServer-DcSto-Od.js} +1 -1
- package/dist/chunks/{mcpServer-Wd9rZG_E.js → mcpServer-Do9XTs2J.js} +1 -1
- package/dist/chunks/{memory-I21QZZ9h.js → memory-B0YG4r65.js} +1 -1
- package/dist/chunks/model-DG0v1297.js +1 -0
- package/dist/chunks/{model-BrHh21Db.js → model-DwVGG0mc.js} +1 -1
- package/dist/chunks/{onChangeAppState-Cn_HSmmQ.js → onChangeAppState-CHYSALjM.js} +1 -1
- package/dist/chunks/{openai-BD2V4lHN.js → openai-Brj68CWD.js} +1 -1
- package/dist/chunks/{overageCreditGrant-B47t5a73.js → overageCreditGrant-D5X6-TcP.js} +1 -1
- package/dist/chunks/{passes-DAOPYX0C.js → passes-B1f6NHWA.js} +1 -1
- package/dist/chunks/{paths-q1-Ni8Oh.js → paths-D8Fx3kUi.js} +2 -2
- package/dist/chunks/{permissions-BmxTU-Pk.js → permissions-CYrv_WVH.js} +1 -1
- package/dist/chunks/{pipeTransport-DnHE3axn.js → pipeTransport-DAYnzvGK.js} +1 -1
- package/dist/chunks/{plan-4dmnQ9bv.js → plan-B7EPetF0.js} +1 -1
- package/dist/chunks/{plugin-CG7lJIpf.js → plugin-BRWx-_ZS.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-CPLuidh-.js → pluginAutoupdate-BwxAsU2F.js} +1 -1
- package/dist/chunks/{pluginBlocklist-BHxIUqu4.js → pluginBlocklist-BiRgxFei.js} +1 -1
- package/dist/chunks/{pluginCliCommands-BcDIvxR3.js → pluginCliCommands-CXANH43C.js} +1 -1
- package/dist/chunks/{pluginFlagging-Dh6rYOvj.js → pluginFlagging-CBbUoCJ9.js} +1 -1
- package/dist/chunks/{pluginOperations-fdLcp72i.js → pluginOperations-B3gcFjVq.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-Dy7EckW4.js → pluginStartupCheck-BNfv-Pf4.js} +1 -1
- package/dist/chunks/pluginStartupCheck-Ga_XiMnA.js +1 -0
- package/dist/chunks/{plugins-C3-iYKTp.js → plugins-zHTS03v8.js} +1 -1
- package/dist/chunks/policyLimits-Dsz-jkpD.js +1 -0
- package/dist/chunks/{pollConfig-BGXMaSla.js → pollConfig-BWY_xmk6.js} +1 -1
- package/dist/chunks/{poor-CxAil0Mi.js → poor-Bcu8JaV5.js} +1 -1
- package/dist/chunks/poorMode-BAuBNURJ.js +1 -0
- package/dist/chunks/{poorMode-DFcYVnMT.js → poorMode-CDhhKGBw.js} +1 -1
- package/dist/chunks/{print-Cog1o-Tw.js → print-DO52Fudu.js} +4 -4
- package/dist/chunks/{privacy-settings-D6g7p6sB.js → privacy-settings-CmHUlYoo.js} +1 -1
- package/dist/chunks/{processBashCommand-DqgujTR4.js → processBashCommand-DltW2Ubs.js} +1 -1
- package/dist/chunks/{processSlashCommand-DUPS9Xx3.js → processSlashCommand-JLJ_vF05.js} +1 -1
- package/dist/chunks/{prompt-BmOnuQfF.js → prompt-BxoRdmaw.js} +1 -1
- package/dist/chunks/prompt-D3rBUscf.js +1 -0
- package/dist/chunks/prompt-ohTcwieE.js +1 -0
- package/dist/chunks/{promptEditor-ClGwMkWl.js → promptEditor-LQu9NhbN.js} +1 -1
- package/dist/chunks/{protocolHandler--b0d38gF.js → protocolHandler-DYn2E9Yl.js} +1 -1
- package/dist/chunks/{rate-limit-options-DD2ZRREl.js → rate-limit-options-OQt6LUP8.js} +1 -1
- package/dist/chunks/{rcDebugLog-fhwD4wm-.js → rcDebugLog-5XEbz_Yg.js} +1 -1
- package/dist/chunks/{referral-rRvT6UDX.js → referral-BsAvaATn.js} +1 -1
- package/dist/chunks/{refresh-C7S_6LOQ.js → refresh-TlNezXn4.js} +1 -1
- package/dist/chunks/{registerProtocol-Bu_tz5Au.js → registerProtocol-COUVHFku.js} +1 -1
- package/dist/chunks/{registry-Bk0vdx_8.js → registry-m7JojEMY.js} +1 -1
- package/dist/chunks/{release-notes-BShc_V-B.js → release-notes-BDdughgu.js} +1 -1
- package/dist/chunks/{releaseNotes-D3wZdQVZ.js → releaseNotes-Bd3zxid3.js} +2 -2
- package/dist/chunks/{reload-plugins-CpytFAAC.js → reload-plugins-qUIybHNy.js} +1 -1
- package/dist/chunks/{remote-env-B9Of1v31.js → remote-env-GGlLNGsx.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-BXp6nJ8q.js → remoteBridgeCore-DpF5alU6.js} +1 -1
- package/dist/chunks/{remoteControlServer-BvlTaHu4.js → remoteControlServer-C32rxr3F.js} +1 -1
- package/dist/chunks/{rename-DhTddAd7.js → rename-CCF7A5mG.js} +1 -1
- package/dist/chunks/{resume-DwVeFqnc.js → resume-C6ereXig.js} +1 -1
- package/dist/chunks/{runtimeObserver-BtgDP8Gz.js → runtimeObserver-DBdzsp_h.js} +1 -1
- package/dist/chunks/{runtimeObserver-dtT0QHYO.js → runtimeObserver-jrNSkZU2.js} +2 -2
- package/dist/chunks/sandbox-adapter-CQ0imVO1.js +1 -0
- package/dist/chunks/{sandbox-toggle-CG2vZNAb.js → sandbox-toggle-Bfti5GKF.js} +1 -1
- package/dist/chunks/searchExtraTools-Ntz1u-YC.js +1 -0
- package/dist/chunks/{sentry-DFk8bzvt.js → sentry-CZUyEC3A.js} +1 -1
- package/dist/chunks/{session-DifFcUdR.js → session-DCIDa5dI.js} +1 -1
- package/dist/chunks/{sessionDiscovery-CRbLIQv1.js → sessionDiscovery-5m_pul65.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-DD2a-mTZ.js +1 -0
- package/dist/chunks/{sessionMemory-BdptRKL8.js → sessionMemory-BQP_RezB.js} +1 -1
- package/dist/chunks/sessionMemory-hbxplpxs.js +1 -0
- package/dist/chunks/sessionMemoryUtils-DlW9hqOH.js +1 -0
- package/dist/chunks/{sessionObserver-D3vw6SJ_.js → sessionObserver-LBqNoak9.js} +1 -1
- package/dist/chunks/sessionObserver-Lb1c5FPy.js +1 -0
- package/dist/chunks/sessionStorage-DG68Xvsy.js +1 -0
- package/dist/chunks/{sessionTitle-DnvlYJ-c.js → sessionTitle-BIykjtKk.js} +1 -1
- package/dist/chunks/{sessionTracing-BkzKJi0v.js → sessionTracing-Da_r0mIc.js} +1 -1
- package/dist/chunks/{settingsSync-CHZVpM34.js → settingsSync-BE0PQqyo.js} +1 -1
- package/dist/chunks/{setup-GxlEx1KG.js → setup-CjA5bW6e.js} +1 -1
- package/dist/chunks/{setup-BpwYOhci.js → setup-lxzmZdw5.js} +2 -2
- package/dist/chunks/{setup-BfecYO-n.js → setup-p04XtwYu.js} +1 -1
- package/dist/chunks/{shadowedRuleDetection-FNzEipG0.js → shadowedRuleDetection-Zqp1M5St.js} +1 -1
- package/dist/chunks/{sideQuestion-Bfa0SZn5.js → sideQuestion-DzJenEES.js} +1 -1
- package/dist/chunks/sink-BdRlnpoG.js +1 -0
- package/dist/chunks/{sink-DpAjuilF.js → sink-N5XR8Zgp.js} +1 -1
- package/dist/chunks/sinks-Bn0FK_Ab.js +1 -0
- package/dist/chunks/sinks-D8erzS9D.js +2 -0
- package/dist/chunks/{skill-learning-BSeEbCnP.js → skill-learning-CbMQ8IsZ.js} +1 -1
- package/dist/chunks/{skillChangeDetector-BEDBRGbY.js → skillChangeDetector-4XWLpjQl.js} +1 -1
- package/dist/chunks/{skillGapStore-BCO6YB3H.js → skillGapStore-Bp5IVfOx.js} +1 -1
- package/dist/chunks/{skillGapStore-B4GmZRJ0.js → skillGapStore-DbiDG9Pd.js} +2 -2
- package/dist/chunks/{skillGenerator-QgDWAvzK.js → skillGenerator-Bys7U1l_.js} +2 -2
- package/dist/chunks/skillLearning-702-D6Lq.js +1 -0
- package/dist/chunks/skillLearning-Cz7qU9V6.js +1 -0
- package/dist/chunks/{skillPanel-srZjMIbC.js → skillPanel-MIHU1PPp.js} +3 -3
- package/dist/chunks/{skillSearchPanel-DTvHcwNK.js → skillSearchPanel-MFB-PzB1.js} +2 -2
- package/dist/chunks/{skills-BlVUkWg4.js → skills-D4tZYFpd.js} +1 -1
- package/dist/chunks/{sprites-QO9r_mXk.js → sprites-B479AZSz.js} +1 -1
- package/dist/chunks/{stats-DdXM-u7l.js → stats-B-ErfxCJ.js} +1 -1
- package/dist/chunks/{status-BIZWtZqI.js → status-DVACJLsK.js} +1 -1
- package/dist/chunks/{statusNoticeHelpers-9sIAjiE6.js → statusNoticeHelpers-CwSCVvxP.js} +1 -1
- package/dist/chunks/{tag-DDJ8pAsl.js → tag-YpE2D2ve.js} +1 -1
- package/dist/chunks/{tasks-DYt6udr3.js → tasks-7N7iSiEx.js} +1 -1
- package/dist/chunks/{teamHelpers-BJuKEuyS.js → teamHelpers-BFdTH57t.js} +1 -1
- package/dist/chunks/teamHelpers-CmDn2xyl.js +1 -0
- package/dist/chunks/{teammateModeSnapshot-Zp1weNIZ.js → teammateModeSnapshot-CwacsQvD.js} +1 -1
- package/dist/chunks/teammateModeSnapshot-DXtG86pG.js +1 -0
- package/dist/chunks/{teleport-DkoFG3EI.js → teleport-CPB1CHBs.js} +1 -1
- package/dist/chunks/{templateJobs-V2-TVeGE.js → templateJobs-BM98KAEH.js} +1 -1
- package/dist/chunks/{terminalSetup-DMUDhXur.js → terminalSetup-CGiIwoIX.js} +1 -1
- package/dist/chunks/{terminalSetup-l0Vv_v1c.js → terminalSetup-yQ0CoywX.js} +1 -1
- package/dist/chunks/{theme-Dm1yCDce.js → theme-C5ULGNRs.js} +1 -1
- package/dist/chunks/{thinkback-DQAZE5SA.js → thinkback-CF_sLFvX.js} +1 -1
- package/dist/chunks/thinkback-D1Fv1QYl.js +1 -0
- package/dist/chunks/{thinkback-play-BJcGmc9X.js → thinkback-play-syg_SJm8.js} +1 -1
- package/dist/chunks/{toolEventObserver-C-BImvCz.js → toolEventObserver-CcLqNRcT.js} +1 -1
- package/dist/chunks/{toolEventObserver-BgkqkNwy.js → toolEventObserver-CuJbsUL0.js} +1 -1
- package/dist/chunks/toolPool-C4CO158z.js +1 -0
- package/dist/chunks/{toolPool-DYvz_Mjt.js → toolPool-CRq0GSrk.js} +1 -1
- package/dist/chunks/{trustedDevice-CXsk3eij.js → trustedDevice-C4tvgByY.js} +1 -1
- package/dist/chunks/{trustedDevice-BDrK9AQ6.js → trustedDevice-u2HpuTkN.js} +1 -1
- package/dist/chunks/{ultrareviewCommand-Bc8hMzHz.js → ultrareviewCommand-CWLiiq-z.js} +1 -1
- package/dist/chunks/{undercover-kRoI_nlN.js → undercover-CNlN7Xzl.js} +1 -1
- package/dist/chunks/undercover-jZEIpxrJ.js +1 -0
- package/dist/chunks/{updateCCB-BPGNN7VA.js → updateCCB-BWN4mOEz.js} +1 -1
- package/dist/chunks/{upgrade-DmEGLk6v.js → upgrade-CE25mJEk.js} +1 -1
- package/dist/chunks/upgrade-C_0-l0Zo.js +1 -0
- package/dist/chunks/{upload-49qk5TBL.js → upload-YpyOX2a-.js} +1 -1
- package/dist/chunks/{usage-DhJDFJVx.js → usage-Bw-kTwHb.js} +1 -1
- package/dist/chunks/{usage-sYgTL8wR.js → usage-DNXwr_ep.js} +1 -1
- package/dist/chunks/{useMainLoopModel-CJaR_qEJ.js → useMainLoopModel-DPmF_cMn.js} +1 -1
- package/dist/chunks/{useManagePlugins-B1FpmxFo.js → useManagePlugins-hPG7UMWo.js} +1 -1
- package/dist/chunks/{useMergedTools-eMPZ95TX.js → useMergedTools-BSO1NflP.js} +1 -1
- package/dist/chunks/{useSearchInput-CR-b0Qi6.js → useSearchInput-CR9uhbA7.js} +1 -1
- package/dist/chunks/{useSettingsErrors-p-PFBeaC.js → useSettingsErrors-453j5XuO.js} +1 -1
- package/dist/chunks/{useVoice-D3PqTfCK.js → useVoice-B5DQ5Tay.js} +1 -1
- package/dist/chunks/{util-BZ2fS3PR.js → util-D_BHu06u.js} +1 -1
- package/dist/chunks/utils--ZdihcLH.js +1 -0
- package/dist/chunks/{validatePlugin-QtcXXmZu.js → validatePlugin-Dxm-5f8W.js} +1 -1
- package/dist/chunks/{vim-LmepJftY.js → vim-BGqKMQxl.js} +1 -1
- package/dist/chunks/{voice-CNRTt4gH.js → voice-B2MWrkN3.js} +1 -1
- package/dist/chunks/voiceModeEnabled-0NU5pSM-.js +1 -0
- package/dist/chunks/{voiceModeEnabled-wWM929QG.js → voiceModeEnabled-if9dV1bW.js} +1 -1
- package/dist/chunks/{voiceStreamSTT-CnK9GN6Q.js → voiceStreamSTT-CWhKAxcp.js} +1 -1
- package/dist/chunks/voiceStreamSTT-yvcTWD7i.js +1 -0
- package/dist/chunks/{workerRegistry-CrIpKIZe.js → workerRegistry-BANOcuS2.js} +1 -1
- package/dist/chunks/worktree-CRn2SbHn.js +1 -0
- package/dist/chunks/{xml-CMdTGiv6.js → xml-DZp0WcWT.js} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-Bmcop2Do.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DO61Zz-S.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-FSHC5mxO.js +0 -1
- package/dist/chunks/Doctor-Dcntgp5Z.js +0 -1
- package/dist/chunks/Feedback-hFZwDSRp.js +0 -2
- package/dist/chunks/Grove-Cmcsx2UE.js +0 -1
- package/dist/chunks/MessageSelector-CDVC2CAj.js +0 -3
- package/dist/chunks/REPL-Dk3Ics9i.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-C998WSxs.js +0 -1
- package/dist/chunks/SentryErrorBoundary-BJLT-ebr.js +0 -1
- package/dist/chunks/Settings-DBopjMkN.js +0 -2
- package/dist/chunks/WelcomeV2-BBFGft_e.js +0 -1
- package/dist/chunks/api-B2HW-oZI.js +0 -1
- package/dist/chunks/assistant-BmM44yln.js +0 -1
- package/dist/chunks/auth-ndSNSeqS.js +0 -1
- package/dist/chunks/backgroundHousekeeping-DVo3ndZr.js +0 -1
- package/dist/chunks/bridgeConfig-ZcbBdhji.js +0 -1
- package/dist/chunks/bridgeEnabled-D5qCI5v2.js +0 -1
- package/dist/chunks/bridgeMain-B4Zv8UOe.js +0 -1
- package/dist/chunks/caches-D_W3nCFE.js +0 -1
- package/dist/chunks/changeDetector-CUsHUdul.js +0 -1
- package/dist/chunks/channelNotification-CLVU5AuO.js +0 -1
- package/dist/chunks/clear-BP-G1JWa.js +0 -1
- package/dist/chunks/client-BHfY6SC5.js +0 -1
- package/dist/chunks/commands-E0eNJ_XZ.js +0 -1
- package/dist/chunks/commitAttribution-B4DOgUS7.js +0 -1
- package/dist/chunks/context-noninteractive-D1Kxn5e0.js +0 -1
- package/dist/chunks/conversation-C23rDJe3.js +0 -1
- package/dist/chunks/createSession-Bsa0VJKS.js +0 -1
- package/dist/chunks/datadog-MUvg76p3.js +0 -1
- package/dist/chunks/entry-Di8oWZUk.js +0 -14
- package/dist/chunks/envLessBridgeConfig-BNvozi46.js +0 -1
- package/dist/chunks/envLessBridgeConfig-CUTBQKDY.js +0 -1
- package/dist/chunks/extra-usage-DVtAa1zD.js +0 -1
- package/dist/chunks/extractMemories-8uB606Y0.js +0 -1
- package/dist/chunks/fast-DTGg3pRh.js +0 -1
- package/dist/chunks/gates-BbF5S-Dy.js +0 -1
- package/dist/chunks/hooks-gwB4Eotj.js +0 -1
- package/dist/chunks/inboundAttachments-DxrrrqBW.js +0 -1
- package/dist/chunks/initReplBridge-DWpGy3aE.js +0 -1
- package/dist/chunks/language-DC6bsdvI.js +0 -1
- package/dist/chunks/loadAgentsDir-6_9ZFegv.js +0 -1
- package/dist/chunks/localSearch-DbEm6f3k.js +0 -1
- package/dist/chunks/login-D2x89UCR.js +0 -1
- package/dist/chunks/logout-BBPihkXp.js +0 -1
- package/dist/chunks/mcp-D-0wE0nJ.js +0 -2
- package/dist/chunks/model-C6_WjCy0.js +0 -1
- package/dist/chunks/pluginStartupCheck-fyqW-stg.js +0 -1
- package/dist/chunks/policyLimits-DUGrXcje.js +0 -1
- package/dist/chunks/poorMode-BkPHRLuG.js +0 -1
- package/dist/chunks/prompt-B-8CD-W_.js +0 -1
- package/dist/chunks/prompt-Da3gIGA8.js +0 -1
- package/dist/chunks/sandbox-adapter-Cm8kCM_U.js +0 -1
- package/dist/chunks/searchExtraTools-D-RZ9DId.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-Bixkjai4.js +0 -1
- package/dist/chunks/sessionMemory-T1K_mJRE.js +0 -1
- package/dist/chunks/sessionMemoryUtils-q3xRtP-z.js +0 -1
- package/dist/chunks/sessionObserver-i_3day_6.js +0 -1
- package/dist/chunks/sessionStorage-CusaYoh0.js +0 -1
- package/dist/chunks/sink-BSwQ045N.js +0 -1
- package/dist/chunks/sinks-C37Xl5c3.js +0 -2
- package/dist/chunks/sinks-DHHmQJi-.js +0 -1
- package/dist/chunks/skillLearning-CFYgFRPE.js +0 -1
- package/dist/chunks/skillLearning-en7AuVDZ.js +0 -1
- package/dist/chunks/teamHelpers-Cw5dPQor.js +0 -1
- package/dist/chunks/teammateModeSnapshot-BXC7ssXX.js +0 -1
- package/dist/chunks/thinkback-D1mk7cq1.js +0 -1
- package/dist/chunks/toolPool-DNH5H4Jg.js +0 -1
- package/dist/chunks/undercover-DUrQYxYo.js +0 -1
- package/dist/chunks/upgrade-BTI562Ce.js +0 -1
- package/dist/chunks/utils-hhztcb0b.js +0 -1
- package/dist/chunks/voiceModeEnabled-B57V7REx.js +0 -1
- package/dist/chunks/voiceStreamSTT-Dp-1uSjP.js +0 -1
- package/dist/chunks/worktree-YbEK6b36.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Cn as t,Ln as n,kt as r,wn as i}from"./schemas-BGAvj1T4.js";import{t as a}from"./v4-f1i_CNUT.js";import{S as o,y as s}from"./paths-q1-Ni8Oh.js";import{n as c,t as l}from"./lazySchema-2sOku3cX.js";import{i as u,r as d}from"./semver-Tw0AFar5.js";import{r as f,s as p}from"./bridgeEnabled-G6vxQV-7.js";async function m(){let e=await s(`tengu_bridge_repl_v2_config`,_),t=v().safeParse(e);return t.success?t.data:_}async function h(){let e=await m();return e.min_version&&u(`2.6.9`,e.min_version)?`Your version of Claude Code (2.6.9) is too old for Remote Control.\nVersion ${e.min_version} or higher is required. Run \`claude update\` to update.`:null}async function g(){return p()?(await m()).should_show_app_upgrade_message:!1}var _,v,y=e((()=>{a(),o(),l(),d(),f(),_={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:.25,init_retry_max_delay_ms:4e3,http_timeout_ms:1e4,uuid_dedup_buffer_size:2e3,heartbeat_interval_ms:2e4,heartbeat_jitter_fraction:.1,token_refresh_buffer_ms:3e5,teardown_archive_timeout_ms:1500,connect_timeout_ms:15e3,min_version:`0.0.0`,should_show_app_upgrade_message:!1},v=c(()=>i({init_retry_max_attempts:t().int().min(1).max(10).default(3),init_retry_base_delay_ms:t().int().min(100).default(500),init_retry_jitter_fraction:t().min(0).max(1).default(.25),init_retry_max_delay_ms:t().int().min(500).default(4e3),http_timeout_ms:t().int().min(2e3).default(1e4),uuid_dedup_buffer_size:t().int().min(100).max(5e4).default(2e3),heartbeat_interval_ms:t().int().min(5e3).max(3e4).default(2e4),heartbeat_jitter_fraction:t().min(0).max(.5).default(.1),token_refresh_buffer_ms:t().int().min(3e4).max(18e5).default(3e5),teardown_archive_timeout_ms:t().int().min(500).max(2e3).default(1500),connect_timeout_ms:t().int().min(5e3).max(6e4).default(15e3),min_version:n().refine(e=>{try{return u(e,`0.0.0`),!0}catch{return!1}}).default(`0.0.0`),should_show_app_upgrade_message:r().default(!1)}))}));export{g as a,y as i,h as n,m as r,_ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t}from"./envLessBridgeConfig-BNvozi46.js";t();export{e as shouldShowAppUpgradeMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./extra-usage-B2KmuAZe.js";e();export{t as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ql as e,Xl as t,Yl as n,Zl as r}from"./loadAgentsDir-Cl2w3uvH.js";e();export{n as drainPendingExtraction,t as executeExtractMemories,r as initExtractMemories};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./fast-CPmJ2bp3.js";t();export{n as FastModePicker,e as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t}from"./gates-DI4pxvrD.js";e();export{t as getChicagoEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Yt as e,un as t,vn as n,yn as r}from"./loadAgentsDir-Cl2w3uvH.js";r();export{e as executeSessionEndHooks,t as getSessionEndHookTimeoutMs,n as hasWorktreeCreateHook};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./inboundAttachments-B3ZTyNKF.js";export{e as resolveAndPrepend};
|
|
@@ -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{Ac as s,Jt as c,Pc as l,Pt as u,S as d,Sc as f,la as p,nn as m,on as h,ua as g,v as _}from"./paths-q1-Ni8Oh.js";import{L as v,V as y,X as ee,Y as b,d as x,s as S}from"./debug-UI3T040K.js";import{n as te,r as C}from"./analytics-DqMQntaB.js";import{F as w,P as T,i as ne,m as re,v as E}from"./git-CN3qtTb_.js";import{g as D,m as O}from"./log-CzsijfHZ.js";import{n as k,t as A}from"./sleep-8Eb9j_Ly.js";import{Aa as ie,Ar as ae,Ba as j,Ca as M,Da as N,Ea as oe,Eo as se,Ka as P,Lo as ce,Ma as F,Oa as le,Oo as I,Ra as L,Sa as ue,Ta as de,Vo as fe,Xv as pe,Zv as me,cd as R,fd as he,hr as z,ja as B,ka as ge,wa as _e}from"./loadAgentsDir-Cl2w3uvH.js";import{O as V,_ as ve,d as H,k as ye,n as be,t as U}from"./rcDebugLog-fhwD4wm-.js";import{a as W,c as G,d as xe,f as Se,o as K,r as Ce,s as q,u as J}from"./debugUtils-BBMFODKH.js";import{a as we,i as Te}from"./trustedDevice-CXsk3eij.js";import{a as Y,i as Ee,n as X,o as Z,t as Q}from"./bridgeConfig-DXUNQp2l.js";import{a as De,o as Oe,r as ke,s as Ae,t as je}from"./bridgeEnabled-G6vxQV-7.js";import{i as Me,t as $}from"./assistant-_dIpsqHM.js";import{t as Ne}from"./capacityWake-BXlUpptF.js";import{n as Pe,t as Fe}from"./pollConfig-BGXMaSla.js";import{a as Ie,n as Le,r as Re,t as ze}from"./workSecret-mS2OrpxF.js";import{a as Be,i as Ve,n as He,t as Ue}from"./createSession-D6v0lBtG.js";import{i as We,n as Ge}from"./envLessBridgeConfig-BNvozi46.js";import{n as Ke,o as qe}from"./mappers-COd8OOml.js";import{n as Je,r as Ye,t as Xe}from"./sessionTitle-DnvlYJ-c.js";import{a as Ze,i as Qe,n as $e,o as et,r as tt,t as nt}from"./bridgeMessaging-mek-AaFi.js";import{t as rt}from"./HybridTransport-xN03sWrt.js";import{n as it,r as at,t as ot}from"./flushGate-Dr8sMjB7.js";import{hostname as st}from"os";import{randomUUID as ct}from"crypto";a(),O(),E(),s(),g(),h(),d(),Y(),me(),ke(),ce(),L(),ae(),Ve(),We(),Ke(),Ye(),ge(),S(),U(),T(),te(),b(),G(),R(),we(),V(),H(),n(),K(),y(),A(),M();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:S,onInboundMessage:te,onPermissionResponse:T,onInterrupt:ne,onSetModel:re,onSetMaxThinkingTokens:E,onSetPermissionMode:D,onStateChange:O,onUserMessage:k,perpetual:A,initialSSESequenceNum:ie=0}=e,ae=++ft,{writeBridgePointer:j,clearBridgePointer:M,readBridgePointer:N}=await import(`./bridgePointer-B2FPGDWR.js`),se=A?await N(n):null,P=se?.source===`repl`?se:null;x(`[bridge:repl] initBridgeCore #${ae} starting (initialMessages=${b?.length??0}${P?` perpetual prior=env:${P.environmentId}`:``})`);let ce=le({baseUrl:c,getAccessToken:d,runnerVersion:`2.6.9`,onDebug:x,onAuth401:g,getTrustedDeviceToken:Te}),F=process.env.USER_TYPE===`ant`?oe(ce):ce,I={dir:n,machineName:i,branch:a,gitRepoUrl:o,maxSessions:1,spawnMode:`single-session`,verbose:!1,sandbox:!1,bridgeId:ct(),workerType:u,environmentId:ct(),reuseEnvironmentId:P?.environmentId,apiBaseUrl:c,sessionIngressUrl:l},L,fe;try{let e=await F.registerBridgeEnvironment(I);L=e.environment_id,fe=e.environment_secret}catch(e){return q(`registration_failed`,`[bridge:repl] Environment registration failed: ${v(e)}`),P&&await M(n),O?.(`failed`,v(e)),null}x(`[bridge:repl] Environment registered: ${L}`),w(`info`,`bridge_repl_env_registered`),C(`tengu_bridge_repl_env_registered`,{});async function pe(e,t){if(L!==e)return x(`[bridge:repl] Env mismatch (requested ${e}, got ${L}) — cannot reconnect in place`),!1;let n=Se(t),r=n===t?[t]:[t,n];for(let e of r)try{return await F.reconnectSession(L,e),x(`[bridge:repl] Reconnected session ${e} in place on env ${L}`),!0}catch(t){x(`[bridge:repl] reconnectSession(${e}) failed: ${v(t)}`)}return x(`[bridge:repl] reconnectSession exhausted — falling through to fresh session`),!1}let me=P?await pe(P.environmentId,P.sessionId):!1;P&&!me&&await M(n);let R;if(me&&P){if(R=P.sessionId,x(`[bridge:repl] Perpetual session reused: ${R}`),b&&S)for(let e of b)S.add(e.uuid)}else{let e=await f({environmentId:L,title:s,gitRepoUrl:o,branch:a,signal:AbortSignal.timeout(15e3)});if(!e)return x(`[bridge:repl] Session creation failed, deregistering environment`),C(`tengu_bridge_repl_session_failed`,{}),await F.deregisterEnvironment(L).catch(()=>{}),O?.(`failed`,`Session creation failed`),null;R=e,x(`[bridge:repl] Session created: ${R}`)}await j(n,{sessionId:R,environmentId:L,source:`repl`}),w(`info`,`bridge_repl_session_created`),C(`tengu_bridge_repl_started`,{has_initial_messages:!!(b&&b.length>0),inProtectedNamespace:t()});let z=new Set;if(b)for(let e of b)z.add(e.uuid);let B=new nt(2e3);for(let e of z)B.add(e);let ge=new nt(2e3),V=new AbortController,H=null;ve(e=>{V.signal.aborted||H?.reportMetadata(e)},{replayCurrent:!0});let U=0,W=me?ie:0,G=null,K=null,Ce=Ne(V.signal),J=Ce.wake,we=Ce.signal,Y=new ot,Ee=!k,X=0,Z=null;async function Q(){if(Z)return Z;Z=De();try{return await Z}finally{Z=null}}async function De(){if(X++,be(`doReconnect: attempt=${X}/3 envId=${L} sessionId=${R} workId=${G}`),U++,x(`[bridge:repl] Reconnecting after env lost (attempt ${X}/3)`),X>3)return x(`[bridge:repl] Environment reconnect limit reached (3), giving up`),!1;if(H){let e=H.getLastSequenceNum();e>W&&(W=e),H.close(),H=null}if(J(),Y.drop(),G){let e=G;if(await F.stopWork(L,e,!1).catch(()=>{}),G!==e)return x(`[bridge:repl] Poll loop recovered during stopWork await — deferring to it`),X=0,!0;G=null,K=null}if(V.signal.aborted)return x(`[bridge:repl] Reconnect aborted by teardown`),!1;let e=L;I.reuseEnvironmentId=e;try{let e=await F.registerBridgeEnvironment(I);L=e.environment_id,fe=e.environment_secret}catch(e){return I.reuseEnvironmentId=void 0,x(`[bridge:repl] Environment re-registration failed: ${v(e)}`),!1}if(I.reuseEnvironmentId=void 0,x(`[bridge:repl] Re-registered: requested=${e} got=${L}`),V.signal.aborted)return x(`[bridge:repl] Reconnect aborted after env registration, cleaning up`),await F.deregisterEnvironment(L).catch(()=>{}),!1;if(H!==null)return x(`[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it`),X=0,!0;if(await pe(e,R))return C(`tengu_bridge_repl_reconnected_in_place`,{}),X=0,!0;if(L!==e&&C(`tengu_bridge_repl_env_expired_fresh_session`,{}),await p(R),V.signal.aborted)return x(`[bridge:repl] Reconnect aborted after archive, cleaning up`),await F.deregisterEnvironment(L).catch(()=>{}),!1;let t=m(),r=await f({environmentId:L,title:t,gitRepoUrl:o,branch:a,signal:AbortSignal.timeout(15e3)});return r?V.signal.aborted?(x(`[bridge:repl] Reconnect aborted after session creation, cleaning up`),await p(r),!1):(R=r,he(xe(r)).catch(()=>{}),W=0,ge.clear(),Ee=!k,x(`[bridge:repl] Re-created session: ${R}`),await j(n,{sessionId:R,environmentId:L,source:`repl`}),S?.clear(),X=0,!0):(x(`[bridge:repl] Session creation failed during reconnection`),!1)}function Oe(){return d()}function ke(){let e=Y.end();if(e.length===0)return;if(!H){x(`[bridge:repl] Cannot drain ${e.length} pending message(s): no transport`);return}for(let t of e)B.add(t.uuid);let t=h(e).map(e=>({...e,session_id:R}));x(`[bridge:repl] Drained ${e.length} pending message(s) after flush`),H.writeBatch(t)}let Ae=null;function je(){Ae?.()}function Me(e){if(be(`handleTransportPermanentClose: code=${e} transport=${H?`exists`:`null`} pollAborted=${V.signal.aborted}`),x(`[bridge:repl] Transport permanently closed: code=${e}`),C(`tengu_bridge_repl_ws_closed`,{code:e}),H){let e=H.getLastSequenceNum();e>W&&(W=e),H=null}J();let t=Y.drop();if(t>0&&x(`[bridge:repl] Dropping ${t} pending message(s) on transport close (code=${e})`,{level:`warn`}),e===1e3){O?.(`failed`,`session ended`),V.abort(),je();return}O?.(`reconnecting`,`Remote Control connection lost (code ${e})`),x(`[bridge:repl] Transport reconnect budget exhausted (code=${e}), attempting env reconnect`),Q().then(t=>{t||V.signal.aborted||(x(`[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down`),C(`tengu_bridge_repl_reconnect_failed`,{close_code:e}),O?.(`failed`,`reconnection failed`),je())})}let $;process.env.USER_TYPE===`ant`&&process.platform!==`win32`&&($=()=>{x(`[bridge:repl] SIGUSR2 received — forcing doReconnect() for testing`),Q()},process.on(`SIGUSR2`,$));let Fe=null;process.env.USER_TYPE===`ant`&&de({fireClose:e=>{if(!Fe){x(`[bridge:debug] fireClose: no transport wired yet`);return}x(`[bridge:debug] fireClose(${e}) — injecting`),Fe(e)},forceReconnect:()=>{x(`[bridge:debug] forceReconnect — injecting`),Q()},injectFault:_e,wakePollLoop:J,describe:()=>`env=${L} session=${R} transport=${H?.getStateLabel()??`null`} workId=${G??`null`}`}),mt({api:F,getCredentials:()=>({environmentId:L,environmentSecret:fe}),signal:V.signal,getPollIntervalConfig:_,onStateChange:O,getWsState:()=>H?.getStateLabel()??`null`,isAtCapacity:()=>H!==null,capacitySignal:we,onFatalError:je,getHeartbeatInfo:()=>!G||!K?null:{environmentId:L,workId:G,sessionToken:K},onHeartbeatFatal:e=>{if(x(`[bridge:repl] heartbeatWork fatal (status=${e.status}) — tearing down work item for fast re-dispatch`),H){let e=H.getLastSequenceNum();e>W&&(W=e),H.close(),H=null}Y.drop(),G&&F.stopWork(L,G,!1).catch(e=>{x(`[bridge:repl] stopWork after heartbeat fatal: ${v(e)}`)}),G=null,K=null,J(),O?.(`reconnecting`,`Work item lease expired, fetching fresh token`)},async onEnvironmentLost(){return await Q()?{environmentId:L,environmentSecret:fe}:null},onWorkReceived:(e,t,i,a)=>{if(H?.isConnectedStatus()&&x(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${i})`),x(`[bridge:repl] Work received: workId=${i} workSessionId=${e} currentSessionId=${R} match=${Ie(e,R)}`),j(n,{sessionId:R,environmentId:L,source:`repl`}),!Ie(e,R)){x(`[bridge:repl] Rejecting foreign session: expected=${R} got=${e}`);return}G=i,K=t;let o=a||r(process.env.CLAUDE_BRIDGE_USE_CCR_V2),s;if(!o){if(s=Oe(),!s){x(`[bridge:repl] No OAuth token available for session ingress, skipping work`);return}ye(s)}if(C(`tengu_bridge_repl_work_received`,{}),H){let e=H;H=null;let t=e.getLastSequenceNum();t>W&&(W=t),e.close()}Y.deactivate();let u=e=>Qe(e,{transport:H,sessionId:R,onInterrupt:ne,onSetModel:re,onSetMaxThinkingTokens:E,onSetPermissionMode:D}),d=!1,f=e=>{H=e,e.setOnConnect(()=>{if(H===e){if(x(`[bridge:repl] Ingress transport connected`),C(`tengu_bridge_repl_ws_connected`,{}),!o){let e=Oe();e&&ye(e)}if(He=!1,!d&&b&&b.length>0){d=!0;let t=y,n=b.filter(e=>Ze(e)&&!S?.has(e.uuid)),r=t>0&&n.length>t?n.slice(-t):n;r.length<n.length&&(x(`[bridge:repl] Capped initial flush: ${n.length} -> ${r.length} (cap=${t})`),C(`tengu_bridge_repl_history_capped`,{eligible_count:n.length,capped_count:r.length}));let i=h(r);if(i.length>0){x(`[bridge:repl] Flushing ${i.length} initial message(s) via transport`);let t=i.map(e=>({...e,session_id:R})),n=e.droppedBatchCount;e.writeBatch(t).then(()=>{if(e.droppedBatchCount>n){x(`[bridge:repl] Initial flush dropped ${e.droppedBatchCount-n} batch(es) — not marking ${i.length} UUID(s) as flushed`);return}if(S)for(let e of i)e.uuid&&S.add(e.uuid)}).catch(e=>x(`[bridge:repl] Initial flush failed: ${e}`)).finally(()=>{H===e&&(ke(),O?.(`connected`))})}else ke(),O?.(`connected`)}else Y.active||O?.(`connected`)}}),e.setOnData(e=>{try{let t=JSON.parse(e);be(`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{be(`ingress (non-JSON): ${String(e).slice(0,200)}`)}tt(e,B,ge,te,T,u)}),Fe=Me,e.setOnClose(t=>{H===e&&(be(`transport onClose: code=${t} connected=${e.isConnectedStatus()} state=${e.getStateLabel()} seq=${e.getLastSequenceNum()}`),Me(t))}),!d&&b&&b.length>0&&Y.start(),e.connect()};if(U++,o){let n=ze(c,e),r=U;x(`[bridge:repl] CCR v2: sessionUrl=${n} session=${e} gen=${r}`),at({sessionUrl:n,ingressToken:t,sessionId:e,initialSequenceNum:W}).then(e=>{if(V.signal.aborted){e.close();return}if(r!==U){x(`[bridge:repl] CCR v2: discarding stale handshake gen=${r} current=${U}`),e.close();return}f(e)},e=>{x(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${v(e)}`,{level:`error`}),C(`tengu_bridge_repl_ccr_v2_init_failed`,{}),r===U&&(G&&(F.stopWork(L,G,!1).catch(e=>{x(`[bridge:repl] stopWork after v2 init failure: ${v(e)}`)}),G=null,K=null),J())})}else{let t=Le(l,e);x(`[bridge:repl] Ingress URL: ${t}`),x(`[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 ${Oe()??n}`,"anthropic-version":`2023-06-01`}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{O?.(`reconnecting`,`Lost sync with Remote Control — events could not be delivered`),J()}})))}}});let Re=A?setInterval(()=>{Z||j(n,{sessionId:R,environmentId:L,source:`repl`})},60*6e4):null;Re?.unref?.();let Be=_().session_keepalive_interval_v2_ms,Ve=Be>0?setInterval(()=>{H&&(x(`[bridge:repl] keep_alive sent`),H.write({type:`keep_alive`}).catch(e=>{x(`[bridge:repl] keep_alive write failed: ${v(e)}`)}))},Be):null;Ve?.unref?.();let He=!1;Ae=async()=>{if(He){x(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${L} session=${R}`);return}He=!0;let e=Date.now();if(x(`[bridge:repl] Teardown starting: env=${L} session=${R} workId=${G??`none`} transportState=${H?.getStateLabel()??`null`}`),Re!==null&&clearInterval(Re),Ve!==null&&clearInterval(Ve),$&&process.off(`SIGUSR2`,$),process.env.USER_TYPE===`ant`&&(ue(),Fe=null),V.abort(),x(`[bridge:repl] Teardown: poll loop aborted`),H){let e=H.getLastSequenceNum();e>W&&(W=e)}if(A){H=null,Y.drop(),await j(n,{sessionId:R,environmentId:L,source:`repl`}),x(`[bridge:repl] Teardown (perpetual): leaving env=${L} session=${R} alive on server, duration=${Date.now()-e}ms`);return}let t=H;if(H=null,Y.drop(),t){let e={...et(R),session_id:R};t.write(e)}let r=G?F.stopWork(L,G,!0).then(()=>{x(`[bridge:repl] Teardown: stopWork completed`)}).catch(e=>{x(`[bridge:repl] Teardown stopWork failed: ${v(e)}`)}):Promise.resolve();await Promise.all([r,p(R)]),t?.close(),x(`[bridge:repl] Teardown: transport closed`),await F.deregisterEnvironment(L).catch(e=>{x(`[bridge:repl] Teardown deregister failed: ${v(e)}`)}),await M(n),x(`[bridge:repl] Teardown complete: env=${L} duration=${Date.now()-e}ms`)};let Ue=ee(()=>Ae?.());return x(`[bridge:repl] Ready: env=${L} session=${R}`),O?.(`ready`),{get bridgeSessionId(){return R},get environmentId(){return L},getSSESequenceNum(){let e=H?.getLastSequenceNum()??0;return Math.max(W,e)},sessionIngressUrl:l,writeMessages(e){let t=e.filter(e=>Ze(e)&&!z.has(e.uuid)&&!B.has(e.uuid));if(t.length===0)return;if(!Ee)for(let e of t){let t=$e(e);if(t!==void 0&&k?.(t,R)){Ee=!0;break}}if(Y.enqueue(...t)){x(`[bridge:repl] Queued ${t.length} message(s) during initial flush`);return}if(!H){let e=t.map(e=>e.type).join(`,`);x(`[bridge:repl] Transport not configured, dropping ${t.length} message(s) [${e}] for session=${R}`,{level:`warn`});return}for(let e of t)B.add(e.uuid);x(`[bridge:repl] Sending ${t.length} message(s) via transport`);let n=h(t).map(e=>({...e,session_id:R}));H.writeBatch(n)},writeSdkMessages(e){let t=e.filter(e=>!e.uuid||!B.has(e.uuid));if(t.length===0)return;if(!H){x(`[bridge:repl] Transport not configured, dropping ${t.length} SDK message(s) for session=${R}`,{level:`warn`});return}for(let e of t)e.uuid&&B.add(e.uuid);let n=t.map(e=>({...e,session_id:R}));H.writeBatch(n)},sendControlRequest(e){if(!H){x(`[bridge:repl] Transport not configured, skipping control_request`);return}let t={...e,session_id:R};H.write(t),x(`[bridge:repl] Sent control_request request_id=${e.request_id}`)},sendControlResponse(e){if(!H){x(`[bridge:repl] Transport not configured, skipping control_response`);return}let t={...e,session_id:R};H.write(t),x(`[bridge:repl] Sent control_response`)},sendControlCancelRequest(e){if(!H){x(`[bridge:repl] Transport not configured, skipping control_cancel_request`);return}let t={type:`control_cancel_request`,request_id:e,session_id:R};H.write(t),x(`[bridge:repl] Sent control_cancel_request request_id=${e}`)},sendResult(){if(!H){x(`[bridge:repl] sendResult: skipping, transport not configured session=${R}`);return}H.reportState(`idle`);let e={...et(R),session_id:R};H.write(e),x(`[bridge:repl] Sent result for session=${R}`)},async teardown(){Ue(),await Ae?.(),x(`[bridge:repl] Torn down`),C(`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}){x(`[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:y,environmentSecret:ee}=t(),b=u();try{let t=await e.pollForWork(y,ee,n,b.reclaim_older_than_ms);if(g=0,p>0&&(x(`[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){C(`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(x(`[bridge:repl:heartbeat] Failed: ${v(e)}`),e instanceof N){r.cleanup(),C(`tengu_bridge_heartbeat_error`,{status:e.status,error_type:e.status===401||e.status===403?`auth_failed`:`fatal`}),f?(f(e),x(`[bridge:repl:heartbeat] Fatal (status=${e.status}), work state cleared — fast-polling for re-dispatch`)):i=!0;break}}a++,await k(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(C(`tengu_bridge_heartbeat_mode_exited`,{reason:o,heartbeat_cycles:a}),!i){o===`poll_due`&&x(`[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 k(r,e.signal),e.cleanup();let n=Date.now()-t-r;n>6e4&&(x(`[bridge:repl] At-capacity sleep overran by ${Math.round(n/1e3)}s — process suspension detected, forcing one fast-poll cycle`),C(`tengu_bridge_repl_suspension_detected`,{overrun_ms:n}),_=!0)}}else await k(b.poll_interval_ms_not_at_capacity,n);continue}let a;try{a=Re(t.secret)}catch(n){x(`[bridge:repl] Failed to decode work secret: ${v(n)}`),C(`tengu_bridge_repl_work_secret_failed`,{}),await e.stopWork(y,t.id,!1).catch(()=>{});continue}x(`[bridge:repl] Acknowledging workId=${t.id}`);try{await e.acknowledgeWork(y,t.id,a.session_ingress_token)}catch(e){x(`[bridge:repl] Acknowledge failed workId=${t.id}: ${v(e)}`)}if(t.data.type===`healthcheck`){x(`[bridge:repl] Healthcheck received`);continue}if(t.data.type===`session`){let e=t.data.id;try{F(e,`session_id`)}catch{x(`[bridge:repl] Invalid session_id in work: ${e}`);continue}i(e,a.session_ingress_token,t.id,a.use_code_sessions===!0),x(`[bridge:repl] Work accepted, continuing poll loop`)}}catch(i){if(n.aborted)break;if(i instanceof N&&i.status===404&&a){let e=t().environmentId;if(y!==e){x(`[bridge:repl] Stale poll error for old env=${y}, current env=${e} — skipping onEnvironmentLost`),p=0,m=null;continue}if(g++,x(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${g}/3)`),C(`tengu_bridge_repl_env_lost`,{attempt:g}),g>3){x(`[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`),x(`[bridge:repl] Re-registered environment: ${i.environmentId}`);continue}r?.(`failed`,`Environment deleted and re-registration failed`),l?.();break}if(i instanceof N){let e=ie(i.errorType),t=B(i);x(`[bridge:repl] Fatal poll error: ${i.message} (status=${i.status}, type=${i.errorType??`unknown`})${t?` (suppressed)`:``}`),C(`tengu_bridge_repl_fatal_error`,{status:i.status,error_type:i.errorType}),w(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&&(x(`[bridge:repl] Detected system sleep (${Math.round((s-h)/1e3)}s gap), resetting poll error budget`),w(`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=W(i),_=Ce(i),v=o?.()??`unknown`;if(x(`[bridge:repl] Poll error (attempt ${p}, elapsed ${Math.round(c/1e3)}s, ws=${v}): ${_}`),C(`tengu_bridge_repl_poll_error`,{status:f,consecutiveErrors:p,elapsedMs:c}),p===1&&r?.(`reconnecting`,_),c>=9e5){x(`[bridge:repl] Poll failures exceeded ${dt/1e3}s (${p} errors), giving up`),w(`info`,`bridge_repl_poll_give_up`),C(`tengu_bridge_repl_poll_give_up`,{consecutiveErrors:p,elapsedMs:c,lastStatus:f}),r?.(`failed`,`connection to server lost`);break}let ee=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 k(ee,n)}}x(`[bridge:repl] Work poll loop ended (aborted=${n.aborted}) env=${t().environmentId}`)}S(),y(),K(),G();async function ht(t){let{onInboundMessage:n,onPermissionResponse:r,onInterrupt:a,onSetModel:s,onSetMaxThinkingTokens:d,onSetPermissionMode:h,onStateChange:g,initialMessages:y,getMessages:ee,previouslyFlushedUUIDs:b,initialName:S,perpetual:te,outboundOnly:C,tags:w}=t??{};if(J(Oe),!await De())return q(`not_enabled`,`[bridge:repl] Skipping: bridge not enabled`),null;if(!Q())return q(`no_oauth`,`[bridge:repl] Skipping: no OAuth tokens`),g?.(`failed`,`/login`),null;if(await P(),!j(`allow_remote_control`))return q(`policy_denied`,`[bridge:repl] Skipping: allow_remote_control policy not allowed`),g?.(`failed`,`disabled by your organization's policy`),null;if(!Ee()){let e=f();if(e.bridgeOauthDeadExpiresAt!=null&&(e.bridgeOauthDeadFailCount??0)>=3&&c()?.expiresAt===e.bridgeOauthDeadExpiresAt)return x(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${e.bridgeOauthDeadFailCount} times)`),null;await u();let t=c();if(t&&t.expiresAt!==null&&t.expiresAt<=Date.now()){q(`oauth_expired_unrefreshable`,`[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)`),g?.(`failed`,`/login`);let e=t.expiresAt;return l(t=>({...t,bridgeOauthDeadExpiresAt:e,bridgeOauthDeadFailCount:t.bridgeOauthDeadExpiresAt===e?(t.bridgeOauthDeadFailCount??0)+1:1})),null}}let T=X(),E=`remote-control-${pe()}`,D=!1,O=!1;if(S)E=S,D=!0,O=!0;else{let e=i(),t=e?z(e):void 0;if(t)E=t,D=!0,O=!0;else if(y&&y.length>0)for(let e=y.length-1;e>=0;e--){let t=y[e];if(t.type!==`user`||t.isMeta||t.toolUseResult||t.isCompactSummary||t.origin&&t.origin.kind!==`human`||fe(t))continue;let n=se(t.message.content);if(!n)continue;let r=_t(n);if(r){E=r,D=!0;break}}}let k=0,A,ie=0,ae=(e,t,n)=>{D=!0,E=e,x(`[bridge:repl] derived title from message ${n}: ${e}`),Be(t,e,{baseUrl:T,getAccessToken:Q}).catch(()=>{})},M=(e,t)=>{let n=++ie,r=k;Je(e,AbortSignal.timeout(15e3)).then(e=>{e&&n===ie&&A===t&&!z(i())&&ae(e,t,r)})},N=(e,t)=>{if(O||z(i()))return!0;if(A!==void 0&&A!==t&&(k=0),A=t,k++,k===1&&!D){let n=_t(e);n&&ae(n,t,k),M(e,t)}else if(k===3){let n=ee?.();M(n?Xe(I(n)):e,t)}return k>=3},oe=_(`tengu_bridge_initial_history_cap`,200,300*1e3),ce=Z()?`self-hosted`:await p();if(!ce)return q(`no_org_uuid`,`[bridge:repl] Skipping: no org UUID`),g?.(`failed`,`/login`),null;if(Ae()&&!te){let e=await Ge();if(e)return q(`version_too_old`,`[bridge:repl] Skipping: ${e}`,!0),g?.(`failed`,"run `claude update` to upgrade"),null;x(`[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)`);let{initEnvLessBridgeCore:t}=await import(`./remoteBridgeCore-BXp6nJ8q.js`);return t({baseUrl:T,orgUUID:ce,title:E,getAccessToken:Q,onAuth401:m,toSDKMessages:qe,initialHistoryCap:oe,initialMessages:y,onInboundMessage:n,onUserMessage:N,onPermissionResponse:r,onInterrupt:a,onSetModel:s,onSetMaxThinkingTokens:d,onSetPermissionMode:h,onStateChange:g,outboundOnly:C,tags:w})}let F=je();if(F)return q(`version_too_old`,`[bridge:repl] Skipping: ${F}`),g?.(`failed`,"run `claude update` to upgrade"),null;let le=await ne(),L=await re(),ue=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||T,de=`claude_code`;{let{isAssistantMode:t}=(Me(),e($));t()&&(de=`claude_code_assistant`)}return pt({dir:o(),machineName:st(),branch:le,gitRepoUrl:L,title:E,baseUrl:T,sessionIngressUrl:ue,workerType:de,getAccessToken:Q,createSession:e=>He({...e,events:[],baseUrl:T,getAccessToken:Q}),archiveSession:e=>Ue(e,{baseUrl:T,getAccessToken:Q,timeoutMs:1500}).catch(e=>{x(`[bridge:repl] archiveBridgeSession threw: ${v(e)}`,{level:`error`})}),getCurrentTitle:()=>z(i())??E,onUserMessage:N,toSDKMessages:qe,onAuth401:m,getPollIntervalConfig:Fe,initialHistoryCap:oe,initialMessages:y,previouslyFlushedUUIDs:b,onInboundMessage:n,onPermissionResponse:r,onInterrupt:a,onSetModel:s,onSetMaxThinkingTokens:d,onSetPermissionMode:h,onStateChange:g,perpetual:te})}var gt=50;function _t(e){let t=D(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-sTn9sA3E.js";t();export{e as getResolvedLanguage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,t}from"./loadAgentsDir-Cl2w3uvH.js";e();export{t as clearAgentDefinitionsCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,o as n,t as r}from"./localSearch-CpeqVibs.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-TVtq34WQ.js";t();export{n as Login,e as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{AT as e,MT as t,NT as n,jT as r}from"./loadAgentsDir-Cl2w3uvH.js";t();export{e as call,r as clearAuthRelatedCaches,n as performLogout};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as e,M as t,d as n,n as r,t as i}from"./server-DzOdtq8A.js";import{Dr as a,Pr as o}from"./paths-q1-Ni8Oh.js";import{E as s,w as c}from"./debug-UI3T040K.js";import{o as l,s as u}from"./log-CzsijfHZ.js";import{G as d,Hm as f,JE as p,K as m,Ku as h,Lo as g,Na as _,OD as v,Pa as y,Vm as b,YE as x,kD as S,lo as C,nl as w,ou as T,qu as E,su as D,tl as O}from"./loadAgentsDir-Cl2w3uvH.js";import{Bn as k,Vn as A,zn as j}from"./prompt-BmOnuQfF.js";import{a as M,o as N}from"./fileStateCache-C7-TxF8G.js";import{n as P,t as F}from"./stdio-BEEzuxaZ.js";r(),P(),e(),x(),_(),A(),E(),S(),N(),l(),g(),o(),m(),b(),c(),D(),O();var I=[y];async function L(e,r,o){let c=M(100);f(e);let l=new i({name:`claude/tengu`,version:`2.6.9`},{capabilities:{tools:{}}});l.setRequestHandler(t,async()=>{let e=k(),t=h(e);return{tools:await Promise.all(t.map(async n=>{let r;if(n.outputSchema){let e=w(n.outputSchema);typeof e==`object`&&e&&`type`in e&&e.type===`object`&&(r=e)}return{...n,description:await n.prompt({getToolPermissionContext:async()=>e,tools:t,agents:[]}),inputSchema:w(n.inputSchema),outputSchema:r}}))}}),l.setRequestHandler(n,async({params:{name:e,arguments:t}})=>{let n=h(k()),i=j(n,e);if(!i)throw Error(`Tool ${e} not found`);let l={abortController:v(),options:{commands:I,tools:n,mainLoopModel:a(),thinkingConfig:{type:`disabled`},mcpClients:[],mcpResources:{},isNonInteractiveSession:!0,debug:r,verbose:o,agentDefinitions:{activeAgents:[],allAgents:[]}},getAppState:()=>p(),setAppState:()=>{},messages:[],readFileState:c,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};try{if(!i.isEnabled())throw Error(`Tool ${e} is not enabled`);let n=await i.validateInput?.(t??{},l);if(n&&!n.result)throw Error(`Tool ${e} input is invalid: ${n.message}`);let r=await i.call(t??{},l,d,C({content:[]}));return{content:[{type:`text`,text:typeof r==`string`?r:s(r.data)}]}}catch(e){return u(e),{isError:!0,content:[{type:`text`,text:(e instanceof Error?T(e):[String(e)]).filter(Boolean).join(`
|
|
2
|
-
`).trim()||`Error`}]}}});async function m(){let e=new F;await l.connect(e)}return await m()}export{L as startMCPServer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Dr as e,Pr as t}from"./paths-q1-Ni8Oh.js";t();export{e as getMainLoopModel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./pluginStartupCheck-Dy7EckW4.js";e();export{t as getPluginEditableScopes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ba as e,Ka as t,Ra as n}from"./loadAgentsDir-Cl2w3uvH.js";n();export{e as isPolicyAllowed,t as waitForPolicyLimitsToLoad};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./poorMode-DFcYVnMT.js";t();export{e as isPoorModeActive};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./prompt-BmOnuQfF.js";t();export{e as isDeferredTool};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Jk as e,eA as t}from"./loadAgentsDir-Cl2w3uvH.js";t();export{e as clearPromptCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{sA as e,uA as t}from"./loadAgentsDir-Cl2w3uvH.js";t();export{e as SandboxManager};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Yc as e,Zc as t}from"./loadAgentsDir-Cl2w3uvH.js";e();export{t as isSearchExtraToolsEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{gu as e,vu as t}from"./loadAgentsDir-Cl2w3uvH.js";e();export{t as registerSessionFileAccessHooks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./sessionMemory-BdptRKL8.js";t();export{e as manuallyExtractSessionMemory};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{XO as e,ek as t}from"./loadAgentsDir-Cl2w3uvH.js";t();export{e as getSessionMemoryContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./sessionObserver-D3vw6SJ_.js";e();export{t as heuristicObserverBackend};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ar as e,Lr as t,oi as n}from"./loadAgentsDir-Cl2w3uvH.js";e();export{t as linkSessionToPR,n as recordTranscript};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./sink-DpAjuilF.js";t();export{e as initializeAnalyticsSink};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./axios-DhfaybwJ.js";import{Ct as n,cn as r}from"./state-sIHsFpDu.js";import{E as i,J as a,X as o,Y as s,d as c,h as l,p as u,q as d,s as f,w as p}from"./debug-UI3T040K.js";import{o as m,r as h,t as g,v as _,y as v}from"./log-CzsijfHZ.js";import{i as y,t as b}from"./sentry-DFk8bzvt.js";import{r as x,t as S}from"./sink-DpAjuilF.js";import{dirname as C,join as w}from"path";t(),r(),a(),v(),s(),f(),l(),m(),p(),y();var T=h(new Date);function E(){return w(_.errors(),T+`.jsonl`)}function D(e){return w(_.mcpLogs(e),T+`.jsonl`)}function O(e){let t=d(e);return{write(e){t.write(i(e)+`
|
|
2
|
-
`)},flush:t.flush,dispose:t.dispose}}var k=new Map;function A(e){let t=k.get(e);if(!t){let n=C(e);t=O({writeFn:t=>{try{u().appendFileSync(e,t)}catch{u().mkdirSync(n),u().appendFileSync(e,t)}},flushIntervalMs:1e3,maxBufferSize:50}),k.set(e,t),o(async()=>t?.dispose())}return t}function j(e,t){if(process.env.USER_TYPE!==`ant`)return;let r={timestamp:new Date().toISOString(),...t,cwd:u().cwd(),userType:process.env.USER_TYPE,sessionId:n(),version:`2.6.9`};A(e).write(r)}function M(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`)return t.message;if(typeof t.error==`object`&&t.error&&`message`in t.error&&typeof t.error.message==`string`)return t.error.message}}function N(t){let n=t.stack||t.message,r=``;if(e.isAxiosError(t)&&t.config?.url){let e=[`url=${t.config.url}`];t.response?.status!==void 0&&e.push(`status=${t.response.status}`);let n=M(t.response?.data);n&&e.push(`body=${n}`),r=`[${e.join(`,`)}] `}c(`${t.name}: ${r}${n}`,{level:`error`}),j(E(),{error:`${r}${n}`}),b(t)}function P(e,t){c(`MCP server "${e}" ${t}`,{level:`error`});let r=D(e),i={error:t instanceof Error?t.stack||t.message:String(t),timestamp:new Date().toISOString(),sessionId:n(),cwd:u().cwd()};A(r).write(i)}function F(e,t){c(`MCP server "${e}": ${t}`);let r=D(e),i={debug:t,timestamp:new Date().toISOString(),sessionId:n(),cwd:u().cwd()};A(r).write(i)}function I(){g({logError:N,logMCPError:P,logMCPDebug:F,getErrorsPath:E,getMCPLogsPath:D}),c(`Error log sink initialized`)}S();function L(){I(),x()}export{L as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./sinks-C37Xl5c3.js";export{e as initSinks};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{t}from"./featureCheck-Cm0YNDXO.js";import{b as n,m as r,o as i}from"./skillGenerator-QgDWAvzK.js";import{S as a,T as o,f as s,i as c,k as l,u}from"./runtimeObserver-dtT0QHYO.js";import{i as d}from"./observationStore-tvkldXUo.js";import{a as f}from"./projectContext-eXMSfgdZ.js";import{a as p,c as m,d as h,i as g}from"./sessionObserver-D3vw6SJ_.js";import{n as _}from"./toolEventObserver-C-BImvCz.js";import{n as v}from"./skillGapStore-B4GmZRJ0.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-Cm0YNDXO.js";import"./instinctParser-DHMa8xa0.js";import"./skillGenerator-QgDWAvzK.js";import{p as e}from"./runtimeObserver-dtT0QHYO.js";import{o as t}from"./observationStore-tvkldXUo.js";import{c as n}from"./projectContext-eXMSfgdZ.js";import"./sessionObserver-D3vw6SJ_.js";import"./toolEventObserver-C-BImvCz.js";import"./skillGapStore-B4GmZRJ0.js";import{t as r}from"./skillLearning-CFYgFRPE.js";r();export{e as loadInstincts,t as readObservations,n as resolveProjectContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./teamHelpers-BJuKEuyS.js";e();export{t as cleanupSessionTeams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./teammateModeSnapshot-Zp1weNIZ.js";e();export{t as captureTeammateModeSnapshot};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./thinkback-DQAZE5SA.js";e();export{n as call,t as playAnimation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./toolPool-DYvz_Mjt.js";e();export{t as applyCoordinatorToolFilter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t}from"./undercover-kRoI_nlN.js";t();export{e as shouldShowUndercoverAutoNotice};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./upgrade-DmEGLk6v.js";e();export{t as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Sp as e,yp as t}from"./loadAgentsDir-Cl2w3uvH.js";e();export{t as clearWebFetchCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n}from"./voiceModeEnabled-wWM929QG.js";n();export{t as isVoiceGrowthBookEnabled,e as isVoiceModeEnabled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./voiceStreamSTT-CnK9GN6Q.js";t();export{e as isVoiceStreamAvailable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wt as e,yt as t}from"./loadAgentsDir-Cl2w3uvH.js";e();export{t as execIntoTmuxWorktree};
|