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.
Files changed (176) hide show
  1. package/dist/{AcpBackend-Ba98QDif.cjs → AcpBackend-C2rzKnvT.cjs} +3 -3
  2. package/dist/{AcpBackend-6U6pQgx1.mjs → AcpBackend-CuOUXVRX.mjs} +3 -3
  3. package/dist/{AcpSessionManager-CoMWFVw3.mjs → AcpSessionManager-BSIBnWUb.mjs} +1 -1
  4. package/dist/{AcpSessionManager-BAY1Pggx.cjs → AcpSessionManager-BvIuBzoO.cjs} +1 -1
  5. package/dist/{BasePermissionHandler-2R0uH2CI.cjs → BasePermissionHandler-D6PdH-OU.cjs} +1 -1
  6. package/dist/{BasePermissionHandler-BvvhBTja.mjs → BasePermissionHandler-Ng5h8JpY.mjs} +1 -1
  7. package/dist/{BaseReasoningProcessor-fsVNmCEF.cjs → BaseReasoningProcessor-C0cXz1mg.cjs} +1 -1
  8. package/dist/{BaseReasoningProcessor-DyhO1uoU.mjs → BaseReasoningProcessor-CM-ijU4F.mjs} +1 -1
  9. package/dist/{agentHome-Ck1i1TQB.mjs → agentHome-Bt4lOwFE.mjs} +4 -4
  10. package/dist/{agentHome-DvNnGphb.cjs → agentHome-CAMEVRZZ.cjs} +4 -4
  11. package/dist/{api-SffjRQ1b.mjs → api-D5kfP3JF.mjs} +26 -10
  12. package/dist/{api-B2vLMS-z.cjs → api-DGFBAPr7.cjs} +26 -10
  13. package/dist/{apiMachine-gFA54X7y.cjs → apiMachine-BxCy5_No.cjs} +33 -26
  14. package/dist/{apiMachine-BpW9t8MO.mjs → apiMachine-C58eizxs.mjs} +21 -14
  15. package/dist/{assistantTools-CgiTbnWb.mjs → assistantTools-BvKH9eRc.mjs} +6 -6
  16. package/dist/{assistantTools-BfA0R3_m.cjs → assistantTools-NC7DMNvV.cjs} +6 -6
  17. package/dist/{attachmentContent-CSGxr71v.mjs → attachmentContent-CCE0Y3gR.mjs} +2 -2
  18. package/dist/{attachmentContent-DMMZzevR.cjs → attachmentContent-CUKdzh4v.cjs} +2 -2
  19. package/dist/{attachmentLimits-yba1uHFO.mjs → attachmentLimits-D5pgmASK.mjs} +1 -1
  20. package/dist/{attachmentLimits-CzVrqgLR.cjs → attachmentLimits-DzlBPyJP.cjs} +1 -1
  21. package/dist/{auth-x4CEoysH.cjs → auth-CILb5DeW.cjs} +8 -8
  22. package/dist/{auth-CYHjQ8oQ.mjs → auth-CRm8yNv6.mjs} +5 -5
  23. package/dist/{auth-Bt4ceBBy.cjs → auth-Ddz597Rw.cjs} +5 -5
  24. package/dist/{auth-DdyVZSo6.mjs → auth-gdc8gI9D.mjs} +8 -8
  25. package/dist/{auto-BDXDUnjB.cjs → auto-CXtt6MfS.cjs} +16 -14
  26. package/dist/{auto-CXLlRi3a.mjs → auto-lLjHfAOO.mjs} +16 -14
  27. package/dist/{bootstrap-CkgIq8N3.cjs → bootstrap-CccIDvh4.cjs} +2 -2
  28. package/dist/{bootstrap-BNQq05jR.mjs → bootstrap-DSWZAtGy.mjs} +2 -2
  29. package/dist/{browser-9pyhQr1R.mjs → browser-DU9kI-Q-.mjs} +1 -1
  30. package/dist/{browser-BDOlKWYe.cjs → browser-lizgdXYj.cjs} +1 -1
  31. package/dist/{claudeLocal-BDuGFnjJ.cjs → claudeLocal-Bp-lf6yb.cjs} +5 -5
  32. package/dist/{claudeLocal-CQa8qnwq.mjs → claudeLocal-CTR2xlPT.mjs} +5 -5
  33. package/dist/{claudeLocalLauncher-CDqQI9ak.mjs → claudeLocalLauncher-DFkwLMqU.mjs} +10 -10
  34. package/dist/{claudeLocalLauncher-Bd5I2-j6.cjs → claudeLocalLauncher-aQyL3g7I.cjs} +10 -10
  35. package/dist/{codexThreadFork-BCaEMBiM.mjs → claudeSessionFork-DABSCbkf.mjs} +2 -134
  36. package/dist/{codexThreadFork-BZqF-9bX.cjs → claudeSessionFork-DdJFvxwf.cjs} +1 -137
  37. package/dist/{client-Brn-UwVk.mjs → client-BbNFS1WW.mjs} +3 -3
  38. package/dist/{client-DOBWJL3u.cjs → client-CQzHoynf.cjs} +2 -2
  39. package/dist/{client-C_axwRry.cjs → client-CXvsRLAz.cjs} +3 -3
  40. package/dist/{client-CXb1VJui.mjs → client-CyUhxs-0.mjs} +2 -2
  41. package/dist/codex/happyMcpStdioBridge.cjs +15 -15
  42. package/dist/codex/happyMcpStdioBridge.mjs +15 -15
  43. package/dist/{codexAppServerClient-ZzhUTWPo.cjs → codexAppServerClient-5jNbTlE5.cjs} +2 -2
  44. package/dist/{codexAppServerClient-oeQKD6Qf.mjs → codexAppServerClient-Dto99RVH.mjs} +2 -2
  45. package/dist/{codexCommand-CJ82bl3l.mjs → codexCommand-BHfrAyds.mjs} +49 -41
  46. package/dist/{codexCommand-C7H0NpBe.cjs → codexCommand-LUp0vkNi.cjs} +49 -41
  47. package/dist/codexThreadFork-DNekT4nQ.cjs +138 -0
  48. package/dist/codexThreadFork-R76RU5H0.mjs +133 -0
  49. package/dist/{config-BglnktIo.mjs → config-BEvt_OYR.mjs} +3 -3
  50. package/dist/{config-CYpL1Ahd.cjs → config-CAD5NR1h.cjs} +3 -3
  51. package/dist/{configuration-DoWFJUPm.mjs → configuration-B0c-OP_h.mjs} +1 -1
  52. package/dist/{configuration-v9f8LM9T.cjs → configuration-CepfrPZ_.cjs} +1 -1
  53. package/dist/{connect-yEvjdRvx.cjs → connect-BPMzMoiQ.cjs} +13 -13
  54. package/dist/{connect-hgcNjyAB.mjs → connect-BeK0dMYB.mjs} +13 -13
  55. package/dist/{context-B45vMtSZ.cjs → context-BhZMRQho.cjs} +1 -1
  56. package/dist/{context-C9GHPLEm.mjs → context-mMg17HJv.mjs} +1 -1
  57. package/dist/{controlClient-DjoKTtgK.mjs → controlClient-BKmjlbGs.mjs} +3 -3
  58. package/dist/{controlClient-fEHE85bH.cjs → controlClient-HPMsyxLb.cjs} +3 -3
  59. package/dist/{createSessionMetadata-BRLB9CNO.cjs → createSessionMetadata-CGuyVxsM.cjs} +2 -2
  60. package/dist/{createSessionMetadata-mIeehclp.mjs → createSessionMetadata-KOL67aSN.mjs} +2 -2
  61. package/dist/{deterministicJson-DKDP_mM-.cjs → deterministicJson-BFzPcsCh.cjs} +9 -9
  62. package/dist/{deterministicJson-p835AdAU.mjs → deterministicJson-CaWami7M.mjs} +9 -9
  63. package/dist/{doctor-hVNnSZJn.cjs → doctor-BHNVY9DE.cjs} +6 -6
  64. package/dist/{doctor-BeUuQXFs.mjs → doctor-DX2P7IlL.mjs} +6 -6
  65. package/dist/{ensureDaemonRunning-Dg9aZfjs.cjs → ensureDaemonRunning-BahhZpQ1.cjs} +5 -5
  66. package/dist/{ensureDaemonRunning-CO7d1gOC.mjs → ensureDaemonRunning-CnWMrL5b.mjs} +5 -5
  67. package/dist/forkBackfill-8eLDeS73.cjs +66 -0
  68. package/dist/forkBackfill-DYIjlN1Z.mjs +62 -0
  69. package/dist/{handleResumeCommand-DnVmy7a3.cjs → handleResumeCommand-Ca334R4t.cjs} +5 -5
  70. package/dist/{handleResumeCommand-BiTPK0qd.mjs → handleResumeCommand-bToC6FDH.mjs} +5 -5
  71. package/dist/{index-CAFwetLk.mjs → index-B5v5fZi6.mjs} +37 -37
  72. package/dist/{index-gNTWtSKN.cjs → index-B6MVw_Xb.cjs} +3 -3
  73. package/dist/{index-qdS1friN.mjs → index-BBg9j0XK.mjs} +8 -1
  74. package/dist/{index-SPGPenK5.mjs → index-CpFreRx8.mjs} +4 -4
  75. package/dist/{index-Cqx-Raq6.mjs → index-D3AsOj4j.mjs} +3 -3
  76. package/dist/{index-DA7yINuk.cjs → index-DJ-oV52i.cjs} +8 -1
  77. package/dist/{index-Pf2cV9cn.cjs → index-DoMsO8_G.cjs} +4 -4
  78. package/dist/{index-LIn6nCcq.cjs → index-vFMUVtSL.cjs} +36 -36
  79. package/dist/index.cjs +2 -2
  80. package/dist/index.mjs +2 -2
  81. package/dist/{install-Bu85vlHD.cjs → install-BnTP73AE.cjs} +3 -3
  82. package/dist/{install-ClUUl3yp.mjs → install-Dixfzmb_.mjs} +3 -3
  83. package/dist/lib.cjs +12 -12
  84. package/dist/lib.d.cts +26 -0
  85. package/dist/lib.d.mts +26 -0
  86. package/dist/lib.mjs +12 -12
  87. package/dist/{lidState-KHHu1015.cjs → lidState-BGWXfx1e.cjs} +1 -1
  88. package/dist/{lidState-C2dI0FAN.mjs → lidState-X7iQg4y5.mjs} +1 -1
  89. package/dist/{localHappyAgentAuth-BXiHPXdC.cjs → localHappyAgentAuth-D_Gc4K7h.cjs} +1 -1
  90. package/dist/{localHappyAgentAuth-DCsetiyG.mjs → localHappyAgentAuth-r83bTscW.mjs} +1 -1
  91. package/dist/{logger-fXoNzNuB.mjs → logger-BIzr7JN0.mjs} +2 -2
  92. package/dist/{logger-Bc8-u1w0.cjs → logger-Ca5eRZ2j.cjs} +2 -2
  93. package/dist/{machineMetadata-BHjehxJY.mjs → machineMetadata-DakW9c61.mjs} +3 -3
  94. package/dist/{machineMetadata-BibDMFVx.cjs → machineMetadata-GlObivJ-.cjs} +3 -3
  95. package/dist/{main-BktM4A1K.mjs → main-BJlGidfv.mjs} +44 -44
  96. package/dist/{main-CLaX-t-b.cjs → main-BfA1Vtqq.cjs} +44 -44
  97. package/dist/{mcp-GBfE70nk.cjs → mcp-BVzt1llv.cjs} +14 -14
  98. package/dist/{mcp-CeUd9KDr.mjs → mcp-Bb7AD1SD.mjs} +14 -14
  99. package/dist/{package-Cl5BEP5x.cjs → package-BfnmIH4b.cjs} +7 -7
  100. package/dist/{package-uOg9SCKi.mjs → package-D-W_r_pd.mjs} +7 -7
  101. package/dist/{peerTools-Dz3_7Bkk.mjs → peerTools-C1cELmtZ.mjs} +4 -4
  102. package/dist/{peerTools-CIeiy9wn.cjs → peerTools-CADjnFDx.cjs} +4 -4
  103. package/dist/{persistence-CBNMzSa8.cjs → persistence-Ceb-BPk6.cjs} +3 -3
  104. package/dist/{persistence-oET5n61f.mjs → persistence-DgBhXxu7.mjs} +3 -3
  105. package/dist/{piRunnerArgs-Bf7RUF__.cjs → piRunnerArgs-Bem-saSg.cjs} +1 -1
  106. package/dist/{piRunnerArgs-Dk1ncwHF.mjs → piRunnerArgs-CH6oh6w0.mjs} +1 -1
  107. package/dist/{piRuntime-BwRdhK_N.mjs → piRuntime-BRKG6Yoz.mjs} +1 -1
  108. package/dist/{piRuntime-B_6TE9Eb.cjs → piRuntime-Be0UP44z.cjs} +1 -1
  109. package/dist/{piTerminal-Bap3R8Re.mjs → piTerminal-DVOAWiZx.mjs} +16 -16
  110. package/dist/{piTerminal-CagmEoez.cjs → piTerminal-ibKBMmuK.cjs} +16 -16
  111. package/dist/{registerCommonHandlers-BjSV2Skz.cjs → registerCommonHandlers-DPOHFlxp.cjs} +2 -2
  112. package/dist/{registerCommonHandlers-CrgvJsOy.mjs → registerCommonHandlers-t15dS7xt.mjs} +2 -2
  113. package/dist/{registerKillSessionHandler-Cbc8Rgtd.mjs → registerKillSessionHandler-BS5afGeA.mjs} +11 -7
  114. package/dist/{registerKillSessionHandler-6TC2S3lf.cjs → registerKillSessionHandler-DGDubZLv.cjs} +11 -7
  115. package/dist/{remoteSessionClient-BNx78NLb.cjs → remoteSessionClient-DbnVs1Tv.cjs} +5 -5
  116. package/dist/{remoteSessionClient-CO7qOjR0.mjs → remoteSessionClient-N7JsQ0XS.mjs} +5 -5
  117. package/dist/{run-D5xAEWSB.cjs → run-CptLbkQ4.cjs} +32 -32
  118. package/dist/{run-2l5vSt2h.mjs → run-FZRugy70.mjs} +31 -31
  119. package/dist/{runClaude-BX6ixjtW.cjs → runClaude-Cnv0SnA4.cjs} +24 -21
  120. package/dist/{runClaude-BgN6xo05.mjs → runClaude-DNW3i-k4.mjs} +24 -21
  121. package/dist/{runClaudeDeps-COBBhD9o.mjs → runClaudeDeps-CpAiml84.mjs} +216 -39
  122. package/dist/{runClaudeDeps-Bp20MScE.cjs → runClaudeDeps-lb6LlVPa.cjs} +212 -35
  123. package/dist/{runGemini-CSMPkt0p.cjs → runGemini-BzS_Yw3F.cjs} +32 -32
  124. package/dist/{runGemini-Cc2jq-uh.mjs → runGemini-CRn8exeY.mjs} +32 -32
  125. package/dist/{runOpenClaw-CIlCwdW2.mjs → runOpenClaw-DuS_zRVT.mjs} +18 -18
  126. package/dist/{runOpenClaw-YBwua4Rf.cjs → runOpenClaw-QoDQpR9a.cjs} +18 -18
  127. package/dist/{sandbox-C4gXLP1p.cjs → sandbox-CT9CGjEI.cjs} +4 -4
  128. package/dist/{sandbox-CNkwOtHI.mjs → sandbox-DysMM_pn.mjs} +4 -4
  129. package/dist/selfCheck-BTltA-ZZ.mjs +84 -0
  130. package/dist/{selfCheck-CU8xSDsl.cjs → selfCheck-DIn7j8MD.cjs} +34 -34
  131. package/dist/{send-DY9Nr-x4.cjs → send-97xYN_Yw.cjs} +8 -8
  132. package/dist/{send-CGHcKZ-w.mjs → send-CA6fSF3S.mjs} +8 -8
  133. package/dist/{server-II51Mimf.cjs → server-C67NGJoX.cjs} +6 -6
  134. package/dist/{server-m2b5pamZ.mjs → server-r50NNW9e.mjs} +4 -4
  135. package/dist/{sessionLock-7ePAYDOg.cjs → sessionLock-CS4fdsmu.cjs} +2 -2
  136. package/dist/{sessionLock-Cw6FmbMv.mjs → sessionLock-Dab6_dCd.mjs} +2 -2
  137. package/dist/{sessionModeFile-CDmDyRkD.mjs → sessionModeFile-3yV7P9R-.mjs} +1 -1
  138. package/dist/{sessionModeFile-BVCV5f7E.cjs → sessionModeFile-BhqlFlHZ.cjs} +1 -1
  139. package/dist/{sessionOps-C_f1wKOr.mjs → sessionOps-DJSwzwP-.mjs} +5 -5
  140. package/dist/{sessionOps-DJdExmBy.cjs → sessionOps-DWsGWwfZ.cjs} +4 -4
  141. package/dist/{sessionScanner-D1goKdd3.cjs → sessionScanner-D6WqRtJQ.cjs} +3 -3
  142. package/dist/{sessionScanner-CaAHLyNV.mjs → sessionScanner-jilpq2aE.mjs} +3 -3
  143. package/dist/{sessions-DGs6ALNo.cjs → sessions-C22q-Z_s.cjs} +9 -9
  144. package/dist/{sessions-DnvmWUel.mjs → sessions-RXTp4x0o.mjs} +9 -9
  145. package/dist/{setupOfflineReconnection-R7XuR_sj.cjs → setupOfflineReconnection-BrnWBRUP.cjs} +2 -2
  146. package/dist/{setupOfflineReconnection-CVViqZft.mjs → setupOfflineReconnection-rd1PCWiN.mjs} +2 -2
  147. package/dist/{spawn-CXTH7qg1.cjs → spawn-Ccy5qAtp.cjs} +41 -19
  148. package/dist/{spawn-DNYSvFtC.mjs → spawn-D8CEQPbN.mjs} +39 -18
  149. package/dist/{spawnAgents-DZzZ9jMI.mjs → spawnAgents-Y1LjnCt9.mjs} +1 -1
  150. package/dist/{spawnAgents-BGQiEF-w.cjs → spawnAgents-iSu1Xzs5.cjs} +1 -1
  151. package/dist/{spawnHappyCLI-BhYj84rv.cjs → spawnHappyCLI-Dz2ZHrsN.cjs} +1 -1
  152. package/dist/{spawnHappyCLI-cqWQbwsb.mjs → spawnHappyCLI-wowHF2IL.mjs} +1 -1
  153. package/dist/{startFileWatcher-CdegMbJj.mjs → startFileWatcher-C1wjDI_o.mjs} +1 -1
  154. package/dist/{startFileWatcher-CKKx-8ZO.cjs → startFileWatcher-Ce17H9pG.cjs} +1 -1
  155. package/dist/{streamRelay-FPVbHpbM.mjs → streamRelay-BLgU9X3R.mjs} +1 -1
  156. package/dist/{streamRelay-BiKw59Cc.cjs → streamRelay-DnObXZZj.cjs} +1 -1
  157. package/dist/{sync-CxD-w_40.mjs → sync-DnmsgL3w.mjs} +5 -1
  158. package/dist/{sync-CVk4QERO.cjs → sync-fDRF_nO1.cjs} +5 -1
  159. package/dist/{systemPrompt-BygJcmbi.cjs → systemPrompt-9PWg4OU6.cjs} +2 -2
  160. package/dist/{systemPrompt-DmtypUc7.mjs → systemPrompt-Db9O7KGe.mjs} +2 -2
  161. package/dist/{teams-BOC6nIPL.mjs → teams-C5PwKr4K.mjs} +6 -6
  162. package/dist/{teams-BsvpOBfn.cjs → teams-DkHPUc6j.cjs} +6 -6
  163. package/dist/{time-BZNdNiIV.mjs → time-TxDyvAKk.mjs} +1 -1
  164. package/dist/{time-CNRE4ChD.cjs → time-xNkWLTSj.cjs} +1 -1
  165. package/dist/{titleGenerator-CFRhU-xq.cjs → titleGenerator-C8arvXNG.cjs} +13 -3
  166. package/dist/{titleGenerator-ox6ptCsp.mjs → titleGenerator-oK414IZc.mjs} +12 -2
  167. package/dist/{todo-C5KBVbUw.mjs → todo-CLHIGRUf.mjs} +6 -6
  168. package/dist/{todo-B-KB7oAB.cjs → todo-VqQuYyFq.cjs} +6 -6
  169. package/dist/{tools-BZabNIid.mjs → tools-BSzD246o.mjs} +2 -2
  170. package/dist/{tools-CsSovyNp.cjs → tools-GnqHEZHb.cjs} +2 -2
  171. package/dist/{tools-BmQQUATY.mjs → tools-sPgOmLr_.mjs} +1 -1
  172. package/dist/{tools-lMDra4Pv.cjs → tools-xQ38ufgo.cjs} +1 -1
  173. package/dist/{uninstall-fvA5aWpU.cjs → uninstall-DKM0j1qI.cjs} +3 -3
  174. package/dist/{uninstall-B1WLtC1d.mjs → uninstall-DyoXxpgI.mjs} +3 -3
  175. package/package.json +7 -7
  176. 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-DJdExmBy.cjs');
