very-happy-cli 0.2.182 → 0.2.184
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-DLk3gMYH.mjs → AcpBackend-Csg7Sy2P.mjs} +3 -3
- package/dist/{AcpBackend-JA5eu8Y0.cjs → AcpBackend-DOzn74zn.cjs} +3 -3
- package/dist/{AcpSessionManager-OrCww-Qv.mjs → AcpSessionManager-BRK2F2yN.mjs} +10 -3
- package/dist/{AcpSessionManager-DjYidq4C.cjs → AcpSessionManager-CJXDNNtq.cjs} +10 -3
- package/dist/{BasePermissionHandler-u-neo-iN.mjs → BasePermissionHandler-BqYwrCra.mjs} +1 -1
- package/dist/{BasePermissionHandler-D3PMKLBS.cjs → BasePermissionHandler-CfrnkG3v.cjs} +1 -1
- package/dist/{acpSessionResume-Dxo8222T.cjs → acpSessionResume-DZ65DBeE.cjs} +1 -1
- package/dist/{acpSessionResume-u2TwX5Jd.mjs → acpSessionResume-Dz1myMbR.mjs} +1 -1
- package/dist/{agentHome-D3hNrnoA.mjs → agentHome-B_tu3tFJ.mjs} +4 -4
- package/dist/{agentHome-CP1tCBXz.cjs → agentHome-CKAXhc8P.cjs} +4 -4
- package/dist/{api-C_YSQnsi.mjs → api-BpTDU2BO.mjs} +79 -12
- package/dist/{api-CZWcG7uh.cjs → api-rw5xkzxo.cjs} +81 -11
- package/dist/{apiMachine-DPGrED5C.cjs → apiMachine-Bs1XXHKs.cjs} +14 -14
- package/dist/{apiMachine-C_GA5Bm-.mjs → apiMachine-wp0hWG3F.mjs} +14 -14
- package/dist/{attachmentContent-Ckzyb1Uy.mjs → attachmentContent-CWSSGMMo.mjs} +2 -2
- package/dist/{attachmentContent-I_dJIevE.cjs → attachmentContent-K_Up4InS.cjs} +2 -2
- package/dist/{auth-BKnE7uv7.cjs → auth-C4_mXYgj.cjs} +8 -8
- package/dist/{auth-DOXMI-xp.mjs → auth-CBESCCCn.mjs} +8 -8
- package/dist/{auth-CGgpiJ5-.mjs → auth-D6kSt2sR.mjs} +5 -5
- package/dist/{auth-Lw_utSMV.cjs → auth-gGryJImw.cjs} +5 -5
- package/dist/{auto-Z56mMZnH.mjs → auto-CEucVmFR.mjs} +32 -26
- package/dist/{auto-CIgFHIyQ.cjs → auto-Do43AOza.cjs} +32 -25
- package/dist/{bootstrap-DsXp74wv.cjs → bootstrap-BPz1iX77.cjs} +2 -2
- package/dist/{bootstrap-D3vlOROj.mjs → bootstrap-CodyCmGt.mjs} +2 -2
- package/dist/{browser-CUxGoATV.mjs → browser-CqMhj8Gm.mjs} +1 -1
- package/dist/{browser-CZlA9AkO.cjs → browser-D9D-1eqa.cjs} +1 -1
- package/dist/{claudeLocal-FnTUgwCi.mjs → claudeLocal-BgIRtT3Q.mjs} +5 -5
- package/dist/{claudeLocal-oELvwiZL.cjs → claudeLocal-Dywp8NKr.cjs} +5 -5
- package/dist/{claudeLocalLauncher-CO5YHCzi.mjs → claudeLocalLauncher-CaHjZ8HW.mjs} +10 -10
- package/dist/{claudeLocalLauncher-QsVXEVdE.cjs → claudeLocalLauncher-_TOL73g5.cjs} +10 -10
- package/dist/{claudeSessionFork-Cspr6QW0.mjs → claudeSessionFork-C9nB7fs5.mjs} +1 -1
- package/dist/{claudeSessionFork-BA4GE5AL.cjs → claudeSessionFork-jq-_WiAu.cjs} +1 -1
- package/dist/{client-CDuW4MS9.cjs → client-BFDji81N.cjs} +15 -7
- package/dist/{client-Ctbw05Xj.mjs → client-BdbVizjk.mjs} +15 -7
- package/dist/{client-xnWiHqdb.cjs → client-ByZFACEw.cjs} +18 -5
- package/dist/{client-DK8CzUry.cjs → client-C49zFRkX.cjs} +2 -2
- package/dist/{client-o-meK7-a.mjs → client-CX-_2myt.mjs} +2 -2
- package/dist/{client-BGfmSbWc.mjs → client-DwlYk8uJ.mjs} +18 -5
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAppServerClient-BlsOZLul.mjs → codexAppServerClient-CmOIqiNQ.mjs} +3 -3
- package/dist/{codexAppServerClient-DhNDTU_i.cjs → codexAppServerClient-DF12ZSw1.cjs} +3 -3
- package/dist/{codexCommand-BGx5NMQR.mjs → codexCommand-BN05uEyv.mjs} +94 -60
- package/dist/{codexCommand-DJDPfpIs.cjs → codexCommand-H-ObWTtx.cjs} +94 -60
- package/dist/{codexTermination-CVhhwHZU.mjs → codexTermination-Byohgj8h.mjs} +1 -1
- package/dist/{codexTermination-CqPMuokw.cjs → codexTermination-RwKa8pKk.cjs} +1 -1
- package/dist/{config-CWAe08-Q.mjs → config-ChHLh-hf.mjs} +3 -3
- package/dist/{config-CHpxzXBL.cjs → config-D_wNqwxX.cjs} +3 -3
- package/dist/{configuration-B-CugKJ3.cjs → configuration-C9Sx-Foo.cjs} +1 -1
- package/dist/{configuration-YXw_Dcsb.mjs → configuration-CVgUe2qN.mjs} +1 -1
- package/dist/{connect-BmHvMXH2.cjs → connect-B61xJDRq.cjs} +13 -13
- package/dist/{connect-CPeJXHha.mjs → connect-DJEQjS7C.mjs} +13 -13
- package/dist/{context-BtIVqHI5.cjs → context-Bf3BG7w8.cjs} +1 -1
- package/dist/{context-Drzs_Z38.mjs → context-CDPfhHTo.mjs} +1 -1
- package/dist/{controlClient-D0kGwKYx.cjs → controlClient-BLO1_pPx.cjs} +14 -3
- package/dist/{controlClient-BL4hb4l3.mjs → controlClient-DMCxtwq2.mjs} +14 -4
- package/dist/{createSessionMetadata-L499emJn.cjs → createSessionMetadata-5Mde6Dfh.cjs} +2 -2
- package/dist/{createSessionMetadata-DvGDsnsn.mjs → createSessionMetadata-BYroCdrU.mjs} +2 -2
- package/dist/daemonSupervisor-57JYYzMf.cjs +268 -0
- package/dist/daemonSupervisor-DfzrtNhM.mjs +245 -0
- package/dist/{defaultPermissionMode-MXpZlXud.cjs → defaultPermissionMode-B7mjHQKp.cjs} +2 -2
- package/dist/{defaultPermissionMode-BLfxu-Yz.mjs → defaultPermissionMode-CTdxUV_3.mjs} +2 -2
- package/dist/{deterministicJson-CfLkBRvU.cjs → deterministicJson-C1Z9MlDX.cjs} +569 -17
- package/dist/{deterministicJson-B_UAbmQ4.mjs → deterministicJson-C3QXOc1N.mjs} +572 -21
- package/dist/{doctor-DMvlzmnE.cjs → doctor-DRdV3thy.cjs} +7 -7
- package/dist/{doctor-bKScPtZu.mjs → doctor-OwNmTpYh.mjs} +7 -7
- package/dist/{downloadTarget-J9j37eFG.mjs → downloadTarget-CNtQ8rhV.mjs} +6 -6
- package/dist/{downloadTarget-D33BFvew.cjs → downloadTarget-Di5bf7r0.cjs} +6 -6
- package/dist/{ensureDaemonRunning-2IqWROJp.cjs → ensureDaemonRunning-CMY--T9Q.cjs} +5 -5
- package/dist/{ensureDaemonRunning-DLvwhpNg.mjs → ensureDaemonRunning-IRV-w0wH.mjs} +5 -5
- package/dist/{handleResumeCommand-CjtjQ_I7.mjs → handleResumeCommand-BO00SYjG.mjs} +5 -5
- package/dist/{handleResumeCommand-Dp2Y-p6V.cjs → handleResumeCommand-z7wY7QVM.cjs} +5 -5
- package/dist/{index-DYVIbhAJ.cjs → index-B4cyX2by.cjs} +40 -40
- package/dist/{index-B_aNaW9w.cjs → index-BsoUsrKS.cjs} +4 -4
- package/dist/{index-Cllzqoes.mjs → index-C7zgeuLP.mjs} +4 -4
- package/dist/{index-D_LvOWUN.mjs → index-CVUiytNq.mjs} +3 -3
- package/dist/{index-BOT0Tg5E.mjs → index-DZvi6_tB.mjs} +4 -4
- package/dist/{index-BI0h2Zks.mjs → index-DisBaRvM.mjs} +277 -77
- package/dist/{index-CZC7egJA.cjs → index-NhmqjrGv.cjs} +3 -3
- package/dist/{index-oh8XEozJ.cjs → index-Ub-5xbcU.cjs} +286 -76
- package/dist/{index-kA46KMxN.mjs → index-_LfuIz-O.mjs} +41 -41
- package/dist/{index-DymOv3kK.cjs → index-wYJu2yGc.cjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-D2NCbeJ-.cjs → install-BATFlr_l.cjs} +2 -2
- package/dist/{install-BAa_Xmof.cjs → install-CGYDeYes.cjs} +3 -3
- package/dist/{install-C46mkr9a.mjs → install-DeUM6h8X.mjs} +3 -3
- package/dist/{install-D0inLCv-.mjs → install-F3rP8tBU.mjs} +2 -2
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +1 -1
- package/dist/lib.d.mts +1 -1
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-DcPvwniz.cjs → lidState-C4YgPn6y.cjs} +1 -1
- package/dist/{lidState-D8Iuvjgl.mjs → lidState-CBjQEwTt.mjs} +1 -1
- package/dist/{localHappyAgentAuth-SD6GM97y.cjs → localHappyAgentAuth-BzCuIkzi.cjs} +1 -1
- package/dist/{localHappyAgentAuth-D3rQDRd9.mjs → localHappyAgentAuth-CcWGU_lS.mjs} +1 -1
- package/dist/{logger-DK1ytCz6.cjs → logger-CrtT0opS.cjs} +2 -2
- package/dist/{logger-DpqihN1f.mjs → logger-D2qd0mMg.mjs} +2 -2
- package/dist/{machineMetadata-D4E3qoIG.mjs → machineMetadata-B2czDiTd.mjs} +3 -3
- package/dist/{machineMetadata-IJc6_iyx.cjs → machineMetadata-D1hlm_oF.cjs} +3 -3
- package/dist/{main-CpUmw7hm.mjs → main-BNYWELul.mjs} +69 -56
- package/dist/{main-DUXh2rgW.cjs → main-BWgWN5d1.cjs} +69 -56
- package/dist/{mcp-D5f3Vd-z.cjs → mcp-C18unjs1.cjs} +15 -15
- package/dist/{mcp-66g1TJ8P.mjs → mcp-ColtiH23.mjs} +15 -15
- package/dist/{mirrorProtocol-DkWOcZh9.cjs → mirrorProtocol-D4CR5I5W.cjs} +3 -3
- package/dist/{mirrorProtocol-bsCUcaCY.mjs → mirrorProtocol-DTHWtAE5.mjs} +3 -3
- package/dist/{package-BfeqAzyJ.cjs → package-DczR1k0c.cjs} +7 -7
- package/dist/{package-CKj8zndE.mjs → package-Ek5FOyEo.mjs} +7 -7
- package/dist/{panels-r8LmaBs6.mjs → panels-BIQ7FrCB.mjs} +5 -5
- package/dist/{panels-2PXsw9-d.cjs → panels-DYSMHhdb.cjs} +5 -5
- package/dist/{peerTools-D_id4d41.mjs → peerTools-CABQ6iKd.mjs} +5 -5
- package/dist/{peerTools-BVp1z0T_.cjs → peerTools-Cufh4Qp_.cjs} +5 -5
- package/dist/{persistence-jOEuAFTS.mjs → persistence-DFtgQvr6.mjs} +2 -2
- package/dist/{persistence-BdpwWXKh.cjs → persistence-IYH6bAXY.cjs} +2 -2
- package/dist/{piRunnerArgs-68I5F_M1.mjs → piRunnerArgs-CIWprC1S.mjs} +1 -1
- package/dist/{piRunnerArgs-vxCHKnSA.cjs → piRunnerArgs-Dgjmj8KL.cjs} +1 -1
- package/dist/{piRuntime-C3Dg5uni.cjs → piRuntime-C_nX977w.cjs} +2 -2
- package/dist/{piRuntime-DgLIard1.mjs → piRuntime-K6o4GPZ9.mjs} +2 -2
- package/dist/{piTerminal-DJL0w-uA.mjs → piTerminal-CRl0EZc3.mjs} +18 -18
- package/dist/{piTerminal-C135BcLP.cjs → piTerminal-CYhcmkyi.cjs} +18 -18
- package/dist/providerBinding-B-Qbx9W2.cjs +140 -0
- package/dist/providerBinding-CYubGg-Z.mjs +132 -0
- package/dist/{pushNotifications-CyQVDThC.cjs → pushNotifications-BgQ_QTgS.cjs} +3 -3
- package/dist/{pushNotifications-CMmRsbKv.mjs → pushNotifications-gVJWGFBP.mjs} +3 -3
- package/dist/{query-CPXnDURZ.mjs → query-CGp9vY4e.mjs} +1 -1
- package/dist/{query-CK--1fbL.cjs → query-DFreaScb.cjs} +1 -1
- package/dist/{rateLimitWindows-DJxnNw-X.cjs → rateLimitWindows-CeogT1b6.cjs} +1 -1
- package/dist/{rateLimitWindows-Cqa4AGaB.mjs → rateLimitWindows-DM_gshI4.mjs} +1 -1
- package/dist/{registerCommonHandlers-DbNoM39q.cjs → registerCommonHandlers-CRqKXwQt.cjs} +2 -2
- package/dist/{registerCommonHandlers-K8dICQO2.mjs → registerCommonHandlers-CyAtDNvs.mjs} +2 -2
- package/dist/{registerKillSessionHandler-DiS_go8d.cjs → registerKillSessionHandler-CX49N52L.cjs} +6 -6
- package/dist/{registerKillSessionHandler-O1iriOMO.mjs → registerKillSessionHandler-DGWADNla.mjs} +6 -6
- package/dist/{remoteSessionClient-BlURPulk.mjs → remoteSessionClient-1nycIdrG.mjs} +5 -5
- package/dist/{remoteSessionClient-CtV9mDko.cjs → remoteSessionClient-CuAkp19e.cjs} +5 -5
- package/dist/{reportProgressTool-DlD_xjzU.cjs → reportProgressTool-BS7TkeEk.cjs} +4 -4
- package/dist/{reportProgressTool-nCExrHZH.mjs → reportProgressTool-CdSi-uSC.mjs} +4 -4
- package/dist/{resources-CH1iP6Cv.mjs → resources-CLdQfe3b.mjs} +1 -1
- package/dist/{resources-BPyN59Iv.cjs → resources-CqwHPhdK.cjs} +1 -1
- package/dist/{run-drtwHYkO.mjs → run-DqjEj8M2.mjs} +101 -248
- package/dist/{run-BBNrcCfI.cjs → run-gVwkplx0.cjs} +111 -259
- package/dist/{runClaude-B3KSeby4.cjs → runClaude-CtVoFstP.cjs} +39 -24
- package/dist/{runClaude-CFp27Tyi.mjs → runClaude-CuSjrZSf.mjs} +39 -24
- package/dist/{runClaudeDeps-C_C9TCI0.cjs → runClaudeDeps-DqOgRuKq.cjs} +49 -40
- package/dist/{runClaudeDeps-DMcv93lA.mjs → runClaudeDeps-eazOhb6g.mjs} +54 -45
- package/dist/{runGemini-DzdSBAr9.cjs → runGemini-81wkPvMv.cjs} +37 -35
- package/dist/{runGemini-Bc6SY-hd.mjs → runGemini-B4EqAd1U.mjs} +37 -35
- package/dist/{runOpenClaw-DN6rEVqC.cjs → runOpenClaw-BK7ZQEKj.cjs} +18 -18
- package/dist/{runOpenClaw-DI0qMlgF.mjs → runOpenClaw-Brb1KKAA.mjs} +18 -18
- package/dist/{sandbox-DtttPBMA.cjs → sandbox-DFD6an8o.cjs} +4 -4
- package/dist/{sandbox-v-ffe8LR.mjs → sandbox-t43Exd4t.mjs} +4 -4
- package/dist/{selfCheck-B-yy6bW3.cjs → selfCheck-Bel50SH3.cjs} +37 -36
- package/dist/selfCheck-CwpZepG-.mjs +86 -0
- package/dist/{send-DpBwSZuj.mjs → send-Co9jxmc4.mjs} +8 -8
- package/dist/{send-ShzXYPRu.cjs → send-IR5DnG9V.cjs} +8 -8
- package/dist/{server-CEzKrfKj.cjs → server-CAo6a3Vw.cjs} +6 -6
- package/dist/{server-DScgJXxa.mjs → server-KnIeKeTb.mjs} +4 -4
- package/dist/{sessionLock-Dc0fadGG.cjs → sessionLock-DNGDn9oj.cjs} +3 -3
- package/dist/{sessionLock-B6K4SBZD.mjs → sessionLock-ha9gsQEn.mjs} +3 -3
- package/dist/{sessionOps-D0BPWPoh.mjs → sessionOps-Di9MC0FP.mjs} +4 -4
- package/dist/{sessionOps-Dx7wARjI.cjs → sessionOps-hRqzcMXB.cjs} +4 -4
- package/dist/sessionProvider-4Nn6e9Kd.mjs +109 -0
- package/dist/sessionProvider-LqE7Y_cf.cjs +114 -0
- package/dist/{sessionScanner-BJ35TVG6.cjs → sessionScanner-BzEtrHB8.cjs} +3 -3
- package/dist/{sessionScanner-9Fpgaxtf.mjs → sessionScanner-DKFKDsrW.mjs} +3 -3
- package/dist/{sessions-TZGGAry1.cjs → sessions-CmLiagcb.cjs} +10 -10
- package/dist/{sessions-CFtDlyZd.mjs → sessions-DzgMNXo5.mjs} +10 -10
- package/dist/{setupOfflineReconnection-Biaus-0T.mjs → setupOfflineReconnection-D4NGi3Jf.mjs} +2 -2
- package/dist/{setupOfflineReconnection-B1GsVA8P.cjs → setupOfflineReconnection-Dq4N2Txp.cjs} +2 -2
- package/dist/{spawn-CsoQ-Ecz.mjs → spawn-C6CE5PsI.mjs} +14 -14
- package/dist/{spawn-BRTuypQ2.cjs → spawn-tmoekkOW.cjs} +14 -14
- package/dist/{spawnAgents-CG211IW7.cjs → spawnAgents-D15n6tAj.cjs} +1 -1
- package/dist/{spawnAgents-Co-SLcx-.mjs → spawnAgents-jXo9jIYo.mjs} +1 -1
- package/dist/{spawnHappyCLI-D1doCjkZ.mjs → spawnHappyCLI-66grqHO0.mjs} +1 -1
- package/dist/{spawnHappyCLI-D47kX6jg.cjs → spawnHappyCLI-8NcKgkuy.cjs} +1 -1
- package/dist/{specialCommands-xSmqT_Fu.mjs → specialCommands-BO8ipH0n.mjs} +3 -3
- package/dist/{specialCommands-Ch-Gvy-i.cjs → specialCommands-Dq0TmY1Z.cjs} +3 -3
- package/dist/{startFileWatcher-CCl2fFxT.mjs → startFileWatcher-BLDkieUW.mjs} +1 -1
- package/dist/{startFileWatcher-gKQTstR6.cjs → startFileWatcher-CjgKvec9.cjs} +1 -1
- package/dist/{startupSessionCreate-DlZc8yPl.mjs → startupSessionCreate-B60THeNz.mjs} +1 -1
- package/dist/{startupSessionCreate-BXqoUX30.cjs → startupSessionCreate-CXRVahaU.cjs} +1 -1
- package/dist/{streamRelay-B-J-4St1.cjs → streamRelay-CtTpf-Li.cjs} +1 -1
- package/dist/{streamRelay-DnJXsi36.mjs → streamRelay-GzHxvMem.mjs} +1 -1
- package/dist/{sync-BbjMC3sR.mjs → sync-DJvx7RbO.mjs} +1 -1
- package/dist/{sync-BxMdnZzz.cjs → sync-DKSZOi6w.cjs} +1 -1
- package/dist/{systemPrompt-C2KojRmK.cjs → systemPrompt-Duos1BtM.cjs} +2 -2
- package/dist/{systemPrompt-CmSDAoIx.mjs → systemPrompt-dOOpz8L7.mjs} +2 -2
- package/dist/{teams-DESdalox.cjs → teams-pO5rjvPO.cjs} +9 -9
- package/dist/{teams-lRy1MS0Z.mjs → teams-uWiMJEe1.mjs} +9 -9
- package/dist/{template-BaHAmH2K.cjs → template-BLJxflCH.cjs} +32 -2
- package/dist/{template-CiOPa2rd.mjs → template-YlpbYGeQ.mjs} +31 -3
- package/dist/{time-DNLeIRgR.cjs → time-D-8GFCE7.cjs} +1 -1
- package/dist/{time-Cfknl7xG.mjs → time-Du0scQeJ.mjs} +1 -1
- package/dist/{titleGenerator-ClnMSzwC.mjs → titleGenerator-DKYj8rLY.mjs} +1 -1
- package/dist/{titleGenerator-YNutaU88.cjs → titleGenerator-DnKygjBP.cjs} +2 -2
- package/dist/{todo-DS75Mboz.cjs → todo-BFDb7O8q.cjs} +6 -6
- package/dist/{todo-DZbK5POc.mjs → todo-Du5dAwnt.mjs} +6 -6
- package/dist/{tools-BgdU0dWp.mjs → tools-DHvMVL0a.mjs} +1 -1
- package/dist/{tools-ClYcb1YQ.cjs → tools-DK_x86Kl.cjs} +1 -1
- package/dist/{uninstall-bXenFevR.mjs → uninstall-CLDEXir0.mjs} +3 -3
- package/dist/{uninstall-Di1vPBLV.cjs → uninstall-c3zjum2o.cjs} +3 -3
- package/package.json +7 -7
- package/dist/daemonSupervisor-B-SPSqhs.cjs +0 -13
- package/dist/daemonSupervisor-C6urv3_8.mjs +0 -10
- package/dist/selfCheck-BDfTwxqB.mjs +0 -85
|
@@ -4,10 +4,10 @@ var node_crypto = require('node:crypto');
|
|
|
4
4
|
var node_child_process = require('node:child_process');
|
|
5
5
|
var node_util = require('node:util');
|
|
6
6
|
var path = require('node:path');
|
|
7
|
-
var index = require('./index-
|
|
8
|
-
var configuration = require('./configuration-
|
|
9
|
-
var persistence = require('./persistence-
|
|
10
|
-
var context = require('./context-
|
|
7
|
+
var index = require('./index-Ub-5xbcU.cjs');
|
|
8
|
+
var configuration = require('./configuration-C9Sx-Foo.cjs');
|
|
9
|
+
var persistence = require('./persistence-IYH6bAXY.cjs');
|
|
10
|
+
var context = require('./context-Bf3BG7w8.cjs');
|
|
11
11
|
|
|
12
12
|
async function teamRequest(path, method, token, scoped, body) {
|
|
13
13
|
const response = await fetch(`${configuration.configuration.serverUrl}${path}`, {
|
|
@@ -22,7 +22,7 @@ async function teamRequest(path, method, token, scoped, body) {
|
|
|
22
22
|
if (!response.ok) {
|
|
23
23
|
const body2 = response.status === 409 ? await response.json().catch(() => null) : null;
|
|
24
24
|
if (body2?.error === "session_in_other_team") throw new SessionInOtherTeamError(typeof body2.teamId === "string" ? body2.teamId : "", typeof body2.teamName === "string" ? body2.teamName : "");
|
|
25
|
-
throw new Error(
|
|
25
|
+
throw new Error(teamRefusalMessage(response.status, body2));
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
28
|
return await response.json();
|
|
@@ -30,6 +30,19 @@ async function teamRequest(path, method, token, scoped, body) {
|
|
|
30
30
|
throw new Error("Teams returned an invalid response");
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
function teamRefusalMessage(status, body) {
|
|
34
|
+
const field = (key, max) => {
|
|
35
|
+
const value = body?.[key];
|
|
36
|
+
return typeof value === "string" ? value.replace(/[\u0000-\u001f\u007f]/g, " ").slice(0, max) : "";
|
|
37
|
+
};
|
|
38
|
+
const code = field("error", 64);
|
|
39
|
+
if (!/^[a-z_]+$/.test(code)) return `Teams request failed (HTTP ${status})`;
|
|
40
|
+
if (code === "bot_cleanup_failed") {
|
|
41
|
+
const reason = field("cleanupError", 300);
|
|
42
|
+
return `Teams request refused (bot_cleanup_failed): the cleanup of member "${field("botName", 128) || "this member"}" failed${reason ? ` (${reason})` : ""} and still holds its session, so new work for it could not start. Only the owner can retry that cleanup or mark it handled on the team page (\u9700\u8981\u5904\u7406). Delegate to another member (omit assigneeBotId) meanwhile. \u8BE5\u6210\u5458\u7684\u6E05\u7406\u5931\u8D25\u4E14\u4ECD\u5360\u7528\u4F1A\u8BDD\uFF0C\u6D3E\u7ED9\u5B83\u7684\u4EFB\u52A1\u65E0\u6CD5\u542F\u52A8\uFF1B\u8BF7\u6539\u6D3E\u7ED9\u5176\u4ED6\u6210\u5458\uFF0C\u5E76\u8BF7 Owner \u5728\u56E2\u961F\u9875\u300C\u9700\u8981\u5904\u7406\u300D\u91CD\u8BD5\u6E05\u7406\u6216\u6807\u8BB0\u5DF2\u5904\u7406\u3002`;
|
|
43
|
+
}
|
|
44
|
+
return `Teams request failed (HTTP ${status}: ${code})`;
|
|
45
|
+
}
|
|
33
46
|
class TeamConnectionPreflightError extends Error {
|
|
34
47
|
}
|
|
35
48
|
class SessionInOtherTeamError extends TeamConnectionPreflightError {
|
|
@@ -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-C9Sx-Foo.cjs');
|
|
4
|
+
var persistence = require('./persistence-IYH6bAXY.cjs');
|
|
5
5
|
|
|
6
6
|
const UNSUPPORTED_BACKOFF_MS = 10 * 6e4;
|
|
7
7
|
class ProjectsUnsupportedError extends Error {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { b as readCredentialsForConfiguredRelay } from './persistence-
|
|
1
|
+
import { c as configuration } from './configuration-CVgUe2qN.mjs';
|
|
2
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-DFtgQvr6.mjs';
|
|
3
3
|
|
|
4
4
|
const UNSUPPORTED_BACKOFF_MS = 10 * 6e4;
|
|
5
5
|
class ProjectsUnsupportedError extends Error {
|
|
@@ -2,10 +2,10 @@ import { randomUUID } from 'node:crypto';
|
|
|
2
2
|
import { execFile } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import { basename, dirname } from 'node:path';
|
|
5
|
-
import {
|
|
6
|
-
import { c as configuration } from './configuration-
|
|
7
|
-
import { r as readSettings, c as readPersistedSessions, b as readCredentialsForConfiguredRelay } from './persistence-
|
|
8
|
-
import { r as readTeamScope, t as teamScopePath, w as writeTeamScope } from './context-
|
|
5
|
+
import { f as isInsideTeamWorktree, r as rebaseTeamWorktreePath } from './index-DisBaRvM.mjs';
|
|
6
|
+
import { c as configuration } from './configuration-CVgUe2qN.mjs';
|
|
7
|
+
import { r as readSettings, c as readPersistedSessions, b as readCredentialsForConfiguredRelay } from './persistence-DFtgQvr6.mjs';
|
|
8
|
+
import { r as readTeamScope, t as teamScopePath, w as writeTeamScope } from './context-CDPfhHTo.mjs';
|
|
9
9
|
|
|
10
10
|
async function teamRequest(path, method, token, scoped, body) {
|
|
11
11
|
const response = await fetch(`${configuration.serverUrl}${path}`, {
|
|
@@ -20,7 +20,7 @@ async function teamRequest(path, method, token, scoped, body) {
|
|
|
20
20
|
if (!response.ok) {
|
|
21
21
|
const body2 = response.status === 409 ? await response.json().catch(() => null) : null;
|
|
22
22
|
if (body2?.error === "session_in_other_team") throw new SessionInOtherTeamError(typeof body2.teamId === "string" ? body2.teamId : "", typeof body2.teamName === "string" ? body2.teamName : "");
|
|
23
|
-
throw new Error(
|
|
23
|
+
throw new Error(teamRefusalMessage(response.status, body2));
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
26
|
return await response.json();
|
|
@@ -28,6 +28,19 @@ async function teamRequest(path, method, token, scoped, body) {
|
|
|
28
28
|
throw new Error("Teams returned an invalid response");
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
function teamRefusalMessage(status, body) {
|
|
32
|
+
const field = (key, max) => {
|
|
33
|
+
const value = body?.[key];
|
|
34
|
+
return typeof value === "string" ? value.replace(/[\u0000-\u001f\u007f]/g, " ").slice(0, max) : "";
|
|
35
|
+
};
|
|
36
|
+
const code = field("error", 64);
|
|
37
|
+
if (!/^[a-z_]+$/.test(code)) return `Teams request failed (HTTP ${status})`;
|
|
38
|
+
if (code === "bot_cleanup_failed") {
|
|
39
|
+
const reason = field("cleanupError", 300);
|
|
40
|
+
return `Teams request refused (bot_cleanup_failed): the cleanup of member "${field("botName", 128) || "this member"}" failed${reason ? ` (${reason})` : ""} and still holds its session, so new work for it could not start. Only the owner can retry that cleanup or mark it handled on the team page (\u9700\u8981\u5904\u7406). Delegate to another member (omit assigneeBotId) meanwhile. \u8BE5\u6210\u5458\u7684\u6E05\u7406\u5931\u8D25\u4E14\u4ECD\u5360\u7528\u4F1A\u8BDD\uFF0C\u6D3E\u7ED9\u5B83\u7684\u4EFB\u52A1\u65E0\u6CD5\u542F\u52A8\uFF1B\u8BF7\u6539\u6D3E\u7ED9\u5176\u4ED6\u6210\u5458\uFF0C\u5E76\u8BF7 Owner \u5728\u56E2\u961F\u9875\u300C\u9700\u8981\u5904\u7406\u300D\u91CD\u8BD5\u6E05\u7406\u6216\u6807\u8BB0\u5DF2\u5904\u7406\u3002`;
|
|
41
|
+
}
|
|
42
|
+
return `Teams request failed (HTTP ${status}: ${code})`;
|
|
43
|
+
}
|
|
31
44
|
class TeamConnectionPreflightError extends Error {
|
|
32
45
|
}
|
|
33
46
|
class SessionInOtherTeamError extends TeamConnectionPreflightError {
|
|
@@ -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-DK_x86Kl.cjs');
|
|
4
|
+
var reportProgressTool = require('../reportProgressTool-BS7TkeEk.cjs');
|
|
5
|
+
var peerTools = require('../peerTools-Cufh4Qp_.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,36 +10,36 @@ 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-ByZFACEw.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-Ub-5xbcU.cjs');
|
|
19
19
|
require('@paralleldrive/cuid2');
|
|
20
|
-
require('../configuration-
|
|
20
|
+
require('../configuration-C9Sx-Foo.cjs');
|
|
21
21
|
require('node:fs');
|
|
22
22
|
require('node:os');
|
|
23
|
-
require('../package-
|
|
23
|
+
require('../package-DczR1k0c.cjs');
|
|
24
24
|
require('node:fs/promises');
|
|
25
|
-
require('../persistence-
|
|
25
|
+
require('../persistence-IYH6bAXY.cjs');
|
|
26
26
|
require('../authRelay-Dy1qU9td.cjs');
|
|
27
27
|
require('tweetnacl');
|
|
28
|
-
require('../logger-
|
|
28
|
+
require('../logger-CrtT0opS.cjs');
|
|
29
29
|
require('chalk');
|
|
30
|
-
require('../context-
|
|
31
|
-
require('../client-
|
|
30
|
+
require('../context-Bf3BG7w8.cjs');
|
|
31
|
+
require('../client-BFDji81N.cjs');
|
|
32
32
|
require('../precheckCompat-CWOi5c9L.cjs');
|
|
33
|
-
require('../client-
|
|
33
|
+
require('../client-C49zFRkX.cjs');
|
|
34
34
|
require('../prompt-Bof2aQkI.cjs');
|
|
35
35
|
require('../ids-B6ZC0HGt.cjs');
|
|
36
|
-
require('../controlClient-
|
|
37
|
-
require('../sessionOps-
|
|
36
|
+
require('../controlClient-BLO1_pPx.cjs');
|
|
37
|
+
require('../sessionOps-hRqzcMXB.cjs');
|
|
38
38
|
require('axios');
|
|
39
|
-
require('../time-
|
|
39
|
+
require('../time-D-8GFCE7.cjs');
|
|
40
40
|
require('socket.io-client');
|
|
41
41
|
require('../backgroundTaskActivity-CBvUdj39.cjs');
|
|
42
|
-
require('../remoteSessionClient-
|
|
42
|
+
require('../remoteSessionClient-CuAkp19e.cjs');
|
|
43
43
|
require('../trimIdent-4gvk9Wk6.cjs');
|
|
44
44
|
|
|
45
45
|
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-DHvMVL0a.mjs';
|
|
2
|
+
import { r as registerAutomationTools, a as registerProjectTools, b as registerReportProgressTool } from '../reportProgressTool-CdSi-uSC.mjs';
|
|
3
|
+
import { r as registerSessionPeerTools } from '../peerTools-CABQ6iKd.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,36 +8,36 @@ 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-DwlYk8uJ.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-DisBaRvM.mjs';
|
|
17
17
|
import '@paralleldrive/cuid2';
|
|
18
|
-
import '../configuration-
|
|
18
|
+
import '../configuration-CVgUe2qN.mjs';
|
|
19
19
|
import 'node:fs';
|
|
20
20
|
import 'node:os';
|
|
21
|
-
import '../package-
|
|
21
|
+
import '../package-Ek5FOyEo.mjs';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import '../persistence-
|
|
23
|
+
import '../persistence-DFtgQvr6.mjs';
|
|
24
24
|
import '../authRelay-DhQhkBvX.mjs';
|
|
25
25
|
import 'tweetnacl';
|
|
26
|
-
import '../logger-
|
|
26
|
+
import '../logger-D2qd0mMg.mjs';
|
|
27
27
|
import 'chalk';
|
|
28
|
-
import '../context-
|
|
29
|
-
import '../client-
|
|
28
|
+
import '../context-CDPfhHTo.mjs';
|
|
29
|
+
import '../client-BdbVizjk.mjs';
|
|
30
30
|
import '../precheckCompat-DeEbilbr.mjs';
|
|
31
|
-
import '../client-
|
|
31
|
+
import '../client-CX-_2myt.mjs';
|
|
32
32
|
import '../prompt-QHuFx9j6.mjs';
|
|
33
33
|
import '../ids-DU6sLx4C.mjs';
|
|
34
|
-
import '../controlClient-
|
|
35
|
-
import '../sessionOps-
|
|
34
|
+
import '../controlClient-DMCxtwq2.mjs';
|
|
35
|
+
import '../sessionOps-Di9MC0FP.mjs';
|
|
36
36
|
import 'axios';
|
|
37
|
-
import '../time-
|
|
37
|
+
import '../time-Du0scQeJ.mjs';
|
|
38
38
|
import 'socket.io-client';
|
|
39
39
|
import '../backgroundTaskActivity-8PdPxrvy.mjs';
|
|
40
|
-
import '../remoteSessionClient-
|
|
40
|
+
import '../remoteSessionClient-1nycIdrG.mjs';
|
|
41
41
|
import '../trimIdent-BAjmv_TG.mjs';
|
|
42
42
|
|
|
43
43
|
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-D2qd0mMg.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-Ek5FOyEo.mjs';
|
|
8
|
+
import { s as shouldReadCodexRateLimits, i as isUnsupportedCodexMethodError } from './rateLimitWindows-DM_gshI4.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-CrtT0opS.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-DczR1k0c.cjs');
|
|
10
|
+
var rateLimitWindows = require('./rateLimitWindows-CeogT1b6.cjs');
|
|
11
11
|
var processTree = require('./processTree-CMHWlVse.cjs');
|
|
12
12
|
|
|
13
13
|
const CODEX_HELPER_LABEL_MAX_CHARS = 80;
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
2
|
-
import {
|
|
3
|
-
import { h as hashObject, s as startHappyServer, c as createProjectInjector } from './deterministicJson-
|
|
4
|
-
import { s as sharedProjectsClient } from './client-
|
|
1
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-D6kSt2sR.mjs';
|
|
2
|
+
import { g as createEnvelope, j as BUILTIN_TODO_DISCOVERY, P as PROMPT_QUEUE_CAPABILITY, I as CODEX_STEER_CAPABILITY, a as PROJECT_SESSION_CAPABILITY } from './index-DisBaRvM.mjs';
|
|
3
|
+
import { h as hashObject, s as startHappyServer, c as createProjectInjector } from './deterministicJson-C3QXOc1N.mjs';
|
|
4
|
+
import { s as sharedProjectsClient } from './client-CX-_2myt.mjs';
|
|
5
5
|
import { unlink } from 'node:fs/promises';
|
|
6
6
|
import { p as publishForkBackfillWhenCommitted, F as FORK_BACKFILL_CAPABILITY } from './forkBackfill-DYIjlN1Z.mjs';
|
|
7
7
|
import { randomUUID } from 'node:crypto';
|
|
8
8
|
import { createId } from '@paralleldrive/cuid2';
|
|
9
|
+
import { t as textResultPayload, d as toolResultContentText, c as connectionState, A as ApiClient } from './api-BpTDU2BO.mjs';
|
|
9
10
|
import { r as registerAgentAttachmentDownloads } from './agentAttachments-M_B5qEF2.mjs';
|
|
10
|
-
import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-
|
|
11
|
+
import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-CWSSGMMo.mjs';
|
|
11
12
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
12
|
-
import { c as claimSessionOrExit, a as applyServerSnapshot, b as applyReconnectReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata, e as exitCursorStamp } from './sessionLock-
|
|
13
|
+
import { c as claimSessionOrExit, a as applyServerSnapshot, b as applyReconnectReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata, e as exitCursorStamp } from './sessionLock-ha9gsQEn.mjs';
|
|
13
14
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { B as
|
|
19
|
-
import { B as BaseReasoningProcessor, s as settleCodexSession } from './codexTermination-CVhhwHZU.mjs';
|
|
15
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-CmOIqiNQ.mjs';
|
|
16
|
+
import { p as parseSpecialCommand, w as wrapperRateLimitReporter } from './specialCommands-BO8ipH0n.mjs';
|
|
17
|
+
import { l as logger } from './logger-D2qd0mMg.mjs';
|
|
18
|
+
import { B as BasePermissionHandler } from './BasePermissionHandler-BqYwrCra.mjs';
|
|
19
|
+
import { B as BaseReasoningProcessor, s as settleCodexSession } from './codexTermination-Byohgj8h.mjs';
|
|
20
20
|
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-
|
|
21
|
+
import { r as readSettings, l as latchKeepAwake, e as evaluateWrapperIdle, a as resolveCheckMs, H as HIBERNATION_CAPABILITY } from './persistence-DFtgQvr6.mjs';
|
|
22
|
+
import { g as getInitialMachineMetadata } from './machineMetadata-B2czDiTd.mjs';
|
|
23
|
+
import { c as configuration } from './configuration-CVgUe2qN.mjs';
|
|
24
|
+
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-DGWADNla.mjs';
|
|
25
25
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
26
26
|
import { join } from 'node:path';
|
|
27
|
-
import { c as createSessionMetadata } from './createSessionMetadata-
|
|
27
|
+
import { c as createSessionMetadata } from './createSessionMetadata-BYroCdrU.mjs';
|
|
28
28
|
import { M as MessageBuffer } from './sessionExitLifecycle-CzkLIgNZ.mjs';
|
|
29
|
-
import { n as notifyDaemonSessionStarted,
|
|
30
|
-
import { a as HibernationExitLatch, H as HibernationProbe, c as commitHibernation, b as DEFAULT_CODEX_PERMISSION_MODE } from './defaultPermissionMode-
|
|
29
|
+
import { n as notifyDaemonSessionStarted, k as reportSessionEditToDaemon, c as checkDaemonHibernation } from './controlClient-DMCxtwq2.mjs';
|
|
30
|
+
import { a as HibernationExitLatch, H as HibernationProbe, c as commitHibernation, b as DEFAULT_CODEX_PERMISSION_MODE } from './defaultPermissionMode-CTdxUV_3.mjs';
|
|
31
31
|
import { d as decodeBase64, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
32
|
-
import { s as setupOfflineReconnection } from './setupOfflineReconnection-
|
|
33
|
-
import { c as createSessionForStartup } from './startupSessionCreate-
|
|
32
|
+
import { s as setupOfflineReconnection } from './setupOfflineReconnection-D4NGi3Jf.mjs';
|
|
33
|
+
import { c as createSessionForStartup } from './startupSessionCreate-B60THeNz.mjs';
|
|
34
34
|
import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs';
|
|
35
35
|
import { C as CHANGE_TITLE_INSTRUCTION } from './constants-BC4St0xd.mjs';
|
|
36
36
|
import { E as EditReportThrottle, a as extractCodexPatchPaths } from './editPaths-BVfS_FFL.mjs';
|
|
37
|
-
import { a as extractNoSandboxFlag, e as ensureDaemonRunning } from './ensureDaemonRunning-
|
|
37
|
+
import { a as extractNoSandboxFlag, e as ensureDaemonRunning } from './ensureDaemonRunning-IRV-w0wH.mjs';
|
|
38
38
|
import 'tweetnacl';
|
|
39
39
|
import 'axios';
|
|
40
|
-
import './time-
|
|
41
|
-
import './browser-
|
|
40
|
+
import './time-Du0scQeJ.mjs';
|
|
41
|
+
import './browser-CqMhj8Gm.mjs';
|
|
42
42
|
import 'open';
|
|
43
43
|
import 'zod';
|
|
44
44
|
import './prompt-QHuFx9j6.mjs';
|
|
45
|
-
import './reportProgressTool-
|
|
46
|
-
import './client-
|
|
45
|
+
import './reportProgressTool-CdSi-uSC.mjs';
|
|
46
|
+
import './client-BdbVizjk.mjs';
|
|
47
47
|
import './precheckCompat-DeEbilbr.mjs';
|
|
48
48
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
49
49
|
import 'node:fs';
|
|
50
50
|
import 'node:os';
|
|
51
51
|
import './pi-CqyoZMjI.mjs';
|
|
52
52
|
import './fileStore-5qpetZS0.mjs';
|
|
53
|
-
import './client-
|
|
53
|
+
import './client-DwlYk8uJ.mjs';
|
|
54
54
|
import 'node:util';
|
|
55
|
-
import './context-
|
|
56
|
-
import './sessionOps-
|
|
55
|
+
import './context-CDPfhHTo.mjs';
|
|
56
|
+
import './sessionOps-Di9MC0FP.mjs';
|
|
57
57
|
import 'socket.io-client';
|
|
58
58
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
59
|
-
import './resources-
|
|
60
|
-
import './tools-
|
|
61
|
-
import './peerTools-
|
|
59
|
+
import './resources-CLdQfe3b.mjs';
|
|
60
|
+
import './tools-DHvMVL0a.mjs';
|
|
61
|
+
import './peerTools-CABQ6iKd.mjs';
|
|
62
62
|
import './ids-DU6sLx4C.mjs';
|
|
63
|
-
import './remoteSessionClient-
|
|
63
|
+
import './remoteSessionClient-1nycIdrG.mjs';
|
|
64
64
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
65
65
|
import 'node:http';
|
|
66
66
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
67
67
|
import './limits-DIo7rEBR.mjs';
|
|
68
|
-
import './downloadTarget-
|
|
68
|
+
import './downloadTarget-CNtQ8rhV.mjs';
|
|
69
69
|
import './terminals-Dlg0x3nY.mjs';
|
|
70
70
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
71
71
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
72
|
-
import './bootstrap-
|
|
73
|
-
import './package-
|
|
72
|
+
import './bootstrap-CodyCmGt.mjs';
|
|
73
|
+
import './package-Ek5FOyEo.mjs';
|
|
74
74
|
import './webPanels-B2_C2-3g.mjs';
|
|
75
|
-
import './pushNotifications-
|
|
75
|
+
import './pushNotifications-gVJWGFBP.mjs';
|
|
76
76
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
77
77
|
import './previewPath-CXN4Vag0.mjs';
|
|
78
78
|
import 'crypto';
|
|
79
|
-
import './
|
|
80
|
-
import './lidState-D8Iuvjgl.mjs';
|
|
79
|
+
import './lidState-CBjQEwTt.mjs';
|
|
81
80
|
import 'os';
|
|
82
81
|
import 'child_process';
|
|
83
82
|
import 'node:events';
|
|
84
|
-
import './registerCommonHandlers-
|
|
83
|
+
import './registerCommonHandlers-CyAtDNvs.mjs';
|
|
85
84
|
import 'util';
|
|
86
85
|
import 'fs/promises';
|
|
87
86
|
import 'path';
|
|
88
87
|
import 'cross-spawn';
|
|
89
|
-
import './sync-
|
|
88
|
+
import './sync-DJvx7RbO.mjs';
|
|
90
89
|
import 'chalk';
|
|
90
|
+
import './processTreeSnapshot-CuLJDNC-.mjs';
|
|
91
91
|
import 'node:readline';
|
|
92
92
|
import './manager-BEsI4qt3.mjs';
|
|
93
93
|
import '@anthropic-ai/sandbox-runtime';
|
|
94
|
-
import './rateLimitWindows-
|
|
94
|
+
import './rateLimitWindows-DM_gshI4.mjs';
|
|
95
95
|
import './processTree-CP5IvQ2Z.mjs';
|
|
96
96
|
import './detectCLI-CSGMlV51.mjs';
|
|
97
97
|
import 'fs';
|
|
98
|
-
import './localHappyAgentAuth-
|
|
98
|
+
import './localHappyAgentAuth-CcWGU_lS.mjs';
|
|
99
99
|
import './fsMkdir-DumgLTzR.mjs';
|
|
100
100
|
import './types-CkqAACXx.mjs';
|
|
101
101
|
import 'url';
|
|
102
|
-
import './spawnHappyCLI-
|
|
102
|
+
import './spawnHappyCLI-66grqHO0.mjs';
|
|
103
103
|
import './doctorReadiness-C208SMN9.mjs';
|
|
104
104
|
|
|
105
105
|
function getStartedSubagents(state) {
|
|
@@ -235,7 +235,32 @@ function turnStatus(turn) {
|
|
|
235
235
|
}
|
|
236
236
|
return "completed";
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function commandFailed(exitCode, status) {
|
|
239
|
+
return typeof exitCode === "number" && exitCode !== 0 || status === "failed" || status === "declined";
|
|
240
|
+
}
|
|
241
|
+
function commandResult(message) {
|
|
242
|
+
const raw = [message.output, message.aggregated_output, message.formatted_output].find((v) => typeof v === "string");
|
|
243
|
+
const output = typeof raw === "string" ? raw : "";
|
|
244
|
+
const exitCode = message.exit_code;
|
|
245
|
+
const failed = commandFailed(exitCode, message.status);
|
|
246
|
+
const text = typeof exitCode === "number" && exitCode !== 0 ? `${output}${output === "" || output.endsWith("\n") ? "" : "\n"}[exit code ${exitCode}]` : output;
|
|
247
|
+
return textResultPayload(text, failed);
|
|
248
|
+
}
|
|
249
|
+
function errorText(error) {
|
|
250
|
+
if (typeof error === "string") return error;
|
|
251
|
+
if (error && typeof error === "object" && typeof error.message === "string") return error.message;
|
|
252
|
+
return JSON.stringify(error) ?? String(error);
|
|
253
|
+
}
|
|
254
|
+
function mcpResultText(result) {
|
|
255
|
+
if (result === void 0 || result === null) return null;
|
|
256
|
+
if (typeof result === "string") return result;
|
|
257
|
+
const content = result.content;
|
|
258
|
+
const text = Array.isArray(content) ? toolResultContentText(content) : "";
|
|
259
|
+
if (text) return text;
|
|
260
|
+
const structured = result.structuredContent;
|
|
261
|
+
return JSON.stringify(structured ?? result, null, 2) ?? null;
|
|
262
|
+
}
|
|
263
|
+
function emitHistoricalToolCall(envelopes, turn, item, name, title, args, output, isError = false) {
|
|
239
264
|
const time = turnTimestampMs(turn);
|
|
240
265
|
const opts = { turn: turn.id, time, codexItemId: item.id };
|
|
241
266
|
envelopes.push(createEnvelope("agent", {
|
|
@@ -249,20 +274,25 @@ function emitHistoricalToolCall(envelopes, turn, item, name, title, args, output
|
|
|
249
274
|
...opts,
|
|
250
275
|
id: `${item.id}:start`
|
|
251
276
|
}));
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
277
|
+
const running = "status" in item && (item.status === "inProgress" || item.status === "running");
|
|
278
|
+
if (running) {
|
|
279
|
+
if (output && output.trim().length > 0) {
|
|
280
|
+
envelopes.push(createEnvelope("agent", {
|
|
281
|
+
t: "text",
|
|
282
|
+
text: output,
|
|
283
|
+
thinking: true
|
|
284
|
+
}, {
|
|
285
|
+
...opts,
|
|
286
|
+
id: `${item.id}:output`
|
|
287
|
+
}));
|
|
288
|
+
}
|
|
289
|
+
return;
|
|
261
290
|
}
|
|
262
|
-
|
|
291
|
+
const result = textResultPayload(output ?? "", isError);
|
|
263
292
|
envelopes.push(createEnvelope("agent", {
|
|
264
293
|
t: "tool-call-end",
|
|
265
|
-
call: item.id
|
|
294
|
+
call: item.id,
|
|
295
|
+
...result ? { result } : {}
|
|
266
296
|
}, {
|
|
267
297
|
...opts,
|
|
268
298
|
id: `${item.id}:end`,
|
|
@@ -360,7 +390,8 @@ function mapCodexThreadToSessionEnvelopes(thread) {
|
|
|
360
390
|
"CodexBash",
|
|
361
391
|
commandToTitle(command),
|
|
362
392
|
{ command, cwd: item.cwd },
|
|
363
|
-
typeof item.aggregatedOutput === "string" ? item.aggregatedOutput : null
|
|
393
|
+
typeof item.aggregatedOutput === "string" ? item.aggregatedOutput : null,
|
|
394
|
+
commandFailed(item.exitCode, item.status)
|
|
364
395
|
);
|
|
365
396
|
break;
|
|
366
397
|
}
|
|
@@ -379,7 +410,8 @@ function mapCodexThreadToSessionEnvelopes(thread) {
|
|
|
379
410
|
}
|
|
380
411
|
case "mcpToolCall": {
|
|
381
412
|
const title = `${item.server}.${item.tool}`;
|
|
382
|
-
const
|
|
413
|
+
const failed = item.error !== void 0 && item.error !== null;
|
|
414
|
+
const output = failed ? errorText(item.error) : mcpResultText(item.result);
|
|
383
415
|
emitHistoricalToolCall(
|
|
384
416
|
envelopes,
|
|
385
417
|
turn,
|
|
@@ -391,7 +423,8 @@ function mapCodexThreadToSessionEnvelopes(thread) {
|
|
|
391
423
|
tool: item.tool,
|
|
392
424
|
arguments: item.arguments
|
|
393
425
|
},
|
|
394
|
-
output
|
|
426
|
+
output,
|
|
427
|
+
failed
|
|
395
428
|
);
|
|
396
429
|
break;
|
|
397
430
|
}
|
|
@@ -595,7 +628,8 @@ function mapCodexMcpMessageToSessionEnvelopes(message, state) {
|
|
|
595
628
|
const call = pickCallId(message);
|
|
596
629
|
const envelopes = [];
|
|
597
630
|
maybeEmitSubagentStart(subagent, opts, startedSubagents, activeSubagents, envelopes, pickSubagentLabel(message), labeledSubagents);
|
|
598
|
-
|
|
631
|
+
const result = commandResult(message);
|
|
632
|
+
envelopes.push(createEnvelope("agent", { t: "tool-call-end", call, ...result ? { result } : {} }, opts));
|
|
599
633
|
return {
|
|
600
634
|
currentTurnId: state.currentTurnId,
|
|
601
635
|
startedSubagents,
|