very-happy-cli 0.2.195 → 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-BTIF87yb.mjs → AcpBackend-RqGkFeeY.mjs} +3 -3
- package/dist/{AcpBackend-CXSV6FF5.cjs → AcpBackend-tL_g_UJ5.cjs} +3 -3
- package/dist/{AcpSessionManager-CEpU_GVk.mjs → AcpSessionManager-C-R6yHXc.mjs} +2 -2
- package/dist/{AcpSessionManager-BbWODxSp.cjs → AcpSessionManager-CFB24qBh.cjs} +1 -1
- package/dist/{BasePermissionHandler-C6iF28Ct.cjs → BasePermissionHandler-C0JS37Jt.cjs} +1 -1
- package/dist/{BasePermissionHandler-B5ka7Aaf.mjs → BasePermissionHandler-CgHLVNKT.mjs} +1 -1
- package/dist/{account-Bvcdk9CH.cjs → account-DOil1Hn8.cjs} +5 -5
- package/dist/{account-WSJcdMGl.mjs → account-EzL-zwwE.mjs} +11 -11
- package/dist/{accountService-BtEgv0fC.mjs → accountService-DQ21IlBs.mjs} +4 -4
- package/dist/{acpSessionResume-B2hd1Wub.cjs → acpSessionResume-B01oHWDS.cjs} +1 -1
- package/dist/{acpSessionResume-BYMm4w8Q.mjs → acpSessionResume-DEOIZUuj.mjs} +1 -1
- package/dist/{agentHome-CVM15_3U.cjs → agentHome-BulDO_1K.cjs} +4 -4
- package/dist/{agentHome-Jl8yWAjF.mjs → agentHome-DucTue1n.mjs} +4 -4
- package/dist/{api-DOzNOoVJ.mjs → api-CiNezCys.mjs} +46 -13
- package/dist/{api-TpjZJXV-.cjs → api-fuwEEEkT.cjs} +45 -12
- package/dist/{apiMachine-COkvJAmd.cjs → apiMachine-CxmiSa2-.cjs} +13 -13
- package/dist/{apiMachine-M-Fs9g5Y.mjs → apiMachine-DCmKjms1.mjs} +18 -18
- package/dist/{attachmentContent-BiBOjTXX.cjs → attachmentContent-Cehh7ClR.cjs} +2 -2
- package/dist/{attachmentContent-D6PjMVDq.mjs → attachmentContent-CiY3MvdO.mjs} +2 -2
- package/dist/{auth-DfcdjMUp.cjs → auth-DHlbjtf7.cjs} +5 -5
- package/dist/{auth-BfHLe1gU.mjs → auth-DHqHrs5d.mjs} +8 -8
- package/dist/{auth-Bfe3Ue_B.mjs → auth-DVsH_a8J.mjs} +5 -5
- package/dist/{auth-BOceB8cL.cjs → auth-tlMcvk2Y.cjs} +8 -8
- package/dist/{auto-CDeivd5V.mjs → auto-Cnn8luKk.mjs} +17 -17
- package/dist/{auto-CnTitokD.cjs → auto-DNAa8xDZ.cjs} +14 -14
- package/dist/{bootstrap-BxcKrgR9.mjs → bootstrap-C2XSEyOe.mjs} +2 -2
- package/dist/{bootstrap-DpyP22Wx.cjs → bootstrap-PeTZ2sAn.cjs} +2 -2
- package/dist/{browser-ac0aPrVE.cjs → browser-Bm24RiFU.cjs} +1 -1
- package/dist/{browser-Bb0Gqffc.mjs → browser-CWWyaf8_.mjs} +1 -1
- package/dist/{claudeAccountEnv-NyoxjLuJ.mjs → claudeAccountEnv-CPO6CGNd.mjs} +1 -1
- package/dist/{claudeLocal-RGWhplSr.cjs → claudeLocal-BDWy2pFt.cjs} +4 -4
- package/dist/{claudeLocal-otwxWF6e.mjs → claudeLocal-CRG-Q7kS.mjs} +5 -5
- package/dist/{claudeLocalLauncher-CTibA4cU.mjs → claudeLocalLauncher-B5cOrszW.mjs} +10 -10
- package/dist/{claudeLocalLauncher-yG-MBhY7.cjs → claudeLocalLauncher-DmSLoHlw.cjs} +9 -9
- package/dist/{claudeSessionFork-HFFwivGY.mjs → claudeSessionFork-BqV6E0ep.mjs} +1 -1
- package/dist/{claudeSessionFork-DH_Su4uO.cjs → claudeSessionFork-OffWLYgd.cjs} +1 -1
- package/dist/{client-BhAjEv8Z.mjs → client-B3lOol4f.mjs} +4 -4
- package/dist/{client-BlV73Gbw.cjs → client-B9fcSMXP.cjs} +2 -2
- package/dist/{client-CydHzidF.mjs → client-CfTeXnYS.mjs} +2 -2
- package/dist/{client-DpTk1S7C.mjs → client-Cg_cuQb1.mjs} +2 -2
- package/dist/{client-DcXLNaF2.cjs → client-Ckic3nxZ.cjs} +2 -2
- package/dist/{client-DxjYsJ8d.cjs → client-YFvImdwH.cjs} +3 -3
- package/dist/codex/happyMcpStdioBridge.cjs +15 -15
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAccount-CKXpXq0B.mjs → codexAccount-iZwmpYti.mjs} +1 -1
- package/dist/{codexAppServerClient-C1xBSuVk.cjs → codexAppServerClient-C-UwVMUN.cjs} +3 -3
- package/dist/{codexAppServerClient-mln0W8vT.mjs → codexAppServerClient-aV5m-FpZ.mjs} +3 -3
- package/dist/{codexCommand-Plm-_aRy.cjs → codexCommand-5nWT7F8A.cjs} +48 -43
- package/dist/{codexCommand-CmWhYduF.mjs → codexCommand-CI2NTyIF.mjs} +54 -49
- package/dist/{codexTermination-QltAvFpq.mjs → codexTermination-CLjDP6Ja.mjs} +6 -2
- package/dist/{codexTermination-C9c80lIF.cjs → codexTermination-D18IHgLP.cjs} +6 -2
- package/dist/{config-BH75enfT.cjs → config-B7YtrHi0.cjs} +3 -3
- package/dist/{config-DK27kWTT.mjs → config-BfwjfFSC.mjs} +3 -3
- package/dist/{configuration-CwfgJZKs.mjs → configuration-C8r6uD9k.mjs} +1 -1
- package/dist/{configuration-CKaq0tNe.cjs → configuration-CWRKSOyj.cjs} +1 -1
- package/dist/{connect-_QkCFMxO.cjs → connect-DALX1hGB.cjs} +14 -14
- package/dist/{connect-h3_VMJst.mjs → connect-K5HBcM56.mjs} +15 -15
- package/dist/{context-DbENnaVc.cjs → context-BqhlGL3u.cjs} +1 -1
- package/dist/{context-DcOpvIiR.mjs → context-CtMY-M8T.mjs} +1 -1
- package/dist/{controlClient-Dv6IvvUq.mjs → controlClient-DYQ1g2ar.mjs} +19 -7
- package/dist/{controlClient-D_HIbnnS.cjs → controlClient-DyNgxNl7.cjs} +19 -7
- package/dist/{createSessionMetadata-CusO22Am.cjs → createSessionMetadata-C4WN8pVK.cjs} +2 -2
- package/dist/{createSessionMetadata-DimBsfVG.mjs → createSessionMetadata-CZuEDo2v.mjs} +2 -2
- package/dist/{daemonAccounts-QT-RDDEp.mjs → daemonAccounts-CnAEaJE_.mjs} +3 -3
- package/dist/{defaultPermissionMode-B-Vt8ECY.mjs → defaultPermissionMode-CpEJ0wlb.mjs} +1 -1
- package/dist/{deterministicJson-CMApF2Rl.mjs → deterministicJson-Dg_0QJAR.mjs} +13 -13
- package/dist/{deterministicJson-BYqRKTmL.cjs → deterministicJson-r4zhG546.cjs} +12 -12
- package/dist/{doctor-Czbl7gk2.cjs → doctor-0gLGzwz6.cjs} +8 -8
- package/dist/{doctor-u46qYYKX.cjs → doctor-CJpFhHoK.cjs} +8 -9
- package/dist/{doctor-BkyoZ0Uw.mjs → doctor-COeFzPpz.mjs} +8 -8
- package/dist/{doctor-BPkYWSuq.mjs → doctor-GN5mPOn5.mjs} +8 -9
- package/dist/{downloadTarget-C5BzZ_bz.cjs → downloadTarget-8ovVpDv1.cjs} +6 -6
- package/dist/{downloadTarget-CM0BZNSY.mjs → downloadTarget-CbuUiS5p.mjs} +6 -6
- package/dist/{ensureDaemonRunning-D508DmcP.cjs → ensureDaemonRunning-Bq-n6xTt.cjs} +5 -5
- package/dist/{ensureDaemonRunning-P399ot_C.mjs → ensureDaemonRunning-CwlujXmV.mjs} +5 -5
- package/dist/{handleResumeCommand-BK_2ShBf.mjs → handleResumeCommand-B5GgmPm_.mjs} +5 -5
- package/dist/{handleResumeCommand-CCgK7-0v.cjs → handleResumeCommand-muSrYA5y.cjs} +5 -5
- package/dist/{index-_DRVKtSd.mjs → index-BRH0XYSO.mjs} +53 -46
- package/dist/{index-BalJgriQ.cjs → index-BUOd8bNd.cjs} +5 -5
- package/dist/{index-BENDk1i9.mjs → index-BZCIkrFj.mjs} +4 -4
- package/dist/{index-BlWyEpMw.mjs → index-C27JFCbe.mjs} +1 -1
- package/dist/{index-CGKn-GTK.cjs → index-CQZg9jKx.cjs} +4 -4
- package/dist/{index-Bz9Bj7l1.cjs → index-CnY74Dae.cjs} +3 -3
- package/dist/{index-QSAckvNv.mjs → index-D0V-seiN.mjs} +3 -3
- package/dist/{index-DR3NJLVk.mjs → index-DKCmDned.mjs} +5 -5
- package/dist/{index-CSO1-mZ9.cjs → index-Dt_YE-zw.cjs} +47 -40
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-CqXaN7_C.cjs → install-BlW2kkPl.cjs} +3 -3
- package/dist/{install-DMTvEPrB.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-Cb3TbhPb.mjs → lidState-BflRFw38.mjs} +1 -1
- package/dist/{lidState-Btv4N_B8.cjs → lidState-VZ1j_QYw.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CAAIUJyY.mjs → localHappyAgentAuth-BAK_nqMG.mjs} +1 -1
- package/dist/{localHappyAgentAuth-B3Q5DNLR.cjs → localHappyAgentAuth-oxhpgJOb.cjs} +1 -1
- package/dist/{logger-UgDpJA2u.mjs → logger-D1hb3CG8.mjs} +2 -2
- package/dist/{logger-BZ5TcbEh.cjs → logger-HQ9yDb8R.cjs} +2 -2
- package/dist/{machineMetadata-BYHC-3Vx.mjs → machineMetadata-Dxng45Uh.mjs} +3 -3
- package/dist/{machineMetadata-DLb-m4fL.cjs → machineMetadata-Dzwn-HjN.cjs} +3 -3
- package/dist/{main-CwW6lHIw.mjs → main-BP0iY2vQ.mjs} +48 -48
- package/dist/{main-LavPb80B.cjs → main-D7qre-pa.cjs} +48 -48
- package/dist/{mcp-BjYz5Ymf.mjs → mcp-BmDGyj7k.mjs} +18 -18
- package/dist/{mcp-BQbWhqUh.cjs → mcp-D3yzLkh8.cjs} +14 -14
- package/dist/{mirrorProtocol-BH5eT99U.mjs → mirrorProtocol-C9Zc6GFT.mjs} +3 -3
- package/dist/{mirrorProtocol-Ci9YmCEV.cjs → mirrorProtocol-Cv2otcvM.cjs} +2 -2
- package/dist/{package-C4OfB2YF.mjs → package-CpmoMPuj.mjs} +7 -7
- package/dist/{package-B61-BBlh.cjs → package-Dn7zZkY1.cjs} +7 -7
- package/dist/{panels-cBJT5Up1.mjs → panels-CQobcX5w.mjs} +5 -5
- package/dist/{panels-ByprLJag.cjs → panels-D59PlNoD.cjs} +5 -5
- package/dist/{peerTools-DS6GqJcn.mjs → peerTools-CNzlwuL7.mjs} +5 -5
- package/dist/{peerTools-BXSjS8lB.cjs → peerTools-D417O7d-.cjs} +5 -5
- package/dist/{persistence-DBmeYlwT.cjs → persistence-BiyvEYaR.cjs} +15 -5
- package/dist/{persistence-CQhmtobL.mjs → persistence-CagHeZ-f.mjs} +15 -5
- package/dist/{piRunnerArgs-Dy-3vN_Q.mjs → piRunnerArgs-DKU5LoWu.mjs} +1 -1
- package/dist/{piRunnerArgs-CmEE058l.cjs → piRunnerArgs-kTaNYd23.cjs} +1 -1
- package/dist/{piRuntime-BCXjC4__.cjs → piRuntime-BI4KNAUY.cjs} +1 -1
- package/dist/{piRuntime-Rq9v4M4e.mjs → piRuntime-BV4fQyZD.mjs} +1 -1
- package/dist/{piTerminal-ehNQOvLL.cjs → piTerminal-WPUtDJAV.cjs} +16 -16
- package/dist/{piTerminal-CRhDUqX7.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-67GmbVfE.mjs → pushNotifications-4sNESDMv.mjs} +11 -4
- package/dist/{pushNotifications-qCS7_tDF.cjs → pushNotifications-DRDWUnP-.cjs} +11 -2
- package/dist/{query-CIDBGnv6.mjs → query-6OWHW1U1.mjs} +2 -2
- package/dist/{query-B4QIiI7e.cjs → query-qIbeJ2-r.cjs} +2 -2
- package/dist/{rateLimitWindows-8-khalzj.mjs → rateLimitWindows-4uhuwKnU.mjs} +1 -1
- package/dist/{rateLimitWindows-BIfLMxOk.cjs → rateLimitWindows-U4fc1-_6.cjs} +1 -1
- package/dist/{registerCommonHandlers-G2p0MJu4.cjs → registerCommonHandlers-CEV9KUsq.cjs} +2 -2
- package/dist/{registerCommonHandlers-C7hlztAO.mjs → registerCommonHandlers-PTJ8TBj9.mjs} +2 -2
- package/dist/{registerKillSessionHandler-BWvl6wro.cjs → registerKillSessionHandler-C6F1sjoo.cjs} +5 -5
- package/dist/{registerKillSessionHandler-rwXdO0t0.mjs → registerKillSessionHandler-D4SSwQj8.mjs} +6 -6
- package/dist/{registerSideQuestionHandler-Xg46gSVh.mjs → registerSideQuestionHandler-4mRv0Msq.mjs} +4 -4
- package/dist/{registerSideQuestionHandler-CsyPnjce.cjs → registerSideQuestionHandler-ByUnjI3V.cjs} +4 -4
- package/dist/{remoteSessionClient-D6_7vNKc.cjs → remoteSessionClient-CUk6haD7.cjs} +5 -5
- package/dist/{remoteSessionClient-DQSnC7ox.mjs → remoteSessionClient-CfYDFlKm.mjs} +5 -5
- package/dist/{reportProgressTool-HjzV5y_2.mjs → reportProgressTool-BCn5oG52.mjs} +3 -3
- package/dist/{reportProgressTool-CIHGKraF.cjs → reportProgressTool-C1JOvo6T.cjs} +2 -2
- package/dist/{run-tQ4bFkHu.cjs → run-D2SlfZPP.cjs} +46 -66
- package/dist/{run-M06F1958.mjs → run-DC8BIklA.mjs} +52 -72
- package/dist/{runClaude-Ct0_mShC.cjs → runClaude-BE-5GgIZ.cjs} +29 -25
- package/dist/{runClaude-Dm9kQZ-w.mjs → runClaude-D6fqN9PD.mjs} +34 -30
- package/dist/{runClaudeDeps-DNOzXjc3.mjs → runClaudeDeps-BmdwskeI.mjs} +51 -50
- package/dist/{runClaudeDeps-BT2kWCrQ.cjs → runClaudeDeps-W0nv2vHL.cjs} +39 -38
- package/dist/{runGemini-BvN-yeQR.mjs → runGemini-C3Ipeu1i.mjs} +37 -34
- package/dist/{runGemini-cua7_iuR.cjs → runGemini-Da_d-2kV.cjs} +36 -33
- package/dist/{runOpenClaw-C9E2XzmX.mjs → runOpenClaw-BoI6nbKB.mjs} +30 -20
- package/dist/{runOpenClaw-NpYFRhKm.cjs → runOpenClaw-af5qDNU0.cjs} +30 -20
- package/dist/{sandbox-C-BXZbt9.mjs → sandbox-CjoyUSGa.mjs} +4 -4
- package/dist/{sandbox-hImfD0-T.cjs → sandbox-UGF68GrE.cjs} +4 -4
- package/dist/selfCheck-CNrOZgBv.mjs +88 -0
- package/dist/{selfCheck-B3ulijQM.cjs → selfCheck-Cr8eAw4m.cjs} +39 -39
- package/dist/{send-BCVQkTOl.cjs → send-CVSht9s_.cjs} +8 -8
- package/dist/{send-Dv2L8IRW.mjs → send-gqX0-i4p.mjs} +8 -8
- package/dist/{server-DYxyCyYF.cjs → server-BPgVv-BG.cjs} +6 -6
- package/dist/{server-BBBfuSB-.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-BexUoWhZ.mjs → sessionLock-BfvR9BGB.mjs} +94 -78
- package/dist/{sessionLock-B8fsnpZD.cjs → sessionLock-D2usWXAg.cjs} +92 -78
- package/dist/{sessionOps-74pSDXoS.cjs → sessionOps-JRyQhF5s.cjs} +4 -4
- package/dist/{sessionOps-BkEgNA2O.mjs → sessionOps-OmRqUFm4.mjs} +4 -4
- package/dist/{sessionProvider-CWgHsZUA.cjs → sessionProvider-BpscgwwC.cjs} +5 -5
- package/dist/{sessionProvider-DXkhlJE6.mjs → sessionProvider-DTEdidBc.mjs} +10 -10
- package/dist/{sessionScanner-Dhh1wREW.mjs → sessionScanner-BlAOpqMh.mjs} +3 -3
- package/dist/{sessionScanner-D56EkcIj.cjs → sessionScanner-C_qVc1ok.cjs} +3 -3
- package/dist/{sessions-C1zRTjUe.cjs → sessions-7iyjxti9.cjs} +10 -10
- package/dist/{sessions-dJR6k3JY.mjs → sessions-CnjHHllR.mjs} +10 -10
- package/dist/{setupOfflineReconnection-CMUdHtFT.cjs → setupOfflineReconnection-BCbJa5mT.cjs} +2 -2
- package/dist/{setupOfflineReconnection-Dp1rC-eP.mjs → setupOfflineReconnection-IKEI7fLJ.mjs} +2 -2
- package/dist/{spawn-D3-Weoiq.mjs → spawn-CbfcClhj.mjs} +14 -14
- package/dist/{spawn-kMKI09Kh.cjs → spawn-CxEl0Dyz.cjs} +12 -12
- package/dist/{spawnAgents-hKFGQaSJ.mjs → spawnAgents-N3jxdNJC.mjs} +1 -1
- package/dist/{spawnHappyCLI-CgjpjSTT.mjs → spawnHappyCLI-C8gMHJu5.mjs} +1 -1
- package/dist/{spawnHappyCLI-Du1IgJGA.cjs → spawnHappyCLI-CHSlXWUe.cjs} +1 -1
- package/dist/{startFileWatcher-DapvIGxp.mjs → startFileWatcher-6hslFu_B.mjs} +1 -1
- package/dist/{startFileWatcher-DGOnF95-.cjs → startFileWatcher-BGpYPz6L.cjs} +1 -1
- package/dist/{startupSessionCreate-CSi60oo_.mjs → startupSessionCreate-B7jrCZUD.mjs} +3 -3
- package/dist/{startupSessionCreate-rkIMVGJW.cjs → startupSessionCreate-CltDtCEF.cjs} +3 -3
- package/dist/{store-Tf-r1ouq.mjs → store-BlPvTr_Q.mjs} +1 -1
- package/dist/{streamRelay-C9lzMo0V.mjs → streamRelay-DFZyAPD_.mjs} +1 -1
- package/dist/{sync-Cj8Vhltg.cjs → sync-DfI78smj.cjs} +1 -1
- package/dist/{sync-GJkf-HGu.mjs → sync-DtzoF9sw.mjs} +1 -1
- package/dist/{systemPrompt-BEagRbDZ.mjs → systemPrompt-B1Xd99hK.mjs} +2 -2
- package/dist/{systemPrompt-Cne9i1SE.cjs → systemPrompt-HZNR9rjt.cjs} +1 -1
- package/dist/{teams-C_18IMNM.mjs → teams-Vk75H6BZ.mjs} +7 -7
- package/dist/{teams-ClTg6hQ1.cjs → teams-fFX-L_ms.cjs} +6 -6
- package/dist/{template-Ci-cyigF.mjs → template-CJ8uLlD8.mjs} +1 -1
- package/dist/{time-BPPTQ_sE.cjs → time-BqPZjTpo.cjs} +1 -1
- package/dist/{time-CIkdLyza.mjs → time-CgAwVt5R.mjs} +1 -1
- package/dist/{titleGenerator-DnwTdTB_.mjs → titleGenerator-D2UB7Uyr.mjs} +2 -2
- package/dist/{titleGenerator-B_OgL9Pd.cjs → titleGenerator-ijVOuv3J.cjs} +2 -2
- package/dist/{todo-DmHolFRy.mjs → todo-CCuqtD0O.mjs} +6 -6
- package/dist/{todo-DPQHtZVM.cjs → todo-vCzaIwNp.cjs} +5 -5
- package/dist/{tools-B3KGMSU5.cjs → tools-CL8h3fqh.cjs} +1 -1
- package/dist/{tools-DqjPHq9I.mjs → tools-DthGQoo3.mjs} +1 -1
- package/dist/{uninstall-CrK5dgx8.cjs → uninstall-CIvThBvI.cjs} +3 -3
- package/dist/{uninstall-Cm97eybp.mjs → uninstall-DCJh4UoO.mjs} +3 -3
- package/dist/{wrapperAccount-Cq7eZRMx.mjs → wrapperAccount-RPtq8BwD.mjs} +2 -2
- package/package.json +7 -7
- package/dist/selfCheck-D-e9kVhc.mjs +0 -88
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as hibernationReplaySeq } from './persistence-
|
|
1
|
+
import { o as hibernationReplaySeq } from './persistence-CagHeZ-f.mjs';
|
|
2
2
|
import { c as compareExactVersions } from './cliUpdate-Y34VGe9Y.mjs';
|
|
3
|
-
import { existsSync, readFileSync, unlinkSync, mkdirSync, renameSync } from 'node:fs';
|
|
3
|
+
import { existsSync, readFileSync, unlinkSync, mkdirSync, openSync, writeSync, closeSync, renameSync } from 'node:fs';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
|
-
import { c as configuration, w as writePrivateFileSync } from './configuration-
|
|
6
|
-
import { l as logger } from './logger-
|
|
7
|
-
import {
|
|
5
|
+
import { c as configuration, w as writePrivateFileSync } from './configuration-C8r6uD9k.mjs';
|
|
6
|
+
import { l as logger } from './logger-D1hb3CG8.mjs';
|
|
7
|
+
import { t as terminateProcessTree, i as isProcessAlive } from './processTermination-ChJG5SLW.mjs';
|
|
8
8
|
|
|
9
9
|
const PROCESS_IDENTITY_FIELDS = [
|
|
10
10
|
"hostPid",
|
|
@@ -204,69 +204,15 @@ function takeAutoRestartedEvent(env, agentName) {
|
|
|
204
204
|
return { type: "message", kind: AUTO_UPDATED_EVENT_KIND, message: autoUpdatedEventText(decoded.kind, decoded.target, agentName) };
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const runtime = {
|
|
208
|
-
signal: (pid, signal) => process.kill(pid, signal),
|
|
209
|
-
isAlive: (pid) => {
|
|
210
|
-
try {
|
|
211
|
-
process.kill(pid, 0);
|
|
212
|
-
return true;
|
|
213
|
-
} catch {
|
|
214
|
-
return false;
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
schedule: (callback, delayMs) => {
|
|
218
|
-
setTimeout(callback, delayMs);
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
function terminateProcess(pid, onSettled, impl = runtime, graceMs = 2e3) {
|
|
222
|
-
if (!impl.isAlive(pid)) {
|
|
223
|
-
onSettled(true);
|
|
224
|
-
return true;
|
|
225
|
-
}
|
|
226
|
-
try {
|
|
227
|
-
impl.signal(pid, "SIGTERM");
|
|
228
|
-
} catch {
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
impl.schedule(() => {
|
|
232
|
-
if (impl.isAlive(pid)) {
|
|
233
|
-
try {
|
|
234
|
-
impl.signal(pid, "SIGKILL");
|
|
235
|
-
} catch {
|
|
236
|
-
onSettled(!impl.isAlive(pid));
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
impl.schedule(() => onSettled(!impl.isAlive(pid)), 100);
|
|
241
|
-
}, graceMs);
|
|
242
|
-
return true;
|
|
243
|
-
}
|
|
244
|
-
function terminateProcessTree(pid, onSettled, deps = {}) {
|
|
245
|
-
const snapshot = (deps.snapshot ?? ((root) => snapshotTree(root)))(pid);
|
|
246
|
-
const reap = deps.reap ?? ((entries) => killSurvivors(entries));
|
|
247
|
-
return (deps.terminate ?? terminateProcess)(pid, (stopped) => {
|
|
248
|
-
try {
|
|
249
|
-
reap(snapshot);
|
|
250
|
-
} catch {
|
|
251
|
-
}
|
|
252
|
-
onSettled(stopped);
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
|
|
256
207
|
const SESSION_LOCK_DIR = "session-locks";
|
|
208
|
+
const SESSION_CLAIM_WAIT_MS = 15e3;
|
|
209
|
+
const SESSION_CLAIM_POLL_MS = 100;
|
|
257
210
|
const defaultRuntime = () => ({
|
|
258
211
|
dir: join(configuration.happyHomeDir, SESSION_LOCK_DIR),
|
|
259
212
|
selfPid: process.pid,
|
|
260
213
|
now: () => Date.now(),
|
|
261
214
|
signal: (pid, signal) => process.kill(pid, signal),
|
|
262
|
-
isAlive: (pid) =>
|
|
263
|
-
try {
|
|
264
|
-
process.kill(pid, 0);
|
|
265
|
-
return true;
|
|
266
|
-
} catch {
|
|
267
|
-
return false;
|
|
268
|
-
}
|
|
269
|
-
},
|
|
215
|
+
isAlive: (pid) => isProcessAlive(pid),
|
|
270
216
|
schedule: (callback, delayMs) => {
|
|
271
217
|
setTimeout(callback, delayMs);
|
|
272
218
|
}
|
|
@@ -302,6 +248,52 @@ function writeSessionLock(happySessionId, record, dir) {
|
|
|
302
248
|
writePrivateFileSync(tmp, JSON.stringify(record));
|
|
303
249
|
renameSync(tmp, path);
|
|
304
250
|
}
|
|
251
|
+
function claimPath(happySessionId, dir) {
|
|
252
|
+
return `${sessionLockPath(happySessionId, dir)}.claim`;
|
|
253
|
+
}
|
|
254
|
+
function claimantPid(path) {
|
|
255
|
+
try {
|
|
256
|
+
const pid = Number.parseInt(readFileSync(path, "utf-8").trim(), 10);
|
|
257
|
+
return Number.isInteger(pid) && pid > 0 ? pid : null;
|
|
258
|
+
} catch {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function tryTakeClaim(happySessionId, runtime) {
|
|
263
|
+
mkdirSync(runtime.dir, { recursive: true, mode: 448 });
|
|
264
|
+
const path = claimPath(happySessionId, runtime.dir);
|
|
265
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
266
|
+
try {
|
|
267
|
+
const fd = openSync(path, "wx", 384);
|
|
268
|
+
try {
|
|
269
|
+
writeSync(fd, String(runtime.selfPid));
|
|
270
|
+
} finally {
|
|
271
|
+
closeSync(fd);
|
|
272
|
+
}
|
|
273
|
+
return { taken: true };
|
|
274
|
+
} catch (error) {
|
|
275
|
+
if (error?.code !== "EEXIST") {
|
|
276
|
+
return { taken: true };
|
|
277
|
+
}
|
|
278
|
+
const pid2 = claimantPid(path);
|
|
279
|
+
if (pid2 !== null && pid2 !== runtime.selfPid && runtime.isAlive(pid2)) return { taken: false, claimant: pid2 };
|
|
280
|
+
try {
|
|
281
|
+
unlinkSync(path);
|
|
282
|
+
} catch {
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
const pid = claimantPid(path);
|
|
287
|
+
return pid !== null && pid !== runtime.selfPid ? { taken: false, claimant: pid } : { taken: true };
|
|
288
|
+
}
|
|
289
|
+
function releaseClaim(happySessionId, runtime) {
|
|
290
|
+
const path = claimPath(happySessionId, runtime.dir);
|
|
291
|
+
if (claimantPid(path) !== runtime.selfPid) return;
|
|
292
|
+
try {
|
|
293
|
+
unlinkSync(path);
|
|
294
|
+
} catch {
|
|
295
|
+
}
|
|
296
|
+
}
|
|
305
297
|
function acquireSessionLock(happySessionId, options, runtime = defaultRuntime()) {
|
|
306
298
|
const record = () => ({
|
|
307
299
|
pid: runtime.selfPid,
|
|
@@ -309,24 +301,48 @@ function acquireSessionLock(happySessionId, options, runtime = defaultRuntime())
|
|
|
309
301
|
version: options.version,
|
|
310
302
|
...options.flavor ? { flavor: options.flavor } : {}
|
|
311
303
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
304
|
+
return new Promise((settle) => {
|
|
305
|
+
const deadline = runtime.now() + (options.claimWaitMs ?? SESSION_CLAIM_WAIT_MS);
|
|
306
|
+
const attempt = () => {
|
|
307
|
+
const claim = tryTakeClaim(happySessionId, runtime);
|
|
308
|
+
if (!claim.taken) {
|
|
309
|
+
if (runtime.now() >= deadline) {
|
|
310
|
+
settle({ ok: false, holder: { pid: claim.claimant, startedAt: 0, version: "" } });
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
runtime.schedule(attempt, SESSION_CLAIM_POLL_MS);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const resolve = (result) => {
|
|
317
|
+
releaseClaim(happySessionId, runtime);
|
|
318
|
+
settle(result);
|
|
319
|
+
};
|
|
320
|
+
const holder = liveSessionLockHolder(happySessionId, runtime);
|
|
321
|
+
if (!holder) {
|
|
322
|
+
writeSessionLock(happySessionId, record(), runtime.dir);
|
|
323
|
+
resolve({ ok: true, replaced: null });
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
if (!options.takeover) {
|
|
323
327
|
resolve({ ok: false, holder });
|
|
324
328
|
return;
|
|
325
329
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
+
const requested = terminateProcessTree(holder.pid, (stopped) => {
|
|
331
|
+
if (!stopped) {
|
|
332
|
+
resolve({ ok: false, holder });
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
writeSessionLock(happySessionId, record(), runtime.dir);
|
|
336
|
+
resolve({ ok: true, replaced: holder });
|
|
337
|
+
}, {
|
|
338
|
+
...runtime.tree,
|
|
339
|
+
runtime,
|
|
340
|
+
graceMs: options.graceMs ?? 2e3,
|
|
341
|
+
onLeftovers: (pids) => logger.debug(`[SESSION LOCK] ${happySessionId}: takeover of ${holder.pid} left ${pids.join(", ")} running`)
|
|
342
|
+
});
|
|
343
|
+
if (!requested) resolve({ ok: false, holder });
|
|
344
|
+
};
|
|
345
|
+
attempt();
|
|
330
346
|
});
|
|
331
347
|
}
|
|
332
348
|
function releaseSessionLock(happySessionId, runtime = defaultRuntime()) {
|
|
@@ -356,4 +372,4 @@ async function claimSessionOrExit(happySessionId, options) {
|
|
|
356
372
|
process.on("exit", () => releaseSessionLock(happySessionId));
|
|
357
373
|
}
|
|
358
374
|
|
|
359
|
-
export { AUTO_RESTART_CAPABILITY as A, applyServerSnapshot as a, applyReconnectReplay as b, claimSessionOrExit as c, wrapperReportsIdle as d, exitCursorStamp as e, decideAutoRestart as f, autoRestartNextCheck as g, wrapperStaleness as h, AUTO_RESTART_MAX_ATTEMPTS as i, AUTO_RESTART_MIN_GAP_MS as j, readSessionLock as k,
|
|
375
|
+
export { AUTO_RESTART_CAPABILITY as A, applyServerSnapshot as a, applyReconnectReplay as b, claimSessionOrExit as c, wrapperReportsIdle as d, exitCursorStamp as e, decideAutoRestart as f, autoRestartNextCheck as g, wrapperStaleness as h, AUTO_RESTART_MAX_ATTEMPTS as i, AUTO_RESTART_MIN_GAP_MS as j, readSessionLock as k, AUTO_RESTARTED_ENV as l, mergeReconnectMetadata as m, encodeAutoRestarted as n, pendingUpgradeVersion as o, processIdentityFields as p, resolveQuietMs as q, recordAttempt as r, statusFromVerdict as s, takeAutoRestartedEvent as t, AUTO_RESTART_RECHECK_CAP_MS as u, withoutServerSnapshot as w };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var persistence = require('./persistence-
|
|
3
|
+
var persistence = require('./persistence-BiyvEYaR.cjs');
|
|
4
4
|
var cliUpdate = require('./cliUpdate-DsKXPFYp.cjs');
|
|
5
5
|
var node_fs = require('node:fs');
|
|
6
6
|
var path = require('node:path');
|
|
7
|
-
var configuration = require('./configuration-
|
|
8
|
-
var logger = require('./logger-
|
|
9
|
-
var
|
|
7
|
+
var configuration = require('./configuration-CWRKSOyj.cjs');
|
|
8
|
+
var logger = require('./logger-HQ9yDb8R.cjs');
|
|
9
|
+
var processTermination = require('./processTermination-f17wxlMb.cjs');
|
|
10
10
|
|
|
11
11
|
const PROCESS_IDENTITY_FIELDS = [
|
|
12
12
|
"hostPid",
|
|
@@ -206,69 +206,15 @@ function takeAutoRestartedEvent(env, agentName) {
|
|
|
206
206
|
return { type: "message", kind: AUTO_UPDATED_EVENT_KIND, message: autoUpdatedEventText(decoded.kind, decoded.target, agentName) };
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
const runtime = {
|
|
210
|
-
signal: (pid, signal) => process.kill(pid, signal),
|
|
211
|
-
isAlive: (pid) => {
|
|
212
|
-
try {
|
|
213
|
-
process.kill(pid, 0);
|
|
214
|
-
return true;
|
|
215
|
-
} catch {
|
|
216
|
-
return false;
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
schedule: (callback, delayMs) => {
|
|
220
|
-
setTimeout(callback, delayMs);
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
function terminateProcess(pid, onSettled, impl = runtime, graceMs = 2e3) {
|
|
224
|
-
if (!impl.isAlive(pid)) {
|
|
225
|
-
onSettled(true);
|
|
226
|
-
return true;
|
|
227
|
-
}
|
|
228
|
-
try {
|
|
229
|
-
impl.signal(pid, "SIGTERM");
|
|
230
|
-
} catch {
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
impl.schedule(() => {
|
|
234
|
-
if (impl.isAlive(pid)) {
|
|
235
|
-
try {
|
|
236
|
-
impl.signal(pid, "SIGKILL");
|
|
237
|
-
} catch {
|
|
238
|
-
onSettled(!impl.isAlive(pid));
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
impl.schedule(() => onSettled(!impl.isAlive(pid)), 100);
|
|
243
|
-
}, graceMs);
|
|
244
|
-
return true;
|
|
245
|
-
}
|
|
246
|
-
function terminateProcessTree(pid, onSettled, deps = {}) {
|
|
247
|
-
const snapshot = (deps.snapshot ?? ((root) => processTreeSnapshot.snapshotTree(root)))(pid);
|
|
248
|
-
const reap = deps.reap ?? ((entries) => processTreeSnapshot.killSurvivors(entries));
|
|
249
|
-
return (deps.terminate ?? terminateProcess)(pid, (stopped) => {
|
|
250
|
-
try {
|
|
251
|
-
reap(snapshot);
|
|
252
|
-
} catch {
|
|
253
|
-
}
|
|
254
|
-
onSettled(stopped);
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
|
|
258
209
|
const SESSION_LOCK_DIR = "session-locks";
|
|
210
|
+
const SESSION_CLAIM_WAIT_MS = 15e3;
|
|
211
|
+
const SESSION_CLAIM_POLL_MS = 100;
|
|
259
212
|
const defaultRuntime = () => ({
|
|
260
213
|
dir: path.join(configuration.configuration.happyHomeDir, SESSION_LOCK_DIR),
|
|
261
214
|
selfPid: process.pid,
|
|
262
215
|
now: () => Date.now(),
|
|
263
216
|
signal: (pid, signal) => process.kill(pid, signal),
|
|
264
|
-
isAlive: (pid) =>
|
|
265
|
-
try {
|
|
266
|
-
process.kill(pid, 0);
|
|
267
|
-
return true;
|
|
268
|
-
} catch {
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
},
|
|
217
|
+
isAlive: (pid) => processTermination.isProcessAlive(pid),
|
|
272
218
|
schedule: (callback, delayMs) => {
|
|
273
219
|
setTimeout(callback, delayMs);
|
|
274
220
|
}
|
|
@@ -304,6 +250,52 @@ function writeSessionLock(happySessionId, record, dir) {
|
|
|
304
250
|
configuration.writePrivateFileSync(tmp, JSON.stringify(record));
|
|
305
251
|
node_fs.renameSync(tmp, path);
|
|
306
252
|
}
|
|
253
|
+
function claimPath(happySessionId, dir) {
|
|
254
|
+
return `${sessionLockPath(happySessionId, dir)}.claim`;
|
|
255
|
+
}
|
|
256
|
+
function claimantPid(path) {
|
|
257
|
+
try {
|
|
258
|
+
const pid = Number.parseInt(node_fs.readFileSync(path, "utf-8").trim(), 10);
|
|
259
|
+
return Number.isInteger(pid) && pid > 0 ? pid : null;
|
|
260
|
+
} catch {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function tryTakeClaim(happySessionId, runtime) {
|
|
265
|
+
node_fs.mkdirSync(runtime.dir, { recursive: true, mode: 448 });
|
|
266
|
+
const path = claimPath(happySessionId, runtime.dir);
|
|
267
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
268
|
+
try {
|
|
269
|
+
const fd = node_fs.openSync(path, "wx", 384);
|
|
270
|
+
try {
|
|
271
|
+
node_fs.writeSync(fd, String(runtime.selfPid));
|
|
272
|
+
} finally {
|
|
273
|
+
node_fs.closeSync(fd);
|
|
274
|
+
}
|
|
275
|
+
return { taken: true };
|
|
276
|
+
} catch (error) {
|
|
277
|
+
if (error?.code !== "EEXIST") {
|
|
278
|
+
return { taken: true };
|
|
279
|
+
}
|
|
280
|
+
const pid2 = claimantPid(path);
|
|
281
|
+
if (pid2 !== null && pid2 !== runtime.selfPid && runtime.isAlive(pid2)) return { taken: false, claimant: pid2 };
|
|
282
|
+
try {
|
|
283
|
+
node_fs.unlinkSync(path);
|
|
284
|
+
} catch {
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
const pid = claimantPid(path);
|
|
289
|
+
return pid !== null && pid !== runtime.selfPid ? { taken: false, claimant: pid } : { taken: true };
|
|
290
|
+
}
|
|
291
|
+
function releaseClaim(happySessionId, runtime) {
|
|
292
|
+
const path = claimPath(happySessionId, runtime.dir);
|
|
293
|
+
if (claimantPid(path) !== runtime.selfPid) return;
|
|
294
|
+
try {
|
|
295
|
+
node_fs.unlinkSync(path);
|
|
296
|
+
} catch {
|
|
297
|
+
}
|
|
298
|
+
}
|
|
307
299
|
function acquireSessionLock(happySessionId, options, runtime = defaultRuntime()) {
|
|
308
300
|
const record = () => ({
|
|
309
301
|
pid: runtime.selfPid,
|
|
@@ -311,24 +303,48 @@ function acquireSessionLock(happySessionId, options, runtime = defaultRuntime())
|
|
|
311
303
|
version: options.version,
|
|
312
304
|
...options.flavor ? { flavor: options.flavor } : {}
|
|
313
305
|
});
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
306
|
+
return new Promise((settle) => {
|
|
307
|
+
const deadline = runtime.now() + (options.claimWaitMs ?? SESSION_CLAIM_WAIT_MS);
|
|
308
|
+
const attempt = () => {
|
|
309
|
+
const claim = tryTakeClaim(happySessionId, runtime);
|
|
310
|
+
if (!claim.taken) {
|
|
311
|
+
if (runtime.now() >= deadline) {
|
|
312
|
+
settle({ ok: false, holder: { pid: claim.claimant, startedAt: 0, version: "" } });
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
runtime.schedule(attempt, SESSION_CLAIM_POLL_MS);
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
const resolve = (result) => {
|
|
319
|
+
releaseClaim(happySessionId, runtime);
|
|
320
|
+
settle(result);
|
|
321
|
+
};
|
|
322
|
+
const holder = liveSessionLockHolder(happySessionId, runtime);
|
|
323
|
+
if (!holder) {
|
|
324
|
+
writeSessionLock(happySessionId, record(), runtime.dir);
|
|
325
|
+
resolve({ ok: true, replaced: null });
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
if (!options.takeover) {
|
|
325
329
|
resolve({ ok: false, holder });
|
|
326
330
|
return;
|
|
327
331
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
+
const requested = processTermination.terminateProcessTree(holder.pid, (stopped) => {
|
|
333
|
+
if (!stopped) {
|
|
334
|
+
resolve({ ok: false, holder });
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
writeSessionLock(happySessionId, record(), runtime.dir);
|
|
338
|
+
resolve({ ok: true, replaced: holder });
|
|
339
|
+
}, {
|
|
340
|
+
...runtime.tree,
|
|
341
|
+
runtime,
|
|
342
|
+
graceMs: options.graceMs ?? 2e3,
|
|
343
|
+
onLeftovers: (pids) => logger.logger.debug(`[SESSION LOCK] ${happySessionId}: takeover of ${holder.pid} left ${pids.join(", ")} running`)
|
|
344
|
+
});
|
|
345
|
+
if (!requested) resolve({ ok: false, holder });
|
|
346
|
+
};
|
|
347
|
+
attempt();
|
|
332
348
|
});
|
|
333
349
|
}
|
|
334
350
|
function releaseSessionLock(happySessionId, runtime = defaultRuntime()) {
|
|
@@ -378,8 +394,6 @@ exports.recordAttempt = recordAttempt;
|
|
|
378
394
|
exports.resolveQuietMs = resolveQuietMs;
|
|
379
395
|
exports.statusFromVerdict = statusFromVerdict;
|
|
380
396
|
exports.takeAutoRestartedEvent = takeAutoRestartedEvent;
|
|
381
|
-
exports.terminateProcess = terminateProcess;
|
|
382
|
-
exports.terminateProcessTree = terminateProcessTree;
|
|
383
397
|
exports.withoutServerSnapshot = withoutServerSnapshot;
|
|
384
398
|
exports.wrapperReportsIdle = wrapperReportsIdle;
|
|
385
399
|
exports.wrapperStaleness = wrapperStaleness;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var axios = require('axios');
|
|
4
|
-
var configuration = require('./configuration-
|
|
4
|
+
var configuration = require('./configuration-CWRKSOyj.cjs');
|
|
5
5
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
6
|
-
var controlClient = require('./controlClient-
|
|
7
|
-
var persistence = require('./persistence-
|
|
6
|
+
var controlClient = require('./controlClient-DyNgxNl7.cjs');
|
|
7
|
+
var persistence = require('./persistence-BiyvEYaR.cjs');
|
|
8
8
|
var node_crypto = require('node:crypto');
|
|
9
|
-
var time = require('./time-
|
|
9
|
+
var time = require('./time-BqPZjTpo.cjs');
|
|
10
10
|
var specialCommands = require('./specialCommands-J3JFOq0J.cjs');
|
|
11
11
|
var socket_ioClient = require('socket.io-client');
|
|
12
12
|
var backgroundTaskActivity = require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { c as configuration } from './configuration-
|
|
2
|
+
import { c as configuration } from './configuration-C8r6uD9k.mjs';
|
|
3
3
|
import { e as encodeBase64, g as encrypt, d as decodeBase64, h as decrypt } from './authRelay-DhQhkBvX.mjs';
|
|
4
|
-
import { l as listDaemonSessions, f as stopDaemonSession } from './controlClient-
|
|
5
|
-
import { b as readCredentialsForConfiguredRelay, c as readPersistedSessions } from './persistence-
|
|
4
|
+
import { l as listDaemonSessions, f as stopDaemonSession } from './controlClient-DYQ1g2ar.mjs';
|
|
5
|
+
import { b as readCredentialsForConfiguredRelay, c as readPersistedSessions } from './persistence-CagHeZ-f.mjs';
|
|
6
6
|
import { randomUUID } from 'node:crypto';
|
|
7
|
-
import { d as delay } from './time-
|
|
7
|
+
import { d as delay } from './time-CgAwVt5R.mjs';
|
|
8
8
|
import { c as compactCommandText, p as parseClear } from './specialCommands-MXUN0wfI.mjs';
|
|
9
9
|
import { io } from 'socket.io-client';
|
|
10
10
|
import { b as backgroundTasksReport } from './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
|
-
var configuration = require('./configuration-
|
|
5
|
-
var controlClient = require('./controlClient-
|
|
4
|
+
var configuration = require('./configuration-CWRKSOyj.cjs');
|
|
5
|
+
var controlClient = require('./controlClient-DyNgxNl7.cjs');
|
|
6
6
|
var accountService = require('./accountService-DL6xhVUa.cjs');
|
|
7
7
|
var store = require('./store-aa3CVNwS.cjs');
|
|
8
8
|
require('node:fs');
|
|
9
9
|
require('node:os');
|
|
10
10
|
require('node:path');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-Dn7zZkY1.cjs');
|
|
12
12
|
require('node:fs/promises');
|
|
13
|
-
require('./logger-
|
|
13
|
+
require('./logger-HQ9yDb8R.cjs');
|
|
14
14
|
require('node:util');
|
|
15
|
-
require('./persistence-
|
|
15
|
+
require('./persistence-BiyvEYaR.cjs');
|
|
16
16
|
require('zod');
|
|
17
17
|
require('./authRelay-Dy1qU9td.cjs');
|
|
18
18
|
require('node:crypto');
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
import { c as configuration } from './configuration-
|
|
3
|
-
import { r as restartDaemonSession, l as listDaemonSessions } from './controlClient-
|
|
4
|
-
import { A as AccountService, l as localRestartFailure, b as bindResultMessages } from './accountService-
|
|
5
|
-
import { r as readSessionBindings, a as readAccounts } from './store-
|
|
2
|
+
import { c as configuration } from './configuration-C8r6uD9k.mjs';
|
|
3
|
+
import { r as restartDaemonSession, l as listDaemonSessions } from './controlClient-DYQ1g2ar.mjs';
|
|
4
|
+
import { A as AccountService, l as localRestartFailure, b as bindResultMessages } from './accountService-DQ21IlBs.mjs';
|
|
5
|
+
import { r as readSessionBindings, a as readAccounts } from './store-BlPvTr_Q.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:path';
|
|
9
|
-
import './package-
|
|
9
|
+
import './package-CpmoMPuj.mjs';
|
|
10
10
|
import 'node:fs/promises';
|
|
11
|
-
import './logger-
|
|
11
|
+
import './logger-D1hb3CG8.mjs';
|
|
12
12
|
import 'node:util';
|
|
13
|
-
import './persistence-
|
|
13
|
+
import './persistence-CagHeZ-f.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-C27JFCbe.mjs';
|
|
19
19
|
import '@paralleldrive/cuid2';
|
|
20
20
|
import 'node:child_process';
|
|
21
|
-
import './claudeAccountEnv-
|
|
22
|
-
import './codexAccount-
|
|
21
|
+
import './claudeAccountEnv-CPO6CGNd.mjs';
|
|
22
|
+
import './codexAccount-iZwmpYti.mjs';
|
|
23
23
|
import 'node:readline';
|
|
24
24
|
|
|
25
25
|
const SESSION_PROVIDER_HELP = `Usage:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { I as InvalidateSync } from './sync-
|
|
1
|
+
import { I as InvalidateSync } from './sync-DtzoF9sw.mjs';
|
|
2
2
|
import { R as RawJSONLinesSchema } from './types-CkqAACXx.mjs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { statSync } from 'node:fs';
|
|
5
5
|
import { r as readTranscriptIncrement, i as isValidTranscriptHint } from './transcriptCursor-B7T_gkQ0.mjs';
|
|
6
|
-
import { l as logger } from './logger-
|
|
7
|
-
import { s as startFileWatcher } from './startFileWatcher-
|
|
6
|
+
import { l as logger } from './logger-D1hb3CG8.mjs';
|
|
7
|
+
import { s as startFileWatcher } from './startFileWatcher-6hslFu_B.mjs';
|
|
8
8
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
9
9
|
|
|
10
10
|
class Future {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var sync = require('./sync-
|
|
3
|
+
var sync = require('./sync-DfI78smj.cjs');
|
|
4
4
|
var types = require('./types-CRS-srZK.cjs');
|
|
5
5
|
var path$1 = require('node:path');
|
|
6
6
|
var node_fs = require('node:fs');
|
|
7
7
|
var transcriptCursor = require('./transcriptCursor-DcXGLeSc.cjs');
|
|
8
|
-
var logger = require('./logger-
|
|
9
|
-
var startFileWatcher = require('./startFileWatcher-
|
|
8
|
+
var logger = require('./logger-HQ9yDb8R.cjs');
|
|
9
|
+
var startFileWatcher = require('./startFileWatcher-BGpYPz6L.cjs');
|
|
10
10
|
var path = require('./path-B7zW-WwE.cjs');
|
|
11
11
|
|
|
12
12
|
class Future {
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var exitAfterFlush = require('./exitAfterFlush-DIT_sIxR.cjs');
|
|
5
|
-
var sessionOps = require('./sessionOps-
|
|
5
|
+
var sessionOps = require('./sessionOps-JRyQhF5s.cjs');
|
|
6
6
|
var ids = require('./ids-B6ZC0HGt.cjs');
|
|
7
|
-
var peerTools = require('./peerTools-
|
|
8
|
-
var persistence = require('./persistence-
|
|
7
|
+
var peerTools = require('./peerTools-D417O7d-.cjs');
|
|
8
|
+
var persistence = require('./persistence-BiyvEYaR.cjs');
|
|
9
9
|
var path = require('node:path');
|
|
10
|
-
var remoteSessionClient = require('./remoteSessionClient-
|
|
10
|
+
var remoteSessionClient = require('./remoteSessionClient-CUk6haD7.cjs');
|
|
11
11
|
require('axios');
|
|
12
|
-
require('./configuration-
|
|
12
|
+
require('./configuration-CWRKSOyj.cjs');
|
|
13
13
|
require('node:fs');
|
|
14
14
|
require('node:os');
|
|
15
|
-
require('./package-
|
|
15
|
+
require('./package-Dn7zZkY1.cjs');
|
|
16
16
|
require('node:fs/promises');
|
|
17
17
|
require('./authRelay-Dy1qU9td.cjs');
|
|
18
18
|
require('node:crypto');
|
|
19
19
|
require('tweetnacl');
|
|
20
|
-
require('./controlClient-
|
|
21
|
-
require('./logger-
|
|
20
|
+
require('./controlClient-DyNgxNl7.cjs');
|
|
21
|
+
require('./logger-HQ9yDb8R.cjs');
|
|
22
22
|
require('node:util');
|
|
23
|
-
require('./time-
|
|
23
|
+
require('./time-BqPZjTpo.cjs');
|
|
24
24
|
require('./specialCommands-J3JFOq0J.cjs');
|
|
25
25
|
require('socket.io-client');
|
|
26
26
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
27
27
|
require('zod');
|
|
28
|
-
require('./client-
|
|
28
|
+
require('./client-Ckic3nxZ.cjs');
|
|
29
29
|
|
|
30
30
|
const MACHINE_ID_RE = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
31
31
|
const ACTIONS = ["list", "read", "stop", "archive", "approve", "deny", "peers", "message"];
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { e as exitAfterFlush } from './exitAfterFlush-AbKNZM0N.mjs';
|
|
3
|
-
import { D as DEFAULT_RECENT_LIMIT, M as MAX_READ_LIMIT, l as listAccountSessions, a as listSessions, w as waitForTurnEnd, T as TurnWaitTimeoutError, r as readSessionTranscript, b as stopSession, c as resolvePermissionRequest, d as archiveSession } from './sessionOps-
|
|
3
|
+
import { D as DEFAULT_RECENT_LIMIT, M as MAX_READ_LIMIT, l as listAccountSessions, a as listSessions, w as waitForTurnEnd, T as TurnWaitTimeoutError, r as readSessionTranscript, b as stopSession, c as resolvePermissionRequest, d as archiveSession } from './sessionOps-OmRqUFm4.mjs';
|
|
4
4
|
import { i as isValidSessionId } from './ids-DU6sLx4C.mjs';
|
|
5
|
-
import { P as PEER_SCOPES, c as cliPeerSelf, e as executeSessionPeerTool, l as listPeerSessions, s as sendPeerMessage } from './peerTools-
|
|
6
|
-
import { c as readPersistedSessions } from './persistence-
|
|
5
|
+
import { P as PEER_SCOPES, c as cliPeerSelf, e as executeSessionPeerTool, l as listPeerSessions, s as sendPeerMessage } from './peerTools-CNzlwuL7.mjs';
|
|
6
|
+
import { c as readPersistedSessions } from './persistence-CagHeZ-f.mjs';
|
|
7
7
|
import { resolve } from 'node:path';
|
|
8
|
-
import { f as fillForeignAccountRows, l as listRemoteSessions, a as listRemotePeers, w as waitForRemoteTurnEnd, r as readRemoteTranscript } from './remoteSessionClient-
|
|
8
|
+
import { f as fillForeignAccountRows, l as listRemoteSessions, a as listRemotePeers, w as waitForRemoteTurnEnd, r as readRemoteTranscript } from './remoteSessionClient-CfYDFlKm.mjs';
|
|
9
9
|
import 'axios';
|
|
10
|
-
import './configuration-
|
|
10
|
+
import './configuration-C8r6uD9k.mjs';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
import 'node:os';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-CpmoMPuj.mjs';
|
|
14
14
|
import 'node:fs/promises';
|
|
15
15
|
import './authRelay-DhQhkBvX.mjs';
|
|
16
16
|
import 'node:crypto';
|
|
17
17
|
import 'tweetnacl';
|
|
18
|
-
import './controlClient-
|
|
19
|
-
import './logger-
|
|
18
|
+
import './controlClient-DYQ1g2ar.mjs';
|
|
19
|
+
import './logger-D1hb3CG8.mjs';
|
|
20
20
|
import 'node:util';
|
|
21
|
-
import './time-
|
|
21
|
+
import './time-CgAwVt5R.mjs';
|
|
22
22
|
import './specialCommands-MXUN0wfI.mjs';
|
|
23
23
|
import 'socket.io-client';
|
|
24
24
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
25
25
|
import 'zod';
|
|
26
|
-
import './client-
|
|
26
|
+
import './client-CfTeXnYS.mjs';
|
|
27
27
|
|
|
28
28
|
const MACHINE_ID_RE = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
29
29
|
const ACTIONS = ["list", "read", "stop", "archive", "approve", "deny", "peers", "message"];
|
package/dist/{setupOfflineReconnection-CMUdHtFT.cjs → setupOfflineReconnection-BCbJa5mT.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var api = require('./api-
|
|
3
|
+
var configuration = require('./configuration-CWRKSOyj.cjs');
|
|
4
|
+
var api = require('./api-fuwEEEkT.cjs');
|
|
5
5
|
|
|
6
6
|
function createOfflineSessionStub(sessionTag) {
|
|
7
7
|
return {
|
package/dist/{setupOfflineReconnection-Dp1rC-eP.mjs → setupOfflineReconnection-IKEI7fLJ.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { s as startOfflineReconnection } from './api-
|
|
1
|
+
import { c as configuration } from './configuration-C8r6uD9k.mjs';
|
|
2
|
+
import { s as startOfflineReconnection } from './api-CiNezCys.mjs';
|
|
3
3
|
|
|
4
4
|
function createOfflineSessionStub(sessionTag) {
|
|
5
5
|
return {
|