very-happy-cli 0.2.190 → 0.2.192
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-dkRv9QHm.cjs → AcpBackend-BQO4ShOy.cjs} +3 -3
- package/dist/{AcpBackend-Dd1h-Rgt.mjs → AcpBackend-CGHTDJd9.mjs} +3 -3
- package/dist/{AcpSessionManager-QBZ-CIf7.mjs → AcpSessionManager-G0xD6Jbq.mjs} +2 -2
- package/dist/{AcpSessionManager-AqWAqahm.cjs → AcpSessionManager-LlUMmcpB.cjs} +2 -2
- package/dist/{BasePermissionHandler-CLp1ge-4.mjs → BasePermissionHandler-BmTIg376.mjs} +1 -1
- package/dist/{BasePermissionHandler-CpSugp7Z.cjs → BasePermissionHandler-N6Ip3tFt.cjs} +1 -1
- package/dist/account-CCVT-HO_.mjs +240 -0
- package/dist/account-DtaouikP.cjs +245 -0
- package/dist/accountService-Bddy0zwL.cjs +571 -0
- package/dist/accountService-Dd9uqde2.mjs +566 -0
- package/dist/{acpSessionResume-CcpDuIO5.mjs → acpSessionResume-BWEUxNtC.mjs} +1 -1
- package/dist/{acpSessionResume-CZao6QEd.cjs → acpSessionResume-BnHDk5eD.cjs} +1 -1
- package/dist/{agentHome-BJGRA2Kx.mjs → agentHome-B0VnjkZW.mjs} +4 -4
- package/dist/{agentHome-fIUqT-pn.cjs → agentHome-CqQ29YY7.cjs} +4 -4
- package/dist/{api-Dw8gFsQi.mjs → api-_LeBScjg.mjs} +10 -10
- package/dist/{api-CXL6jp-p.cjs → api-hMDsC6Wg.cjs} +10 -10
- package/dist/{apiMachine-BBNEtjf7.mjs → apiMachine-CgRldeJ6.mjs} +76 -21
- package/dist/{apiMachine-C6UqHoPF.cjs → apiMachine-CqW2m6Zr.cjs} +81 -26
- package/dist/{attachmentContent-NmVfKp-B.cjs → attachmentContent-BEeT2J5n.cjs} +2 -2
- package/dist/{attachmentContent-CC4yIrSm.mjs → attachmentContent-CyptLIfq.mjs} +2 -2
- package/dist/{auth-Bb_SL2os.cjs → auth-C9NvNHhL.cjs} +5 -5
- package/dist/{auth-DKa4MsAi.cjs → auth-CA1OClsW.cjs} +8 -8
- package/dist/{auth-Bh6SUoGi.mjs → auth-CFQikywl.mjs} +8 -8
- package/dist/{auth-Bj0psrD2.mjs → auth-DL8_J9vu.mjs} +5 -5
- package/dist/{auto-DK7pbCnV.mjs → auto-CKI05w1D.mjs} +17 -17
- package/dist/{auto-C9Qohh0P.cjs → auto-uQOxlxLp.cjs} +17 -17
- package/dist/{bootstrap-Ct9Nb4sv.mjs → bootstrap-DaZ0Np7X.mjs} +2 -2
- package/dist/{bootstrap-DBJB0y-H.cjs → bootstrap-DsZGc69k.cjs} +2 -2
- package/dist/{browser-BGxDRhHy.mjs → browser-BUIaSHK2.mjs} +1 -1
- package/dist/{browser-CLJWcodR.cjs → browser-Ft0ASDm7.cjs} +1 -1
- package/dist/claudeAccountEnv-BOBpJ3k8.cjs +137 -0
- package/dist/claudeAccountEnv-ON24i0qv.mjs +132 -0
- package/dist/{claudeLocal-Ux31hZyC.mjs → claudeLocal-B1ZVtryl.mjs} +5 -5
- package/dist/{claudeLocal-B6YDYlnY.cjs → claudeLocal-BMf9t4Fa.cjs} +5 -5
- package/dist/{claudeLocalLauncher-D06QijMw.mjs → claudeLocalLauncher-Bp8bqF4y.mjs} +10 -10
- package/dist/{claudeLocalLauncher-DFvmF8rC.cjs → claudeLocalLauncher-C8TeJcfF.cjs} +10 -10
- package/dist/{claudeSessionFork-D2GI7P59.mjs → claudeSessionFork-8AA47z8Y.mjs} +1 -1
- package/dist/{claudeSessionFork-DTLZ2rek.cjs → claudeSessionFork-YiktY55n.cjs} +1 -1
- package/dist/{client-CnGNYidN.mjs → client-Bm4oKvW7.mjs} +2 -2
- package/dist/{client-CtL0Vtww.mjs → client-BmPaBnDK.mjs} +4 -4
- package/dist/{client-CARZ_lNS.cjs → client-CFHZfh9x.cjs} +4 -4
- package/dist/{client-Bffkrs5p.cjs → client-Crh8_cNx.cjs} +2 -2
- package/dist/{client-DZkBUoh9.mjs → client-Cxlp_D4I.mjs} +2 -2
- package/dist/{client-CMKGrnmT.cjs → client-D8XROyZc.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAppServerClient-CLc5nhLT.mjs → codexAppServerClient-BWJbLCQn.mjs} +3 -3
- package/dist/{codexAppServerClient-CpT9F6EM.cjs → codexAppServerClient-q8GHQhyC.cjs} +3 -3
- package/dist/{codexCommand-Dliq3EBv.mjs → codexCommand-BfXfRQr4.mjs} +121 -61
- package/dist/{codexCommand-39kH99SJ.cjs → codexCommand-BgpGg-Zy.cjs} +121 -61
- package/dist/{codexTermination-ByW7tRjr.cjs → codexTermination-CVUF0X75.cjs} +1 -1
- package/dist/{codexTermination-ORIw0gpU.mjs → codexTermination-s9fd1gkA.mjs} +1 -1
- package/dist/{config-CeIzCsfj.cjs → config-BAjyTyYp.cjs} +3 -3
- package/dist/{config-CxSsGO1Z.mjs → config-BF8XgLyc.mjs} +3 -3
- package/dist/{configuration-Dt5lKW3P.cjs → configuration-CXEVKAyF.cjs} +1 -1
- package/dist/{configuration-Dechcvd-.mjs → configuration-IhRiLDVe.mjs} +1 -1
- package/dist/{connect-UwQHvCpR.mjs → connect-LZh1gr08.mjs} +13 -13
- package/dist/{connect-NPDzIVC6.cjs → connect-rCS56arw.cjs} +13 -13
- package/dist/{context-BdZssgF0.cjs → context-3_S_mWz9.cjs} +1 -1
- package/dist/{context-C9JbJoNe.mjs → context-DO6F5YwH.mjs} +1 -1
- package/dist/{controlClient-D7NGfmtq.mjs → controlClient-8ILulwjc.mjs} +14 -5
- package/dist/{controlClient-BRk65BRO.cjs → controlClient-j7p5p3_7.cjs} +15 -4
- package/dist/{createSessionMetadata-B_HZCDj_.cjs → createSessionMetadata-DwdD_uVo.cjs} +2 -2
- package/dist/{createSessionMetadata-DyhFKAby.mjs → createSessionMetadata-oyaTZm1b.mjs} +2 -2
- package/dist/daemonAccounts-BCjDgoNt.cjs +51 -0
- package/dist/daemonAccounts-BJgt6IJe.mjs +27 -0
- package/dist/defaultPermissionMode-BFShzF55.cjs +49 -0
- package/dist/defaultPermissionMode-Lt3PUCwY.mjs +43 -0
- package/dist/{deterministicJson-BEygolBQ.cjs → deterministicJson-DUN0v3St.cjs} +13 -13
- package/dist/{deterministicJson-DNmMVhFu.mjs → deterministicJson-Dfp-7wUZ.mjs} +13 -13
- package/dist/{doctor-BdBi7TFZ.mjs → doctor-B_UwMcVT.mjs} +7 -7
- package/dist/{doctor-B9lW1WlG.cjs → doctor-FgUYTbAT.cjs} +7 -7
- package/dist/{downloadTarget-DS0zT2AU.cjs → downloadTarget-BrrQEDxg.cjs} +6 -6
- package/dist/{downloadTarget-CGojGjaN.mjs → downloadTarget-C0d6jRx-.mjs} +6 -6
- package/dist/{ensureDaemonRunning-Bibp6vhe.cjs → ensureDaemonRunning-Cq4FYI5Q.cjs} +5 -5
- package/dist/{ensureDaemonRunning-BOdbryDM.mjs → ensureDaemonRunning-KUMFfIil.mjs} +5 -5
- package/dist/{handleResumeCommand-CgLzBYne.mjs → handleResumeCommand-BGhVo3QH.mjs} +5 -5
- package/dist/{handleResumeCommand-DXOuWr4p.cjs → handleResumeCommand-Cl9GIL5F.cjs} +5 -5
- package/dist/{index-Db0HIC-k.mjs → index-BjXjMhGY.mjs} +4 -4
- package/dist/{index-BOe6dKnL.cjs → index-BzAYnYct.cjs} +186 -0
- package/dist/{index-CwRW11hT.cjs → index-CQ_hLLCj.cjs} +3 -3
- package/dist/{index-DXSIi6j_.cjs → index-CRipkiqo.cjs} +4 -4
- package/dist/{index-Bs5FD8JF.cjs → index-CZaLMmPC.cjs} +4 -4
- package/dist/{index-CBHfkQNY.mjs → index-Ca1Tt96A.mjs} +45 -41
- package/dist/{index-f8oDidjV.cjs → index-D8ODb0_U.cjs} +44 -40
- package/dist/{index-DmqsRnV7.mjs → index-DYD3GM1m.mjs} +168 -1
- package/dist/{index-rNTX33in.mjs → index-JQDyJ3Li.mjs} +3 -3
- package/dist/{index-DUByZsKe.mjs → index-v5EmjT8l.mjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-CXIL_FYx.cjs → install-ClUA9tbC.cjs} +3 -3
- package/dist/{install-DfPrEWGG.mjs → install-D6EHRtAN.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +292 -0
- package/dist/lib.d.mts +292 -0
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-D0DF20oG.mjs → lidState-CZOXXdzv.mjs} +1 -1
- package/dist/{lidState-q_XFYg33.cjs → lidState-DqoN7zH4.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CKNW-MXw.cjs → localHappyAgentAuth-BnGCpHRX.cjs} +1 -1
- package/dist/{localHappyAgentAuth-BBhM4Qk1.mjs → localHappyAgentAuth-YHxDZ4x4.mjs} +1 -1
- package/dist/{logger-BBRTTVsQ.cjs → logger-8su64lqR.cjs} +2 -2
- package/dist/{logger-CL7pin9b.mjs → logger-Fd_rNvgd.mjs} +2 -2
- package/dist/{machineMetadata-DP06qdBk.mjs → machineMetadata-1HIIC7Bc.mjs} +3 -3
- package/dist/{machineMetadata-DnFNlrVK.cjs → machineMetadata-DYXt3p6u.cjs} +3 -3
- package/dist/{main-DO7nRvhf.mjs → main-BI6GIzUL.mjs} +92 -48
- package/dist/{main-DLOXykOR.cjs → main-C_GrcYkn.cjs} +92 -48
- package/dist/{mcp-Du0MgR7e.cjs → mcp-BycIv9oQ.cjs} +18 -15
- package/dist/{mcp-C-4sPTae.mjs → mcp-XGoxywno.mjs} +18 -15
- package/dist/{mirrorProtocol-GuWMxLkh.cjs → mirrorProtocol-DVnB8EO8.cjs} +3 -3
- package/dist/{mirrorProtocol-dkq2ZENA.mjs → mirrorProtocol-DXT3rv7T.mjs} +3 -3
- package/dist/{package-C6uiXULx.mjs → package-6KkRAops.mjs} +7 -7
- package/dist/{package-DrY090nZ.cjs → package-iuLlSiSF.cjs} +7 -7
- package/dist/{panels-4DRBKHZP.cjs → panels-0C89q0Tu.cjs} +5 -5
- package/dist/{panels-DXYdJA6n.mjs → panels-B5Di2zb2.mjs} +5 -5
- package/dist/{peerTools-5ZM4spcZ.cjs → peerTools-CANTX_mG.cjs} +5 -5
- package/dist/{peerTools-dY1aJez4.mjs → peerTools-CKJ-IDM4.mjs} +5 -5
- package/dist/{persistence-Bl5S3TLB.cjs → persistence-B4ttN-fR.cjs} +2 -2
- package/dist/{persistence-Dogj7JIp.mjs → persistence-DWcHe035.mjs} +2 -2
- package/dist/{piRunnerArgs-C3jZ1M6b.cjs → piRunnerArgs-BOkfxyak.cjs} +1 -1
- package/dist/{piRunnerArgs-D8nN_Iit.mjs → piRunnerArgs-Bl5GpBoN.mjs} +2 -2
- package/dist/{piRuntime-BoeMsAXK.mjs → piRuntime-BhwxzdQf.mjs} +1 -1
- package/dist/{piRuntime-Bd9-eq6M.cjs → piRuntime-DzrIiZU8.cjs} +1 -1
- package/dist/{piTerminal-C3j1ca3x.cjs → piTerminal-BdS7ol7v.cjs} +20 -17
- package/dist/{piTerminal-GEPkIGD4.mjs → piTerminal-DnA2CbGr.mjs} +20 -17
- package/dist/{pushNotifications-CfspRcl-.cjs → pushNotifications-BqFoLye2.cjs} +12 -3
- package/dist/{pushNotifications-dUceOIni.mjs → pushNotifications-DkQ0yvFs.mjs} +12 -3
- package/dist/{query-DjsVgG3E.cjs → query-BQ4br3yn.cjs} +1 -1
- package/dist/{query-iYH-tm7L.mjs → query-BRJYSkb1.mjs} +1 -1
- package/dist/{rateLimitReporter-jeVi-fym.mjs → rateLimitReporter-BRbYkmuP.mjs} +3 -3
- package/dist/{rateLimitReporter-DUu2KydZ.cjs → rateLimitReporter-DK5SQuCc.cjs} +3 -3
- package/dist/{rateLimitWindows-Bx3ROBP5.cjs → rateLimitWindows-DBfiuYeg.cjs} +1 -1
- package/dist/{rateLimitWindows-CEn0DXaX.mjs → rateLimitWindows-Da5AR-4u.mjs} +1 -1
- package/dist/reconnectEnv-B31lY4nR.cjs +27 -0
- package/dist/reconnectEnv-DeSvHl3q.mjs +24 -0
- package/dist/{registerCommonHandlers-Beun-cQv.cjs → registerCommonHandlers-m6pxxf2J.cjs} +2 -2
- package/dist/{registerCommonHandlers-DWZ7mfdt.mjs → registerCommonHandlers-yQ7Ru-l0.mjs} +2 -2
- package/dist/{registerKillSessionHandler-CA1FFr_F.cjs → registerKillSessionHandler-BAOIa_Fs.cjs} +6 -6
- package/dist/{registerKillSessionHandler-CzgklwLG.mjs → registerKillSessionHandler-BDNpi7YO.mjs} +6 -6
- package/dist/{remoteSessionClient-BiC2KDew.mjs → remoteSessionClient-CZ7aaNgj.mjs} +5 -5
- package/dist/{remoteSessionClient-DGFI__5Z.cjs → remoteSessionClient-iJMXRN_D.cjs} +5 -5
- package/dist/{reportProgressTool-CgPy6n_7.mjs → reportProgressTool-DfQhPu0s.mjs} +3 -3
- package/dist/{reportProgressTool-CvPGov1F.cjs → reportProgressTool-DpFs7pSe.cjs} +3 -3
- package/dist/{run-B_gFgJVB.mjs → run-CwN28mcj.mjs} +215 -52
- package/dist/{run-rPqQwDi_.cjs → run-p-xp1_HY.cjs} +214 -51
- package/dist/{runClaude-DM8gm8iu.cjs → runClaude-D6U1Z575.cjs} +83 -48
- package/dist/{runClaude-CykqeXK7.mjs → runClaude-DRKtAGTm.mjs} +83 -48
- package/dist/{runClaudeDeps-D2phXGut.mjs → runClaudeDeps-BheVcIlD.mjs} +147 -69
- package/dist/{runClaudeDeps-DGAomimZ.cjs → runClaudeDeps-Dkofokgb.cjs} +142 -64
- package/dist/{runGemini-CXTeSOZp.cjs → runGemini-C8q3YCc0.cjs} +33 -33
- package/dist/{runGemini-CtWCVkj5.mjs → runGemini-owbvhFbi.mjs} +33 -33
- package/dist/{runOpenClaw-CH_9_RyZ.cjs → runOpenClaw-DGeN66-t.cjs} +18 -18
- package/dist/{runOpenClaw-BBdjlViJ.mjs → runOpenClaw-Dky3-mjO.mjs} +18 -18
- package/dist/{sandbox-Bb5IMun3.cjs → sandbox-D2CPyoCA.cjs} +4 -4
- package/dist/{sandbox-DGmXZ6Zz.mjs → sandbox-sq_wy9Gl.mjs} +4 -4
- package/dist/{selfCheck-CccwNTTK.cjs → selfCheck-BgLvQKSt.cjs} +39 -37
- package/dist/selfCheck-vkfrgQ7X.mjs +88 -0
- package/dist/{send-BpiXPkDo.cjs → send-Cd10YhXh.cjs} +8 -8
- package/dist/{send-B6rHg8GT.mjs → send-K9vg-8t-.mjs} +8 -8
- package/dist/{server-DHUzjApC.cjs → server-DRrV64r0.cjs} +6 -6
- package/dist/{server-BkdAyHhC.mjs → server-De4W1zuK.mjs} +4 -4
- package/dist/{sessionLock-BFBReiKq.cjs → sessionLock-BDtSzzKS.cjs} +10 -3
- package/dist/{sessionLock-Ca_bIo50.mjs → sessionLock-Dl6i7IgA.mjs} +10 -4
- package/dist/{sessionOps-DeWVqpe4.cjs → sessionOps-DvnEH4PL.cjs} +6 -4
- package/dist/{sessionOps-CA2kpm66.mjs → sessionOps-gU88-W9F.mjs} +6 -4
- package/dist/sessionProvider-CKcIo7KO.mjs +108 -0
- package/dist/sessionProvider-CbSZeZrl.cjs +113 -0
- package/dist/{sessionScanner-CGzsN8V6.cjs → sessionScanner-7RtcCeyD.cjs} +3 -3
- package/dist/{sessionScanner-DDDud5re.mjs → sessionScanner-DR32uSby.mjs} +3 -3
- package/dist/{sessions-CKJPWFgu.cjs → sessions-BvuMjgvJ.cjs} +10 -10
- package/dist/{sessions-B4d50sCI.mjs → sessions-DTt2Eguk.mjs} +10 -10
- package/dist/{setupOfflineReconnection-CyPNgyCe.mjs → setupOfflineReconnection-BGnvhRfb.mjs} +2 -2
- package/dist/{setupOfflineReconnection-DPXRo_zf.cjs → setupOfflineReconnection-DduOsw6p.cjs} +2 -2
- package/dist/{spawn-CrYN_OOT.mjs → spawn-CL3cUc7b.mjs} +26 -17
- package/dist/{spawn-CgSJzzWS.cjs → spawn-DMB6rRPA.cjs} +26 -17
- package/dist/{spawnAgents-C1-4m7aN.cjs → spawnAgents-CClb7buD.cjs} +8 -2
- package/dist/{spawnAgents-DWCDYCQ1.mjs → spawnAgents-CRMfOJhh.mjs} +8 -2
- package/dist/{spawnHappyCLI-DjbkiSH1.mjs → spawnHappyCLI-Cj_6IICe.mjs} +1 -1
- package/dist/{spawnHappyCLI-CTy3p6V_.cjs → spawnHappyCLI-DJdhX_Qx.cjs} +1 -1
- package/dist/{startFileWatcher-Dedtu1vq.mjs → startFileWatcher-DikVa8kg.mjs} +1 -1
- package/dist/{startFileWatcher-BQs0cJA-.cjs → startFileWatcher-LnOmVW6H.cjs} +1 -1
- package/dist/{startupSessionCreate-Dxy3X4DG.cjs → startupSessionCreate-B3ND-917.cjs} +3 -3
- package/dist/{startupSessionCreate-BKFU4v_h.mjs → startupSessionCreate-CDdaLaMq.mjs} +3 -3
- package/dist/store--XN-7MS0.mjs +269 -0
- package/dist/store-DV__wCvP.cjs +289 -0
- package/dist/{streamRelay-D9a4cBEa.cjs → streamRelay-DFdOaLOn.cjs} +1 -1
- package/dist/{streamRelay-P9e7Sohm.mjs → streamRelay-sABnxEXq.mjs} +1 -1
- package/dist/{sync-eZkXnsW_.mjs → sync-JoEZKRo8.mjs} +1 -1
- package/dist/{sync-DtWB7RzA.cjs → sync-_2lsZ1U2.cjs} +1 -1
- package/dist/{systemPrompt-2XOpZ1j6.cjs → systemPrompt-CJEvNCuW.cjs} +2 -2
- package/dist/{systemPrompt-Bn6g6aCH.mjs → systemPrompt-Zq4HyrZ5.mjs} +2 -2
- package/dist/{teams-ecFay4Gn.cjs → teams-BNZafnrT.cjs} +7 -7
- package/dist/{teams-nadkqrbW.mjs → teams-qz4LqKJ2.mjs} +7 -7
- package/dist/{template-BiTD-jI9.mjs → template-CJ8BWSsc.mjs} +1 -1
- package/dist/{template-17HATY_Y.cjs → template-LgvBbOna.cjs} +1 -1
- package/dist/{time-gPD_EmA-.cjs → time-CaUlWSNJ.cjs} +1 -1
- package/dist/{time-CN3TuSVG.mjs → time-bzmet4s5.mjs} +1 -1
- package/dist/{titleGenerator-lT5ldPuN.cjs → titleGenerator-BuIIu_JP.cjs} +17 -13
- package/dist/{titleGenerator-DgzTQdn2.mjs → titleGenerator-CbTtJ_1D.mjs} +16 -12
- package/dist/{todo-B1VeMk5A.cjs → todo-CQ_BTf9C.cjs} +6 -6
- package/dist/{todo-BIxd7l2Q.mjs → todo-DIrVF_Ak.mjs} +6 -6
- package/dist/{tools-DvqbLsCF.cjs → tools-BnmmFZji.cjs} +1 -1
- package/dist/{tools-zXJpxiG_.mjs → tools-cLOjBvPn.mjs} +1 -1
- package/dist/{uninstall-9htK6mb7.mjs → uninstall-C5OuW6dE.mjs} +3 -3
- package/dist/{uninstall-CvIOpwB5.cjs → uninstall-uEEGKB84.cjs} +3 -3
- package/dist/wrapperAccount-DXlD3bsO.mjs +106 -0
- package/dist/wrapperAccount-DzoGqS2b.cjs +110 -0
- package/package.json +7 -7
- package/dist/defaultPermissionMode-BnxJPVHT.mjs +0 -4
- package/dist/defaultPermissionMode-CxmTXUQR.cjs +0 -7
- package/dist/providerBinding-B-Qbx9W2.cjs +0 -140
- package/dist/providerBinding-CYubGg-Z.mjs +0 -132
- package/dist/selfCheck-BfK945YQ.mjs +0 -86
- package/dist/sessionProvider-VFbtUmMR.cjs +0 -114
- package/dist/sessionProvider-g18IiK74.mjs +0 -109
|
@@ -1,81 +1,82 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { l as logger } from './logger-Fd_rNvgd.mjs';
|
|
2
|
+
import { u as notifyDaemonSessionEvent, v as notifyDaemonClaudeAuthFailed } from './controlClient-8ILulwjc.mjs';
|
|
3
|
+
export { o as reportSessionEditToDaemon } from './controlClient-8ILulwjc.mjs';
|
|
4
4
|
import { s as sameBackgroundTasks, c as createBackgroundTaskTracker } from './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
5
|
-
import { c as createProjectInjector, h as hashObject, l as leadBoardFor } from './deterministicJson-
|
|
6
|
-
export { s as startHappyServer } from './deterministicJson-
|
|
7
|
-
import { s as sharedProjectsClient } from './client-
|
|
5
|
+
import { c as createProjectInjector, h as hashObject, l as leadBoardFor } from './deterministicJson-Dfp-7wUZ.mjs';
|
|
6
|
+
export { s as startHappyServer } from './deterministicJson-Dfp-7wUZ.mjs';
|
|
7
|
+
import { s as sharedProjectsClient } from './client-Bm4oKvW7.mjs';
|
|
8
8
|
import { randomInt, randomUUID, createHash } from 'node:crypto';
|
|
9
9
|
import { a as parseSpecialCommand } from './specialCommands-MXUN0wfI.mjs';
|
|
10
10
|
import { M as MessageBuffer } from './sessionExitLifecycle-CzkLIgNZ.mjs';
|
|
11
11
|
export { S as SessionExitGate, e as exitIntentFromArchiveFlag, s as settleSessionOnExit } from './sessionExitLifecycle-CzkLIgNZ.mjs';
|
|
12
|
-
import { q as query } from './query-
|
|
12
|
+
import { q as query } from './query-BRJYSkb1.mjs';
|
|
13
13
|
import { AbortError } from '@anthropic-ai/claude-agent-sdk';
|
|
14
14
|
import { m as mapToClaudeMode, p as parseClaudePermissionMode, c as resolveRemoteClaudePermissionMode } from './permissionMode-CH4FoZfU.mjs';
|
|
15
|
-
import { c as claudeCheckSession, s as systemPrompt } from './systemPrompt-
|
|
15
|
+
import { c as claudeCheckSession, s as systemPrompt } from './systemPrompt-Zq4HyrZ5.mjs';
|
|
16
16
|
import { join, resolve, dirname } from 'node:path';
|
|
17
17
|
import 'axios';
|
|
18
18
|
import 'node:events';
|
|
19
19
|
import 'socket.io-client';
|
|
20
|
-
import { A as AsyncLock } from './pushNotifications-
|
|
20
|
+
import { A as AsyncLock } from './pushNotifications-DkQ0yvFs.mjs';
|
|
21
21
|
import 'tweetnacl';
|
|
22
|
-
import { c as configuration, e as ensurePrivateDirectory } from './configuration-
|
|
23
|
-
import './index-
|
|
24
|
-
import './registerCommonHandlers-
|
|
22
|
+
import { c as configuration, e as ensurePrivateDirectory } from './configuration-IhRiLDVe.mjs';
|
|
23
|
+
import './index-DYD3GM1m.mjs';
|
|
24
|
+
import './registerCommonHandlers-yQ7Ru-l0.mjs';
|
|
25
25
|
import 'os';
|
|
26
26
|
import 'child_process';
|
|
27
27
|
import '@paralleldrive/cuid2';
|
|
28
|
-
import './persistence-
|
|
28
|
+
import './persistence-DWcHe035.mjs';
|
|
29
29
|
import { c as contentLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
30
30
|
import 'chalk';
|
|
31
31
|
import { R as RawJSONLinesSchema } from './types-CkqAACXx.mjs';
|
|
32
32
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
33
33
|
import { access } from 'fs/promises';
|
|
34
|
-
import { d as delay } from './time-
|
|
34
|
+
import { d as delay } from './time-bzmet4s5.mjs';
|
|
35
35
|
import { mkdirSync, writeFileSync, readFileSync, unlinkSync, renameSync, statSync, existsSync } from 'node:fs';
|
|
36
|
-
import { F as Future, d as describeClaudeProcessExit } from './sessionScanner-
|
|
37
|
-
export { c as createSessionScanner } from './sessionScanner-
|
|
36
|
+
import { F as Future, d as describeClaudeProcessExit } from './sessionScanner-DR32uSby.mjs';
|
|
37
|
+
export { c as createSessionScanner } from './sessionScanner-DR32uSby.mjs';
|
|
38
38
|
import { execSync } from 'node:child_process';
|
|
39
|
-
import { S as StreamRelay } from './streamRelay-
|
|
40
|
-
import { C as CLAUDE_ATTACHMENT_KINDS, c as chatAttachmentDirectory, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-
|
|
39
|
+
import { S as StreamRelay } from './streamRelay-sABnxEXq.mjs';
|
|
40
|
+
import { C as CLAUDE_ATTACHMENT_KINDS, c as chatAttachmentDirectory, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-CyptLIfq.mjs';
|
|
41
41
|
import { writeFile, rename, unlink, readFile } from 'node:fs/promises';
|
|
42
|
-
import { F as ForkSourceMissingError } from './claudeSessionFork-
|
|
43
|
-
import { w as wrapperRateLimitReporter } from './rateLimitReporter-
|
|
44
|
-
|
|
45
|
-
export {
|
|
42
|
+
import { F as ForkSourceMissingError } from './claudeSessionFork-8AA47z8Y.mjs';
|
|
43
|
+
import { w as wrapperRateLimitReporter } from './rateLimitReporter-BRbYkmuP.mjs';
|
|
44
|
+
import { n as noteAccountAuthFailure } from './wrapperAccount-DXlD3bsO.mjs';
|
|
45
|
+
export { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-BDNpi7YO.mjs';
|
|
46
|
+
export { g as getEnvironmentInfo } from './doctor-B_UwMcVT.mjs';
|
|
46
47
|
import { createServer } from 'node:http';
|
|
47
48
|
export { E as EditReportThrottle, b as extractClaudeEditPaths } from './editPaths-BVfS_FFL.mjs';
|
|
48
49
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
49
50
|
export { s as snapshotTree, t as terminateSurvivors } from './processTreeSnapshot-CuLJDNC-.mjs';
|
|
50
|
-
import { r as resolveClaudeBinary, a as runClaudeOneShot } from './titleGenerator-
|
|
51
|
-
export { T as TitleGenerator } from './titleGenerator-
|
|
51
|
+
import { r as resolveClaudeBinary, a as runClaudeOneShot } from './titleGenerator-CbTtJ_1D.mjs';
|
|
52
|
+
export { T as TitleGenerator } from './titleGenerator-CbTtJ_1D.mjs';
|
|
52
53
|
import { B as BOARD_ANALYZER_PROMPT_PREFIX } from './oneShotPrompts-DT4p6RNd.mjs';
|
|
53
|
-
import { i as isSelfReportFresh } from './reportProgressTool-
|
|
54
|
-
export { c as createSelfReportState } from './reportProgressTool-
|
|
54
|
+
import { i as isSelfReportFresh } from './reportProgressTool-DfQhPu0s.mjs';
|
|
55
|
+
export { c as createSelfReportState } from './reportProgressTool-DfQhPu0s.mjs';
|
|
55
56
|
import 'node:util';
|
|
56
57
|
import './prompt-QHuFx9j6.mjs';
|
|
57
58
|
import 'node:os';
|
|
58
59
|
import 'zod';
|
|
59
60
|
import './pi-CqyoZMjI.mjs';
|
|
60
61
|
import './fileStore-5qpetZS0.mjs';
|
|
61
|
-
import './client-
|
|
62
|
-
import './context-
|
|
63
|
-
import './sessionOps-
|
|
62
|
+
import './client-BmPaBnDK.mjs';
|
|
63
|
+
import './context-DO6F5YwH.mjs';
|
|
64
|
+
import './sessionOps-gU88-W9F.mjs';
|
|
64
65
|
import './authRelay-DhQhkBvX.mjs';
|
|
65
66
|
import './resources-CLP_MpK4.mjs';
|
|
66
|
-
import './tools-
|
|
67
|
-
import './peerTools-
|
|
67
|
+
import './tools-cLOjBvPn.mjs';
|
|
68
|
+
import './peerTools-CKJ-IDM4.mjs';
|
|
68
69
|
import './ids-DU6sLx4C.mjs';
|
|
69
|
-
import './remoteSessionClient-
|
|
70
|
+
import './remoteSessionClient-CZ7aaNgj.mjs';
|
|
70
71
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
71
72
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
72
73
|
import './limits-DIo7rEBR.mjs';
|
|
73
|
-
import './downloadTarget-
|
|
74
|
+
import './downloadTarget-C0d6jRx-.mjs';
|
|
74
75
|
import './terminals-Dlg0x3nY.mjs';
|
|
75
76
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
76
77
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
77
|
-
import './bootstrap-
|
|
78
|
-
import './package-
|
|
78
|
+
import './bootstrap-DaZ0Np7X.mjs';
|
|
79
|
+
import './package-6KkRAops.mjs';
|
|
79
80
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
80
81
|
import './trimIdent-BAjmv_TG.mjs';
|
|
81
82
|
import './webPanels-B2_C2-3g.mjs';
|
|
@@ -85,22 +86,24 @@ import './promptCacheTtl-Ce0TVbrx.mjs';
|
|
|
85
86
|
import 'util';
|
|
86
87
|
import 'path';
|
|
87
88
|
import 'cross-spawn';
|
|
88
|
-
import './sync-
|
|
89
|
+
import './sync-JoEZKRo8.mjs';
|
|
89
90
|
import './transcriptCursor-B7T_gkQ0.mjs';
|
|
90
|
-
import './startFileWatcher-
|
|
91
|
+
import './startFileWatcher-DikVa8kg.mjs';
|
|
91
92
|
import 'node:readline';
|
|
92
|
-
import './rateLimitWindows-
|
|
93
|
+
import './rateLimitWindows-Da5AR-4u.mjs';
|
|
94
|
+
import './claudeAccountEnv-ON24i0qv.mjs';
|
|
95
|
+
import './store--XN-7MS0.mjs';
|
|
93
96
|
import './doctor-BPkYWSuq.mjs';
|
|
94
97
|
import 'ps-list';
|
|
95
98
|
import './doctorReadiness-C208SMN9.mjs';
|
|
96
99
|
import './detectCLI-CSGMlV51.mjs';
|
|
97
100
|
import 'fs';
|
|
98
101
|
import './cliUpdate-Y34VGe9Y.mjs';
|
|
99
|
-
import './piRunnerArgs-
|
|
100
|
-
import './acpSessionResume-
|
|
102
|
+
import './piRunnerArgs-Bl5GpBoN.mjs';
|
|
103
|
+
import './acpSessionResume-BWEUxNtC.mjs';
|
|
101
104
|
import 'url';
|
|
102
105
|
import 'node:module';
|
|
103
|
-
import './client-
|
|
106
|
+
import './client-Cxlp_D4I.mjs';
|
|
104
107
|
import './precheckCompat-DeEbilbr.mjs';
|
|
105
108
|
|
|
106
109
|
const SCHEDULE_WAKEUP_GRACE_MS = 6e4;
|
|
@@ -942,6 +945,56 @@ function compactOutcomeEvent(result, status) {
|
|
|
942
945
|
return "Compaction completed";
|
|
943
946
|
}
|
|
944
947
|
|
|
948
|
+
class TimeoutError extends Error {
|
|
949
|
+
constructor(message) {
|
|
950
|
+
super(message);
|
|
951
|
+
this.name = "TimeoutError";
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
function withTimeout(promise, ms, label) {
|
|
955
|
+
promise.catch(() => {
|
|
956
|
+
});
|
|
957
|
+
let timer;
|
|
958
|
+
const timeout = new Promise((_, reject) => {
|
|
959
|
+
timer = setTimeout(() => reject(new TimeoutError(`${label ? `${label} ` : ""}timed out after ${ms}ms`)), ms);
|
|
960
|
+
});
|
|
961
|
+
return Promise.race([promise, timeout]).finally(() => {
|
|
962
|
+
if (timer) clearTimeout(timer);
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
const GET_SETTINGS_TIMEOUT_MS = 3e3;
|
|
967
|
+
const EFFORTS = /* @__PURE__ */ new Set(["low", "medium", "high", "xhigh", "max"]);
|
|
968
|
+
function parseClaudeRunFacts(raw) {
|
|
969
|
+
const facts = {};
|
|
970
|
+
if (!raw || typeof raw !== "object") return facts;
|
|
971
|
+
const { applied, effective } = raw;
|
|
972
|
+
if (applied && typeof applied === "object" && "effort" in applied) {
|
|
973
|
+
const effort = applied.effort;
|
|
974
|
+
if (effort === null) facts.effort = null;
|
|
975
|
+
else if (typeof effort === "string" && EFFORTS.has(effort)) facts.effort = effort;
|
|
976
|
+
}
|
|
977
|
+
if (effective && typeof effective === "object") {
|
|
978
|
+
const model = effective.model;
|
|
979
|
+
facts.configuredModel = typeof model === "string" && model.trim() ? model.trim() : null;
|
|
980
|
+
}
|
|
981
|
+
return facts;
|
|
982
|
+
}
|
|
983
|
+
async function readClaudeRunFacts(query, timeoutMs = GET_SETTINGS_TIMEOUT_MS) {
|
|
984
|
+
const reader = query;
|
|
985
|
+
if (typeof reader?.getSettings !== "function") return null;
|
|
986
|
+
try {
|
|
987
|
+
return parseClaudeRunFacts(await withTimeout(reader.getSettings(), timeoutMs, "get_settings"));
|
|
988
|
+
} catch {
|
|
989
|
+
return null;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
async function liveModelTarget(query, model, timeoutMs = GET_SETTINGS_TIMEOUT_MS) {
|
|
993
|
+
if (model) return model;
|
|
994
|
+
const facts = await readClaudeRunFacts(query, timeoutMs);
|
|
995
|
+
return facts?.configuredModel ?? void 0;
|
|
996
|
+
}
|
|
997
|
+
|
|
945
998
|
const SDK_TIMING_FIELDS = ["ttft_ms", "time_to_request_ms", "time_to_request_from_spawn_ms"];
|
|
946
999
|
function delta(from, to) {
|
|
947
1000
|
if (typeof from !== "number" || typeof to !== "number" || to < from) return "-";
|
|
@@ -995,7 +1048,7 @@ function claudePrewarmSessionEligibility(input) {
|
|
|
995
1048
|
if (input.setting === "off") return no("setting-off");
|
|
996
1049
|
if (input.startedBy !== "daemon") return no("not-daemon");
|
|
997
1050
|
if (input.startingMode !== "remote") return no("not-remote");
|
|
998
|
-
if (
|
|
1051
|
+
if (input.reconnect) return no("reconnect");
|
|
999
1052
|
if (env.HAPPY_FORK_CLAUDE_SESSION_ID || env.HAPPY_FORKED_FROM_SESSION_ID) return no("fork");
|
|
1000
1053
|
if (env.HAPPY_IMPORTED_FROM_CLAUDE_SESSION_ID) return no("import");
|
|
1001
1054
|
if (env.HAPPY_SESSION_VARIANT === "assistant") return no("assistant");
|
|
@@ -1206,24 +1259,6 @@ function createClaudePrewarmLease(input) {
|
|
|
1206
1259
|
return lease;
|
|
1207
1260
|
}
|
|
1208
1261
|
|
|
1209
|
-
class TimeoutError extends Error {
|
|
1210
|
-
constructor(message) {
|
|
1211
|
-
super(message);
|
|
1212
|
-
this.name = "TimeoutError";
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
function withTimeout(promise, ms, label) {
|
|
1216
|
-
promise.catch(() => {
|
|
1217
|
-
});
|
|
1218
|
-
let timer;
|
|
1219
|
-
const timeout = new Promise((_, reject) => {
|
|
1220
|
-
timer = setTimeout(() => reject(new TimeoutError(`${label ? `${label} ` : ""}timed out after ${ms}ms`)), ms);
|
|
1221
|
-
});
|
|
1222
|
-
return Promise.race([promise, timeout]).finally(() => {
|
|
1223
|
-
if (timer) clearTimeout(timer);
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
1262
|
function readClaudeSessionState(message) {
|
|
1228
1263
|
const m = message;
|
|
1229
1264
|
if (!m || m.type !== "system" || m.subtype !== "session_state_changed") return null;
|
|
@@ -1514,7 +1549,7 @@ async function claudeRemote(opts) {
|
|
|
1514
1549
|
}
|
|
1515
1550
|
if (!reason && decision.switchModel) {
|
|
1516
1551
|
try {
|
|
1517
|
-
await withTimeout(w.response.setModel(modelTarget(initial.mode.model)), w.lease.adoptTimeoutMs);
|
|
1552
|
+
await withTimeout(w.response.setModel(await liveModelTarget(w.response, modelTarget(initial.mode.model), w.lease.adoptTimeoutMs)), w.lease.adoptTimeoutMs);
|
|
1518
1553
|
} catch {
|
|
1519
1554
|
reason = "set-model-failed";
|
|
1520
1555
|
}
|
|
@@ -1566,7 +1601,8 @@ async function claudeRemote(opts) {
|
|
|
1566
1601
|
messages.push(initialUserMessage);
|
|
1567
1602
|
} else {
|
|
1568
1603
|
messages = new PushableAsyncIterable();
|
|
1569
|
-
|
|
1604
|
+
const resumeOnConfigModel = !!startFrom && modelTarget(initial.mode.model) === void 0;
|
|
1605
|
+
if (!resumeOnConfigModel) messages.push(initialUserMessage);
|
|
1570
1606
|
timingMarks.spawnAt = Date.now();
|
|
1571
1607
|
opts.onStartArgsUsed?.();
|
|
1572
1608
|
response = query({
|
|
@@ -1578,6 +1614,13 @@ async function claudeRemote(opts) {
|
|
|
1578
1614
|
} catch (error) {
|
|
1579
1615
|
logger.debug("[claudeRemote] Model capability discovery unavailable");
|
|
1580
1616
|
}
|
|
1617
|
+
if (resumeOnConfigModel) {
|
|
1618
|
+
const target = await liveModelTarget(response, void 0);
|
|
1619
|
+
if (target) {
|
|
1620
|
+
await withTimeout(response.setModel(target), SET_MODEL_TIMEOUT_MS, "set_model").then(() => logger.debug(`[claudeRemote] Resumed on the settings model ${target}`)).catch((e) => logger.debug(`[claudeRemote] setModel(settings model) on resume failed: ${e instanceof Error ? e.message : String(e)}`));
|
|
1621
|
+
}
|
|
1622
|
+
messages.push(initialUserMessage);
|
|
1623
|
+
}
|
|
1581
1624
|
timingMarks.handshakeAt = Date.now();
|
|
1582
1625
|
}
|
|
1583
1626
|
const prewarmTiming = adopted ? "adopted" : void 0;
|
|
@@ -1668,9 +1711,10 @@ async function claudeRemote(opts) {
|
|
|
1668
1711
|
}
|
|
1669
1712
|
if (modelUnconfirmed || needsModelSwitch(mode.model, next.mode.model)) {
|
|
1670
1713
|
try {
|
|
1671
|
-
await
|
|
1714
|
+
const target = await liveModelTarget(response, modelTarget(next.mode.model));
|
|
1715
|
+
await withTimeout(response.setModel(target), SET_MODEL_TIMEOUT_MS, "set_model");
|
|
1672
1716
|
modelUnconfirmed = false;
|
|
1673
|
-
logger.debug(`[claudeRemote] Model switched to ${
|
|
1717
|
+
logger.debug(`[claudeRemote] Model switched to ${target ?? "default"}`);
|
|
1674
1718
|
} catch (e) {
|
|
1675
1719
|
logger.debug(`[claudeRemote] setModel failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
1676
1720
|
if (inputClosed()) {
|
|
@@ -1805,6 +1849,12 @@ async function claudeRemote(opts) {
|
|
|
1805
1849
|
permissionMode: systemInit.permissionMode
|
|
1806
1850
|
});
|
|
1807
1851
|
}
|
|
1852
|
+
if (opts.onRunFacts) {
|
|
1853
|
+
const onRunFacts = opts.onRunFacts;
|
|
1854
|
+
void readClaudeRunFacts(response).then((facts) => {
|
|
1855
|
+
if (facts) onRunFacts(facts);
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1808
1858
|
if (systemInit.session_id) {
|
|
1809
1859
|
logger.debug(`[claudeRemote] Waiting for session file to be written to disk: ${systemInit.session_id}`);
|
|
1810
1860
|
const projectDir = getProjectPath(opts.path);
|
|
@@ -3078,6 +3128,23 @@ function applyClaudeSdkMetadata(current, update) {
|
|
|
3078
3128
|
...update.modelIsDefault && update.model ? { defaultModelCode: update.model } : {}
|
|
3079
3129
|
};
|
|
3080
3130
|
}
|
|
3131
|
+
function applyClaudeRunFacts(current, facts) {
|
|
3132
|
+
let next = current;
|
|
3133
|
+
if (facts.configuredModel !== void 0 && current.configuredModel !== facts.configuredModel) {
|
|
3134
|
+
next = { ...next, configuredModel: facts.configuredModel };
|
|
3135
|
+
}
|
|
3136
|
+
if (facts.effort !== void 0) {
|
|
3137
|
+
if (facts.effort === null) {
|
|
3138
|
+
if (next.currentThoughtLevelCode !== void 0) {
|
|
3139
|
+
const { currentThoughtLevelCode: _dropped, ...rest } = next;
|
|
3140
|
+
next = rest;
|
|
3141
|
+
}
|
|
3142
|
+
} else if (next.currentThoughtLevelCode !== facts.effort) {
|
|
3143
|
+
next = { ...next, currentThoughtLevelCode: facts.effort };
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
return next;
|
|
3147
|
+
}
|
|
3081
3148
|
|
|
3082
3149
|
const INTERRUPT_TIMEOUT_MS = 8e3;
|
|
3083
3150
|
function createTurnSteeringController(opts = {}) {
|
|
@@ -4240,6 +4307,11 @@ async function claudeRemoteLauncher(session, onPermissionModeChange, onEffective
|
|
|
4240
4307
|
session.client.updateMetadata((currentMetadata) => applyClaudeSdkMetadata(currentMetadata, metadata));
|
|
4241
4308
|
if (metadata.permissionMode) onEffectivePermissionMode?.(metadata.permissionMode);
|
|
4242
4309
|
},
|
|
4310
|
+
onRunFacts: (facts) => {
|
|
4311
|
+
const current = session.client.getMetadata();
|
|
4312
|
+
if (current && applyClaudeRunFacts(current, facts) === current) return;
|
|
4313
|
+
session.client.updateMetadata((currentMetadata) => applyClaudeRunFacts(currentMetadata, facts));
|
|
4314
|
+
},
|
|
4243
4315
|
onQueryReady: (q) => {
|
|
4244
4316
|
runtimeControls.setQuery(q);
|
|
4245
4317
|
backgroundTasks.reset();
|
|
@@ -4281,6 +4353,11 @@ async function claudeRemoteLauncher(session, onPermissionModeChange, onEffective
|
|
|
4281
4353
|
session.client.sendSessionEvent({ type: "message", message });
|
|
4282
4354
|
},
|
|
4283
4355
|
onAuthFailure: (reason) => {
|
|
4356
|
+
const accountFailure = noteAccountAuthFailure();
|
|
4357
|
+
if (accountFailure) {
|
|
4358
|
+
session.client.sendSessionEvent({ type: "message", message: `Account "${accountFailure.label}" was rejected (${accountFailure.status}): ${reason}. Sign in again or switch accounts.`, kind: "agent-profile-auth-failed" });
|
|
4359
|
+
return;
|
|
4360
|
+
}
|
|
4284
4361
|
session.client.sendSessionEvent({ type: "message", message: `Claude Code auth: ${reason}`, kind: "claude-auth-failed" });
|
|
4285
4362
|
void notifyDaemonClaudeAuthFailed(session.client.sessionId).catch((error) => logger.debug("[remote]: auth_failed report to daemon failed:", error));
|
|
4286
4363
|
},
|
|
@@ -4480,7 +4557,7 @@ async function loop(opts) {
|
|
|
4480
4557
|
logger.debug(`[loop] Iteration with mode: ${mode}`);
|
|
4481
4558
|
switch (mode) {
|
|
4482
4559
|
case "local": {
|
|
4483
|
-
const { claudeLocalLauncher } = await import('./claudeLocalLauncher-
|
|
4560
|
+
const { claudeLocalLauncher } = await import('./claudeLocalLauncher-Bp8bqF4y.mjs');
|
|
4484
4561
|
const result = await claudeLocalLauncher(session);
|
|
4485
4562
|
switch (result.type) {
|
|
4486
4563
|
case "switch":
|
|
@@ -4605,7 +4682,7 @@ async function startHookServer(options) {
|
|
|
4605
4682
|
});
|
|
4606
4683
|
}
|
|
4607
4684
|
|
|
4608
|
-
function generateHookSettingsFile(port, source) {
|
|
4685
|
+
function generateHookSettingsFile(port, source, extra = {}) {
|
|
4609
4686
|
const hooksDir = join(configuration.happyHomeDir, "tmp", "hooks");
|
|
4610
4687
|
mkdirSync(hooksDir, { recursive: true });
|
|
4611
4688
|
const filename = source ? `session-hook-${process.pid}-${source}.json` : `session-hook-${process.pid}.json`;
|
|
@@ -4616,6 +4693,7 @@ function generateHookSettingsFile(port, source) {
|
|
|
4616
4693
|
}
|
|
4617
4694
|
const hookCommand = source ? `node "${forwarderScript}" ${port} ${source}` : `node "${forwarderScript}" ${port}`;
|
|
4618
4695
|
const settings = {
|
|
4696
|
+
...extra,
|
|
4619
4697
|
hooks: {
|
|
4620
4698
|
SessionStart: [
|
|
4621
4699
|
{
|
|
@@ -4801,11 +4879,11 @@ ${text}` : text;
|
|
|
4801
4879
|
const SIDE_QUESTION_RETAIN_MS = 5 * 6e4;
|
|
4802
4880
|
const SIDE_QUESTION_MAX_CHARS = 8e3;
|
|
4803
4881
|
const SIDE_QUESTION_MAX_RUN_MS = 10 * 6e4;
|
|
4804
|
-
function writeSideQuestionSettingsFile(homeDir) {
|
|
4882
|
+
function writeSideQuestionSettingsFile(homeDir, extra = {}) {
|
|
4805
4883
|
const dir = join(homeDir, "tmp", "hooks");
|
|
4806
4884
|
mkdirSync(dir, { recursive: true });
|
|
4807
4885
|
const file = join(dir, `side-question-${process.pid}.json`);
|
|
4808
|
-
writeFileSync(file, JSON.stringify({ disableAllHooks: true }));
|
|
4886
|
+
writeFileSync(file, JSON.stringify({ ...extra, disableAllHooks: true }));
|
|
4809
4887
|
return file;
|
|
4810
4888
|
}
|
|
4811
4889
|
function parseHistory(raw) {
|
|
@@ -4821,7 +4899,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
4821
4899
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
4822
4900
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
4823
4901
|
const fork = deps.run ?? (async (input) => {
|
|
4824
|
-
const { query } = await import('./index-
|
|
4902
|
+
const { query } = await import('./index-BjXjMhGY.mjs');
|
|
4825
4903
|
return runSideQuestion(query, input);
|
|
4826
4904
|
});
|
|
4827
4905
|
const run = async (input, live) => {
|