very-happy-cli 0.2.194 → 0.2.196
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-C3Kx0QJb.mjs → AcpBackend-RqGkFeeY.mjs} +3 -3
- package/dist/{AcpBackend-DJzsue14.cjs → AcpBackend-tL_g_UJ5.cjs} +3 -3
- package/dist/{AcpSessionManager-SteuoqMY.mjs → AcpSessionManager-C-R6yHXc.mjs} +2 -2
- package/dist/{AcpSessionManager-Bc3iafB1.cjs → AcpSessionManager-CFB24qBh.cjs} +2 -2
- package/dist/{BasePermissionHandler-DKzNFVCh.cjs → BasePermissionHandler-C0JS37Jt.cjs} +1 -1
- package/dist/{BasePermissionHandler-D2pNcAXn.mjs → BasePermissionHandler-CgHLVNKT.mjs} +1 -1
- package/dist/{account-ByVjlvFj.cjs → account-DOil1Hn8.cjs} +11 -11
- package/dist/{account-DC2YyU24.mjs → account-EzL-zwwE.mjs} +11 -11
- package/dist/{accountService-CuUSJDhP.cjs → accountService-DL6xhVUa.cjs} +4 -4
- package/dist/{accountService-Cd7bnkfd.mjs → accountService-DQ21IlBs.mjs} +4 -4
- package/dist/{acpSessionResume-DHHgbNnk.cjs → acpSessionResume-B01oHWDS.cjs} +1 -1
- package/dist/{acpSessionResume-B6VClxKQ.mjs → acpSessionResume-DEOIZUuj.mjs} +1 -1
- package/dist/{agentHome-Bov1aHYS.cjs → agentHome-BulDO_1K.cjs} +4 -4
- package/dist/{agentHome-9caXwo7k.mjs → agentHome-DucTue1n.mjs} +4 -4
- package/dist/{api-aE60mNjs.mjs → api-CiNezCys.mjs} +46 -13
- package/dist/{api-wYwQCJml.cjs → api-fuwEEEkT.cjs} +46 -13
- package/dist/{apiMachine-DwaqfM9Q.cjs → apiMachine-CxmiSa2-.cjs} +18 -18
- package/dist/{apiMachine-CvNB38Xg.mjs → apiMachine-DCmKjms1.mjs} +18 -18
- package/dist/{attachmentContent-DB8ZsxGE.cjs → attachmentContent-Cehh7ClR.cjs} +2 -2
- package/dist/{attachmentContent-C2ymY_-w.mjs → attachmentContent-CiY3MvdO.mjs} +2 -2
- package/dist/{auth-boIcb7iq.cjs → auth-DHlbjtf7.cjs} +5 -5
- package/dist/{auth-BYtmGgE1.mjs → auth-DHqHrs5d.mjs} +8 -8
- package/dist/{auth-CWO6cQ4G.mjs → auth-DVsH_a8J.mjs} +5 -5
- package/dist/{auth-Bce0Zk3q.cjs → auth-tlMcvk2Y.cjs} +8 -8
- package/dist/{auto-B-kopWQx.mjs → auto-Cnn8luKk.mjs} +17 -17
- package/dist/{auto-AaggdihK.cjs → auto-DNAa8xDZ.cjs} +17 -17
- package/dist/{bootstrap-CiWwfHB2.mjs → bootstrap-C2XSEyOe.mjs} +2 -2
- package/dist/{bootstrap-kywZ0tvD.cjs → bootstrap-PeTZ2sAn.cjs} +2 -2
- package/dist/{browser-Do2MFdq6.cjs → browser-Bm24RiFU.cjs} +1 -1
- package/dist/{browser-CFfZM3yg.mjs → browser-CWWyaf8_.mjs} +1 -1
- package/dist/{claudeAccountEnv-BL1pR_37.mjs → claudeAccountEnv-CPO6CGNd.mjs} +1 -1
- package/dist/{claudeAccountEnv-CEX_EMZr.cjs → claudeAccountEnv-_O3x5AJ1.cjs} +1 -1
- package/dist/{claudeLocal-DLd8ogcH.cjs → claudeLocal-BDWy2pFt.cjs} +5 -5
- package/dist/{claudeLocal-B47NjZfB.mjs → claudeLocal-CRG-Q7kS.mjs} +5 -5
- package/dist/{claudeLocalLauncher-5DDuHpCD.mjs → claudeLocalLauncher-B5cOrszW.mjs} +10 -10
- package/dist/{claudeLocalLauncher-D_UTQ4o_.cjs → claudeLocalLauncher-DmSLoHlw.cjs} +10 -10
- package/dist/{claudeSessionFork-BrJTncNL.mjs → claudeSessionFork-BqV6E0ep.mjs} +1 -1
- package/dist/{claudeSessionFork-4g6-Sk3Q.cjs → claudeSessionFork-OffWLYgd.cjs} +1 -1
- package/dist/{client-DS5JEsHs.mjs → client-B3lOol4f.mjs} +4 -4
- package/dist/{client-BIg2LPVx.cjs → client-B9fcSMXP.cjs} +2 -2
- package/dist/{client-Cbxr9VUE.mjs → client-CfTeXnYS.mjs} +2 -2
- package/dist/{client-OjYRPhZs.mjs → client-Cg_cuQb1.mjs} +2 -2
- package/dist/{client-CsfPUxLy.cjs → client-Ckic3nxZ.cjs} +2 -2
- package/dist/{client-BfDga3xi.cjs → client-YFvImdwH.cjs} +4 -4
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAccount-BDQjRbtI.cjs → codexAccount-CYhQir50.cjs} +1 -1
- package/dist/{codexAccount-NOX5pmQf.mjs → codexAccount-iZwmpYti.mjs} +1 -1
- package/dist/{codexAppServerClient-Bj5vN7sb.cjs → codexAppServerClient-C-UwVMUN.cjs} +60 -3
- package/dist/{codexAppServerClient-HKAm8f_D.mjs → codexAppServerClient-aV5m-FpZ.mjs} +60 -3
- package/dist/{codexCommand-DtbDjHZp.cjs → codexCommand-5nWT7F8A.cjs} +145 -51
- package/dist/{codexCommand-655pR6CR.mjs → codexCommand-CI2NTyIF.mjs} +144 -50
- package/dist/{codexTermination-DxLR-bb5.mjs → codexTermination-CLjDP6Ja.mjs} +6 -2
- package/dist/{codexTermination-CX_FHKT5.cjs → codexTermination-D18IHgLP.cjs} +6 -2
- package/dist/{config-Cv-A-Bw0.cjs → config-B7YtrHi0.cjs} +3 -3
- package/dist/{config-CIvXVGlP.mjs → config-BfwjfFSC.mjs} +3 -3
- package/dist/{configuration-rTcdHkhE.mjs → configuration-C8r6uD9k.mjs} +1 -1
- package/dist/{configuration-2Pbg3a0H.cjs → configuration-CWRKSOyj.cjs} +1 -1
- package/dist/{connect-BAYNAE8A.cjs → connect-DALX1hGB.cjs} +15 -15
- package/dist/{connect-B9Bl68PF.mjs → connect-K5HBcM56.mjs} +15 -15
- package/dist/{context-CLTyu_tQ.cjs → context-BqhlGL3u.cjs} +1 -1
- package/dist/{context-C7QarZMk.mjs → context-CtMY-M8T.mjs} +1 -1
- package/dist/{controlClient-BIdGnYBo.mjs → controlClient-DYQ1g2ar.mjs} +20 -8
- package/dist/{controlClient-CIqHL07h.cjs → controlClient-DyNgxNl7.cjs} +19 -7
- package/dist/{createSessionMetadata-BHjzRzPc.cjs → createSessionMetadata-C4WN8pVK.cjs} +2 -2
- package/dist/{createSessionMetadata-PrN-dT7K.mjs → createSessionMetadata-CZuEDo2v.mjs} +2 -2
- package/dist/{daemonAccounts-DwPwKxvv.mjs → daemonAccounts-CnAEaJE_.mjs} +3 -3
- package/dist/{daemonAccounts-CpGDY_4k.cjs → daemonAccounts-CxMJw7x2.cjs} +2 -2
- package/dist/{defaultPermissionMode-BakXiqRr.cjs → defaultPermissionMode-BCWCMONI.cjs} +1 -1
- package/dist/{defaultPermissionMode-DF5AfeBb.mjs → defaultPermissionMode-CpEJ0wlb.mjs} +1 -1
- package/dist/{deterministicJson-DFwJ57jR.mjs → deterministicJson-Dg_0QJAR.mjs} +13 -13
- package/dist/{deterministicJson-ZBFn1jtS.cjs → deterministicJson-r4zhG546.cjs} +13 -13
- package/dist/{doctor-yyM-zii7.cjs → doctor-0gLGzwz6.cjs} +8 -8
- package/dist/{doctor-u46qYYKX.cjs → doctor-CJpFhHoK.cjs} +8 -9
- package/dist/{doctor-CFYpAXvt.mjs → doctor-COeFzPpz.mjs} +8 -8
- package/dist/{doctor-BPkYWSuq.mjs → doctor-GN5mPOn5.mjs} +8 -9
- package/dist/{downloadTarget-DlmqPQp9.cjs → downloadTarget-8ovVpDv1.cjs} +6 -6
- package/dist/{downloadTarget-CVPBZMnY.mjs → downloadTarget-CbuUiS5p.mjs} +6 -6
- package/dist/{ensureDaemonRunning-D2ny0yon.cjs → ensureDaemonRunning-Bq-n6xTt.cjs} +5 -5
- package/dist/{ensureDaemonRunning-B6Y-CMWe.mjs → ensureDaemonRunning-CwlujXmV.mjs} +5 -5
- package/dist/{handleResumeCommand-DlrDcV5B.mjs → handleResumeCommand-B5GgmPm_.mjs} +5 -5
- package/dist/{handleResumeCommand-D-mGugcu.cjs → handleResumeCommand-muSrYA5y.cjs} +5 -5
- package/dist/{index-DuDD9khO.mjs → index-BRH0XYSO.mjs} +53 -46
- package/dist/{index-5c33fqLQ.cjs → index-BUOd8bNd.cjs} +5 -5
- package/dist/{index-Bi3dVJ0S.mjs → index-BZCIkrFj.mjs} +4 -4
- package/dist/{index-D1YnIih6.mjs → index-C27JFCbe.mjs} +2 -1
- package/dist/{index-CPkSLWP_.cjs → index-CQZg9jKx.cjs} +4 -4
- package/dist/{index-2Fcq3AGX.cjs → index-CnY74Dae.cjs} +3 -3
- package/dist/{index-BJsenPFp.mjs → index-D0V-seiN.mjs} +3 -3
- package/dist/{index-BUFrKZeQ.cjs → index-D9Hidq-g.cjs} +2 -0
- package/dist/{index-DEN6vfEY.mjs → index-DKCmDned.mjs} +5 -5
- package/dist/{index-BWvmUCQF.cjs → index-Dt_YE-zw.cjs} +52 -45
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-BOA4nEbm.cjs → install-BlW2kkPl.cjs} +3 -3
- package/dist/{install-BVYL-wSO.mjs → install-CooQf1oU.mjs} +3 -3
- package/dist/lib.cjs +16 -16
- package/dist/lib.d.cts +4 -0
- package/dist/lib.d.mts +4 -0
- package/dist/lib.mjs +16 -16
- package/dist/{lidState-zy20u7T3.mjs → lidState-BflRFw38.mjs} +1 -1
- package/dist/{lidState-DYeb7Wud.cjs → lidState-VZ1j_QYw.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CBsX08VJ.mjs → localHappyAgentAuth-BAK_nqMG.mjs} +1 -1
- package/dist/{localHappyAgentAuth-CScN2McN.cjs → localHappyAgentAuth-oxhpgJOb.cjs} +1 -1
- package/dist/{logger-SGCwRIV5.mjs → logger-D1hb3CG8.mjs} +2 -2
- package/dist/{logger-CepF8C5Z.cjs → logger-HQ9yDb8R.cjs} +2 -2
- package/dist/{machineMetadata-ClJfd7ay.mjs → machineMetadata-Dxng45Uh.mjs} +3 -3
- package/dist/{machineMetadata-ObK4hjF0.cjs → machineMetadata-Dzwn-HjN.cjs} +3 -3
- package/dist/{main-C7ZcZVBY.mjs → main-BP0iY2vQ.mjs} +48 -48
- package/dist/{main-mhXOpUV7.cjs → main-D7qre-pa.cjs} +48 -48
- package/dist/{mcp-BuCpkYTY.mjs → mcp-BmDGyj7k.mjs} +18 -18
- package/dist/{mcp-Zz7m0j8A.cjs → mcp-D3yzLkh8.cjs} +18 -18
- package/dist/{mirrorProtocol-B0H9UTBM.mjs → mirrorProtocol-C9Zc6GFT.mjs} +3 -3
- package/dist/{mirrorProtocol-IhICxf0K.cjs → mirrorProtocol-Cv2otcvM.cjs} +3 -3
- package/dist/{package-Q_ELj5DL.mjs → package-CpmoMPuj.mjs} +7 -7
- package/dist/{package-C7WgesIw.cjs → package-Dn7zZkY1.cjs} +7 -7
- package/dist/{panels-Cm69UXgE.mjs → panels-CQobcX5w.mjs} +5 -5
- package/dist/{panels-yyxpwZnk.cjs → panels-D59PlNoD.cjs} +5 -5
- package/dist/{peerTools-DUg9RduG.mjs → peerTools-CNzlwuL7.mjs} +5 -5
- package/dist/{peerTools-BcZAbqBL.cjs → peerTools-D417O7d-.cjs} +5 -5
- package/dist/{persistence-D0gNvqXe.cjs → persistence-BiyvEYaR.cjs} +15 -5
- package/dist/{persistence-mr4Y484W.mjs → persistence-CagHeZ-f.mjs} +15 -5
- package/dist/{piRunnerArgs-CGjpl4iF.mjs → piRunnerArgs-DKU5LoWu.mjs} +1 -1
- package/dist/{piRunnerArgs-DK_DDkYW.cjs → piRunnerArgs-kTaNYd23.cjs} +1 -1
- package/dist/{piRuntime-CtZRNOEb.cjs → piRuntime-BI4KNAUY.cjs} +1 -1
- package/dist/{piRuntime-HUA19wG8.mjs → piRuntime-BV4fQyZD.mjs} +1 -1
- package/dist/{piTerminal-D9OPouek.cjs → piTerminal-WPUtDJAV.cjs} +20 -20
- package/dist/{piTerminal-Bgy1W9mA.mjs → piTerminal-oObkl3WJ.mjs} +20 -20
- package/dist/processTermination-ChJG5SLW.mjs +107 -0
- package/dist/processTermination-f17wxlMb.cjs +110 -0
- package/dist/{processTreeSnapshot-mDbnuojn.cjs → processTreeSnapshot-D5iNblp6.cjs} +26 -0
- package/dist/{processTreeSnapshot-CuLJDNC-.mjs → processTreeSnapshot-fuwxC0fr.mjs} +25 -1
- package/dist/{pushNotifications-DjEl8G0a.mjs → pushNotifications-4sNESDMv.mjs} +11 -4
- package/dist/{pushNotifications-CH0XVPQe.cjs → pushNotifications-DRDWUnP-.cjs} +12 -3
- package/dist/{query-DmIo5OXf.mjs → query-6OWHW1U1.mjs} +2 -2
- package/dist/{query-Df3WhSA0.cjs → query-qIbeJ2-r.cjs} +2 -2
- package/dist/{rateLimitWindows-a2yE3kCv.mjs → rateLimitWindows-4uhuwKnU.mjs} +1 -1
- package/dist/{rateLimitWindows-B9PERFm1.cjs → rateLimitWindows-U4fc1-_6.cjs} +1 -1
- package/dist/{registerCommonHandlers-D4uXC0he.cjs → registerCommonHandlers-CEV9KUsq.cjs} +2 -2
- package/dist/{registerCommonHandlers-CND00Dpj.mjs → registerCommonHandlers-PTJ8TBj9.mjs} +2 -2
- package/dist/{registerKillSessionHandler-DQKsD9CW.cjs → registerKillSessionHandler-C6F1sjoo.cjs} +6 -6
- package/dist/{registerKillSessionHandler-CwyHwm_n.mjs → registerKillSessionHandler-D4SSwQj8.mjs} +6 -6
- package/dist/registerSideQuestionHandler-4mRv0Msq.mjs +358 -0
- package/dist/registerSideQuestionHandler-ByUnjI3V.cjs +366 -0
- package/dist/{remoteSessionClient-DOWgca08.cjs → remoteSessionClient-CUk6haD7.cjs} +5 -5
- package/dist/{remoteSessionClient-mIr_9OL_.mjs → remoteSessionClient-CfYDFlKm.mjs} +5 -5
- package/dist/{reportProgressTool-DTKlUlHv.mjs → reportProgressTool-BCn5oG52.mjs} +3 -3
- package/dist/{reportProgressTool-BLw2_Ohi.cjs → reportProgressTool-C1JOvo6T.cjs} +3 -3
- package/dist/{run-1V6DLzTY.cjs → run-D2SlfZPP.cjs} +54 -74
- package/dist/{run-bfxXYL5N.mjs → run-DC8BIklA.mjs} +52 -72
- package/dist/{runClaude-DuFgZZwO.cjs → runClaude-BE-5GgIZ.cjs} +37 -31
- package/dist/{runClaude-BgvDhl2p.mjs → runClaude-D6fqN9PD.mjs} +37 -31
- package/dist/{runClaudeDeps-CX7GtH7O.mjs → runClaudeDeps-BmdwskeI.mjs} +52 -340
- package/dist/{runClaudeDeps-DeVinBmE.cjs → runClaudeDeps-W0nv2vHL.cjs} +48 -336
- package/dist/{runGemini-Cd27u-7R.mjs → runGemini-C3Ipeu1i.mjs} +37 -34
- package/dist/{runGemini-DiYSk3s1.cjs → runGemini-Da_d-2kV.cjs} +37 -34
- package/dist/{runOpenClaw-CWkkfRSo.mjs → runOpenClaw-BoI6nbKB.mjs} +30 -20
- package/dist/{runOpenClaw-DyQnBzpy.cjs → runOpenClaw-af5qDNU0.cjs} +30 -20
- package/dist/{sandbox-C35zDrkc.mjs → sandbox-CjoyUSGa.mjs} +4 -4
- package/dist/{sandbox-BAXXYewR.cjs → sandbox-UGF68GrE.cjs} +4 -4
- package/dist/selfCheck-CNrOZgBv.mjs +88 -0
- package/dist/{selfCheck-R71q-x7u.cjs → selfCheck-Cr8eAw4m.cjs} +40 -40
- package/dist/{send-3Wa9th3D.cjs → send-CVSht9s_.cjs} +8 -8
- package/dist/{send-DiSaR5Bk.mjs → send-gqX0-i4p.mjs} +8 -8
- package/dist/{server-BJu2bFBy.cjs → server-BPgVv-BG.cjs} +6 -6
- package/dist/{server-BxMJxaE6.mjs → server-DxlNqWJo.mjs} +4 -4
- package/dist/{sessionExitLifecycle-DFltxXU8.cjs → sessionExitLifecycle-DB2rjvVS.cjs} +5 -1
- package/dist/{sessionExitLifecycle-CzkLIgNZ.mjs → sessionExitLifecycle-iAtZN9sa.mjs} +5 -1
- package/dist/{sessionLock-dbi4JPhP.mjs → sessionLock-BfvR9BGB.mjs} +94 -78
- package/dist/{sessionLock-BJ1ngLgm.cjs → sessionLock-D2usWXAg.cjs} +92 -78
- package/dist/{sessionOps-BUlpeaUe.cjs → sessionOps-JRyQhF5s.cjs} +4 -4
- package/dist/{sessionOps-C9wRmCBg.mjs → sessionOps-OmRqUFm4.mjs} +4 -4
- package/dist/{sessionProvider-DYD6JepE.cjs → sessionProvider-BpscgwwC.cjs} +10 -10
- package/dist/{sessionProvider-BEHfI5gs.mjs → sessionProvider-DTEdidBc.mjs} +10 -10
- package/dist/{sessionScanner-CFITViIZ.mjs → sessionScanner-BlAOpqMh.mjs} +3 -3
- package/dist/{sessionScanner-BwbjEoSf.cjs → sessionScanner-C_qVc1ok.cjs} +3 -3
- package/dist/{sessions-C-wBd0fN.cjs → sessions-7iyjxti9.cjs} +10 -10
- package/dist/{sessions-wOcO2X-k.mjs → sessions-CnjHHllR.mjs} +10 -10
- package/dist/{setupOfflineReconnection-Bd6XsWhA.cjs → setupOfflineReconnection-BCbJa5mT.cjs} +2 -2
- package/dist/{setupOfflineReconnection-BrljmbqX.mjs → setupOfflineReconnection-IKEI7fLJ.mjs} +2 -2
- package/dist/{spawn-BPioepNz.mjs → spawn-CbfcClhj.mjs} +14 -14
- package/dist/{spawn-Crprnq9Z.cjs → spawn-CxEl0Dyz.cjs} +14 -14
- package/dist/{spawnAgents-B9olJ8xn.cjs → spawnAgents-Cm23BW-D.cjs} +1 -1
- package/dist/{spawnAgents-I29H9nO8.mjs → spawnAgents-N3jxdNJC.mjs} +1 -1
- package/dist/{spawnHappyCLI-BA1bTIiO.mjs → spawnHappyCLI-C8gMHJu5.mjs} +1 -1
- package/dist/{spawnHappyCLI-C0XAWy8V.cjs → spawnHappyCLI-CHSlXWUe.cjs} +1 -1
- package/dist/{startFileWatcher-COCEjNT8.mjs → startFileWatcher-6hslFu_B.mjs} +1 -1
- package/dist/{startFileWatcher-Ca5izs24.cjs → startFileWatcher-BGpYPz6L.cjs} +1 -1
- package/dist/{startupSessionCreate-BnEPBxsJ.mjs → startupSessionCreate-B7jrCZUD.mjs} +3 -3
- package/dist/{startupSessionCreate-Cmg1gkKS.cjs → startupSessionCreate-CltDtCEF.cjs} +3 -3
- package/dist/{store-Vej_738f.mjs → store-BlPvTr_Q.mjs} +1 -1
- package/dist/{store-CkNa6oj4.cjs → store-aa3CVNwS.cjs} +1 -1
- package/dist/{streamRelay-C0G1HOOd.cjs → streamRelay-C2Lb2z39.cjs} +1 -1
- package/dist/{streamRelay-C5U-C4GS.mjs → streamRelay-DFZyAPD_.mjs} +1 -1
- package/dist/{sync-BfrnSdL1.cjs → sync-DfI78smj.cjs} +1 -1
- package/dist/{sync-DVcNkv8e.mjs → sync-DtzoF9sw.mjs} +1 -1
- package/dist/{systemPrompt-BxZebU75.mjs → systemPrompt-B1Xd99hK.mjs} +2 -2
- package/dist/{systemPrompt-Os5ca7pu.cjs → systemPrompt-HZNR9rjt.cjs} +2 -2
- package/dist/{teams-CNB3DE_n.mjs → teams-Vk75H6BZ.mjs} +7 -7
- package/dist/{teams--pv0QFMA.cjs → teams-fFX-L_ms.cjs} +7 -7
- package/dist/{template-B9pLEP8v.cjs → template-B1AORlgU.cjs} +1 -1
- package/dist/{template-CL9EvQLQ.mjs → template-CJ8uLlD8.mjs} +1 -1
- package/dist/{time-Da5GIiCa.cjs → time-BqPZjTpo.cjs} +1 -1
- package/dist/{time-0Ru4clBD.mjs → time-CgAwVt5R.mjs} +1 -1
- package/dist/{titleGenerator-CaCzpYyA.mjs → titleGenerator-D2UB7Uyr.mjs} +2 -2
- package/dist/{titleGenerator-9xIXHA5K.cjs → titleGenerator-ijVOuv3J.cjs} +3 -3
- package/dist/{todo-CZXHl2Lg.mjs → todo-CCuqtD0O.mjs} +6 -6
- package/dist/{todo-DUY_J3l_.cjs → todo-vCzaIwNp.cjs} +6 -6
- package/dist/{tools-hPD2Hvei.cjs → tools-CL8h3fqh.cjs} +1 -1
- package/dist/{tools-DqA2Jt2R.mjs → tools-DthGQoo3.mjs} +1 -1
- package/dist/{uninstall-rTvdpRLt.cjs → uninstall-CIvThBvI.cjs} +3 -3
- package/dist/{uninstall-CjMzELYw.mjs → uninstall-DCJh4UoO.mjs} +3 -3
- package/dist/{wrapperAccount-D2A4DuZy.cjs → wrapperAccount-BubTurHU.cjs} +2 -2
- package/dist/{wrapperAccount-BkufO_9g.mjs → wrapperAccount-RPtq8BwD.mjs} +2 -2
- package/package.json +7 -7
- package/dist/rateLimitReporter-B_PZClib.mjs +0 -42
- package/dist/rateLimitReporter-M_IKRRS7.cjs +0 -44
- package/dist/selfCheck-DKMF0Dyu.mjs +0 -88
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var os = require('node:os');
|
|
4
|
-
var sessionLock = require('./sessionLock-
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var startupSessionCreate = require('./startupSessionCreate-
|
|
4
|
+
var sessionLock = require('./sessionLock-D2usWXAg.cjs');
|
|
5
|
+
var persistence = require('./persistence-BiyvEYaR.cjs');
|
|
6
|
+
var startupSessionCreate = require('./startupSessionCreate-CltDtCEF.cjs');
|
|
7
7
|
var node_crypto = require('node:crypto');
|
|
8
|
-
var api = require('./api-
|
|
9
|
-
var logger = require('./logger-
|
|
10
|
-
var createSessionMetadata = require('./createSessionMetadata-
|
|
11
|
-
var _package = require('./package-
|
|
12
|
-
var index = require('./index-
|
|
13
|
-
var defaultPermissionMode = require('./defaultPermissionMode-
|
|
8
|
+
var api = require('./api-fuwEEEkT.cjs');
|
|
9
|
+
var logger = require('./logger-HQ9yDb8R.cjs');
|
|
10
|
+
var createSessionMetadata = require('./createSessionMetadata-C4WN8pVK.cjs');
|
|
11
|
+
var _package = require('./package-Dn7zZkY1.cjs');
|
|
12
|
+
var index = require('./index-D9Hidq-g.cjs');
|
|
13
|
+
var defaultPermissionMode = require('./defaultPermissionMode-BCWCMONI.cjs');
|
|
14
14
|
var forkBackfill = require('./forkBackfill-8eLDeS73.cjs');
|
|
15
|
-
var configuration = require('./configuration-
|
|
16
|
-
var wrapperAccount = require('./wrapperAccount-
|
|
17
|
-
var store = require('./store-
|
|
18
|
-
var controlClient = require('./controlClient-
|
|
19
|
-
var machineMetadata = require('./machineMetadata-
|
|
15
|
+
var configuration = require('./configuration-CWRKSOyj.cjs');
|
|
16
|
+
var wrapperAccount = require('./wrapperAccount-BubTurHU.cjs');
|
|
17
|
+
var store = require('./store-aa3CVNwS.cjs');
|
|
18
|
+
var controlClient = require('./controlClient-DyNgxNl7.cjs');
|
|
19
|
+
var machineMetadata = require('./machineMetadata-Dzwn-HjN.cjs');
|
|
20
20
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
21
21
|
var path = require('node:path');
|
|
22
22
|
var permissionMode = require('./permissionMode-CrV-XuMs.cjs');
|
|
23
23
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
24
24
|
var promises = require('node:fs/promises');
|
|
25
|
-
var attachmentContent = require('./attachmentContent-
|
|
25
|
+
var attachmentContent = require('./attachmentContent-Cehh7ClR.cjs');
|
|
26
26
|
var transcriptCursor = require('./transcriptCursor-DcXGLeSc.cjs');
|
|
27
27
|
var startupPlan = require('./startupPlan-BLMbfQIH.cjs');
|
|
28
28
|
var reconnectEnv = require('./reconnectEnv-B31lY4nR.cjs');
|
|
29
29
|
require('./cliUpdate-DsKXPFYp.cjs');
|
|
30
30
|
require('node:fs');
|
|
31
|
-
require('./
|
|
31
|
+
require('./processTermination-f17wxlMb.cjs');
|
|
32
32
|
require('node:child_process');
|
|
33
|
+
require('./processTreeSnapshot-D5iNblp6.cjs');
|
|
33
34
|
require('zod');
|
|
34
35
|
require('axios');
|
|
35
|
-
require('./
|
|
36
|
+
require('./pushNotifications-DRDWUnP-.cjs');
|
|
37
|
+
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
38
|
+
require('./lidState-VZ1j_QYw.cjs');
|
|
36
39
|
require('os');
|
|
37
40
|
require('child_process');
|
|
38
41
|
require('node:events');
|
|
39
42
|
require('socket.io-client');
|
|
40
|
-
require('./pushNotifications-CH0XVPQe.cjs');
|
|
41
|
-
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
42
43
|
require('./limits-C-a7gr04.cjs');
|
|
43
|
-
require('./time-
|
|
44
|
-
require('./registerCommonHandlers-
|
|
44
|
+
require('./time-BqPZjTpo.cjs');
|
|
45
|
+
require('./registerCommonHandlers-CEV9KUsq.cjs');
|
|
45
46
|
require('util');
|
|
46
47
|
require('fs/promises');
|
|
47
48
|
require('crypto');
|
|
48
49
|
require('path');
|
|
49
50
|
require('cross-spawn');
|
|
50
51
|
require('@paralleldrive/cuid2');
|
|
51
|
-
require('./sync-
|
|
52
|
+
require('./sync-DfI78smj.cjs');
|
|
52
53
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
53
54
|
require('chalk');
|
|
54
55
|
require('node:util');
|
|
55
|
-
require('./claudeAccountEnv-
|
|
56
|
+
require('./claudeAccountEnv-_O3x5AJ1.cjs');
|
|
56
57
|
require('./detectCLI-BuYR_Qxe.cjs');
|
|
57
58
|
require('fs');
|
|
58
|
-
require('./localHappyAgentAuth-
|
|
59
|
+
require('./localHappyAgentAuth-oxhpgJOb.cjs');
|
|
59
60
|
require('tweetnacl');
|
|
60
61
|
require('./fsMkdir-0K3yENml.cjs');
|
|
61
62
|
require('url');
|
|
@@ -66,7 +67,7 @@ const CLAUDE_EFFORTS = ["low", "medium", "high", "xhigh", "max"];
|
|
|
66
67
|
function restoredClaudeEffort(effort) {
|
|
67
68
|
return CLAUDE_EFFORTS.includes(effort ?? "") ? effort : void 0;
|
|
68
69
|
}
|
|
69
|
-
const importRunClaudeDeps = () => Promise.resolve().then(function () { return require('./runClaudeDeps-
|
|
70
|
+
const importRunClaudeDeps = () => Promise.resolve().then(function () { return require('./runClaudeDeps-W0nv2vHL.cjs'); });
|
|
70
71
|
async function runClaude(credentials, options = {}) {
|
|
71
72
|
logger.logger.debug(`[CLAUDE] ===== CLAUDE MODE STARTING =====`);
|
|
72
73
|
logger.logger.debug(`[CLAUDE] This is the Claude agent, NOT Gemini`);
|
|
@@ -82,7 +83,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
82
83
|
const isAssistantVariant = process.env.HAPPY_SESSION_VARIANT === "assistant";
|
|
83
84
|
if (isAssistantVariant) {
|
|
84
85
|
try {
|
|
85
|
-
const { bootstrapAssistantHome } = await Promise.resolve().then(function () { return require('./bootstrap-
|
|
86
|
+
const { bootstrapAssistantHome } = await Promise.resolve().then(function () { return require('./bootstrap-PeTZ2sAn.cjs'); });
|
|
86
87
|
await bootstrapAssistantHome();
|
|
87
88
|
} catch (error) {
|
|
88
89
|
logger.logger.debug("[START] Assistant home bootstrap failed:", error);
|
|
@@ -208,7 +209,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
208
209
|
}
|
|
209
210
|
if (!response) {
|
|
210
211
|
let offlineSessionId = null;
|
|
211
|
-
const { claudeLocal } = await Promise.resolve().then(function () { return require('./claudeLocal-
|
|
212
|
+
const { claudeLocal } = await Promise.resolve().then(function () { return require('./claudeLocal-BDWy2pFt.cjs'); });
|
|
212
213
|
const { createSessionScanner: createSessionScanner2 } = await loadDeps();
|
|
213
214
|
const reconnection = api.startOfflineReconnection({
|
|
214
215
|
serverUrl: configuration.configuration.serverUrl,
|
|
@@ -330,6 +331,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
330
331
|
settleSessionOnExit,
|
|
331
332
|
registerSideQuestionHandler,
|
|
332
333
|
writeSideQuestionSettingsFile,
|
|
334
|
+
describePendingApprovals,
|
|
333
335
|
claudeCheckSession,
|
|
334
336
|
createSessionScanner,
|
|
335
337
|
getProjectPath,
|
|
@@ -584,7 +586,8 @@ async function runClaude(credentials, options = {}) {
|
|
|
584
586
|
settingsPath: writeSideQuestionSettingsFile(configuration.configuration.happyHomeDir, account.settings),
|
|
585
587
|
// B-482: in remote mode the launcher parks the live Query's /btw entry
|
|
586
588
|
// on the session while the Query is alive; local mode never sets it.
|
|
587
|
-
getLiveQuery: () => currentSession?.getSideQuestionLive() ?? null
|
|
589
|
+
getLiveQuery: () => currentSession?.getSideQuestionLive() ?? null,
|
|
590
|
+
getMainStatus: () => describePendingApprovals(session.getAgentState()?.requests)
|
|
588
591
|
});
|
|
589
592
|
const resetCurrentModeDefaults = () => {
|
|
590
593
|
currentFallbackModel = void 0;
|
|
@@ -840,7 +843,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
840
843
|
const exitGate = new SessionExitGate();
|
|
841
844
|
let hibernationProbe = null;
|
|
842
845
|
const cleanup = async (opts = { archive: true }) => {
|
|
843
|
-
const intent = opts.hibernation ? "hibernate" : exitGate.claim(exitIntentFromArchiveFlag(opts.archive));
|
|
846
|
+
const intent = opts.hibernation ? "hibernate" : exitGate.claim(opts.superseded ? "superseded" : exitIntentFromArchiveFlag(opts.archive));
|
|
844
847
|
if (intent === null) {
|
|
845
848
|
logger.logger.debug(`[START] Termination (archive=${opts.archive ?? true}) ignored: cleanup already running as ${exitGate.current}`);
|
|
846
849
|
return;
|
|
@@ -864,7 +867,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
864
867
|
deactivateSession: (id) => api$1.deactivateSession(id),
|
|
865
868
|
log: (message, ...args) => logger.logger.debug(message, ...args)
|
|
866
869
|
});
|
|
867
|
-
await session.flush();
|
|
870
|
+
if (intent !== "superseded") await session.flush();
|
|
868
871
|
await session.close();
|
|
869
872
|
}
|
|
870
873
|
happyServer.stop();
|
|
@@ -904,6 +907,9 @@ async function runClaude(credentials, options = {}) {
|
|
|
904
907
|
void cleanup({ archive: true });
|
|
905
908
|
});
|
|
906
909
|
registerKillSessionHandler(session.rpcHandlerManager, () => cleanup({ archive: true }), session);
|
|
910
|
+
session.on("superseded", () => {
|
|
911
|
+
void cleanup({ superseded: true });
|
|
912
|
+
});
|
|
907
913
|
let keepAwakeLatch = false;
|
|
908
914
|
const hibernationSnapshot = () => {
|
|
909
915
|
const agentState = session.getAgentState();
|
|
@@ -942,7 +948,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
942
948
|
// commit window runs now instead of being lost.
|
|
943
949
|
releaseExit: () => {
|
|
944
950
|
const deferred = exitGate.release("hibernate");
|
|
945
|
-
if (deferred) void cleanup({ archive: deferred === "archive" });
|
|
951
|
+
if (deferred) void cleanup(deferred === "superseded" ? { superseded: true } : { archive: deferred === "archive" });
|
|
946
952
|
},
|
|
947
953
|
recheck: () => persistence.evaluateWrapperIdle(hibernationSnapshot(), idleMs, Date.now()),
|
|
948
954
|
idleMs,
|
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import os from 'node:os';
|
|
2
|
-
import { A as AUTO_RESTART_CAPABILITY, c as claimSessionOrExit, a as applyServerSnapshot, b as applyReconnectReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata, t as takeAutoRestartedEvent, e as exitCursorStamp } from './sessionLock-
|
|
3
|
-
import { r as readSettings, H as HIBERNATION_CAPABILITY, a as resolveCheckMs, l as latchKeepAwake, e as evaluateWrapperIdle } from './persistence-
|
|
4
|
-
import { c as createSessionForStartup, H as HibernationProbe, a as commitHibernation } from './startupSessionCreate-
|
|
2
|
+
import { A as AUTO_RESTART_CAPABILITY, c as claimSessionOrExit, a as applyServerSnapshot, b as applyReconnectReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata, t as takeAutoRestartedEvent, e as exitCursorStamp } from './sessionLock-BfvR9BGB.mjs';
|
|
3
|
+
import { r as readSettings, H as HIBERNATION_CAPABILITY, a as resolveCheckMs, l as latchKeepAwake, e as evaluateWrapperIdle } from './persistence-CagHeZ-f.mjs';
|
|
4
|
+
import { c as createSessionForStartup, H as HibernationProbe, a as commitHibernation } from './startupSessionCreate-B7jrCZUD.mjs';
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
6
|
-
import { c as connectionState, A as ApiClient, s as startOfflineReconnection } from './api-
|
|
7
|
-
import { l as logger } from './logger-
|
|
8
|
-
import { s as spawnOriginTags, a as sessionWorktreeMetadata } from './createSessionMetadata-
|
|
9
|
-
import { p as packageJson } from './package-
|
|
10
|
-
import { P as PROMPT_QUEUE_CAPABILITY, a as PROJECT_SESSION_CAPABILITY, R as RUN_INTENT_CAPABILITY, C as CLAUDE_CONFIG_MODEL_CAPABILITY, A as AGENT_PROFILE_SESSION_CAPABILITY, r as restoredEffort, b as restoredModel } from './index-
|
|
11
|
-
import { D as DEFAULT_CLAUDE_PERMISSION_MODE, r as registerRunIntentRpc, a as recordRunIntents, w as withoutEffort } from './defaultPermissionMode-
|
|
6
|
+
import { c as connectionState, A as ApiClient, s as startOfflineReconnection } from './api-CiNezCys.mjs';
|
|
7
|
+
import { l as logger } from './logger-D1hb3CG8.mjs';
|
|
8
|
+
import { s as spawnOriginTags, a as sessionWorktreeMetadata } from './createSessionMetadata-CZuEDo2v.mjs';
|
|
9
|
+
import { p as packageJson } from './package-CpmoMPuj.mjs';
|
|
10
|
+
import { P as PROMPT_QUEUE_CAPABILITY, a as PROJECT_SESSION_CAPABILITY, R as RUN_INTENT_CAPABILITY, C as CLAUDE_CONFIG_MODEL_CAPABILITY, A as AGENT_PROFILE_SESSION_CAPABILITY, r as restoredEffort, b as restoredModel } from './index-C27JFCbe.mjs';
|
|
11
|
+
import { D as DEFAULT_CLAUDE_PERMISSION_MODE, r as registerRunIntentRpc, a as recordRunIntents, w as withoutEffort } from './defaultPermissionMode-CpEJ0wlb.mjs';
|
|
12
12
|
import { F as FORK_BACKFILL_CAPABILITY, p as publishForkBackfillWhenCommitted } from './forkBackfill-DYIjlN1Z.mjs';
|
|
13
|
-
import { c as configuration } from './configuration-
|
|
14
|
-
import { l as loadWrapperAccount } from './wrapperAccount-
|
|
15
|
-
import { S as SPAWN_ACCOUNT_ENV } from './store-
|
|
16
|
-
import { n as notifyDaemonSessionStarted, c as checkDaemonHibernation } from './controlClient-
|
|
17
|
-
import { g as getInitialMachineMetadata } from './machineMetadata-
|
|
13
|
+
import { c as configuration } from './configuration-C8r6uD9k.mjs';
|
|
14
|
+
import { l as loadWrapperAccount } from './wrapperAccount-RPtq8BwD.mjs';
|
|
15
|
+
import { S as SPAWN_ACCOUNT_ENV } from './store-BlPvTr_Q.mjs';
|
|
16
|
+
import { n as notifyDaemonSessionStarted, c as checkDaemonHibernation } from './controlClient-DYQ1g2ar.mjs';
|
|
17
|
+
import { g as getInitialMachineMetadata } from './machineMetadata-Dxng45Uh.mjs';
|
|
18
18
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
19
19
|
import { resolve, join } from 'node:path';
|
|
20
20
|
import { a as applySandboxPermissionPolicy, r as resolveInitialClaudePermissionMode, m as mapToClaudeMode, b as reconcilePublishedPermissionMode } from './permissionMode-CH4FoZfU.mjs';
|
|
21
21
|
import { d as decodeBase64, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
22
22
|
import { readFile } from 'node:fs/promises';
|
|
23
|
-
import { C as CLAUDE_ATTACHMENT_KINDS, s as stripAttachmentManifest } from './attachmentContent-
|
|
23
|
+
import { C as CLAUDE_ATTACHMENT_KINDS, s as stripAttachmentManifest } from './attachmentContent-CiY3MvdO.mjs';
|
|
24
24
|
import { T as TranscriptPathHints } from './transcriptCursor-B7T_gkQ0.mjs';
|
|
25
25
|
import { p as planClaudeStartup } from './startupPlan-DFMyNgAs.mjs';
|
|
26
26
|
import { t as takeReconnectEnv } from './reconnectEnv-DeSvHl3q.mjs';
|
|
27
27
|
import './cliUpdate-Y34VGe9Y.mjs';
|
|
28
28
|
import 'node:fs';
|
|
29
|
-
import './
|
|
29
|
+
import './processTermination-ChJG5SLW.mjs';
|
|
30
30
|
import 'node:child_process';
|
|
31
|
+
import './processTreeSnapshot-fuwxC0fr.mjs';
|
|
31
32
|
import 'zod';
|
|
32
33
|
import 'axios';
|
|
33
|
-
import './
|
|
34
|
+
import './pushNotifications-4sNESDMv.mjs';
|
|
35
|
+
import './contentLogMetadata-BlWI0egu.mjs';
|
|
36
|
+
import './lidState-BflRFw38.mjs';
|
|
34
37
|
import 'os';
|
|
35
38
|
import 'child_process';
|
|
36
39
|
import 'node:events';
|
|
37
40
|
import 'socket.io-client';
|
|
38
|
-
import './pushNotifications-DjEl8G0a.mjs';
|
|
39
|
-
import './contentLogMetadata-BlWI0egu.mjs';
|
|
40
41
|
import './limits-DIo7rEBR.mjs';
|
|
41
|
-
import './time-
|
|
42
|
-
import './registerCommonHandlers-
|
|
42
|
+
import './time-CgAwVt5R.mjs';
|
|
43
|
+
import './registerCommonHandlers-PTJ8TBj9.mjs';
|
|
43
44
|
import 'util';
|
|
44
45
|
import 'fs/promises';
|
|
45
46
|
import 'crypto';
|
|
46
47
|
import 'path';
|
|
47
48
|
import 'cross-spawn';
|
|
48
49
|
import '@paralleldrive/cuid2';
|
|
49
|
-
import './sync-
|
|
50
|
+
import './sync-DtzoF9sw.mjs';
|
|
50
51
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
51
52
|
import 'chalk';
|
|
52
53
|
import 'node:util';
|
|
53
|
-
import './claudeAccountEnv-
|
|
54
|
+
import './claudeAccountEnv-CPO6CGNd.mjs';
|
|
54
55
|
import './detectCLI-CSGMlV51.mjs';
|
|
55
56
|
import 'fs';
|
|
56
|
-
import './localHappyAgentAuth-
|
|
57
|
+
import './localHappyAgentAuth-BAK_nqMG.mjs';
|
|
57
58
|
import 'tweetnacl';
|
|
58
59
|
import './fsMkdir-DumgLTzR.mjs';
|
|
59
60
|
import 'url';
|
|
@@ -64,7 +65,7 @@ const CLAUDE_EFFORTS = ["low", "medium", "high", "xhigh", "max"];
|
|
|
64
65
|
function restoredClaudeEffort(effort) {
|
|
65
66
|
return CLAUDE_EFFORTS.includes(effort ?? "") ? effort : void 0;
|
|
66
67
|
}
|
|
67
|
-
const importRunClaudeDeps = () => import('./runClaudeDeps-
|
|
68
|
+
const importRunClaudeDeps = () => import('./runClaudeDeps-BmdwskeI.mjs');
|
|
68
69
|
async function runClaude(credentials, options = {}) {
|
|
69
70
|
logger.debug(`[CLAUDE] ===== CLAUDE MODE STARTING =====`);
|
|
70
71
|
logger.debug(`[CLAUDE] This is the Claude agent, NOT Gemini`);
|
|
@@ -80,7 +81,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
80
81
|
const isAssistantVariant = process.env.HAPPY_SESSION_VARIANT === "assistant";
|
|
81
82
|
if (isAssistantVariant) {
|
|
82
83
|
try {
|
|
83
|
-
const { bootstrapAssistantHome } = await import('./bootstrap-
|
|
84
|
+
const { bootstrapAssistantHome } = await import('./bootstrap-C2XSEyOe.mjs');
|
|
84
85
|
await bootstrapAssistantHome();
|
|
85
86
|
} catch (error) {
|
|
86
87
|
logger.debug("[START] Assistant home bootstrap failed:", error);
|
|
@@ -206,7 +207,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
206
207
|
}
|
|
207
208
|
if (!response) {
|
|
208
209
|
let offlineSessionId = null;
|
|
209
|
-
const { claudeLocal } = await import('./claudeLocal-
|
|
210
|
+
const { claudeLocal } = await import('./claudeLocal-CRG-Q7kS.mjs');
|
|
210
211
|
const { createSessionScanner: createSessionScanner2 } = await loadDeps();
|
|
211
212
|
const reconnection = startOfflineReconnection({
|
|
212
213
|
serverUrl: configuration.serverUrl,
|
|
@@ -328,6 +329,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
328
329
|
settleSessionOnExit,
|
|
329
330
|
registerSideQuestionHandler,
|
|
330
331
|
writeSideQuestionSettingsFile,
|
|
332
|
+
describePendingApprovals,
|
|
331
333
|
claudeCheckSession,
|
|
332
334
|
createSessionScanner,
|
|
333
335
|
getProjectPath,
|
|
@@ -582,7 +584,8 @@ async function runClaude(credentials, options = {}) {
|
|
|
582
584
|
settingsPath: writeSideQuestionSettingsFile(configuration.happyHomeDir, account.settings),
|
|
583
585
|
// B-482: in remote mode the launcher parks the live Query's /btw entry
|
|
584
586
|
// on the session while the Query is alive; local mode never sets it.
|
|
585
|
-
getLiveQuery: () => currentSession?.getSideQuestionLive() ?? null
|
|
587
|
+
getLiveQuery: () => currentSession?.getSideQuestionLive() ?? null,
|
|
588
|
+
getMainStatus: () => describePendingApprovals(session.getAgentState()?.requests)
|
|
586
589
|
});
|
|
587
590
|
const resetCurrentModeDefaults = () => {
|
|
588
591
|
currentFallbackModel = void 0;
|
|
@@ -838,7 +841,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
838
841
|
const exitGate = new SessionExitGate();
|
|
839
842
|
let hibernationProbe = null;
|
|
840
843
|
const cleanup = async (opts = { archive: true }) => {
|
|
841
|
-
const intent = opts.hibernation ? "hibernate" : exitGate.claim(exitIntentFromArchiveFlag(opts.archive));
|
|
844
|
+
const intent = opts.hibernation ? "hibernate" : exitGate.claim(opts.superseded ? "superseded" : exitIntentFromArchiveFlag(opts.archive));
|
|
842
845
|
if (intent === null) {
|
|
843
846
|
logger.debug(`[START] Termination (archive=${opts.archive ?? true}) ignored: cleanup already running as ${exitGate.current}`);
|
|
844
847
|
return;
|
|
@@ -862,7 +865,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
862
865
|
deactivateSession: (id) => api.deactivateSession(id),
|
|
863
866
|
log: (message, ...args) => logger.debug(message, ...args)
|
|
864
867
|
});
|
|
865
|
-
await session.flush();
|
|
868
|
+
if (intent !== "superseded") await session.flush();
|
|
866
869
|
await session.close();
|
|
867
870
|
}
|
|
868
871
|
happyServer.stop();
|
|
@@ -902,6 +905,9 @@ async function runClaude(credentials, options = {}) {
|
|
|
902
905
|
void cleanup({ archive: true });
|
|
903
906
|
});
|
|
904
907
|
registerKillSessionHandler(session.rpcHandlerManager, () => cleanup({ archive: true }), session);
|
|
908
|
+
session.on("superseded", () => {
|
|
909
|
+
void cleanup({ superseded: true });
|
|
910
|
+
});
|
|
905
911
|
let keepAwakeLatch = false;
|
|
906
912
|
const hibernationSnapshot = () => {
|
|
907
913
|
const agentState = session.getAgentState();
|
|
@@ -940,7 +946,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
940
946
|
// commit window runs now instead of being lost.
|
|
941
947
|
releaseExit: () => {
|
|
942
948
|
const deferred = exitGate.release("hibernate");
|
|
943
|
-
if (deferred) void cleanup({ archive: deferred === "archive" });
|
|
949
|
+
if (deferred) void cleanup(deferred === "superseded" ? { superseded: true } : { archive: deferred === "archive" });
|
|
944
950
|
},
|
|
945
951
|
recheck: () => evaluateWrapperIdle(hibernationSnapshot(), idleMs, Date.now()),
|
|
946
952
|
idleMs,
|