very-happy-cli 0.2.161 → 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-Ba98QDif.cjs → AcpBackend-C2rzKnvT.cjs} +3 -3
- package/dist/{AcpBackend-6U6pQgx1.mjs → AcpBackend-CuOUXVRX.mjs} +3 -3
- package/dist/{AcpSessionManager-CoMWFVw3.mjs → AcpSessionManager-BSIBnWUb.mjs} +1 -1
- package/dist/{AcpSessionManager-BAY1Pggx.cjs → AcpSessionManager-BvIuBzoO.cjs} +1 -1
- package/dist/{BasePermissionHandler-2R0uH2CI.cjs → BasePermissionHandler-D6PdH-OU.cjs} +1 -1
- package/dist/{BasePermissionHandler-BvvhBTja.mjs → BasePermissionHandler-Ng5h8JpY.mjs} +1 -1
- package/dist/{BaseReasoningProcessor-fsVNmCEF.cjs → BaseReasoningProcessor-C0cXz1mg.cjs} +1 -1
- package/dist/{BaseReasoningProcessor-DyhO1uoU.mjs → BaseReasoningProcessor-CM-ijU4F.mjs} +1 -1
- package/dist/{agentHome-Ck1i1TQB.mjs → agentHome-Bt4lOwFE.mjs} +4 -4
- package/dist/{agentHome-DvNnGphb.cjs → agentHome-CAMEVRZZ.cjs} +4 -4
- package/dist/{api-SffjRQ1b.mjs → api-D5kfP3JF.mjs} +26 -10
- package/dist/{api-B2vLMS-z.cjs → api-DGFBAPr7.cjs} +26 -10
- package/dist/{apiMachine-gFA54X7y.cjs → apiMachine-BxCy5_No.cjs} +33 -26
- package/dist/{apiMachine-BpW9t8MO.mjs → apiMachine-C58eizxs.mjs} +21 -14
- package/dist/{assistantTools-CgiTbnWb.mjs → assistantTools-BvKH9eRc.mjs} +6 -6
- package/dist/{assistantTools-BfA0R3_m.cjs → assistantTools-NC7DMNvV.cjs} +6 -6
- package/dist/{attachmentContent-CSGxr71v.mjs → attachmentContent-CCE0Y3gR.mjs} +2 -2
- package/dist/{attachmentContent-DMMZzevR.cjs → attachmentContent-CUKdzh4v.cjs} +2 -2
- package/dist/{attachmentLimits-yba1uHFO.mjs → attachmentLimits-D5pgmASK.mjs} +1 -1
- package/dist/{attachmentLimits-CzVrqgLR.cjs → attachmentLimits-DzlBPyJP.cjs} +1 -1
- package/dist/{auth-x4CEoysH.cjs → auth-CILb5DeW.cjs} +8 -8
- package/dist/{auth-CYHjQ8oQ.mjs → auth-CRm8yNv6.mjs} +5 -5
- package/dist/{auth-Bt4ceBBy.cjs → auth-Ddz597Rw.cjs} +5 -5
- package/dist/{auth-DdyVZSo6.mjs → auth-gdc8gI9D.mjs} +8 -8
- package/dist/{auto-BDXDUnjB.cjs → auto-CXtt6MfS.cjs} +16 -14
- package/dist/{auto-CXLlRi3a.mjs → auto-lLjHfAOO.mjs} +16 -14
- package/dist/{bootstrap-CkgIq8N3.cjs → bootstrap-CccIDvh4.cjs} +2 -2
- package/dist/{bootstrap-BNQq05jR.mjs → bootstrap-DSWZAtGy.mjs} +2 -2
- package/dist/{browser-9pyhQr1R.mjs → browser-DU9kI-Q-.mjs} +1 -1
- package/dist/{browser-BDOlKWYe.cjs → browser-lizgdXYj.cjs} +1 -1
- package/dist/{claudeLocal-BDuGFnjJ.cjs → claudeLocal-Bp-lf6yb.cjs} +5 -5
- package/dist/{claudeLocal-CQa8qnwq.mjs → claudeLocal-CTR2xlPT.mjs} +5 -5
- package/dist/{claudeLocalLauncher-CDqQI9ak.mjs → claudeLocalLauncher-DFkwLMqU.mjs} +10 -10
- package/dist/{claudeLocalLauncher-Bd5I2-j6.cjs → claudeLocalLauncher-aQyL3g7I.cjs} +10 -10
- package/dist/{codexThreadFork-BCaEMBiM.mjs → claudeSessionFork-DABSCbkf.mjs} +2 -134
- package/dist/{codexThreadFork-BZqF-9bX.cjs → claudeSessionFork-DdJFvxwf.cjs} +1 -137
- package/dist/{client-Brn-UwVk.mjs → client-BbNFS1WW.mjs} +3 -3
- package/dist/{client-DOBWJL3u.cjs → client-CQzHoynf.cjs} +2 -2
- package/dist/{client-C_axwRry.cjs → client-CXvsRLAz.cjs} +3 -3
- package/dist/{client-CXb1VJui.mjs → client-CyUhxs-0.mjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +15 -15
- package/dist/codex/happyMcpStdioBridge.mjs +15 -15
- package/dist/{codexAppServerClient-ZzhUTWPo.cjs → codexAppServerClient-5jNbTlE5.cjs} +2 -2
- package/dist/{codexAppServerClient-oeQKD6Qf.mjs → codexAppServerClient-Dto99RVH.mjs} +2 -2
- package/dist/{codexCommand-CJ82bl3l.mjs → codexCommand-BHfrAyds.mjs} +49 -41
- package/dist/{codexCommand-C7H0NpBe.cjs → codexCommand-LUp0vkNi.cjs} +49 -41
- package/dist/codexThreadFork-DNekT4nQ.cjs +138 -0
- package/dist/codexThreadFork-R76RU5H0.mjs +133 -0
- package/dist/{config-BglnktIo.mjs → config-BEvt_OYR.mjs} +3 -3
- package/dist/{config-CYpL1Ahd.cjs → config-CAD5NR1h.cjs} +3 -3
- package/dist/{configuration-DoWFJUPm.mjs → configuration-B0c-OP_h.mjs} +1 -1
- package/dist/{configuration-v9f8LM9T.cjs → configuration-CepfrPZ_.cjs} +1 -1
- package/dist/{connect-yEvjdRvx.cjs → connect-BPMzMoiQ.cjs} +13 -13
- package/dist/{connect-hgcNjyAB.mjs → connect-BeK0dMYB.mjs} +13 -13
- package/dist/{context-B45vMtSZ.cjs → context-BhZMRQho.cjs} +1 -1
- package/dist/{context-C9GHPLEm.mjs → context-mMg17HJv.mjs} +1 -1
- package/dist/{controlClient-DjoKTtgK.mjs → controlClient-BKmjlbGs.mjs} +3 -3
- package/dist/{controlClient-fEHE85bH.cjs → controlClient-HPMsyxLb.cjs} +3 -3
- package/dist/{createSessionMetadata-BRLB9CNO.cjs → createSessionMetadata-CGuyVxsM.cjs} +2 -2
- package/dist/{createSessionMetadata-mIeehclp.mjs → createSessionMetadata-KOL67aSN.mjs} +2 -2
- package/dist/{deterministicJson-DKDP_mM-.cjs → deterministicJson-BFzPcsCh.cjs} +9 -9
- package/dist/{deterministicJson-p835AdAU.mjs → deterministicJson-CaWami7M.mjs} +9 -9
- package/dist/{doctor-hVNnSZJn.cjs → doctor-BHNVY9DE.cjs} +6 -6
- package/dist/{doctor-BeUuQXFs.mjs → doctor-DX2P7IlL.mjs} +6 -6
- package/dist/{ensureDaemonRunning-Dg9aZfjs.cjs → ensureDaemonRunning-BahhZpQ1.cjs} +5 -5
- package/dist/{ensureDaemonRunning-CO7d1gOC.mjs → ensureDaemonRunning-CnWMrL5b.mjs} +5 -5
- package/dist/forkBackfill-8eLDeS73.cjs +66 -0
- package/dist/forkBackfill-DYIjlN1Z.mjs +62 -0
- package/dist/{handleResumeCommand-DnVmy7a3.cjs → handleResumeCommand-Ca334R4t.cjs} +5 -5
- package/dist/{handleResumeCommand-BiTPK0qd.mjs → handleResumeCommand-bToC6FDH.mjs} +5 -5
- package/dist/{index-CAFwetLk.mjs → index-B5v5fZi6.mjs} +37 -37
- package/dist/{index-gNTWtSKN.cjs → index-B6MVw_Xb.cjs} +3 -3
- package/dist/{index-qdS1friN.mjs → index-BBg9j0XK.mjs} +8 -1
- package/dist/{index-SPGPenK5.mjs → index-CpFreRx8.mjs} +4 -4
- package/dist/{index-Cqx-Raq6.mjs → index-D3AsOj4j.mjs} +3 -3
- package/dist/{index-DA7yINuk.cjs → index-DJ-oV52i.cjs} +8 -1
- package/dist/{index-Pf2cV9cn.cjs → index-DoMsO8_G.cjs} +4 -4
- package/dist/{index-LIn6nCcq.cjs → index-vFMUVtSL.cjs} +36 -36
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-Bu85vlHD.cjs → install-BnTP73AE.cjs} +3 -3
- package/dist/{install-ClUUl3yp.mjs → install-Dixfzmb_.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +26 -0
- package/dist/lib.d.mts +26 -0
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-KHHu1015.cjs → lidState-BGWXfx1e.cjs} +1 -1
- package/dist/{lidState-C2dI0FAN.mjs → lidState-X7iQg4y5.mjs} +1 -1
- package/dist/{localHappyAgentAuth-BXiHPXdC.cjs → localHappyAgentAuth-D_Gc4K7h.cjs} +1 -1
- package/dist/{localHappyAgentAuth-DCsetiyG.mjs → localHappyAgentAuth-r83bTscW.mjs} +1 -1
- package/dist/{logger-fXoNzNuB.mjs → logger-BIzr7JN0.mjs} +2 -2
- package/dist/{logger-Bc8-u1w0.cjs → logger-Ca5eRZ2j.cjs} +2 -2
- package/dist/{machineMetadata-BHjehxJY.mjs → machineMetadata-DakW9c61.mjs} +3 -3
- package/dist/{machineMetadata-BibDMFVx.cjs → machineMetadata-GlObivJ-.cjs} +3 -3
- package/dist/{main-BktM4A1K.mjs → main-BJlGidfv.mjs} +44 -44
- package/dist/{main-CLaX-t-b.cjs → main-BfA1Vtqq.cjs} +44 -44
- package/dist/{mcp-GBfE70nk.cjs → mcp-BVzt1llv.cjs} +14 -14
- package/dist/{mcp-CeUd9KDr.mjs → mcp-Bb7AD1SD.mjs} +14 -14
- package/dist/{package-Cl5BEP5x.cjs → package-BfnmIH4b.cjs} +7 -7
- package/dist/{package-uOg9SCKi.mjs → package-D-W_r_pd.mjs} +7 -7
- package/dist/{peerTools-Dz3_7Bkk.mjs → peerTools-C1cELmtZ.mjs} +4 -4
- package/dist/{peerTools-CIeiy9wn.cjs → peerTools-CADjnFDx.cjs} +4 -4
- package/dist/{persistence-CBNMzSa8.cjs → persistence-Ceb-BPk6.cjs} +3 -3
- package/dist/{persistence-oET5n61f.mjs → persistence-DgBhXxu7.mjs} +3 -3
- package/dist/{piRunnerArgs-Bf7RUF__.cjs → piRunnerArgs-Bem-saSg.cjs} +1 -1
- package/dist/{piRunnerArgs-Dk1ncwHF.mjs → piRunnerArgs-CH6oh6w0.mjs} +1 -1
- package/dist/{piRuntime-BwRdhK_N.mjs → piRuntime-BRKG6Yoz.mjs} +1 -1
- package/dist/{piRuntime-B_6TE9Eb.cjs → piRuntime-Be0UP44z.cjs} +1 -1
- package/dist/{piTerminal-Bap3R8Re.mjs → piTerminal-DVOAWiZx.mjs} +16 -16
- package/dist/{piTerminal-CagmEoez.cjs → piTerminal-ibKBMmuK.cjs} +16 -16
- package/dist/{registerCommonHandlers-BjSV2Skz.cjs → registerCommonHandlers-DPOHFlxp.cjs} +2 -2
- package/dist/{registerCommonHandlers-CrgvJsOy.mjs → registerCommonHandlers-t15dS7xt.mjs} +2 -2
- package/dist/{registerKillSessionHandler-Cbc8Rgtd.mjs → registerKillSessionHandler-BS5afGeA.mjs} +11 -7
- package/dist/{registerKillSessionHandler-6TC2S3lf.cjs → registerKillSessionHandler-DGDubZLv.cjs} +11 -7
- package/dist/{remoteSessionClient-BNx78NLb.cjs → remoteSessionClient-DbnVs1Tv.cjs} +5 -5
- package/dist/{remoteSessionClient-CO7qOjR0.mjs → remoteSessionClient-N7JsQ0XS.mjs} +5 -5
- package/dist/{run-D5xAEWSB.cjs → run-CptLbkQ4.cjs} +32 -32
- package/dist/{run-2l5vSt2h.mjs → run-FZRugy70.mjs} +31 -31
- package/dist/{runClaude-BX6ixjtW.cjs → runClaude-Cnv0SnA4.cjs} +24 -21
- package/dist/{runClaude-BgN6xo05.mjs → runClaude-DNW3i-k4.mjs} +24 -21
- package/dist/{runClaudeDeps-COBBhD9o.mjs → runClaudeDeps-CpAiml84.mjs} +216 -39
- package/dist/{runClaudeDeps-Bp20MScE.cjs → runClaudeDeps-lb6LlVPa.cjs} +212 -35
- package/dist/{runGemini-CSMPkt0p.cjs → runGemini-BzS_Yw3F.cjs} +32 -32
- package/dist/{runGemini-Cc2jq-uh.mjs → runGemini-CRn8exeY.mjs} +32 -32
- package/dist/{runOpenClaw-CIlCwdW2.mjs → runOpenClaw-DuS_zRVT.mjs} +18 -18
- package/dist/{runOpenClaw-YBwua4Rf.cjs → runOpenClaw-QoDQpR9a.cjs} +18 -18
- package/dist/{sandbox-C4gXLP1p.cjs → sandbox-CT9CGjEI.cjs} +4 -4
- package/dist/{sandbox-CNkwOtHI.mjs → sandbox-DysMM_pn.mjs} +4 -4
- package/dist/selfCheck-BTltA-ZZ.mjs +84 -0
- package/dist/{selfCheck-CU8xSDsl.cjs → selfCheck-DIn7j8MD.cjs} +34 -34
- package/dist/{send-DY9Nr-x4.cjs → send-97xYN_Yw.cjs} +8 -8
- package/dist/{send-CGHcKZ-w.mjs → send-CA6fSF3S.mjs} +8 -8
- package/dist/{server-II51Mimf.cjs → server-C67NGJoX.cjs} +6 -6
- package/dist/{server-m2b5pamZ.mjs → server-r50NNW9e.mjs} +4 -4
- package/dist/{sessionLock-7ePAYDOg.cjs → sessionLock-CS4fdsmu.cjs} +2 -2
- package/dist/{sessionLock-Cw6FmbMv.mjs → sessionLock-Dab6_dCd.mjs} +2 -2
- package/dist/{sessionModeFile-CDmDyRkD.mjs → sessionModeFile-3yV7P9R-.mjs} +1 -1
- package/dist/{sessionModeFile-BVCV5f7E.cjs → sessionModeFile-BhqlFlHZ.cjs} +1 -1
- package/dist/{sessionOps-C_f1wKOr.mjs → sessionOps-DJSwzwP-.mjs} +5 -5
- package/dist/{sessionOps-DJdExmBy.cjs → sessionOps-DWsGWwfZ.cjs} +4 -4
- package/dist/{sessionScanner-D1goKdd3.cjs → sessionScanner-D6WqRtJQ.cjs} +3 -3
- package/dist/{sessionScanner-CaAHLyNV.mjs → sessionScanner-jilpq2aE.mjs} +3 -3
- package/dist/{sessions-DGs6ALNo.cjs → sessions-C22q-Z_s.cjs} +9 -9
- package/dist/{sessions-DnvmWUel.mjs → sessions-RXTp4x0o.mjs} +9 -9
- package/dist/{setupOfflineReconnection-R7XuR_sj.cjs → setupOfflineReconnection-BrnWBRUP.cjs} +2 -2
- package/dist/{setupOfflineReconnection-CVViqZft.mjs → setupOfflineReconnection-rd1PCWiN.mjs} +2 -2
- package/dist/{spawn-CXTH7qg1.cjs → spawn-Ccy5qAtp.cjs} +41 -19
- package/dist/{spawn-DNYSvFtC.mjs → spawn-D8CEQPbN.mjs} +39 -18
- package/dist/{spawnAgents-DZzZ9jMI.mjs → spawnAgents-Y1LjnCt9.mjs} +1 -1
- package/dist/{spawnAgents-BGQiEF-w.cjs → spawnAgents-iSu1Xzs5.cjs} +1 -1
- package/dist/{spawnHappyCLI-BhYj84rv.cjs → spawnHappyCLI-Dz2ZHrsN.cjs} +1 -1
- package/dist/{spawnHappyCLI-cqWQbwsb.mjs → spawnHappyCLI-wowHF2IL.mjs} +1 -1
- package/dist/{startFileWatcher-CdegMbJj.mjs → startFileWatcher-C1wjDI_o.mjs} +1 -1
- package/dist/{startFileWatcher-CKKx-8ZO.cjs → startFileWatcher-Ce17H9pG.cjs} +1 -1
- package/dist/{streamRelay-FPVbHpbM.mjs → streamRelay-BLgU9X3R.mjs} +1 -1
- package/dist/{streamRelay-BiKw59Cc.cjs → streamRelay-DnObXZZj.cjs} +1 -1
- package/dist/{sync-CxD-w_40.mjs → sync-DnmsgL3w.mjs} +5 -1
- package/dist/{sync-CVk4QERO.cjs → sync-fDRF_nO1.cjs} +5 -1
- package/dist/{systemPrompt-BygJcmbi.cjs → systemPrompt-9PWg4OU6.cjs} +2 -2
- package/dist/{systemPrompt-DmtypUc7.mjs → systemPrompt-Db9O7KGe.mjs} +2 -2
- package/dist/{teams-BOC6nIPL.mjs → teams-C5PwKr4K.mjs} +6 -6
- package/dist/{teams-BsvpOBfn.cjs → teams-DkHPUc6j.cjs} +6 -6
- package/dist/{time-BZNdNiIV.mjs → time-TxDyvAKk.mjs} +1 -1
- package/dist/{time-CNRE4ChD.cjs → time-xNkWLTSj.cjs} +1 -1
- package/dist/{titleGenerator-CFRhU-xq.cjs → titleGenerator-C8arvXNG.cjs} +13 -3
- package/dist/{titleGenerator-ox6ptCsp.mjs → titleGenerator-oK414IZc.mjs} +12 -2
- package/dist/{todo-C5KBVbUw.mjs → todo-CLHIGRUf.mjs} +6 -6
- package/dist/{todo-B-KB7oAB.cjs → todo-VqQuYyFq.cjs} +6 -6
- package/dist/{tools-BZabNIid.mjs → tools-BSzD246o.mjs} +2 -2
- package/dist/{tools-CsSovyNp.cjs → tools-GnqHEZHb.cjs} +2 -2
- package/dist/{tools-BmQQUATY.mjs → tools-sPgOmLr_.mjs} +1 -1
- package/dist/{tools-lMDra4Pv.cjs → tools-xQ38ufgo.cjs} +1 -1
- package/dist/{uninstall-fvA5aWpU.cjs → uninstall-DKM0j1qI.cjs} +3 -3
- package/dist/{uninstall-B1WLtC1d.mjs → uninstall-DyoXxpgI.mjs} +3 -3
- package/package.json +7 -7
- package/dist/selfCheck-hJ6PCh7v.mjs +0 -84
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
|
-
var sessionOps = require('./sessionOps-
|
|
4
|
+
var sessionOps = require('./sessionOps-DWsGWwfZ.cjs');
|
|
5
5
|
var ids = require('./ids-B6ZC0HGt.cjs');
|
|
6
|
-
var peerTools = require('./peerTools-
|
|
7
|
-
var persistence = require('./persistence-
|
|
6
|
+
var peerTools = require('./peerTools-CADjnFDx.cjs');
|
|
7
|
+
var persistence = require('./persistence-Ceb-BPk6.cjs');
|
|
8
8
|
var path = require('node:path');
|
|
9
|
-
var remoteSessionClient = require('./remoteSessionClient-
|
|
9
|
+
var remoteSessionClient = require('./remoteSessionClient-DbnVs1Tv.cjs');
|
|
10
10
|
require('axios');
|
|
11
|
-
require('./configuration-
|
|
11
|
+
require('./configuration-CepfrPZ_.cjs');
|
|
12
12
|
require('node:fs');
|
|
13
13
|
require('node:os');
|
|
14
|
-
require('./package-
|
|
14
|
+
require('./package-BfnmIH4b.cjs');
|
|
15
15
|
require('node:fs/promises');
|
|
16
16
|
require('./authRelay-BdYkC1Po.cjs');
|
|
17
17
|
require('node:crypto');
|
|
18
18
|
require('tweetnacl');
|
|
19
|
-
require('./controlClient-
|
|
20
|
-
require('./logger-
|
|
19
|
+
require('./controlClient-HPMsyxLb.cjs');
|
|
20
|
+
require('./logger-Ca5eRZ2j.cjs');
|
|
21
21
|
require('node:util');
|
|
22
|
-
require('./time-
|
|
22
|
+
require('./time-xNkWLTSj.cjs');
|
|
23
23
|
require('socket.io-client');
|
|
24
24
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
25
25
|
require('zod');
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
import { D as DEFAULT_RECENT_LIMIT, M as MAX_READ_LIMIT, l as listAccountSessions, a as listSessions, w as waitForTurnEnd, T as TurnWaitTimeoutError, r as readSessionTranscript, b as stopSession, c as resolvePermissionRequest, d as archiveSession } from './sessionOps-
|
|
2
|
+
import { D as DEFAULT_RECENT_LIMIT, M as MAX_READ_LIMIT, l as listAccountSessions, a as listSessions, w as waitForTurnEnd, T as TurnWaitTimeoutError, r as readSessionTranscript, b as stopSession, c as resolvePermissionRequest, d as archiveSession } from './sessionOps-DJSwzwP-.mjs';
|
|
3
3
|
import { i as isValidSessionId } from './ids-DU6sLx4C.mjs';
|
|
4
|
-
import { c as cliPeerSelf, l as listPeerSessions, s as sendPeerMessage, P as PEER_SCOPES } from './peerTools-
|
|
5
|
-
import { readPersistedSessions } from './persistence-
|
|
4
|
+
import { c as cliPeerSelf, l as listPeerSessions, s as sendPeerMessage, P as PEER_SCOPES } from './peerTools-C1cELmtZ.mjs';
|
|
5
|
+
import { readPersistedSessions } from './persistence-DgBhXxu7.mjs';
|
|
6
6
|
import { resolve } from 'node:path';
|
|
7
|
-
import { f as fillForeignAccountRows, l as listRemoteSessions, a as listRemotePeers, w as waitForRemoteTurnEnd, r as readRemoteTranscript } from './remoteSessionClient-
|
|
7
|
+
import { f as fillForeignAccountRows, l as listRemoteSessions, a as listRemotePeers, w as waitForRemoteTurnEnd, r as readRemoteTranscript } from './remoteSessionClient-N7JsQ0XS.mjs';
|
|
8
8
|
import 'axios';
|
|
9
|
-
import './configuration-
|
|
9
|
+
import './configuration-B0c-OP_h.mjs';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:os';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-D-W_r_pd.mjs';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import './authRelay-DSAvg1uv.mjs';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'tweetnacl';
|
|
17
|
-
import './controlClient-
|
|
18
|
-
import './logger-
|
|
17
|
+
import './controlClient-BKmjlbGs.mjs';
|
|
18
|
+
import './logger-BIzr7JN0.mjs';
|
|
19
19
|
import 'node:util';
|
|
20
|
-
import './time-
|
|
20
|
+
import './time-TxDyvAKk.mjs';
|
|
21
21
|
import 'socket.io-client';
|
|
22
22
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
23
23
|
import 'zod';
|
package/dist/{setupOfflineReconnection-R7XuR_sj.cjs → setupOfflineReconnection-BrnWBRUP.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var api = require('./api-
|
|
3
|
+
var configuration = require('./configuration-CepfrPZ_.cjs');
|
|
4
|
+
var api = require('./api-DGFBAPr7.cjs');
|
|
5
5
|
|
|
6
6
|
function createOfflineSessionStub(sessionTag) {
|
|
7
7
|
return {
|
package/dist/{setupOfflineReconnection-CVViqZft.mjs → setupOfflineReconnection-rd1PCWiN.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { s as startOfflineReconnection } from './api-
|
|
1
|
+
import { c as configuration } from './configuration-B0c-OP_h.mjs';
|
|
2
|
+
import { s as startOfflineReconnection } from './api-D5kfP3JF.mjs';
|
|
3
3
|
|
|
4
4
|
function createOfflineSessionStub(sessionTag) {
|
|
5
5
|
return {
|
|
@@ -3,25 +3,27 @@
|
|
|
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-
|
|
8
|
-
var spawnAgents = require('./spawnAgents-
|
|
6
|
+
var controlClient = require('./controlClient-HPMsyxLb.cjs');
|
|
7
|
+
var persistence = require('./persistence-Ceb-BPk6.cjs');
|
|
8
|
+
var spawnAgents = require('./spawnAgents-iSu1Xzs5.cjs');
|
|
9
9
|
var path = require('./path-B7zW-WwE.cjs');
|
|
10
|
-
var
|
|
11
|
-
var codexAppServerClient = require('./codexAppServerClient-
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
require('./
|
|
10
|
+
var claudeSessionFork = require('./claudeSessionFork-DdJFvxwf.cjs');
|
|
11
|
+
var codexAppServerClient = require('./codexAppServerClient-5jNbTlE5.cjs');
|
|
12
|
+
var codexThreadFork = require('./codexThreadFork-DNekT4nQ.cjs');
|
|
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');
|
|
16
18
|
require('node:os');
|
|
17
|
-
require('./package-
|
|
19
|
+
require('./package-BfnmIH4b.cjs');
|
|
18
20
|
require('node:fs/promises');
|
|
19
21
|
require('zod');
|
|
20
22
|
require('./authRelay-BdYkC1Po.cjs');
|
|
21
23
|
require('node:crypto');
|
|
22
24
|
require('tweetnacl');
|
|
23
25
|
require('node:util');
|
|
24
|
-
require('./index-
|
|
26
|
+
require('./index-DJ-oV52i.cjs');
|
|
25
27
|
require('@paralleldrive/cuid2');
|
|
26
28
|
require('node:readline');
|
|
27
29
|
require('node:child_process');
|
|
@@ -30,7 +32,7 @@ require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
|
30
32
|
require('./manager-Cly8xVIR.cjs');
|
|
31
33
|
require('@anthropic-ai/sandbox-runtime');
|
|
32
34
|
require('axios');
|
|
33
|
-
require('./time-
|
|
35
|
+
require('./time-xNkWLTSj.cjs');
|
|
34
36
|
require('socket.io-client');
|
|
35
37
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
36
38
|
require('./projectPath-ChLhdOyt.cjs');
|
|
@@ -61,9 +63,9 @@ function resolveForkSource(sessionId, persisted) {
|
|
|
61
63
|
async function forkProviderConversation(source) {
|
|
62
64
|
if (source.agent === "claude") {
|
|
63
65
|
try {
|
|
64
|
-
return { resumeClaudeSessionId: await
|
|
66
|
+
return { resumeClaudeSessionId: await claudeSessionFork.forkSession(path.getProjectPath(source.directory), source.claudeSessionId) };
|
|
65
67
|
} catch (error) {
|
|
66
|
-
if (error instanceof
|
|
68
|
+
if (error instanceof claudeSessionFork.ForkSourceMissingError) throw new Error("Claude session file not found on this machine");
|
|
67
69
|
throw error;
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -203,13 +205,32 @@ ${chalk.bold("Behavior:")}
|
|
|
203
205
|
${chalk.bold("Exit codes:")}
|
|
204
206
|
0 success
|
|
205
207
|
1 spawn failed (no session created)
|
|
206
|
-
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\`.
|
|
207
212
|
`);
|
|
208
213
|
}
|
|
209
|
-
|
|
210
|
-
|
|
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
|
+
}
|
|
211
232
|
const meta = metaFor(persisted.metadata?.capabilities ?? null);
|
|
212
|
-
await
|
|
233
|
+
await deps.sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
|
|
213
234
|
return meta;
|
|
214
235
|
}
|
|
215
236
|
async function handleSpawnCommand(args) {
|
|
@@ -325,7 +346,7 @@ async function handleSpawnCommand(args) {
|
|
|
325
346
|
permissionMode,
|
|
326
347
|
explicitModel: options.model,
|
|
327
348
|
capabilities
|
|
328
|
-
}));
|
|
349
|
+
}), { fork: forkSource !== null });
|
|
329
350
|
} catch (error) {
|
|
330
351
|
promptError = error instanceof Error ? error.message : String(error);
|
|
331
352
|
}
|
|
@@ -371,4 +392,5 @@ exports.sessionWebUrl = sessionOps.sessionWebUrl;
|
|
|
371
392
|
exports.handleSpawnCommand = handleSpawnCommand;
|
|
372
393
|
exports.parseEnvAssignment = parseEnvAssignment;
|
|
373
394
|
exports.parseSpawnArgs = parseSpawnArgs;
|
|
395
|
+
exports.sendFirstMessage = sendFirstMessage;
|
|
374
396
|
exports.spawnEnvironmentVariables = spawnEnvironmentVariables;
|
|
@@ -1,25 +1,27 @@
|
|
|
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-
|
|
6
|
-
import { r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES, S as SPAWN_AGENTS } from './spawnAgents-
|
|
4
|
+
import { c as checkIfDaemonRunningAndCleanupStaleState, e as spawnDaemonSession, s as stopDaemonSession } from './controlClient-BKmjlbGs.mjs';
|
|
5
|
+
import { readPersistedSessions } from './persistence-DgBhXxu7.mjs';
|
|
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
|
|
9
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import './
|
|
8
|
+
import { f as forkSession, F as ForkSourceMissingError } from './claudeSessionFork-DABSCbkf.mjs';
|
|
9
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-Dto99RVH.mjs';
|
|
10
|
+
import { f as forkCodexThread } from './codexThreadFork-R76RU5H0.mjs';
|
|
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';
|
|
14
16
|
import 'node:os';
|
|
15
|
-
import './package-
|
|
17
|
+
import './package-D-W_r_pd.mjs';
|
|
16
18
|
import 'node:fs/promises';
|
|
17
19
|
import 'zod';
|
|
18
20
|
import './authRelay-DSAvg1uv.mjs';
|
|
19
21
|
import 'node:crypto';
|
|
20
22
|
import 'tweetnacl';
|
|
21
23
|
import 'node:util';
|
|
22
|
-
import './index-
|
|
24
|
+
import './index-BBg9j0XK.mjs';
|
|
23
25
|
import '@paralleldrive/cuid2';
|
|
24
26
|
import 'node:readline';
|
|
25
27
|
import 'node:child_process';
|
|
@@ -28,7 +30,7 @@ import './contentLogMetadata-BlWI0egu.mjs';
|
|
|
28
30
|
import './manager-BQ4flvQZ.mjs';
|
|
29
31
|
import '@anthropic-ai/sandbox-runtime';
|
|
30
32
|
import 'axios';
|
|
31
|
-
import './time-
|
|
33
|
+
import './time-TxDyvAKk.mjs';
|
|
32
34
|
import 'socket.io-client';
|
|
33
35
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
34
36
|
import './projectPath-BTBIMB57.mjs';
|
|
@@ -201,13 +203,32 @@ ${chalk.bold("Behavior:")}
|
|
|
201
203
|
${chalk.bold("Exit codes:")}
|
|
202
204
|
0 success
|
|
203
205
|
1 spawn failed (no session created)
|
|
204
|
-
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\`.
|
|
205
210
|
`);
|
|
206
211
|
}
|
|
207
|
-
|
|
208
|
-
|
|
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
|
+
}
|
|
209
230
|
const meta = metaFor(persisted.metadata?.capabilities ?? null);
|
|
210
|
-
await sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
|
|
231
|
+
await deps.sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
|
|
211
232
|
return meta;
|
|
212
233
|
}
|
|
213
234
|
async function handleSpawnCommand(args) {
|
|
@@ -323,7 +344,7 @@ async function handleSpawnCommand(args) {
|
|
|
323
344
|
permissionMode,
|
|
324
345
|
explicitModel: options.model,
|
|
325
346
|
capabilities
|
|
326
|
-
}));
|
|
347
|
+
}), { fork: forkSource !== null });
|
|
327
348
|
} catch (error) {
|
|
328
349
|
promptError = error instanceof Error ? error.message : String(error);
|
|
329
350
|
}
|
|
@@ -364,4 +385,4 @@ async function handleSpawnCommand(args) {
|
|
|
364
385
|
process.exit(0);
|
|
365
386
|
}
|
|
366
387
|
|
|
367
|
-
export { SPAWN_AGENTS, handleSpawnCommand, parseEnvAssignment, parseSpawnArgs, sessionWebUrl, spawnEnvironmentVariables };
|
|
388
|
+
export { SPAWN_AGENTS, handleSpawnCommand, parseEnvAssignment, parseSpawnArgs, sendFirstMessage, sessionWebUrl, spawnEnvironmentVariables };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAgentCodeDefaults, n as normalizeAgentKey, h as isClaudeOpus55Model, j as supportsClaudeOpus55 } from './index-
|
|
1
|
+
import { g as getAgentCodeDefaults, n as normalizeAgentKey, h as isClaudeOpus55Model, j as supportsClaudeOpus55 } from './index-BBg9j0XK.mjs';
|
|
2
2
|
|
|
3
3
|
function resolveSpawnPermissionMode(agent, explicit) {
|
|
4
4
|
return explicit ?? getAgentCodeDefaults(agent ?? "claude").permissionMode;
|
|
@@ -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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-Ca5eRZ2j.cjs');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path$1 = require('node:path');
|
|
6
6
|
var path = require('./path-B7zW-WwE.cjs');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-DJ-oV52i.cjs');
|
|
8
8
|
var trimIdent = require('./trimIdent-4gvk9Wk6.cjs');
|
|
9
9
|
var os = require('node:os');
|
|
10
10
|
var agentGuidance = require('./agentGuidance-B5NATuFa.cjs');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BIzr7JN0.mjs';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
5
|
-
import { l as BUILTIN_TODO_DISCOVERY } from './index-
|
|
5
|
+
import { l as BUILTIN_TODO_DISCOVERY } from './index-BBg9j0XK.mjs';
|
|
6
6
|
import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs';
|
|
7
7
|
import { homedir } from 'node:os';
|
|
8
8
|
import { A as AGENT_GUIDANCE } from './agentGuidance-CQuNlNx8.mjs';
|
|
@@ -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();
|
|
@@ -60,6 +60,16 @@ function sanitizeTitle(raw) {
|
|
|
60
60
|
if (GENERIC_TITLES.has(title.toLowerCase().replace(/\s+/g, " ").trim())) return null;
|
|
61
61
|
return title;
|
|
62
62
|
}
|
|
63
|
+
const ONE_SHOT_ARGS = [
|
|
64
|
+
"-p",
|
|
65
|
+
"--model",
|
|
66
|
+
"haiku",
|
|
67
|
+
"--strict-mcp-config",
|
|
68
|
+
"--settings",
|
|
69
|
+
'{"disableAllHooks":true}',
|
|
70
|
+
"--no-session-persistence",
|
|
71
|
+
"--disable-slash-commands"
|
|
72
|
+
];
|
|
63
73
|
function runClaudeOneShot(binary, prompt) {
|
|
64
74
|
return new Promise((resolve2) => {
|
|
65
75
|
let settled = false;
|
|
@@ -70,7 +80,7 @@ function runClaudeOneShot(binary, prompt) {
|
|
|
70
80
|
};
|
|
71
81
|
let child;
|
|
72
82
|
try {
|
|
73
|
-
child = node_child_process.spawn(binary, [
|
|
83
|
+
child = node_child_process.spawn(binary, [...ONE_SHOT_ARGS, prompt], {
|
|
74
84
|
stdio: ["ignore", "pipe", "ignore"],
|
|
75
85
|
// HAPPY_MANAGED=1: this claude is run BY happy. The user-wide
|
|
76
86
|
// terminal-mirror SessionStart hook exits on it, so a one-shot
|
|
@@ -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;
|
|
@@ -57,6 +57,16 @@ function sanitizeTitle(raw) {
|
|
|
57
57
|
if (GENERIC_TITLES.has(title.toLowerCase().replace(/\s+/g, " ").trim())) return null;
|
|
58
58
|
return title;
|
|
59
59
|
}
|
|
60
|
+
const ONE_SHOT_ARGS = [
|
|
61
|
+
"-p",
|
|
62
|
+
"--model",
|
|
63
|
+
"haiku",
|
|
64
|
+
"--strict-mcp-config",
|
|
65
|
+
"--settings",
|
|
66
|
+
'{"disableAllHooks":true}',
|
|
67
|
+
"--no-session-persistence",
|
|
68
|
+
"--disable-slash-commands"
|
|
69
|
+
];
|
|
60
70
|
function runClaudeOneShot(binary, prompt) {
|
|
61
71
|
return new Promise((resolve2) => {
|
|
62
72
|
let settled = false;
|
|
@@ -67,7 +77,7 @@ function runClaudeOneShot(binary, prompt) {
|
|
|
67
77
|
};
|
|
68
78
|
let child;
|
|
69
79
|
try {
|
|
70
|
-
child = spawn(binary, [
|
|
80
|
+
child = spawn(binary, [...ONE_SHOT_ARGS, prompt], {
|
|
71
81
|
stdio: ["ignore", "pipe", "ignore"],
|
|
72
82
|
// HAPPY_MANAGED=1: this claude is run BY happy. The user-wide
|
|
73
83
|
// terminal-mirror SessionStart hook exits on it, so a one-shot
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { f as createBuiltinTodoClient, B as BUILTIN_TODO_SKILL } from './index-
|
|
3
|
-
import { readCredentialsForConfiguredRelay } from './persistence-
|
|
4
|
-
import { r as readTeamScope, t as teamScopePath } from './context-
|
|
1
|
+
import { c as configuration } from './configuration-B0c-OP_h.mjs';
|
|
2
|
+
import { f as createBuiltinTodoClient, B as BUILTIN_TODO_SKILL } from './index-BBg9j0XK.mjs';
|
|
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-
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var context = require('./context-
|
|
3
|
+
var configuration = require('./configuration-CepfrPZ_.cjs');
|
|
4
|
+
var index = require('./index-DJ-oV52i.cjs');
|
|
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
|
|