very-happy-cli 0.2.179 → 0.2.180
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-CHp3y7cb.mjs → AcpBackend-B8Zi30Zh.mjs} +3 -3
- package/dist/{AcpBackend-DFipFF7-.cjs → AcpBackend-DfRDtMcG.cjs} +3 -3
- package/dist/{AcpSessionManager-0zpvRJXc.cjs → AcpSessionManager-CASKOnOj.cjs} +1 -1
- package/dist/{AcpSessionManager-d2-rKWWa.mjs → AcpSessionManager-i8Rab0xT.mjs} +1 -1
- package/dist/{BasePermissionHandler-DdZBYIR4.mjs → BasePermissionHandler-26fKbRCm.mjs} +1 -1
- package/dist/{BasePermissionHandler-CH3zuEkA.cjs → BasePermissionHandler-BlM_tfej.cjs} +1 -1
- package/dist/{acpSessionResume-DTGmAPLt.mjs → acpSessionResume-B9l54P-X.mjs} +1 -1
- package/dist/{acpSessionResume-oiCBnAVA.cjs → acpSessionResume-CR5pmgVo.cjs} +1 -1
- package/dist/{agentHome-BWcz8mz0.cjs → agentHome-C7Sb7-Tz.cjs} +4 -4
- package/dist/{agentHome-CghLvL_1.mjs → agentHome-CmGy0NWv.mjs} +4 -4
- package/dist/{api-Cmjfr8Z7.cjs → api-DM7b1OKj.cjs} +20 -12
- package/dist/{api-CzwFpJQc.mjs → api-Hov8p7CA.mjs} +21 -13
- package/dist/{apiMachine-DJkTEiqy.mjs → apiMachine-CwGEhQDT.mjs} +33 -14
- package/dist/{apiMachine-G6OogT08.cjs → apiMachine-DkGRj-Ai.cjs} +35 -16
- package/dist/{attachmentContent-Bo0UAsSu.cjs → attachmentContent-CEm13_gF.cjs} +2 -2
- package/dist/{attachmentContent-B2os4HbA.mjs → attachmentContent-CIn4iPEk.mjs} +2 -2
- package/dist/{auth-BS6PaOOG.mjs → auth-BG1DY0gj.mjs} +5 -5
- package/dist/{auth-D6bBUwZa.cjs → auth-CBXnm-Mj.cjs} +5 -5
- package/dist/{auth-HEhRaNgL.cjs → auth-Dawj7pP5.cjs} +8 -8
- package/dist/{auth-DMX0xPNK.mjs → auth-rggxMpEE.mjs} +8 -8
- package/dist/{auto-Cl1SEDcD.mjs → auto-CXXLXGeL.mjs} +17 -17
- package/dist/{auto-C6I55iOh.cjs → auto-CbYOfoPS.cjs} +17 -17
- package/dist/{backgroundTaskActivity-BVwJBl02.mjs → backgroundTaskActivity-8PdPxrvy.mjs} +1 -1
- package/dist/{bootstrap-exVucYav.cjs → bootstrap-DoA7okld.cjs} +2 -2
- package/dist/{bootstrap-iuyufnp3.mjs → bootstrap-Dt5I1SOl.mjs} +2 -2
- package/dist/{browser-CSYum7xH.mjs → browser-DUNetFT4.mjs} +1 -1
- package/dist/{browser-BohJK12g.cjs → browser-DZ6qRtfH.cjs} +1 -1
- package/dist/{claudeCliPath-U4HHmV4r.cjs → claudeCliPath-GaP3UUz1.cjs} +1 -1
- package/dist/{claudeLocal-re4yjSTx.cjs → claudeLocal--DNyMOSv.cjs} +7 -7
- package/dist/{claudeLocal-Dq_R3Ax_.mjs → claudeLocal-OHWQigCl.mjs} +5 -5
- package/dist/{claudeLocalLauncher-CN67lN7-.mjs → claudeLocalLauncher-BStvfa7M.mjs} +10 -10
- package/dist/{claudeLocalLauncher-B4hJHpCA.cjs → claudeLocalLauncher-BhvPbcyH.cjs} +12 -12
- package/dist/{claudeSessionFork-DiSMYerV.cjs → claudeSessionFork-Be16vzGc.cjs} +1 -1
- package/dist/{claudeSessionFork-BihfD0Ik.mjs → claudeSessionFork-GAVWhiKG.mjs} +1 -1
- package/dist/{client-CuVdN6PP.cjs → client-BWjaHKtj.cjs} +2 -2
- package/dist/{client-BhoEBnuN.mjs → client-Ca5Pcgy_.mjs} +2 -2
- package/dist/{client-wo9nbxuf.mjs → client-CnB7kRCT.mjs} +2 -2
- package/dist/{client-DuTDwWSQ.mjs → client-D4uPb1uu.mjs} +3 -3
- package/dist/{client-ZjOsn6nZ.cjs → client-DJplzPjD.cjs} +2 -2
- package/dist/{client-BKcK1Bi-.cjs → client-D_loZ9IK.cjs} +3 -3
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +17 -17
- package/dist/{codexAppServerClient-BK3zra_1.mjs → codexAppServerClient-CO4G6OS4.mjs} +3 -3
- package/dist/{codexAppServerClient-Dt5zxrun.cjs → codexAppServerClient-PE-12AsW.cjs} +3 -3
- package/dist/{codexCommand-CAZ1SLjg.cjs → codexCommand-BNoD1t1C.cjs} +80 -74
- package/dist/{codexCommand-B6pY7CMh.mjs → codexCommand-B_xUH79E.mjs} +54 -48
- package/dist/{codexTermination-DmGbHxcD.cjs → codexTermination-BmBbizFK.cjs} +7 -2
- package/dist/{codexTermination-Cd1Eon_4.mjs → codexTermination-Dx48ma6e.mjs} +7 -2
- package/dist/{config-B0uK6K7n.cjs → config-CtwEUxUP.cjs} +26 -26
- package/dist/{config-2oMG_fEI.mjs → config-DSu0Blos.mjs} +3 -3
- package/dist/{configuration-CMHZnp6G.cjs → configuration-CYO-kPOS.cjs} +1 -1
- package/dist/{configuration-WMi4idBB.mjs → configuration-PxzEJumr.mjs} +1 -1
- package/dist/{connect-BLVHhHzA.mjs → connect-BQrg3TB6.mjs} +14 -14
- package/dist/{connect-uaglGrde.cjs → connect-Dq7wndzR.cjs} +27 -27
- package/dist/{context-DXzU5bFM.cjs → context-6TP-iz_c.cjs} +1 -1
- package/dist/{context-DploEcoN.mjs → context-CJGRRGWW.mjs} +1 -1
- package/dist/{controlClient-C-5qCt8W.cjs → controlClient-Bqv5v5OM.cjs} +3 -3
- package/dist/{controlClient-BWUJrj3t.mjs → controlClient-DoeYovwP.mjs} +4 -4
- package/dist/{createSessionMetadata-3uXrJgOW.mjs → createSessionMetadata-DDIChCx8.mjs} +2 -2
- package/dist/{createSessionMetadata-BkIzHALd.cjs → createSessionMetadata-xz767pcG.cjs} +3 -3
- package/dist/{defaultPermissionMode-pS3vmiSg.cjs → defaultPermissionMode-PkZGsQDk.cjs} +2 -2
- package/dist/{defaultPermissionMode-BzxLh20a.mjs → defaultPermissionMode-i5KzdK09.mjs} +2 -2
- package/dist/{detectCLI-DR9ZaN6B.cjs → detectCLI-BuYR_Qxe.cjs} +4 -4
- package/dist/{deterministicJson-D_whDMFd.mjs → deterministicJson-CTEJDqtS.mjs} +12 -12
- package/dist/{deterministicJson-B8z2GPi9.cjs → deterministicJson-xqA6DaOm.cjs} +14 -14
- package/dist/{doctor-Br1Kcy2J.cjs → doctor-BrgSlfXn.cjs} +9 -9
- package/dist/{doctor-CmtSsR2-.mjs → doctor-IctjVh9T.mjs} +8 -8
- package/dist/{doctorReadiness-BCZGcN0a.cjs → doctorReadiness-Dl6yRQCy.cjs} +1 -1
- package/dist/{downloadTarget-BQJK_6oH.cjs → downloadTarget-CEb9che-.cjs} +6 -6
- package/dist/{downloadTarget-BoNwTIH_.mjs → downloadTarget-jbOz1egC.mjs} +6 -6
- package/dist/{ensureDaemonRunning-BRUmsq6J.cjs → ensureDaemonRunning-D-HyjGIX.cjs} +6 -6
- package/dist/{ensureDaemonRunning-Czo9IHJQ.mjs → ensureDaemonRunning-b1e8LCSM.mjs} +5 -5
- package/dist/{handleResumeCommand-tKD_Hpxc.cjs → handleResumeCommand-BvWVuRwH.cjs} +7 -7
- package/dist/{handleResumeCommand-C8thKjqf.mjs → handleResumeCommand-DpaZvm2c.mjs} +6 -6
- package/dist/{index-DMqDMT1Q.cjs → index-B2p2Mut7.cjs} +42 -41
- package/dist/{index-BTxHphpV.mjs → index-BUNnpGFF.mjs} +42 -41
- package/dist/{index-CdQI0C9p.mjs → index-Bsvbgh9e.mjs} +4 -4
- package/dist/{index-B0UjHlAe.cjs → index-C64Ufj4D.cjs} +4 -4
- package/dist/{index-DPOa4NhL.mjs → index-C6Vn5Eac.mjs} +2 -0
- package/dist/{index-BiyC7cZ3.mjs → index-CMf5VbzG.mjs} +4 -4
- package/dist/{index-CUuc6iCn.cjs → index-DmTlDRSL.cjs} +4 -4
- package/dist/{index-C6O2vVjm.cjs → index-Dv0Q48P3.cjs} +2 -0
- package/dist/{index-D09T1m8Y.cjs → index-F2UejqYs.cjs} +3 -3
- package/dist/{index-D3bidoG8.mjs → index-wCbtF4BK.mjs} +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-CYRZxS87.cjs → install-C0ANcEAW.cjs} +7 -7
- package/dist/{install-hnve_9vq.mjs → install-CdzSV7qO.mjs} +3 -3
- package/dist/{installPiTools-BKnXjrVu.cjs → installPiTools-CL_axh_6.cjs} +1 -1
- package/dist/{installTerminalHooks-BQZbvxsZ.cjs → installTerminalHooks-BETLKAtd.cjs} +3 -3
- package/dist/lib.cjs +13 -13
- package/dist/lib.d.cts +177 -1
- package/dist/lib.d.mts +177 -1
- package/dist/lib.mjs +13 -13
- package/dist/{lidState-Dv2wwFTj.cjs → lidState-DWGnm2H4.cjs} +1 -1
- package/dist/{lidState-Bb8fgXg3.mjs → lidState-bBrmaQd2.mjs} +1 -1
- package/dist/{localHappyAgentAuth-DjYvkXvV.cjs → localHappyAgentAuth-DZHQnIW9.cjs} +1 -1
- package/dist/{localHappyAgentAuth-NEU7fax7.mjs → localHappyAgentAuth-Dn1jYDpt.mjs} +1 -1
- package/dist/{logger-BtVhHnD8.mjs → logger-BUngm5Xg.mjs} +2 -2
- package/dist/{logger-C1GWx3gi.cjs → logger-CphW5nUE.cjs} +2 -2
- package/dist/machineMetadata-BQm9YTcI.cjs +79 -0
- package/dist/machineMetadata-BXN_bKU3.mjs +68 -0
- package/dist/{main-CWhSsbtU.cjs → main-B2UV51nK.cjs} +99 -132
- package/dist/{main-B2LWV8DI.mjs → main-DGkdYfEq.mjs} +93 -126
- package/dist/{mcp-CARUsXHV.cjs → mcp-BFvAEIRz.cjs} +15 -15
- package/dist/{mcp-ext92q3Y.mjs → mcp-CbTtbs0f.mjs} +15 -15
- package/dist/{mirrorProtocol-BwYibqry.mjs → mirrorProtocol-BR4luBC0.mjs} +148 -7
- package/dist/{mirrorProtocol-DEy2g1CB.cjs → mirrorProtocol-HKPivs5o.cjs} +150 -4
- package/dist/{package-BPPebGQF.mjs → package-7Ld1YMhh.mjs} +8 -7
- package/dist/{package-SgqTYsjn.cjs → package-KhLqBDX9.cjs} +8 -7
- package/dist/{panels-BZ0_Tt7B.mjs → panels-C7IVqpJk.mjs} +5 -5
- package/dist/{panels-D1c7q2dD.cjs → panels-Njf6GelF.cjs} +5 -5
- package/dist/{peerTools-CWKzcQ7u.mjs → peerTools-BOlDRyhi.mjs} +5 -5
- package/dist/{peerTools-DRQETXaz.cjs → peerTools-DQNlrcqM.cjs} +5 -5
- package/dist/{persistence-BegE7NPa.cjs → persistence-9BMYspxG.cjs} +2 -2
- package/dist/{persistence-Cr-wutZ4.mjs → persistence-BFUOHW5h.mjs} +2 -2
- package/dist/{piRunnerArgs-Cs-378Vz.cjs → piRunnerArgs-DGaq6VYM.cjs} +1 -1
- package/dist/{piRunnerArgs-DwvM_yWA.mjs → piRunnerArgs-H2pgpA5z.mjs} +1 -1
- package/dist/{piRuntime-BG-1td_n.cjs → piRuntime-CT5xv_3h.cjs} +1 -1
- package/dist/{piRuntime-Bue5mnlc.mjs → piRuntime-CdN0JAsa.mjs} +1 -1
- package/dist/{piTerminal-G4z-xVyy.cjs → piTerminal-0FBtXTHK.cjs} +17 -17
- package/dist/{piTerminal-B5x9X5yV.mjs → piTerminal-C4m9YXAV.mjs} +17 -17
- package/dist/projectPath-C3ioB4Bu.cjs +13 -0
- package/dist/{pushNotifications-BdFjDjQe.mjs → pushNotifications-DCiBEVeC.mjs} +7 -3
- package/dist/{pushNotifications-DaLQUyi0.cjs → pushNotifications-DI92havG.cjs} +7 -3
- package/dist/{query-Ctfg-5gy.cjs → query-BETKBrnz.cjs} +1 -1
- package/dist/{query-DYP_W1wp.mjs → query-ywZbQUzR.mjs} +1 -1
- package/dist/{rateLimitWindows-CuEqk_0g.mjs → rateLimitWindows-BkfuUB1a.mjs} +1 -1
- package/dist/{rateLimitWindows-Dj_8voBK.cjs → rateLimitWindows-YRIYVdo4.cjs} +1 -1
- package/dist/{registerCommonHandlers-Cj084Sg7.cjs → registerCommonHandlers-C7a_dUWs.cjs} +30 -30
- package/dist/{registerCommonHandlers-BAlP7SGc.mjs → registerCommonHandlers-CTkCvjxt.mjs} +2 -2
- package/dist/{registerKillSessionHandler-qMju0ZfF.cjs → registerKillSessionHandler-CIsvBrVe.cjs} +6 -6
- package/dist/{registerKillSessionHandler-PD0jWtQo.mjs → registerKillSessionHandler-CaqqRYq6.mjs} +6 -6
- package/dist/{remoteSessionClient-B7i7MkYV.cjs → remoteSessionClient-D843fkzL.cjs} +5 -5
- package/dist/{remoteSessionClient-Bn2qu5C5.mjs → remoteSessionClient-PP-mOKmw.mjs} +5 -5
- package/dist/{reportProgressTool-CM1JFAHg.cjs → reportProgressTool-14AXr959.cjs} +3 -3
- package/dist/{reportProgressTool-gHItlSzz.mjs → reportProgressTool-ZOCNjWHr.mjs} +3 -3
- package/dist/{run-CNXwIe0A.cjs → run-CAOCYYfT.cjs} +2650 -90
- package/dist/{run-BM4TxiyN.mjs → run-Dajw2E5j.mjs} +2644 -84
- package/dist/{runClaude-C_3I8hvR.mjs → runClaude-C6oxWYbp.mjs} +34 -28
- package/dist/{runClaude-CWhj2V4Q.cjs → runClaude-CRRKt-tm.cjs} +35 -29
- package/dist/{runClaudeDeps-B81cOKnH.cjs → runClaudeDeps-B1ysqTvx.cjs} +54 -119
- package/dist/{runClaudeDeps-QGrOeDe2.mjs → runClaudeDeps-BcZ68cX3.mjs} +47 -111
- package/dist/{runGemini-BEdWEZLR.mjs → runGemini-D7yKc4wD.mjs} +35 -35
- package/dist/{runGemini-CgRLYbt5.cjs → runGemini-DtKFXqf-.cjs} +63 -63
- package/dist/{runOpenClaw-DdQZAYj1.mjs → runOpenClaw-C8ilyLP9.mjs} +19 -19
- package/dist/{runOpenClaw-C1NVmzOL.cjs → runOpenClaw-Cq29mryb.cjs} +20 -20
- package/dist/{sandbox-DjQUdCMG.mjs → sandbox-CbCutma4.mjs} +4 -4
- package/dist/{sandbox-nocIjliq.cjs → sandbox-gIj-EuF4.cjs} +4 -4
- package/dist/{selfCheck-DCt4Uzbq.cjs → selfCheck-BTGBVthv.cjs} +39 -39
- package/dist/selfCheck-Smt-5Xiq.mjs +85 -0
- package/dist/{send-Dydf_hwZ.cjs → send-CZf5lLw_.cjs} +8 -8
- package/dist/{send-Ct7X4pPU.mjs → send-YZRMQvMJ.mjs} +9 -9
- package/dist/{server-DTQGZMxh.mjs → server-BqwXRzFZ.mjs} +4 -4
- package/dist/{server-CosABFbd.cjs → server-CknFq6xG.cjs} +6 -6
- package/dist/sessionExitLifecycle-CzkLIgNZ.mjs +142 -0
- package/dist/sessionExitLifecycle-DFltxXU8.cjs +148 -0
- package/dist/{sessionLock-DokGab2R.cjs → sessionLock-DRZUcKHT.cjs} +25 -5
- package/dist/{sessionLock-WYIyaVO4.mjs → sessionLock-nBXdJxJm.mjs} +24 -5
- package/dist/{sessionOps-S-qPBLFf.cjs → sessionOps-BrGiU9-s.cjs} +4 -4
- package/dist/{sessionOps-BIGgRube.mjs → sessionOps-C58iDeD5.mjs} +5 -5
- package/dist/{sessionScanner-o5hnMi5e.mjs → sessionScanner-Bm57LEXe.mjs} +3 -3
- package/dist/{sessionScanner-CIMM2hvZ.cjs → sessionScanner-CaO8bLaG.cjs} +3 -3
- package/dist/{sessions-BJHEZpi2.mjs → sessions-BXyBHo8n.mjs} +11 -11
- package/dist/{sessions-JchI1w3z.cjs → sessions-uzqPCc37.cjs} +10 -10
- package/dist/{setupOfflineReconnection-DMiBO2y9.mjs → setupOfflineReconnection-1Qlek3wl.mjs} +2 -2
- package/dist/{setupOfflineReconnection-CNiAt5ZP.cjs → setupOfflineReconnection-DvvVX3TB.cjs} +2 -2
- package/dist/{spawn-6PD7nnoC.cjs → spawn-DBkodJEO.cjs} +15 -15
- package/dist/{spawn-DgvUNYEo.mjs → spawn-vn93PhYL.mjs} +15 -15
- package/dist/{spawnAgents-P006Hqio.mjs → spawnAgents-CgPMWexP.mjs} +1 -1
- package/dist/{spawnAgents-DsXgegHM.cjs → spawnAgents-DLNMlhWJ.cjs} +1 -1
- package/dist/{spawnHappyCLI-CCOrEtf9.mjs → spawnHappyCLI-BjFZc_7V.mjs} +1 -1
- package/dist/{spawnHappyCLI-Dywezwk6.cjs → spawnHappyCLI-DnUZv0X2.cjs} +2 -2
- package/dist/{specialCommands-QxPpkGKf.cjs → specialCommands-BRufxlqe.cjs} +3 -3
- package/dist/{specialCommands-DPcd9edP.mjs → specialCommands-D3ND9bdg.mjs} +3 -3
- package/dist/{startFileWatcher-RECH5qY8.cjs → startFileWatcher-D9cYzZOq.cjs} +1 -1
- package/dist/{startFileWatcher-DghDOCO4.mjs → startFileWatcher-DXJ7yB5v.mjs} +1 -1
- package/dist/startupSessionCreate-kdr3m1uX.cjs +26 -0
- package/dist/startupSessionCreate-uZ6BM0ty.mjs +24 -0
- package/dist/{streamRelay-DMV_TXfS.mjs → streamRelay-DnMCMMfV.mjs} +1 -1
- package/dist/{streamRelay-DlUWKUpo.cjs → streamRelay-Dy6amlzx.cjs} +1 -1
- package/dist/{sync-D23jbqVa.cjs → sync-Bn-idAoy.cjs} +1 -1
- package/dist/{sync-CSe0Rf45.mjs → sync-BvVhDO40.mjs} +1 -1
- package/dist/{systemPrompt-CFNKnh65.mjs → systemPrompt-CIZcJuJF.mjs} +2 -2
- package/dist/{systemPrompt-BOy4kU4P.cjs → systemPrompt-DlyEk35T.cjs} +2 -2
- package/dist/{teams-Ov2BDT-A.cjs → teams-BLeRpDxv.cjs} +6 -6
- package/dist/{teams-DyY669f0.mjs → teams-DLY3B5yi.mjs} +6 -6
- package/dist/{time-CrwIMHta.cjs → time-Cjv0zxQO.cjs} +1 -1
- package/dist/{time-65DcU6Jx.mjs → time-D3ETL7Jb.mjs} +1 -1
- package/dist/{titleGenerator-CS_rh2_J.cjs → titleGenerator-Cgp5ihFb.cjs} +3 -3
- package/dist/{titleGenerator-CiAMxf7s.mjs → titleGenerator-Uzbd4utr.mjs} +1 -1
- package/dist/{todo-BDONw0sK.mjs → todo-C9Ga-oEM.mjs} +6 -6
- package/dist/{todo-KY-okGii.cjs → todo-pOMcEECE.cjs} +6 -6
- package/dist/{tools-_w52DZG6.cjs → tools-BL7Byl_x.cjs} +1 -1
- package/dist/{tools-D8-PnZEG.mjs → tools-Cho7iIWf.mjs} +1 -1
- package/dist/{uninstall-8vnLN-IE.cjs → uninstall-CbayEVoV.cjs} +6 -6
- package/dist/{uninstall-_fjGRP9b.mjs → uninstall-CvZHVY9C.mjs} +3 -3
- package/package.json +8 -7
- package/dist/machineMetadata-CLHS9sv_.cjs +0 -42
- package/dist/machineMetadata-D-g--oU_.mjs +0 -39
- package/dist/messageBuffer-BWlGgR3A.mjs +0 -71
- package/dist/messageBuffer-fJMH6uY8.cjs +0 -73
- package/dist/projectPath-ChLhdOyt.cjs +0 -13
- package/dist/selfCheck-CjCF4C3v.mjs +0 -85
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
|
|
2
|
-
import { l as logger, g as getLatestDaemonLog } from './logger-
|
|
3
|
-
import { d as readDaemonState, r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-
|
|
4
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
5
|
-
import { p as packageJson } from './package-
|
|
2
|
+
import { l as logger, g as getLatestDaemonLog } from './logger-BUngm5Xg.mjs';
|
|
3
|
+
import { d as readDaemonState, r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-BFUOHW5h.mjs';
|
|
4
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-BG1DY0gj.mjs';
|
|
5
|
+
import { p as packageJson } from './package-7Ld1YMhh.mjs';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { l as listDaemonSessions,
|
|
7
|
+
import { l as listDaemonSessions, f as stopDaemonSession, a as checkIfDaemonRunningAndCleanupStaleState, s as stopDaemon } from './controlClient-DoeYovwP.mjs';
|
|
8
8
|
import { S as SYSTEMD_RESTART_HINT } from './daemonSupervisor-C6urv3_8.mjs';
|
|
9
|
-
import { s as spawnHappyCLI } from './spawnHappyCLI-
|
|
9
|
+
import { s as spawnHappyCLI } from './spawnHappyCLI-BjFZc_7V.mjs';
|
|
10
10
|
import { execFileSync } from 'node:child_process';
|
|
11
|
-
import { e as ensureDaemonRunning, a as extractNoSandboxFlag } from './ensureDaemonRunning-
|
|
11
|
+
import { e as ensureDaemonRunning, a as extractNoSandboxFlag } from './ensureDaemonRunning-b1e8LCSM.mjs';
|
|
12
12
|
import { p as planClaudeStartup } from './startupPlan-DFMyNgAs.mjs';
|
|
13
|
-
import { i as isStandaloneVersionRequest } from './index-
|
|
14
|
-
import { c as configuration } from './configuration-
|
|
13
|
+
import { i as isStandaloneVersionRequest } from './index-wCbtF4BK.mjs';
|
|
14
|
+
import { c as configuration } from './configuration-PxzEJumr.mjs';
|
|
15
15
|
import { d as daemonEndpointsMatch } from './doctorReadiness-C208SMN9.mjs';
|
|
16
|
-
import { p as parsePiRunnerArgs, m as missingPiPrerequisites, a as piSetupMessage, b as piAdapterMissingHint } from './piRunnerArgs-
|
|
16
|
+
import { p as parsePiRunnerArgs, m as missingPiPrerequisites, a as piSetupMessage, b as piAdapterMissingHint } from './piRunnerArgs-H2pgpA5z.mjs';
|
|
17
17
|
import { c as commandOnPath } from './detectCLI-CSGMlV51.mjs';
|
|
18
18
|
import 'node:util';
|
|
19
19
|
import 'node:fs';
|
|
@@ -23,8 +23,8 @@ import './authRelay-DhQhkBvX.mjs';
|
|
|
23
23
|
import 'node:crypto';
|
|
24
24
|
import 'tweetnacl';
|
|
25
25
|
import 'axios';
|
|
26
|
-
import './time-
|
|
27
|
-
import './browser-
|
|
26
|
+
import './time-D3ETL7Jb.mjs';
|
|
27
|
+
import './browser-DUNetFT4.mjs';
|
|
28
28
|
import 'open';
|
|
29
29
|
import 'cross-spawn';
|
|
30
30
|
import './projectPath-BTBIMB57.mjs';
|
|
@@ -32,7 +32,7 @@ import 'path';
|
|
|
32
32
|
import 'url';
|
|
33
33
|
import 'node:module';
|
|
34
34
|
import 'node:os';
|
|
35
|
-
import './acpSessionResume-
|
|
35
|
+
import './acpSessionResume-B9l54P-X.mjs';
|
|
36
36
|
import 'child_process';
|
|
37
37
|
import 'os';
|
|
38
38
|
import 'fs';
|
|
@@ -42,6 +42,24 @@ const CLAUDE_OPTIONS_HELP = `Very Happy forwards most Claude options.
|
|
|
42
42
|
Use Claude flags with very-happy as you would with claude. The --settings flag
|
|
43
43
|
is reserved for Very Happy's session hooks and is ignored with a warning.`;
|
|
44
44
|
|
|
45
|
+
let recorded = false;
|
|
46
|
+
function recordExitReason(code, reason) {
|
|
47
|
+
recorded = true;
|
|
48
|
+
logger.debug(`[EXIT] Exiting with code ${code}: ${oneLine(reason)}`);
|
|
49
|
+
}
|
|
50
|
+
function installExitReasonFallback() {
|
|
51
|
+
process.on("exit", (code) => {
|
|
52
|
+
if (code !== 0 && !recorded) logger.debug(`[EXIT] Exiting with code ${code}: no reason was recorded`);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function errorReason(error) {
|
|
56
|
+
return error instanceof Error ? error.message : String(error ?? "Unknown error");
|
|
57
|
+
}
|
|
58
|
+
function oneLine(value) {
|
|
59
|
+
const line = value.replace(/\s+/g, " ").trim();
|
|
60
|
+
return line.length > 500 ? `${line.slice(0, 499)}\u2026` : line;
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
async function main() {
|
|
46
64
|
const args = process.argv.slice(2);
|
|
47
65
|
if (isStandaloneVersionRequest(args)) {
|
|
@@ -51,6 +69,7 @@ async function main() {
|
|
|
51
69
|
if (!args.includes("--version")) {
|
|
52
70
|
logger.debug("Starting happy CLI with args: ", process.argv);
|
|
53
71
|
}
|
|
72
|
+
installExitReasonFallback();
|
|
54
73
|
const subcommand = args[0];
|
|
55
74
|
if (!args.includes("--version")) ;
|
|
56
75
|
if (subcommand === "doctor") {
|
|
@@ -74,50 +93,34 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
74
93
|
}
|
|
75
94
|
process.exit(0);
|
|
76
95
|
}
|
|
77
|
-
await (await import('./doctor-
|
|
96
|
+
await (await import('./doctor-IctjVh9T.mjs').then(function (n) { return n.d; })).runDoctorCommand();
|
|
78
97
|
return;
|
|
79
98
|
} else if (subcommand === "auth") {
|
|
80
99
|
try {
|
|
81
|
-
await (await import('./auth-
|
|
100
|
+
await (await import('./auth-rggxMpEE.mjs')).handleAuthCommand(args.slice(1));
|
|
82
101
|
} catch (error) {
|
|
83
|
-
|
|
84
|
-
if (process.env.DEBUG) {
|
|
85
|
-
console.error(error);
|
|
86
|
-
}
|
|
87
|
-
process.exit(1);
|
|
102
|
+
failCommand(error);
|
|
88
103
|
}
|
|
89
104
|
return;
|
|
90
105
|
} else if (subcommand === "connect") {
|
|
91
106
|
try {
|
|
92
|
-
await (await import('./connect-
|
|
107
|
+
await (await import('./connect-BQrg3TB6.mjs')).handleConnectCommand(args.slice(1));
|
|
93
108
|
} catch (error) {
|
|
94
|
-
|
|
95
|
-
if (process.env.DEBUG) {
|
|
96
|
-
console.error(error);
|
|
97
|
-
}
|
|
98
|
-
process.exit(1);
|
|
109
|
+
failCommand(error);
|
|
99
110
|
}
|
|
100
111
|
return;
|
|
101
112
|
} else if (subcommand === "sandbox") {
|
|
102
113
|
try {
|
|
103
|
-
await (await import('./sandbox-
|
|
114
|
+
await (await import('./sandbox-CbCutma4.mjs')).handleSandboxCommand(args.slice(1));
|
|
104
115
|
} catch (error) {
|
|
105
|
-
|
|
106
|
-
if (process.env.DEBUG) {
|
|
107
|
-
console.error(error);
|
|
108
|
-
}
|
|
109
|
-
process.exit(1);
|
|
116
|
+
failCommand(error);
|
|
110
117
|
}
|
|
111
118
|
return;
|
|
112
119
|
} else if (subcommand === "server") {
|
|
113
120
|
try {
|
|
114
|
-
await (await import('./server-
|
|
121
|
+
await (await import('./server-BqwXRzFZ.mjs')).handleServerCommand(args.slice(1));
|
|
115
122
|
} catch (error) {
|
|
116
|
-
|
|
117
|
-
if (process.env.DEBUG) {
|
|
118
|
-
console.error(error);
|
|
119
|
-
}
|
|
120
|
-
process.exit(1);
|
|
123
|
+
failCommand(error);
|
|
121
124
|
}
|
|
122
125
|
return;
|
|
123
126
|
} else if (subcommand === "bye") {
|
|
@@ -143,15 +146,11 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
143
146
|
await installTerminalHooks({ remove: command.action === "remove" });
|
|
144
147
|
process.exit(0);
|
|
145
148
|
} catch (error) {
|
|
146
|
-
|
|
147
|
-
if (process.env.DEBUG) {
|
|
148
|
-
console.error(error);
|
|
149
|
-
}
|
|
150
|
-
process.exit(1);
|
|
149
|
+
failCommand(error);
|
|
151
150
|
}
|
|
152
151
|
} else if (subcommand === "agent-home") {
|
|
153
152
|
try {
|
|
154
|
-
const { parseAgentHomeArgs, runAgentHomeCommand } = await import('./agentHome-
|
|
153
|
+
const { parseAgentHomeArgs, runAgentHomeCommand } = await import('./agentHome-CmGy0NWv.mjs');
|
|
155
154
|
await runAgentHomeCommand(parseAgentHomeArgs(args.slice(1)));
|
|
156
155
|
process.exit(0);
|
|
157
156
|
} catch (error) {
|
|
@@ -160,60 +159,40 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
160
159
|
}
|
|
161
160
|
} else if (subcommand === "spawn") {
|
|
162
161
|
try {
|
|
163
|
-
const { handleSpawnCommand } = await import('./spawn-
|
|
162
|
+
const { handleSpawnCommand } = await import('./spawn-vn93PhYL.mjs');
|
|
164
163
|
await handleSpawnCommand(args.slice(1));
|
|
165
164
|
} catch (error) {
|
|
166
|
-
|
|
167
|
-
if (process.env.DEBUG) {
|
|
168
|
-
console.error(error);
|
|
169
|
-
}
|
|
170
|
-
process.exit(1);
|
|
165
|
+
failCommand(error);
|
|
171
166
|
}
|
|
172
167
|
return;
|
|
173
168
|
} else if (subcommand === "sessions") {
|
|
174
169
|
try {
|
|
175
|
-
const { handleSessionsCommand } = await import('./sessions-
|
|
170
|
+
const { handleSessionsCommand } = await import('./sessions-BXyBHo8n.mjs');
|
|
176
171
|
await handleSessionsCommand(args.slice(1));
|
|
177
172
|
} catch (error) {
|
|
178
|
-
|
|
179
|
-
if (process.env.DEBUG) {
|
|
180
|
-
console.error(error);
|
|
181
|
-
}
|
|
182
|
-
process.exit(1);
|
|
173
|
+
failCommand(error);
|
|
183
174
|
}
|
|
184
175
|
return;
|
|
185
176
|
} else if (subcommand === "send") {
|
|
186
177
|
try {
|
|
187
|
-
const { handleSendCommand } = await import('./send-
|
|
178
|
+
const { handleSendCommand } = await import('./send-YZRMQvMJ.mjs');
|
|
188
179
|
await handleSendCommand(args.slice(1));
|
|
189
180
|
} catch (error) {
|
|
190
|
-
|
|
191
|
-
if (process.env.DEBUG) {
|
|
192
|
-
console.error(error);
|
|
193
|
-
}
|
|
194
|
-
process.exit(1);
|
|
181
|
+
failCommand(error);
|
|
195
182
|
}
|
|
196
183
|
return;
|
|
197
184
|
} else if (subcommand === "resume") {
|
|
198
185
|
try {
|
|
199
|
-
await (await import('./handleResumeCommand-
|
|
186
|
+
await (await import('./handleResumeCommand-DpaZvm2c.mjs')).handleResumeCommand(args.slice(1));
|
|
200
187
|
} catch (error) {
|
|
201
|
-
|
|
202
|
-
if (process.env.DEBUG) {
|
|
203
|
-
console.error(error);
|
|
204
|
-
}
|
|
205
|
-
process.exit(1);
|
|
188
|
+
failCommand(error);
|
|
206
189
|
}
|
|
207
190
|
return;
|
|
208
191
|
} else if (subcommand === "codex") {
|
|
209
192
|
try {
|
|
210
|
-
await (await import('./codexCommand-
|
|
193
|
+
await (await import('./codexCommand-B_xUH79E.mjs')).handleCodexCommand(args.slice(1));
|
|
211
194
|
} catch (error) {
|
|
212
|
-
|
|
213
|
-
if (process.env.DEBUG) {
|
|
214
|
-
console.error(error);
|
|
215
|
-
}
|
|
216
|
-
process.exit(1);
|
|
195
|
+
failCommand(error);
|
|
217
196
|
}
|
|
218
197
|
return;
|
|
219
198
|
} else if (subcommand === "gemini") {
|
|
@@ -290,9 +269,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
290
269
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
291
270
|
const projectId = args[3];
|
|
292
271
|
try {
|
|
293
|
-
const { saveGoogleCloudProjectToConfig } = await import('./config-
|
|
294
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await import('./persistence-
|
|
295
|
-
const { ApiClient } = await import('./api-
|
|
272
|
+
const { saveGoogleCloudProjectToConfig } = await import('./config-DSu0Blos.mjs');
|
|
273
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await import('./persistence-BFUOHW5h.mjs').then(function (n) { return n.F; });
|
|
274
|
+
const { ApiClient } = await import('./api-Hov8p7CA.mjs').then(function (n) { return n.b; });
|
|
296
275
|
let userEmail = void 0;
|
|
297
276
|
try {
|
|
298
277
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -323,7 +302,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
323
302
|
}
|
|
324
303
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
325
304
|
try {
|
|
326
|
-
const { readGeminiLocalConfig } = await import('./config-
|
|
305
|
+
const { readGeminiLocalConfig } = await import('./config-DSu0Blos.mjs');
|
|
327
306
|
const config = readGeminiLocalConfig();
|
|
328
307
|
if (config.googleCloudProject) {
|
|
329
308
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -363,7 +342,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
363
342
|
process.exit(0);
|
|
364
343
|
}
|
|
365
344
|
try {
|
|
366
|
-
const { runGemini } = await import('./runGemini-
|
|
345
|
+
const { runGemini } = await import('./runGemini-D7yKc4wD.mjs');
|
|
367
346
|
let startedBy = void 0;
|
|
368
347
|
for (let i = 1; i < args.length; i++) {
|
|
369
348
|
if (args[i] === "--started-by") {
|
|
@@ -376,17 +355,13 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
376
355
|
await ensureDaemonRunning();
|
|
377
356
|
await runGemini({ credentials, startedBy });
|
|
378
357
|
} catch (error) {
|
|
379
|
-
|
|
380
|
-
if (process.env.DEBUG) {
|
|
381
|
-
console.error(error);
|
|
382
|
-
}
|
|
383
|
-
process.exit(1);
|
|
358
|
+
failCommand(error);
|
|
384
359
|
}
|
|
385
360
|
return;
|
|
386
361
|
} else if (subcommand === "pi") {
|
|
387
362
|
if (args[1] === "--terminal") {
|
|
388
363
|
try {
|
|
389
|
-
const { runPiTerminal } = await import('./piTerminal-
|
|
364
|
+
const { runPiTerminal } = await import('./piTerminal-C4m9YXAV.mjs');
|
|
390
365
|
process.exitCode = await runPiTerminal(args.slice(2));
|
|
391
366
|
} catch (error) {
|
|
392
367
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -411,7 +386,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
411
386
|
process.exit(1);
|
|
412
387
|
}
|
|
413
388
|
}
|
|
414
|
-
const { runAcp, resolveAcpAgentConfig } = await import('./index-
|
|
389
|
+
const { runAcp, resolveAcpAgentConfig } = await import('./index-BUNnpGFF.mjs');
|
|
415
390
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
416
391
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
417
392
|
await ensureDaemonRunning();
|
|
@@ -427,8 +402,12 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
427
402
|
onBackendError: printHint,
|
|
428
403
|
resumeAgentSessionId: parsed.resume
|
|
429
404
|
});
|
|
430
|
-
if (hintPrinted)
|
|
405
|
+
if (hintPrinted) {
|
|
406
|
+
recordExitReason(1, "pi adapter prerequisites are missing");
|
|
407
|
+
process.exit(1);
|
|
408
|
+
}
|
|
431
409
|
} catch (error) {
|
|
410
|
+
recordExitReason(1, errorReason(error));
|
|
432
411
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
433
412
|
printHint(error instanceof Error ? error.message : void 0);
|
|
434
413
|
if (process.env.DEBUG) {
|
|
@@ -439,7 +418,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
439
418
|
return;
|
|
440
419
|
} else if (subcommand === "acp") {
|
|
441
420
|
try {
|
|
442
|
-
const { runAcp, resolveAcpAgentConfig } = await import('./index-
|
|
421
|
+
const { runAcp, resolveAcpAgentConfig } = await import('./index-BUNnpGFF.mjs');
|
|
443
422
|
let startedBy = void 0;
|
|
444
423
|
let verbose = false;
|
|
445
424
|
const acpArgs = [];
|
|
@@ -470,16 +449,12 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
470
449
|
args: resolved.args
|
|
471
450
|
});
|
|
472
451
|
} catch (error) {
|
|
473
|
-
|
|
474
|
-
if (process.env.DEBUG) {
|
|
475
|
-
console.error(error);
|
|
476
|
-
}
|
|
477
|
-
process.exit(1);
|
|
452
|
+
failCommand(error);
|
|
478
453
|
}
|
|
479
454
|
return;
|
|
480
455
|
} else if (subcommand === "openclaw") {
|
|
481
456
|
try {
|
|
482
|
-
const { runOpenClaw } = await import('./runOpenClaw-
|
|
457
|
+
const { runOpenClaw } = await import('./runOpenClaw-C8ilyLP9.mjs');
|
|
483
458
|
let startedBy = void 0;
|
|
484
459
|
let verbose = false;
|
|
485
460
|
let gatewayUrl;
|
|
@@ -509,28 +484,20 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
509
484
|
gatewayPassword
|
|
510
485
|
});
|
|
511
486
|
} catch (error) {
|
|
512
|
-
|
|
513
|
-
if (process.env.DEBUG) {
|
|
514
|
-
console.error(error);
|
|
515
|
-
}
|
|
516
|
-
process.exit(1);
|
|
487
|
+
failCommand(error);
|
|
517
488
|
}
|
|
518
489
|
return;
|
|
519
490
|
} else if (subcommand === "logout") {
|
|
520
491
|
console.log(chalk.yellow('Note: "very-happy logout" is deprecated. Use "very-happy auth logout" instead.\n'));
|
|
521
492
|
try {
|
|
522
|
-
await (await import('./auth-
|
|
493
|
+
await (await import('./auth-rggxMpEE.mjs')).handleAuthCommand(["logout"]);
|
|
523
494
|
} catch (error) {
|
|
524
|
-
|
|
525
|
-
if (process.env.DEBUG) {
|
|
526
|
-
console.error(error);
|
|
527
|
-
}
|
|
528
|
-
process.exit(1);
|
|
495
|
+
failCommand(error);
|
|
529
496
|
}
|
|
530
497
|
return;
|
|
531
498
|
} else if (subcommand === "todo") {
|
|
532
499
|
try {
|
|
533
|
-
const { handleTodoCommand } = await import('./todo-
|
|
500
|
+
const { handleTodoCommand } = await import('./todo-C9Ga-oEM.mjs');
|
|
534
501
|
await handleTodoCommand(args.slice(1));
|
|
535
502
|
} catch (error) {
|
|
536
503
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -539,7 +506,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
539
506
|
return;
|
|
540
507
|
} else if (subcommand === "teams") {
|
|
541
508
|
try {
|
|
542
|
-
const { handleTeamsCommand } = await import('./teams-
|
|
509
|
+
const { handleTeamsCommand } = await import('./teams-DLY3B5yi.mjs');
|
|
543
510
|
await handleTeamsCommand(args.slice(1));
|
|
544
511
|
} catch (error) {
|
|
545
512
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -548,7 +515,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
548
515
|
return;
|
|
549
516
|
} else if (subcommand === "auto") {
|
|
550
517
|
try {
|
|
551
|
-
const { handleAutoCommand } = await import('./auto-
|
|
518
|
+
const { handleAutoCommand } = await import('./auto-CXXLXGeL.mjs');
|
|
552
519
|
await handleAutoCommand(args.slice(1));
|
|
553
520
|
} catch (error) {
|
|
554
521
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Automation command failed");
|
|
@@ -560,7 +527,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
560
527
|
return;
|
|
561
528
|
} else if (subcommand === "mcp" && (args.length === 1 || args.length === 2 && args[1] === "--terminal-tools")) {
|
|
562
529
|
try {
|
|
563
|
-
const { handleMcpCommand } = await import('./mcp-
|
|
530
|
+
const { handleMcpCommand } = await import('./mcp-CbTtbs0f.mjs');
|
|
564
531
|
await handleMcpCommand(args[1] === "--terminal-tools");
|
|
565
532
|
} catch (error) {
|
|
566
533
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|
|
@@ -570,7 +537,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
570
537
|
return;
|
|
571
538
|
} else if (subcommand === "panels" || subcommand === "attention") {
|
|
572
539
|
try {
|
|
573
|
-
const { handlePanelsCommand, handleAttentionCommand } = await import('./panels-
|
|
540
|
+
const { handlePanelsCommand, handleAttentionCommand } = await import('./panels-C7IVqpJk.mjs');
|
|
574
541
|
if (subcommand === "panels") await handlePanelsCommand(args.slice(1));
|
|
575
542
|
else await handleAttentionCommand(args.slice(1));
|
|
576
543
|
} catch (error) {
|
|
@@ -582,11 +549,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
582
549
|
try {
|
|
583
550
|
await handleNotifyCommand(args.slice(1));
|
|
584
551
|
} catch (error) {
|
|
585
|
-
|
|
586
|
-
if (process.env.DEBUG) {
|
|
587
|
-
console.error(error);
|
|
588
|
-
}
|
|
589
|
-
process.exit(1);
|
|
552
|
+
failCommand(error);
|
|
590
553
|
}
|
|
591
554
|
return;
|
|
592
555
|
} else if (subcommand === "daemon") {
|
|
@@ -662,13 +625,13 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
662
625
|
}
|
|
663
626
|
process.exit(0);
|
|
664
627
|
} else if (daemonSubcommand === "start-sync") {
|
|
665
|
-
await (await import('./run-
|
|
628
|
+
await (await import('./run-Dajw2E5j.mjs')).startDaemon();
|
|
666
629
|
process.exit(0);
|
|
667
630
|
} else if (daemonSubcommand === "stop") {
|
|
668
631
|
await stopDaemon();
|
|
669
632
|
process.exit(0);
|
|
670
633
|
} else if (daemonSubcommand === "status") {
|
|
671
|
-
await (await import('./doctor-
|
|
634
|
+
await (await import('./doctor-IctjVh9T.mjs').then(function (n) { return n.d; })).runDoctorDaemon();
|
|
672
635
|
process.exit(0);
|
|
673
636
|
} else if (daemonSubcommand === "logs") {
|
|
674
637
|
const latest = await getLatestDaemonLog();
|
|
@@ -680,14 +643,14 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
680
643
|
process.exit(0);
|
|
681
644
|
} else if (daemonSubcommand === "install") {
|
|
682
645
|
try {
|
|
683
|
-
await (await import('./install-
|
|
646
|
+
await (await import('./install-CdzSV7qO.mjs')).install();
|
|
684
647
|
} catch (error) {
|
|
685
648
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
686
649
|
process.exit(1);
|
|
687
650
|
}
|
|
688
651
|
} else if (daemonSubcommand === "uninstall") {
|
|
689
652
|
try {
|
|
690
|
-
await (await import('./uninstall-
|
|
653
|
+
await (await import('./uninstall-CvZHVY9C.mjs')).uninstall();
|
|
691
654
|
} catch (error) {
|
|
692
655
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
693
656
|
process.exit(1);
|
|
@@ -876,14 +839,10 @@ ${chalk.bold.cyan("Claude Code Options (from `claude --help`):")}
|
|
|
876
839
|
await ensureDaemonRunning();
|
|
877
840
|
}
|
|
878
841
|
try {
|
|
879
|
-
const { runClaude } = await import('./runClaude-
|
|
842
|
+
const { runClaude } = await import('./runClaude-C6oxWYbp.mjs');
|
|
880
843
|
await runClaude(credentials, options);
|
|
881
844
|
} catch (error) {
|
|
882
|
-
|
|
883
|
-
if (process.env.DEBUG) {
|
|
884
|
-
console.error(error);
|
|
885
|
-
}
|
|
886
|
-
process.exit(1);
|
|
845
|
+
failCommand(error);
|
|
887
846
|
}
|
|
888
847
|
}
|
|
889
848
|
}
|
|
@@ -935,7 +894,7 @@ ${chalk.bold("Examples:")}
|
|
|
935
894
|
}
|
|
936
895
|
console.log(chalk.blue("\u{1F4F1} Sending push notification..."));
|
|
937
896
|
try {
|
|
938
|
-
const { ApiClient } = await import('./api-
|
|
897
|
+
const { ApiClient } = await import('./api-Hov8p7CA.mjs').then(function (n) { return n.b; });
|
|
939
898
|
const api = await ApiClient.create(credentials);
|
|
940
899
|
const notificationTitle = title || "Happy";
|
|
941
900
|
api.push().sendToAllDevices(
|
|
@@ -956,5 +915,13 @@ ${chalk.bold("Examples:")}
|
|
|
956
915
|
throw error;
|
|
957
916
|
}
|
|
958
917
|
}
|
|
918
|
+
function failCommand(error) {
|
|
919
|
+
recordExitReason(1, errorReason(error));
|
|
920
|
+
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
921
|
+
if (process.env.DEBUG) {
|
|
922
|
+
console.error(error);
|
|
923
|
+
}
|
|
924
|
+
process.exit(1);
|
|
925
|
+
}
|
|
959
926
|
|
|
960
927
|
export { main };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tools = require('./tools-
|
|
3
|
+
var tools = require('./tools-BL7Byl_x.cjs');
|
|
4
4
|
var mcp_js = require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
5
5
|
var stdio_js = require('@modelcontextprotocol/sdk/server/stdio.js');
|
|
6
6
|
var z = require('zod');
|
|
7
|
-
var controlClient = require('./controlClient-
|
|
7
|
+
var controlClient = require('./controlClient-Bqv5v5OM.cjs');
|
|
8
8
|
var limits = require('./limits-C-a7gr04.cjs');
|
|
9
|
-
var downloadTarget = require('./downloadTarget-
|
|
10
|
-
var logger = require('./logger-
|
|
9
|
+
var downloadTarget = require('./downloadTarget-CEb9che-.cjs');
|
|
10
|
+
var logger = require('./logger-CphW5nUE.cjs');
|
|
11
11
|
var previewPath = require('./previewPath-B0rBdhy1.cjs');
|
|
12
12
|
var agentGuidance = require('./agentGuidance-BtBx2xxE.cjs');
|
|
13
13
|
require('node:fs/promises');
|
|
14
14
|
require('node:os');
|
|
15
|
-
require('./persistence-
|
|
16
|
-
require('./configuration-
|
|
15
|
+
require('./persistence-9BMYspxG.cjs');
|
|
16
|
+
require('./configuration-CYO-kPOS.cjs');
|
|
17
17
|
require('node:crypto');
|
|
18
18
|
require('axios');
|
|
19
19
|
require('tweetnacl');
|
|
@@ -23,25 +23,25 @@ require('./terminals-B_bfC9c2.cjs');
|
|
|
23
23
|
require('node:fs');
|
|
24
24
|
require('node:path');
|
|
25
25
|
var terminalTitleSuggest = require('./terminalTitleSuggest-DhvRFX3H.cjs');
|
|
26
|
-
var titleGenerator = require('./titleGenerator-
|
|
26
|
+
var titleGenerator = require('./titleGenerator-Cgp5ihFb.cjs');
|
|
27
27
|
var terminalToolContext = require('./terminalToolContext-DoV9Gs7K.cjs');
|
|
28
|
-
require('./client-
|
|
29
|
-
require('./context-
|
|
30
|
-
require('./sessionOps-
|
|
28
|
+
require('./client-D_loZ9IK.cjs');
|
|
29
|
+
require('./context-6TP-iz_c.cjs');
|
|
30
|
+
require('./sessionOps-BrGiU9-s.cjs');
|
|
31
31
|
require('./authRelay-Dy1qU9td.cjs');
|
|
32
|
-
require('./time-
|
|
32
|
+
require('./time-Cjv0zxQO.cjs');
|
|
33
33
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
34
|
-
require('./remoteSessionClient-
|
|
34
|
+
require('./remoteSessionClient-D843fkzL.cjs');
|
|
35
35
|
require('./ids-B6ZC0HGt.cjs');
|
|
36
|
-
require('./bootstrap-
|
|
36
|
+
require('./bootstrap-DoA7okld.cjs');
|
|
37
37
|
require('chalk');
|
|
38
38
|
require('node:util');
|
|
39
39
|
require('./trimIdent-4gvk9Wk6.cjs');
|
|
40
|
-
require('./package-
|
|
40
|
+
require('./package-KhLqBDX9.cjs');
|
|
41
41
|
require('./tmuxSocket-D-Xt6Vn-.cjs');
|
|
42
42
|
require('node:module');
|
|
43
43
|
require('./oneShotPrompts-CL0dip9C.cjs');
|
|
44
|
-
require('./projectPath-
|
|
44
|
+
require('./projectPath-C3ioB4Bu.cjs');
|
|
45
45
|
require('path');
|
|
46
46
|
require('url');
|
|
47
47
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { r as registerTeamsTools } from './tools-
|
|
1
|
+
import { r as registerTeamsTools } from './tools-Cho7iIWf.mjs';
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { p as pushClipboardViaDaemon,
|
|
5
|
+
import { p as pushClipboardViaDaemon, b as pushFilePreviewViaDaemon, d as setTerminalTitleViaDaemon } from './controlClient-DoeYovwP.mjs';
|
|
6
6
|
import { C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION, c as CLIPBOARD_MAX_BYTES } from './limits-DIo7rEBR.mjs';
|
|
7
|
-
import { c as checkDownloadTarget, r as registerAssistantSessionTools } from './downloadTarget-
|
|
8
|
-
import { l as logger } from './logger-
|
|
7
|
+
import { c as checkDownloadTarget, r as registerAssistantSessionTools } from './downloadTarget-jbOz1egC.mjs';
|
|
8
|
+
import { l as logger } from './logger-BUngm5Xg.mjs';
|
|
9
9
|
import { c as checkPreviewPath } from './previewPath-CXN4Vag0.mjs';
|
|
10
10
|
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, c as PREVIEW_DOWNLOAD_PARAM_DESCRIPTION } from './agentGuidance-BDYt2Qy2.mjs';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
12
|
import 'node:os';
|
|
13
|
-
import './persistence-
|
|
14
|
-
import './configuration-
|
|
13
|
+
import './persistence-BFUOHW5h.mjs';
|
|
14
|
+
import './configuration-PxzEJumr.mjs';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'axios';
|
|
17
17
|
import 'tweetnacl';
|
|
@@ -21,21 +21,21 @@ import './terminals-Dlg0x3nY.mjs';
|
|
|
21
21
|
import 'node:fs';
|
|
22
22
|
import 'node:path';
|
|
23
23
|
import { b as TerminalTitleSuggestRequestSchema } from './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
24
|
-
import { s as suggestTitleForPrompt } from './titleGenerator-
|
|
24
|
+
import { s as suggestTitleForPrompt } from './titleGenerator-Uzbd4utr.mjs';
|
|
25
25
|
import { r as resolveMcpTerminalId } from './terminalToolContext-CFeGeaNm.mjs';
|
|
26
|
-
import './client-
|
|
27
|
-
import './context-
|
|
28
|
-
import './sessionOps-
|
|
26
|
+
import './client-D4uPb1uu.mjs';
|
|
27
|
+
import './context-CJGRRGWW.mjs';
|
|
28
|
+
import './sessionOps-C58iDeD5.mjs';
|
|
29
29
|
import './authRelay-DhQhkBvX.mjs';
|
|
30
|
-
import './time-
|
|
31
|
-
import './backgroundTaskActivity-
|
|
32
|
-
import './remoteSessionClient-
|
|
30
|
+
import './time-D3ETL7Jb.mjs';
|
|
31
|
+
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
32
|
+
import './remoteSessionClient-PP-mOKmw.mjs';
|
|
33
33
|
import './ids-DU6sLx4C.mjs';
|
|
34
|
-
import './bootstrap-
|
|
34
|
+
import './bootstrap-Dt5I1SOl.mjs';
|
|
35
35
|
import 'chalk';
|
|
36
36
|
import 'node:util';
|
|
37
37
|
import './trimIdent-BAjmv_TG.mjs';
|
|
38
|
-
import './package-
|
|
38
|
+
import './package-7Ld1YMhh.mjs';
|
|
39
39
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
40
40
|
import 'node:module';
|
|
41
41
|
import './oneShotPrompts-DT4p6RNd.mjs';
|