4
+ var sessionOps = require('./sessionOps-DWsGWwfZ.cjs');
5
5
  var ids = require('./ids-B6ZC0HGt.cjs');
6
- var peerTools = require('./peerTools-CIeiy9wn.cjs');
7
- var persistence = require('./persistence-CBNMzSa8.cjs');
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-BNx78NLb.cjs');
9
+ var remoteSessionClient = require('./remoteSessionClient-DbnVs1Tv.cjs');
10
10
  require('axios');
11
- require('./configuration-v9f8LM9T.cjs');
11
+ require('./configuration-CepfrPZ_.cjs');
12
12
  require('node:fs');
13
13
  require('node:os');
14
- require('./package-Cl5BEP5x.cjs');
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-fEHE85bH.cjs');
20
- require('./logger-Bc8-u1w0.cjs');
19
+ require('./controlClient-HPMsyxLb.cjs');
20
+ require('./logger-Ca5eRZ2j.cjs');
21
21
  require('node:util');
22
- require('./time-CNRE4ChD.cjs');
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-C_f1wKOr.mjs';
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-Dz3_7Bkk.mjs';
5
- import { readPersistedSessions } from './persistence-oET5n61f.mjs';
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-CO7qOjR0.mjs';
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-DoWFJUPm.mjs';
9
+ import './configuration-B0c-OP_h.mjs';
10
10
  import 'node:fs';
