very-happy-cli 0.2.178 → 0.2.179
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-DCQXHRzT.mjs → AcpBackend-CHp3y7cb.mjs} +135 -16
- package/dist/{AcpBackend-CDkAQXYf.cjs → AcpBackend-DFipFF7-.cjs} +135 -16
- package/dist/{AcpSessionManager-DckmUZza.cjs → AcpSessionManager-0zpvRJXc.cjs} +38 -4
- package/dist/{AcpSessionManager-BXrQcqwC.mjs → AcpSessionManager-d2-rKWWa.mjs} +38 -4
- package/dist/{BasePermissionHandler-DyLmKKtO.cjs → BasePermissionHandler-CH3zuEkA.cjs} +5 -2
- package/dist/{BasePermissionHandler-BVlrEhIi.mjs → BasePermissionHandler-DdZBYIR4.mjs} +5 -2
- package/dist/acpSessionResume-DTGmAPLt.mjs +67 -0
- package/dist/acpSessionResume-oiCBnAVA.cjs +74 -0
- package/dist/{agentHome-CEp9RMyK.cjs → agentHome-BWcz8mz0.cjs} +4 -4
- package/dist/{agentHome-C1xi37as.mjs → agentHome-CghLvL_1.mjs} +4 -4
- package/dist/{api-JANhFdZV.cjs → api-Cmjfr8Z7.cjs} +28 -260
- package/dist/{api-Dib0dmqC.mjs → api-CzwFpJQc.mjs} +21 -253
- package/dist/{apiMachine-DNTJidYH.mjs → apiMachine-DJkTEiqy.mjs} +43 -15
- package/dist/{apiMachine-QhK-sKcr.cjs → apiMachine-G6OogT08.cjs} +43 -15
- package/dist/{attachmentContent-DkkdpSSJ.mjs → attachmentContent-B2os4HbA.mjs} +2 -2
- package/dist/{attachmentContent-bpQTBJ0y.cjs → attachmentContent-Bo0UAsSu.cjs} +4 -4
- package/dist/{auth-BRjd2esb.mjs → auth-BS6PaOOG.mjs} +5 -5
- package/dist/{auth-DgIV0Cvt.cjs → auth-D6bBUwZa.cjs} +5 -5
- package/dist/{auth-DNct7VUi.mjs → auth-DMX0xPNK.mjs} +8 -8
- package/dist/{auth-omWDtgR8.cjs → auth-HEhRaNgL.cjs} +8 -8
- package/dist/{auto-CI16FZmX.cjs → auto-C6I55iOh.cjs} +18 -17
- package/dist/{auto-DKGFOJBo.mjs → auto-Cl1SEDcD.mjs} +18 -17
- package/dist/{bootstrap-DCQ87Aan.cjs → bootstrap-exVucYav.cjs} +2 -2
- package/dist/{bootstrap-BUagGC_-.mjs → bootstrap-iuyufnp3.mjs} +2 -2
- package/dist/{browser-CSKhc0Bl.cjs → browser-BohJK12g.cjs} +1 -1
- package/dist/{browser-Dj_DYQEh.mjs → browser-CSYum7xH.mjs} +1 -1
- package/dist/{claudeLocal-CCCvAeMd.mjs → claudeLocal-Dq_R3Ax_.mjs} +6 -5
- package/dist/{claudeLocal-CdIVnOZp.cjs → claudeLocal-re4yjSTx.cjs} +6 -5
- package/dist/{claudeLocalLauncher-21-xh5gc.cjs → claudeLocalLauncher-B4hJHpCA.cjs} +11 -10
- package/dist/{claudeLocalLauncher-BmrpaRYJ.mjs → claudeLocalLauncher-CN67lN7-.mjs} +11 -10
- package/dist/{claudeSessionFork-DvxMKAmY.mjs → claudeSessionFork-BihfD0Ik.mjs} +1 -1
- package/dist/{claudeSessionFork-kYCP1IJB.cjs → claudeSessionFork-DiSMYerV.cjs} +1 -1
- package/dist/{client-Dnza1hgN.cjs → client-BKcK1Bi-.cjs} +3 -3
- package/dist/client-BhoEBnuN.mjs +71 -0
- package/dist/{client-C4zKGjiJ.cjs → client-CuVdN6PP.cjs} +2 -2
- package/dist/{client-BTX9hsbr.mjs → client-DuTDwWSQ.mjs} +3 -3
- package/dist/client-ZjOsn6nZ.cjs +76 -0
- package/dist/{client-CnlkkrZO.mjs → client-wo9nbxuf.mjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +24 -15
- package/dist/codex/happyMcpStdioBridge.mjs +24 -15
- package/dist/{codexAppServerClient-DvkpQgyv.mjs → codexAppServerClient-BK3zra_1.mjs} +3 -3
- package/dist/{codexAppServerClient-CRlBWGn3.cjs → codexAppServerClient-Dt5zxrun.cjs} +3 -3
- package/dist/{codexCommand-BxjogBzU.mjs → codexCommand-B6pY7CMh.mjs} +65 -60
- package/dist/{codexCommand-DzxIWXIT.cjs → codexCommand-CAZ1SLjg.cjs} +88 -83
- package/dist/{codexTermination-ySDNMEhd.mjs → codexTermination-Cd1Eon_4.mjs} +1 -1
- package/dist/{codexTermination-C28FzlLb.cjs → codexTermination-DmGbHxcD.cjs} +1 -1
- package/dist/{config-DwfEpFr3.mjs → config-2oMG_fEI.mjs} +3 -3
- package/dist/{config-BFB5uJ4t.cjs → config-B0uK6K7n.cjs} +3 -3
- package/dist/{configuration-4TGMrjul.cjs → configuration-CMHZnp6G.cjs} +1 -1
- package/dist/{configuration-DVrb61aY.mjs → configuration-WMi4idBB.mjs} +1 -1
- package/dist/{connect-C7FPY0PI.mjs → connect-BLVHhHzA.mjs} +14 -14
- package/dist/{connect-QH2VJGBG.cjs → connect-uaglGrde.cjs} +14 -14
- package/dist/{context-JoKu0V54.cjs → context-DXzU5bFM.cjs} +1 -1
- package/dist/{context-B3XPVJlj.mjs → context-DploEcoN.mjs} +1 -1
- package/dist/{controlClient-BYKyGyxj.mjs → controlClient-BWUJrj3t.mjs} +3 -3
- package/dist/{controlClient-BTaZlbC6.cjs → controlClient-C-5qCt8W.cjs} +3 -3
- package/dist/{createSessionMetadata-8Fuj2-IV.mjs → createSessionMetadata-3uXrJgOW.mjs} +2 -2
- package/dist/{createSessionMetadata-B2NynaWZ.cjs → createSessionMetadata-BkIzHALd.cjs} +2 -2
- package/dist/{defaultPermissionMode-B8kJG9uI.mjs → defaultPermissionMode-BzxLh20a.mjs} +2 -2
- package/dist/{defaultPermissionMode-BEWCqJU-.cjs → defaultPermissionMode-pS3vmiSg.cjs} +2 -2
- package/dist/{deterministicJson-BjNQsAjO.cjs → deterministicJson-B8z2GPi9.cjs} +220 -14
- package/dist/{deterministicJson-C5ZwZ7hu.mjs → deterministicJson-D_whDMFd.mjs} +217 -12
- package/dist/{doctor-BshRnjLi.cjs → doctor-Br1Kcy2J.cjs} +7 -7
- package/dist/{doctor-0BiGwJXk.mjs → doctor-CmtSsR2-.mjs} +7 -7
- package/dist/{downloadTarget-BN5vZt3K.cjs → downloadTarget-BQJK_6oH.cjs} +6 -6
- package/dist/{downloadTarget-DJPwAZlu.mjs → downloadTarget-BoNwTIH_.mjs} +6 -6
- package/dist/{ensureDaemonRunning-C5QfToCe.cjs → ensureDaemonRunning-BRUmsq6J.cjs} +5 -5
- package/dist/{ensureDaemonRunning-CSmb_mqt.mjs → ensureDaemonRunning-Czo9IHJQ.mjs} +5 -5
- package/dist/{handleResumeCommand-CgjpsdDe.mjs → handleResumeCommand-C8thKjqf.mjs} +21 -5
- package/dist/{handleResumeCommand-BwnUZmbo.cjs → handleResumeCommand-tKD_Hpxc.cjs} +21 -5
- package/dist/{index-BYOZ_8WZ.cjs → index-B0UjHlAe.cjs} +4 -4
- package/dist/{index-BehVbAsA.mjs → index-BTxHphpV.mjs} +254 -49
- package/dist/index-BiyC7cZ3.mjs +18 -0
- package/dist/{index-_l1Sdmbi.cjs → index-C6O2vVjm.cjs} +154 -33
- package/dist/index-CUuc6iCn.cjs +24 -0
- package/dist/{index-Bvldtdny.mjs → index-CdQI0C9p.mjs} +4 -4
- package/dist/{index-BRClDe07.cjs → index-D09T1m8Y.cjs} +3 -3
- package/dist/{index-BYgfern_.mjs → index-D3bidoG8.mjs} +3 -3
- package/dist/{index-piJPsTsm.cjs → index-DMqDMT1Q.cjs} +256 -51
- package/dist/{index-Clqlu17M.mjs → index-DPOa4NhL.mjs} +153 -34
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-BdvKiOQw.mjs → install-BX3lv3NO.mjs} +1 -1
- package/dist/{install-Cf6AFSWC.cjs → install-BXvf2E3o.cjs} +1 -1
- package/dist/{install-TO4taKW7.cjs → install-CYRZxS87.cjs} +3 -3
- package/dist/{install-fYWHrPcC.mjs → install-hnve_9vq.mjs} +3 -3
- package/dist/lib.cjs +13 -13
- package/dist/lib.d.cts +62 -1
- package/dist/lib.d.mts +62 -1
- package/dist/lib.mjs +13 -13
- package/dist/{lidState-DNMlIhX0.mjs → lidState-Bb8fgXg3.mjs} +1 -1
- package/dist/{lidState-BeOwj6eW.cjs → lidState-Dv2wwFTj.cjs} +1 -1
- package/dist/{localHappyAgentAuth-Br-mgogg.cjs → localHappyAgentAuth-DjYvkXvV.cjs} +1 -1
- package/dist/{localHappyAgentAuth-BezKSFDi.mjs → localHappyAgentAuth-NEU7fax7.mjs} +1 -1
- package/dist/{logger--vAVtXB_.mjs → logger-BtVhHnD8.mjs} +2 -2
- package/dist/{logger-DXTWlPzP.cjs → logger-C1GWx3gi.cjs} +2 -2
- package/dist/{machineMetadata-DcUupMje.cjs → machineMetadata-CLHS9sv_.cjs} +3 -3
- package/dist/{machineMetadata-B1H9gNbN.mjs → machineMetadata-D-g--oU_.mjs} +3 -3
- package/dist/{main-CshDb5-1.mjs → main-B2LWV8DI.mjs} +58 -45
- package/dist/{main-DoMFJ2Cl.cjs → main-CWhSsbtU.cjs} +58 -45
- package/dist/{mcp-pNc1EbQf.cjs → mcp-CARUsXHV.cjs} +14 -14
- package/dist/{mcp-DKT_lrvQ.mjs → mcp-ext92q3Y.mjs} +14 -14
- package/dist/{mirrorProtocol-6IFGPpjJ.mjs → mirrorProtocol-BwYibqry.mjs} +3 -3
- package/dist/{mirrorProtocol-qKflWTX_.cjs → mirrorProtocol-DEy2g1CB.cjs} +3 -3
- package/dist/{package-B7B03ejW.mjs → package-BPPebGQF.mjs} +7 -7
- package/dist/{package-DY4zTbKS.cjs → package-SgqTYsjn.cjs} +7 -7
- package/dist/panels-BZ0_Tt7B.mjs +137 -0
- package/dist/panels-D1c7q2dD.cjs +142 -0
- package/dist/{peerTools-3R9RUARX.mjs → peerTools-CWKzcQ7u.mjs} +60 -10
- package/dist/{peerTools-iy3_6Yc5.cjs → peerTools-DRQETXaz.cjs} +60 -9
- package/dist/{persistence-BfX72dne.cjs → persistence-BegE7NPa.cjs} +2 -2
- package/dist/{persistence-DTk4sNpd.mjs → persistence-Cr-wutZ4.mjs} +3 -3
- package/dist/{piRunnerArgs-CRQVR9o-.cjs → piRunnerArgs-Cs-378Vz.cjs} +8 -2
- package/dist/{piRunnerArgs-AT8QJY7x.mjs → piRunnerArgs-DwvM_yWA.mjs} +7 -1
- package/dist/{piRuntime-BHRT5MKO.cjs → piRuntime-BG-1td_n.cjs} +2 -2
- package/dist/{piRuntime-E44qTVQ4.mjs → piRuntime-Bue5mnlc.mjs} +2 -2
- package/dist/{piTerminal-De8nbciM.mjs → piTerminal-B5x9X5yV.mjs} +17 -17
- package/dist/{piTerminal-hI4WFdWm.cjs → piTerminal-G4z-xVyy.cjs} +17 -17
- package/dist/processTreeSnapshot-CuLJDNC-.mjs +101 -0
- package/dist/processTreeSnapshot-mDbnuojn.cjs +105 -0
- package/dist/prompt-BOouDaTM.mjs +99 -0
- package/dist/prompt-lgF9IE82.cjs +105 -0
- package/dist/{attachmentLimits-UyFn8fkQ.mjs → pushNotifications-BdFjDjQe.mjs} +303 -3
- package/dist/{attachmentLimits-SqeAHrVC.cjs → pushNotifications-DaLQUyi0.cjs} +304 -2
- package/dist/{index-DFPT4HOO.cjs → query-Ctfg-5gy.cjs} +25 -5
- package/dist/{index-CEjJnq05.mjs → query-DYP_W1wp.mjs} +26 -3
- package/dist/{rateLimitWindows-XrJiiBpU.mjs → rateLimitWindows-CuEqk_0g.mjs} +1 -1
- package/dist/{rateLimitWindows-Czb7_7cK.cjs → rateLimitWindows-Dj_8voBK.cjs} +1 -1
- package/dist/{registerCommonHandlers-CvIedVRf.mjs → registerCommonHandlers-BAlP7SGc.mjs} +2 -2
- package/dist/{registerCommonHandlers-C0_fyBQ0.cjs → registerCommonHandlers-Cj084Sg7.cjs} +2 -2
- package/dist/{registerKillSessionHandler-gwJ5lTf0.mjs → registerKillSessionHandler-PD0jWtQo.mjs} +6 -6
- package/dist/{registerKillSessionHandler-DYl7l4Ts.cjs → registerKillSessionHandler-qMju0ZfF.cjs} +6 -6
- package/dist/{remoteSessionClient-BRTIOX5b.cjs → remoteSessionClient-B7i7MkYV.cjs} +5 -5
- package/dist/{remoteSessionClient-DRb2Jr5s.mjs → remoteSessionClient-Bn2qu5C5.mjs} +5 -5
- package/dist/{reportProgressTool-B9nCzbkL.cjs → reportProgressTool-CM1JFAHg.cjs} +84 -2
- package/dist/{reportProgressTool-D5tEoXMW.mjs → reportProgressTool-gHItlSzz.mjs} +82 -3
- package/dist/{resources-JDPugcDq.cjs → resources-CvIlkzpP.cjs} +30 -0
- package/dist/{resources-BdFBQi8r.mjs → resources-y9jfyO-_.mjs} +30 -0
- package/dist/{run-BQ_FGaOL.mjs → run-BM4TxiyN.mjs} +177 -41
- package/dist/{run-CKe_WeLW.cjs → run-CNXwIe0A.cjs} +191 -55
- package/dist/{runClaude-MHI5IKM-.cjs → runClaude-CWhj2V4Q.cjs} +36 -40
- package/dist/{runClaude-zrrNcQC_.mjs → runClaude-C_3I8hvR.mjs} +36 -40
- package/dist/{runClaudeDeps-RRw-Nusc.cjs → runClaudeDeps-B81cOKnH.cjs} +294 -156
- package/dist/{runClaudeDeps-CVBCokOS.mjs → runClaudeDeps-QGrOeDe2.mjs} +294 -159
- package/dist/{runGemini-kipag2ag.mjs → runGemini-BEdWEZLR.mjs} +60 -54
- package/dist/{runGemini-D7Lg9yCr.cjs → runGemini-CgRLYbt5.cjs} +60 -54
- package/dist/{runOpenClaw-DCcQ0L2N.cjs → runOpenClaw-C1NVmzOL.cjs} +18 -18
- package/dist/{runOpenClaw-C_lRY3Do.mjs → runOpenClaw-DdQZAYj1.mjs} +18 -18
- package/dist/{sandbox-BSyXFVFp.mjs → sandbox-DjQUdCMG.mjs} +4 -4
- package/dist/{sandbox-dMwPTmjm.cjs → sandbox-nocIjliq.cjs} +4 -4
- package/dist/selfCheck-CjCF4C3v.mjs +85 -0
- package/dist/{selfCheck-DkzDDUsE.cjs → selfCheck-DCt4Uzbq.cjs} +36 -35
- package/dist/{send-C-k9nsd3.mjs → send-Ct7X4pPU.mjs} +8 -8
- package/dist/{send-dxC0miIA.cjs → send-Dydf_hwZ.cjs} +8 -8
- package/dist/{server-B-W6P7Qr.cjs → server-CosABFbd.cjs} +6 -6
- package/dist/{server-DxoTYNlw.mjs → server-DTQGZMxh.mjs} +4 -4
- package/dist/{sessionLock-DWX6BbiU.cjs → sessionLock-DokGab2R.cjs} +16 -3
- package/dist/{sessionLock-DBdtZGOL.mjs → sessionLock-WYIyaVO4.mjs} +16 -4
- package/dist/{sessionOps-BVoXe12O.mjs → sessionOps-BIGgRube.mjs} +10 -5
- package/dist/{sessionOps-BAnr7n8t.cjs → sessionOps-S-qPBLFf.cjs} +10 -5
- package/dist/{sessionScanner-CDOYsEUD.cjs → sessionScanner-CIMM2hvZ.cjs} +3 -3
- package/dist/{sessionScanner-BtxoeluY.mjs → sessionScanner-o5hnMi5e.mjs} +3 -3
- package/dist/{sessions-C3sZJkzI.mjs → sessions-BJHEZpi2.mjs} +39 -17
- package/dist/{sessions-hAitoN-m.cjs → sessions-JchI1w3z.cjs} +39 -16
- package/dist/{setupOfflineReconnection-C2EeYTFH.cjs → setupOfflineReconnection-CNiAt5ZP.cjs} +2 -2
- package/dist/{setupOfflineReconnection-_eD4cuUT.mjs → setupOfflineReconnection-DMiBO2y9.mjs} +2 -2
- package/dist/{spawn-Bc9v7pIf.cjs → spawn-6PD7nnoC.cjs} +48 -17
- package/dist/{spawn-qNrB2CD_.mjs → spawn-DgvUNYEo.mjs} +48 -17
- package/dist/{spawnAgents-BVEaz35W.cjs → spawnAgents-DsXgegHM.cjs} +37 -1
- package/dist/spawnAgents-P006Hqio.mjs +79 -0
- package/dist/{spawnHappyCLI-C2stUioM.mjs → spawnHappyCLI-CCOrEtf9.mjs} +1 -1
- package/dist/{spawnHappyCLI-fzUagkKV.cjs → spawnHappyCLI-Dywezwk6.cjs} +1 -1
- package/dist/{specialCommands-C6W-rVyh.mjs → specialCommands-DPcd9edP.mjs} +3 -3
- package/dist/{specialCommands-BJ-nqY4s.cjs → specialCommands-QxPpkGKf.cjs} +3 -3
- package/dist/{startFileWatcher-CR09Snmz.mjs → startFileWatcher-DghDOCO4.mjs} +1 -1
- package/dist/{startFileWatcher-Bqlqjt93.cjs → startFileWatcher-RECH5qY8.cjs} +1 -1
- package/dist/{streamRelay-CJoMk_d2.mjs → streamRelay-DMV_TXfS.mjs} +1 -1
- package/dist/{streamRelay-9kBPpbvU.cjs → streamRelay-DlUWKUpo.cjs} +1 -1
- package/dist/{sync-DbW07iQS.mjs → sync-CSe0Rf45.mjs} +1 -1
- package/dist/{sync-Dhmtk66S.cjs → sync-D23jbqVa.cjs} +1 -1
- package/dist/{systemPrompt-3PYi3EUY.cjs → systemPrompt-BOy4kU4P.cjs} +4 -3
- package/dist/{systemPrompt-CQcuUmVp.mjs → systemPrompt-CFNKnh65.mjs} +4 -3
- package/dist/{teams-CwF4Z2fA.mjs → teams-DyY669f0.mjs} +8 -8
- package/dist/{teams-DpxLcUU_.cjs → teams-Ov2BDT-A.cjs} +8 -8
- package/dist/{time-BuGWTVP6.mjs → time-65DcU6Jx.mjs} +1 -1
- package/dist/{time-A6zR3Iy6.cjs → time-CrwIMHta.cjs} +1 -1
- package/dist/{titleGenerator-D26gvNaS.cjs → titleGenerator-CS_rh2_J.cjs} +9 -8
- package/dist/{titleGenerator-BGEzNWC9.mjs → titleGenerator-CiAMxf7s.mjs} +9 -8
- package/dist/{todo-DrZc76H5.mjs → todo-BDONw0sK.mjs} +6 -6
- package/dist/{todo-73g3NCIO.cjs → todo-KY-okGii.cjs} +6 -6
- package/dist/{tools-BtsrQnNS.mjs → tools-D8-PnZEG.mjs} +1 -1
- package/dist/{tools-CxJp4T1T.cjs → tools-_w52DZG6.cjs} +1 -1
- package/dist/{uninstall-DWNYvewQ.cjs → uninstall-8vnLN-IE.cjs} +3 -3
- package/dist/{uninstall-DOb2mTwV.mjs → uninstall-_fjGRP9b.mjs} +3 -3
- package/dist/webPanels-B2_C2-3g.mjs +49 -0
- package/dist/webPanels-FCgFKvVe.cjs +53 -0
- package/package.json +7 -7
- package/dist/selfCheck-CF7XGJPb.mjs +0 -84
- package/dist/sessionModeFile-ByLbXTbg.mjs +0 -32
- package/dist/sessionModeFile-CLLdidiJ.cjs +0 -36
- package/dist/spawnAgents-Bw6j4tqz.mjs +0 -45
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
3
|
+
var _package = require('./package-SgqTYsjn.cjs');
|
|
4
4
|
|
|
5
5
|
const LAZY_MODULES = [
|
|
6
6
|
// Entry
|
|
7
|
-
["main", () => Promise.resolve().then(function () { return require('./main-
|
|
7
|
+
["main", () => Promise.resolve().then(function () { return require('./main-CWhSsbtU.cjs'); })],
|
|
8
8
|
["selfCheck", () => Promise.resolve().then(function () { return selfCheck; })],
|
|
9
9
|
// Subcommands (main.ts)
|
|
10
|
-
["api/api", () => Promise.resolve().then(function () { return require('./api-
|
|
10
|
+
["api/api", () => Promise.resolve().then(function () { return require('./api-Cmjfr8Z7.cjs'); }).then(function (n) { return n.api; })],
|
|
11
11
|
["claude/claudeCliPath", () => Promise.resolve().then(function () { return require('./claudeCliPath-U4HHmV4r.cjs'); })],
|
|
12
|
-
["claude/runClaude", () => Promise.resolve().then(function () { return require('./runClaude-
|
|
13
|
-
["commands/agentHome", () => Promise.resolve().then(function () { return require('./agentHome-
|
|
14
|
-
["commands/auth", () => Promise.resolve().then(function () { return require('./auth-
|
|
15
|
-
["commands/auto", () => Promise.resolve().then(function () { return require('./auto-
|
|
16
|
-
["commands/codexCommand", () => Promise.resolve().then(function () { return require('./codexCommand-
|
|
17
|
-
["commands/connect", () => Promise.resolve().then(function () { return require('./connect-
|
|
12
|
+
["claude/runClaude", () => Promise.resolve().then(function () { return require('./runClaude-CWhj2V4Q.cjs'); })],
|
|
13
|
+
["commands/agentHome", () => Promise.resolve().then(function () { return require('./agentHome-BWcz8mz0.cjs'); })],
|
|
14
|
+
["commands/auth", () => Promise.resolve().then(function () { return require('./auth-HEhRaNgL.cjs'); })],
|
|
15
|
+
["commands/auto", () => Promise.resolve().then(function () { return require('./auto-C6I55iOh.cjs'); })],
|
|
16
|
+
["commands/codexCommand", () => Promise.resolve().then(function () { return require('./codexCommand-CAZ1SLjg.cjs'); })],
|
|
17
|
+
["commands/connect", () => Promise.resolve().then(function () { return require('./connect-uaglGrde.cjs'); })],
|
|
18
18
|
["commands/installPiTools", () => Promise.resolve().then(function () { return require('./installPiTools-BKnXjrVu.cjs'); })],
|
|
19
19
|
["commands/installTerminalHooks", () => Promise.resolve().then(function () { return require('./installTerminalHooks-BQZbvxsZ.cjs'); })],
|
|
20
|
-
["commands/mcp", () => Promise.resolve().then(function () { return require('./mcp-
|
|
21
|
-
["commands/
|
|
22
|
-
["commands/
|
|
23
|
-
["commands/
|
|
24
|
-
["commands/
|
|
25
|
-
["commands/
|
|
26
|
-
["commands/
|
|
27
|
-
["commands/
|
|
28
|
-
["commands/
|
|
20
|
+
["commands/mcp", () => Promise.resolve().then(function () { return require('./mcp-CARUsXHV.cjs'); })],
|
|
21
|
+
["commands/panels", () => Promise.resolve().then(function () { return require('./panels-D1c7q2dD.cjs'); })],
|
|
22
|
+
["commands/piTerminal", () => Promise.resolve().then(function () { return require('./piTerminal-G4z-xVyy.cjs'); })],
|
|
23
|
+
["commands/sandbox", () => Promise.resolve().then(function () { return require('./sandbox-nocIjliq.cjs'); })],
|
|
24
|
+
["commands/send", () => Promise.resolve().then(function () { return require('./send-Dydf_hwZ.cjs'); })],
|
|
25
|
+
["commands/server", () => Promise.resolve().then(function () { return require('./server-CosABFbd.cjs'); })],
|
|
26
|
+
["commands/sessions", () => Promise.resolve().then(function () { return require('./sessions-JchI1w3z.cjs'); })],
|
|
27
|
+
["commands/spawn", () => Promise.resolve().then(function () { return require('./spawn-6PD7nnoC.cjs'); })],
|
|
28
|
+
["commands/teams", () => Promise.resolve().then(function () { return require('./teams-Ov2BDT-A.cjs'); })],
|
|
29
|
+
["commands/todo", () => Promise.resolve().then(function () { return require('./todo-KY-okGii.cjs'); })],
|
|
29
30
|
["daemon/doctor", () => Promise.resolve().then(function () { return require('./doctor-u46qYYKX.cjs'); })],
|
|
30
|
-
["daemon/install", () => Promise.resolve().then(function () { return require('./install-
|
|
31
|
-
["daemon/run", () => Promise.resolve().then(function () { return require('./run-
|
|
32
|
-
["daemon/uninstall", () => Promise.resolve().then(function () { return require('./uninstall-
|
|
33
|
-
["resume/handleResumeCommand", () => Promise.resolve().then(function () { return require('./handleResumeCommand-
|
|
34
|
-
["ui/doctor", () => Promise.resolve().then(function () { return require('./doctor-
|
|
35
|
-
["agent/acp", () => Promise.resolve().then(function () { return require('./index-
|
|
36
|
-
["gemini/runGemini", () => Promise.resolve().then(function () { return require('./runGemini-
|
|
37
|
-
["gemini/utils/config", () => Promise.resolve().then(function () { return require('./config-
|
|
38
|
-
["openclaw/runOpenClaw", () => Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
39
|
-
["persistence", () => Promise.resolve().then(function () { return require('./persistence-
|
|
31
|
+
["daemon/install", () => Promise.resolve().then(function () { return require('./install-CYRZxS87.cjs'); })],
|
|
32
|
+
["daemon/run", () => Promise.resolve().then(function () { return require('./run-CNXwIe0A.cjs'); })],
|
|
33
|
+
["daemon/uninstall", () => Promise.resolve().then(function () { return require('./uninstall-8vnLN-IE.cjs'); })],
|
|
34
|
+
["resume/handleResumeCommand", () => Promise.resolve().then(function () { return require('./handleResumeCommand-tKD_Hpxc.cjs'); })],
|
|
35
|
+
["ui/doctor", () => Promise.resolve().then(function () { return require('./doctor-Br1Kcy2J.cjs'); }).then(function (n) { return n.doctor; })],
|
|
36
|
+
["agent/acp", () => Promise.resolve().then(function () { return require('./index-DMqDMT1Q.cjs'); })],
|
|
37
|
+
["gemini/runGemini", () => Promise.resolve().then(function () { return require('./runGemini-CgRLYbt5.cjs'); })],
|
|
38
|
+
["gemini/utils/config", () => Promise.resolve().then(function () { return require('./config-B0uK6K7n.cjs'); })],
|
|
39
|
+
["openclaw/runOpenClaw", () => Promise.resolve().then(function () { return require('./runOpenClaw-C1NVmzOL.cjs'); })],
|
|
40
|
+
["persistence", () => Promise.resolve().then(function () { return require('./persistence-BegE7NPa.cjs'); }).then(function (n) { return n.persistence; })],
|
|
40
41
|
// Deferred halves of the runners and clients
|
|
41
|
-
["api/apiMachine", () => Promise.resolve().then(function () { return require('./apiMachine-
|
|
42
|
-
["claude/runClaudeDeps", () => Promise.resolve().then(function () { return require('./runClaudeDeps-
|
|
43
|
-
["claude/claudeLocal", () => Promise.resolve().then(function () { return require('./claudeLocal-
|
|
44
|
-
["claude/claudeLocalLauncher", () => Promise.resolve().then(function () { return require('./claudeLocalLauncher-
|
|
45
|
-
["claude/sdk", () => Promise.resolve().then(function () { return require('./index-
|
|
46
|
-
["assistant/bootstrap", () => Promise.resolve().then(function () { return require('./bootstrap-
|
|
47
|
-
["agentHome", () => Promise.resolve().then(function () { return require('./index-
|
|
42
|
+
["api/apiMachine", () => Promise.resolve().then(function () { return require('./apiMachine-G6OogT08.cjs'); })],
|
|
43
|
+
["claude/runClaudeDeps", () => Promise.resolve().then(function () { return require('./runClaudeDeps-B81cOKnH.cjs'); })],
|
|
44
|
+
["claude/claudeLocal", () => Promise.resolve().then(function () { return require('./claudeLocal-re4yjSTx.cjs'); })],
|
|
45
|
+
["claude/claudeLocalLauncher", () => Promise.resolve().then(function () { return require('./claudeLocalLauncher-B4hJHpCA.cjs'); })],
|
|
46
|
+
["claude/sdk", () => Promise.resolve().then(function () { return require('./index-CUuc6iCn.cjs'); })],
|
|
47
|
+
["assistant/bootstrap", () => Promise.resolve().then(function () { return require('./bootstrap-exVucYav.cjs'); })],
|
|
48
|
+
["agentHome", () => Promise.resolve().then(function () { return require('./index-B0UjHlAe.cjs'); })],
|
|
48
49
|
["ui/ink/RemoteModeDisplay", () => Promise.resolve().then(function () { return require('./RemoteModeDisplay-NC1gPHtj.cjs'); })],
|
|
49
50
|
// External packages imported on demand
|
|
50
51
|
["expo-server-sdk", () => import('expo-server-sdk')],
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { readFileSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
|
-
import {
|
|
5
|
-
import { s as sessionWebUrl } from './sessionOps-
|
|
6
|
-
import { d as deliverToSession, s as sendRemoteMessage } from './remoteSessionClient-
|
|
4
|
+
import { c as readPersistedSessions } from './persistence-Cr-wutZ4.mjs';
|
|
5
|
+
import { s as sessionWebUrl } from './sessionOps-BIGgRube.mjs';
|
|
6
|
+
import { d as deliverToSession, s as sendRemoteMessage } from './remoteSessionClient-Bn2qu5C5.mjs';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
|
-
import './configuration-
|
|
8
|
+
import './configuration-WMi4idBB.mjs';
|
|
9
9
|
import 'node:os';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-BPPebGQF.mjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import './authRelay-DhQhkBvX.mjs';
|
|
13
13
|
import 'node:crypto';
|
|
14
14
|
import 'tweetnacl';
|
|
15
|
-
import './logger
|
|
15
|
+
import './logger-BtVhHnD8.mjs';
|
|
16
16
|
import 'node:util';
|
|
17
17
|
import 'axios';
|
|
18
|
-
import './controlClient-
|
|
19
|
-
import './time-
|
|
18
|
+
import './controlClient-BWUJrj3t.mjs';
|
|
19
|
+
import './time-65DcU6Jx.mjs';
|
|
20
20
|
import 'socket.io-client';
|
|
21
21
|
import './backgroundTaskActivity-BVwJBl02.mjs';
|
|
22
22
|
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var persistence = require('./persistence-
|
|
7
|
-
var sessionOps = require('./sessionOps-
|
|
8
|
-
var remoteSessionClient = require('./remoteSessionClient-
|
|
6
|
+
var persistence = require('./persistence-BegE7NPa.cjs');
|
|
7
|
+
var sessionOps = require('./sessionOps-S-qPBLFf.cjs');
|
|
8
|
+
var remoteSessionClient = require('./remoteSessionClient-B7i7MkYV.cjs');
|
|
9
9
|
require('node:fs/promises');
|
|
10
|
-
require('./configuration-
|
|
10
|
+
require('./configuration-CMHZnp6G.cjs');
|
|
11
11
|
require('node:os');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-SgqTYsjn.cjs');
|
|
13
13
|
require('zod');
|
|
14
14
|
require('./authRelay-Dy1qU9td.cjs');
|
|
15
15
|
require('node:crypto');
|
|
16
16
|
require('tweetnacl');
|
|
17
|
-
require('./logger-
|
|
17
|
+
require('./logger-C1GWx3gi.cjs');
|
|
18
18
|
require('node:util');
|
|
19
19
|
require('axios');
|
|
20
|
-
require('./controlClient-
|
|
21
|
-
require('./time-
|
|
20
|
+
require('./controlClient-C-5qCt8W.cjs');
|
|
21
|
+
require('./time-CrwIMHta.cjs');
|
|
22
22
|
require('socket.io-client');
|
|
23
23
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
24
24
|
|
|
@@ -8,15 +8,15 @@ var module$1 = require('node:module');
|
|
|
8
8
|
var node_crypto = require('node:crypto');
|
|
9
9
|
var node_child_process = require('node:child_process');
|
|
10
10
|
var promises = require('node:readline/promises');
|
|
11
|
-
var configuration = require('./configuration-
|
|
12
|
-
var persistence = require('./persistence-
|
|
11
|
+
var configuration = require('./configuration-CMHZnp6G.cjs');
|
|
12
|
+
var persistence = require('./persistence-BegE7NPa.cjs');
|
|
13
13
|
require('node:os');
|
|
14
|
-
require('./package-
|
|
14
|
+
require('./package-SgqTYsjn.cjs');
|
|
15
15
|
require('node:fs/promises');
|
|
16
16
|
require('zod');
|
|
17
17
|
require('./authRelay-Dy1qU9td.cjs');
|
|
18
18
|
require('tweetnacl');
|
|
19
|
-
require('./logger-
|
|
19
|
+
require('./logger-C1GWx3gi.cjs');
|
|
20
20
|
require('node:util');
|
|
21
21
|
|
|
22
22
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -33,9 +33,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('server-
|
|
36
|
+
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('server-CosABFbd.cjs', document.baseURI).href)));
|
|
37
37
|
const __dirname$1 = path.dirname(__filename$1);
|
|
38
|
-
const require_ = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('server-
|
|
38
|
+
const require_ = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('server-CosABFbd.cjs', document.baseURI).href)));
|
|
39
39
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
40
40
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
41
41
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -6,15 +6,15 @@ import { createRequire } from 'node:module';
|
|
|
6
6
|
import { randomBytes } from 'node:crypto';
|
|
7
7
|
import { spawn } from 'node:child_process';
|
|
8
8
|
import { createInterface } from 'node:readline/promises';
|
|
9
|
-
import { c as configuration } from './configuration-
|
|
10
|
-
import { u as updateSettings } from './persistence-
|
|
9
|
+
import { c as configuration } from './configuration-WMi4idBB.mjs';
|
|
10
|
+
import { u as updateSettings } from './persistence-Cr-wutZ4.mjs';
|
|
11
11
|
import 'node:os';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-BPPebGQF.mjs';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import './authRelay-DhQhkBvX.mjs';
|
|
16
16
|
import 'tweetnacl';
|
|
17
|
-
import './logger
|
|
17
|
+
import './logger-BtVhHnD8.mjs';
|
|
18
18
|
import 'node:util';
|
|
19
19
|
|
|
20
20
|
function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, generatedInviteCode) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var persistence = require('./persistence-
|
|
3
|
+
var persistence = require('./persistence-BegE7NPa.cjs');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var configuration = require('./configuration-
|
|
7
|
-
var logger = require('./logger-
|
|
6
|
+
var configuration = require('./configuration-CMHZnp6G.cjs');
|
|
7
|
+
var logger = require('./logger-C1GWx3gi.cjs');
|
|
8
|
+
var processTreeSnapshot = require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
8
9
|
|
|
9
10
|
const PROCESS_IDENTITY_FIELDS = [
|
|
10
11
|
"hostPid",
|
|
@@ -100,6 +101,17 @@ function terminateProcess(pid, onSettled, impl = runtime, graceMs = 2e3) {
|
|
|
100
101
|
}, graceMs);
|
|
101
102
|
return true;
|
|
102
103
|
}
|
|
104
|
+
function terminateProcessTree(pid, onSettled, deps = {}) {
|
|
105
|
+
const snapshot = (deps.snapshot ?? ((root) => processTreeSnapshot.snapshotTree(root)))(pid);
|
|
106
|
+
const reap = deps.reap ?? ((entries) => processTreeSnapshot.killSurvivors(entries));
|
|
107
|
+
return (deps.terminate ?? terminateProcess)(pid, (stopped) => {
|
|
108
|
+
try {
|
|
109
|
+
reap(snapshot);
|
|
110
|
+
} catch {
|
|
111
|
+
}
|
|
112
|
+
onSettled(stopped);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
103
115
|
|
|
104
116
|
const SESSION_LOCK_DIR = "session-locks";
|
|
105
117
|
const defaultRuntime = () => ({
|
|
@@ -211,4 +223,5 @@ exports.mergeReconnectMetadata = mergeReconnectMetadata;
|
|
|
211
223
|
exports.processIdentityFields = processIdentityFields;
|
|
212
224
|
exports.readSessionLock = readSessionLock;
|
|
213
225
|
exports.terminateProcess = terminateProcess;
|
|
226
|
+
exports.terminateProcessTree = terminateProcessTree;
|
|
214
227
|
exports.withoutServerSnapshot = withoutServerSnapshot;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as hibernationReplaySeq } from './persistence-Cr-wutZ4.mjs';
|
|
2
2
|
import { existsSync, readFileSync, unlinkSync, mkdirSync, renameSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { c as configuration, w as writePrivateFileSync } from './configuration-
|
|
5
|
-
import { l as logger } from './logger
|
|
4
|
+
import { c as configuration, w as writePrivateFileSync } from './configuration-WMi4idBB.mjs';
|
|
5
|
+
import { l as logger } from './logger-BtVhHnD8.mjs';
|
|
6
|
+
import { s as snapshotTree, k as killSurvivors } from './processTreeSnapshot-CuLJDNC-.mjs';
|
|
6
7
|
|
|
7
8
|
const PROCESS_IDENTITY_FIELDS = [
|
|
8
9
|
"hostPid",
|
|
@@ -98,6 +99,17 @@ function terminateProcess(pid, onSettled, impl = runtime, graceMs = 2e3) {
|
|
|
98
99
|
}, graceMs);
|
|
99
100
|
return true;
|
|
100
101
|
}
|
|
102
|
+
function terminateProcessTree(pid, onSettled, deps = {}) {
|
|
103
|
+
const snapshot = (deps.snapshot ?? ((root) => snapshotTree(root)))(pid);
|
|
104
|
+
const reap = deps.reap ?? ((entries) => killSurvivors(entries));
|
|
105
|
+
return (deps.terminate ?? terminateProcess)(pid, (stopped) => {
|
|
106
|
+
try {
|
|
107
|
+
reap(snapshot);
|
|
108
|
+
} catch {
|
|
109
|
+
}
|
|
110
|
+
onSettled(stopped);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
101
113
|
|
|
102
114
|
const SESSION_LOCK_DIR = "session-locks";
|
|
103
115
|
const defaultRuntime = () => ({
|
|
@@ -202,4 +214,4 @@ async function claimSessionOrExit(happySessionId, options) {
|
|
|
202
214
|
process.on("exit", () => releaseSessionLock(happySessionId));
|
|
203
215
|
}
|
|
204
216
|
|
|
205
|
-
export { applyServerSnapshot as a, applyHibernationReplay as b, claimSessionOrExit as c, mergeReconnectMetadata as m, processIdentityFields as p, readSessionLock as r, terminateProcess as t, withoutServerSnapshot as w };
|
|
217
|
+
export { applyServerSnapshot as a, applyHibernationReplay as b, claimSessionOrExit as c, terminateProcessTree as d, mergeReconnectMetadata as m, processIdentityFields as p, readSessionLock as r, terminateProcess as t, withoutServerSnapshot as w };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { c as configuration } from './configuration-
|
|
2
|
+
import { c as configuration } from './configuration-WMi4idBB.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, s as stopDaemonSession } from './controlClient-
|
|
5
|
-
import {
|
|
4
|
+
import { l as listDaemonSessions, s as stopDaemonSession } from './controlClient-BWUJrj3t.mjs';
|
|
5
|
+
import { b as readCredentialsForConfiguredRelay, c as readPersistedSessions } from './persistence-Cr-wutZ4.mjs';
|
|
6
6
|
import { randomUUID } from 'node:crypto';
|
|
7
|
-
import { d as delay } from './time-
|
|
7
|
+
import { d as delay } from './time-65DcU6Jx.mjs';
|
|
8
8
|
import { io } from 'socket.io-client';
|
|
9
9
|
import { b as backgroundTasksReport } from './backgroundTaskActivity-BVwJBl02.mjs';
|
|
10
10
|
|
|
@@ -193,6 +193,10 @@ function agentPiece(body) {
|
|
|
193
193
|
}
|
|
194
194
|
return null;
|
|
195
195
|
}
|
|
196
|
+
function isSteerPrompt(body) {
|
|
197
|
+
const b = asRecord(body);
|
|
198
|
+
return !!b && asRecord(b.meta)?.delivery === "steer";
|
|
199
|
+
}
|
|
196
200
|
function userPromptText(body) {
|
|
197
201
|
return isUserPrompt(body) ? body.content.text : null;
|
|
198
202
|
}
|
|
@@ -212,6 +216,7 @@ function analyzeLatestTurn(entries, options = {}) {
|
|
|
212
216
|
let lastMarker = null;
|
|
213
217
|
let startedAfterPrompt = false;
|
|
214
218
|
const emitsStarts = entries.some((entry) => sessionEnvelope(entry.body)?.ev?.t === "turn-start");
|
|
219
|
+
const steerAnchor = userIndex >= 0 && isSteerPrompt(entries[userIndex].body);
|
|
215
220
|
for (let i = userIndex + 1; i < entries.length; i++) {
|
|
216
221
|
const body = entries[i].body;
|
|
217
222
|
if (options.anchor && isUserPrompt(body)) {
|
|
@@ -230,7 +235,7 @@ function analyzeLatestTurn(entries, options = {}) {
|
|
|
230
235
|
}
|
|
231
236
|
if (env?.ev?.t === "turn-end") {
|
|
232
237
|
lastMarker = "end";
|
|
233
|
-
if (userIndex >= 0 && emitsStarts && !startedAfterPrompt) continue;
|
|
238
|
+
if (userIndex >= 0 && emitsStarts && !startedAfterPrompt && !steerAnchor) continue;
|
|
234
239
|
ended = true;
|
|
235
240
|
status = typeof env.ev.status === "string" ? env.ev.status : null;
|
|
236
241
|
error = typeof env.ev.error === "string" ? env.ev.error : null;
|
|
@@ -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-CMHZnp6G.cjs');
|
|
5
5
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
6
|
-
var controlClient = require('./controlClient-
|
|
7
|
-
var persistence = require('./persistence-
|
|
6
|
+
var controlClient = require('./controlClient-C-5qCt8W.cjs');
|
|
7
|
+
var persistence = require('./persistence-BegE7NPa.cjs');
|
|
8
8
|
var node_crypto = require('node:crypto');
|
|
9
|
-
var time = require('./time-
|
|
9
|
+
var time = require('./time-CrwIMHta.cjs');
|
|
10
10
|
var socket_ioClient = require('socket.io-client');
|
|
11
11
|
var backgroundTaskActivity = require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
12
12
|
|
|
@@ -195,6 +195,10 @@ function agentPiece(body) {
|
|
|
195
195
|
}
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
|
+
function isSteerPrompt(body) {
|
|
199
|
+
const b = asRecord(body);
|
|
200
|
+
return !!b && asRecord(b.meta)?.delivery === "steer";
|
|
201
|
+
}
|
|
198
202
|
function userPromptText(body) {
|
|
199
203
|
return isUserPrompt(body) ? body.content.text : null;
|
|
200
204
|
}
|
|
@@ -214,6 +218,7 @@ function analyzeLatestTurn(entries, options = {}) {
|
|
|
214
218
|
let lastMarker = null;
|
|
215
219
|
let startedAfterPrompt = false;
|
|
216
220
|
const emitsStarts = entries.some((entry) => sessionEnvelope(entry.body)?.ev?.t === "turn-start");
|
|
221
|
+
const steerAnchor = userIndex >= 0 && isSteerPrompt(entries[userIndex].body);
|
|
217
222
|
for (let i = userIndex + 1; i < entries.length; i++) {
|
|
218
223
|
const body = entries[i].body;
|
|
219
224
|
if (options.anchor && isUserPrompt(body)) {
|
|
@@ -232,7 +237,7 @@ function analyzeLatestTurn(entries, options = {}) {
|
|
|
232
237
|
}
|
|
233
238
|
if (env?.ev?.t === "turn-end") {
|
|
234
239
|
lastMarker = "end";
|
|
235
|
-
if (userIndex >= 0 && emitsStarts && !startedAfterPrompt) continue;
|
|
240
|
+
if (userIndex >= 0 && emitsStarts && !startedAfterPrompt && !steerAnchor) continue;
|
|
236
241
|
ended = true;
|
|
237
242
|
status = typeof env.ev.status === "string" ? env.ev.status : null;
|
|
238
243
|
error = typeof env.ev.error === "string" ? env.ev.error : null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var sync = require('./sync-
|
|
3
|
+
var sync = require('./sync-D23jbqVa.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-C1GWx3gi.cjs');
|
|
9
|
+
var startFileWatcher = require('./startFileWatcher-RECH5qY8.cjs');
|
|
10
10
|
var path = require('./path-B7zW-WwE.cjs');
|
|
11
11
|
|
|
12
12
|
class Future {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { I as InvalidateSync } from './sync-
|
|
1
|
+
import { I as InvalidateSync } from './sync-CSe0Rf45.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-BtVhHnD8.mjs';
|
|
7
|
+
import { s as startFileWatcher } from './startFileWatcher-DghDOCO4.mjs';
|
|
8
8
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
9
9
|
|
|
10
10
|
class Future {
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
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-
|
|
2
|
+
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-BIGgRube.mjs';
|
|
3
3
|
import { i as isValidSessionId } from './ids-DU6sLx4C.mjs';
|
|
4
|
-
import { c as cliPeerSelf, l as listPeerSessions, s as sendPeerMessage, P as PEER_SCOPES } from './peerTools-
|
|
5
|
-
import {
|
|
4
|
+
import { c as cliPeerSelf, e as executeSessionPeerTool, l as listPeerSessions, s as sendPeerMessage, P as PEER_SCOPES } from './peerTools-CWKzcQ7u.mjs';
|
|
5
|
+
import { c as readPersistedSessions } from './persistence-Cr-wutZ4.mjs';
|
|
6
6
|
import { resolve } from 'node:path';
|
|
7
|
-
import { f as fillForeignAccountRows, l as listRemoteSessions, a as listRemotePeers, w as waitForRemoteTurnEnd, r as readRemoteTranscript } from './remoteSessionClient-
|
|
7
|
+
import { f as fillForeignAccountRows, l as listRemoteSessions, a as listRemotePeers, w as waitForRemoteTurnEnd, r as readRemoteTranscript } from './remoteSessionClient-Bn2qu5C5.mjs';
|
|
8
8
|
import 'axios';
|
|
9
|
-
import './configuration-
|
|
9
|
+
import './configuration-WMi4idBB.mjs';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:os';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-BPPebGQF.mjs';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import './authRelay-DhQhkBvX.mjs';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'tweetnacl';
|
|
17
|
-
import './controlClient-
|
|
18
|
-
import './logger
|
|
17
|
+
import './controlClient-BWUJrj3t.mjs';
|
|
18
|
+
import './logger-BtVhHnD8.mjs';
|
|
19
19
|
import 'node:util';
|
|
20
|
-
import './time-
|
|
20
|
+
import './time-65DcU6Jx.mjs';
|
|
21
21
|
import 'socket.io-client';
|
|
22
22
|
import './backgroundTaskActivity-BVwJBl02.mjs';
|
|
23
23
|
import 'zod';
|
|
24
|
+
import './client-BhoEBnuN.mjs';
|
|
24
25
|
|
|
25
26
|
const MACHINE_ID_RE = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
26
27
|
const ACTIONS = ["list", "read", "stop", "archive", "approve", "deny", "peers", "message"];
|
|
@@ -65,7 +66,7 @@ function parseSessionsArgs(args) {
|
|
|
65
66
|
} else if (arg === "--scope") {
|
|
66
67
|
const value = args[++i];
|
|
67
68
|
if (value === void 0) throw new Error("--scope requires a value");
|
|
68
|
-
if (!PEER_SCOPES.includes(value)) throw new Error(`--scope must be one of ${PEER_SCOPES.join(", ")}`);
|
|
69
|
+
if (value !== "project" && !PEER_SCOPES.includes(value)) throw new Error(`--scope must be one of ${[...PEER_SCOPES, "project"].join(", ")}`);
|
|
69
70
|
options.scope = value;
|
|
70
71
|
} else if (arg === "--cwd") {
|
|
71
72
|
const value = args[++i];
|
|
@@ -162,7 +163,7 @@ ${chalk.bold("Usage:")}
|
|
|
162
163
|
very-happy sessions archive <id> [--json]
|
|
163
164
|
very-happy sessions approve <id> <requestId> [--for-session] [--json]
|
|
164
165
|
very-happy sessions deny <id> <requestId> [--reason <text>] [--json]
|
|
165
|
-
very-happy sessions peers [--scope repo|cwd|machine] [--cwd <dir>] [--machine <id>] [--json]
|
|
166
|
+
very-happy sessions peers [--scope repo|cwd|machine|project] [--cwd <dir>] [--machine <id>] [--json]
|
|
166
167
|
very-happy sessions message <id> <text> [--reply-to <msgId>] [--machine <id>] [--json]
|
|
167
168
|
|
|
168
169
|
${chalk.bold("Actions:")}
|
|
@@ -200,7 +201,10 @@ ${chalk.bold("Actions:")}
|
|
|
200
201
|
managed session's shell, else this CLI) and tells the peer how to
|
|
201
202
|
reply. A session another machine spawned is delivered through
|
|
202
203
|
that machine's daemon, with this host named in the header.
|
|
203
|
-
Refused for sessions that are not running, or terminal mirrors
|
|
204
|
+
Refused for sessions that are not running, or terminal mirrors \u2014
|
|
205
|
+
except a session in the same project as the sender: there the
|
|
206
|
+
message is kept server-side and read on its next turn
|
|
207
|
+
(\`status: offline-stored\`, exit 0).
|
|
204
208
|
\`delivered\` follows \`very-happy send\`: true only when a
|
|
205
209
|
wrapper was attached before and after the POST (\`stored\` = it
|
|
206
210
|
is on the server anyway).
|
|
@@ -225,7 +229,9 @@ ${chalk.bold("Options:")}
|
|
|
225
229
|
--timeout <s> read --wait only: give up after <s> seconds (default 600).
|
|
226
230
|
--for-session approve only: approved_for_session instead of approved.
|
|
227
231
|
--reason <text> deny only: reason forwarded to the wrapper.
|
|
228
|
-
--scope <s> peers only: repo (default) | cwd | machine
|
|
232
|
+
--scope <s> peers only: repo (default) | cwd | machine | project
|
|
233
|
+
(project = the other sessions of the calling session's
|
|
234
|
+
Very Happy project on any machine).
|
|
229
235
|
--cwd <dir> peers only: directory the scope is computed from
|
|
230
236
|
(default: the process cwd, or HAPPY_SESSION_ID's cwd).
|
|
231
237
|
--reply-to <id> message only: the peer message id being answered.
|
|
@@ -249,7 +255,8 @@ ${chalk.bold("Exit codes:")}
|
|
|
249
255
|
2 read --wait: the turn had not ended when --timeout ran out (the
|
|
250
256
|
partial state is still printed)
|
|
251
257
|
0 success (approve/deny: the wrapper acknowledged the verdict; check
|
|
252
|
-
\`settled\` in --json to see whether the request has left the pending set
|
|
258
|
+
\`settled\` in --json to see whether the request has left the pending set;
|
|
259
|
+
message: delivered, or kept for a same-project session's next turn)
|
|
253
260
|
1 bad arguments, unknown session, no machine of the account holds it (or
|
|
254
261
|
its machine is offline / too old), request not pending, session not
|
|
255
262
|
online, or the operation failed (including \`stop\` on a session the
|
|
@@ -282,6 +289,9 @@ function formatAccountSummaryLine(summary) {
|
|
|
282
289
|
parts.push(summary.url);
|
|
283
290
|
return parts.join(" ");
|
|
284
291
|
}
|
|
292
|
+
function peerMessageExitCode(result) {
|
|
293
|
+
return result.delivered || result.status === "offline-stored" ? 0 : 1;
|
|
294
|
+
}
|
|
285
295
|
function permissionFailureRecord(sessionId, requestId, error) {
|
|
286
296
|
return { sessionId, requestId, error: error instanceof Error ? error.message : String(error) };
|
|
287
297
|
}
|
|
@@ -373,8 +383,18 @@ async function handleSessionsCommand(args) {
|
|
|
373
383
|
const cwd = options.cwd ? resolve(options.cwd) : process.cwd();
|
|
374
384
|
const persisted = readPersistedSessions();
|
|
375
385
|
const context = { self: () => cliPeerSelf(process.env, cwd, persisted), readPersisted: () => persisted };
|
|
386
|
+
if (options.action === "peers" && options.scope === "project") {
|
|
387
|
+
const self = cliPeerSelf(process.env, cwd, persisted);
|
|
388
|
+
const listing = await executeSessionPeerTool("session_peers", { scope: "project" }, context);
|
|
389
|
+
if (options.json) console.log(JSON.stringify(listing));
|
|
390
|
+
else if (!listing.project) console.log(`Not in a project (${self.sessionId}).`);
|
|
391
|
+
else if (listing.peers.length === 0) console.log(`No other sessions in project "${listing.project.name}".`);
|
|
392
|
+
else for (const peer of listing.peers) console.log([peer.sessionId, `[${peer.state ?? "?"}]`, peer.title ? `title="${peer.title}"` : "", peer.agent ? `agent=${peer.agent}` : "", peer.machine ? `machine=${peer.machine}` : "", peer.doing ? `doing="${peer.doing}"` : "", peer.url].filter(Boolean).join(" "));
|
|
393
|
+
process.exit(0);
|
|
394
|
+
}
|
|
376
395
|
if (options.action === "peers") {
|
|
377
|
-
const
|
|
396
|
+
const scope = options.scope === "project" ? void 0 : options.scope;
|
|
397
|
+
const listing = options.machine ? await listRemotePeers(options.machine, { ...scope ? { scope } : {}, ...options.cwd ? { cwd: options.cwd } : {} }) : await listPeerSessions(context, scope ?? "repo");
|
|
378
398
|
if (options.json) {
|
|
379
399
|
console.log(JSON.stringify(listing));
|
|
380
400
|
} else if (listing.peers.length === 0) {
|
|
@@ -398,9 +418,11 @@ async function handleSessionsCommand(args) {
|
|
|
398
418
|
const result = await sendPeerMessage(context, { to: target, body: options.text, replyTo: options.replyTo, ...options.machine ? { machineId: options.machine } : {} });
|
|
399
419
|
if (options.json) console.log(JSON.stringify(result));
|
|
400
420
|
else if (result.delivered) console.log(`Message ${result.messageId} delivered to ${target}${result.machine ? ` on ${result.machine.host}` : ""}
|
|
421
|
+
${result.url}`);
|
|
422
|
+
else if (result.status === "offline-stored") console.log(`Message ${result.messageId} ${result.note ?? "stored"} (${target} is not running; same project)
|
|
401
423
|
${result.url}`);
|
|
402
424
|
else console.error(chalk.yellow("Not delivered:"), result.error ?? `session is ${result.status}`, result.stored ? "(stored server-side, unread)" : "");
|
|
403
|
-
process.exit(result
|
|
425
|
+
process.exit(peerMessageExitCode(result));
|
|
404
426
|
} catch (error) {
|
|
405
427
|
if (options.json) console.log(JSON.stringify({ delivered: false, to: target, error: error instanceof Error ? error.message : String(error) }));
|
|
406
428
|
throw error;
|
|
@@ -504,4 +526,4 @@ ${result.url}`);
|
|
|
504
526
|
}
|
|
505
527
|
}
|
|
506
528
|
|
|
507
|
-
export { SESSIONS_HELP, handleSessionsCommand, parseSessionsArgs, permissionFailureRecord };
|
|
529
|
+
export { SESSIONS_HELP, handleSessionsCommand, parseSessionsArgs, peerMessageExitCode, permissionFailureRecord };
|