very-happy-cli 0.2.162 → 0.2.163
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-9asD_DL7.cjs → AcpBackend-C2rzKnvT.cjs} +3 -3
- package/dist/{AcpBackend--TmFHgRH.mjs → AcpBackend-CuOUXVRX.mjs} +3 -3
- package/dist/{BasePermissionHandler-D4B-NNu2.cjs → BasePermissionHandler-D6PdH-OU.cjs} +1 -1
- package/dist/{BasePermissionHandler-DUBySe0f.mjs → BasePermissionHandler-Ng5h8JpY.mjs} +1 -1
- package/dist/{BaseReasoningProcessor-CqLl-ikP.cjs → BaseReasoningProcessor-C0cXz1mg.cjs} +1 -1
- package/dist/{BaseReasoningProcessor-9TybUGTq.mjs → BaseReasoningProcessor-CM-ijU4F.mjs} +1 -1
- package/dist/{agentHome-DQrq_FG1.mjs → agentHome-Bt4lOwFE.mjs} +4 -4
- package/dist/{agentHome-BohNUYnE.cjs → agentHome-CAMEVRZZ.cjs} +4 -4
- package/dist/{api-D57dsd6_.mjs → api-D5kfP3JF.mjs} +24 -8
- package/dist/{api-CQnLOqRS.cjs → api-DGFBAPr7.cjs} +24 -8
- package/dist/{apiMachine-fFFaWxYy.cjs → apiMachine-BxCy5_No.cjs} +11 -11
- package/dist/{apiMachine-78Aqzg--.mjs → apiMachine-C58eizxs.mjs} +11 -11
- package/dist/{assistantTools-mEz6uNqL.mjs → assistantTools-BvKH9eRc.mjs} +6 -6
- package/dist/{assistantTools-CwESq24n.cjs → assistantTools-NC7DMNvV.cjs} +6 -6
- package/dist/{attachmentContent-s1xPha4Q.mjs → attachmentContent-CCE0Y3gR.mjs} +1 -1
- package/dist/{attachmentContent-GHOk6Muq.cjs → attachmentContent-CUKdzh4v.cjs} +1 -1
- package/dist/{auth-B8EagV6G.cjs → auth-CILb5DeW.cjs} +8 -8
- package/dist/{auth-C8V7-oUT.mjs → auth-CRm8yNv6.mjs} +5 -5
- package/dist/{auth-BbSdXMQ_.cjs → auth-Ddz597Rw.cjs} +5 -5
- package/dist/{auth-BOaHWquu.mjs → auth-gdc8gI9D.mjs} +8 -8
- package/dist/{auto-Bw_h0yVc.cjs → auto-CXtt6MfS.cjs} +13 -12
- package/dist/{auto-CWDOX35m.mjs → auto-lLjHfAOO.mjs} +13 -12
- package/dist/{bootstrap-DvZjEa9_.cjs → bootstrap-CccIDvh4.cjs} +2 -2
- package/dist/{bootstrap-BKmsYSwh.mjs → bootstrap-DSWZAtGy.mjs} +2 -2
- package/dist/{browser-CrMAr5fI.mjs → browser-DU9kI-Q-.mjs} +1 -1
- package/dist/{browser-CBZj-1Wx.cjs → browser-lizgdXYj.cjs} +1 -1
- package/dist/{claudeLocal-Bpw-u9et.cjs → claudeLocal-Bp-lf6yb.cjs} +4 -4
- package/dist/{claudeLocal-dhdlcQ6F.mjs → claudeLocal-CTR2xlPT.mjs} +4 -4
- package/dist/{claudeLocalLauncher-BFfGT4eY.mjs → claudeLocalLauncher-DFkwLMqU.mjs} +9 -9
- package/dist/{claudeLocalLauncher-DWFWuLhY.cjs → claudeLocalLauncher-aQyL3g7I.cjs} +9 -9
- package/dist/{claudeSessionFork-_DUrXaqd.mjs → claudeSessionFork-DABSCbkf.mjs} +1 -1
- package/dist/{claudeSessionFork-D9-mANmu.cjs → claudeSessionFork-DdJFvxwf.cjs} +1 -1
- package/dist/{client-Dk7x-s-O.mjs → client-BbNFS1WW.mjs} +3 -3
- package/dist/{client-CVQJWqjx.cjs → client-CQzHoynf.cjs} +2 -2
- package/dist/{client-DiBTHWNU.cjs → client-CXvsRLAz.cjs} +3 -3
- package/dist/{client-DwqHDsLb.mjs → client-CyUhxs-0.mjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +14 -14
- package/dist/codex/happyMcpStdioBridge.mjs +14 -14
- package/dist/{codexAppServerClient-DlKv5TjG.cjs → codexAppServerClient-5jNbTlE5.cjs} +2 -2
- package/dist/{codexAppServerClient-C2ybs2mZ.mjs → codexAppServerClient-Dto99RVH.mjs} +2 -2
- package/dist/{codexCommand-DnmFr9Qx.mjs → codexCommand-BHfrAyds.mjs} +39 -36
- package/dist/{codexCommand-4vLE31fj.cjs → codexCommand-LUp0vkNi.cjs} +39 -36
- package/dist/{config-CSOG_ZcP.mjs → config-BEvt_OYR.mjs} +3 -3
- package/dist/{config-Btd4B05_.cjs → config-CAD5NR1h.cjs} +3 -3
- package/dist/{configuration-A5gW_0GE.mjs → configuration-B0c-OP_h.mjs} +1 -1
- package/dist/{configuration-UsI0sxEv.cjs → configuration-CepfrPZ_.cjs} +1 -1
- package/dist/{connect-C9yxp8Om.cjs → connect-BPMzMoiQ.cjs} +11 -11
- package/dist/{connect-DWYj8LP_.mjs → connect-BeK0dMYB.mjs} +11 -11
- package/dist/{context-0FjjA4vJ.cjs → context-BhZMRQho.cjs} +1 -1
- package/dist/{context-BXnxalWW.mjs → context-mMg17HJv.mjs} +1 -1
- package/dist/{controlClient-CYzHrh3e.mjs → controlClient-BKmjlbGs.mjs} +3 -3
- package/dist/{controlClient-BXktrQ4z.cjs → controlClient-HPMsyxLb.cjs} +3 -3
- package/dist/{createSessionMetadata-EX1eAlHx.cjs → createSessionMetadata-CGuyVxsM.cjs} +2 -2
- package/dist/{createSessionMetadata-Dyg33ZlU.mjs → createSessionMetadata-KOL67aSN.mjs} +2 -2
- package/dist/{deterministicJson-eha_oMZ2.cjs → deterministicJson-BFzPcsCh.cjs} +8 -8
- package/dist/{deterministicJson-DiR7EOMO.mjs → deterministicJson-CaWami7M.mjs} +8 -8
- package/dist/{doctor-DunLBgVi.cjs → doctor-BHNVY9DE.cjs} +6 -6
- package/dist/{doctor-FuCvKdRa.mjs → doctor-DX2P7IlL.mjs} +6 -6
- package/dist/{ensureDaemonRunning-B4dZFmUy.cjs → ensureDaemonRunning-BahhZpQ1.cjs} +5 -5
- package/dist/{ensureDaemonRunning-EZkb-CAF.mjs → ensureDaemonRunning-CnWMrL5b.mjs} +5 -5
- package/dist/forkBackfill-8eLDeS73.cjs +66 -0
- package/dist/forkBackfill-DYIjlN1Z.mjs +62 -0
- package/dist/{handleResumeCommand-CKMIw4pE.cjs → handleResumeCommand-Ca334R4t.cjs} +5 -5
- package/dist/{handleResumeCommand-CsXendKb.mjs → handleResumeCommand-bToC6FDH.mjs} +5 -5
- package/dist/{index-9L39wqYR.mjs → index-B5v5fZi6.mjs} +33 -33
- package/dist/{index-DRhWHEuW.cjs → index-B6MVw_Xb.cjs} +3 -3
- package/dist/{index-DK2JpTJf.mjs → index-CpFreRx8.mjs} +4 -4
- package/dist/{index-CvXcVQ06.mjs → index-D3AsOj4j.mjs} +3 -3
- package/dist/{index-CZWAiydF.cjs → index-DoMsO8_G.cjs} +4 -4
- package/dist/{index-BOhgL3rh.cjs → index-vFMUVtSL.cjs} +32 -32
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-C8WyZI9K.cjs → install-BnTP73AE.cjs} +3 -3
- package/dist/{install-B2duVo9a.mjs → install-Dixfzmb_.mjs} +3 -3
- package/dist/lib.cjs +10 -10
- package/dist/lib.d.cts +21 -0
- package/dist/lib.d.mts +21 -0
- package/dist/lib.mjs +10 -10
- package/dist/{lidState-Ds-6ytZV.cjs → lidState-BGWXfx1e.cjs} +1 -1
- package/dist/{lidState-CigXWxhe.mjs → lidState-X7iQg4y5.mjs} +1 -1
- package/dist/{localHappyAgentAuth-l0Na-5Ys.cjs → localHappyAgentAuth-D_Gc4K7h.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CaCyKzYp.mjs → localHappyAgentAuth-r83bTscW.mjs} +1 -1
- package/dist/{logger-CGE4C8ho.mjs → logger-BIzr7JN0.mjs} +2 -2
- package/dist/{logger-7ucWm9wp.cjs → logger-Ca5eRZ2j.cjs} +2 -2
- package/dist/{machineMetadata-ue1nkowa.mjs → machineMetadata-DakW9c61.mjs} +3 -3
- package/dist/{machineMetadata-lMPtpF16.cjs → machineMetadata-GlObivJ-.cjs} +3 -3
- package/dist/{main-3fIFXD-t.mjs → main-BJlGidfv.mjs} +44 -44
- package/dist/{main-CFI0datL.cjs → main-BfA1Vtqq.cjs} +44 -44
- package/dist/{mcp-DfxLAc1G.cjs → mcp-BVzt1llv.cjs} +14 -14
- package/dist/{mcp-DARQBZ7l.mjs → mcp-Bb7AD1SD.mjs} +14 -14
- package/dist/{package-D1A-8ZJy.cjs → package-BfnmIH4b.cjs} +7 -7
- package/dist/{package-DQsvY1XN.mjs → package-D-W_r_pd.mjs} +7 -7
- package/dist/{peerTools-D19hhSQF.mjs → peerTools-C1cELmtZ.mjs} +4 -4
- package/dist/{peerTools-DLwNaEEV.cjs → peerTools-CADjnFDx.cjs} +4 -4
- package/dist/{persistence-i0nQMLlk.cjs → persistence-Ceb-BPk6.cjs} +3 -3
- package/dist/{persistence-Cw8aLoyL.mjs → persistence-DgBhXxu7.mjs} +3 -3
- package/dist/{piRunnerArgs-BUyxPxjZ.cjs → piRunnerArgs-Bem-saSg.cjs} +1 -1
- package/dist/{piRunnerArgs-58t454gw.mjs → piRunnerArgs-CH6oh6w0.mjs} +1 -1
- package/dist/{piRuntime-DVPixFjl.mjs → piRuntime-BRKG6Yoz.mjs} +1 -1
- package/dist/{piRuntime-Dff73XCb.cjs → piRuntime-Be0UP44z.cjs} +1 -1
- package/dist/{piTerminal-gHWFAyzq.mjs → piTerminal-DVOAWiZx.mjs} +16 -16
- package/dist/{piTerminal-Dz1RrO70.cjs → piTerminal-ibKBMmuK.cjs} +16 -16
- package/dist/{registerCommonHandlers-CMROPdJz.cjs → registerCommonHandlers-DPOHFlxp.cjs} +2 -2
- package/dist/{registerCommonHandlers-Ckv5boQI.mjs → registerCommonHandlers-t15dS7xt.mjs} +2 -2
- package/dist/{registerKillSessionHandler-Cll4-o8Y.mjs → registerKillSessionHandler-BS5afGeA.mjs} +4 -4
- package/dist/{registerKillSessionHandler-CA9-oelM.cjs → registerKillSessionHandler-DGDubZLv.cjs} +4 -4
- package/dist/{remoteSessionClient-DX9jHLeW.cjs → remoteSessionClient-DbnVs1Tv.cjs} +5 -5
- package/dist/{remoteSessionClient-BMjsbuBh.mjs → remoteSessionClient-N7JsQ0XS.mjs} +5 -5
- package/dist/{run-CjbGo2wb.cjs → run-CptLbkQ4.cjs} +29 -29
- package/dist/{run-CrunzDlt.mjs → run-FZRugy70.mjs} +28 -28
- package/dist/{runClaude-KN-4Y4LH.cjs → runClaude-Cnv0SnA4.cjs} +22 -19
- package/dist/{runClaude-WDBWRtnF.mjs → runClaude-DNW3i-k4.mjs} +22 -19
- package/dist/{runClaudeDeps-QaEx8y5r.mjs → runClaudeDeps-CpAiml84.mjs} +32 -32
- package/dist/{runClaudeDeps-DW-8lnHv.cjs → runClaudeDeps-lb6LlVPa.cjs} +28 -28
- package/dist/{runGemini-Djmwjdv1.cjs → runGemini-BzS_Yw3F.cjs} +30 -30
- package/dist/{runGemini-Nf6SKBpw.mjs → runGemini-CRn8exeY.mjs} +30 -30
- package/dist/{runOpenClaw-9nHtmYbN.mjs → runOpenClaw-DuS_zRVT.mjs} +15 -15
- package/dist/{runOpenClaw-CAqP5KFH.cjs → runOpenClaw-QoDQpR9a.cjs} +15 -15
- package/dist/{sandbox-C8Dd8GPM.cjs → sandbox-CT9CGjEI.cjs} +4 -4
- package/dist/{sandbox-SP0THMt0.mjs → sandbox-DysMM_pn.mjs} +4 -4
- package/dist/selfCheck-BTltA-ZZ.mjs +84 -0
- package/dist/{selfCheck-D9ZXrK7h.cjs → selfCheck-DIn7j8MD.cjs} +34 -34
- package/dist/{send-LPk6Q5HI.cjs → send-97xYN_Yw.cjs} +8 -8
- package/dist/{send-DOx9aQsx.mjs → send-CA6fSF3S.mjs} +8 -8
- package/dist/{server-CxT8jNyn.cjs → server-C67NGJoX.cjs} +6 -6
- package/dist/{server-BZNi8Hq_.mjs → server-r50NNW9e.mjs} +4 -4
- package/dist/{sessionLock-y9rnA4LK.cjs → sessionLock-CS4fdsmu.cjs} +2 -2
- package/dist/{sessionLock-CfLqJfeI.mjs → sessionLock-Dab6_dCd.mjs} +2 -2
- package/dist/{sessionModeFile-BKxgNH3P.mjs → sessionModeFile-3yV7P9R-.mjs} +1 -1
- package/dist/{sessionModeFile-B5YeoQJh.cjs → sessionModeFile-BhqlFlHZ.cjs} +1 -1
- package/dist/{sessionOps-CdwVPSZz.mjs → sessionOps-DJSwzwP-.mjs} +5 -5
- package/dist/{sessionOps-GsELm2PZ.cjs → sessionOps-DWsGWwfZ.cjs} +4 -4
- package/dist/{sessionScanner-aLEv7mD3.cjs → sessionScanner-D6WqRtJQ.cjs} +3 -3
- package/dist/{sessionScanner-Cdukzo70.mjs → sessionScanner-jilpq2aE.mjs} +3 -3
- package/dist/{sessions-CfG4WGN0.cjs → sessions-C22q-Z_s.cjs} +9 -9
- package/dist/{sessions-Dne-OiRL.mjs → sessions-RXTp4x0o.mjs} +9 -9
- package/dist/{setupOfflineReconnection-CFwltTcP.cjs → setupOfflineReconnection-BrnWBRUP.cjs} +2 -2
- package/dist/{setupOfflineReconnection-DiQma2Cc.mjs → setupOfflineReconnection-rd1PCWiN.mjs} +2 -2
- package/dist/{spawn-BI_sdgWs.cjs → spawn-Ccy5qAtp.cjs} +36 -15
- package/dist/{spawn-DkgP2BGF.mjs → spawn-D8CEQPbN.mjs} +36 -16
- package/dist/{spawnHappyCLI-BRdx0sAX.cjs → spawnHappyCLI-Dz2ZHrsN.cjs} +1 -1
- package/dist/{spawnHappyCLI-9mx4lPxh.mjs → spawnHappyCLI-wowHF2IL.mjs} +1 -1
- package/dist/{startFileWatcher-COD5UKNs.mjs → startFileWatcher-C1wjDI_o.mjs} +1 -1
- package/dist/{startFileWatcher-C2HC2_Dg.cjs → startFileWatcher-Ce17H9pG.cjs} +1 -1
- package/dist/{sync-BpLasLu2.mjs → sync-DnmsgL3w.mjs} +5 -1
- package/dist/{sync-Dj92ZJ8Y.cjs → sync-fDRF_nO1.cjs} +5 -1
- package/dist/{systemPrompt-CyEz_IfR.cjs → systemPrompt-9PWg4OU6.cjs} +1 -1
- package/dist/{systemPrompt-DsQoUgQw.mjs → systemPrompt-Db9O7KGe.mjs} +1 -1
- package/dist/{teams-BETNMjpZ.mjs → teams-C5PwKr4K.mjs} +6 -6
- package/dist/{teams-Ctx9zXn4.cjs → teams-DkHPUc6j.cjs} +6 -6
- package/dist/{time-CVvxdEDh.mjs → time-TxDyvAKk.mjs} +1 -1
- package/dist/{time-CLwVAz6s.cjs → time-xNkWLTSj.cjs} +1 -1
- package/dist/{titleGenerator-FDpdizn7.cjs → titleGenerator-C8arvXNG.cjs} +2 -2
- package/dist/{titleGenerator-B4AW3dLr.mjs → titleGenerator-oK414IZc.mjs} +1 -1
- package/dist/{todo-Jk4Vs7hP.mjs → todo-CLHIGRUf.mjs} +5 -5
- package/dist/{todo-C3tyFeq1.cjs → todo-VqQuYyFq.cjs} +5 -5
- package/dist/{tools-BA1qkiV1.mjs → tools-BSzD246o.mjs} +1 -1
- package/dist/{tools-CGxq3I52.cjs → tools-GnqHEZHb.cjs} +1 -1
- package/dist/{tools-_kFe4m_l.mjs → tools-sPgOmLr_.mjs} +1 -1
- package/dist/{tools-O5beDK-s.cjs → tools-xQ38ufgo.cjs} +1 -1
- package/dist/{uninstall-DHKF90lo.cjs → uninstall-DKM0j1qI.cjs} +3 -3
- package/dist/{uninstall-C_mdAZlm.mjs → uninstall-DyoXxpgI.mjs} +3 -3
- package/package.json +7 -7
- package/dist/selfCheck-7FaZtVu2.mjs +0 -84
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path$1 = require('node:path');
|
|
6
|
-
var controlClient = require('./controlClient-
|
|
7
|
-
var persistence = require('./persistence-
|
|
6
|
+
var controlClient = require('./controlClient-HPMsyxLb.cjs');
|
|
7
|
+
var persistence = require('./persistence-Ceb-BPk6.cjs');
|
|
8
8
|
var spawnAgents = require('./spawnAgents-iSu1Xzs5.cjs');
|
|
9
9
|
var path = require('./path-B7zW-WwE.cjs');
|
|
10
|
-
var claudeSessionFork = require('./claudeSessionFork-
|
|
11
|
-
var codexAppServerClient = require('./codexAppServerClient-
|
|
10
|
+
var claudeSessionFork = require('./claudeSessionFork-DdJFvxwf.cjs');
|
|
11
|
+
var codexAppServerClient = require('./codexAppServerClient-5jNbTlE5.cjs');
|
|
12
12
|
var codexThreadFork = require('./codexThreadFork-DNekT4nQ.cjs');
|
|
13
|
-
var sessionOps = require('./sessionOps-
|
|
14
|
-
var createSessionMetadata = require('./createSessionMetadata-
|
|
15
|
-
var logger = require('./logger-
|
|
16
|
-
require('./
|
|
13
|
+
var sessionOps = require('./sessionOps-DWsGWwfZ.cjs');
|
|
14
|
+
var createSessionMetadata = require('./createSessionMetadata-CGuyVxsM.cjs');
|
|
15
|
+
var logger = require('./logger-Ca5eRZ2j.cjs');
|
|
16
|
+
var forkBackfill = require('./forkBackfill-8eLDeS73.cjs');
|
|
17
|
+
require('./configuration-CepfrPZ_.cjs');
|
|
17
18
|
require('node:os');
|
|
18
|
-
require('./package-
|
|
19
|
+
require('./package-BfnmIH4b.cjs');
|
|
19
20
|
require('node:fs/promises');
|
|
20
21
|
require('zod');
|
|
21
22
|
require('./authRelay-BdYkC1Po.cjs');
|
|
@@ -31,7 +32,7 @@ require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
|
31
32
|
require('./manager-Cly8xVIR.cjs');
|
|
32
33
|
require('@anthropic-ai/sandbox-runtime');
|
|
33
34
|
require('axios');
|
|
34
|
-
require('./time-
|
|
35
|
+
require('./time-xNkWLTSj.cjs');
|
|
35
36
|
require('socket.io-client');
|
|
36
37
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
37
38
|
require('./projectPath-ChLhdOyt.cjs');
|
|
@@ -204,13 +205,32 @@ ${chalk.bold("Behavior:")}
|
|
|
204
205
|
${chalk.bold("Exit codes:")}
|
|
205
206
|
0 success
|
|
206
207
|
1 spawn failed (no session created)
|
|
207
|
-
2 session spawned but first message failed (session URL still printed)
|
|
208
|
+
2 session spawned but first message failed (session URL still printed).
|
|
209
|
+
For --fork this includes: the forked history was not confirmed uploaded
|
|
210
|
+
within 120s \u2014 the message is then NOT sent, so it cannot land inside
|
|
211
|
+
that history; send it later with \`very-happy send\`.
|
|
208
212
|
`);
|
|
209
213
|
}
|
|
210
|
-
|
|
211
|
-
|
|
214
|
+
const defaultFirstMessageDeps = {
|
|
215
|
+
waitForSessionKey: sessionOps.waitForSessionKey,
|
|
216
|
+
readSessionMetadata: sessionOps.readSessionMetadata,
|
|
217
|
+
sendUserMessage: sessionOps.sendUserMessage,
|
|
218
|
+
warn: (message) => console.error(chalk.yellow("Warning:"), message)
|
|
219
|
+
};
|
|
220
|
+
async function sendFirstMessage(sessionId, text, metaFor, opts, deps = defaultFirstMessageDeps) {
|
|
221
|
+
const persisted = await deps.waitForSessionKey(sessionId, 15e3);
|
|
222
|
+
if (opts.fork) {
|
|
223
|
+
const gate = await forkBackfill.waitForForkBackfill({
|
|
224
|
+
capabilities: persisted.metadata?.capabilities,
|
|
225
|
+
readMetadata: () => deps.readSessionMetadata(sessionId, persisted),
|
|
226
|
+
...deps.forkWait
|
|
227
|
+
});
|
|
228
|
+
if (gate.kind === "legacy-wrapper") {
|
|
229
|
+
deps.warn?.("the forked session runs an older wrapper that cannot confirm its replayed history is uploaded; sending now, so the first message may appear inside that history. Restart the daemon on this CLI version to fix.");
|
|
230
|
+
}
|
|
231
|
+
}
|
|
212
232
|
const meta = metaFor(persisted.metadata?.capabilities ?? null);
|
|
213
|
-
await
|
|
233
|
+
await deps.sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
|
|
214
234
|
return meta;
|
|
215
235
|
}
|
|
216
236
|
async function handleSpawnCommand(args) {
|
|
@@ -326,7 +346,7 @@ async function handleSpawnCommand(args) {
|
|
|
326
346
|
permissionMode,
|
|
327
347
|
explicitModel: options.model,
|
|
328
348
|
capabilities
|
|
329
|
-
}));
|
|
349
|
+
}), { fork: forkSource !== null });
|
|
330
350
|
} catch (error) {
|
|
331
351
|
promptError = error instanceof Error ? error.message : String(error);
|
|
332
352
|
}
|
|
@@ -372,4 +392,5 @@ exports.sessionWebUrl = sessionOps.sessionWebUrl;
|
|
|
372
392
|
exports.handleSpawnCommand = handleSpawnCommand;
|
|
373
393
|
exports.parseEnvAssignment = parseEnvAssignment;
|
|
374
394
|
exports.parseSpawnArgs = parseSpawnArgs;
|
|
395
|
+
exports.sendFirstMessage = sendFirstMessage;
|
|
375
396
|
exports.spawnEnvironmentVariables = spawnEnvironmentVariables;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { readFileSync, statSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
|
-
import { c as checkIfDaemonRunningAndCleanupStaleState, e as spawnDaemonSession, s as stopDaemonSession } from './controlClient-
|
|
5
|
-
import { readPersistedSessions } from './persistence-
|
|
4
|
+
import { c as checkIfDaemonRunningAndCleanupStaleState, e as spawnDaemonSession, s as stopDaemonSession } from './controlClient-BKmjlbGs.mjs';
|
|
5
|
+
import { readPersistedSessions } from './persistence-DgBhXxu7.mjs';
|
|
6
6
|
import { r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES, S as SPAWN_AGENTS } from './spawnAgents-Y1LjnCt9.mjs';
|
|
7
7
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
8
|
-
import { f as forkSession, F as ForkSourceMissingError } from './claudeSessionFork-
|
|
9
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
8
|
+
import { f as forkSession, F as ForkSourceMissingError } from './claudeSessionFork-DABSCbkf.mjs';
|
|
9
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-Dto99RVH.mjs';
|
|
10
10
|
import { f as forkCodexThread } from './codexThreadFork-R76RU5H0.mjs';
|
|
11
|
-
import { e as
|
|
12
|
-
import { i as isValidSpawnOrigin } from './createSessionMetadata-
|
|
13
|
-
import { l as logger } from './logger-
|
|
14
|
-
import './
|
|
11
|
+
import { e as sendUserMessage, f as readSessionMetadata, g as waitForSessionKey, s as sessionWebUrl } from './sessionOps-DJSwzwP-.mjs';
|
|
12
|
+
import { i as isValidSpawnOrigin } from './createSessionMetadata-KOL67aSN.mjs';
|
|
13
|
+
import { l as logger } from './logger-BIzr7JN0.mjs';
|
|
14
|
+
import { w as waitForForkBackfill } from './forkBackfill-DYIjlN1Z.mjs';
|
|
15
|
+
import './configuration-B0c-OP_h.mjs';
|
|
15
16
|
import 'node:os';
|
|
16
|
-
import './package-
|
|
17
|
+
import './package-D-W_r_pd.mjs';
|
|
17
18
|
import 'node:fs/promises';
|
|
18
19
|
import 'zod';
|
|
19
20
|
import './authRelay-DSAvg1uv.mjs';
|
|
@@ -29,7 +30,7 @@ import './contentLogMetadata-BlWI0egu.mjs';
|
|
|
29
30
|
import './manager-BQ4flvQZ.mjs';
|
|
30
31
|
import '@anthropic-ai/sandbox-runtime';
|
|
31
32
|
import 'axios';
|
|
32
|
-
import './time-
|
|
33
|
+
import './time-TxDyvAKk.mjs';
|
|
33
34
|
import 'socket.io-client';
|
|
34
35
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
35
36
|
import './projectPath-BTBIMB57.mjs';
|
|
@@ -202,13 +203,32 @@ ${chalk.bold("Behavior:")}
|
|
|
202
203
|
${chalk.bold("Exit codes:")}
|
|
203
204
|
0 success
|
|
204
205
|
1 spawn failed (no session created)
|
|
205
|
-
2 session spawned but first message failed (session URL still printed)
|
|
206
|
+
2 session spawned but first message failed (session URL still printed).
|
|
207
|
+
For --fork this includes: the forked history was not confirmed uploaded
|
|
208
|
+
within 120s \u2014 the message is then NOT sent, so it cannot land inside
|
|
209
|
+
that history; send it later with \`very-happy send\`.
|
|
206
210
|
`);
|
|
207
211
|
}
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
const defaultFirstMessageDeps = {
|
|
213
|
+
waitForSessionKey,
|
|
214
|
+
readSessionMetadata,
|
|
215
|
+
sendUserMessage,
|
|
216
|
+
warn: (message) => console.error(chalk.yellow("Warning:"), message)
|
|
217
|
+
};
|
|
218
|
+
async function sendFirstMessage(sessionId, text, metaFor, opts, deps = defaultFirstMessageDeps) {
|
|
219
|
+
const persisted = await deps.waitForSessionKey(sessionId, 15e3);
|
|
220
|
+
if (opts.fork) {
|
|
221
|
+
const gate = await waitForForkBackfill({
|
|
222
|
+
capabilities: persisted.metadata?.capabilities,
|
|
223
|
+
readMetadata: () => deps.readSessionMetadata(sessionId, persisted),
|
|
224
|
+
...deps.forkWait
|
|
225
|
+
});
|
|
226
|
+
if (gate.kind === "legacy-wrapper") {
|
|
227
|
+
deps.warn?.("the forked session runs an older wrapper that cannot confirm its replayed history is uploaded; sending now, so the first message may appear inside that history. Restart the daemon on this CLI version to fix.");
|
|
228
|
+
}
|
|
229
|
+
}
|
|
210
230
|
const meta = metaFor(persisted.metadata?.capabilities ?? null);
|
|
211
|
-
await sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
|
|
231
|
+
await deps.sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
|
|
212
232
|
return meta;
|
|
213
233
|
}
|
|
214
234
|
async function handleSpawnCommand(args) {
|
|
@@ -324,7 +344,7 @@ async function handleSpawnCommand(args) {
|
|
|
324
344
|
permissionMode,
|
|
325
345
|
explicitModel: options.model,
|
|
326
346
|
capabilities
|
|
327
|
-
}));
|
|
347
|
+
}), { fork: forkSource !== null });
|
|
328
348
|
} catch (error) {
|
|
329
349
|
promptError = error instanceof Error ? error.message : String(error);
|
|
330
350
|
}
|
|
@@ -365,4 +385,4 @@ async function handleSpawnCommand(args) {
|
|
|
365
385
|
process.exit(0);
|
|
366
386
|
}
|
|
367
387
|
|
|
368
|
-
export { SPAWN_AGENTS, handleSpawnCommand, parseEnvAssignment, parseSpawnArgs, sessionWebUrl, spawnEnvironmentVariables };
|
|
388
|
+
export { SPAWN_AGENTS, handleSpawnCommand, parseEnvAssignment, parseSpawnArgs, sendFirstMessage, sessionWebUrl, spawnEnvironmentVariables };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var spawn = require('cross-spawn');
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var projectPath = require('./projectPath-ChLhdOyt.cjs');
|
|
6
|
-
var logger = require('./logger-
|
|
6
|
+
var logger = require('./logger-Ca5eRZ2j.cjs');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
|
|
9
9
|
let cachedRuntime = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { spawn } from 'cross-spawn';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
4
|
-
import { l as logger } from './logger-
|
|
4
|
+
import { l as logger } from './logger-BIzr7JN0.mjs';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
|
|
7
7
|
let cachedRuntime = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as backoff } from './time-
|
|
1
|
+
import { b as backoff } from './time-TxDyvAKk.mjs';
|
|
2
2
|
|
|
3
3
|
class InvalidateSync {
|
|
4
4
|
_invalidated = false;
|
|
@@ -32,6 +32,10 @@ class InvalidateSync {
|
|
|
32
32
|
this.invalidate();
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
/** B-531: after stop() no pending invalidateAndAwait() can mean "synced". */
|
|
36
|
+
get stopped() {
|
|
37
|
+
return this._stopped;
|
|
38
|
+
}
|
|
35
39
|
stop() {
|
|
36
40
|
if (this._stopped) {
|
|
37
41
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var time = require('./time-
|
|
3
|
+
var time = require('./time-xNkWLTSj.cjs');
|
|
4
4
|
|
|
5
5
|
class InvalidateSync {
|
|
6
6
|
_invalidated = false;
|
|
@@ -34,6 +34,10 @@ class InvalidateSync {
|
|
|
34
34
|
this.invalidate();
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
+
/** B-531: after stop() no pending invalidateAndAwait() can mean "synced". */
|
|
38
|
+
get stopped() {
|
|
39
|
+
return this._stopped;
|
|
40
|
+
}
|
|
37
41
|
stop() {
|
|
38
42
|
if (this._stopped) {
|
|
39
43
|
return;
|
|
@@ -2,17 +2,17 @@ import { homedir } from 'node:os';
|
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
|
-
import { t as teamRequest, c as createTeamsClient } from './client-
|
|
6
|
-
import { readCredentialsForConfiguredRelay } from './persistence-
|
|
5
|
+
import { t as teamRequest, c as createTeamsClient } from './client-BbNFS1WW.mjs';
|
|
6
|
+
import { readCredentialsForConfiguredRelay } from './persistence-DgBhXxu7.mjs';
|
|
7
7
|
import { a as installTeamSkill, i as installAutomationSkill } from './install-BO_W7VhL.mjs';
|
|
8
|
-
import './configuration-
|
|
8
|
+
import './configuration-B0c-OP_h.mjs';
|
|
9
9
|
import 'node:fs';
|
|
10
10
|
import 'node:path';
|
|
11
|
-
import './package-
|
|
12
|
-
import './context-
|
|
11
|
+
import './package-D-W_r_pd.mjs';
|
|
12
|
+
import './context-mMg17HJv.mjs';
|
|
13
13
|
import './authRelay-DSAvg1uv.mjs';
|
|
14
14
|
import 'tweetnacl';
|
|
15
|
-
import './logger-
|
|
15
|
+
import './logger-BIzr7JN0.mjs';
|
|
16
16
|
import 'chalk';
|
|
17
17
|
import 'node:util';
|
|
18
18
|
import './resources-BdFBQi8r.mjs';
|
|
@@ -4,17 +4,17 @@ var os = require('node:os');
|
|
|
4
4
|
var promises = require('node:fs/promises');
|
|
5
5
|
var z = require('zod');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
|
-
var client = require('./client-
|
|
8
|
-
var persistence = require('./persistence-
|
|
7
|
+
var client = require('./client-CXvsRLAz.cjs');
|
|
8
|
+
var persistence = require('./persistence-Ceb-BPk6.cjs');
|
|
9
9
|
var install = require('./install-Cs5qAPrB.cjs');
|
|
10
|
-
require('./configuration-
|
|
10
|
+
require('./configuration-CepfrPZ_.cjs');
|
|
11
11
|
require('node:fs');
|
|
12
12
|
require('node:path');
|
|
13
|
-
require('./package-
|
|
14
|
-
require('./context-
|
|
13
|
+
require('./package-BfnmIH4b.cjs');
|
|
14
|
+
require('./context-BhZMRQho.cjs');
|
|
15
15
|
require('./authRelay-BdYkC1Po.cjs');
|
|
16
16
|
require('tweetnacl');
|
|
17
|
-
require('./logger-
|
|
17
|
+
require('./logger-Ca5eRZ2j.cjs');
|
|
18
18
|
require('chalk');
|
|
19
19
|
require('node:util');
|
|
20
20
|
require('./resources-JDPugcDq.cjs');
|
|
@@ -5,7 +5,7 @@ var module$1 = require('node:module');
|
|
|
5
5
|
var oneShotPrompts = require('./oneShotPrompts-CL0dip9C.cjs');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
7
|
var path = require('node:path');
|
|
8
|
-
var logger = require('./logger-
|
|
8
|
+
var logger = require('./logger-Ca5eRZ2j.cjs');
|
|
9
9
|
var projectPath = require('./projectPath-ChLhdOyt.cjs');
|
|
10
10
|
|
|
11
11
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -14,7 +14,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
14
14
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
15
15
|
function resolveClaudeBinary() {
|
|
16
16
|
try {
|
|
17
|
-
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('titleGenerator-
|
|
17
|
+
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('titleGenerator-C8arvXNG.cjs', document.baseURI).href)));
|
|
18
18
|
const utilsPath = path.resolve(path.join(projectPath.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
19
19
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
20
20
|
const path$1 = getClaudeCliPath();
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { T as TITLE_PROMPT_PREFIX } from './oneShotPrompts-DT4p6RNd.mjs';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
5
|
import { resolve, join } from 'node:path';
|
|
6
|
-
import { l as logger } from './logger-
|
|
6
|
+
import { l as logger } from './logger-BIzr7JN0.mjs';
|
|
7
7
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
8
8
|
|
|
9
9
|
const MAX_PROMPT_SAMPLE_CHARS = 500;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
1
|
+
import { c as configuration } from './configuration-B0c-OP_h.mjs';
|
|
2
2
|
import { f as createBuiltinTodoClient, B as BUILTIN_TODO_SKILL } from './index-BBg9j0XK.mjs';
|
|
3
|
-
import { readCredentialsForConfiguredRelay } from './persistence-
|
|
4
|
-
import { r as readTeamScope, t as teamScopePath } from './context-
|
|
3
|
+
import { readCredentialsForConfiguredRelay } from './persistence-DgBhXxu7.mjs';
|
|
4
|
+
import { r as readTeamScope, t as teamScopePath } from './context-mMg17HJv.mjs';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'node:path';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-D-W_r_pd.mjs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@paralleldrive/cuid2';
|
|
12
12
|
import './authRelay-DSAvg1uv.mjs';
|
|
13
13
|
import 'node:crypto';
|
|
14
14
|
import 'tweetnacl';
|
|
15
|
-
import './logger-
|
|
15
|
+
import './logger-BIzr7JN0.mjs';
|
|
16
16
|
import 'chalk';
|
|
17
17
|
import 'node:util';
|
|
18
18
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
3
|
+
var configuration = require('./configuration-CepfrPZ_.cjs');
|
|
4
4
|
var index = require('./index-DJ-oV52i.cjs');
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var context = require('./context-
|
|
5
|
+
var persistence = require('./persistence-Ceb-BPk6.cjs');
|
|
6
|
+
var context = require('./context-BhZMRQho.cjs');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('node:os');
|
|
9
9
|
require('node:path');
|
|
10
|
-
require('./package-
|
|
10
|
+
require('./package-BfnmIH4b.cjs');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('zod');
|
|
13
13
|
require('@paralleldrive/cuid2');
|
|
14
14
|
require('./authRelay-BdYkC1Po.cjs');
|
|
15
15
|
require('node:crypto');
|
|
16
16
|
require('tweetnacl');
|
|
17
|
-
require('./logger-
|
|
17
|
+
require('./logger-Ca5eRZ2j.cjs');
|
|
18
18
|
require('chalk');
|
|
19
19
|
require('node:util');
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { a as AutomationNameSchema, b as AutomationConcurrencySchema, c as AutomationActionSchema, d as AutomationTriggerSchema } from './index-BBg9j0XK.mjs';
|
|
3
|
-
import { a as authenticatedAutomationsClient, b as automationRunIdFromEnv } from './client-
|
|
3
|
+
import { a as authenticatedAutomationsClient, b as automationRunIdFromEnv } from './client-CyUhxs-0.mjs';
|
|
4
4
|
|
|
5
5
|
const AUTOMATION_TOOL_NAMES = [
|
|
6
6
|
"automation_list",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as createTeamsClient } from './client-
|
|
2
|
+
import { c as createTeamsClient } from './client-BbNFS1WW.mjs';
|
|
3
3
|
|
|
4
4
|
const TEAM_TOOL_NAMES = ["team_create", "team_join", "team_inspect", "team_delegate", "team_message", "team_submit", "team_accept", "team_return", "team_cancel", "team_handoff", "team_schedule_create", "team_schedule_pause", "team_schedule_resume", "team_schedule_cancel"];
|
|
5
5
|
const id = z.string().min(1).max(128);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var z = require('zod');
|
|
4
|
-
var client = require('./client-
|
|
4
|
+
var client = require('./client-CXvsRLAz.cjs');
|
|
5
5
|
|
|
6
6
|
const TEAM_TOOL_NAMES = ["team_create", "team_join", "team_inspect", "team_delegate", "team_message", "team_submit", "team_accept", "team_return", "team_cancel", "team_handoff", "team_schedule_create", "team_schedule_pause", "team_schedule_resume", "team_schedule_cancel"];
|
|
7
7
|
const id = z.z.string().min(1).max(128);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-Ca5eRZ2j.cjs');
|
|
4
4
|
var fs = require('fs');
|
|
5
5
|
var child_process = require('child_process');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('node:util');
|
|
8
|
-
require('./configuration-
|
|
8
|
+
require('./configuration-CepfrPZ_.cjs');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:os');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-BfnmIH4b.cjs');
|
|
13
13
|
require('node:fs/promises');
|
|
14
14
|
|
|
15
15
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BIzr7JN0.mjs';
|
|
2
2
|
import { existsSync, unlinkSync } from 'fs';
|
|
3
3
|
import { execSync } from 'child_process';
|
|
4
4
|
import 'chalk';
|
|
5
5
|
import 'node:util';
|
|
6
|
-
import './configuration-
|
|
6
|
+
import './configuration-B0c-OP_h.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-D-W_r_pd.mjs';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
12
|
|
|
13
13
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "very-happy-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.163",
|
|
4
4
|
"description": "Remote multi-agent workspace CLI with deep Claude integration, native terminal streaming, and self-hosting.",
|
|
5
5
|
"author": "Kirill Dubovitskiy",
|
|
6
6
|
"contributors": [
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"zod": "^4.0.0"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
|
-
"very-happy-tools-arm64-darwin": "0.2.
|
|
121
|
-
"very-happy-tools-x64-darwin": "0.2.
|
|
122
|
-
"very-happy-tools-arm64-linux": "0.2.
|
|
123
|
-
"very-happy-tools-x64-linux": "0.2.
|
|
124
|
-
"very-happy-tools-arm64-win32": "0.2.
|
|
125
|
-
"very-happy-tools-x64-win32": "0.2.
|
|
120
|
+
"very-happy-tools-arm64-darwin": "0.2.163",
|
|
121
|
+
"very-happy-tools-x64-darwin": "0.2.163",
|
|
122
|
+
"very-happy-tools-arm64-linux": "0.2.163",
|
|
123
|
+
"very-happy-tools-x64-linux": "0.2.163",
|
|
124
|
+
"very-happy-tools-arm64-win32": "0.2.163",
|
|
125
|
+
"very-happy-tools-x64-win32": "0.2.163"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@slopus/happy-wire": "workspace:*",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { p as packageJson } from './package-DQsvY1XN.mjs';
|
|
2
|
-
|
|
3
|
-
const LAZY_MODULES = [
|
|
4
|
-
// Entry
|
|
5
|
-
["main", () => import('./main-3fIFXD-t.mjs')],
|
|
6
|
-
["selfCheck", () => Promise.resolve().then(function () { return selfCheck; })],
|
|
7
|
-
// Subcommands (main.ts)
|
|
8
|
-
["api/api", () => import('./api-D57dsd6_.mjs').then(function (n) { return n.b; })],
|
|
9
|
-
["claude/claudeCliPath", () => import('./claudeCliPath-BqkaH2oR.mjs')],
|
|
10
|
-
["claude/runClaude", () => import('./runClaude-WDBWRtnF.mjs')],
|
|
11
|
-
["commands/agentHome", () => import('./agentHome-DQrq_FG1.mjs')],
|
|
12
|
-
["commands/auth", () => import('./auth-BOaHWquu.mjs')],
|
|
13
|
-
["commands/auto", () => import('./auto-CWDOX35m.mjs')],
|
|
14
|
-
["commands/codexCommand", () => import('./codexCommand-DnmFr9Qx.mjs')],
|
|
15
|
-
["commands/connect", () => import('./connect-DWYj8LP_.mjs')],
|
|
16
|
-
["commands/installPiTools", () => import('./installPiTools-B_CdM5_2.mjs')],
|
|
17
|
-
["commands/installTerminalHooks", () => import('./installTerminalHooks-By7gBMEF.mjs')],
|
|
18
|
-
["commands/mcp", () => import('./mcp-DARQBZ7l.mjs')],
|
|
19
|
-
["commands/piTerminal", () => import('./piTerminal-gHWFAyzq.mjs')],
|
|
20
|
-
["commands/sandbox", () => import('./sandbox-SP0THMt0.mjs')],
|
|
21
|
-
["commands/send", () => import('./send-DOx9aQsx.mjs')],
|
|
22
|
-
["commands/server", () => import('./server-BZNi8Hq_.mjs')],
|
|
23
|
-
["commands/sessions", () => import('./sessions-Dne-OiRL.mjs')],
|
|
24
|
-
["commands/spawn", () => import('./spawn-DkgP2BGF.mjs')],
|
|
25
|
-
["commands/teams", () => import('./teams-BETNMjpZ.mjs')],
|
|
26
|
-
["commands/todo", () => import('./todo-Jk4Vs7hP.mjs')],
|
|
27
|
-
["daemon/doctor", () => import('./doctor-BPkYWSuq.mjs')],
|
|
28
|
-
["daemon/install", () => import('./install-B2duVo9a.mjs')],
|
|
29
|
-
["daemon/run", () => import('./run-CrunzDlt.mjs')],
|
|
30
|
-
["daemon/uninstall", () => import('./uninstall-C_mdAZlm.mjs')],
|
|
31
|
-
["resume/handleResumeCommand", () => import('./handleResumeCommand-CsXendKb.mjs')],
|
|
32
|
-
["ui/doctor", () => import('./doctor-FuCvKdRa.mjs').then(function (n) { return n.d; })],
|
|
33
|
-
["agent/acp", () => import('./index-9L39wqYR.mjs')],
|
|
34
|
-
["gemini/runGemini", () => import('./runGemini-Nf6SKBpw.mjs')],
|
|
35
|
-
["gemini/utils/config", () => import('./config-CSOG_ZcP.mjs')],
|
|
36
|
-
["openclaw/runOpenClaw", () => import('./runOpenClaw-9nHtmYbN.mjs')],
|
|
37
|
-
["persistence", () => import('./persistence-Cw8aLoyL.mjs')],
|
|
38
|
-
// Deferred halves of the runners and clients
|
|
39
|
-
["api/apiMachine", () => import('./apiMachine-78Aqzg--.mjs')],
|
|
40
|
-
["claude/runClaudeDeps", () => import('./runClaudeDeps-QaEx8y5r.mjs')],
|
|
41
|
-
["claude/claudeLocal", () => import('./claudeLocal-dhdlcQ6F.mjs')],
|
|
42
|
-
["claude/claudeLocalLauncher", () => import('./claudeLocalLauncher-BFfGT4eY.mjs')],
|
|
43
|
-
["claude/sdk", () => import('./index-B6UGRQ7h.mjs')],
|
|
44
|
-
["assistant/bootstrap", () => import('./bootstrap-BKmsYSwh.mjs')],
|
|
45
|
-
["agentHome", () => import('./index-DK2JpTJf.mjs')],
|
|
46
|
-
["ui/ink/RemoteModeDisplay", () => import('./RemoteModeDisplay-D-HewyXg.mjs')],
|
|
47
|
-
// External packages imported on demand
|
|
48
|
-
["expo-server-sdk", () => import('expo-server-sdk')],
|
|
49
|
-
["ink", () => import('ink')],
|
|
50
|
-
["react", () => import('react')]
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
async function runSelfCheck(modules = LAZY_MODULES) {
|
|
54
|
-
const failures = [];
|
|
55
|
-
for (const [name, load] of modules) {
|
|
56
|
-
try {
|
|
57
|
-
await load();
|
|
58
|
-
} catch (error) {
|
|
59
|
-
failures.push({ name, error: error instanceof Error ? error.message : String(error) });
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return failures;
|
|
63
|
-
}
|
|
64
|
-
async function selfCheckMain(opts = {}) {
|
|
65
|
-
const started = Date.now();
|
|
66
|
-
const failures = await runSelfCheck();
|
|
67
|
-
if (failures.length > 0) {
|
|
68
|
-
for (const failure of failures) {
|
|
69
|
-
console.error(`very-happy: failed to load ${failure.name}: ${failure.error}`);
|
|
70
|
-
}
|
|
71
|
-
return 1;
|
|
72
|
-
}
|
|
73
|
-
if (opts.verbose) console.log(`self-check: ${LAZY_MODULES.length} modules loaded in ${Date.now() - started}ms`);
|
|
74
|
-
console.log(`very-happy version: ${packageJson.version}`);
|
|
75
|
-
return 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
var selfCheck = /*#__PURE__*/Object.freeze({
|
|
79
|
-
__proto__: null,
|
|
80
|
-
runSelfCheck: runSelfCheck,
|
|
81
|
-
selfCheckMain: selfCheckMain
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
export { runSelfCheck, selfCheckMain };
|