very-happy-cli 0.2.163 → 0.2.165
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-CuOUXVRX.mjs → AcpBackend-C11FnVw5.mjs} +3 -3
- package/dist/{AcpBackend-C2rzKnvT.cjs → AcpBackend-DCfNt9bD.cjs} +3 -3
- package/dist/{AcpSessionManager-BvIuBzoO.cjs → AcpSessionManager-9yN2iH4b.cjs} +1 -1
- package/dist/{AcpSessionManager-BSIBnWUb.mjs → AcpSessionManager-BQnDJvct.mjs} +1 -1
- package/dist/{BasePermissionHandler-D6PdH-OU.cjs → BasePermissionHandler-BwQHxl6M.cjs} +1 -1
- package/dist/{BasePermissionHandler-Ng5h8JpY.mjs → BasePermissionHandler-CwJ48yiB.mjs} +1 -1
- package/dist/{BaseReasoningProcessor-C0cXz1mg.cjs → BaseReasoningProcessor-81lf_M8G.cjs} +1 -1
- package/dist/{BaseReasoningProcessor-CM-ijU4F.mjs → BaseReasoningProcessor-ClF2g1qz.mjs} +1 -1
- package/dist/{agentHome-CAMEVRZZ.cjs → agentHome-D3Nn82kI.cjs} +4 -4
- package/dist/{agentHome-Bt4lOwFE.mjs → agentHome-DvR176E5.mjs} +4 -4
- package/dist/{api-DGFBAPr7.cjs → api-AzdzTKFs.cjs} +41 -15
- package/dist/{api-D5kfP3JF.mjs → api-DTVPUE7g.mjs} +41 -15
- package/dist/{apiMachine-C58eizxs.mjs → apiMachine-BQ-b4Lu3.mjs} +20 -17
- package/dist/{apiMachine-BxCy5_No.cjs → apiMachine-B_cJldfa.cjs} +20 -17
- package/dist/{assistantTools-NC7DMNvV.cjs → assistantTools-BsrG3PD-.cjs} +6 -6
- package/dist/{assistantTools-BvKH9eRc.mjs → assistantTools-DPGga5lM.mjs} +6 -6
- package/dist/{attachmentContent-CCE0Y3gR.mjs → attachmentContent-dzIs-wis.mjs} +2 -2
- package/dist/{attachmentContent-CUKdzh4v.cjs → attachmentContent-muDCe4Gy.cjs} +2 -2
- package/dist/{attachmentLimits-D5pgmASK.mjs → attachmentLimits-B8nzhw-i.mjs} +1 -1
- package/dist/{attachmentLimits-DzlBPyJP.cjs → attachmentLimits-eJZ4ZBjF.cjs} +1 -1
- package/dist/{auth-CRm8yNv6.mjs → auth-BY5ujhGn.mjs} +5 -5
- package/dist/{auth-Ddz597Rw.cjs → auth-CfLd3phE.cjs} +5 -5
- package/dist/{auth-CILb5DeW.cjs → auth-DtP-B4gf.cjs} +8 -8
- package/dist/{auth-gdc8gI9D.mjs → auth-Jtmvh1w4.mjs} +8 -8
- package/dist/{auto-CXtt6MfS.cjs → auto-ClNnbSoF.cjs} +14 -14
- package/dist/{auto-lLjHfAOO.mjs → auto-DjWfR1UB.mjs} +14 -14
- package/dist/{bootstrap-CccIDvh4.cjs → bootstrap-B1dMZA-u.cjs} +2 -2
- package/dist/{bootstrap-DSWZAtGy.mjs → bootstrap-D_ExGrY2.mjs} +2 -2
- package/dist/{browser-lizgdXYj.cjs → browser-_gV7tcPs.cjs} +1 -1
- package/dist/{browser-DU9kI-Q-.mjs → browser-mwzpOmcw.mjs} +1 -1
- package/dist/{claudeLocal-CTR2xlPT.mjs → claudeLocal-BeHToEK5.mjs} +5 -5
- package/dist/{claudeLocal-Bp-lf6yb.cjs → claudeLocal-G5UmJ81F.cjs} +5 -5
- package/dist/{claudeLocalLauncher-aQyL3g7I.cjs → claudeLocalLauncher-B4y2BsmO.cjs} +10 -10
- package/dist/{claudeLocalLauncher-DFkwLMqU.mjs → claudeLocalLauncher-Cq6bqAT4.mjs} +10 -10
- package/dist/{claudeSessionFork-DdJFvxwf.cjs → claudeSessionFork-CDJq_b9r.cjs} +1 -1
- package/dist/{claudeSessionFork-DABSCbkf.mjs → claudeSessionFork-CokUhS4r.mjs} +1 -1
- package/dist/{client-BbNFS1WW.mjs → client-BwaWdlCm.mjs} +3 -3
- package/dist/{client-CyUhxs-0.mjs → client-CJZKBZCE.mjs} +2 -2
- package/dist/{client-CXvsRLAz.cjs → client-Do7cGPEq.cjs} +3 -3
- package/dist/{client-CQzHoynf.cjs → client-uN9d6Git.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +15 -15
- package/dist/codex/happyMcpStdioBridge.mjs +15 -15
- package/dist/{codexAppServerClient-Dto99RVH.mjs → codexAppServerClient-B0QaMQsC.mjs} +2 -2
- package/dist/{codexAppServerClient-5jNbTlE5.cjs → codexAppServerClient-BuSdeUxT.cjs} +2 -2
- package/dist/{codexCommand-BHfrAyds.mjs → codexCommand-C3gdjMAw.mjs} +39 -39
- package/dist/{codexCommand-LUp0vkNi.cjs → codexCommand-YdYmykAR.cjs} +39 -39
- package/dist/{config-BEvt_OYR.mjs → config-CGCIFRCN.mjs} +3 -3
- package/dist/{config-CAD5NR1h.cjs → config-ChoHFnfO.cjs} +3 -3
- package/dist/{configuration-CepfrPZ_.cjs → configuration-BE61XNsg.cjs} +1 -1
- package/dist/{configuration-B0c-OP_h.mjs → configuration-L1qcGTFM.mjs} +1 -1
- package/dist/{connect-BeK0dMYB.mjs → connect-CFD0Em6a.mjs} +13 -13
- package/dist/{connect-BPMzMoiQ.cjs → connect-D5IKfcfd.cjs} +13 -13
- package/dist/{context-BhZMRQho.cjs → context-3WVw8qPz.cjs} +1 -1
- package/dist/{context-mMg17HJv.mjs → context-DaCCB4cm.mjs} +1 -1
- package/dist/{controlClient-BKmjlbGs.mjs → controlClient-Ci7HTMII.mjs} +3 -3
- package/dist/{controlClient-HPMsyxLb.cjs → controlClient-RWTlQA4_.cjs} +3 -3
- package/dist/{createSessionMetadata-CGuyVxsM.cjs → createSessionMetadata-CPGTztXP.cjs} +2 -2
- package/dist/{createSessionMetadata-KOL67aSN.mjs → createSessionMetadata-CWR-AB2A.mjs} +2 -2
- package/dist/{deterministicJson-CaWami7M.mjs → deterministicJson-BBwG-Ase.mjs} +9 -9
- package/dist/{deterministicJson-BFzPcsCh.cjs → deterministicJson-C4Jo2RWy.cjs} +9 -9
- package/dist/{doctor-DX2P7IlL.mjs → doctor-CAC6qY9Z.mjs} +6 -6
- package/dist/{doctor-BHNVY9DE.cjs → doctor-ZOQLE5AH.cjs} +6 -6
- package/dist/{ensureDaemonRunning-CnWMrL5b.mjs → ensureDaemonRunning-b1pvEFcS.mjs} +5 -5
- package/dist/{ensureDaemonRunning-BahhZpQ1.cjs → ensureDaemonRunning-mIgX2vnc.cjs} +5 -5
- package/dist/{handleResumeCommand-bToC6FDH.mjs → handleResumeCommand-CTGbZkCL.mjs} +5 -5
- package/dist/{handleResumeCommand-Ca334R4t.cjs → handleResumeCommand-DGNhbv-3.cjs} +5 -5
- package/dist/{index-D3AsOj4j.mjs → index-BgzjPv07.mjs} +3 -3
- package/dist/{index-B6MVw_Xb.cjs → index-BzIxE0Eu.cjs} +3 -3
- package/dist/{index-DoMsO8_G.cjs → index-DIodyAqF.cjs} +4 -4
- package/dist/{index-CpFreRx8.mjs → index-Diu6HdWH.mjs} +4 -4
- package/dist/{index-B5v5fZi6.mjs → index-DjtBengz.mjs} +39 -39
- package/dist/{index-DJ-oV52i.cjs → index-DqlyNgt4.cjs} +6 -1
- package/dist/{index-vFMUVtSL.cjs → index-DrSPR59N.cjs} +38 -38
- package/dist/{index-BBg9j0XK.mjs → index-vVWpCoTr.mjs} +6 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-Dixfzmb_.mjs → install-Cp_aB-NQ.mjs} +3 -3
- package/dist/{install-BnTP73AE.cjs → install-DrUQk2DJ.cjs} +3 -3
- package/dist/lib.cjs +17 -17
- package/dist/lib.d.cts +26 -0
- package/dist/lib.d.mts +26 -0
- package/dist/lib.mjs +17 -17
- package/dist/{lidState-X7iQg4y5.mjs → lidState-BLHLmhwd.mjs} +66 -2
- package/dist/{lidState-BGWXfx1e.cjs → lidState-z9ekRpZu.cjs} +67 -1
- package/dist/{localHappyAgentAuth-D_Gc4K7h.cjs → localHappyAgentAuth-BCx0y1qW.cjs} +1 -1
- package/dist/{localHappyAgentAuth-r83bTscW.mjs → localHappyAgentAuth-BWvmc_Hg.mjs} +1 -1
- package/dist/{logger-BIzr7JN0.mjs → logger-CknSVkIe.mjs} +2 -2
- package/dist/{logger-Ca5eRZ2j.cjs → logger-D0hkk7Vo.cjs} +2 -2
- package/dist/{machineMetadata-GlObivJ-.cjs → machineMetadata-BDCYOXQg.cjs} +3 -3
- package/dist/{machineMetadata-DakW9c61.mjs → machineMetadata-Cj1DoFot.mjs} +3 -3
- package/dist/{main-BJlGidfv.mjs → main-CKUfkVG_.mjs} +44 -44
- package/dist/{main-BfA1Vtqq.cjs → main-COAPGIso.cjs} +44 -44
- package/dist/{mcp-BVzt1llv.cjs → mcp-BILnw4si.cjs} +14 -14
- package/dist/{mcp-Bb7AD1SD.mjs → mcp-DeYUfpo8.mjs} +14 -14
- package/dist/{package-BfnmIH4b.cjs → package-UkmvSFsg.cjs} +8 -8
- package/dist/{package-D-W_r_pd.mjs → package-VIUXrYZ1.mjs} +8 -8
- package/dist/{peerTools-CADjnFDx.cjs → peerTools-CttfOxti.cjs} +4 -4
- package/dist/{peerTools-C1cELmtZ.mjs → peerTools-SWITnkqz.mjs} +4 -4
- package/dist/{persistence-Ceb-BPk6.cjs → persistence-C6ztVW1W.cjs} +3 -3
- package/dist/{persistence-DgBhXxu7.mjs → persistence-DujtUH94.mjs} +3 -3
- package/dist/{piRunnerArgs-CH6oh6w0.mjs → piRunnerArgs-BVJHIjlk.mjs} +1 -1
- package/dist/{piRunnerArgs-Bem-saSg.cjs → piRunnerArgs-tBQg6xDw.cjs} +1 -1
- package/dist/{piRuntime-BRKG6Yoz.mjs → piRuntime-DKFA8u8t.mjs} +1 -1
- package/dist/{piRuntime-Be0UP44z.cjs → piRuntime-DZzjF9It.cjs} +1 -1
- package/dist/{piTerminal-DVOAWiZx.mjs → piTerminal-BTSaFlpV.mjs} +16 -16
- package/dist/{piTerminal-ibKBMmuK.cjs → piTerminal-t5pQHCPT.cjs} +16 -16
- package/dist/{registerCommonHandlers-DPOHFlxp.cjs → registerCommonHandlers--8ds2auE.cjs} +2 -2
- package/dist/{registerCommonHandlers-t15dS7xt.mjs → registerCommonHandlers-BR0J4g64.mjs} +2 -2
- package/dist/{registerKillSessionHandler-DGDubZLv.cjs → registerKillSessionHandler-CI23l8aJ.cjs} +6 -6
- package/dist/{registerKillSessionHandler-BS5afGeA.mjs → registerKillSessionHandler-Czz0tdki.mjs} +6 -6
- package/dist/{remoteSessionClient-DbnVs1Tv.cjs → remoteSessionClient-BAkIwM2S.cjs} +5 -5
- package/dist/{remoteSessionClient-N7JsQ0XS.mjs → remoteSessionClient-DCAUHgPz.mjs} +5 -5
- package/dist/{run-FZRugy70.mjs → run-B75qm2I6.mjs} +57 -51
- package/dist/{run-CptLbkQ4.cjs → run-CkKujjn8.cjs} +58 -52
- package/dist/{runClaude-Cnv0SnA4.cjs → runClaude-B1T9DLLi.cjs} +22 -22
- package/dist/{runClaude-DNW3i-k4.mjs → runClaude-aBfBweec.mjs} +22 -22
- package/dist/{runClaudeDeps-lb6LlVPa.cjs → runClaudeDeps-BGjNGfuZ.cjs} +436 -44
- package/dist/{runClaudeDeps-CpAiml84.mjs → runClaudeDeps-BOrPP4J1.mjs} +441 -49
- package/dist/{runGemini-BzS_Yw3F.cjs → runGemini-BuAA_OQb.cjs} +34 -34
- package/dist/{runGemini-CRn8exeY.mjs → runGemini-a-V7JE-J.mjs} +34 -34
- package/dist/{runOpenClaw-QoDQpR9a.cjs → runOpenClaw-BBVffIh9.cjs} +20 -20
- package/dist/{runOpenClaw-DuS_zRVT.mjs → runOpenClaw-DUSwXg1A.mjs} +20 -20
- package/dist/{sandbox-DysMM_pn.mjs → sandbox-Brb_5wzc.mjs} +4 -4
- package/dist/{sandbox-CT9CGjEI.cjs → sandbox-Fd2G5yaq.cjs} +4 -4
- package/dist/selfCheck-BgwJ3NGS.mjs +84 -0
- package/dist/{selfCheck-DIn7j8MD.cjs → selfCheck-NuJKMInJ.cjs} +34 -34
- package/dist/{send-97xYN_Yw.cjs → send-4dgHKC3u.cjs} +8 -8
- package/dist/{send-CA6fSF3S.mjs → send-DEQJiq_x.mjs} +8 -8
- package/dist/{server-r50NNW9e.mjs → server-C6AlUFkw.mjs} +4 -4
- package/dist/{server-C67NGJoX.cjs → server-DWGcDmHG.cjs} +6 -6
- package/dist/{sessionLock-CS4fdsmu.cjs → sessionLock-B1GgaO1q.cjs} +2 -2
- package/dist/{sessionLock-Dab6_dCd.mjs → sessionLock-Dm8QyGo4.mjs} +2 -2
- package/dist/{sessionModeFile-BhqlFlHZ.cjs → sessionModeFile-BvOEJ4Fl.cjs} +1 -1
- package/dist/{sessionModeFile-3yV7P9R-.mjs → sessionModeFile-CuNAWCKL.mjs} +1 -1
- package/dist/{sessionOps-DJSwzwP-.mjs → sessionOps-DG5MMEp_.mjs} +4 -4
- package/dist/{sessionOps-DWsGWwfZ.cjs → sessionOps-JP64uJmc.cjs} +4 -4
- package/dist/{sessionScanner-D6WqRtJQ.cjs → sessionScanner-BBPEgJ5S.cjs} +3 -3
- package/dist/{sessionScanner-jilpq2aE.mjs → sessionScanner-DqSk5Ol_.mjs} +3 -3
- package/dist/{sessions-RXTp4x0o.mjs → sessions-4isbBAWi.mjs} +9 -9
- package/dist/{sessions-C22q-Z_s.cjs → sessions-DgJuw_i0.cjs} +9 -9
- package/dist/{setupOfflineReconnection-BrnWBRUP.cjs → setupOfflineReconnection-CKJKVIUS.cjs} +2 -2
- package/dist/{setupOfflineReconnection-rd1PCWiN.mjs → setupOfflineReconnection-_MoZtsro.mjs} +2 -2
- package/dist/{spawn-D8CEQPbN.mjs → spawn-BTOG4tTm.mjs} +12 -12
- package/dist/{spawn-Ccy5qAtp.cjs → spawn-CshERWbY.cjs} +12 -12
- package/dist/{spawnAgents-Y1LjnCt9.mjs → spawnAgents-Czi2VDzj.mjs} +1 -1
- package/dist/{spawnAgents-iSu1Xzs5.cjs → spawnAgents-McixdtV1.cjs} +1 -1
- package/dist/{spawnHappyCLI-wowHF2IL.mjs → spawnHappyCLI-Dc4xYm8P.mjs} +1 -1
- package/dist/{spawnHappyCLI-Dz2ZHrsN.cjs → spawnHappyCLI-Dd5_8Vex.cjs} +1 -1
- package/dist/{startFileWatcher-Ce17H9pG.cjs → startFileWatcher-1LedLBY-.cjs} +1 -1
- package/dist/{startFileWatcher-C1wjDI_o.mjs → startFileWatcher-B0VlG-Fn.mjs} +1 -1
- package/dist/{streamRelay-BLgU9X3R.mjs → streamRelay-BzMEEvJU.mjs} +1 -1
- package/dist/{streamRelay-DnObXZZj.cjs → streamRelay-C0AffuX6.cjs} +1 -1
- package/dist/{sync-DnmsgL3w.mjs → sync-Dfm6K2te.mjs} +1 -1
- package/dist/{sync-fDRF_nO1.cjs → sync-DwUUGGFz.cjs} +1 -1
- package/dist/{systemPrompt-9PWg4OU6.cjs → systemPrompt-CB1Ls0AE.cjs} +2 -2
- package/dist/{systemPrompt-Db9O7KGe.mjs → systemPrompt-D41Zw1a3.mjs} +2 -2
- package/dist/{teams-C5PwKr4K.mjs → teams-D8Ly3i6u.mjs} +6 -6
- package/dist/{teams-DkHPUc6j.cjs → teams-NWv2ji16.cjs} +6 -6
- package/dist/{time-xNkWLTSj.cjs → time-BbzJ7PJQ.cjs} +1 -1
- package/dist/{time-TxDyvAKk.mjs → time-v1Y_qEJp.mjs} +1 -1
- package/dist/{titleGenerator-oK414IZc.mjs → titleGenerator-BhoblAQY.mjs} +1 -1
- package/dist/{titleGenerator-C8arvXNG.cjs → titleGenerator-cH6IkPRi.cjs} +2 -2
- package/dist/{todo-CLHIGRUf.mjs → todo-CuNct-fw.mjs} +6 -6
- package/dist/{todo-VqQuYyFq.cjs → todo-D1hgWV6d.cjs} +6 -6
- package/dist/{tools-BSzD246o.mjs → tools-BVRoGcQH.mjs} +2 -2
- package/dist/{tools-xQ38ufgo.cjs → tools-c2fb0CF5.cjs} +1 -1
- package/dist/{tools-sPgOmLr_.mjs → tools-jof0Bu54.mjs} +1 -1
- package/dist/{tools-GnqHEZHb.cjs → tools-mWqsE6ji.cjs} +2 -2
- package/dist/{uninstall-DyoXxpgI.mjs → uninstall-BB7WYYAk.mjs} +3 -3
- package/dist/{uninstall-DKM0j1qI.cjs → uninstall-VPH5GfrA.cjs} +3 -3
- package/package.json +8 -8
- package/dist/selfCheck-BTltA-ZZ.mjs +0 -84
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { execFile, spawn as spawn$1, spawnSync } from 'node:child_process';
|
|
2
|
-
import { p as AGENT_VERSION_SOURCES, q as AUTOMATION_SUMMARY_MAX_CHARS, r as AUTOMATION_CLAIM_MAX_RUNS, t as AUTOMATION_DEFAULT_LEASE_MS, i as isAutomationRunTerminal } from './index-
|
|
3
|
-
import { p as packageJson } from './package-
|
|
4
|
-
import { P as PI_ADAPTER_INSTALL_HINT, s as sanitizeSpawnModel, d as detectDaemonSupervisor } from './piRunnerArgs-
|
|
2
|
+
import { p as AGENT_VERSION_SOURCES, q as AUTOMATION_SUMMARY_MAX_CHARS, r as AUTOMATION_CLAIM_MAX_RUNS, t as AUTOMATION_DEFAULT_LEASE_MS, i as isAutomationRunTerminal } from './index-vVWpCoTr.mjs';
|
|
3
|
+
import { p as packageJson } from './package-VIUXrYZ1.mjs';
|
|
4
|
+
import { P as PI_ADAPTER_INSTALL_HINT, s as sanitizeSpawnModel, d as detectDaemonSupervisor } from './piRunnerArgs-BVJHIjlk.mjs';
|
|
5
5
|
import fs from 'fs/promises';
|
|
6
6
|
import * as tmp from 'tmp';
|
|
7
7
|
import axios from 'axios';
|
|
8
|
-
import { T as TurnActivityTracker, A as ApiClient } from './api-
|
|
9
|
-
import { S as SPAWN_AGENTS, i as isSpawnAgent, s as sanitizeSpawnPermissionMode, r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta } from './spawnAgents-
|
|
10
|
-
import { l as logger } from './logger-
|
|
8
|
+
import { T as TurnActivityTracker, A as ApiClient } from './api-DTVPUE7g.mjs';
|
|
9
|
+
import { S as SPAWN_AGENTS, i as isSpawnAgent, s as sanitizeSpawnPermissionMode, r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta } from './spawnAgents-Czi2VDzj.mjs';
|
|
10
|
+
import { l as logger } from './logger-CknSVkIe.mjs';
|
|
11
11
|
import { readdirSync, statSync, unlinkSync, realpathSync, mkdirSync, writeFileSync, accessSync, constants as constants$1, existsSync, readFileSync, openSync, fsyncSync, closeSync, renameSync } from 'node:fs';
|
|
12
12
|
import { join, isAbsolute, resolve, dirname, sep, basename, delimiter } from 'node:path';
|
|
13
|
-
import { p as pruneStaleCompileCaches } from './index-
|
|
14
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
15
|
-
import { c as configuration, f as ensurePrivateDirectorySync, w as writePrivateFileSync } from './configuration-
|
|
13
|
+
import { p as pruneStaleCompileCaches } from './index-BgzjPv07.mjs';
|
|
14
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-BY5ujhGn.mjs';
|
|
15
|
+
import { c as configuration, f as ensurePrivateDirectorySync, w as writePrivateFileSync } from './configuration-L1qcGTFM.mjs';
|
|
16
16
|
import { spawn, execSync } from 'child_process';
|
|
17
|
-
import { a as globalPrefixForPackage, g as getEnvironmentInfo } from './doctor-
|
|
18
|
-
import { s as spawnHappyCLI } from './spawnHappyCLI-
|
|
19
|
-
import { readPersistedSessions, readSettings, persistSession, readDaemonState, acquireDaemonLock, deletePersistedSessions, writeDaemonState, writeSettings, releaseDaemonLock } from './persistence-
|
|
20
|
-
import { i as isDaemonRunningCurrentlyInstalledHappyVersion, a as stopDaemon, o as cleanupDaemonState } from './controlClient-
|
|
21
|
-
import { e as sendUserMessage, f as readSessionMetadata, r as readSessionTranscript, l as listAccountSessions, a as listSessions, M as MAX_READ_LIMIT, s as sessionWebUrl, g as waitForSessionKey, d as archiveSession, j as analyzeLatestTurn, k as readSessionLog, m as TURN_WINDOW, n as userPromptText } from './sessionOps-
|
|
17
|
+
import { a as globalPrefixForPackage, g as getEnvironmentInfo } from './doctor-CAC6qY9Z.mjs';
|
|
18
|
+
import { s as spawnHappyCLI } from './spawnHappyCLI-Dc4xYm8P.mjs';
|
|
19
|
+
import { readPersistedSessions, readSettings, persistSession, readDaemonState, acquireDaemonLock, deletePersistedSessions, writeDaemonState, writeSettings, releaseDaemonLock } from './persistence-DujtUH94.mjs';
|
|
20
|
+
import { i as isDaemonRunningCurrentlyInstalledHappyVersion, a as stopDaemon, o as cleanupDaemonState } from './controlClient-Ci7HTMII.mjs';
|
|
21
|
+
import { e as sendUserMessage, f as readSessionMetadata, r as readSessionTranscript, l as listAccountSessions, a as listSessions, M as MAX_READ_LIMIT, s as sessionWebUrl, g as waitForSessionKey, d as archiveSession, j as analyzeLatestTurn, k as readSessionLog, m as TURN_WINDOW, n as userPromptText } from './sessionOps-DG5MMEp_.mjs';
|
|
22
22
|
import { i as isClaudeSessionId, e as extractCompleteLines, f as decideBackfill, g as parseTerminalHookPayload, h as decideMirrorBinding, M as MIRROR_BACKFILL_LINES_DEFAULT, m as mirrorLineKey, j as mirrorLocalId, c as summarizeSpawnSessionForLog } from './mirrorProtocol-BNLtoWjO.mjs';
|
|
23
23
|
import fastify from 'fastify';
|
|
24
24
|
import { z } from 'zod';
|
|
@@ -27,55 +27,55 @@ import { d as decodeBase64, e as encodeBase64, h as decrypt } from './authRelay-
|
|
|
27
27
|
import { randomBytes, createHash, timingSafeEqual, randomUUID } from 'node:crypto';
|
|
28
28
|
import { c as checkPreviewPath } from './previewPath-CXN4Vag0.mjs';
|
|
29
29
|
import { a as BACKGROUND_TASKS_MAX, d as BACKGROUND_TASK_DESCRIPTION_MAX, e as BackgroundTaskTracker } from './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
30
|
-
import { f as formatEditConflictNotice, b as SESSION_PEER_SENT_FROM, s as sendPeerMessage, l as listPeerSessions, C as CLI_PEER_SENDER_ID } from './peerTools-
|
|
30
|
+
import { f as formatEditConflictNotice, b as SESSION_PEER_SENT_FROM, s as sendPeerMessage, l as listPeerSessions, C as CLI_PEER_SENDER_ID } from './peerTools-SWITnkqz.mjs';
|
|
31
31
|
import os, { hostname, homedir, userInfo, tmpdir } from 'node:os';
|
|
32
|
-
import { c as RemoteCallBudget, e as REMOTE_WRITE_CALLS_PER_MINUTE, d as deliverToSession, g as guardRemoteSessionOpsRequest, h as remoteError, i as REMOTE_OP_DEADLINE_MS, j as formatRemoteAuditLine, k as REMOTE_SEND_COMMIT_DEADLINE_MS, m as REMOTE_RESUME_WAIT_MS, n as capRemoteTranscript, o as capRemoteText, p as REMOTE_ANSWER_MAX_BYTES, q as REMOTE_TITLE_MAX_BYTES } from './remoteSessionClient-
|
|
33
|
-
import { assistantHome, bootstrapAssistantHome } from './bootstrap-
|
|
34
|
-
import { refreshAgentHomes, locateClaudeConversation, agentHomeSpawnEnv } from './index-
|
|
32
|
+
import { c as RemoteCallBudget, e as REMOTE_WRITE_CALLS_PER_MINUTE, d as deliverToSession, g as guardRemoteSessionOpsRequest, h as remoteError, i as REMOTE_OP_DEADLINE_MS, j as formatRemoteAuditLine, k as REMOTE_SEND_COMMIT_DEADLINE_MS, m as REMOTE_RESUME_WAIT_MS, n as capRemoteTranscript, o as capRemoteText, p as REMOTE_ANSWER_MAX_BYTES, q as REMOTE_TITLE_MAX_BYTES } from './remoteSessionClient-DCAUHgPz.mjs';
|
|
33
|
+
import { assistantHome, bootstrapAssistantHome } from './bootstrap-D_ExGrY2.mjs';
|
|
34
|
+
import { refreshAgentHomes, locateClaudeConversation, agentHomeSpawnEnv } from './index-Diu6HdWH.mjs';
|
|
35
35
|
import { existsSync as existsSync$1, statSync as statSync$1, mkdtempSync, rmSync } from 'fs';
|
|
36
36
|
import { join as join$1 } from 'path';
|
|
37
37
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
38
38
|
import { d as daemonEndpointsMatch, r as resolveClaudeCredentialReadiness } from './doctorReadiness-C208SMN9.mjs';
|
|
39
|
-
import { g as getInitialMachineMetadata, a as getStartupCliAvailability } from './machineMetadata-
|
|
40
|
-
import { buildResumeLaunch } from './handleResumeCommand-
|
|
39
|
+
import { g as getInitialMachineMetadata, a as getStartupCliAvailability } from './machineMetadata-Cj1DoFot.mjs';
|
|
40
|
+
import { buildResumeLaunch } from './handleResumeCommand-CTGbZkCL.mjs';
|
|
41
41
|
import { access, symlink, readFile, rm, unlink, readlink, lstat, constants, stat, open } from 'node:fs/promises';
|
|
42
42
|
import { p as parseExactVersion, c as compareExactVersions, f as fetchCliUpdateState, r as resolveCliUpdateCheckInterval, D as DEFAULT_CLI_UPDATE_CHECK_INTERVAL_MS } from './cliUpdate-Y34VGe9Y.mjs';
|
|
43
43
|
import { createRequire } from 'node:module';
|
|
44
44
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
45
45
|
import { b as extractClaudeEditPaths } from './editPaths-BVfS_FFL.mjs';
|
|
46
|
-
import { s as startFileWatcher } from './startFileWatcher-
|
|
47
|
-
import { I as InvalidateSync } from './sync-
|
|
46
|
+
import { s as startFileWatcher } from './startFileWatcher-B0VlG-Fn.mjs';
|
|
47
|
+
import { I as InvalidateSync } from './sync-Dfm6K2te.mjs';
|
|
48
48
|
import { R as RawJSONLinesSchema } from './types-CkqAACXx.mjs';
|
|
49
49
|
import { t as tmuxArgs, a as scrubTmuxClientEnv, s as shellescape } from './tmuxSocket-B8Yx20sT.mjs';
|
|
50
|
-
import { p as processIdentityFields, r as readSessionLock, t as terminateProcess } from './sessionLock-
|
|
50
|
+
import { p as processIdentityFields, r as readSessionLock, t as terminateProcess } from './sessionLock-Dm8QyGo4.mjs';
|
|
51
51
|
import { findAllHappyProcesses } from './doctor-BPkYWSuq.mjs';
|
|
52
52
|
import { T as TEAM_SKILL } from './resources-BdFBQi8r.mjs';
|
|
53
53
|
import { promisify } from 'node:util';
|
|
54
|
-
import { c as createAutomationsClient, i as isAutomationsUnavailable, d as AutomationsRequestError } from './client-
|
|
54
|
+
import { c as createAutomationsClient, i as isAutomationsUnavailable, d as AutomationsRequestError } from './client-CJZKBZCE.mjs';
|
|
55
55
|
import { c as clipText, r as renderAction, b as renderTemplate } from './template-CiOPa2rd.mjs';
|
|
56
56
|
import { d as describeAgentHome } from './loginShellEnv-Dw8M7tkI.mjs';
|
|
57
57
|
import '@paralleldrive/cuid2';
|
|
58
|
-
import './sessionModeFile-
|
|
58
|
+
import './sessionModeFile-CuNAWCKL.mjs';
|
|
59
|
+
import './lidState-BLHLmhwd.mjs';
|
|
60
|
+
import 'os';
|
|
59
61
|
import 'node:events';
|
|
60
62
|
import 'socket.io-client';
|
|
61
|
-
import './attachmentLimits-
|
|
63
|
+
import './attachmentLimits-B8nzhw-i.mjs';
|
|
62
64
|
import './limits-DIo7rEBR.mjs';
|
|
63
|
-
import './time-
|
|
64
|
-
import './
|
|
65
|
-
import 'os';
|
|
66
|
-
import './registerCommonHandlers-t15dS7xt.mjs';
|
|
65
|
+
import './time-v1Y_qEJp.mjs';
|
|
66
|
+
import './registerCommonHandlers-BR0J4g64.mjs';
|
|
67
67
|
import 'util';
|
|
68
68
|
import 'crypto';
|
|
69
69
|
import 'cross-spawn';
|
|
70
70
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
71
71
|
import 'chalk';
|
|
72
72
|
import 'tweetnacl';
|
|
73
|
-
import './browser-
|
|
73
|
+
import './browser-mwzpOmcw.mjs';
|
|
74
74
|
import 'open';
|
|
75
75
|
import './ids-DU6sLx4C.mjs';
|
|
76
76
|
import 'url';
|
|
77
77
|
import './detectCLI-CSGMlV51.mjs';
|
|
78
|
-
import './localHappyAgentAuth-
|
|
78
|
+
import './localHappyAgentAuth-BWvmc_Hg.mjs';
|
|
79
79
|
import 'ps-list';
|
|
80
80
|
|
|
81
81
|
const AGENT_CHECK_INTERVAL = 6 * 60 * 60 * 1e3;
|
|
@@ -152,6 +152,15 @@ function startAgentVersionChecks(publish, onError, detect = detectAgentVersions)
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
async function resolveRelaunchMetadata(snapshot, fetchServer) {
|
|
156
|
+
try {
|
|
157
|
+
const server = await fetchServer();
|
|
158
|
+
if (server) return { metadata: server, source: "server" };
|
|
159
|
+
} catch {
|
|
160
|
+
}
|
|
161
|
+
return { metadata: snapshot, source: "snapshot" };
|
|
162
|
+
}
|
|
163
|
+
|
|
155
164
|
const DEFAULT_LOG_PRUNE_POLICY = {
|
|
156
165
|
maxAgeMs: 14 * 24 * 60 * 6e4,
|
|
157
166
|
maxTotalBytes: 200 * 1024 * 1024,
|
|
@@ -5104,16 +5113,14 @@ async function startDaemon() {
|
|
|
5104
5113
|
if (!tracked.encryption) {
|
|
5105
5114
|
return { type: "error", errorMessage: `resume-precheck:no-encryption: Session ${happySessionId} has no stored encryption data. It was likely started before this feature was available. Restart the daemon and start a new session to enable resume.` };
|
|
5106
5115
|
}
|
|
5107
|
-
|
|
5108
|
-
const
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
}
|
|
5116
|
-
}
|
|
5116
|
+
const encryption = tracked.encryption;
|
|
5117
|
+
const relaunch = await resolveRelaunchMetadata(
|
|
5118
|
+
tracked.happySessionMetadataFromLocalWebhook,
|
|
5119
|
+
() => fetchServerSessionMetadata(happySessionId, encryption.encryptionKey, encryption.encryptionVariant)
|
|
5120
|
+
);
|
|
5121
|
+
const metadata = relaunch.metadata;
|
|
5122
|
+
tracked.happySessionMetadataFromLocalWebhook = metadata;
|
|
5123
|
+
logger.debug(`[DAEMON RUN] Session ${happySessionId} relaunch metadata from ${relaunch.source}`);
|
|
5117
5124
|
const precheck = resumePrecheck(metadata, {
|
|
5118
5125
|
cwdExists: (p) => existsSync$1(p),
|
|
5119
5126
|
// B-478: also looks in every other Claude config dir the user's shell
|
|
@@ -5238,15 +5245,14 @@ async function startDaemon() {
|
|
|
5238
5245
|
if (!tracked.encryption) {
|
|
5239
5246
|
return { type: "error", errorMessage: `restart-precheck:no-encryption: Session ${happySessionId} has no stored encryption data. Restart the daemon and start a new session.` };
|
|
5240
5247
|
}
|
|
5241
|
-
|
|
5242
|
-
const
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
}
|
|
5248
|
+
const encryption = tracked.encryption;
|
|
5249
|
+
const relaunch = await resolveRelaunchMetadata(
|
|
5250
|
+
tracked.happySessionMetadataFromLocalWebhook,
|
|
5251
|
+
() => fetchServerSessionMetadata(happySessionId, encryption.encryptionKey, encryption.encryptionVariant)
|
|
5252
|
+
);
|
|
5253
|
+
const metadata = relaunch.metadata;
|
|
5254
|
+
tracked.happySessionMetadataFromLocalWebhook = metadata;
|
|
5255
|
+
logger.debug(`[DAEMON RUN] Session ${happySessionId} relaunch metadata from ${relaunch.source}`);
|
|
5250
5256
|
const precheck = resumePrecheck(metadata, {
|
|
5251
5257
|
cwdExists: (p) => existsSync$1(p),
|
|
5252
5258
|
// B-478: also looks in every other Claude config dir the user's shell
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var node_child_process = require('node:child_process');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var _package = require('./package-
|
|
6
|
-
var piRunnerArgs = require('./piRunnerArgs-
|
|
4
|
+
var index = require('./index-DqlyNgt4.cjs');
|
|
5
|
+
var _package = require('./package-UkmvSFsg.cjs');
|
|
6
|
+
var piRunnerArgs = require('./piRunnerArgs-tBQg6xDw.cjs');
|
|
7
7
|
var fs = require('fs/promises');
|
|
8
8
|
var tmp = require('tmp');
|
|
9
9
|
var axios = require('axios');
|
|
10
|
-
var api = require('./api-
|
|
11
|
-
var spawnAgents = require('./spawnAgents-
|
|
12
|
-
var logger = require('./logger-
|
|
10
|
+
var api = require('./api-AzdzTKFs.cjs');
|
|
11
|
+
var spawnAgents = require('./spawnAgents-McixdtV1.cjs');
|
|
12
|
+
var logger = require('./logger-D0hkk7Vo.cjs');
|
|
13
13
|
var node_fs = require('node:fs');
|
|
14
14
|
var path = require('node:path');
|
|
15
|
-
var index$2 = require('./index-
|
|
16
|
-
var auth = require('./auth-
|
|
17
|
-
var configuration = require('./configuration-
|
|
15
|
+
var index$2 = require('./index-BzIxE0Eu.cjs');
|
|
16
|
+
var auth = require('./auth-CfLd3phE.cjs');
|
|
17
|
+
var configuration = require('./configuration-BE61XNsg.cjs');
|
|
18
18
|
var child_process = require('child_process');
|
|
19
|
-
var doctor = require('./doctor-
|
|
20
|
-
var spawnHappyCLI = require('./spawnHappyCLI-
|
|
21
|
-
var persistence = require('./persistence-
|
|
22
|
-
var controlClient = require('./controlClient-
|
|
23
|
-
var sessionOps = require('./sessionOps-
|
|
19
|
+
var doctor = require('./doctor-ZOQLE5AH.cjs');
|
|
20
|
+
var spawnHappyCLI = require('./spawnHappyCLI-Dd5_8Vex.cjs');
|
|
21
|
+
var persistence = require('./persistence-C6ztVW1W.cjs');
|
|
22
|
+
var controlClient = require('./controlClient-RWTlQA4_.cjs');
|
|
23
|
+
var sessionOps = require('./sessionOps-JP64uJmc.cjs');
|
|
24
24
|
var mirrorProtocol = require('./mirrorProtocol-BUtmg1ws.cjs');
|
|
25
25
|
var fastify = require('fastify');
|
|
26
26
|
var z = require('zod');
|
|
@@ -29,55 +29,55 @@ var authRelay = require('./authRelay-BdYkC1Po.cjs');
|
|
|
29
29
|
var node_crypto = require('node:crypto');
|
|
30
30
|
var previewPath = require('./previewPath-B0rBdhy1.cjs');
|
|
31
31
|
var backgroundTaskActivity = require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
32
|
-
var peerTools = require('./peerTools-
|
|
32
|
+
var peerTools = require('./peerTools-CttfOxti.cjs');
|
|
33
33
|
var os = require('node:os');
|
|
34
|
-
var remoteSessionClient = require('./remoteSessionClient-
|
|
35
|
-
var bootstrap = require('./bootstrap-
|
|
36
|
-
var index$1 = require('./index-
|
|
34
|
+
var remoteSessionClient = require('./remoteSessionClient-BAkIwM2S.cjs');
|
|
35
|
+
var bootstrap = require('./bootstrap-B1dMZA-u.cjs');
|
|
36
|
+
var index$1 = require('./index-DIodyAqF.cjs');
|
|
37
37
|
var fs$1 = require('fs');
|
|
38
38
|
var path$2 = require('path');
|
|
39
39
|
var projectPath = require('./projectPath-ChLhdOyt.cjs');
|
|
40
40
|
var doctorReadiness = require('./doctorReadiness-BCZGcN0a.cjs');
|
|
41
|
-
var machineMetadata = require('./machineMetadata-
|
|
42
|
-
var handleResumeCommand = require('./handleResumeCommand-
|
|
41
|
+
var machineMetadata = require('./machineMetadata-BDCYOXQg.cjs');
|
|
42
|
+
var handleResumeCommand = require('./handleResumeCommand-DGNhbv-3.cjs');
|
|
43
43
|
var promises = require('node:fs/promises');
|
|
44
44
|
var cliUpdate = require('./cliUpdate-DsKXPFYp.cjs');
|
|
45
45
|
var module$1 = require('node:module');
|
|
46
46
|
var path$1 = require('./path-B7zW-WwE.cjs');
|
|
47
47
|
var editPaths = require('./editPaths-Bqp4OFPw.cjs');
|
|
48
|
-
var startFileWatcher = require('./startFileWatcher-
|
|
49
|
-
var sync = require('./sync-
|
|
48
|
+
var startFileWatcher = require('./startFileWatcher-1LedLBY-.cjs');
|
|
49
|
+
var sync = require('./sync-DwUUGGFz.cjs');
|
|
50
50
|
var types = require('./types-CRS-srZK.cjs');
|
|
51
51
|
var tmuxSocket = require('./tmuxSocket-D-Xt6Vn-.cjs');
|
|
52
|
-
var sessionLock = require('./sessionLock-
|
|
52
|
+
var sessionLock = require('./sessionLock-B1GgaO1q.cjs');
|
|
53
53
|
var doctor$1 = require('./doctor-u46qYYKX.cjs');
|
|
54
54
|
var resources = require('./resources-JDPugcDq.cjs');
|
|
55
55
|
var node_util = require('node:util');
|
|
56
|
-
var client = require('./client-
|
|
56
|
+
var client = require('./client-uN9d6Git.cjs');
|
|
57
57
|
var template = require('./template-BaHAmH2K.cjs');
|
|
58
58
|
var loginShellEnv = require('./loginShellEnv-BkuYtExZ.cjs');
|
|
59
59
|
require('@paralleldrive/cuid2');
|
|
60
|
-
require('./sessionModeFile-
|
|
60
|
+
require('./sessionModeFile-BvOEJ4Fl.cjs');
|
|
61
|
+
require('./lidState-z9ekRpZu.cjs');
|
|
62
|
+
require('os');
|
|
61
63
|
require('node:events');
|
|
62
64
|
require('socket.io-client');
|
|
63
|
-
require('./attachmentLimits-
|
|
65
|
+
require('./attachmentLimits-eJZ4ZBjF.cjs');
|
|
64
66
|
require('./limits-C-a7gr04.cjs');
|
|
65
|
-
require('./time-
|
|
66
|
-
require('./
|
|
67
|
-
require('os');
|
|
68
|
-
require('./registerCommonHandlers-DPOHFlxp.cjs');
|
|
67
|
+
require('./time-BbzJ7PJQ.cjs');
|
|
68
|
+
require('./registerCommonHandlers--8ds2auE.cjs');
|
|
69
69
|
require('util');
|
|
70
70
|
require('crypto');
|
|
71
71
|
require('cross-spawn');
|
|
72
72
|
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
73
73
|
require('chalk');
|
|
74
74
|
require('tweetnacl');
|
|
75
|
-
require('./browser-
|
|
75
|
+
require('./browser-_gV7tcPs.cjs');
|
|
76
76
|
require('open');
|
|
77
77
|
require('./ids-B6ZC0HGt.cjs');
|
|
78
78
|
require('url');
|
|
79
79
|
require('./detectCLI-DR9ZaN6B.cjs');
|
|
80
|
-
require('./localHappyAgentAuth-
|
|
80
|
+
require('./localHappyAgentAuth-BCx0y1qW.cjs');
|
|
81
81
|
require('ps-list');
|
|
82
82
|
|
|
83
83
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -174,6 +174,15 @@ function startAgentVersionChecks(publish, onError, detect = detectAgentVersions)
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
async function resolveRelaunchMetadata(snapshot, fetchServer) {
|
|
178
|
+
try {
|
|
179
|
+
const server = await fetchServer();
|
|
180
|
+
if (server) return { metadata: server, source: "server" };
|
|
181
|
+
} catch {
|
|
182
|
+
}
|
|
183
|
+
return { metadata: snapshot, source: "snapshot" };
|
|
184
|
+
}
|
|
185
|
+
|
|
177
186
|
const DEFAULT_LOG_PRUNE_POLICY = {
|
|
178
187
|
maxAgeMs: 14 * 24 * 60 * 6e4,
|
|
179
188
|
maxTotalBytes: 200 * 1024 * 1024,
|
|
@@ -2497,7 +2506,7 @@ function parseJsonObject(text) {
|
|
|
2497
2506
|
return null;
|
|
2498
2507
|
}
|
|
2499
2508
|
}
|
|
2500
|
-
function resolveSdkClaudeBinary(platform = process.platform, arch = process.arch, resolver = (s) => module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('run-
|
|
2509
|
+
function resolveSdkClaudeBinary(platform = process.platform, arch = process.arch, resolver = (s) => module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('run-CkKujjn8.cjs', document.baseURI).href))).resolve(s)) {
|
|
2501
2510
|
const platformArch = `${platform}-${arch}`;
|
|
2502
2511
|
const candidates = [
|
|
2503
2512
|
`@anthropic-ai/claude-agent-sdk-${platformArch}/claude`,
|
|
@@ -5126,16 +5135,14 @@ async function startDaemon() {
|
|
|
5126
5135
|
if (!tracked.encryption) {
|
|
5127
5136
|
return { type: "error", errorMessage: `resume-precheck:no-encryption: Session ${happySessionId} has no stored encryption data. It was likely started before this feature was available. Restart the daemon and start a new session to enable resume.` };
|
|
5128
5137
|
}
|
|
5129
|
-
|
|
5130
|
-
const
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
}
|
|
5138
|
-
}
|
|
5138
|
+
const encryption = tracked.encryption;
|
|
5139
|
+
const relaunch = await resolveRelaunchMetadata(
|
|
5140
|
+
tracked.happySessionMetadataFromLocalWebhook,
|
|
5141
|
+
() => fetchServerSessionMetadata(happySessionId, encryption.encryptionKey, encryption.encryptionVariant)
|
|
5142
|
+
);
|
|
5143
|
+
const metadata = relaunch.metadata;
|
|
5144
|
+
tracked.happySessionMetadataFromLocalWebhook = metadata;
|
|
5145
|
+
logger.logger.debug(`[DAEMON RUN] Session ${happySessionId} relaunch metadata from ${relaunch.source}`);
|
|
5139
5146
|
const precheck = resumePrecheck(metadata, {
|
|
5140
5147
|
cwdExists: (p) => fs$1.existsSync(p),
|
|
5141
5148
|
// B-478: also looks in every other Claude config dir the user's shell
|
|
@@ -5260,15 +5267,14 @@ async function startDaemon() {
|
|
|
5260
5267
|
if (!tracked.encryption) {
|
|
5261
5268
|
return { type: "error", errorMessage: `restart-precheck:no-encryption: Session ${happySessionId} has no stored encryption data. Restart the daemon and start a new session.` };
|
|
5262
5269
|
}
|
|
5263
|
-
|
|
5264
|
-
const
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
}
|
|
5270
|
+
const encryption = tracked.encryption;
|
|
5271
|
+
const relaunch = await resolveRelaunchMetadata(
|
|
5272
|
+
tracked.happySessionMetadataFromLocalWebhook,
|
|
5273
|
+
() => fetchServerSessionMetadata(happySessionId, encryption.encryptionKey, encryption.encryptionVariant)
|
|
5274
|
+
);
|
|
5275
|
+
const metadata = relaunch.metadata;
|
|
5276
|
+
tracked.happySessionMetadataFromLocalWebhook = metadata;
|
|
5277
|
+
logger.logger.debug(`[DAEMON RUN] Session ${happySessionId} relaunch metadata from ${relaunch.source}`);
|
|
5272
5278
|
const precheck = resumePrecheck(metadata, {
|
|
5273
5279
|
cwdExists: (p) => fs$1.existsSync(p),
|
|
5274
5280
|
// B-478: also looks in every other Claude config dir the user's shell
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var os = require('node:os');
|
|
4
|
-
var sessionLock = require('./sessionLock-
|
|
4
|
+
var sessionLock = require('./sessionLock-B1GgaO1q.cjs');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var api = require('./api-
|
|
7
|
-
var logger = require('./logger-
|
|
8
|
-
var _package = require('./package-
|
|
9
|
-
var persistence = require('./persistence-
|
|
10
|
-
var createSessionMetadata = require('./createSessionMetadata-
|
|
11
|
-
var index = require('./index-
|
|
6
|
+
var api = require('./api-AzdzTKFs.cjs');
|
|
7
|
+
var logger = require('./logger-D0hkk7Vo.cjs');
|
|
8
|
+
var _package = require('./package-UkmvSFsg.cjs');
|
|
9
|
+
var persistence = require('./persistence-C6ztVW1W.cjs');
|
|
10
|
+
var createSessionMetadata = require('./createSessionMetadata-CPGTztXP.cjs');
|
|
11
|
+
var index = require('./index-DqlyNgt4.cjs');
|
|
12
12
|
var forkBackfill = require('./forkBackfill-8eLDeS73.cjs');
|
|
13
|
-
var configuration = require('./configuration-
|
|
14
|
-
var controlClient = require('./controlClient-
|
|
15
|
-
var machineMetadata = require('./machineMetadata-
|
|
13
|
+
var configuration = require('./configuration-BE61XNsg.cjs');
|
|
14
|
+
var controlClient = require('./controlClient-RWTlQA4_.cjs');
|
|
15
|
+
var machineMetadata = require('./machineMetadata-BDCYOXQg.cjs');
|
|
16
16
|
var projectPath = require('./projectPath-ChLhdOyt.cjs');
|
|
17
17
|
var path = require('node:path');
|
|
18
18
|
var permissionMode = require('./permissionMode-CrV-XuMs.cjs');
|
|
19
19
|
var authRelay = require('./authRelay-BdYkC1Po.cjs');
|
|
20
20
|
var promises = require('node:fs/promises');
|
|
21
21
|
var defaultPermissionMode = require('./defaultPermissionMode-CxmTXUQR.cjs');
|
|
22
|
-
var attachmentContent = require('./attachmentContent-
|
|
22
|
+
var attachmentContent = require('./attachmentContent-muDCe4Gy.cjs');
|
|
23
23
|
var startupPlan = require('./startupPlan-BLMbfQIH.cjs');
|
|
24
24
|
require('node:fs');
|
|
25
25
|
require('axios');
|
|
26
|
+
require('./lidState-z9ekRpZu.cjs');
|
|
27
|
+
require('os');
|
|
28
|
+
require('child_process');
|
|
26
29
|
require('node:events');
|
|
27
30
|
require('socket.io-client');
|
|
28
|
-
require('./attachmentLimits-
|
|
31
|
+
require('./attachmentLimits-eJZ4ZBjF.cjs');
|
|
29
32
|
require('zod');
|
|
30
33
|
require('./limits-C-a7gr04.cjs');
|
|
31
|
-
require('./time-
|
|
32
|
-
require('./
|
|
33
|
-
require('os');
|
|
34
|
-
require('child_process');
|
|
35
|
-
require('./registerCommonHandlers-DPOHFlxp.cjs');
|
|
34
|
+
require('./time-BbzJ7PJQ.cjs');
|
|
35
|
+
require('./registerCommonHandlers--8ds2auE.cjs');
|
|
36
36
|
require('util');
|
|
37
37
|
require('fs/promises');
|
|
38
38
|
require('crypto');
|
|
39
39
|
require('path');
|
|
40
40
|
require('cross-spawn');
|
|
41
41
|
require('@paralleldrive/cuid2');
|
|
42
|
-
require('./sync-
|
|
42
|
+
require('./sync-DwUUGGFz.cjs');
|
|
43
43
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
44
44
|
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
45
45
|
require('chalk');
|
|
46
46
|
require('node:util');
|
|
47
47
|
require('./detectCLI-DR9ZaN6B.cjs');
|
|
48
48
|
require('fs');
|
|
49
|
-
require('./localHappyAgentAuth-
|
|
49
|
+
require('./localHappyAgentAuth-BCx0y1qW.cjs');
|
|
50
50
|
require('tweetnacl');
|
|
51
51
|
require('url');
|
|
52
52
|
|
|
53
53
|
const DEFAULT_CLAUDE_MODEL = void 0;
|
|
54
54
|
const DEFAULT_CLAUDE_EFFORT = void 0;
|
|
55
|
-
const importRunClaudeDeps = () => Promise.resolve().then(function () { return require('./runClaudeDeps-
|
|
55
|
+
const importRunClaudeDeps = () => Promise.resolve().then(function () { return require('./runClaudeDeps-BGjNGfuZ.cjs'); });
|
|
56
56
|
async function runClaude(credentials, options = {}) {
|
|
57
57
|
logger.logger.debug(`[CLAUDE] ===== CLAUDE MODE STARTING =====`);
|
|
58
58
|
logger.logger.debug(`[CLAUDE] This is the Claude agent, NOT Gemini`);
|
|
@@ -66,7 +66,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
66
66
|
const isAssistantVariant = process.env.HAPPY_SESSION_VARIANT === "assistant";
|
|
67
67
|
if (isAssistantVariant) {
|
|
68
68
|
try {
|
|
69
|
-
const { bootstrapAssistantHome } = await Promise.resolve().then(function () { return require('./bootstrap-
|
|
69
|
+
const { bootstrapAssistantHome } = await Promise.resolve().then(function () { return require('./bootstrap-B1dMZA-u.cjs'); });
|
|
70
70
|
await bootstrapAssistantHome();
|
|
71
71
|
} catch (error) {
|
|
72
72
|
logger.logger.debug("[START] Assistant home bootstrap failed:", error);
|
|
@@ -184,7 +184,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
184
184
|
}
|
|
185
185
|
if (!response) {
|
|
186
186
|
let offlineSessionId = null;
|
|
187
|
-
const { claudeLocal } = await Promise.resolve().then(function () { return require('./claudeLocal-
|
|
187
|
+
const { claudeLocal } = await Promise.resolve().then(function () { return require('./claudeLocal-G5UmJ81F.cjs'); });
|
|
188
188
|
const { createSessionScanner: createSessionScanner2 } = await loadDeps();
|
|
189
189
|
const reconnection = api.startOfflineReconnection({
|
|
190
190
|
serverUrl: configuration.configuration.serverUrl,
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import os from 'node:os';
|
|
2
|
-
import { c as claimSessionOrExit, a as applyServerSnapshot, w as withoutServerSnapshot, m as mergeReconnectMetadata } from './sessionLock-
|
|
2
|
+
import { c as claimSessionOrExit, a as applyServerSnapshot, w as withoutServerSnapshot, m as mergeReconnectMetadata } from './sessionLock-Dm8QyGo4.mjs';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import { c as connectionState, A as ApiClient, s as startOfflineReconnection } from './api-
|
|
5
|
-
import { l as logger } from './logger-
|
|
6
|
-
import { p as packageJson } from './package-
|
|
7
|
-
import { readSettings } from './persistence-
|
|
8
|
-
import { s as spawnOriginTags } from './createSessionMetadata-
|
|
9
|
-
import { P as PROMPT_QUEUE_CAPABILITY } from './index-
|
|
4
|
+
import { c as connectionState, A as ApiClient, s as startOfflineReconnection } from './api-DTVPUE7g.mjs';
|
|
5
|
+
import { l as logger } from './logger-CknSVkIe.mjs';
|
|
6
|
+
import { p as packageJson } from './package-VIUXrYZ1.mjs';
|
|
7
|
+
import { readSettings } from './persistence-DujtUH94.mjs';
|
|
8
|
+
import { s as spawnOriginTags } from './createSessionMetadata-CWR-AB2A.mjs';
|
|
9
|
+
import { P as PROMPT_QUEUE_CAPABILITY } from './index-vVWpCoTr.mjs';
|
|
10
10
|
import { F as FORK_BACKFILL_CAPABILITY, p as publishForkBackfillWhenCommitted } from './forkBackfill-DYIjlN1Z.mjs';
|
|
11
|
-
import { c as configuration } from './configuration-
|
|
12
|
-
import { n as notifyDaemonSessionStarted } from './controlClient-
|
|
13
|
-
import { g as getInitialMachineMetadata } from './machineMetadata-
|
|
11
|
+
import { c as configuration } from './configuration-L1qcGTFM.mjs';
|
|
12
|
+
import { n as notifyDaemonSessionStarted } from './controlClient-Ci7HTMII.mjs';
|
|
13
|
+
import { g as getInitialMachineMetadata } from './machineMetadata-Cj1DoFot.mjs';
|
|
14
14
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
15
15
|
import { resolve, join } from 'node:path';
|
|
16
16
|
import { a as applySandboxPermissionPolicy, r as resolveInitialClaudePermissionMode, m as mapToClaudeMode, b as reconcilePublishedPermissionMode } from './permissionMode-CH4FoZfU.mjs';
|
|
17
17
|
import { d as decodeBase64, e as encodeBase64 } from './authRelay-DSAvg1uv.mjs';
|
|
18
18
|
import { readFile } from 'node:fs/promises';
|
|
19
19
|
import { D as DEFAULT_CLAUDE_PERMISSION_MODE } from './defaultPermissionMode-BnxJPVHT.mjs';
|
|
20
|
-
import { C as CLAUDE_ATTACHMENT_KINDS, s as stripAttachmentManifest } from './attachmentContent-
|
|
20
|
+
import { C as CLAUDE_ATTACHMENT_KINDS, s as stripAttachmentManifest } from './attachmentContent-dzIs-wis.mjs';
|
|
21
21
|
import { p as planClaudeStartup } from './startupPlan-DFMyNgAs.mjs';
|
|
22
22
|
import 'node:fs';
|
|
23
23
|
import 'axios';
|
|
24
|
+
import './lidState-BLHLmhwd.mjs';
|
|
25
|
+
import 'os';
|
|
26
|
+
import 'child_process';
|
|
24
27
|
import 'node:events';
|
|
25
28
|
import 'socket.io-client';
|
|
26
|
-
import './attachmentLimits-
|
|
29
|
+
import './attachmentLimits-B8nzhw-i.mjs';
|
|
27
30
|
import 'zod';
|
|
28
31
|
import './limits-DIo7rEBR.mjs';
|
|
29
|
-
import './time-
|
|
30
|
-
import './
|
|
31
|
-
import 'os';
|
|
32
|
-
import 'child_process';
|
|
33
|
-
import './registerCommonHandlers-t15dS7xt.mjs';
|
|
32
|
+
import './time-v1Y_qEJp.mjs';
|
|
33
|
+
import './registerCommonHandlers-BR0J4g64.mjs';
|
|
34
34
|
import 'util';
|
|
35
35
|
import 'fs/promises';
|
|
36
36
|
import 'crypto';
|
|
37
37
|
import 'path';
|
|
38
38
|
import 'cross-spawn';
|
|
39
39
|
import '@paralleldrive/cuid2';
|
|
40
|
-
import './sync-
|
|
40
|
+
import './sync-Dfm6K2te.mjs';
|
|
41
41
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
42
42
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
43
43
|
import 'chalk';
|
|
44
44
|
import 'node:util';
|
|
45
45
|
import './detectCLI-CSGMlV51.mjs';
|
|
46
46
|
import 'fs';
|
|
47
|
-
import './localHappyAgentAuth-
|
|
47
|
+
import './localHappyAgentAuth-BWvmc_Hg.mjs';
|
|
48
48
|
import 'tweetnacl';
|
|
49
49
|
import 'url';
|
|
50
50
|
|
|
51
51
|
const DEFAULT_CLAUDE_MODEL = void 0;
|
|
52
52
|
const DEFAULT_CLAUDE_EFFORT = void 0;
|
|
53
|
-
const importRunClaudeDeps = () => import('./runClaudeDeps-
|
|
53
|
+
const importRunClaudeDeps = () => import('./runClaudeDeps-BOrPP4J1.mjs');
|
|
54
54
|
async function runClaude(credentials, options = {}) {
|
|
55
55
|
logger.debug(`[CLAUDE] ===== CLAUDE MODE STARTING =====`);
|
|
56
56
|
logger.debug(`[CLAUDE] This is the Claude agent, NOT Gemini`);
|
|
@@ -64,7 +64,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
64
64
|
const isAssistantVariant = process.env.HAPPY_SESSION_VARIANT === "assistant";
|
|
65
65
|
if (isAssistantVariant) {
|
|
66
66
|
try {
|
|
67
|
-
const { bootstrapAssistantHome } = await import('./bootstrap-
|
|
67
|
+
const { bootstrapAssistantHome } = await import('./bootstrap-D_ExGrY2.mjs');
|
|
68
68
|
await bootstrapAssistantHome();
|
|
69
69
|
} catch (error) {
|
|
70
70
|
logger.debug("[START] Assistant home bootstrap failed:", error);
|
|
@@ -182,7 +182,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
182
182
|
}
|
|
183
183
|
if (!response) {
|
|
184
184
|
let offlineSessionId = null;
|
|
185
|
-
const { claudeLocal } = await import('./claudeLocal-
|
|
185
|
+
const { claudeLocal } = await import('./claudeLocal-BeHToEK5.mjs');
|
|
186
186
|
const { createSessionScanner: createSessionScanner2 } = await loadDeps();
|
|
187
187
|
const reconnection = startOfflineReconnection({
|
|
188
188
|
serverUrl: configuration.serverUrl,
|