very-happy-cli 0.2.188 → 0.2.190
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-2loP7MpF.mjs → AcpBackend-Dd1h-Rgt.mjs} +3 -3
- package/dist/{AcpBackend-B8AYkp5n.cjs → AcpBackend-dkRv9QHm.cjs} +3 -3
- package/dist/{AcpSessionManager-CLqo9R9Y.cjs → AcpSessionManager-AqWAqahm.cjs} +3 -3
- package/dist/{AcpSessionManager-C17doAoR.mjs → AcpSessionManager-QBZ-CIf7.mjs} +4 -4
- package/dist/{BasePermissionHandler-CrfyUmqO.mjs → BasePermissionHandler-CLp1ge-4.mjs} +1 -1
- package/dist/{BasePermissionHandler-C8UEcFz0.cjs → BasePermissionHandler-CpSugp7Z.cjs} +1 -1
- package/dist/{acpSessionResume-OuYlLGxL.cjs → acpSessionResume-CZao6QEd.cjs} +1 -1
- package/dist/{acpSessionResume-F705a1cF.mjs → acpSessionResume-CcpDuIO5.mjs} +1 -1
- package/dist/{agentHome-Dc7LYF3d.mjs → agentHome-BJGRA2Kx.mjs} +4 -4
- package/dist/{agentHome-DsKHJ_Sf.cjs → agentHome-fIUqT-pn.cjs} +4 -4
- package/dist/{api-BOqjYd5r.cjs → api-CXL6jp-p.cjs} +18 -9
- package/dist/{api-DNKa7kVy.mjs → api-Dw8gFsQi.mjs} +19 -10
- package/dist/{apiMachine-Di1G9ECW.mjs → apiMachine-BBNEtjf7.mjs} +56 -15
- package/dist/{apiMachine--rcPpMmt.cjs → apiMachine-C6UqHoPF.cjs} +55 -14
- package/dist/{attachmentContent-C9S4ekAz.mjs → attachmentContent-CC4yIrSm.mjs} +2 -2
- package/dist/{attachmentContent-BFRMLong.cjs → attachmentContent-NmVfKp-B.cjs} +2 -2
- package/dist/{auth-CXmI92aj.cjs → auth-Bb_SL2os.cjs} +5 -5
- package/dist/{auth-Bzwo_vOM.mjs → auth-Bh6SUoGi.mjs} +8 -8
- package/dist/{auth-BNhhk2Fr.mjs → auth-Bj0psrD2.mjs} +5 -5
- package/dist/{auth-CQtfznF0.cjs → auth-DKa4MsAi.cjs} +8 -8
- package/dist/{auto-DXLdaX5O.cjs → auto-C9Qohh0P.cjs} +17 -16
- package/dist/{auto-DHYOLnXB.mjs → auto-DK7pbCnV.mjs} +19 -18
- package/dist/{bootstrap-Di38SnpN.mjs → bootstrap-Ct9Nb4sv.mjs} +2 -2
- package/dist/{bootstrap-eJ1l7VYl.cjs → bootstrap-DBJB0y-H.cjs} +2 -2
- package/dist/{browser-6Cg7G6bb.mjs → browser-BGxDRhHy.mjs} +1 -1
- package/dist/{browser-D3uBFRQu.cjs → browser-CLJWcodR.cjs} +1 -1
- package/dist/{claudeLocal-BBaE4QF_.cjs → claudeLocal-B6YDYlnY.cjs} +4 -4
- package/dist/{claudeLocal-CqaEs-81.mjs → claudeLocal-Ux31hZyC.mjs} +5 -5
- package/dist/{claudeLocalLauncher-BDUPxtsI.mjs → claudeLocalLauncher-D06QijMw.mjs} +10 -10
- package/dist/{claudeLocalLauncher-wPxKtH_P.cjs → claudeLocalLauncher-DFvmF8rC.cjs} +9 -9
- package/dist/{claudeSessionFork-DzWFzj9m.mjs → claudeSessionFork-D2GI7P59.mjs} +1 -1
- package/dist/{claudeSessionFork-CmY25Fl3.cjs → claudeSessionFork-DTLZ2rek.cjs} +1 -1
- package/dist/{client-DmY03OZZ.cjs → client-Bffkrs5p.cjs} +2 -2
- package/dist/{client-C2HcMqRF.cjs → client-CARZ_lNS.cjs} +3 -3
- package/dist/{client-agH03Irm.cjs → client-CMKGrnmT.cjs} +2 -2
- package/dist/{client-DWws_aQK.mjs → client-CnGNYidN.mjs} +2 -2
- package/dist/{client-qJ0y8fus.mjs → client-CtL0Vtww.mjs} +4 -4
- package/dist/{client-DcDE6Ifk.mjs → client-DZkBUoh9.mjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +16 -15
- package/dist/codex/happyMcpStdioBridge.mjs +17 -16
- package/dist/{codexAppServerClient-DgE99i7X.mjs → codexAppServerClient-CLc5nhLT.mjs} +37 -6
- package/dist/{codexAppServerClient-DwzC8LR0.cjs → codexAppServerClient-CpT9F6EM.cjs} +37 -6
- package/dist/{codexCommand-1vFEA1KT.cjs → codexCommand-39kH99SJ.cjs} +148 -61
- package/dist/{codexCommand-DUSVzbKh.mjs → codexCommand-Dliq3EBv.mjs} +143 -56
- package/dist/{codexTermination-DuDPyBRR.cjs → codexTermination-ByW7tRjr.cjs} +1 -1
- package/dist/{codexTermination-Bybovr2z.mjs → codexTermination-ORIw0gpU.mjs} +1 -1
- package/dist/{codexThreadFork-DNekT4nQ.cjs → codexThreadFork-5kwoKjMu.cjs} +11 -17
- package/dist/{codexThreadFork-R76RU5H0.mjs → codexThreadFork-DobPd19R.mjs} +11 -17
- package/dist/{config-C4xOL5bH.cjs → config-CeIzCsfj.cjs} +3 -3
- package/dist/{config-BrzZ0O-6.mjs → config-CxSsGO1Z.mjs} +3 -3
- package/dist/{configuration-BZHpFD7K.mjs → configuration-Dechcvd-.mjs} +1 -1
- package/dist/{configuration-DyPW9mVa.cjs → configuration-Dt5lKW3P.cjs} +1 -1
- package/dist/{connect-DurKwMEo.cjs → connect-NPDzIVC6.cjs} +12 -12
- package/dist/{connect-Cw_INlj8.mjs → connect-UwQHvCpR.mjs} +13 -13
- package/dist/{context-2xDvjkQp.cjs → context-BdZssgF0.cjs} +1 -1
- package/dist/{context-t7YV0aZc.mjs → context-C9JbJoNe.mjs} +1 -1
- package/dist/{controlClient-DvFaPsg6.cjs → controlClient-BRk65BRO.cjs} +3 -3
- package/dist/{controlClient-Bw56NIrj.mjs → controlClient-D7NGfmtq.mjs} +3 -3
- package/dist/{createSessionMetadata-Dpg6bV6f.cjs → createSessionMetadata-B_HZCDj_.cjs} +2 -2
- package/dist/{createSessionMetadata-Dn5BkLfU.mjs → createSessionMetadata-DyhFKAby.mjs} +2 -2
- package/dist/defaultPermissionMode-BnxJPVHT.mjs +4 -0
- package/dist/defaultPermissionMode-CxmTXUQR.cjs +7 -0
- package/dist/{deterministicJson-D0BrV1FD.cjs → deterministicJson-BEygolBQ.cjs} +12 -12
- package/dist/{deterministicJson-CsRckxVq.mjs → deterministicJson-DNmMVhFu.mjs} +13 -13
- package/dist/{doctor-CYe4d9kU.cjs → doctor-B9lW1WlG.cjs} +7 -7
- package/dist/{doctor-B4HQiW6j.mjs → doctor-BdBi7TFZ.mjs} +7 -7
- package/dist/{downloadTarget-tYMV_VHo.mjs → downloadTarget-CGojGjaN.mjs} +6 -6
- package/dist/{downloadTarget-CuhBVvuC.cjs → downloadTarget-DS0zT2AU.cjs} +6 -6
- package/dist/{ensureDaemonRunning-DVtIG9z7.mjs → ensureDaemonRunning-BOdbryDM.mjs} +5 -5
- package/dist/{ensureDaemonRunning-Ce3BlWiR.cjs → ensureDaemonRunning-Bibp6vhe.cjs} +5 -5
- package/dist/exitAfterFlush-AbKNZM0N.mjs +23 -0
- package/dist/exitAfterFlush-DIT_sIxR.cjs +25 -0
- package/dist/{handleResumeCommand-BU1uMNyv.mjs → handleResumeCommand-CgLzBYne.mjs} +5 -5
- package/dist/{handleResumeCommand-CLxsmAW0.cjs → handleResumeCommand-DXOuWr4p.cjs} +5 -5
- package/dist/{agentAttachments-Dbw8iMCZ.cjs → heldInput-BOtqFO2r.cjs} +27 -0
- package/dist/heldInput-C69lA2dH.mjs +44 -0
- package/dist/{index-KwuXqLwe.cjs → index-Bs5FD8JF.cjs} +4 -4
- package/dist/{index-ChX0eVXw.mjs → index-CBHfkQNY.mjs} +142 -60
- package/dist/{index-DoXbGEAi.cjs → index-CwRW11hT.cjs} +3 -3
- package/dist/{index-CVHRt3SS.mjs → index-DUByZsKe.mjs} +4 -4
- package/dist/{index-wWJJAQRk.cjs → index-DXSIi6j_.cjs} +4 -4
- package/dist/{index-DDz0Ftoy.mjs → index-Db0HIC-k.mjs} +4 -4
- package/dist/{index-WKyN-bNy.mjs → index-DmqsRnV7.mjs} +1 -1
- package/dist/{index-DG1kGjkF.cjs → index-f8oDidjV.cjs} +142 -60
- package/dist/{index-B1OxWiNG.mjs → index-rNTX33in.mjs} +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-cAYvHxXR.cjs → install-CXIL_FYx.cjs} +3 -3
- package/dist/{install-CMa_FOWu.mjs → install-DfPrEWGG.mjs} +3 -3
- package/dist/lib.cjs +11 -11
- package/dist/lib.d.cts +61 -1
- package/dist/lib.d.mts +61 -1
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-D-lsD1FS.mjs → lidState-D0DF20oG.mjs} +1 -1
- package/dist/{lidState-d1vgQ3n7.cjs → lidState-q_XFYg33.cjs} +1 -1
- package/dist/{localHappyAgentAuth-wvDp-nGj.mjs → localHappyAgentAuth-BBhM4Qk1.mjs} +1 -1
- package/dist/{localHappyAgentAuth-DucSnCg3.cjs → localHappyAgentAuth-CKNW-MXw.cjs} +1 -1
- package/dist/{logger-C3vZG6Q0.cjs → logger-BBRTTVsQ.cjs} +2 -2
- package/dist/{logger-RpzJ4d8V.mjs → logger-CL7pin9b.mjs} +2 -2
- package/dist/{machineMetadata-CiQ2_1Mq.mjs → machineMetadata-DP06qdBk.mjs} +3 -3
- package/dist/{machineMetadata-CAvFq1Jg.cjs → machineMetadata-DnFNlrVK.cjs} +3 -3
- package/dist/{main-ChpYcFZi.cjs → main-DLOXykOR.cjs} +49 -48
- package/dist/{main-IPhaImjm.mjs → main-DO7nRvhf.mjs} +49 -48
- package/dist/{mcp-CWnMvju6.mjs → mcp-C-4sPTae.mjs} +16 -15
- package/dist/{mcp-2xF232hL.cjs → mcp-Du0MgR7e.cjs} +15 -14
- package/dist/{mirrorProtocol-CVzPObON.cjs → mirrorProtocol-GuWMxLkh.cjs} +2 -2
- package/dist/{mirrorProtocol-Dr7fNq8V.mjs → mirrorProtocol-dkq2ZENA.mjs} +3 -3
- package/dist/{package-CwB8rFJt.mjs → package-C6uiXULx.mjs} +7 -7
- package/dist/{package-Gnf_935w.cjs → package-DrY090nZ.cjs} +7 -7
- package/dist/{panels-DTlTsndU.cjs → panels-4DRBKHZP.cjs} +5 -5
- package/dist/{panels-L1mSkC-y.mjs → panels-DXYdJA6n.mjs} +5 -5
- package/dist/{peerTools-C1E5cQ86.cjs → peerTools-5ZM4spcZ.cjs} +5 -5
- package/dist/{peerTools-2_8Bw9PU.mjs → peerTools-dY1aJez4.mjs} +5 -5
- package/dist/{persistence-CqtjFiD1.cjs → persistence-Bl5S3TLB.cjs} +6 -2
- package/dist/{persistence-Bn4qEbDg.mjs → persistence-Dogj7JIp.mjs} +6 -3
- package/dist/{piRunnerArgs-BI8yQRBZ.cjs → piRunnerArgs-C3jZ1M6b.cjs} +1 -1
- package/dist/{piRunnerArgs-DWBb63W9.mjs → piRunnerArgs-D8nN_Iit.mjs} +1 -1
- package/dist/{piRuntime--mQ43MSM.cjs → piRuntime-Bd9-eq6M.cjs} +1 -1
- package/dist/{piRuntime-Do8oqbm3.mjs → piRuntime-BoeMsAXK.mjs} +1 -1
- package/dist/{piTerminal-BzcvLFsP.cjs → piTerminal-C3j1ca3x.cjs} +17 -16
- package/dist/{piTerminal-GC1KHTYQ.mjs → piTerminal-GEPkIGD4.mjs} +18 -17
- package/dist/{pushNotifications-Bb-QSqXw.cjs → pushNotifications-CfspRcl-.cjs} +20 -2
- package/dist/{pushNotifications-BThg4nVd.mjs → pushNotifications-dUceOIni.mjs} +21 -3
- package/dist/{query-Bz3pocKH.cjs → query-DjsVgG3E.cjs} +1 -1
- package/dist/{query-CkgIJ_Dy.mjs → query-iYH-tm7L.mjs} +1 -1
- package/dist/{rateLimitReporter-BkHyvLru.cjs → rateLimitReporter-DUu2KydZ.cjs} +3 -3
- package/dist/{rateLimitReporter-Iw4k3Bbr.mjs → rateLimitReporter-jeVi-fym.mjs} +3 -3
- package/dist/{rateLimitWindows-Bm_dcQGW.cjs → rateLimitWindows-Bx3ROBP5.cjs} +1 -1
- package/dist/{rateLimitWindows-CQ4tIQnx.mjs → rateLimitWindows-CEn0DXaX.mjs} +1 -1
- package/dist/{registerCommonHandlers-CIs6H2DV.cjs → registerCommonHandlers-Beun-cQv.cjs} +2 -2
- package/dist/{registerCommonHandlers-CaWl9ll1.mjs → registerCommonHandlers-DWZ7mfdt.mjs} +2 -2
- package/dist/{specialCommands-BsvSoDhC.cjs → registerKillSessionHandler-CA1FFr_F.cjs} +15 -62
- package/dist/{specialCommands-DHU7TNeK.mjs → registerKillSessionHandler-CzgklwLG.mjs} +17 -60
- package/dist/{remoteSessionClient-uPj7omsw.mjs → remoteSessionClient-BiC2KDew.mjs} +5 -5
- package/dist/{remoteSessionClient-DgUMfPW4.cjs → remoteSessionClient-DGFI__5Z.cjs} +5 -5
- package/dist/{reportProgressTool-DUEq3xAL.mjs → reportProgressTool-CgPy6n_7.mjs} +3 -3
- package/dist/{reportProgressTool-CaJ8EwLq.cjs → reportProgressTool-CvPGov1F.cjs} +2 -2
- package/dist/{run-DTUJBD6p.mjs → run-B_gFgJVB.mjs} +393 -42
- package/dist/{run-DyyGMqND.cjs → run-rPqQwDi_.cjs} +391 -40
- package/dist/{runClaude-DTNvIz2J.mjs → runClaude-CykqeXK7.mjs} +26 -23
- package/dist/{runClaude-8JDaPoGQ.cjs → runClaude-DM8gm8iu.cjs} +27 -24
- package/dist/{runClaudeDeps-CgGkgg7e.mjs → runClaudeDeps-D2phXGut.mjs} +106 -46
- package/dist/{runClaudeDeps-BeLo5zss.cjs → runClaudeDeps-DGAomimZ.cjs} +101 -40
- package/dist/{runGemini-BSOdU563.cjs → runGemini-CXTeSOZp.cjs} +50 -49
- package/dist/{runGemini-eU8UOzfc.mjs → runGemini-CtWCVkj5.mjs} +49 -48
- package/dist/{runOpenClaw-D8RZiA1e.mjs → runOpenClaw-BBdjlViJ.mjs} +25 -24
- package/dist/{runOpenClaw-CYyFoGRZ.cjs → runOpenClaw-CH_9_RyZ.cjs} +26 -25
- package/dist/{sandbox-C8zfNX-4.cjs → sandbox-Bb5IMun3.cjs} +4 -4
- package/dist/{sandbox-DlPahdhl.mjs → sandbox-DGmXZ6Zz.mjs} +4 -4
- package/dist/selfCheck-BfK945YQ.mjs +86 -0
- package/dist/{selfCheck-D28nvuPJ.cjs → selfCheck-CccwNTTK.cjs} +37 -37
- package/dist/{send-DBpv-1eh.mjs → send-B6rHg8GT.mjs} +9 -8
- package/dist/{send-C58kX4qz.cjs → send-BpiXPkDo.cjs} +9 -8
- package/dist/{server-J5K6pOox.mjs → server-BkdAyHhC.mjs} +4 -4
- package/dist/{server-I_CETZzn.cjs → server-DHUzjApC.cjs} +6 -6
- package/dist/{sessionLock-DjE7O0LS.cjs → sessionLock-BFBReiKq.cjs} +134 -3
- package/dist/{sessionLock-C7Wg1RVd.mjs → sessionLock-Ca_bIo50.mjs} +121 -4
- package/dist/{sessionOps-CYjMT7Ad.mjs → sessionOps-CA2kpm66.mjs} +36 -5
- package/dist/{sessionOps-DGMpl9NB.cjs → sessionOps-DeWVqpe4.cjs} +36 -4
- package/dist/{sessionProvider-DVtxrOuM.cjs → sessionProvider-VFbtUmMR.cjs} +5 -5
- package/dist/{sessionProvider-TLiFn9kD.mjs → sessionProvider-g18IiK74.mjs} +5 -5
- package/dist/{sessionScanner-BZ1ZSn6I.cjs → sessionScanner-CGzsN8V6.cjs} +3 -3
- package/dist/{sessionScanner-CknV1IlN.mjs → sessionScanner-DDDud5re.mjs} +3 -3
- package/dist/{sessions-DU4bxkap.mjs → sessions-B4d50sCI.mjs} +36 -26
- package/dist/{sessions-CTkBKs5U.cjs → sessions-CKJPWFgu.cjs} +37 -25
- package/dist/{setupOfflineReconnection-DaOXnGuH.mjs → setupOfflineReconnection-CyPNgyCe.mjs} +2 -2
- package/dist/{setupOfflineReconnection-CQHNuP_0.cjs → setupOfflineReconnection-DPXRo_zf.cjs} +2 -2
- package/dist/{spawn-C0wZc03S.cjs → spawn-CgSJzzWS.cjs} +17 -16
- package/dist/{spawn-DdnYTtQe.mjs → spawn-CrYN_OOT.mjs} +18 -17
- package/dist/{spawnAgents-BjyU78Ue.cjs → spawnAgents-C1-4m7aN.cjs} +3 -1
- package/dist/{spawnAgents-D-7wMw-a.mjs → spawnAgents-DWCDYCQ1.mjs} +4 -2
- package/dist/{spawnHappyCLI-BJUd974I.cjs → spawnHappyCLI-CTy3p6V_.cjs} +1 -1
- package/dist/{spawnHappyCLI-CnyyJk74.mjs → spawnHappyCLI-DjbkiSH1.mjs} +1 -1
- package/dist/specialCommands-J3JFOq0J.cjs +60 -0
- package/dist/specialCommands-MXUN0wfI.mjs +54 -0
- package/dist/{startFileWatcher-DBboREco.cjs → startFileWatcher-BQs0cJA-.cjs} +1 -1
- package/dist/{startFileWatcher-CpO5Mwbr.mjs → startFileWatcher-Dedtu1vq.mjs} +1 -1
- package/dist/{defaultPermissionMode-DMTnlccv.mjs → startupSessionCreate-BKFU4v_h.mjs} +25 -6
- package/dist/{defaultPermissionMode-Dlm0q1m0.cjs → startupSessionCreate-Dxy3X4DG.cjs} +25 -7
- package/dist/{streamRelay-CqBynIon.mjs → streamRelay-P9e7Sohm.mjs} +1 -1
- package/dist/{sync-6HFRJP1h.cjs → sync-DtWB7RzA.cjs} +1 -1
- package/dist/{sync-I8NYmycF.mjs → sync-eZkXnsW_.mjs} +1 -1
- package/dist/{systemPrompt-BDWj5QSL.cjs → systemPrompt-2XOpZ1j6.cjs} +1 -1
- package/dist/{systemPrompt-C1RSY_60.mjs → systemPrompt-Bn6g6aCH.mjs} +2 -2
- package/dist/{teams-eUD7ymif.cjs → teams-ecFay4Gn.cjs} +6 -6
- package/dist/{teams-GpLFbXXE.mjs → teams-nadkqrbW.mjs} +7 -7
- package/dist/{template-CEK8MEjo.mjs → template-BiTD-jI9.mjs} +1 -1
- package/dist/{time-umG7yHkb.mjs → time-CN3TuSVG.mjs} +1 -1
- package/dist/{time-BAJRbB6U.cjs → time-gPD_EmA-.cjs} +1 -1
- package/dist/{titleGenerator-dmFlxkRs.mjs → titleGenerator-DgzTQdn2.mjs} +1 -1
- package/dist/{titleGenerator-iqb2jOF1.cjs → titleGenerator-lT5ldPuN.cjs} +2 -2
- package/dist/{todo-DsR7WnQS.cjs → todo-B1VeMk5A.cjs} +5 -5
- package/dist/{todo-CT4AJ3sH.mjs → todo-BIxd7l2Q.mjs} +6 -6
- package/dist/{tools-30E66QL_.cjs → tools-DvqbLsCF.cjs} +1 -1
- package/dist/{tools-BOWazSD6.mjs → tools-zXJpxiG_.mjs} +1 -1
- package/dist/{uninstall-DImXs6VZ.mjs → uninstall-9htK6mb7.mjs} +3 -3
- package/dist/{uninstall-BtTc9hHa.cjs → uninstall-CvIOpwB5.cjs} +3 -3
- package/package.json +7 -7
- package/dist/agentAttachments-M_B5qEF2.mjs +0 -18
- package/dist/selfCheck-4bcdHPFQ.mjs +0 -86
- package/dist/startupSessionCreate-BgaVuvQp.mjs +0 -24
- package/dist/startupSessionCreate-C1u2dtz8.cjs +0 -26
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var promises = require('node:fs/promises');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
|
-
var configuration = require('./configuration-
|
|
5
|
+
var configuration = require('./configuration-Dt5lKW3P.cjs');
|
|
6
6
|
var z = require('zod');
|
|
7
7
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
8
|
-
var logger = require('./logger-
|
|
8
|
+
var logger = require('./logger-BBRTTVsQ.cjs');
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -72,6 +72,9 @@ function evaluateWrapperIdle(snapshot, idleMs, now) {
|
|
|
72
72
|
if (!(now - snapshot.lastActivityAt >= idleMs)) return { ok: false, reason: "recent-activity" };
|
|
73
73
|
return { ok: true };
|
|
74
74
|
}
|
|
75
|
+
function isQuiescent(snapshot) {
|
|
76
|
+
return !snapshot.exiting && snapshot.uiSession && !snapshot.variant && !snapshot.thinking && snapshot.queuedInputs === 0 && snapshot.waitingForInput && snapshot.pendingRequests === 0 && snapshot.backgroundTasks === 0 && (snapshot.scheduledWakeups ?? 0) === 0;
|
|
77
|
+
}
|
|
75
78
|
function latchKeepAwake(raw, latched) {
|
|
76
79
|
if (raw === true) return true;
|
|
77
80
|
if (raw === false) return false;
|
|
@@ -509,6 +512,7 @@ exports.decideDaemonHibernation = decideDaemonHibernation;
|
|
|
509
512
|
exports.deletePersistedSessions = deletePersistedSessions;
|
|
510
513
|
exports.evaluateWrapperIdle = evaluateWrapperIdle;
|
|
511
514
|
exports.hibernationReplaySeq = hibernationReplaySeq;
|
|
515
|
+
exports.isQuiescent = isQuiescent;
|
|
512
516
|
exports.latchKeepAwake = latchKeepAwake;
|
|
513
517
|
exports.nextCheckDelay = nextCheckDelay;
|
|
514
518
|
exports.persistSession = persistSession;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFile, open, unlink, stat, rename } from 'node:fs/promises';
|
|
2
2
|
import { existsSync, constants, readFileSync, unlinkSync, renameSync } from 'node:fs';
|
|
3
|
-
import { c as configuration, P as PRIVATE_FILE_MODE, w as writePrivateFileSync, a as hardenPrivateFileSync, e as ensurePrivateDirectory, b as writePrivateFile, h as hardenPrivateFile } from './configuration-
|
|
3
|
+
import { c as configuration, P as PRIVATE_FILE_MODE, w as writePrivateFileSync, a as hardenPrivateFileSync, e as ensurePrivateDirectory, b as writePrivateFile, h as hardenPrivateFile } from './configuration-Dechcvd-.mjs';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import { c as credentialRelayProblem, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
6
|
-
import { l as logger } from './logger-
|
|
6
|
+
import { l as logger } from './logger-CL7pin9b.mjs';
|
|
7
7
|
|
|
8
8
|
const HIBERNATION_CAPABILITY = "agent-hibernation-v1";
|
|
9
9
|
const HOUR_MS = 60 * 60 * 1e3;
|
|
@@ -51,6 +51,9 @@ function evaluateWrapperIdle(snapshot, idleMs, now) {
|
|
|
51
51
|
if (!(now - snapshot.lastActivityAt >= idleMs)) return { ok: false, reason: "recent-activity" };
|
|
52
52
|
return { ok: true };
|
|
53
53
|
}
|
|
54
|
+
function isQuiescent(snapshot) {
|
|
55
|
+
return !snapshot.exiting && snapshot.uiSession && !snapshot.variant && !snapshot.thinking && snapshot.queuedInputs === 0 && snapshot.waitingForInput && snapshot.pendingRequests === 0 && snapshot.backgroundTasks === 0 && (snapshot.scheduledWakeups ?? 0) === 0;
|
|
56
|
+
}
|
|
54
57
|
function latchKeepAwake(raw, latched) {
|
|
55
58
|
if (raw === true) return true;
|
|
56
59
|
if (raw === false) return false;
|
|
@@ -477,4 +480,4 @@ var persistence = /*#__PURE__*/Object.freeze({
|
|
|
477
480
|
writeSettings: writeSettings
|
|
478
481
|
});
|
|
479
482
|
|
|
480
|
-
export {
|
|
483
|
+
export { deletePersistedSessions as A, writeDaemonState as B, writeSettings as C, settingIdleMs as D, rewriteCredentialsForRelay as E, releaseDaemonLock as F, persistence as G, HIBERNATION_CAPABILITY as H, SandboxConfigSchema as S, resolveCheckMs as a, readCredentialsForConfiguredRelay as b, readPersistedSessions as c, readDaemonState as d, evaluateWrapperIdle as e, clearDaemonState as f, readCredentials as g, clearCredentials as h, clearMachineId as i, isQuiescent as j, HIBERNATION_UNSUPPORTED_BACKOFF_MS as k, latchKeepAwake as l, readSettingsOutcome as m, writeCredentialsDataKey as n, hibernationReplaySeq as o, readTrackedClaudeSessionIds as p, readTrackedCodexThreadIds as q, readSettings as r, reportSignature as s, decideDaemonHibernation as t, updateSettings as u, nextCheckDelay as v, writeCredentialsLegacy as w, persistSession as x, acquireDaemonLock as y, resolveIdleMs as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as sanitizeAgentSessionId, n as normalizeAcpPermissionMode } from './acpSessionResume-
|
|
1
|
+
import { s as sanitizeAgentSessionId, n as normalizeAcpPermissionMode } from './acpSessionResume-CcpDuIO5.mjs';
|
|
2
2
|
|
|
3
3
|
function sanitizeSpawnModel(value) {
|
|
4
4
|
if (typeof value !== "string") return null;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var promises = require('node:fs/promises');
|
|
4
4
|
var node_crypto = require('node:crypto');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var configuration = require('./configuration-
|
|
6
|
+
var configuration = require('./configuration-Dt5lKW3P.cjs');
|
|
7
7
|
var resources = require('./resources-BZ_Be0qM.cjs');
|
|
8
8
|
|
|
9
9
|
async function publish(path, content, mode) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdir, chmod, writeFile, rename } from 'node:fs/promises';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { c as configuration } from './configuration-
|
|
4
|
+
import { c as configuration } from './configuration-Dechcvd-.mjs';
|
|
5
5
|
import { P as PI_TEAMS_EXTENSION } from './resources-CLP_MpK4.mjs';
|
|
6
6
|
|
|
7
7
|
async function publish(path, content, mode) {
|
|
@@ -5,15 +5,15 @@ var node_crypto = require('node:crypto');
|
|
|
5
5
|
var node_http = require('node:http');
|
|
6
6
|
var mcp_js = require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
7
7
|
var streamableHttp_js = require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
8
|
-
var piRuntime = require('./piRuntime
|
|
9
|
-
var mcp = require('./mcp-
|
|
8
|
+
var piRuntime = require('./piRuntime-Bd9-eq6M.cjs');
|
|
9
|
+
var mcp = require('./mcp-Du0MgR7e.cjs');
|
|
10
10
|
require('./agentGuidance-BtBx2xxE.cjs');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:os');
|
|
13
13
|
require('zod');
|
|
14
|
-
require('./logger-
|
|
15
|
-
require('./persistence-
|
|
16
|
-
require('./configuration-
|
|
14
|
+
require('./logger-BBRTTVsQ.cjs');
|
|
15
|
+
require('./persistence-Bl5S3TLB.cjs');
|
|
16
|
+
require('./configuration-Dt5lKW3P.cjs');
|
|
17
17
|
require('axios');
|
|
18
18
|
require('tweetnacl');
|
|
19
19
|
require('socket.io-client');
|
|
@@ -22,26 +22,27 @@ require('node:fs');
|
|
|
22
22
|
require('node:path');
|
|
23
23
|
var terminalToolContext = require('./terminalToolContext-DoV9Gs7K.cjs');
|
|
24
24
|
require('./resources-BZ_Be0qM.cjs');
|
|
25
|
-
require('./tools-
|
|
26
|
-
require('./client-
|
|
25
|
+
require('./tools-DvqbLsCF.cjs');
|
|
26
|
+
require('./client-CARZ_lNS.cjs');
|
|
27
27
|
require('node:util');
|
|
28
28
|
require('./index-BOe6dKnL.cjs');
|
|
29
29
|
require('@paralleldrive/cuid2');
|
|
30
|
-
require('./context-
|
|
30
|
+
require('./context-BdZssgF0.cjs');
|
|
31
31
|
require('@modelcontextprotocol/sdk/server/stdio.js');
|
|
32
|
-
require('./controlClient-
|
|
32
|
+
require('./controlClient-BRk65BRO.cjs');
|
|
33
33
|
require('./limits-C-a7gr04.cjs');
|
|
34
|
-
require('./downloadTarget-
|
|
35
|
-
require('./sessionOps-
|
|
34
|
+
require('./downloadTarget-DS0zT2AU.cjs');
|
|
35
|
+
require('./sessionOps-DeWVqpe4.cjs');
|
|
36
36
|
require('./authRelay-Dy1qU9td.cjs');
|
|
37
|
-
require('./time-
|
|
37
|
+
require('./time-gPD_EmA-.cjs');
|
|
38
|
+
require('./specialCommands-J3JFOq0J.cjs');
|
|
38
39
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
39
|
-
require('./remoteSessionClient-
|
|
40
|
+
require('./remoteSessionClient-DGFI__5Z.cjs');
|
|
40
41
|
require('./ids-B6ZC0HGt.cjs');
|
|
41
|
-
require('./bootstrap-
|
|
42
|
+
require('./bootstrap-DBJB0y-H.cjs');
|
|
42
43
|
require('./previewPath-B0rBdhy1.cjs');
|
|
43
44
|
require('./terminalTitleSuggest-DhvRFX3H.cjs');
|
|
44
|
-
require('./titleGenerator-
|
|
45
|
+
require('./titleGenerator-lT5ldPuN.cjs');
|
|
45
46
|
require('node:module');
|
|
46
47
|
require('./oneShotPrompts-CL0dip9C.cjs');
|
|
47
48
|
require('./projectPath-C3ioB4Bu.cjs');
|
|
@@ -49,7 +50,7 @@ require('path');
|
|
|
49
50
|
require('url');
|
|
50
51
|
require('./trimIdent-4gvk9Wk6.cjs');
|
|
51
52
|
require('chalk');
|
|
52
|
-
require('./package-
|
|
53
|
+
require('./package-DrY090nZ.cjs');
|
|
53
54
|
require('./tmuxSocket-D-Xt6Vn-.cjs');
|
|
54
55
|
|
|
55
56
|
async function startPiTerminalTools(terminalId) {
|
|
@@ -3,15 +3,15 @@ import { randomUUID } from 'node:crypto';
|
|
|
3
3
|
import { createServer } from 'node:http';
|
|
4
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
5
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
6
|
-
import { p as preparePiTeamsRuntime } from './piRuntime-
|
|
7
|
-
import { registerMcpTools, registerTerminalTitleSuggest } from './mcp-
|
|
6
|
+
import { p as preparePiTeamsRuntime } from './piRuntime-BoeMsAXK.mjs';
|
|
7
|
+
import { registerMcpTools, registerTerminalTitleSuggest } from './mcp-C-4sPTae.mjs';
|
|
8
8
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import './logger-
|
|
13
|
-
import './persistence-
|
|
14
|
-
import './configuration-
|
|
12
|
+
import './logger-CL7pin9b.mjs';
|
|
13
|
+
import './persistence-Dogj7JIp.mjs';
|
|
14
|
+
import './configuration-Dechcvd-.mjs';
|
|
15
15
|
import 'axios';
|
|
16
16
|
import 'tweetnacl';
|
|
17
17
|
import 'socket.io-client';
|
|
@@ -20,26 +20,27 @@ import 'node:fs';
|
|
|
20
20
|
import 'node:path';
|
|
21
21
|
import { r as resolveMcpTerminalId } from './terminalToolContext-CFeGeaNm.mjs';
|
|
22
22
|
import './resources-CLP_MpK4.mjs';
|
|
23
|
-
import './tools-
|
|
24
|
-
import './client-
|
|
23
|
+
import './tools-zXJpxiG_.mjs';
|
|
24
|
+
import './client-CtL0Vtww.mjs';
|
|
25
25
|
import 'node:util';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-DmqsRnV7.mjs';
|
|
27
27
|
import '@paralleldrive/cuid2';
|
|
28
|
-
import './context-
|
|
28
|
+
import './context-C9JbJoNe.mjs';
|
|
29
29
|
import '@modelcontextprotocol/sdk/server/stdio.js';
|
|
30
|
-
import './controlClient-
|
|
30
|
+
import './controlClient-D7NGfmtq.mjs';
|
|
31
31
|
import './limits-DIo7rEBR.mjs';
|
|
32
|
-
import './downloadTarget-
|
|
33
|
-
import './sessionOps-
|
|
32
|
+
import './downloadTarget-CGojGjaN.mjs';
|
|
33
|
+
import './sessionOps-CA2kpm66.mjs';
|
|
34
34
|
import './authRelay-DhQhkBvX.mjs';
|
|
35
|
-
import './time-
|
|
35
|
+
import './time-CN3TuSVG.mjs';
|
|
36
|
+
import './specialCommands-MXUN0wfI.mjs';
|
|
36
37
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
37
|
-
import './remoteSessionClient-
|
|
38
|
+
import './remoteSessionClient-BiC2KDew.mjs';
|
|
38
39
|
import './ids-DU6sLx4C.mjs';
|
|
39
|
-
import './bootstrap-
|
|
40
|
+
import './bootstrap-Ct9Nb4sv.mjs';
|
|
40
41
|
import './previewPath-CXN4Vag0.mjs';
|
|
41
42
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
42
|
-
import './titleGenerator-
|
|
43
|
+
import './titleGenerator-DgzTQdn2.mjs';
|
|
43
44
|
import 'node:module';
|
|
44
45
|
import './oneShotPrompts-DT4p6RNd.mjs';
|
|
45
46
|
import './projectPath-BTBIMB57.mjs';
|
|
@@ -47,7 +48,7 @@ import 'path';
|
|
|
47
48
|
import 'url';
|
|
48
49
|
import './trimIdent-BAjmv_TG.mjs';
|
|
49
50
|
import 'chalk';
|
|
50
|
-
import './package-
|
|
51
|
+
import './package-C6uiXULx.mjs';
|
|
51
52
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
52
53
|
|
|
53
54
|
async function startPiTerminalTools(terminalId) {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var z = require('zod');
|
|
4
4
|
var index = require('./index-BOe6dKnL.cjs');
|
|
5
5
|
var axios = require('axios');
|
|
6
|
-
var logger = require('./logger-
|
|
7
|
-
var configuration = require('./configuration-
|
|
6
|
+
var logger = require('./logger-BBRTTVsQ.cjs');
|
|
7
|
+
var configuration = require('./configuration-Dt5lKW3P.cjs');
|
|
8
8
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
9
9
|
|
|
10
10
|
z.z.object({
|
|
@@ -273,6 +273,24 @@ z.z.object({
|
|
|
273
273
|
rpcAvailable: z.z.boolean(),
|
|
274
274
|
detectedAt: z.z.number()
|
|
275
275
|
}).passthrough().optional(),
|
|
276
|
+
/**
|
|
277
|
+
* B-852: automatic restart of wrappers a CLI upgrade left on old code —
|
|
278
|
+
* capability, machine switch and per-session status (spec
|
|
279
|
+
* 2026-10-auto-restart-stale-wrappers §4).
|
|
280
|
+
*/
|
|
281
|
+
autoRestart: z.z.object({
|
|
282
|
+
enabled: z.z.boolean(),
|
|
283
|
+
rpcAvailable: z.z.boolean(),
|
|
284
|
+
detectedAt: z.z.number(),
|
|
285
|
+
sessions: z.z.record(z.z.string(), z.z.object({
|
|
286
|
+
state: z.z.string(),
|
|
287
|
+
reason: z.z.string().optional(),
|
|
288
|
+
since: z.z.number(),
|
|
289
|
+
target: z.z.string(),
|
|
290
|
+
offline: z.z.boolean().optional(),
|
|
291
|
+
retryAt: z.z.number().optional()
|
|
292
|
+
}))
|
|
293
|
+
}).passthrough().optional(),
|
|
276
294
|
/**
|
|
277
295
|
* B-510: web panels declared in this machine's local settings.json
|
|
278
296
|
* (`webPanels`), normalized by webPanels/webPanels.ts. Read-only mirror —
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { v as AgentVersionsSchema } from './index-
|
|
2
|
+
import { v as AgentVersionsSchema } from './index-DmqsRnV7.mjs';
|
|
3
3
|
import axios from 'axios';
|
|
4
|
-
import { l as logger } from './logger-
|
|
5
|
-
import { c as configuration } from './configuration-
|
|
4
|
+
import { l as logger } from './logger-CL7pin9b.mjs';
|
|
5
|
+
import { c as configuration } from './configuration-Dechcvd-.mjs';
|
|
6
6
|
import { c as contentLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
7
7
|
|
|
8
8
|
z.object({
|
|
@@ -271,6 +271,24 @@ z.object({
|
|
|
271
271
|
rpcAvailable: z.boolean(),
|
|
272
272
|
detectedAt: z.number()
|
|
273
273
|
}).passthrough().optional(),
|
|
274
|
+
/**
|
|
275
|
+
* B-852: automatic restart of wrappers a CLI upgrade left on old code —
|
|
276
|
+
* capability, machine switch and per-session status (spec
|
|
277
|
+
* 2026-10-auto-restart-stale-wrappers §4).
|
|
278
|
+
*/
|
|
279
|
+
autoRestart: z.object({
|
|
280
|
+
enabled: z.boolean(),
|
|
281
|
+
rpcAvailable: z.boolean(),
|
|
282
|
+
detectedAt: z.number(),
|
|
283
|
+
sessions: z.record(z.string(), z.object({
|
|
284
|
+
state: z.string(),
|
|
285
|
+
reason: z.string().optional(),
|
|
286
|
+
since: z.number(),
|
|
287
|
+
target: z.string(),
|
|
288
|
+
offline: z.boolean().optional(),
|
|
289
|
+
retryAt: z.number().optional()
|
|
290
|
+
}))
|
|
291
|
+
}).passthrough().optional(),
|
|
274
292
|
/**
|
|
275
293
|
* B-510: web panels declared in this machine's local settings.json
|
|
276
294
|
* (`webPanels`), normalized by webPanels/webPanels.ts. Read-only mirror —
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var claudeAgentSdk = require('@anthropic-ai/claude-agent-sdk');
|
|
4
4
|
var promptCacheTtl = require('./promptCacheTtl-B8PCzE6k.cjs');
|
|
5
|
-
var logger = require('./logger-
|
|
5
|
+
var logger = require('./logger-BBRTTVsQ.cjs');
|
|
6
6
|
var processTreeSnapshot = require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
7
7
|
|
|
8
8
|
const HAPPY_DEFAULT_ENTRYPOINT = "remote_mobile";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { query as query$1 } from '@anthropic-ai/claude-agent-sdk';
|
|
2
2
|
import { p as pinSmallFastModel, a as applyPromptCacheTtlDefault, e as ensureLocalProxyBypass } from './promptCacheTtl-Ce0TVbrx.mjs';
|
|
3
|
-
import { l as logger } from './logger-
|
|
3
|
+
import { l as logger } from './logger-CL7pin9b.mjs';
|
|
4
4
|
import { s as snapshotTree, k as killSurvivors } from './processTreeSnapshot-CuLJDNC-.mjs';
|
|
5
5
|
|
|
6
6
|
const HAPPY_DEFAULT_ENTRYPOINT = "remote_mobile";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
4
|
-
var controlClient = require('./controlClient-
|
|
5
|
-
var rateLimitWindows = require('./rateLimitWindows-
|
|
3
|
+
var logger = require('./logger-BBRTTVsQ.cjs');
|
|
4
|
+
var controlClient = require('./controlClient-BRk65BRO.cjs');
|
|
5
|
+
var rateLimitWindows = require('./rateLimitWindows-Bx3ROBP5.cjs');
|
|
6
6
|
|
|
7
7
|
function createRateLimitReporter(send, now = Date.now) {
|
|
8
8
|
const last = /* @__PURE__ */ new Map();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
2
|
-
import { a as reportRateLimitsToDaemon } from './controlClient-
|
|
3
|
-
import { f as fromCodexRateLimits, a as fromClaudeRateLimitInfo, r as rateLimitReportSignature, R as RATE_LIMIT_OBSERVED_REFRESH_MS } from './rateLimitWindows-
|
|
1
|
+
import { l as logger } from './logger-CL7pin9b.mjs';
|
|
2
|
+
import { a as reportRateLimitsToDaemon } from './controlClient-D7NGfmtq.mjs';
|
|
3
|
+
import { f as fromCodexRateLimits, a as fromClaudeRateLimitInfo, r as rateLimitReportSignature, R as RATE_LIMIT_OBSERVED_REFRESH_MS } from './rateLimitWindows-CEn0DXaX.mjs';
|
|
4
4
|
|
|
5
5
|
function createRateLimitReporter(send, now = Date.now) {
|
|
6
6
|
const last = /* @__PURE__ */ new Map();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-BBRTTVsQ.cjs');
|
|
4
4
|
var child_process = require('child_process');
|
|
5
5
|
var util = require('util');
|
|
6
6
|
var fs = require('fs/promises');
|
|
@@ -9,7 +9,7 @@ var require$$1 = require('path');
|
|
|
9
9
|
var spawn = require('cross-spawn');
|
|
10
10
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
11
11
|
var os = require('os');
|
|
12
|
-
var configuration = require('./configuration-
|
|
12
|
+
var configuration = require('./configuration-Dt5lKW3P.cjs');
|
|
13
13
|
|
|
14
14
|
function run$1(args, options) {
|
|
15
15
|
const RUNNER_PATH = require$$1.resolve(require$$1.join(projectPath.projectPath(), "scripts", "ripgrep_launcher.cjs"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-CL7pin9b.mjs';
|
|
2
2
|
import { spawn as spawn$1, exec } from 'child_process';
|
|
3
3
|
import { promisify } from 'util';
|
|
4
4
|
import { mkdir, writeFile, appendFile, stat, rename, unlink, readdir, readFile } from 'fs/promises';
|
|
@@ -7,7 +7,7 @@ import { resolve, join, sep } from 'path';
|
|
|
7
7
|
import { spawn } from 'cross-spawn';
|
|
8
8
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
9
9
|
import { platform } from 'os';
|
|
10
|
-
import { c as configuration } from './configuration-
|
|
10
|
+
import { c as configuration } from './configuration-Dechcvd-.mjs';
|
|
11
11
|
|
|
12
12
|
function run$1(args, options) {
|
|
13
13
|
const RUNNER_PATH = resolve(join(projectPath(), "scripts", "ripgrep_launcher.cjs"));
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-BBRTTVsQ.cjs');
|
|
4
4
|
require('axios');
|
|
5
5
|
require('node:events');
|
|
6
6
|
require('socket.io-client');
|
|
7
|
-
require('./pushNotifications-
|
|
7
|
+
require('./pushNotifications-CfspRcl-.cjs');
|
|
8
8
|
require('node:crypto');
|
|
9
9
|
require('tweetnacl');
|
|
10
|
-
require('./configuration-
|
|
10
|
+
require('./configuration-Dt5lKW3P.cjs');
|
|
11
11
|
require('./index-BOe6dKnL.cjs');
|
|
12
|
-
require('./registerCommonHandlers-
|
|
12
|
+
require('./registerCommonHandlers-Beun-cQv.cjs');
|
|
13
13
|
require('os');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('@paralleldrive/cuid2');
|
|
16
|
-
require('./persistence-
|
|
16
|
+
require('./persistence-Bl5S3TLB.cjs');
|
|
17
17
|
require('chalk');
|
|
18
18
|
require('./types-CRS-srZK.cjs');
|
|
19
19
|
|
|
@@ -224,6 +224,16 @@ class MessageQueue2 {
|
|
|
224
224
|
this.closed = false;
|
|
225
225
|
this.waiter = null;
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* B-854: the runner is leaving — report everything still queued as not run
|
|
229
|
+
* for `reason` and drop it, so no message leaves with the process silently.
|
|
230
|
+
*/
|
|
231
|
+
discardAll(reason) {
|
|
232
|
+
const count = this.queue.length;
|
|
233
|
+
this.notifyDiscard(reason);
|
|
234
|
+
this.queue = [];
|
|
235
|
+
return count;
|
|
236
|
+
}
|
|
227
237
|
/**
|
|
228
238
|
* Close the queue - no more messages can be pushed
|
|
229
239
|
*/
|
|
@@ -399,62 +409,5 @@ function registerKillSessionHandler(rpcHandlerManager, killThisHappy, archiveEve
|
|
|
399
409
|
};
|
|
400
410
|
}
|
|
401
411
|
|
|
402
|
-
const COMPACT_RE = /^[/\uFF0F]compact(?![A-Za-z0-9_:-])([\s\S]*)$/i;
|
|
403
|
-
const LEADING_SPACE_RE = /^[\s\u3000\uFEFF\u200B]+/;
|
|
404
|
-
function parseCompact(message) {
|
|
405
|
-
const match = message.replace(LEADING_SPACE_RE, "").match(COMPACT_RE);
|
|
406
|
-
if (!match) {
|
|
407
|
-
return {
|
|
408
|
-
isCompact: false,
|
|
409
|
-
originalMessage: message
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
const instructions = match[1].replace(/\u3000/g, " ").trim();
|
|
413
|
-
return {
|
|
414
|
-
isCompact: true,
|
|
415
|
-
originalMessage: instructions ? `/compact ${instructions}` : "/compact"
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
function compactCommandText(message) {
|
|
419
|
-
const result = parseCompact(message);
|
|
420
|
-
return result.isCompact ? result.originalMessage : null;
|
|
421
|
-
}
|
|
422
|
-
function parseClear(message) {
|
|
423
|
-
const trimmed = message.trim();
|
|
424
|
-
return {
|
|
425
|
-
isClear: trimmed === "/clear"
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
function parseSpecialCommand(message) {
|
|
429
|
-
const compactResult = parseCompact(message);
|
|
430
|
-
if (compactResult.isCompact) {
|
|
431
|
-
return {
|
|
432
|
-
type: "compact",
|
|
433
|
-
originalMessage: compactResult.originalMessage
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
const clearResult = parseClear(message);
|
|
437
|
-
if (clearResult.isClear) {
|
|
438
|
-
return {
|
|
439
|
-
type: "clear"
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
const trimmed = message.trim().toLowerCase();
|
|
443
|
-
if (trimmed === "/mcp") {
|
|
444
|
-
return { type: "mcp" };
|
|
445
|
-
}
|
|
446
|
-
if (trimmed === "/skills") {
|
|
447
|
-
return { type: "skills" };
|
|
448
|
-
}
|
|
449
|
-
return {
|
|
450
|
-
type: null
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
const COMPACT_UNSUPPORTED_NOTICE = "This session type does not support /compact";
|
|
454
|
-
|
|
455
|
-
exports.COMPACT_UNSUPPORTED_NOTICE = COMPACT_UNSUPPORTED_NOTICE;
|
|
456
412
|
exports.MessageQueue2 = MessageQueue2;
|
|
457
|
-
exports.compactCommandText = compactCommandText;
|
|
458
|
-
exports.parseCompact = parseCompact;
|
|
459
|
-
exports.parseSpecialCommand = parseSpecialCommand;
|
|
460
413
|
exports.registerKillSessionHandler = registerKillSessionHandler;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-CL7pin9b.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import 'socket.io-client';
|
|
5
|
-
import './pushNotifications-
|
|
5
|
+
import './pushNotifications-dUceOIni.mjs';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'tweetnacl';
|
|
8
|
-
import './configuration-
|
|
9
|
-
import './index-
|
|
10
|
-
import './registerCommonHandlers-
|
|
8
|
+
import './configuration-Dechcvd-.mjs';
|
|
9
|
+
import './index-DmqsRnV7.mjs';
|
|
10
|
+
import './registerCommonHandlers-DWZ7mfdt.mjs';
|
|
11
11
|
import 'os';
|
|
12
12
|
import 'child_process';
|
|
13
13
|
import '@paralleldrive/cuid2';
|
|
14
|
-
import './persistence-
|
|
14
|
+
import './persistence-Dogj7JIp.mjs';
|
|
15
15
|
import 'chalk';
|
|
16
16
|
import './types-CkqAACXx.mjs';
|
|
17
17
|
|
|
@@ -222,6 +222,16 @@ class MessageQueue2 {
|
|
|
222
222
|
this.closed = false;
|
|
223
223
|
this.waiter = null;
|
|
224
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* B-854: the runner is leaving — report everything still queued as not run
|
|
227
|
+
* for `reason` and drop it, so no message leaves with the process silently.
|
|
228
|
+
*/
|
|
229
|
+
discardAll(reason) {
|
|
230
|
+
const count = this.queue.length;
|
|
231
|
+
this.notifyDiscard(reason);
|
|
232
|
+
this.queue = [];
|
|
233
|
+
return count;
|
|
234
|
+
}
|
|
225
235
|
/**
|
|
226
236
|
* Close the queue - no more messages can be pushed
|
|
227
237
|
*/
|
|
@@ -397,57 +407,4 @@ function registerKillSessionHandler(rpcHandlerManager, killThisHappy, archiveEve
|
|
|
397
407
|
};
|
|
398
408
|
}
|
|
399
409
|
|
|
400
|
-
|
|
401
|
-
const LEADING_SPACE_RE = /^[\s\u3000\uFEFF\u200B]+/;
|
|
402
|
-
function parseCompact(message) {
|
|
403
|
-
const match = message.replace(LEADING_SPACE_RE, "").match(COMPACT_RE);
|
|
404
|
-
if (!match) {
|
|
405
|
-
return {
|
|
406
|
-
isCompact: false,
|
|
407
|
-
originalMessage: message
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
const instructions = match[1].replace(/\u3000/g, " ").trim();
|
|
411
|
-
return {
|
|
412
|
-
isCompact: true,
|
|
413
|
-
originalMessage: instructions ? `/compact ${instructions}` : "/compact"
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
function compactCommandText(message) {
|
|
417
|
-
const result = parseCompact(message);
|
|
418
|
-
return result.isCompact ? result.originalMessage : null;
|
|
419
|
-
}
|
|
420
|
-
function parseClear(message) {
|
|
421
|
-
const trimmed = message.trim();
|
|
422
|
-
return {
|
|
423
|
-
isClear: trimmed === "/clear"
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
function parseSpecialCommand(message) {
|
|
427
|
-
const compactResult = parseCompact(message);
|
|
428
|
-
if (compactResult.isCompact) {
|
|
429
|
-
return {
|
|
430
|
-
type: "compact",
|
|
431
|
-
originalMessage: compactResult.originalMessage
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
const clearResult = parseClear(message);
|
|
435
|
-
if (clearResult.isClear) {
|
|
436
|
-
return {
|
|
437
|
-
type: "clear"
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
const trimmed = message.trim().toLowerCase();
|
|
441
|
-
if (trimmed === "/mcp") {
|
|
442
|
-
return { type: "mcp" };
|
|
443
|
-
}
|
|
444
|
-
if (trimmed === "/skills") {
|
|
445
|
-
return { type: "skills" };
|
|
446
|
-
}
|
|
447
|
-
return {
|
|
448
|
-
type: null
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
const COMPACT_UNSUPPORTED_NOTICE = "This session type does not support /compact";
|
|
452
|
-
|
|
453
|
-
export { COMPACT_UNSUPPORTED_NOTICE as C, MessageQueue2 as M, parseCompact as a, compactCommandText as c, parseSpecialCommand as p, registerKillSessionHandler as r };
|
|
410
|
+
export { MessageQueue2 as M, registerKillSessionHandler as r };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as resumeDaemonSession, l as listDaemonSessions } from './controlClient-
|
|
2
|
-
import { d as archiveSession, u as unarchiveSession, h as sessionLiveness, e as sendUserMessage, i as readSessionState, o as openUserScopedSocket } from './sessionOps-
|
|
3
|
-
import { d as delay } from './time-
|
|
1
|
+
import { j as resumeDaemonSession, l as listDaemonSessions } from './controlClient-D7NGfmtq.mjs';
|
|
2
|
+
import { d as archiveSession, u as unarchiveSession, h as sessionLiveness, e as sendUserMessage, i as readSessionState, o as openUserScopedSocket } from './sessionOps-CA2kpm66.mjs';
|
|
3
|
+
import { d as delay } from './time-CN3TuSVG.mjs';
|
|
4
4
|
import axios from 'axios';
|
|
5
5
|
import { hostname } from 'node:os';
|
|
6
|
-
import { c as configuration } from './configuration-
|
|
7
|
-
import { r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-
|
|
6
|
+
import { c as configuration } from './configuration-Dechcvd-.mjs';
|
|
7
|
+
import { r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-Dogj7JIp.mjs';
|
|
8
8
|
import { randomUUID } from 'node:crypto';
|
|
9
9
|
|
|
10
10
|
const ACTIVE_FRESH_WINDOW_MS = 15 * 60 * 1e3;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var controlClient = require('./controlClient-
|
|
4
|
-
var sessionOps = require('./sessionOps-
|
|
5
|
-
var time = require('./time-
|
|
3
|
+
var controlClient = require('./controlClient-BRk65BRO.cjs');
|
|
4
|
+
var sessionOps = require('./sessionOps-DeWVqpe4.cjs');
|
|
5
|
+
var time = require('./time-gPD_EmA-.cjs');
|
|
6
6
|
var axios = require('axios');
|
|
7
7
|
var os = require('node:os');
|
|
8
|
-
var configuration = require('./configuration-
|
|
9
|
-
var persistence = require('./persistence-
|
|
8
|
+
var configuration = require('./configuration-Dt5lKW3P.cjs');
|
|
9
|
+
var persistence = require('./persistence-Bl5S3TLB.cjs');
|
|
10
10
|
var node_crypto = require('node:crypto');
|
|
11
11
|
|
|
12
12
|
const ACTIVE_FRESH_WINDOW_MS = 15 * 60 * 1e3;
|