very-happy-cli 0.2.190 → 0.2.192
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-dkRv9QHm.cjs → AcpBackend-BQO4ShOy.cjs} +3 -3
- package/dist/{AcpBackend-Dd1h-Rgt.mjs → AcpBackend-CGHTDJd9.mjs} +3 -3
- package/dist/{AcpSessionManager-QBZ-CIf7.mjs → AcpSessionManager-G0xD6Jbq.mjs} +2 -2
- package/dist/{AcpSessionManager-AqWAqahm.cjs → AcpSessionManager-LlUMmcpB.cjs} +2 -2
- package/dist/{BasePermissionHandler-CLp1ge-4.mjs → BasePermissionHandler-BmTIg376.mjs} +1 -1
- package/dist/{BasePermissionHandler-CpSugp7Z.cjs → BasePermissionHandler-N6Ip3tFt.cjs} +1 -1
- package/dist/account-CCVT-HO_.mjs +240 -0
- package/dist/account-DtaouikP.cjs +245 -0
- package/dist/accountService-Bddy0zwL.cjs +571 -0
- package/dist/accountService-Dd9uqde2.mjs +566 -0
- package/dist/{acpSessionResume-CcpDuIO5.mjs → acpSessionResume-BWEUxNtC.mjs} +1 -1
- package/dist/{acpSessionResume-CZao6QEd.cjs → acpSessionResume-BnHDk5eD.cjs} +1 -1
- package/dist/{agentHome-BJGRA2Kx.mjs → agentHome-B0VnjkZW.mjs} +4 -4
- package/dist/{agentHome-fIUqT-pn.cjs → agentHome-CqQ29YY7.cjs} +4 -4
- package/dist/{api-Dw8gFsQi.mjs → api-_LeBScjg.mjs} +10 -10
- package/dist/{api-CXL6jp-p.cjs → api-hMDsC6Wg.cjs} +10 -10
- package/dist/{apiMachine-BBNEtjf7.mjs → apiMachine-CgRldeJ6.mjs} +76 -21
- package/dist/{apiMachine-C6UqHoPF.cjs → apiMachine-CqW2m6Zr.cjs} +81 -26
- package/dist/{attachmentContent-NmVfKp-B.cjs → attachmentContent-BEeT2J5n.cjs} +2 -2
- package/dist/{attachmentContent-CC4yIrSm.mjs → attachmentContent-CyptLIfq.mjs} +2 -2
- package/dist/{auth-Bb_SL2os.cjs → auth-C9NvNHhL.cjs} +5 -5
- package/dist/{auth-DKa4MsAi.cjs → auth-CA1OClsW.cjs} +8 -8
- package/dist/{auth-Bh6SUoGi.mjs → auth-CFQikywl.mjs} +8 -8
- package/dist/{auth-Bj0psrD2.mjs → auth-DL8_J9vu.mjs} +5 -5
- package/dist/{auto-DK7pbCnV.mjs → auto-CKI05w1D.mjs} +17 -17
- package/dist/{auto-C9Qohh0P.cjs → auto-uQOxlxLp.cjs} +17 -17
- package/dist/{bootstrap-Ct9Nb4sv.mjs → bootstrap-DaZ0Np7X.mjs} +2 -2
- package/dist/{bootstrap-DBJB0y-H.cjs → bootstrap-DsZGc69k.cjs} +2 -2
- package/dist/{browser-BGxDRhHy.mjs → browser-BUIaSHK2.mjs} +1 -1
- package/dist/{browser-CLJWcodR.cjs → browser-Ft0ASDm7.cjs} +1 -1
- package/dist/claudeAccountEnv-BOBpJ3k8.cjs +137 -0
- package/dist/claudeAccountEnv-ON24i0qv.mjs +132 -0
- package/dist/{claudeLocal-Ux31hZyC.mjs → claudeLocal-B1ZVtryl.mjs} +5 -5
- package/dist/{claudeLocal-B6YDYlnY.cjs → claudeLocal-BMf9t4Fa.cjs} +5 -5
- package/dist/{claudeLocalLauncher-D06QijMw.mjs → claudeLocalLauncher-Bp8bqF4y.mjs} +10 -10
- package/dist/{claudeLocalLauncher-DFvmF8rC.cjs → claudeLocalLauncher-C8TeJcfF.cjs} +10 -10
- package/dist/{claudeSessionFork-D2GI7P59.mjs → claudeSessionFork-8AA47z8Y.mjs} +1 -1
- package/dist/{claudeSessionFork-DTLZ2rek.cjs → claudeSessionFork-YiktY55n.cjs} +1 -1
- package/dist/{client-CnGNYidN.mjs → client-Bm4oKvW7.mjs} +2 -2
- package/dist/{client-CtL0Vtww.mjs → client-BmPaBnDK.mjs} +4 -4
- package/dist/{client-CARZ_lNS.cjs → client-CFHZfh9x.cjs} +4 -4
- package/dist/{client-Bffkrs5p.cjs → client-Crh8_cNx.cjs} +2 -2
- package/dist/{client-DZkBUoh9.mjs → client-Cxlp_D4I.mjs} +2 -2
- package/dist/{client-CMKGrnmT.cjs → client-D8XROyZc.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAppServerClient-CLc5nhLT.mjs → codexAppServerClient-BWJbLCQn.mjs} +3 -3
- package/dist/{codexAppServerClient-CpT9F6EM.cjs → codexAppServerClient-q8GHQhyC.cjs} +3 -3
- package/dist/{codexCommand-Dliq3EBv.mjs → codexCommand-BfXfRQr4.mjs} +121 -61
- package/dist/{codexCommand-39kH99SJ.cjs → codexCommand-BgpGg-Zy.cjs} +121 -61
- package/dist/{codexTermination-ByW7tRjr.cjs → codexTermination-CVUF0X75.cjs} +1 -1
- package/dist/{codexTermination-ORIw0gpU.mjs → codexTermination-s9fd1gkA.mjs} +1 -1
- package/dist/{config-CeIzCsfj.cjs → config-BAjyTyYp.cjs} +3 -3
- package/dist/{config-CxSsGO1Z.mjs → config-BF8XgLyc.mjs} +3 -3
- package/dist/{configuration-Dt5lKW3P.cjs → configuration-CXEVKAyF.cjs} +1 -1
- package/dist/{configuration-Dechcvd-.mjs → configuration-IhRiLDVe.mjs} +1 -1
- package/dist/{connect-UwQHvCpR.mjs → connect-LZh1gr08.mjs} +13 -13
- package/dist/{connect-NPDzIVC6.cjs → connect-rCS56arw.cjs} +13 -13
- package/dist/{context-BdZssgF0.cjs → context-3_S_mWz9.cjs} +1 -1
- package/dist/{context-C9JbJoNe.mjs → context-DO6F5YwH.mjs} +1 -1
- package/dist/{controlClient-D7NGfmtq.mjs → controlClient-8ILulwjc.mjs} +14 -5
- package/dist/{controlClient-BRk65BRO.cjs → controlClient-j7p5p3_7.cjs} +15 -4
- package/dist/{createSessionMetadata-B_HZCDj_.cjs → createSessionMetadata-DwdD_uVo.cjs} +2 -2
- package/dist/{createSessionMetadata-DyhFKAby.mjs → createSessionMetadata-oyaTZm1b.mjs} +2 -2
- package/dist/daemonAccounts-BCjDgoNt.cjs +51 -0
- package/dist/daemonAccounts-BJgt6IJe.mjs +27 -0
- package/dist/defaultPermissionMode-BFShzF55.cjs +49 -0
- package/dist/defaultPermissionMode-Lt3PUCwY.mjs +43 -0
- package/dist/{deterministicJson-BEygolBQ.cjs → deterministicJson-DUN0v3St.cjs} +13 -13
- package/dist/{deterministicJson-DNmMVhFu.mjs → deterministicJson-Dfp-7wUZ.mjs} +13 -13
- package/dist/{doctor-BdBi7TFZ.mjs → doctor-B_UwMcVT.mjs} +7 -7
- package/dist/{doctor-B9lW1WlG.cjs → doctor-FgUYTbAT.cjs} +7 -7
- package/dist/{downloadTarget-DS0zT2AU.cjs → downloadTarget-BrrQEDxg.cjs} +6 -6
- package/dist/{downloadTarget-CGojGjaN.mjs → downloadTarget-C0d6jRx-.mjs} +6 -6
- package/dist/{ensureDaemonRunning-Bibp6vhe.cjs → ensureDaemonRunning-Cq4FYI5Q.cjs} +5 -5
- package/dist/{ensureDaemonRunning-BOdbryDM.mjs → ensureDaemonRunning-KUMFfIil.mjs} +5 -5
- package/dist/{handleResumeCommand-CgLzBYne.mjs → handleResumeCommand-BGhVo3QH.mjs} +5 -5
- package/dist/{handleResumeCommand-DXOuWr4p.cjs → handleResumeCommand-Cl9GIL5F.cjs} +5 -5
- package/dist/{index-Db0HIC-k.mjs → index-BjXjMhGY.mjs} +4 -4
- package/dist/{index-BOe6dKnL.cjs → index-BzAYnYct.cjs} +186 -0
- package/dist/{index-CwRW11hT.cjs → index-CQ_hLLCj.cjs} +3 -3
- package/dist/{index-DXSIi6j_.cjs → index-CRipkiqo.cjs} +4 -4
- package/dist/{index-Bs5FD8JF.cjs → index-CZaLMmPC.cjs} +4 -4
- package/dist/{index-CBHfkQNY.mjs → index-Ca1Tt96A.mjs} +45 -41
- package/dist/{index-f8oDidjV.cjs → index-D8ODb0_U.cjs} +44 -40
- package/dist/{index-DmqsRnV7.mjs → index-DYD3GM1m.mjs} +168 -1
- package/dist/{index-rNTX33in.mjs → index-JQDyJ3Li.mjs} +3 -3
- package/dist/{index-DUByZsKe.mjs → index-v5EmjT8l.mjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-CXIL_FYx.cjs → install-ClUA9tbC.cjs} +3 -3
- package/dist/{install-DfPrEWGG.mjs → install-D6EHRtAN.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +292 -0
- package/dist/lib.d.mts +292 -0
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-D0DF20oG.mjs → lidState-CZOXXdzv.mjs} +1 -1
- package/dist/{lidState-q_XFYg33.cjs → lidState-DqoN7zH4.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CKNW-MXw.cjs → localHappyAgentAuth-BnGCpHRX.cjs} +1 -1
- package/dist/{localHappyAgentAuth-BBhM4Qk1.mjs → localHappyAgentAuth-YHxDZ4x4.mjs} +1 -1
- package/dist/{logger-BBRTTVsQ.cjs → logger-8su64lqR.cjs} +2 -2
- package/dist/{logger-CL7pin9b.mjs → logger-Fd_rNvgd.mjs} +2 -2
- package/dist/{machineMetadata-DP06qdBk.mjs → machineMetadata-1HIIC7Bc.mjs} +3 -3
- package/dist/{machineMetadata-DnFNlrVK.cjs → machineMetadata-DYXt3p6u.cjs} +3 -3
- package/dist/{main-DO7nRvhf.mjs → main-BI6GIzUL.mjs} +92 -48
- package/dist/{main-DLOXykOR.cjs → main-C_GrcYkn.cjs} +92 -48
- package/dist/{mcp-Du0MgR7e.cjs → mcp-BycIv9oQ.cjs} +18 -15
- package/dist/{mcp-C-4sPTae.mjs → mcp-XGoxywno.mjs} +18 -15
- package/dist/{mirrorProtocol-GuWMxLkh.cjs → mirrorProtocol-DVnB8EO8.cjs} +3 -3
- package/dist/{mirrorProtocol-dkq2ZENA.mjs → mirrorProtocol-DXT3rv7T.mjs} +3 -3
- package/dist/{package-C6uiXULx.mjs → package-6KkRAops.mjs} +7 -7
- package/dist/{package-DrY090nZ.cjs → package-iuLlSiSF.cjs} +7 -7
- package/dist/{panels-4DRBKHZP.cjs → panels-0C89q0Tu.cjs} +5 -5
- package/dist/{panels-DXYdJA6n.mjs → panels-B5Di2zb2.mjs} +5 -5
- package/dist/{peerTools-5ZM4spcZ.cjs → peerTools-CANTX_mG.cjs} +5 -5
- package/dist/{peerTools-dY1aJez4.mjs → peerTools-CKJ-IDM4.mjs} +5 -5
- package/dist/{persistence-Bl5S3TLB.cjs → persistence-B4ttN-fR.cjs} +2 -2
- package/dist/{persistence-Dogj7JIp.mjs → persistence-DWcHe035.mjs} +2 -2
- package/dist/{piRunnerArgs-C3jZ1M6b.cjs → piRunnerArgs-BOkfxyak.cjs} +1 -1
- package/dist/{piRunnerArgs-D8nN_Iit.mjs → piRunnerArgs-Bl5GpBoN.mjs} +2 -2
- package/dist/{piRuntime-BoeMsAXK.mjs → piRuntime-BhwxzdQf.mjs} +1 -1
- package/dist/{piRuntime-Bd9-eq6M.cjs → piRuntime-DzrIiZU8.cjs} +1 -1
- package/dist/{piTerminal-C3j1ca3x.cjs → piTerminal-BdS7ol7v.cjs} +20 -17
- package/dist/{piTerminal-GEPkIGD4.mjs → piTerminal-DnA2CbGr.mjs} +20 -17
- package/dist/{pushNotifications-CfspRcl-.cjs → pushNotifications-BqFoLye2.cjs} +12 -3
- package/dist/{pushNotifications-dUceOIni.mjs → pushNotifications-DkQ0yvFs.mjs} +12 -3
- package/dist/{query-DjsVgG3E.cjs → query-BQ4br3yn.cjs} +1 -1
- package/dist/{query-iYH-tm7L.mjs → query-BRJYSkb1.mjs} +1 -1
- package/dist/{rateLimitReporter-jeVi-fym.mjs → rateLimitReporter-BRbYkmuP.mjs} +3 -3
- package/dist/{rateLimitReporter-DUu2KydZ.cjs → rateLimitReporter-DK5SQuCc.cjs} +3 -3
- package/dist/{rateLimitWindows-Bx3ROBP5.cjs → rateLimitWindows-DBfiuYeg.cjs} +1 -1
- package/dist/{rateLimitWindows-CEn0DXaX.mjs → rateLimitWindows-Da5AR-4u.mjs} +1 -1
- package/dist/reconnectEnv-B31lY4nR.cjs +27 -0
- package/dist/reconnectEnv-DeSvHl3q.mjs +24 -0
- package/dist/{registerCommonHandlers-Beun-cQv.cjs → registerCommonHandlers-m6pxxf2J.cjs} +2 -2
- package/dist/{registerCommonHandlers-DWZ7mfdt.mjs → registerCommonHandlers-yQ7Ru-l0.mjs} +2 -2
- package/dist/{registerKillSessionHandler-CA1FFr_F.cjs → registerKillSessionHandler-BAOIa_Fs.cjs} +6 -6
- package/dist/{registerKillSessionHandler-CzgklwLG.mjs → registerKillSessionHandler-BDNpi7YO.mjs} +6 -6
- package/dist/{remoteSessionClient-BiC2KDew.mjs → remoteSessionClient-CZ7aaNgj.mjs} +5 -5
- package/dist/{remoteSessionClient-DGFI__5Z.cjs → remoteSessionClient-iJMXRN_D.cjs} +5 -5
- package/dist/{reportProgressTool-CgPy6n_7.mjs → reportProgressTool-DfQhPu0s.mjs} +3 -3
- package/dist/{reportProgressTool-CvPGov1F.cjs → reportProgressTool-DpFs7pSe.cjs} +3 -3
- package/dist/{run-B_gFgJVB.mjs → run-CwN28mcj.mjs} +215 -52
- package/dist/{run-rPqQwDi_.cjs → run-p-xp1_HY.cjs} +214 -51
- package/dist/{runClaude-DM8gm8iu.cjs → runClaude-D6U1Z575.cjs} +83 -48
- package/dist/{runClaude-CykqeXK7.mjs → runClaude-DRKtAGTm.mjs} +83 -48
- package/dist/{runClaudeDeps-D2phXGut.mjs → runClaudeDeps-BheVcIlD.mjs} +147 -69
- package/dist/{runClaudeDeps-DGAomimZ.cjs → runClaudeDeps-Dkofokgb.cjs} +142 -64
- package/dist/{runGemini-CXTeSOZp.cjs → runGemini-C8q3YCc0.cjs} +33 -33
- package/dist/{runGemini-CtWCVkj5.mjs → runGemini-owbvhFbi.mjs} +33 -33
- package/dist/{runOpenClaw-CH_9_RyZ.cjs → runOpenClaw-DGeN66-t.cjs} +18 -18
- package/dist/{runOpenClaw-BBdjlViJ.mjs → runOpenClaw-Dky3-mjO.mjs} +18 -18
- package/dist/{sandbox-Bb5IMun3.cjs → sandbox-D2CPyoCA.cjs} +4 -4
- package/dist/{sandbox-DGmXZ6Zz.mjs → sandbox-sq_wy9Gl.mjs} +4 -4
- package/dist/{selfCheck-CccwNTTK.cjs → selfCheck-BgLvQKSt.cjs} +39 -37
- package/dist/selfCheck-vkfrgQ7X.mjs +88 -0
- package/dist/{send-BpiXPkDo.cjs → send-Cd10YhXh.cjs} +8 -8
- package/dist/{send-B6rHg8GT.mjs → send-K9vg-8t-.mjs} +8 -8
- package/dist/{server-DHUzjApC.cjs → server-DRrV64r0.cjs} +6 -6
- package/dist/{server-BkdAyHhC.mjs → server-De4W1zuK.mjs} +4 -4
- package/dist/{sessionLock-BFBReiKq.cjs → sessionLock-BDtSzzKS.cjs} +10 -3
- package/dist/{sessionLock-Ca_bIo50.mjs → sessionLock-Dl6i7IgA.mjs} +10 -4
- package/dist/{sessionOps-DeWVqpe4.cjs → sessionOps-DvnEH4PL.cjs} +6 -4
- package/dist/{sessionOps-CA2kpm66.mjs → sessionOps-gU88-W9F.mjs} +6 -4
- package/dist/sessionProvider-CKcIo7KO.mjs +108 -0
- package/dist/sessionProvider-CbSZeZrl.cjs +113 -0
- package/dist/{sessionScanner-CGzsN8V6.cjs → sessionScanner-7RtcCeyD.cjs} +3 -3
- package/dist/{sessionScanner-DDDud5re.mjs → sessionScanner-DR32uSby.mjs} +3 -3
- package/dist/{sessions-CKJPWFgu.cjs → sessions-BvuMjgvJ.cjs} +10 -10
- package/dist/{sessions-B4d50sCI.mjs → sessions-DTt2Eguk.mjs} +10 -10
- package/dist/{setupOfflineReconnection-CyPNgyCe.mjs → setupOfflineReconnection-BGnvhRfb.mjs} +2 -2
- package/dist/{setupOfflineReconnection-DPXRo_zf.cjs → setupOfflineReconnection-DduOsw6p.cjs} +2 -2
- package/dist/{spawn-CrYN_OOT.mjs → spawn-CL3cUc7b.mjs} +26 -17
- package/dist/{spawn-CgSJzzWS.cjs → spawn-DMB6rRPA.cjs} +26 -17
- package/dist/{spawnAgents-C1-4m7aN.cjs → spawnAgents-CClb7buD.cjs} +8 -2
- package/dist/{spawnAgents-DWCDYCQ1.mjs → spawnAgents-CRMfOJhh.mjs} +8 -2
- package/dist/{spawnHappyCLI-DjbkiSH1.mjs → spawnHappyCLI-Cj_6IICe.mjs} +1 -1
- package/dist/{spawnHappyCLI-CTy3p6V_.cjs → spawnHappyCLI-DJdhX_Qx.cjs} +1 -1
- package/dist/{startFileWatcher-Dedtu1vq.mjs → startFileWatcher-DikVa8kg.mjs} +1 -1
- package/dist/{startFileWatcher-BQs0cJA-.cjs → startFileWatcher-LnOmVW6H.cjs} +1 -1
- package/dist/{startupSessionCreate-Dxy3X4DG.cjs → startupSessionCreate-B3ND-917.cjs} +3 -3
- package/dist/{startupSessionCreate-BKFU4v_h.mjs → startupSessionCreate-CDdaLaMq.mjs} +3 -3
- package/dist/store--XN-7MS0.mjs +269 -0
- package/dist/store-DV__wCvP.cjs +289 -0
- package/dist/{streamRelay-D9a4cBEa.cjs → streamRelay-DFdOaLOn.cjs} +1 -1
- package/dist/{streamRelay-P9e7Sohm.mjs → streamRelay-sABnxEXq.mjs} +1 -1
- package/dist/{sync-eZkXnsW_.mjs → sync-JoEZKRo8.mjs} +1 -1
- package/dist/{sync-DtWB7RzA.cjs → sync-_2lsZ1U2.cjs} +1 -1
- package/dist/{systemPrompt-2XOpZ1j6.cjs → systemPrompt-CJEvNCuW.cjs} +2 -2
- package/dist/{systemPrompt-Bn6g6aCH.mjs → systemPrompt-Zq4HyrZ5.mjs} +2 -2
- package/dist/{teams-ecFay4Gn.cjs → teams-BNZafnrT.cjs} +7 -7
- package/dist/{teams-nadkqrbW.mjs → teams-qz4LqKJ2.mjs} +7 -7
- package/dist/{template-BiTD-jI9.mjs → template-CJ8BWSsc.mjs} +1 -1
- package/dist/{template-17HATY_Y.cjs → template-LgvBbOna.cjs} +1 -1
- package/dist/{time-gPD_EmA-.cjs → time-CaUlWSNJ.cjs} +1 -1
- package/dist/{time-CN3TuSVG.mjs → time-bzmet4s5.mjs} +1 -1
- package/dist/{titleGenerator-lT5ldPuN.cjs → titleGenerator-BuIIu_JP.cjs} +17 -13
- package/dist/{titleGenerator-DgzTQdn2.mjs → titleGenerator-CbTtJ_1D.mjs} +16 -12
- package/dist/{todo-B1VeMk5A.cjs → todo-CQ_BTf9C.cjs} +6 -6
- package/dist/{todo-BIxd7l2Q.mjs → todo-DIrVF_Ak.mjs} +6 -6
- package/dist/{tools-DvqbLsCF.cjs → tools-BnmmFZji.cjs} +1 -1
- package/dist/{tools-zXJpxiG_.mjs → tools-cLOjBvPn.mjs} +1 -1
- package/dist/{uninstall-9htK6mb7.mjs → uninstall-C5OuW6dE.mjs} +3 -3
- package/dist/{uninstall-CvIOpwB5.cjs → uninstall-uEEGKB84.cjs} +3 -3
- package/dist/wrapperAccount-DXlD3bsO.mjs +106 -0
- package/dist/wrapperAccount-DzoGqS2b.cjs +110 -0
- package/package.json +7 -7
- package/dist/defaultPermissionMode-BnxJPVHT.mjs +0 -4
- package/dist/defaultPermissionMode-CxmTXUQR.cjs +0 -7
- package/dist/providerBinding-B-Qbx9W2.cjs +0 -140
- package/dist/providerBinding-CYubGg-Z.mjs +0 -132
- package/dist/selfCheck-BfK945YQ.mjs +0 -86
- package/dist/sessionProvider-VFbtUmMR.cjs +0 -114
- package/dist/sessionProvider-g18IiK74.mjs +0 -109
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var persistence = require('./persistence-
|
|
3
|
+
var configuration = require('./configuration-CXEVKAyF.cjs');
|
|
4
|
+
var persistence = require('./persistence-B4ttN-fR.cjs');
|
|
5
5
|
|
|
6
6
|
class AutomationsRequestError extends Error {
|
|
7
7
|
constructor(status, code, runStatus, invalidFields = []) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { b as readCredentialsForConfiguredRelay, r as readSettings } from './persistence-
|
|
1
|
+
import { c as configuration } from './configuration-IhRiLDVe.mjs';
|
|
2
|
+
import { b as readCredentialsForConfiguredRelay, r as readSettings } from './persistence-DWcHe035.mjs';
|
|
3
3
|
|
|
4
4
|
class AutomationsRequestError extends Error {
|
|
5
5
|
constructor(status, code, runStatus, invalidFields = []) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var persistence = require('./persistence-
|
|
3
|
+
var configuration = require('./configuration-CXEVKAyF.cjs');
|
|
4
|
+
var persistence = require('./persistence-B4ttN-fR.cjs');
|
|
5
5
|
|
|
6
6
|
const UNSUPPORTED_BACKOFF_MS = 10 * 6e4;
|
|
7
7
|
class ProjectsUnsupportedError extends Error {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tools = require('../tools-
|
|
4
|
-
var reportProgressTool = require('../reportProgressTool-
|
|
5
|
-
var peerTools = require('../peerTools-
|
|
3
|
+
var tools = require('../tools-BnmmFZji.cjs');
|
|
4
|
+
var reportProgressTool = require('../reportProgressTool-DpFs7pSe.cjs');
|
|
5
|
+
var peerTools = require('../peerTools-CANTX_mG.cjs');
|
|
6
6
|
var agentGuidance = require('../agentGuidance-BtBx2xxE.cjs');
|
|
7
7
|
var mcp_js = require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
8
8
|
var stdio_js = require('@modelcontextprotocol/sdk/server/stdio.js');
|
|
@@ -10,37 +10,37 @@ var index_js = require('@modelcontextprotocol/sdk/client/index.js');
|
|
|
10
10
|
var streamableHttp_js = require('@modelcontextprotocol/sdk/client/streamableHttp.js');
|
|
11
11
|
var z = require('zod');
|
|
12
12
|
var limits = require('../limits-C-a7gr04.cjs');
|
|
13
|
-
require('../client-
|
|
13
|
+
require('../client-CFHZfh9x.cjs');
|
|
14
14
|
require('node:crypto');
|
|
15
15
|
require('node:child_process');
|
|
16
16
|
require('node:util');
|
|
17
17
|
require('node:path');
|
|
18
|
-
require('../index-
|
|
18
|
+
require('../index-BzAYnYct.cjs');
|
|
19
19
|
require('@paralleldrive/cuid2');
|
|
20
|
-
require('../configuration-
|
|
20
|
+
require('../configuration-CXEVKAyF.cjs');
|
|
21
21
|
require('node:fs');
|
|
22
22
|
require('node:os');
|
|
23
|
-
require('../package-
|
|
23
|
+
require('../package-iuLlSiSF.cjs');
|
|
24
24
|
require('node:fs/promises');
|
|
25
|
-
require('../persistence-
|
|
25
|
+
require('../persistence-B4ttN-fR.cjs');
|
|
26
26
|
require('../authRelay-Dy1qU9td.cjs');
|
|
27
27
|
require('tweetnacl');
|
|
28
|
-
require('../logger-
|
|
28
|
+
require('../logger-8su64lqR.cjs');
|
|
29
29
|
require('chalk');
|
|
30
|
-
require('../context-
|
|
31
|
-
require('../client-
|
|
30
|
+
require('../context-3_S_mWz9.cjs');
|
|
31
|
+
require('../client-Crh8_cNx.cjs');
|
|
32
32
|
require('../precheckCompat-CWOi5c9L.cjs');
|
|
33
|
-
require('../client-
|
|
33
|
+
require('../client-D8XROyZc.cjs');
|
|
34
34
|
require('../prompt-Bof2aQkI.cjs');
|
|
35
35
|
require('../ids-B6ZC0HGt.cjs');
|
|
36
|
-
require('../controlClient-
|
|
37
|
-
require('../sessionOps-
|
|
36
|
+
require('../controlClient-j7p5p3_7.cjs');
|
|
37
|
+
require('../sessionOps-DvnEH4PL.cjs');
|
|
38
38
|
require('axios');
|
|
39
|
-
require('../time-
|
|
39
|
+
require('../time-CaUlWSNJ.cjs');
|
|
40
40
|
require('../specialCommands-J3JFOq0J.cjs');
|
|
41
41
|
require('socket.io-client');
|
|
42
42
|
require('../backgroundTaskActivity-CBvUdj39.cjs');
|
|
43
|
-
require('../remoteSessionClient-
|
|
43
|
+
require('../remoteSessionClient-iJMXRN_D.cjs');
|
|
44
44
|
require('../trimIdent-4gvk9Wk6.cjs');
|
|
45
45
|
|
|
46
46
|
function parseArgs(argv) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerTeamsTools } from '../tools-
|
|
2
|
-
import { r as registerAutomationTools, a as registerProjectTools, b as registerReportProgressTool } from '../reportProgressTool-
|
|
3
|
-
import { r as registerSessionPeerTools } from '../peerTools-
|
|
1
|
+
import { r as registerTeamsTools } from '../tools-cLOjBvPn.mjs';
|
|
2
|
+
import { r as registerAutomationTools, a as registerProjectTools, b as registerReportProgressTool } from '../reportProgressTool-DfQhPu0s.mjs';
|
|
3
|
+
import { r as registerSessionPeerTools } from '../peerTools-CKJ-IDM4.mjs';
|
|
4
4
|
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, c as PREVIEW_DOWNLOAD_PARAM_DESCRIPTION, R as REPORT_PROGRESS_TOOL_NAME } from '../agentGuidance-BDYt2Qy2.mjs';
|
|
5
5
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
6
6
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
@@ -8,37 +8,37 @@ import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
|
8
8
|
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import { C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION } from '../limits-DIo7rEBR.mjs';
|
|
11
|
-
import '../client-
|
|
11
|
+
import '../client-BmPaBnDK.mjs';
|
|
12
12
|
import 'node:crypto';
|
|
13
13
|
import 'node:child_process';
|
|
14
14
|
import 'node:util';
|
|
15
15
|
import 'node:path';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-DYD3GM1m.mjs';
|
|
17
17
|
import '@paralleldrive/cuid2';
|
|
18
|
-
import '../configuration-
|
|
18
|
+
import '../configuration-IhRiLDVe.mjs';
|
|
19
19
|
import 'node:fs';
|
|
20
20
|
import 'node:os';
|
|
21
|
-
import '../package-
|
|
21
|
+
import '../package-6KkRAops.mjs';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import '../persistence-
|
|
23
|
+
import '../persistence-DWcHe035.mjs';
|
|
24
24
|
import '../authRelay-DhQhkBvX.mjs';
|
|
25
25
|
import 'tweetnacl';
|
|
26
|
-
import '../logger-
|
|
26
|
+
import '../logger-Fd_rNvgd.mjs';
|
|
27
27
|
import 'chalk';
|
|
28
|
-
import '../context-
|
|
29
|
-
import '../client-
|
|
28
|
+
import '../context-DO6F5YwH.mjs';
|
|
29
|
+
import '../client-Cxlp_D4I.mjs';
|
|
30
30
|
import '../precheckCompat-DeEbilbr.mjs';
|
|
31
|
-
import '../client-
|
|
31
|
+
import '../client-Bm4oKvW7.mjs';
|
|
32
32
|
import '../prompt-QHuFx9j6.mjs';
|
|
33
33
|
import '../ids-DU6sLx4C.mjs';
|
|
34
|
-
import '../controlClient-
|
|
35
|
-
import '../sessionOps-
|
|
34
|
+
import '../controlClient-8ILulwjc.mjs';
|
|
35
|
+
import '../sessionOps-gU88-W9F.mjs';
|
|
36
36
|
import 'axios';
|
|
37
|
-
import '../time-
|
|
37
|
+
import '../time-bzmet4s5.mjs';
|
|
38
38
|
import '../specialCommands-MXUN0wfI.mjs';
|
|
39
39
|
import 'socket.io-client';
|
|
40
40
|
import '../backgroundTaskActivity-8PdPxrvy.mjs';
|
|
41
|
-
import '../remoteSessionClient-
|
|
41
|
+
import '../remoteSessionClient-CZ7aaNgj.mjs';
|
|
42
42
|
import '../trimIdent-BAjmv_TG.mjs';
|
|
43
43
|
|
|
44
44
|
function parseArgs(argv) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
2
|
import { spawn } from 'cross-spawn';
|
|
3
3
|
import { createInterface } from 'node:readline';
|
|
4
|
-
import { l as logger } from './logger-
|
|
4
|
+
import { l as logger } from './logger-Fd_rNvgd.mjs';
|
|
5
5
|
import { e as errorLogMetadata, c as contentLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
6
6
|
import { i as initializeSandbox, w as wrapForMcpTransport } from './manager-BEsI4qt3.mjs';
|
|
7
|
-
import { p as packageJson } from './package-
|
|
8
|
-
import { s as shouldReadCodexRateLimits, i as isUnsupportedCodexMethodError } from './rateLimitWindows-
|
|
7
|
+
import { p as packageJson } from './package-6KkRAops.mjs';
|
|
8
|
+
import { s as shouldReadCodexRateLimits, i as isUnsupportedCodexMethodError } from './rateLimitWindows-Da5AR-4u.mjs';
|
|
9
9
|
import { s as stopProcessGracefully, k as killProcessTree } from './processTree-CP5IvQ2Z.mjs';
|
|
10
10
|
|
|
11
11
|
const CODEX_HELPER_LABEL_MAX_CHARS = 80;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var node_child_process = require('node:child_process');
|
|
4
4
|
var spawn = require('cross-spawn');
|
|
5
5
|
var node_readline = require('node:readline');
|
|
6
|
-
var logger = require('./logger-
|
|
6
|
+
var logger = require('./logger-8su64lqR.cjs');
|
|
7
7
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
8
8
|
var manager = require('./manager-HrEj442o.cjs');
|
|
9
|
-
var _package = require('./package-
|
|
10
|
-
var rateLimitWindows = require('./rateLimitWindows-
|
|
9
|
+
var _package = require('./package-iuLlSiSF.cjs');
|
|
10
|
+
var rateLimitWindows = require('./rateLimitWindows-DBfiuYeg.cjs');
|
|
11
11
|
var processTree = require('./processTree-CMHWlVse.cjs');
|
|
12
12
|
|
|
13
13
|
const CODEX_HELPER_LABEL_MAX_CHARS = 80;
|
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { s as
|
|
1
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-DL8_J9vu.mjs';
|
|
2
|
+
import { k as createEnvelope, y as BUILTIN_TODO_DISCOVERY, r as restoredEffort, o as readEffortIntent, M as EFFORT_INTENT_AUTO, P as PROMPT_QUEUE_CAPABILITY, a2 as CODEX_STEER_CAPABILITY, a as PROJECT_SESSION_CAPABILITY, a3 as CODEX_COMPACT_CAPABILITY, R as RUN_INTENT_CAPABILITY } from './index-DYD3GM1m.mjs';
|
|
3
|
+
import { a as recordRunIntents, w as withoutEffort, r as registerRunIntentRpc, b as DEFAULT_CODEX_PERMISSION_MODE } from './defaultPermissionMode-Lt3PUCwY.mjs';
|
|
4
|
+
import { h as hashObject, s as startHappyServer, c as createProjectInjector } from './deterministicJson-Dfp-7wUZ.mjs';
|
|
5
|
+
import { s as sharedProjectsClient } from './client-Bm4oKvW7.mjs';
|
|
5
6
|
import { unlink } from 'node:fs/promises';
|
|
6
7
|
import { p as publishForkBackfillWhenCommitted, F as FORK_BACKFILL_CAPABILITY } from './forkBackfill-DYIjlN1Z.mjs';
|
|
7
8
|
import { randomUUID } from 'node:crypto';
|
|
8
9
|
import { createId } from '@paralleldrive/cuid2';
|
|
9
|
-
import { t as textResultPayload, d as toolResultContentText, c as connectionState, A as ApiClient } from './api-
|
|
10
|
+
import { t as textResultPayload, d as toolResultContentText, c as connectionState, A as ApiClient } from './api-_LeBScjg.mjs';
|
|
10
11
|
import { r as registerAgentAttachmentDownloads, H as HeldInput } from './heldInput-C69lA2dH.mjs';
|
|
11
|
-
import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-
|
|
12
|
+
import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-CyptLIfq.mjs';
|
|
12
13
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
13
|
-
import { c as claimSessionOrExit, a as applyServerSnapshot, b as applyReconnectReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata, t as takeAutoRestartedEvent, A as AUTO_RESTART_CAPABILITY, e as exitCursorStamp } from './sessionLock-
|
|
14
|
+
import { c as claimSessionOrExit, a as applyServerSnapshot, b as applyReconnectReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata, t as takeAutoRestartedEvent, A as AUTO_RESTART_CAPABILITY, e as exitCursorStamp } from './sessionLock-Dl6i7IgA.mjs';
|
|
14
15
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
15
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
16
|
-
import { w as wrapperRateLimitReporter } from './rateLimitReporter-
|
|
17
|
-
import { l as logger } from './logger-
|
|
18
|
-
import { B as BasePermissionHandler } from './BasePermissionHandler-
|
|
19
|
-
import { B as BaseReasoningProcessor, s as settleCodexSession } from './codexTermination-
|
|
16
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-BWJbLCQn.mjs';
|
|
17
|
+
import { w as wrapperRateLimitReporter } from './rateLimitReporter-BRbYkmuP.mjs';
|
|
18
|
+
import { l as logger } from './logger-Fd_rNvgd.mjs';
|
|
19
|
+
import { B as BasePermissionHandler } from './BasePermissionHandler-BmTIg376.mjs';
|
|
20
|
+
import { B as BaseReasoningProcessor, s as settleCodexSession } from './codexTermination-s9fd1gkA.mjs';
|
|
20
21
|
import { execSync } from 'node:child_process';
|
|
21
|
-
import { r as readSettings, l as latchKeepAwake, e as evaluateWrapperIdle, a as resolveCheckMs, H as HIBERNATION_CAPABILITY } from './persistence-
|
|
22
|
-
import { g as getInitialMachineMetadata } from './machineMetadata-
|
|
23
|
-
import { c as configuration } from './configuration-
|
|
24
|
-
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-
|
|
22
|
+
import { r as readSettings, l as latchKeepAwake, e as evaluateWrapperIdle, a as resolveCheckMs, H as HIBERNATION_CAPABILITY } from './persistence-DWcHe035.mjs';
|
|
23
|
+
import { g as getInitialMachineMetadata } from './machineMetadata-1HIIC7Bc.mjs';
|
|
24
|
+
import { c as configuration } from './configuration-IhRiLDVe.mjs';
|
|
25
|
+
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-BDNpi7YO.mjs';
|
|
25
26
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
26
27
|
import { join } from 'node:path';
|
|
27
|
-
import { c as createSessionMetadata } from './createSessionMetadata-
|
|
28
|
+
import { c as createSessionMetadata } from './createSessionMetadata-oyaTZm1b.mjs';
|
|
28
29
|
import { M as MessageBuffer } from './sessionExitLifecycle-CzkLIgNZ.mjs';
|
|
29
|
-
import { n as notifyDaemonSessionStarted,
|
|
30
|
-
import { c as createSessionForStartup, b as HibernationExitLatch, H as HibernationProbe, a as commitHibernation } from './startupSessionCreate-
|
|
30
|
+
import { n as notifyDaemonSessionStarted, o as reportSessionEditToDaemon, c as checkDaemonHibernation } from './controlClient-8ILulwjc.mjs';
|
|
31
|
+
import { c as createSessionForStartup, b as HibernationExitLatch, H as HibernationProbe, a as commitHibernation } from './startupSessionCreate-CDdaLaMq.mjs';
|
|
31
32
|
import { d as decodeBase64, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
32
|
-
import { s as setupOfflineReconnection } from './setupOfflineReconnection-
|
|
33
|
+
import { s as setupOfflineReconnection } from './setupOfflineReconnection-BGnvhRfb.mjs';
|
|
33
34
|
import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs';
|
|
34
35
|
import { a as parseSpecialCommand, c as compactCommandText, b as parseCompact } from './specialCommands-MXUN0wfI.mjs';
|
|
35
36
|
import { C as CHANGE_TITLE_INSTRUCTION } from './constants-BC4St0xd.mjs';
|
|
36
|
-
import { a as DEFAULT_CODEX_PERMISSION_MODE } from './defaultPermissionMode-BnxJPVHT.mjs';
|
|
37
37
|
import { E as EditReportThrottle, a as extractCodexPatchPaths } from './editPaths-BVfS_FFL.mjs';
|
|
38
|
-
import {
|
|
38
|
+
import { t as takeReconnectEnv } from './reconnectEnv-DeSvHl3q.mjs';
|
|
39
|
+
import { a as extractNoSandboxFlag, e as ensureDaemonRunning } from './ensureDaemonRunning-KUMFfIil.mjs';
|
|
39
40
|
import 'tweetnacl';
|
|
40
41
|
import 'axios';
|
|
41
|
-
import './time-
|
|
42
|
-
import './browser-
|
|
42
|
+
import './time-bzmet4s5.mjs';
|
|
43
|
+
import './browser-BUIaSHK2.mjs';
|
|
43
44
|
import 'open';
|
|
44
45
|
import 'zod';
|
|
45
46
|
import './prompt-QHuFx9j6.mjs';
|
|
46
|
-
import './reportProgressTool-
|
|
47
|
-
import './client-
|
|
47
|
+
import './reportProgressTool-DfQhPu0s.mjs';
|
|
48
|
+
import './client-Cxlp_D4I.mjs';
|
|
48
49
|
import './precheckCompat-DeEbilbr.mjs';
|
|
49
50
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
50
51
|
import 'node:fs';
|
|
51
52
|
import 'node:os';
|
|
52
53
|
import './pi-CqyoZMjI.mjs';
|
|
53
54
|
import './fileStore-5qpetZS0.mjs';
|
|
54
|
-
import './client-
|
|
55
|
+
import './client-BmPaBnDK.mjs';
|
|
55
56
|
import 'node:util';
|
|
56
|
-
import './context-
|
|
57
|
-
import './sessionOps-
|
|
57
|
+
import './context-DO6F5YwH.mjs';
|
|
58
|
+
import './sessionOps-gU88-W9F.mjs';
|
|
58
59
|
import 'socket.io-client';
|
|
59
60
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
60
61
|
import './resources-CLP_MpK4.mjs';
|
|
61
|
-
import './tools-
|
|
62
|
-
import './peerTools-
|
|
62
|
+
import './tools-cLOjBvPn.mjs';
|
|
63
|
+
import './peerTools-CKJ-IDM4.mjs';
|
|
63
64
|
import './ids-DU6sLx4C.mjs';
|
|
64
|
-
import './remoteSessionClient-
|
|
65
|
+
import './remoteSessionClient-CZ7aaNgj.mjs';
|
|
65
66
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
66
67
|
import 'node:http';
|
|
67
68
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
68
69
|
import './limits-DIo7rEBR.mjs';
|
|
69
|
-
import './downloadTarget-
|
|
70
|
+
import './downloadTarget-C0d6jRx-.mjs';
|
|
70
71
|
import './terminals-Dlg0x3nY.mjs';
|
|
71
72
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
72
73
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
73
|
-
import './bootstrap-
|
|
74
|
-
import './package-
|
|
74
|
+
import './bootstrap-DaZ0Np7X.mjs';
|
|
75
|
+
import './package-6KkRAops.mjs';
|
|
75
76
|
import './webPanels-B2_C2-3g.mjs';
|
|
76
|
-
import './pushNotifications-
|
|
77
|
+
import './pushNotifications-DkQ0yvFs.mjs';
|
|
77
78
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
78
79
|
import './previewPath-CXN4Vag0.mjs';
|
|
79
80
|
import 'crypto';
|
|
80
|
-
import './lidState-
|
|
81
|
+
import './lidState-CZOXXdzv.mjs';
|
|
81
82
|
import 'os';
|
|
82
83
|
import 'child_process';
|
|
83
84
|
import 'node:events';
|
|
84
|
-
import './registerCommonHandlers-
|
|
85
|
+
import './registerCommonHandlers-yQ7Ru-l0.mjs';
|
|
85
86
|
import 'util';
|
|
86
87
|
import 'fs/promises';
|
|
87
88
|
import 'path';
|
|
88
89
|
import 'cross-spawn';
|
|
89
|
-
import './sync-
|
|
90
|
+
import './sync-JoEZKRo8.mjs';
|
|
90
91
|
import 'chalk';
|
|
91
92
|
import './cliUpdate-Y34VGe9Y.mjs';
|
|
92
93
|
import './processTreeSnapshot-CuLJDNC-.mjs';
|
|
93
94
|
import 'node:readline';
|
|
94
95
|
import './manager-BEsI4qt3.mjs';
|
|
95
96
|
import '@anthropic-ai/sandbox-runtime';
|
|
96
|
-
import './rateLimitWindows-
|
|
97
|
+
import './rateLimitWindows-Da5AR-4u.mjs';
|
|
97
98
|
import './processTree-CP5IvQ2Z.mjs';
|
|
98
99
|
import './detectCLI-CSGMlV51.mjs';
|
|
99
100
|
import 'fs';
|
|
100
|
-
import './localHappyAgentAuth-
|
|
101
|
+
import './localHappyAgentAuth-YHxDZ4x4.mjs';
|
|
101
102
|
import './fsMkdir-DumgLTzR.mjs';
|
|
102
103
|
import './types-CkqAACXx.mjs';
|
|
103
104
|
import 'url';
|
|
104
|
-
import './spawnHappyCLI-
|
|
105
|
+
import './spawnHappyCLI-Cj_6IICe.mjs';
|
|
105
106
|
import './doctorReadiness-C208SMN9.mjs';
|
|
106
107
|
|
|
107
108
|
function getStartedSubagents(state) {
|
|
@@ -1095,6 +1096,13 @@ function unsupportedEffortReason(catalog, model, effort) {
|
|
|
1095
1096
|
if (selected.supportedReasoningEfforts.some((option) => option.reasoningEffort === effort)) return null;
|
|
1096
1097
|
return `Reasoning effort "${effort}" is not supported by ${model ?? "the default model"}. Choose a supported level.`;
|
|
1097
1098
|
}
|
|
1099
|
+
function settleTurnEffort(catalog, model, effort, opts) {
|
|
1100
|
+
const refusal = unsupportedEffortReason(catalog, model, effort);
|
|
1101
|
+
if (!refusal) return { refusal: null, effort, changed: false };
|
|
1102
|
+
const catalogDefault = catalog.find((entry) => model ? entry.model === model : entry.isDefault)?.defaultReasoningEffort ?? void 0;
|
|
1103
|
+
const settled = !unsupportedEffortReason(catalog, model, opts.fallback) ? opts.fallback : catalogDefault && !unsupportedEffortReason(catalog, model, catalogDefault) ? catalogDefault : void 0;
|
|
1104
|
+
return { refusal: opts.explicit ? refusal : null, effort: settled, changed: true };
|
|
1105
|
+
}
|
|
1098
1106
|
|
|
1099
1107
|
function resolveCodexTurnModel(mode, machineDefault) {
|
|
1100
1108
|
if (mode.model) return mode.model;
|
|
@@ -1498,23 +1506,26 @@ async function runCodex(opts) {
|
|
|
1498
1506
|
dangerouslySkipPermissions: initialPermissionMode === "yolo" || initialPermissionMode === "bypassPermissions",
|
|
1499
1507
|
...forkedFromSessionId ? { parentSessionId: forkedFromSessionId } : {},
|
|
1500
1508
|
...forkedFromMessageId ? { forkedFromMessageId } : {},
|
|
1501
|
-
capabilities: [PROMPT_QUEUE_CAPABILITY, FORK_BACKFILL_CAPABILITY, HIBERNATION_CAPABILITY, AUTO_RESTART_CAPABILITY, CODEX_STEER_CAPABILITY, PROJECT_SESSION_CAPABILITY, CODEX_COMPACT_CAPABILITY]
|
|
1509
|
+
capabilities: [PROMPT_QUEUE_CAPABILITY, FORK_BACKFILL_CAPABILITY, HIBERNATION_CAPABILITY, AUTO_RESTART_CAPABILITY, CODEX_STEER_CAPABILITY, PROJECT_SESSION_CAPABILITY, CODEX_COMPACT_CAPABILITY, RUN_INTENT_CAPABILITY]
|
|
1502
1510
|
});
|
|
1503
1511
|
metadata.attachmentKinds = [...CLAUDE_ATTACHMENT_KINDS];
|
|
1504
1512
|
metadata.stickyModel = null;
|
|
1505
1513
|
metadata.currentThoughtLevelCode = DEFAULT_CODEX_EFFORT;
|
|
1514
|
+
metadata.modelIntent = null;
|
|
1515
|
+
metadata.effortIntent = null;
|
|
1506
1516
|
const importCodexThreadId = process.env[IMPORT_CODEX_THREAD_ENV];
|
|
1507
1517
|
if (importCodexThreadId) {
|
|
1508
1518
|
metadata.importedFromCodexThreadId = importCodexThreadId;
|
|
1509
1519
|
const importTitle = process.env.HAPPY_IMPORT_TITLE;
|
|
1510
1520
|
if (importTitle) metadata.summary = { text: importTitle, updatedAt: Date.now() };
|
|
1511
1521
|
}
|
|
1512
|
-
const
|
|
1513
|
-
const
|
|
1514
|
-
const
|
|
1515
|
-
const
|
|
1516
|
-
const
|
|
1517
|
-
const
|
|
1522
|
+
const reconnectEnv = takeReconnectEnv();
|
|
1523
|
+
const reconnectSessionId = reconnectEnv.HAPPY_RECONNECT_SESSION_ID;
|
|
1524
|
+
const reconnectKeyBase64 = reconnectEnv.HAPPY_RECONNECT_ENCRYPTION_KEY;
|
|
1525
|
+
const reconnectVariant = reconnectEnv.HAPPY_RECONNECT_ENCRYPTION_VARIANT;
|
|
1526
|
+
const reconnectSeq = reconnectEnv.HAPPY_RECONNECT_SEQ;
|
|
1527
|
+
const reconnectMetadataVersion = reconnectEnv.HAPPY_RECONNECT_METADATA_VERSION;
|
|
1528
|
+
const reconnectAgentStateVersion = reconnectEnv.HAPPY_RECONNECT_AGENT_STATE_VERSION;
|
|
1518
1529
|
let response;
|
|
1519
1530
|
if (reconnectSessionId && reconnectKeyBase64 && reconnectVariant) {
|
|
1520
1531
|
logger.debug(`[START] Reconnecting to existing session ${reconnectSessionId}`);
|
|
@@ -1556,6 +1567,7 @@ async function runCodex(opts) {
|
|
|
1556
1567
|
logger.debug(`[START] Reconnect without server snapshot (${snapshot.reason}); skipping existing messages`);
|
|
1557
1568
|
}
|
|
1558
1569
|
}
|
|
1570
|
+
const resumedEffort = reconnectSeeded && response ? restoredEffort(response.metadata, { useReportedLevel: true }) : void 0;
|
|
1559
1571
|
let session;
|
|
1560
1572
|
let permissionHandler;
|
|
1561
1573
|
let client;
|
|
@@ -1618,7 +1630,10 @@ async function runCodex(opts) {
|
|
|
1618
1630
|
const heldInput = new HeldInput((keys, reason) => session.sendQueueCancelReason(keys, reason));
|
|
1619
1631
|
let currentPermissionMode = initialPermissionMode;
|
|
1620
1632
|
let currentModel = DEFAULT_CODEX_MODEL;
|
|
1621
|
-
let currentEffort = DEFAULT_CODEX_EFFORT;
|
|
1633
|
+
let currentEffort = resumedEffort !== void 0 ? resumedEffort ?? void 0 : DEFAULT_CODEX_EFFORT;
|
|
1634
|
+
let pendingModelReset = false;
|
|
1635
|
+
let lastStartedEffort = currentEffort;
|
|
1636
|
+
const effortJudgeModel = (model, modelReset) => resolveCodexTurnModel({ model, modelReset }, machineDefaultModel) ?? client?.threadModel ?? machineDefaultModel;
|
|
1622
1637
|
let currentAppendSystemPrompt = void 0;
|
|
1623
1638
|
let reportedStickyModel = null;
|
|
1624
1639
|
let reportedCurrentModel;
|
|
@@ -1641,8 +1656,6 @@ async function runCodex(opts) {
|
|
|
1641
1656
|
});
|
|
1642
1657
|
};
|
|
1643
1658
|
const resetCurrentModeDefaults = () => {
|
|
1644
|
-
currentEffort = DEFAULT_CODEX_EFFORT;
|
|
1645
|
-
reportModeFacts();
|
|
1646
1659
|
currentAppendSystemPrompt = void 0;
|
|
1647
1660
|
logger.debug("[Codex] Reset current mode defaults after abort");
|
|
1648
1661
|
};
|
|
@@ -1701,9 +1714,13 @@ async function runCodex(opts) {
|
|
|
1701
1714
|
reportModeFacts();
|
|
1702
1715
|
logger.debug("[Codex] Model override updated", logValueMetadata(message.meta.model));
|
|
1703
1716
|
} else {
|
|
1717
|
+
messageModelReset = pendingModelReset && !messageModel;
|
|
1704
1718
|
logger.debug("[Codex] User message received without a model override");
|
|
1705
1719
|
}
|
|
1720
|
+
pendingModelReset = false;
|
|
1706
1721
|
let messageEffort = currentEffort;
|
|
1722
|
+
let effortExplicit = false;
|
|
1723
|
+
let effortRefused = false;
|
|
1707
1724
|
if (message.meta?.hasOwnProperty("effort")) {
|
|
1708
1725
|
const incoming = message.meta.effort;
|
|
1709
1726
|
if (incoming === null || incoming === void 0) {
|
|
@@ -1713,15 +1730,22 @@ async function runCodex(opts) {
|
|
|
1713
1730
|
logger.debug(`[Codex] Effort reset to default`);
|
|
1714
1731
|
} else if (typeof incoming === "string") {
|
|
1715
1732
|
messageEffort = incoming;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1733
|
+
effortExplicit = true;
|
|
1734
|
+
effortRefused = unsupportedEffortReason(discoveredModels, effortJudgeModel(messageModel, messageModelReset), messageEffort) !== null;
|
|
1735
|
+
if (effortRefused) {
|
|
1736
|
+
logger.debug("[Codex] Effort override refused by the model catalog; sticky level kept", logValueMetadata(incoming));
|
|
1737
|
+
} else {
|
|
1738
|
+
currentEffort = messageEffort;
|
|
1739
|
+
reportModeFacts();
|
|
1740
|
+
logger.debug("[Codex] Valid effort override applied");
|
|
1741
|
+
}
|
|
1719
1742
|
} else {
|
|
1720
1743
|
logger.debug("[Codex] Ignoring invalid effort override", logValueMetadata(incoming));
|
|
1721
1744
|
}
|
|
1722
1745
|
} else {
|
|
1723
1746
|
logger.debug("[Codex] User message received without an effort override");
|
|
1724
1747
|
}
|
|
1748
|
+
recordRunIntents(session, effortRefused ? withoutEffort(message.meta) : message.meta);
|
|
1725
1749
|
let messageAppendSystemPrompt = currentAppendSystemPrompt;
|
|
1726
1750
|
if (message.meta?.hasOwnProperty("appendSystemPrompt")) {
|
|
1727
1751
|
messageAppendSystemPrompt = message.meta.appendSystemPrompt || void 0;
|
|
@@ -1735,7 +1759,8 @@ async function runCodex(opts) {
|
|
|
1735
1759
|
model: messageModel,
|
|
1736
1760
|
...messageModelReset ? { modelReset: true } : {},
|
|
1737
1761
|
appendSystemPrompt: messageAppendSystemPrompt,
|
|
1738
|
-
effort: messageEffort
|
|
1762
|
+
effort: messageEffort,
|
|
1763
|
+
...effortExplicit ? { effortExplicit: true } : {}
|
|
1739
1764
|
};
|
|
1740
1765
|
if (message.meta?.delivery === "steer" && !isCodexControlText(message.content.text)) {
|
|
1741
1766
|
if (await steerIntoRunningTurn(steerDeps, message.content.text, attachments, message.localKey)) {
|
|
@@ -1882,6 +1907,24 @@ async function runCodex(opts) {
|
|
|
1882
1907
|
}
|
|
1883
1908
|
});
|
|
1884
1909
|
session.rpcHandlerManager.registerHandler("abort", () => handleAbort("user"));
|
|
1910
|
+
registerRunIntentRpc(session.rpcHandlerManager, {
|
|
1911
|
+
getMetadata: () => session.getMetadata(),
|
|
1912
|
+
updateMetadata: (handler) => session.updateMetadata(handler)
|
|
1913
|
+
}, (request) => {
|
|
1914
|
+
if (Object.prototype.hasOwnProperty.call(request, "model")) {
|
|
1915
|
+
currentModel = request.model || void 0;
|
|
1916
|
+
pendingModelReset = !currentModel;
|
|
1917
|
+
}
|
|
1918
|
+
let effortRefused = false;
|
|
1919
|
+
if (Object.prototype.hasOwnProperty.call(request, "effort")) {
|
|
1920
|
+
const effort = request.effort || void 0;
|
|
1921
|
+
effortRefused = unsupportedEffortReason(discoveredModels, effortJudgeModel(currentModel, pendingModelReset), effort) !== null;
|
|
1922
|
+
if (!effortRefused) currentEffort = effort;
|
|
1923
|
+
}
|
|
1924
|
+
if (client) reportModeFacts();
|
|
1925
|
+
logger.debug("[Codex] Run intent set", logValueMetadata(request.model ?? null));
|
|
1926
|
+
return { effortRefused };
|
|
1927
|
+
});
|
|
1885
1928
|
const disposeTermination = registerKillSessionHandler(session.rpcHandlerManager, () => handleKillSession("archive"), session, { processSignals: true, onSignal: () => handleKillSession("offline") });
|
|
1886
1929
|
const messageBuffer = new MessageBuffer();
|
|
1887
1930
|
const hasTTY = process.stdout.isTTY && process.stdin.isTTY;
|
|
@@ -2295,9 +2338,23 @@ async function runCodex(opts) {
|
|
|
2295
2338
|
sandboxManagedByHappy
|
|
2296
2339
|
);
|
|
2297
2340
|
const turnModel = resolveCodexTurnModel(message.mode, machineDefaultModel);
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2300
|
-
|
|
2341
|
+
const turnEffort = settleTurnEffort(discoveredModels, turnModel ?? client.threadModel ?? machineDefaultModel, message.mode.effort, {
|
|
2342
|
+
explicit: message.mode.effortExplicit === true,
|
|
2343
|
+
fallback: lastStartedEffort
|
|
2344
|
+
});
|
|
2345
|
+
if (turnEffort.changed) {
|
|
2346
|
+
const refused = message.mode.effort;
|
|
2347
|
+
if (currentEffort === refused) {
|
|
2348
|
+
currentEffort = turnEffort.effort;
|
|
2349
|
+
reportModeFacts();
|
|
2350
|
+
}
|
|
2351
|
+
if (readEffortIntent(session.getMetadata()?.effortIntent) === refused) {
|
|
2352
|
+
recordRunIntents(session, { effort: turnEffort.effort ?? null, effortIntent: turnEffort.effort ?? EFFORT_INTENT_AUTO });
|
|
2353
|
+
}
|
|
2354
|
+
logger.debug("[Codex] Refused effort settled", logValueMetadata(turnEffort.effort ?? null));
|
|
2355
|
+
}
|
|
2356
|
+
if (turnEffort.refusal) {
|
|
2357
|
+
throw new Error(turnEffort.refusal);
|
|
2301
2358
|
}
|
|
2302
2359
|
if (!client.hasActiveThread()) {
|
|
2303
2360
|
const startedThread = await client.startThread({
|
|
@@ -2335,8 +2392,11 @@ async function runCodex(opts) {
|
|
|
2335
2392
|
model: turnModel,
|
|
2336
2393
|
approvalPolicy: executionPolicy.approvalPolicy,
|
|
2337
2394
|
sandbox: executionPolicy.sandbox,
|
|
2338
|
-
effort:
|
|
2339
|
-
onTurnStarted: () =>
|
|
2395
|
+
effort: turnEffort.effort,
|
|
2396
|
+
onTurnStarted: () => {
|
|
2397
|
+
lastStartedEffort = turnEffort.effort;
|
|
2398
|
+
heldInput.delivered();
|
|
2399
|
+
}
|
|
2340
2400
|
});
|
|
2341
2401
|
reportModeFacts();
|
|
2342
2402
|
first = false;
|