very-happy-cli 0.2.197 → 0.2.199
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/{AcpBackend-B-CD1MrV.mjs → AcpBackend-Bo6bOamG.mjs} +3 -3
- package/dist/{AcpBackend-CqDg1GgF.cjs → AcpBackend-HhZ8nrIh.cjs} +3 -3
- package/dist/{AcpSessionManager-Cv1KTldV.cjs → AcpSessionManager--7nDgA9S.cjs} +2 -2
- package/dist/{AcpSessionManager-CgomFAjk.mjs → AcpSessionManager-C-pkJKO2.mjs} +2 -2
- package/dist/{BasePermissionHandler-D6-fZvtx.mjs → BasePermissionHandler-Ffp54Ntg.mjs} +1 -1
- package/dist/{BasePermissionHandler-BxUjjHiI.cjs → BasePermissionHandler-al7UXWRq.cjs} +1 -1
- package/dist/{account-CnN-iHFd.mjs → account-Bnk1yyGS.mjs} +11 -11
- package/dist/{account-Bexqa-vj.cjs → account-DCIz-iyL.cjs} +11 -11
- package/dist/{accountService-DL6xhVUa.cjs → accountService-B59oKwa4.cjs} +4 -4
- package/dist/{accountService-DQ21IlBs.mjs → accountService-WPnOpkvs.mjs} +4 -4
- package/dist/{acpSessionResume-DzFELzTU.mjs → acpSessionResume-BVroOlVN.mjs} +1 -1
- package/dist/{acpSessionResume-CfEw8L26.cjs → acpSessionResume-CfogEHtT.cjs} +1 -1
- package/dist/{agentHome-CmSA7hBC.mjs → agentHome-CHTzSiu4.mjs} +4 -4
- package/dist/{agentHome-CBYL4J4Q.cjs → agentHome-Y3bMEtCp.cjs} +4 -4
- package/dist/{api-CB3tLbbj.cjs → api-CgzfmyYS.cjs} +30 -28
- package/dist/{api-Do7MUIrP.mjs → api-DibgCucH.mjs} +14 -12
- package/dist/{apiMachine-CytFlPdl.mjs → apiMachine-BUaFSi27.mjs} +22 -20
- package/dist/{apiMachine-guUGAifI.cjs → apiMachine-DSI5mKlh.cjs} +34 -32
- package/dist/{attachmentContent-B8Lg7kgp.mjs → attachmentContent-D9wq3bok.mjs} +2 -2
- package/dist/{attachmentContent-errR84kh.cjs → attachmentContent-JWUS5uhH.cjs} +2 -2
- package/dist/{auth-ZKJNs8AK.cjs → auth-B6H2wHTy.cjs} +5 -5
- package/dist/{auth-BhM0lHLA.cjs → auth-BXav16o0.cjs} +8 -8
- package/dist/{auth-Dnu0Mocz.mjs → auth-BjWk9sHU.mjs} +5 -5
- package/dist/{auth-B-1T6w1U.mjs → auth-DFMJQDNF.mjs} +8 -8
- package/dist/{auto-eimPZ4gm.cjs → auto-CMO-VQYN.cjs} +17 -17
- package/dist/{auto-CFSmWudH.mjs → auto-DOhQ2OU5.mjs} +17 -17
- package/dist/{bootstrap-B7mwfud6.cjs → bootstrap-Brd_jnA2.cjs} +2 -2
- package/dist/{bootstrap-C2JyiPax.mjs → bootstrap-CY7Db_VV.mjs} +2 -2
- package/dist/{browser-B3VVAWcC.cjs → browser-BhncBLE4.cjs} +1 -1
- package/dist/{browser-Cnk2N81e.mjs → browser-BpwBEJDU.mjs} +1 -1
- package/dist/{claudeAccountEnv-CPO6CGNd.mjs → claudeAccountEnv-CYwfvK1u.mjs} +1 -1
- package/dist/{claudeAccountEnv-_O3x5AJ1.cjs → claudeAccountEnv-z_ecsJAP.cjs} +1 -1
- package/dist/{claudeLocal-CvZ5Sfq_.cjs → claudeLocal-Co_DyW-D.cjs} +5 -5
- package/dist/{claudeLocal-gDpGeteK.mjs → claudeLocal-coKrsYmR.mjs} +5 -5
- package/dist/{claudeLocalLauncher-e_DkguJW.mjs → claudeLocalLauncher-BFnLc0R-.mjs} +10 -10
- package/dist/{claudeLocalLauncher-CFSxFln_.cjs → claudeLocalLauncher-CNDrO3b6.cjs} +10 -10
- package/dist/{claudeSessionFork--_RtwhC2.cjs → claudeSessionFork-BuDN5SkN.cjs} +1 -1
- package/dist/{claudeSessionFork-BMMJmfxX.mjs → claudeSessionFork-dOOc9hpA.mjs} +1 -1
- package/dist/{client-BeEAF2yn.mjs → client-B5uvkdLn.mjs} +2 -2
- package/dist/{client-DH_mgm2T.cjs → client-BKyTA9Hf.cjs} +2 -2
- package/dist/{client-TZ1BY7kn.cjs → client-CBbUzTcm.cjs} +4 -4
- package/dist/{client-CkiWUkm6.mjs → client-DKPLBLvx.mjs} +2 -2
- package/dist/{client-DmO89_dS.cjs → client-KbhVRYjy.cjs} +2 -2
- package/dist/{client-Bav5WI8p.mjs → client-Ng-oAhlX.mjs} +4 -4
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAccount-CYhQir50.cjs → codexAccount-8Wv5enLR.cjs} +1 -1
- package/dist/{codexAccount-iZwmpYti.mjs → codexAccount-DeFAjaHW.mjs} +1 -1
- package/dist/{codexAppServerClient-C4FYS9D9.cjs → codexAppServerClient-6QmZ2Tn5.cjs} +3 -3
- package/dist/{codexAppServerClient-AcMiUjlK.mjs → codexAppServerClient-BAcU_XN8.mjs} +3 -3
- package/dist/{codexCommand-CuteJvKE.mjs → codexCommand-CCeaWZ-1.mjs} +54 -47
- package/dist/{codexCommand-BkF16_aL.cjs → codexCommand-hJYa82Af.cjs} +54 -47
- package/dist/{codexTermination-CjHWp1C_.mjs → codexTermination-BX0sCNFy.mjs} +1 -1
- package/dist/{codexTermination-DGgKsMxj.cjs → codexTermination-DKjQcC3e.cjs} +1 -1
- package/dist/{config-BklFo_Cs.cjs → config-171VOPLq.cjs} +3 -3
- package/dist/{config-CUvb7oaW.mjs → config-9iXYh_zS.mjs} +3 -3
- package/dist/{configuration-BL_fxboH.cjs → configuration-CAzuk0Xs.cjs} +1 -1
- package/dist/{configuration-BIh6P6kB.mjs → configuration-D9k5yIzV.mjs} +1 -1
- package/dist/{connect-KIJsx0iT.mjs → connect-BEhKtsEn.mjs} +13 -13
- package/dist/{connect-Bi7cRXtj.cjs → connect-MlXU2FE3.cjs} +13 -13
- package/dist/{context-BYcZIvKn.cjs → context-CI9LnDu1.cjs} +1 -1
- package/dist/{context-Ct__7RAS.mjs → context-WVEuAdf2.mjs} +1 -1
- package/dist/{controlClient-DMtkGpc3.cjs → controlClient-Bb188cU0.cjs} +3 -3
- package/dist/{controlClient-CPZkMKsH.mjs → controlClient-DhFAPGHz.mjs} +3 -3
- package/dist/{createSessionMetadata-DkkddlJa.mjs → createSessionMetadata-BIK0Xz31.mjs} +2 -2
- package/dist/{createSessionMetadata-BWr0XT-Y.cjs → createSessionMetadata-C2EQi_od.cjs} +2 -2
- package/dist/{daemonAccounts-CnAEaJE_.mjs → daemonAccounts-DD5YBwku.mjs} +3 -3
- package/dist/{daemonAccounts-CxMJw7x2.cjs → daemonAccounts-nLyHz8WB.cjs} +2 -2
- package/dist/{defaultPermissionMode-BCWCMONI.cjs → defaultPermissionMode-BA1fgIpW.cjs} +1 -1
- package/dist/{defaultPermissionMode-CpEJ0wlb.mjs → defaultPermissionMode-Dmw3lpdN.mjs} +1 -1
- package/dist/{deterministicJson-Dm3yDrwj.mjs → deterministicJson-BJ7LY5-S.mjs} +13 -13
- package/dist/{deterministicJson-BO6ZUUiV.cjs → deterministicJson-DCzFgRiT.cjs} +13 -13
- package/dist/{doctor-DHK-5Hxm.cjs → doctor-CH_pTY3Q.cjs} +7 -7
- package/dist/{doctor-TK49jR60.mjs → doctor-jAPeyoi6.mjs} +7 -7
- package/dist/{downloadTarget-C2XcfMXb.mjs → downloadTarget-BhMm1keb.mjs} +6 -6
- package/dist/{downloadTarget-QP5nnKsW.cjs → downloadTarget-CZS0BVu2.cjs} +6 -6
- package/dist/{ensureDaemonRunning-Bi-PF5LL.mjs → ensureDaemonRunning-BjbC8PuJ.mjs} +5 -5
- package/dist/{ensureDaemonRunning-pg-EYmG0.cjs → ensureDaemonRunning-CTKaWMED.cjs} +5 -5
- package/dist/{handleResumeCommand-B69L6W80.mjs → handleResumeCommand-DbFTdwoc.mjs} +5 -5
- package/dist/{handleResumeCommand-CMLpVjkl.cjs → handleResumeCommand-DsaEUiax.cjs} +5 -5
- package/dist/{index-BSSAKD4Q.mjs → index-BAjoMeJi.mjs} +4 -4
- package/dist/{index-CwwDV02T.mjs → index-BEKb2cxz.mjs} +43 -43
- package/dist/{index-C27JFCbe.mjs → index-BQvPYTNM.mjs} +258 -90
- package/dist/{index-D9Hidq-g.cjs → index-BnT8yvlF.cjs} +258 -89
- package/dist/{index-DgnbOqH_.cjs → index-DL6ONx6v.cjs} +3 -3
- package/dist/{index-P6modcWo.mjs → index-DcfbjaVL.mjs} +3 -3
- package/dist/{index-sXThJ-ic.cjs → index-DdJRSpLB.cjs} +42 -42
- package/dist/{index-BM14YD9K.mjs → index-DpQ9OLYi.mjs} +4 -4
- package/dist/{index-DC_XlLAD.cjs → index-DuoMPw0y.cjs} +4 -4
- package/dist/{index-XeWmi_Wt.cjs → index-qVJYCmRA.cjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-Cyb1ZsOO.cjs → install-5nblS8vW.cjs} +3 -3
- package/dist/{install-B6vD9h4Z.mjs → install-CJcRTQVK.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.mjs +12 -12
- package/dist/{localHappyAgentAuth-Dxl6itKW.cjs → localHappyAgentAuth-Bsk_VyUN.cjs} +1 -1
- package/dist/{localHappyAgentAuth-BupJnMMB.mjs → localHappyAgentAuth-CD896cy4.mjs} +1 -1
- package/dist/{logger-CtweAuKq.cjs → logger-LsJ3Cl5o.cjs} +2 -2
- package/dist/{logger-CahcyjlK.mjs → logger-n9NOzHhK.mjs} +2 -2
- package/dist/{machineMetadata-jOqz4fn8.mjs → machineMetadata-Bc7FwngX.mjs} +3 -3
- package/dist/{machineMetadata-thOCcaSv.cjs → machineMetadata-CUU2NSYl.cjs} +3 -3
- package/dist/{main-CTIbEEsd.cjs → main-CEu9zJ4x.cjs} +47 -47
- package/dist/{main-bCGlXj7y.mjs → main-CzItRviV.mjs} +47 -47
- package/dist/{mcp-BOS5msHd.cjs → mcp-CPW1yQdX.cjs} +18 -18
- package/dist/{mcp-dtmpWc-Y.mjs → mcp-yK3ynz_E.mjs} +18 -18
- package/dist/{mirrorProtocol-CFDn3zfT.cjs → mirrorProtocol-5bgkr1Or.cjs} +3 -3
- package/dist/{mirrorProtocol-OJPFNpbq.mjs → mirrorProtocol-CoXxepvL.mjs} +3 -3
- package/dist/{package-DUKnh8UF.mjs → package-CCF6FHr2.mjs} +7 -7
- package/dist/{package-DdYN77UN.cjs → package-D7V1BX2I.cjs} +7 -7
- package/dist/{panels-DZZTavkP.cjs → panels-9DdVhaxc.cjs} +5 -5
- package/dist/{panels-DQs5x77X.mjs → panels-CF5n641F.mjs} +5 -5
- package/dist/{peerTools-03MimWe-.cjs → peerTools-Dv6bgHkW.cjs} +5 -5
- package/dist/{peerTools-ByJiL-w1.mjs → peerTools-gR_3dwdA.mjs} +5 -5
- package/dist/{persistence-CPIj3Iha.mjs → persistence-B5U9rC15.mjs} +2 -2
- package/dist/{persistence-CWEaFv6R.cjs → persistence-Dl3sBrCF.cjs} +2 -2
- package/dist/{piRunnerArgs-DxbuKnFC.mjs → piRunnerArgs-DOV74xAt.mjs} +1 -1
- package/dist/{piRunnerArgs-Aqs-zKLm.cjs → piRunnerArgs-rygeUdRz.cjs} +1 -1
- package/dist/{piRuntime-BFMV2Hlg.cjs → piRuntime-BvxCy9qQ.cjs} +1 -1
- package/dist/{piRuntime-KJn9G3Ax.mjs → piRuntime-dtlRpOYa.mjs} +1 -1
- package/dist/{piTerminal-DhVFk2Hc.mjs → piTerminal-Bx6c5Jyd.mjs} +20 -20
- package/dist/{piTerminal-DFzQb38E.cjs → piTerminal-ClaMS-57.cjs} +20 -20
- package/dist/{pushNotifications-BhnrQa32.cjs → pushNotifications-IZaTtVDG.cjs} +3 -3
- package/dist/{pushNotifications-CD5-W90c.mjs → pushNotifications-pHkbUkqT.mjs} +3 -3
- package/dist/{query-BRvDJTUF.cjs → query-BVqnfxlX.cjs} +1 -1
- package/dist/{query-BRTHwQ1m.mjs → query-D_3rFFWe.mjs} +1 -1
- package/dist/{rateLimitWindows-_KfSDJdB.cjs → rateLimitWindows-C7xi99Eb.cjs} +1 -1
- package/dist/{rateLimitWindows-BAfkXSck.mjs → rateLimitWindows-DnLJ-gve.mjs} +1 -1
- package/dist/{lidState-DXy1ymL0.cjs → reconnectGate-CHI12y0Y.cjs} +27 -2
- package/dist/{lidState-nbXgabCS.mjs → reconnectGate-DPDXEkOX.mjs} +27 -3
- package/dist/{registerCommonHandlers-Anq6Ma1d.mjs → registerCommonHandlers-BrTglZnC.mjs} +2 -2
- package/dist/{registerCommonHandlers-CsMpXP1_.cjs → registerCommonHandlers-CUCw-rad.cjs} +2 -2
- package/dist/{registerKillSessionHandler-DvA-f_D4.mjs → registerKillSessionHandler-BJSVT1iq.mjs} +6 -6
- package/dist/{registerKillSessionHandler-DnES0UnY.cjs → registerKillSessionHandler-Bo697Mt0.cjs} +6 -6
- package/dist/{registerSideQuestionHandler-B6EgCzBZ.mjs → registerSideQuestionHandler-BFPCMrmC.mjs} +4 -4
- package/dist/{registerSideQuestionHandler-GIzcFczo.cjs → registerSideQuestionHandler-HNpsU_20.cjs} +4 -4
- package/dist/{remoteSessionClient-BsXgrMSP.cjs → remoteSessionClient-9NzkfL13.cjs} +5 -5
- package/dist/{remoteSessionClient-DYTwJSZR.mjs → remoteSessionClient-Blz-z9jM.mjs} +5 -5
- package/dist/{reportProgressTool-DzmnFItq.mjs → reportProgressTool-B2-RFomn.mjs} +3 -3
- package/dist/{reportProgressTool-DhTM7qvk.cjs → reportProgressTool-CW9rSnwQ.cjs} +3 -3
- package/dist/{run-D0nDSvGo.cjs → run-9aB7U4BF.cjs} +40 -40
- package/dist/{run-Cuz34V0P.mjs → run-BXyfDvCk.mjs} +40 -40
- package/dist/{runClaude-DHHDBtKG.cjs → runClaude-B4ohp5Dk.cjs} +25 -25
- package/dist/{runClaude-ySgHmPJg.mjs → runClaude-BKpWJdCX.mjs} +25 -25
- package/dist/{runClaudeDeps-k-QAN7Em.mjs → runClaudeDeps-B0x5BCqC.mjs} +46 -46
- package/dist/{runClaudeDeps-Cfeci4al.cjs → runClaudeDeps-gqSYeQkl.cjs} +40 -40
- package/dist/{runGemini-Dob7MFa2.cjs → runGemini-BMzDy7hY.cjs} +33 -33
- package/dist/{runGemini-BpiHwTGj.mjs → runGemini-BvV5k9b3.mjs} +33 -33
- package/dist/{runOpenClaw-B-BGCcbD.cjs → runOpenClaw-3Cx3C2ww.cjs} +18 -18
- package/dist/{runOpenClaw-B_7LblMr.mjs → runOpenClaw-UcIDMHm7.mjs} +18 -18
- package/dist/{sandbox-D4UmUYIM.mjs → sandbox-BC-KbWe7.mjs} +4 -4
- package/dist/{sandbox-D9xs3oeT.cjs → sandbox-QJdxjmxr.cjs} +4 -4
- package/dist/{selfCheck-B1ueapb2.cjs → selfCheck-Be_M5coh.cjs} +39 -39
- package/dist/selfCheck-NWjxjpSx.mjs +88 -0
- package/dist/{send-CgIeqwqq.cjs → send-DhWp8M8B.cjs} +8 -8
- package/dist/{send-BZoS0m6-.mjs → send-x789D5ci.mjs} +8 -8
- package/dist/{server-C5zdUyIu.mjs → server-D-aSnlWI.mjs} +4 -4
- package/dist/{server-XgEG5D8c.cjs → server-kPDtS-DX.cjs} +6 -6
- package/dist/{sessionLock-CbIB9WAp.cjs → sessionLock-CuPN9xfW.cjs} +3 -3
- package/dist/{sessionLock-C4zRSYwt.mjs → sessionLock-JWBEd8g_.mjs} +3 -3
- package/dist/{sessionOps-flaRRzdo.cjs → sessionOps-CYNOycqT.cjs} +4 -4
- package/dist/{sessionOps-fuLJNyOT.mjs → sessionOps-VS1baPz_.mjs} +4 -4
- package/dist/{sessionProvider-DlWrak_l.cjs → sessionProvider-DksA6icp.cjs} +10 -10
- package/dist/{sessionProvider-DPwRzcbT.mjs → sessionProvider-iRLKuR9V.mjs} +10 -10
- package/dist/{sessionScanner-I6fGycPd.cjs → sessionScanner--X2Pzlra.cjs} +3 -3
- package/dist/{sessionScanner-BX7ZBVzX.mjs → sessionScanner-CAxiFc_3.mjs} +3 -3
- package/dist/{sessions-Cr0jIQ9r.cjs → sessions-BrnP53eO.cjs} +10 -10
- package/dist/{sessions-Csz0_dnz.mjs → sessions-Dca1UgiF.mjs} +10 -10
- package/dist/{setupOfflineReconnection-BawiOCUA.cjs → setupOfflineReconnection-Dwg6nHnP.cjs} +2 -2
- package/dist/{setupOfflineReconnection-Pxsr7M_B.mjs → setupOfflineReconnection-nguxOn4s.mjs} +2 -2
- package/dist/{spawn-C3wiREei.mjs → spawn-BJMU9zbZ.mjs} +14 -14
- package/dist/{spawn-Bfw10V7R.cjs → spawn-DDyMxQ7Z.cjs} +14 -14
- package/dist/{spawnAgents-Cm23BW-D.cjs → spawnAgents-B8GT4JQX.cjs} +1 -1
- package/dist/{spawnAgents-N3jxdNJC.mjs → spawnAgents-SeUX5gIq.mjs} +1 -1
- package/dist/{spawnHappyCLI-D4_Ij_BB.cjs → spawnHappyCLI-Cvk2ZMYj.cjs} +1 -1
- package/dist/{spawnHappyCLI-C9dzdAh0.mjs → spawnHappyCLI-DnT_QEdn.mjs} +1 -1
- package/dist/{startFileWatcher-905w_JCn.cjs → startFileWatcher-DLfkP-IW.cjs} +1 -1
- package/dist/{startFileWatcher-FjvRihwq.mjs → startFileWatcher-Djf0SdmK.mjs} +1 -1
- package/dist/{startupSessionCreate-WY7c74aG.cjs → startupSessionCreate-CxwJb5m9.cjs} +3 -3
- package/dist/{startupSessionCreate-B-QHA-nQ.mjs → startupSessionCreate-f1g6pp6E.mjs} +3 -3
- package/dist/{store-aa3CVNwS.cjs → store-D41VdZcL.cjs} +1 -1
- package/dist/{store-BlPvTr_Q.mjs → store-DnaIrYLA.mjs} +1 -1
- package/dist/{streamRelay-C2Lb2z39.cjs → streamRelay-BT9ew0Mk.cjs} +1 -1
- package/dist/{streamRelay-DFZyAPD_.mjs → streamRelay-DEBIU6Ak.mjs} +1 -1
- package/dist/{sync-Dz_U1UHu.cjs → sync-B-B5mc8Z.cjs} +1 -1
- package/dist/{sync-CHU9HM9N.mjs → sync-Dfr1zgLx.mjs} +1 -1
- package/dist/{systemPrompt-PHD2Va2G.mjs → systemPrompt-DAQq-bKB.mjs} +2 -2
- package/dist/{systemPrompt-NTIxM2Ss.cjs → systemPrompt-pxNDR5u8.cjs} +2 -2
- package/dist/{teams-CgT1c65s.mjs → teams-BuXDbvzq.mjs} +7 -7
- package/dist/{teams-CqoSWbrQ.cjs → teams-CBMB5SvT.cjs} +7 -7
- package/dist/{template-B1AORlgU.cjs → template-CB4gXtUX.cjs} +1 -1
- package/dist/{template-CJ8uLlD8.mjs → template-DE9JMShn.mjs} +1 -1
- package/dist/{time-BTXLicT9.cjs → time-DTaj0RVK.cjs} +1 -1
- package/dist/{time-DZ7wPlsL.mjs → time-PqfO1O58.mjs} +1 -1
- package/dist/{titleGenerator-DxSLdXjL.cjs → titleGenerator-BP5gqicG.cjs} +3 -3
- package/dist/{titleGenerator-BOcHO0fW.mjs → titleGenerator-DVnEGxoB.mjs} +2 -2
- package/dist/{todo-CqD6H2Bt.cjs → todo-BXsQ5-iD.cjs} +6 -6
- package/dist/{todo-kBweG4H9.mjs → todo-DaJPxDVT.mjs} +6 -6
- package/dist/{tools-DuXYIUTD.mjs → tools-B4W8kWU8.mjs} +1 -1
- package/dist/{tools-C7SRJVwy.cjs → tools-G3_fMSjb.cjs} +1 -1
- package/dist/{uninstall-WJYYM27v.mjs → uninstall-ByWgUWHg.mjs} +3 -3
- package/dist/{uninstall-DHdOrwHT.cjs → uninstall-C0pua8G4.cjs} +3 -3
- package/dist/{wrapperAccount-RPtq8BwD.mjs → wrapperAccount-BDeMsgbw.mjs} +2 -2
- package/dist/{wrapperAccount-BubTurHU.cjs → wrapperAccount-CsxMfnCK.cjs} +2 -2
- package/package.json +7 -7
- package/dist/selfCheck-BrC9vuGH.mjs +0 -88
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { ndJsonStream, ClientSideConnection } from '@agentclientprotocol/sdk';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import { l as logger } from './logger-
|
|
5
|
-
import { d as delay } from './time-
|
|
4
|
+
import { l as logger } from './logger-n9NOzHhK.mjs';
|
|
5
|
+
import { d as delay } from './time-PqfO1O58.mjs';
|
|
6
6
|
import { c as contentLogMetadata, e as errorLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
7
7
|
import { r as readableStderrTail, a as appendStderrRing, s as stopProcessGracefully, k as killProcessTree } from './processTree-CP5IvQ2Z.mjs';
|
|
8
|
-
import { p as packageJson } from './package-
|
|
8
|
+
import { p as packageJson } from './package-CCF6FHr2.mjs';
|
|
9
9
|
|
|
10
10
|
function acpImageBlocks(attachments, supportsImages) {
|
|
11
11
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var node_child_process = require('node:child_process');
|
|
4
4
|
var sdk = require('@agentclientprotocol/sdk');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var logger = require('./logger-
|
|
7
|
-
var time = require('./time-
|
|
6
|
+
var logger = require('./logger-LsJ3Cl5o.cjs');
|
|
7
|
+
var time = require('./time-DTaj0RVK.cjs');
|
|
8
8
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
9
9
|
var processTree = require('./processTree-CMHWlVse.cjs');
|
|
10
|
-
var _package = require('./package-
|
|
10
|
+
var _package = require('./package-D7V1BX2I.cjs');
|
|
11
11
|
|
|
12
12
|
function acpImageBlocks(attachments, supportsImages) {
|
|
13
13
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var cuid2 = require('@paralleldrive/cuid2');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var api = require('./api-
|
|
4
|
+
var index = require('./index-BnT8yvlF.cjs');
|
|
5
|
+
var api = require('./api-CgzfmyYS.cjs');
|
|
6
6
|
|
|
7
7
|
function turnOptions(turnId, time) {
|
|
8
8
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createId } from '@paralleldrive/cuid2';
|
|
2
|
-
import { s as streamKeyOf, k as createEnvelope } from './index-
|
|
3
|
-
import { t as textResultPayload, b as toolResultPayload } from './api-
|
|
2
|
+
import { s as streamKeyOf, k as createEnvelope } from './index-BQvPYTNM.mjs';
|
|
3
|
+
import { t as textResultPayload, b as toolResultPayload } from './api-DibgCucH.mjs';
|
|
4
4
|
|
|
5
5
|
function turnOptions(turnId, time) {
|
|
6
6
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { createInterface } from 'node:readline/promises';
|
|
3
|
-
import { c as configuration } from './configuration-
|
|
4
|
-
import { g as getDaemonAgentProfiles, r as restartDaemonSession, l as listDaemonSessions } from './controlClient-
|
|
5
|
-
import { A as AccountService, b as bindResultMessages, a as AccountError, l as localRestartFailure } from './accountService-
|
|
3
|
+
import { c as configuration } from './configuration-D9k5yIzV.mjs';
|
|
4
|
+
import { g as getDaemonAgentProfiles, r as restartDaemonSession, l as listDaemonSessions } from './controlClient-DhFAPGHz.mjs';
|
|
5
|
+
import { A as AccountService, b as bindResultMessages, a as AccountError, l as localRestartFailure } from './accountService-WPnOpkvs.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:path';
|
|
9
|
-
import './package-
|
|
9
|
+
import './package-CCF6FHr2.mjs';
|
|
10
10
|
import 'node:fs/promises';
|
|
11
|
-
import './logger-
|
|
11
|
+
import './logger-n9NOzHhK.mjs';
|
|
12
12
|
import 'node:util';
|
|
13
|
-
import './persistence-
|
|
13
|
+
import './persistence-B5U9rC15.mjs';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import './authRelay-DhQhkBvX.mjs';
|
|
16
16
|
import 'node:crypto';
|
|
17
17
|
import 'tweetnacl';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-BQvPYTNM.mjs';
|
|
19
19
|
import '@paralleldrive/cuid2';
|
|
20
20
|
import 'node:child_process';
|
|
21
|
-
import './claudeAccountEnv-
|
|
22
|
-
import './store-
|
|
23
|
-
import './codexAccount-
|
|
21
|
+
import './claudeAccountEnv-CYwfvK1u.mjs';
|
|
22
|
+
import './store-DnaIrYLA.mjs';
|
|
23
|
+
import './codexAccount-DeFAjaHW.mjs';
|
|
24
24
|
import 'node:readline';
|
|
25
25
|
|
|
26
26
|
const ACCOUNT_HELP = `Usage:
|
|
@@ -183,7 +183,7 @@ Waiting (expires in 15 minutes; Ctrl-C to cancel)\u2026`);
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
async function loginInteractive(target) {
|
|
186
|
-
const { spawnSetupTokenPty } = await import('./daemonAccounts-
|
|
186
|
+
const { spawnSetupTokenPty } = await import('./daemonAccounts-DD5YBwku.mjs');
|
|
187
187
|
const { homedir } = await import('node:os');
|
|
188
188
|
const svc = new AccountService({ home: configuration.happyHomeDir, spawnPty: (env) => spawnSetupTokenPty(homedir(), env) });
|
|
189
189
|
const started = await svc.loginStart({ agent: "claude", kind: "claude-subscription", ...target });
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var promises = require('node:readline/promises');
|
|
5
|
-
var configuration = require('./configuration-
|
|
6
|
-
var controlClient = require('./controlClient-
|
|
7
|
-
var accountService = require('./accountService-
|
|
5
|
+
var configuration = require('./configuration-CAzuk0Xs.cjs');
|
|
6
|
+
var controlClient = require('./controlClient-Bb188cU0.cjs');
|
|
7
|
+
var accountService = require('./accountService-B59oKwa4.cjs');
|
|
8
8
|
require('node:fs');
|
|
9
9
|
require('node:os');
|
|
10
10
|
require('node:path');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-D7V1BX2I.cjs');
|
|
12
12
|
require('node:fs/promises');
|
|
13
|
-
require('./logger-
|
|
13
|
+
require('./logger-LsJ3Cl5o.cjs');
|
|
14
14
|
require('node:util');
|
|
15
|
-
require('./persistence-
|
|
15
|
+
require('./persistence-Dl3sBrCF.cjs');
|
|
16
16
|
require('zod');
|
|
17
17
|
require('./authRelay-Dy1qU9td.cjs');
|
|
18
18
|
require('node:crypto');
|
|
19
19
|
require('tweetnacl');
|
|
20
|
-
require('./index-
|
|
20
|
+
require('./index-BnT8yvlF.cjs');
|
|
21
21
|
require('@paralleldrive/cuid2');
|
|
22
22
|
require('node:child_process');
|
|
23
|
-
require('./claudeAccountEnv-
|
|
24
|
-
require('./store-
|
|
25
|
-
require('./codexAccount-
|
|
23
|
+
require('./claudeAccountEnv-z_ecsJAP.cjs');
|
|
24
|
+
require('./store-D41VdZcL.cjs');
|
|
25
|
+
require('./codexAccount-8Wv5enLR.cjs');
|
|
26
26
|
require('node:readline');
|
|
27
27
|
|
|
28
28
|
const ACCOUNT_HELP = `Usage:
|
|
@@ -185,7 +185,7 @@ Waiting (expires in 15 minutes; Ctrl-C to cancel)\u2026`);
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
async function loginInteractive(target) {
|
|
188
|
-
const { spawnSetupTokenPty } = await Promise.resolve().then(function () { return require('./daemonAccounts-
|
|
188
|
+
const { spawnSetupTokenPty } = await Promise.resolve().then(function () { return require('./daemonAccounts-nLyHz8WB.cjs'); });
|
|
189
189
|
const { homedir } = await import('node:os');
|
|
190
190
|
const svc = new accountService.AccountService({ home: configuration.configuration.happyHomeDir, spawnPty: (env) => spawnSetupTokenPty(homedir(), env) });
|
|
191
191
|
const started = await svc.loginStart({ agent: "claude", kind: "claude-subscription", ...target });
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var node_crypto = require('node:crypto');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BnT8yvlF.cjs');
|
|
7
7
|
var node_child_process = require('node:child_process');
|
|
8
|
-
var claudeAccountEnv = require('./claudeAccountEnv-
|
|
9
|
-
var codexAccount = require('./codexAccount-
|
|
8
|
+
var claudeAccountEnv = require('./claudeAccountEnv-z_ecsJAP.cjs');
|
|
9
|
+
var codexAccount = require('./codexAccount-8Wv5enLR.cjs');
|
|
10
10
|
var node_readline = require('node:readline');
|
|
11
|
-
var store = require('./store-
|
|
11
|
+
var store = require('./store-D41VdZcL.cjs');
|
|
12
12
|
|
|
13
13
|
const CHECK_TIMEOUT_MS = 2e4;
|
|
14
14
|
const DEFAULT_CHECK_MODEL = "claude-haiku-4-5";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { mkdirSync, writeFileSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { E as AGENT_PROFILE_FEATURE_LAUNCH, F as AgentProfileAddRequestSchema, G as AgentProfileLoginStartRequestSchema, H as AgentProfileLoginSubmitRequestSchema, I as AgentProfileBindRequestSchema } from './index-
|
|
4
|
+
import { E as AGENT_PROFILE_FEATURE_LAUNCH, F as AgentProfileAddRequestSchema, G as AgentProfileLoginStartRequestSchema, H as AgentProfileLoginSubmitRequestSchema, I as AgentProfileBindRequestSchema } from './index-BQvPYTNM.mjs';
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
|
-
import { A as ACCOUNT_STRIPPED_ENV_KEYS } from './claudeAccountEnv-
|
|
7
|
-
import { C as CODEX_ALWAYS_STRIPPED_ENV_KEYS, r as readCodexProviders, s as syncCodexOverlay, b as baseCodexHome } from './codexAccount-
|
|
6
|
+
import { A as ACCOUNT_STRIPPED_ENV_KEYS } from './claudeAccountEnv-CYwfvK1u.mjs';
|
|
7
|
+
import { C as CODEX_ALWAYS_STRIPPED_ENV_KEYS, r as readCodexProviders, s as syncCodexOverlay, b as baseCodexHome } from './codexAccount-DeFAjaHW.mjs';
|
|
8
8
|
import { createInterface } from 'node:readline';
|
|
9
|
-
import { h as buildAgentProfilesState, d as defaultSecretProbe, a as readAccounts, s as summarizeAccount, c as readAccountsFileV2, n as newAccountId, i as writeAccountSecret, f as writeAccountsFile, j as sessionsBoundTo, r as readSessionBindings, k as removeAccountSecret, b as accountSecretPath, e as expandHome, l as accountCodexHomePath, m as SUBSCRIPTION_TOKEN_TTL_MS, w as writeSessionBinding, o as readSessionBindingV2 } from './store-
|
|
9
|
+
import { h as buildAgentProfilesState, d as defaultSecretProbe, a as readAccounts, s as summarizeAccount, c as readAccountsFileV2, n as newAccountId, i as writeAccountSecret, f as writeAccountsFile, j as sessionsBoundTo, r as readSessionBindings, k as removeAccountSecret, b as accountSecretPath, e as expandHome, l as accountCodexHomePath, m as SUBSCRIPTION_TOKEN_TTL_MS, w as writeSessionBinding, o as readSessionBindingV2 } from './store-DnaIrYLA.mjs';
|
|
10
10
|
|
|
11
11
|
const CHECK_TIMEOUT_MS = 2e4;
|
|
12
12
|
const DEFAULT_CHECK_MODEL = "claude-haiku-4-5";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mkdirSync, renameSync, existsSync, unlinkSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { w as writePrivateFileSync, c as configuration } from './configuration-
|
|
3
|
+
import { w as writePrivateFileSync, c as configuration } from './configuration-D9k5yIzV.mjs';
|
|
4
4
|
|
|
5
5
|
const SESSION_MODE_DIR = "session-modes";
|
|
6
6
|
const ACP_PERMISSION_MODES = ["default", "acceptEdits", "plan", "bypassPermissions"];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var node_fs = require('node:fs');
|
|
4
4
|
var path = require('node:path');
|
|
5
|
-
var configuration = require('./configuration-
|
|
5
|
+
var configuration = require('./configuration-CAzuk0Xs.cjs');
|
|
6
6
|
|
|
7
7
|
const SESSION_MODE_DIR = "session-modes";
|
|
8
8
|
const ACP_PERMISSION_MODES = ["default", "acceptEdits", "plan", "bypassPermissions"];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { r as readSettings, u as updateSettings } from './persistence-
|
|
3
|
+
import { r as readSettings, u as updateSettings } from './persistence-B5U9rC15.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
|
-
import './logger-
|
|
5
|
+
import './logger-n9NOzHhK.mjs';
|
|
6
6
|
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, A as AGENT_HOME_ENV_NAMES } from './loginShellEnv-Dw8M7tkI.mjs';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
|
-
import './configuration-
|
|
8
|
+
import './configuration-D9k5yIzV.mjs';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-CCF6FHr2.mjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import './authRelay-DhQhkBvX.mjs';
|
|
13
13
|
import 'node:crypto';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
|
-
var persistence = require('./persistence-
|
|
5
|
+
var persistence = require('./persistence-Dl3sBrCF.cjs');
|
|
6
6
|
require('node:fs');
|
|
7
|
-
require('./logger-
|
|
7
|
+
require('./logger-LsJ3Cl5o.cjs');
|
|
8
8
|
var loginShellEnv = require('./loginShellEnv-BkuYtExZ.cjs');
|
|
9
9
|
require('node:fs/promises');
|
|
10
|
-
require('./configuration-
|
|
10
|
+
require('./configuration-CAzuk0Xs.cjs');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-D7V1BX2I.cjs');
|
|
13
13
|
require('zod');
|
|
14
14
|
require('./authRelay-Dy1qU9td.cjs');
|
|
15
15
|
require('node:crypto');
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var axios = require('axios');
|
|
4
|
-
var logger = require('./logger-
|
|
5
|
-
var pushNotifications = require('./pushNotifications-
|
|
6
|
-
var
|
|
4
|
+
var logger = require('./logger-LsJ3Cl5o.cjs');
|
|
5
|
+
var pushNotifications = require('./pushNotifications-IZaTtVDG.cjs');
|
|
6
|
+
var reconnectGate = require('./reconnectGate-CHI12y0Y.cjs');
|
|
7
7
|
var node_events = require('node:events');
|
|
8
8
|
var socket_ioClient = require('socket.io-client');
|
|
9
9
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
10
10
|
var limits = require('./limits-C-a7gr04.cjs');
|
|
11
|
-
var time = require('./time-
|
|
12
|
-
var configuration = require('./configuration-
|
|
11
|
+
var time = require('./time-DTaj0RVK.cjs');
|
|
12
|
+
var configuration = require('./configuration-CAzuk0Xs.cjs');
|
|
13
13
|
var node_crypto = require('node:crypto');
|
|
14
|
-
var index = require('./index-
|
|
15
|
-
var registerCommonHandlers = require('./registerCommonHandlers-
|
|
14
|
+
var index = require('./index-BnT8yvlF.cjs');
|
|
15
|
+
var registerCommonHandlers = require('./registerCommonHandlers-CUCw-rad.cjs');
|
|
16
16
|
var cuid2 = require('@paralleldrive/cuid2');
|
|
17
|
-
var sync = require('./sync-
|
|
17
|
+
var sync = require('./sync-B-B5mc8Z.cjs');
|
|
18
18
|
var backgroundTaskActivity = require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
19
|
-
var controlClient = require('./controlClient-
|
|
19
|
+
var controlClient = require('./controlClient-Bb188cU0.cjs');
|
|
20
20
|
var chalk = require('chalk');
|
|
21
21
|
|
|
22
22
|
async function hmac_sha512(key, data) {
|
|
@@ -1312,7 +1312,7 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
1312
1312
|
this.encryptionVariant = session.encryptionVariant;
|
|
1313
1313
|
this.sendSync = new sync.InvalidateSync(() => this.flushOutbox());
|
|
1314
1314
|
this.receiveSync = new sync.InvalidateSync(() => this.fetchMessages());
|
|
1315
|
-
this.rpcHandlerManager = new
|
|
1315
|
+
this.rpcHandlerManager = new reconnectGate.RpcHandlerManager({
|
|
1316
1316
|
scopePrefix: this.sessionId,
|
|
1317
1317
|
encryptionKey: this.encryptionKey,
|
|
1318
1318
|
encryptionVariant: this.encryptionVariant,
|
|
@@ -1333,10 +1333,10 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
1333
1333
|
void this.promptQueueDrain?.maybeDispatch("connect");
|
|
1334
1334
|
});
|
|
1335
1335
|
this.socket.on("rpc-request", async (data, callback) => {
|
|
1336
|
-
await
|
|
1336
|
+
await reconnectGate.answerSocketRequest(
|
|
1337
1337
|
callback,
|
|
1338
1338
|
() => this.rpcHandlerManager.handleRequest(data),
|
|
1339
|
-
(drop) => logger.logger.debug(`[API] RPC ${data?.method} unanswered \u2014 ${
|
|
1339
|
+
(drop) => logger.logger.debug(`[API] RPC ${data?.method} unanswered \u2014 ${reconnectGate.describeSocketAckDrop(drop)}`)
|
|
1340
1340
|
);
|
|
1341
1341
|
});
|
|
1342
1342
|
this.socket.on("disconnect", (reason) => {
|
|
@@ -1441,7 +1441,7 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
1441
1441
|
if (!parsed.success || parsed.data.deadline <= Date.now()) return;
|
|
1442
1442
|
void this.startReleaseHandover(parsed.data);
|
|
1443
1443
|
});
|
|
1444
|
-
|
|
1444
|
+
reconnectGate.connectGuarded(this.socket, "initial", guardOptions);
|
|
1445
1445
|
}
|
|
1446
1446
|
createControlSocket(handover) {
|
|
1447
1447
|
const socket = socket_ioClient.io(configuration.configuration.serverUrl, {
|
|
@@ -1460,7 +1460,7 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
1460
1460
|
withCredentials: true,
|
|
1461
1461
|
autoConnect: false
|
|
1462
1462
|
});
|
|
1463
|
-
|
|
1463
|
+
reconnectGate.socketConnectGuard(socket, guardOptions);
|
|
1464
1464
|
return socket;
|
|
1465
1465
|
}
|
|
1466
1466
|
startReleaseHandover(notice) {
|
|
@@ -1488,7 +1488,7 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
1488
1488
|
clearTimeout(timer);
|
|
1489
1489
|
reject(error);
|
|
1490
1490
|
});
|
|
1491
|
-
|
|
1491
|
+
reconnectGate.connectGuarded(candidate, "release-handover", guardOptions);
|
|
1492
1492
|
});
|
|
1493
1493
|
await this.rpcHandlerManager.onSocketConnectAndWait(candidate, timeoutMs);
|
|
1494
1494
|
if (this.socket !== previous) {
|
|
@@ -1892,14 +1892,14 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
1892
1892
|
logger.logger.debug(`[API] Session connected to regional relay ${assignment.relayId}`);
|
|
1893
1893
|
});
|
|
1894
1894
|
relaySocket.on("rpc-request", async (data, callback) => {
|
|
1895
|
-
await
|
|
1895
|
+
await reconnectGate.answerSocketRequest(
|
|
1896
1896
|
callback,
|
|
1897
1897
|
() => this.rpcHandlerManager.handleRequest(data),
|
|
1898
|
-
(drop) => logger.logger.debug(`[API] Relay RPC ${data?.method} unanswered \u2014 ${
|
|
1898
|
+
(drop) => logger.logger.debug(`[API] Relay RPC ${data?.method} unanswered \u2014 ${reconnectGate.describeSocketAckDrop(drop)}`)
|
|
1899
1899
|
);
|
|
1900
1900
|
});
|
|
1901
1901
|
relaySocket.on("session-message-deliver", async (data, rawCallback) => {
|
|
1902
|
-
const callback =
|
|
1902
|
+
const callback = reconnectGate.safeAck(rawCallback, (drop) => logger.logger.debug(`[API] session-message-deliver unanswered \u2014 ${reconnectGate.describeSocketAckDrop(drop)}`));
|
|
1903
1903
|
if (data?.sessionId !== this.sessionId || !Array.isArray(data.messages) || data.messages.length === 0 || data.messages.length > 50) {
|
|
1904
1904
|
callback({ ok: false, error: "Invalid session message request" });
|
|
1905
1905
|
return;
|
|
@@ -2472,9 +2472,9 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
throw new Error("Metadata version mismatch");
|
|
2474
2474
|
} else if (answer.result === "error") {
|
|
2475
|
-
if (
|
|
2475
|
+
if (reconnectGate.isRateQuotaCode(answer.error)) {
|
|
2476
2476
|
rateRefusals += 1;
|
|
2477
|
-
await
|
|
2477
|
+
await reconnectGate.pauseForRateQuota({
|
|
2478
2478
|
label: "session metadata",
|
|
2479
2479
|
code: answer.error,
|
|
2480
2480
|
attempt: rateRefusals,
|
|
@@ -2511,9 +2511,9 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
throw new Error("Agent state version mismatch");
|
|
2513
2513
|
} else if (answer.result === "error") {
|
|
2514
|
-
if (
|
|
2514
|
+
if (reconnectGate.isRateQuotaCode(answer.error)) {
|
|
2515
2515
|
rateRefusals += 1;
|
|
2516
|
-
await
|
|
2516
|
+
await reconnectGate.pauseForRateQuota({
|
|
2517
2517
|
label: "session agent state",
|
|
2518
2518
|
code: answer.error,
|
|
2519
2519
|
attempt: rateRefusals,
|
|
@@ -2586,23 +2586,25 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
2586
2586
|
startSmartReconnect() {
|
|
2587
2587
|
if (this.closedByClient) return;
|
|
2588
2588
|
if (this.reconnectInterval) return;
|
|
2589
|
+
const gate = reconnectGate.createReconnectGate();
|
|
2589
2590
|
this.reconnectInterval = setInterval(() => {
|
|
2590
2591
|
if (this.socket.connected) {
|
|
2591
2592
|
clearInterval(this.reconnectInterval);
|
|
2592
2593
|
this.reconnectInterval = null;
|
|
2593
2594
|
return;
|
|
2594
2595
|
}
|
|
2595
|
-
|
|
2596
|
+
const decision = gate.decide(reconnectGate.shouldReconnect());
|
|
2597
|
+
if (decision === "wait") {
|
|
2596
2598
|
logger.logger.debug("[API] Still not ready to reconnect");
|
|
2597
2599
|
return;
|
|
2598
2600
|
}
|
|
2599
|
-
logger.logger.debug("[API] Attempting reconnect");
|
|
2600
|
-
|
|
2601
|
+
logger.logger.debug(decision === "force" ? "[API] Still not ready after repeated checks \u2014 forcing a reconnect attempt" : "[API] Attempting reconnect");
|
|
2602
|
+
reconnectGate.connectGuarded(this.socket, "reconnect-interval", guardOptions);
|
|
2601
2603
|
}, 3e3);
|
|
2602
|
-
if (
|
|
2604
|
+
if (reconnectGate.shouldReconnect()) {
|
|
2603
2605
|
logger.logger.debug("[API] Network up + lid open \u2014 reconnecting in 1s");
|
|
2604
2606
|
setTimeout(() => {
|
|
2605
|
-
|
|
2607
|
+
reconnectGate.connectGuarded(this.socket, "reconnect-soon", guardOptions);
|
|
2606
2608
|
}, 1e3);
|
|
2607
2609
|
}
|
|
2608
2610
|
}
|
|
@@ -3108,7 +3110,7 @@ class ApiClient {
|
|
|
3108
3110
|
return new ApiSessionClient(this.credential.token, session, opts);
|
|
3109
3111
|
}
|
|
3110
3112
|
async machineSyncClient(machine) {
|
|
3111
|
-
const { ApiMachineClient } = await Promise.resolve().then(function () { return require('./apiMachine-
|
|
3113
|
+
const { ApiMachineClient } = await Promise.resolve().then(function () { return require('./apiMachine-DSI5mKlh.cjs'); });
|
|
3112
3114
|
return new ApiMachineClient(this.credential.token, machine);
|
|
3113
3115
|
}
|
|
3114
3116
|
push() {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { l as logger, r as redactLogValue } from './logger-
|
|
3
|
-
import { A as AsyncLock, S as SESSION_SUPERSEDED_ERROR, a as agentInstanceAuth, b as MAX_CHAT_ATTACHMENT_ENCRYPTED_BYTES, U as UserMessageSchema, F as FileEventMessageSchema, P as PushNotificationClient } from './pushNotifications-
|
|
4
|
-
import { R as RpcHandlerManager, a as answerSocketRequest, c as connectGuarded, s as socketConnectGuard, d as describeSocketAckDrop, b as safeAck, i as isRateQuotaCode, p as pauseForRateQuota, e as shouldReconnect } from './
|
|
2
|
+
import { l as logger, r as redactLogValue } from './logger-n9NOzHhK.mjs';
|
|
3
|
+
import { A as AsyncLock, S as SESSION_SUPERSEDED_ERROR, a as agentInstanceAuth, b as MAX_CHAT_ATTACHMENT_ENCRYPTED_BYTES, U as UserMessageSchema, F as FileEventMessageSchema, P as PushNotificationClient } from './pushNotifications-pHkbUkqT.mjs';
|
|
4
|
+
import { R as RpcHandlerManager, a as answerSocketRequest, c as connectGuarded, s as socketConnectGuard, d as describeSocketAckDrop, b as safeAck, i as isRateQuotaCode, p as pauseForRateQuota, e as shouldReconnect, f as createReconnectGate } from './reconnectGate-DPDXEkOX.mjs';
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
6
|
import { io } from 'socket.io-client';
|
|
7
7
|
import { h as decrypt, d as decodeBase64, i as decryptBlob, e as encodeBase64, g as encrypt, l as libsodiumEncryptForPublicKey, j as libsodiumPublicKeyFromSecretKey, k as getRandomBytes } from './authRelay-DhQhkBvX.mjs';
|
|
8
8
|
import { p as prepareClipboardText, d as prepareClipboardHistoryText } from './limits-DIo7rEBR.mjs';
|
|
9
|
-
import { b as backoff, d as delay, e as exponentialBackoffDelay } from './time-
|
|
10
|
-
import { c as configuration } from './configuration-
|
|
9
|
+
import { b as backoff, d as delay, e as exponentialBackoffDelay } from './time-PqfO1O58.mjs';
|
|
10
|
+
import { c as configuration } from './configuration-D9k5yIzV.mjs';
|
|
11
11
|
import { createHmac, randomUUID } from 'node:crypto';
|
|
12
|
-
import { k as createEnvelope, s as streamKeyOf, a3 as ReleaseDrainNoticeSchema, a4 as RelayAssignmentResponseSchema } from './index-
|
|
13
|
-
import { r as registerCommonHandlers } from './registerCommonHandlers-
|
|
12
|
+
import { k as createEnvelope, s as streamKeyOf, a3 as ReleaseDrainNoticeSchema, a4 as RelayAssignmentResponseSchema } from './index-BQvPYTNM.mjs';
|
|
13
|
+
import { r as registerCommonHandlers } from './registerCommonHandlers-BrTglZnC.mjs';
|
|
14
14
|
import { createId } from '@paralleldrive/cuid2';
|
|
15
|
-
import { I as InvalidateSync } from './sync-
|
|
15
|
+
import { I as InvalidateSync } from './sync-Dfr1zgLx.mjs';
|
|
16
16
|
import { B as BackgroundTaskReporter } from './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
17
|
-
import { q as notifyDaemonTurnEvent, t as notifyDaemonBackgroundTasks } from './controlClient-
|
|
17
|
+
import { q as notifyDaemonTurnEvent, t as notifyDaemonBackgroundTasks } from './controlClient-DhFAPGHz.mjs';
|
|
18
18
|
import chalk from 'chalk';
|
|
19
19
|
|
|
20
20
|
async function hmac_sha512(key, data) {
|
|
@@ -2584,17 +2584,19 @@ class ApiSessionClient extends EventEmitter {
|
|
|
2584
2584
|
startSmartReconnect() {
|
|
2585
2585
|
if (this.closedByClient) return;
|
|
2586
2586
|
if (this.reconnectInterval) return;
|
|
2587
|
+
const gate = createReconnectGate();
|
|
2587
2588
|
this.reconnectInterval = setInterval(() => {
|
|
2588
2589
|
if (this.socket.connected) {
|
|
2589
2590
|
clearInterval(this.reconnectInterval);
|
|
2590
2591
|
this.reconnectInterval = null;
|
|
2591
2592
|
return;
|
|
2592
2593
|
}
|
|
2593
|
-
|
|
2594
|
+
const decision = gate.decide(shouldReconnect());
|
|
2595
|
+
if (decision === "wait") {
|
|
2594
2596
|
logger.debug("[API] Still not ready to reconnect");
|
|
2595
2597
|
return;
|
|
2596
2598
|
}
|
|
2597
|
-
logger.debug("[API] Attempting reconnect");
|
|
2599
|
+
logger.debug(decision === "force" ? "[API] Still not ready after repeated checks \u2014 forcing a reconnect attempt" : "[API] Attempting reconnect");
|
|
2598
2600
|
connectGuarded(this.socket, "reconnect-interval", guardOptions);
|
|
2599
2601
|
}, 3e3);
|
|
2600
2602
|
if (shouldReconnect()) {
|
|
@@ -3106,7 +3108,7 @@ class ApiClient {
|
|
|
3106
3108
|
return new ApiSessionClient(this.credential.token, session, opts);
|
|
3107
3109
|
}
|
|
3108
3110
|
async machineSyncClient(machine) {
|
|
3109
|
-
const { ApiMachineClient } = await import('./apiMachine-
|
|
3111
|
+
const { ApiMachineClient } = await import('./apiMachine-BUaFSi27.mjs');
|
|
3110
3112
|
return new ApiMachineClient(this.credential.token, machine);
|
|
3111
3113
|
}
|
|
3112
3114
|
push() {
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { io } from 'socket.io-client';
|
|
2
2
|
import { a as webPanelsSignature } from './webPanels-B2_C2-3g.mjs';
|
|
3
|
-
import { l as logger } from './logger-
|
|
4
|
-
import { R as RpcHandlerManager, i as isRateQuotaCode, p as pauseForRateQuota, s as socketConnectGuard, c as connectGuarded, a as answerSocketRequest, e as shouldReconnect, d as describeSocketAckDrop } from './
|
|
5
|
-
import { i as isClaudeSessionId, s as stableVersion, a as sanitizeTagList, p as projectField, b as pickMirrorForTerminal, l as liveSnapshotChanged, c as sanitizeLiveSnapshot, d as serializeLiveSnapshot, r as registerWorktreeHandlers, e as configureWorktreeService, f as summarizeSpawnSessionForLog, g as parseMirrorSendParams } from './mirrorProtocol-
|
|
6
|
-
import { c as configuration } from './configuration-
|
|
3
|
+
import { l as logger } from './logger-n9NOzHhK.mjs';
|
|
4
|
+
import { R as RpcHandlerManager, i as isRateQuotaCode, p as pauseForRateQuota, s as socketConnectGuard, c as connectGuarded, a as answerSocketRequest, e as shouldReconnect, f as createReconnectGate, d as describeSocketAckDrop } from './reconnectGate-DPDXEkOX.mjs';
|
|
5
|
+
import { i as isClaudeSessionId, s as stableVersion, a as sanitizeTagList, p as projectField, b as pickMirrorForTerminal, l as liveSnapshotChanged, c as sanitizeLiveSnapshot, d as serializeLiveSnapshot, r as registerWorktreeHandlers, e as configureWorktreeService, f as summarizeSpawnSessionForLog, g as parseMirrorSendParams } from './mirrorProtocol-CoXxepvL.mjs';
|
|
6
|
+
import { c as configuration } from './configuration-D9k5yIzV.mjs';
|
|
7
7
|
import { w as withCurrentCliUpdateState } from './cliUpdate-Y34VGe9Y.mjs';
|
|
8
|
-
import { r as registerCommonHandlers } from './registerCommonHandlers-
|
|
8
|
+
import { r as registerCommonHandlers } from './registerCommonHandlers-BrTglZnC.mjs';
|
|
9
9
|
import { stat, readdir, lstat, open, readFile, rm, mkdir, chmod, writeFile, rename } from 'node:fs/promises';
|
|
10
10
|
import { join, isAbsolute, resolve } from 'node:path';
|
|
11
11
|
import os, { homedir } from 'node:os';
|
|
12
12
|
import { f as fsMkdir } from './fsMkdir-DumgLTzR.mjs';
|
|
13
13
|
import { spawn, execFile, spawnSync } from 'node:child_process';
|
|
14
|
-
import { r as readSettings, c as readPersistedSessions, p as readTrackedClaudeSessionIds, q as readTrackedCodexThreadIds } from './persistence-
|
|
14
|
+
import { r as readSettings, c as readPersistedSessions, p as readTrackedClaudeSessionIds, q as readTrackedCodexThreadIds } from './persistence-B5U9rC15.mjs';
|
|
15
15
|
import { M as ModelConfigError } from './fileStore-5qpetZS0.mjs';
|
|
16
|
-
import {
|
|
17
|
-
import { a as AccountError } from './accountService-
|
|
16
|
+
import { a9 as AGENT_PROFILE_RPC, aa as RelayCandidatesResponseSchema, a4 as RelayAssignmentResponseSchema, a3 as ReleaseDrainNoticeSchema } from './index-BQvPYTNM.mjs';
|
|
17
|
+
import { a as AccountError } from './accountService-WPnOpkvs.mjs';
|
|
18
18
|
import { e as encodeBase64, g as encrypt, h as decrypt, d as decodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
19
19
|
import { p as prepareClipboardText, d as prepareClipboardHistoryText } from './limits-DIo7rEBR.mjs';
|
|
20
|
-
import { b as backoff, d as delay } from './time-
|
|
20
|
+
import { b as backoff, d as delay } from './time-PqfO1O58.mjs';
|
|
21
21
|
import * as pty from 'node-pty';
|
|
22
22
|
import { a as attachStartupCommand, v as validateTerminalTags, d as deriveAutoTitle, T as TMUX_SESSION_ID_RE, i as isSafeTmuxSessionName, b as isVhSessionName, U as USER_SESSIONS_FORMAT, p as parseUserSessions, L as LIST_SESSIONS_FORMAT, c as parseSessionListLine, e as LIST_FIELD_SEP, s as sendToVhTerminal } from './terminals-Dc38XmZv.mjs';
|
|
23
23
|
import { t as tmuxArgs, V as VH_TMUX_SOCKET_ENV, v as validateTerminalProjectId, a as scrubTmuxClientEnv } from './tmuxSocket-BmZyixRM.mjs';
|
|
24
|
-
import { locateClaudeConversation, refreshAgentHomes } from './index-
|
|
24
|
+
import { locateClaudeConversation, refreshAgentHomes } from './index-BAjoMeJi.mjs';
|
|
25
25
|
import { randomBytes } from 'node:crypto';
|
|
26
26
|
import { readdirSync, unlinkSync, existsSync, mkdirSync, writeFileSync, readFileSync, statSync, chmodSync, renameSync, rmSync, accessSync, constants } from 'node:fs';
|
|
27
27
|
import axios from 'axios';
|
|
28
28
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
29
29
|
import { a as isValidTerminalId } from './ids-DU6sLx4C.mjs';
|
|
30
30
|
import { d as detectCLIAvailability } from './detectCLI-CSGMlV51.mjs';
|
|
31
|
-
import { d as detectResumeSupport } from './localHappyAgentAuth-
|
|
31
|
+
import { d as detectResumeSupport } from './localHappyAgentAuth-CD896cy4.mjs';
|
|
32
32
|
import { g as getProjectPath, a as getClaudeProjectsRoot } from './path-D2wdaNSk.mjs';
|
|
33
33
|
import { i as isVeryHappyOneShotPrompt } from './oneShotPrompts-DT4p6RNd.mjs';
|
|
34
|
-
import { f as forkSession, F as ForkSourceMissingError, d as discardForkedSession, l as listClaudeRewindPoints, b as forkAndTruncateSession, c as ForkTruncateUuidNotFoundError, e as forkBeforeUserMessage, a as forkCompletedTurns } from './claudeSessionFork-
|
|
35
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
34
|
+
import { f as forkSession, F as ForkSourceMissingError, d as discardForkedSession, l as listClaudeRewindPoints, b as forkAndTruncateSession, c as ForkTruncateUuidNotFoundError, e as forkBeforeUserMessage, a as forkCompletedTurns } from './claudeSessionFork-dOOc9hpA.mjs';
|
|
35
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-BAcU_XN8.mjs';
|
|
36
36
|
import { f as forkCodexThread, C as CodexForkRewindPointNotFoundError, l as listCodexRewindPoints, b as forkCodexBeforeUserMessage, a as forkCodexCompletedTurns } from './codexThreadFork-CVzAqELg.mjs';
|
|
37
|
-
import { p as planRateLimitWrite, m as mergeRateLimitReports } from './rateLimitWindows-
|
|
37
|
+
import { p as planRateLimitWrite, m as mergeRateLimitReports } from './rateLimitWindows-DnLJ-gve.mjs';
|
|
38
38
|
import 'chalk';
|
|
39
39
|
import 'node:util';
|
|
40
40
|
import 'os';
|
|
41
41
|
import 'child_process';
|
|
42
|
-
import './package-
|
|
42
|
+
import './package-CCF6FHr2.mjs';
|
|
43
43
|
import 'util';
|
|
44
44
|
import 'fs/promises';
|
|
45
45
|
import 'crypto';
|
|
@@ -47,9 +47,9 @@ import 'path';
|
|
|
47
47
|
import 'cross-spawn';
|
|
48
48
|
import 'zod';
|
|
49
49
|
import '@paralleldrive/cuid2';
|
|
50
|
-
import './claudeAccountEnv-
|
|
51
|
-
import './store-
|
|
52
|
-
import './codexAccount-
|
|
50
|
+
import './claudeAccountEnv-CYwfvK1u.mjs';
|
|
51
|
+
import './store-DnaIrYLA.mjs';
|
|
52
|
+
import './codexAccount-DeFAjaHW.mjs';
|
|
53
53
|
import 'node:readline';
|
|
54
54
|
import 'tweetnacl';
|
|
55
55
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
@@ -11917,17 +11917,19 @@ class ApiMachineClient {
|
|
|
11917
11917
|
}
|
|
11918
11918
|
startSmartReconnect() {
|
|
11919
11919
|
if (this.reconnectInterval) return;
|
|
11920
|
+
const gate = createReconnectGate();
|
|
11920
11921
|
this.reconnectInterval = setInterval(() => {
|
|
11921
11922
|
if (this.socket.connected) {
|
|
11922
11923
|
clearInterval(this.reconnectInterval);
|
|
11923
11924
|
this.reconnectInterval = null;
|
|
11924
11925
|
return;
|
|
11925
11926
|
}
|
|
11926
|
-
|
|
11927
|
+
const decision = gate.decide(shouldReconnect());
|
|
11928
|
+
if (decision === "wait") {
|
|
11927
11929
|
logger.debug("[API MACHINE] Still not ready to reconnect");
|
|
11928
11930
|
return;
|
|
11929
11931
|
}
|
|
11930
|
-
logger.debug("[API MACHINE] Attempting reconnect");
|
|
11932
|
+
logger.debug(decision === "force" ? "[API MACHINE] Still not ready after repeated checks \u2014 forcing a reconnect attempt" : "[API MACHINE] Attempting reconnect");
|
|
11931
11933
|
connectGuarded(this.socket, "reconnect-interval", guardOptions);
|
|
11932
11934
|
}, 3e3);
|
|
11933
11935
|
if (shouldReconnect()) {
|