11
11
  import 'node:os';
12
- import './package-uOg9SCKi.mjs';
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-DjoKTtgK.mjs';
18
- import './logger-fXoNzNuB.mjs';
17
+ import './controlClient-BKmjlbGs.mjs';
18
+ import './logger-BIzr7JN0.mjs';
19
19
  import 'node:util';
20
- import './time-BZNdNiIV.mjs';
20
+ import './time-TxDyvAKk.mjs';
21
21
  import 'socket.io-client';
22
22
  import './backgroundTaskActivity-8PdPxrvy.mjs';
23
23
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var configuration = require('./configuration-v9f8LM9T.cjs');
4
- var api = require('./api-B2vLMS-z.cjs');
3
+ var configuration = require('./configuration-CepfrPZ_.cjs');
4
+ var api = require('./api-DGFBAPr7.cjs');
5
5
 
6
6
  function createOfflineSessionStub(sessionTag) {
7
7
  return {
@@ -1,5 +1,5 @@
1
- import { c as configuration } from './configuration-DoWFJUPm.mjs';
2
- import { s as startOfflineReconnection } from './api-SffjRQ1b.mjs';
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-fEHE85bH.cjs');
7
- var persistence = require('./persistence-CBNMzSa8.cjs');
8
- var spawnAgents = require('./spawnAgents-BGQiEF-w.cjs');
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 codexThreadFork = require('./codexThreadFork-BZqF-9bX.cjs');
11
- var codexAppServerClient = require('./codexAppServerClient-ZzhUTWPo.cjs');
12
- var sessionOps = require('./sessionOps-DJdExmBy.cjs');
13
- var createSessionMetadata = require('./createSessionMetadata-BRLB9CNO.cjs');
14
- var logger = require('./logger-Bc8-u1w0.cjs');
15
- require('./configuration-v9f8LM9T.cjs');
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-Cl5BEP5x.cjs');
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-DA7yINuk.cjs');
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-CNRE4ChD.cjs');
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 codexThreadFork.forkSession(path.getProjectPath(source.directory), source.claudeSessionId) };
66
+ return { resumeClaudeSessionId: await claudeSessionFork.forkSession(path.getProjectPath(source.directory), source.claudeSessionId) };
65
67
  } catch (error) {
66
- if (error instanceof codexThreadFork.ForkSourceMissingError) throw new Error("Claude session file not found on this machine");
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
- async function sendFirstMessage(sessionId, text, metaFor) {
210
- const persisted = await sessionOps.waitForSessionKey(sessionId, 15e3);
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 sessionOps.sendUserMessage(sessionId, persisted, text, "cli-spawn", meta);
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-DjoKTtgK.mjs';
5
- import { readPersistedSessions } from './persistence-oET5n61f.mjs';
6
- import { r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES, S as SPAWN_AGENTS } from './spawnAgents-DZzZ9jMI.mjs';
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, a as forkCodexThread } from './codexThreadFork-BCaEMBiM.mjs';
9
- import { C as CodexAppServerClient } from './codexAppServerClient-oeQKD6Qf.mjs';
10
- import { e as readSessionMetadata, s as sessionWebUrl, f as waitForSessionKey, g as sendUserMessage } from './sessionOps-C_f1wKOr.mjs';
11
- import { i as isValidSpawnOrigin } from './createSessionMetadata-mIeehclp.mjs';
12
- import { l as logger } from './logger-fXoNzNuB.mjs';
13
- import './configuration-DoWFJUPm.mjs';
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-uOg9SCKi.mjs';
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-qdS1friN.mjs';
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-BZNdNiIV.mjs';
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
- async function sendFirstMessage(sessionId, text, metaFor) {
208
- const persisted = await waitForSessionKey(sessionId, 15e3);
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-qdS1friN.mjs';
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;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DA7yINuk.cjs');
3
+ var index = require('./index-DJ-oV52i.cjs');
4
4
 
5
5
  function resolveSpawnPermissionMode(agent, explicit) {
6
6
  return explicit ?? index.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-Bc8-u1w0.cjs');
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-fXoNzNuB.mjs';
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 { l as logger } from './logger-fXoNzNuB.mjs';
1
+ import { l as logger } from './logger-BIzr7JN0.mjs';
2
2
  import { watch } from 'fs/promises';
3
3
 
4
4
  function startFileWatcher(file, onFileChange, options = {}) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var logger = require('./logger-Bc8-u1w0.cjs');
3
+ var logger = require('./logger-Ca5eRZ2j.cjs');
4
4
  var fs = require('fs/promises');
5
5
 
6
6
  function startFileWatcher(file, onFileChange, options = {}) {
@@ -1,4 +1,4 @@
1
- import { S as STREAM_DELTA_MAX_CHARS } from './index-qdS1friN.mjs';
1
+ import { S as STREAM_DELTA_MAX_CHARS } from './index-BBg9j0XK.mjs';
2
2
 
3
3
  const STREAM_FLUSH_MS = 80;
4
4
  const PROGRESS_FLUSH_MS = 250;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DA7yINuk.cjs');
3
+ var index = require('./index-DJ-oV52i.cjs');
4
4
 
5
5
  const STREAM_FLUSH_MS = 80;
6
6
  const PROGRESS_FLUSH_MS = 250;
@@ -1,4 +1,4 @@
1
- import { b as backoff } from './time-BZNdNiIV.mjs';
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-CNRE4ChD.cjs');
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-Bc8-u1w0.cjs');
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-DA7yINuk.cjs');
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-fXoNzNuB.mjs';
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-qdS1friN.mjs';
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-Brn-UwVk.mjs';
6
- import { readCredentialsForConfiguredRelay } from './persistence-oET5n61f.mjs';
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-DoWFJUPm.mjs';
8
+ import './configuration-B0c-OP_h.mjs';
9
9
  import 'node:fs';
10
10
  import 'node:path';
11
- import './package-uOg9SCKi.mjs';
12
- import './context-C9GHPLEm.mjs';
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-fXoNzNuB.mjs';
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-C_axwRry.cjs');
8
- var persistence = require('./persistence-CBNMzSa8.cjs');
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-v9f8LM9T.cjs');
10
+ require('./configuration-CepfrPZ_.cjs');
11
11
  require('node:fs');
12
12
  require('node:path');
13
- require('./package-Cl5BEP5x.cjs');
14
- require('./context-B45vMtSZ.cjs');
13
+ require('./package-BfnmIH4b.cjs');
14
+ require('./context-BhZMRQho.cjs');
15
15
  require('./authRelay-BdYkC1Po.cjs');
16
16
  require('tweetnacl');
17
- require('./logger-Bc8-u1w0.cjs');
17
+ require('./logger-Ca5eRZ2j.cjs');
18
18
  require('chalk');
19
19
  require('node:util');
20
20
  require('./resources-JDPugcDq.cjs');
@@ -1,4 +1,4 @@
1
- import { l as logger } from './logger-fXoNzNuB.mjs';
1
+ import { l as logger } from './logger-BIzr7JN0.mjs';
2
2
 
3
3
  async function delay(ms) {
4
4
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var logger = require('./logger-Bc8-u1w0.cjs');
3
+ var logger = require('./logger-Ca5eRZ2j.cjs');
4
4
 
5
5
  async function delay(ms) {
6
6
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -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-Bc8-u1w0.cjs');
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-CFRhU-xq.cjs', document.baseURI).href)));
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, ["-p", "--model", "haiku", prompt], {
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-fXoNzNuB.mjs';
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, ["-p", "--model", "haiku", prompt], {
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-DoWFJUPm.mjs';
2
- import { f as createBuiltinTodoClient, B as BUILTIN_TODO_SKILL } from './index-qdS1friN.mjs';
3
- import { readCredentialsForConfiguredRelay } from './persistence-oET5n61f.mjs';
4
- import { r as readTeamScope, t as teamScopePath } from './context-C9GHPLEm.mjs';
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-uOg9SCKi.mjs';
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-fXoNzNuB.mjs';
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-v9f8LM9T.cjs');
4
- var index = require('./index-DA7yINuk.cjs');
5
- var persistence = require('./persistence-CBNMzSa8.cjs');
6
- var context = require('./context-B45vMtSZ.cjs');
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-Cl5BEP5x.cjs');
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-Bc8-u1w0.cjs');
17
+ require('./logger-Ca5eRZ2j.cjs');
18
18
  require('chalk');
19
19
  require('node:util');
20
20