very-happy-cli 0.2.199 → 0.2.200
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-Bo6bOamG.mjs → AcpBackend-Cnp6WNn8.mjs} +3 -3
- package/dist/{AcpBackend-HhZ8nrIh.cjs → AcpBackend-CwSShYPI.cjs} +3 -3
- package/dist/{AcpSessionManager-C-pkJKO2.mjs → AcpSessionManager-C4O3jhT_.mjs} +2 -2
- package/dist/{AcpSessionManager--7nDgA9S.cjs → AcpSessionManager-DqW99tOL.cjs} +2 -2
- package/dist/{BasePermissionHandler-Ffp54Ntg.mjs → BasePermissionHandler-8Msj0Z8j.mjs} +1 -1
- package/dist/{BasePermissionHandler-al7UXWRq.cjs → BasePermissionHandler-CgqjIUyG.cjs} +1 -1
- package/dist/{account-Bnk1yyGS.mjs → account-BIxPuBEs.mjs} +11 -11
- package/dist/{account-DCIz-iyL.cjs → account-DcNh2_SN.cjs} +11 -11
- package/dist/{accountService-B59oKwa4.cjs → accountService-BDJo14mY.cjs} +4 -4
- package/dist/{accountService-WPnOpkvs.mjs → accountService-ELazcp3V.mjs} +4 -4
- package/dist/{acpSessionResume-CfogEHtT.cjs → acpSessionResume-B_W8uTI6.cjs} +1 -1
- package/dist/{acpSessionResume-BVroOlVN.mjs → acpSessionResume-De_sTG30.mjs} +1 -1
- package/dist/{agentHome-CHTzSiu4.mjs → agentHome-C-900jC1.mjs} +4 -4
- package/dist/{agentHome-Y3bMEtCp.cjs → agentHome-C-usjJwB.cjs} +4 -4
- package/dist/{api-CgzfmyYS.cjs → api-BPWRzeNF.cjs} +16 -10
- package/dist/{api-DibgCucH.mjs → api-DCUiAds-.mjs} +16 -10
- package/dist/{apiMachine-BUaFSi27.mjs → apiMachine-CJl4m3V3.mjs} +18 -18
- package/dist/{apiMachine-DSI5mKlh.cjs → apiMachine-DjhbA1rL.cjs} +18 -18
- package/dist/{attachmentContent-D9wq3bok.mjs → attachmentContent-BKIq6EXR.mjs} +2 -2
- package/dist/{attachmentContent-JWUS5uhH.cjs → attachmentContent-C2f1UEP9.cjs} +2 -2
- package/dist/{auth-BjWk9sHU.mjs → auth-8jKFCZOX.mjs} +5 -5
- package/dist/{auth-BXav16o0.cjs → auth-h6oU63Ni.cjs} +8 -8
- package/dist/{auth-B6H2wHTy.cjs → auth-oAnLi4Tl.cjs} +5 -5
- package/dist/{auth-DFMJQDNF.mjs → auth-uLRHXOGY.mjs} +8 -8
- package/dist/{auto-DOhQ2OU5.mjs → auto-A5arQ-bI.mjs} +17 -17
- package/dist/{auto-CMO-VQYN.cjs → auto-Bpa5iA1A.cjs} +17 -17
- package/dist/{bootstrap-CY7Db_VV.mjs → bootstrap-BkLFgEGF.mjs} +2 -2
- package/dist/{bootstrap-Brd_jnA2.cjs → bootstrap-DUKAKxrJ.cjs} +2 -2
- package/dist/{browser-BpwBEJDU.mjs → browser-BAlw0rns.mjs} +1 -1
- package/dist/{browser-BhncBLE4.cjs → browser-Ds-N-Dup.cjs} +1 -1
- package/dist/{claudeAccountEnv-CYwfvK1u.mjs → claudeAccountEnv-CI8RlIB9.mjs} +1 -1
- package/dist/{claudeAccountEnv-z_ecsJAP.cjs → claudeAccountEnv-D33xXRE7.cjs} +1 -1
- package/dist/{claudeLocal-Co_DyW-D.cjs → claudeLocal-BbsOT-EF.cjs} +5 -5
- package/dist/{claudeLocal-coKrsYmR.mjs → claudeLocal-X48n0RhP.mjs} +5 -5
- package/dist/{claudeLocalLauncher-BFnLc0R-.mjs → claudeLocalLauncher-D18gRtxz.mjs} +10 -10
- package/dist/{claudeLocalLauncher-CNDrO3b6.cjs → claudeLocalLauncher-D1jS3iK4.cjs} +10 -10
- package/dist/{claudeSessionFork-BuDN5SkN.cjs → claudeSessionFork-Bkxn40Y8.cjs} +1 -1
- package/dist/{claudeSessionFork-dOOc9hpA.mjs → claudeSessionFork-n1vMiFcP.mjs} +1 -1
- package/dist/client-1zIbVVX5.cjs +120 -0
- package/dist/{client-DKPLBLvx.mjs → client-BXwIqRha.mjs} +2 -2
- package/dist/client-BgxQ9aej.mjs +114 -0
- package/dist/{client-B5uvkdLn.mjs → client-Blpuk2Hr.mjs} +2 -2
- package/dist/{client-KbhVRYjy.cjs → client-BnoN4P4t.cjs} +2 -2
- package/dist/{client-Ng-oAhlX.mjs → client-C0qjAgZ_.mjs} +4 -4
- package/dist/{client-CBbUzTcm.cjs → client-C8BTmcrh.cjs} +4 -4
- package/dist/{client-BKyTA9Hf.cjs → client-D0_UOmC1.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +25 -16
- package/dist/codex/happyMcpStdioBridge.mjs +25 -16
- package/dist/{codexAccount-DeFAjaHW.mjs → codexAccount-BAezf1fY.mjs} +1 -1
- package/dist/{codexAccount-8Wv5enLR.cjs → codexAccount-DfeCHUOU.cjs} +1 -1
- package/dist/{codexAppServerClient-BAcU_XN8.mjs → codexAppServerClient-By4ntTIr.mjs} +3 -3
- package/dist/{codexAppServerClient-6QmZ2Tn5.cjs → codexAppServerClient-xBeqblCj.cjs} +3 -3
- package/dist/{codexCommand-CCeaWZ-1.mjs → codexCommand-C7BVsmPu.mjs} +50 -46
- package/dist/{codexCommand-hJYa82Af.cjs → codexCommand-CgzJe-Ti.cjs} +54 -50
- package/dist/{codexTermination-BX0sCNFy.mjs → codexTermination-BS0sLBKS.mjs} +1 -1
- package/dist/{codexTermination-DKjQcC3e.cjs → codexTermination-DVrdQx3Q.cjs} +1 -1
- package/dist/{config-171VOPLq.cjs → config-4R0rnthZ.cjs} +3 -3
- package/dist/{config-9iXYh_zS.mjs → config-D3jidXDu.mjs} +3 -3
- package/dist/{configuration-D9k5yIzV.mjs → configuration-4pG95tsq.mjs} +1 -1
- package/dist/{configuration-CAzuk0Xs.cjs → configuration-ClUt7pqs.cjs} +1 -1
- package/dist/{connect-MlXU2FE3.cjs → connect-Da2NQJ3K.cjs} +13 -13
- package/dist/{connect-BEhKtsEn.mjs → connect-Do5qcqmg.mjs} +13 -13
- package/dist/{context-WVEuAdf2.mjs → context-Cf05DtNM.mjs} +1 -1
- package/dist/{context-CI9LnDu1.cjs → context-wMsIGwBw.cjs} +1 -1
- package/dist/{controlClient-Bb188cU0.cjs → controlClient-SYDFcIkk.cjs} +3 -3
- package/dist/{controlClient-DhFAPGHz.mjs → controlClient-bqCKl9Nv.mjs} +3 -3
- package/dist/{createSessionMetadata-BIK0Xz31.mjs → createSessionMetadata-CQkxe_4T.mjs} +3 -2
- package/dist/{createSessionMetadata-C2EQi_od.cjs → createSessionMetadata-msQTEvvn.cjs} +3 -2
- package/dist/{daemonAccounts-DD5YBwku.mjs → daemonAccounts-B8xnkprW.mjs} +3 -3
- package/dist/{daemonAccounts-nLyHz8WB.cjs → daemonAccounts-Ch_rSTSX.cjs} +2 -2
- package/dist/{defaultPermissionMode-BA1fgIpW.cjs → defaultPermissionMode-BETWd5Lf.cjs} +1 -1
- package/dist/{defaultPermissionMode-Dmw3lpdN.mjs → defaultPermissionMode-Cl3OvdHp.mjs} +1 -1
- package/dist/{deterministicJson-BJ7LY5-S.mjs → deterministicJson-BRAeReBK.mjs} +67 -17
- package/dist/{deterministicJson-DCzFgRiT.cjs → deterministicJson-CQ8jkArF.cjs} +72 -22
- package/dist/{doctor-CH_pTY3Q.cjs → doctor-C9D-t20z.cjs} +7 -7
- package/dist/{doctor-jAPeyoi6.mjs → doctor-Dy7z3qvy.mjs} +7 -7
- package/dist/{downloadTarget-CZS0BVu2.cjs → downloadTarget-DfoOSrYi.cjs} +6 -6
- package/dist/{downloadTarget-BhMm1keb.mjs → downloadTarget-Diq-GBu4.mjs} +6 -6
- package/dist/{ensureDaemonRunning-CTKaWMED.cjs → ensureDaemonRunning-Df76EtKd.cjs} +5 -5
- package/dist/{ensureDaemonRunning-BjbC8PuJ.mjs → ensureDaemonRunning-LqrgqVG3.mjs} +5 -5
- package/dist/format-CbliQN8V.mjs +70 -0
- package/dist/format-P9_M_7ga.cjs +74 -0
- package/dist/{handleResumeCommand-DsaEUiax.cjs → handleResumeCommand-CjCtwrrm.cjs} +5 -5
- package/dist/{handleResumeCommand-DbFTdwoc.mjs → handleResumeCommand-Dz4Aw_aZ.mjs} +5 -5
- package/dist/{index-DpQ9OLYi.mjs → index-BNBXrqRE.mjs} +4 -4
- package/dist/{index-BnT8yvlF.cjs → index-BiutHOAO.cjs} +60 -1
- package/dist/{index-DdJRSpLB.cjs → index-ByBOdEvG.cjs} +48 -44
- package/dist/{index-qVJYCmRA.cjs → index-CbzettaI.cjs} +4 -4
- package/dist/{index-DuoMPw0y.cjs → index-CdOnhx2X.cjs} +4 -4
- package/dist/{index-BEKb2cxz.mjs → index-CjMA70-R.mjs} +47 -43
- package/dist/{index-DL6ONx6v.cjs → index-DUwOmhnq.cjs} +3 -3
- package/dist/{index-DcfbjaVL.mjs → index-Sdvy1Lsf.mjs} +3 -3
- package/dist/{index-BAjoMeJi.mjs → index-XP-qcJQ3.mjs} +4 -4
- package/dist/{index-BQvPYTNM.mjs → index-kwsivEs-.mjs} +48 -2
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-5nblS8vW.cjs → install-C4dKrmxR.cjs} +3 -3
- package/dist/{install-CJcRTQVK.mjs → install-DMXd8Z4c.mjs} +3 -3
- package/dist/issue-BijeNKIT.cjs +237 -0
- package/dist/issue-COytLvGE.mjs +229 -0
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +6 -0
- package/dist/lib.d.mts +6 -0
- package/dist/lib.mjs +12 -12
- package/dist/{localHappyAgentAuth-Bsk_VyUN.cjs → localHappyAgentAuth-CjtNcaI0.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CD896cy4.mjs → localHappyAgentAuth-DeDQjw24.mjs} +1 -1
- package/dist/{logger-n9NOzHhK.mjs → logger-BLMi8oJK.mjs} +2 -2
- package/dist/{logger-LsJ3Cl5o.cjs → logger-D28MY1Bv.cjs} +2 -2
- package/dist/{machineMetadata-CUU2NSYl.cjs → machineMetadata-BzjrIn_N.cjs} +3 -3
- package/dist/{machineMetadata-Bc7FwngX.mjs → machineMetadata-D8OWVD4l.mjs} +3 -3
- package/dist/{main-CEu9zJ4x.cjs → main-DoJIcSOh.cjs} +57 -47
- package/dist/{main-CzItRviV.mjs → main-c0fCuBON.mjs} +57 -47
- package/dist/{mcp-CPW1yQdX.cjs → mcp-CEtvR6tG.cjs} +18 -18
- package/dist/{mcp-yK3ynz_E.mjs → mcp-DKkBFGUa.mjs} +18 -18
- package/dist/{mirrorProtocol-5bgkr1Or.cjs → mirrorProtocol-CCl9dtzh.cjs} +3 -3
- package/dist/{mirrorProtocol-CoXxepvL.mjs → mirrorProtocol-DFQLXDBI.mjs} +3 -3
- package/dist/{package-D7V1BX2I.cjs → package-BFSsS_dl.cjs} +7 -7
- package/dist/{package-CCF6FHr2.mjs → package-DbGqY8Ej.mjs} +7 -7
- package/dist/{panels-CF5n641F.mjs → panels-2yIO9FxQ.mjs} +5 -5
- package/dist/{panels-9DdVhaxc.cjs → panels-BqLXIQif.cjs} +5 -5
- package/dist/{peerTools-gR_3dwdA.mjs → peerTools-4GYKxr8J.mjs} +5 -5
- package/dist/{peerTools-Dv6bgHkW.cjs → peerTools-Z8V2E0AF.cjs} +5 -5
- package/dist/{persistence-B5U9rC15.mjs → persistence-DbOKjdUD.mjs} +3 -3
- package/dist/{persistence-Dl3sBrCF.cjs → persistence-TpVFA5-I.cjs} +2 -2
- package/dist/{piRunnerArgs-DOV74xAt.mjs → piRunnerArgs-Bdj0sjAT.mjs} +1 -1
- package/dist/{piRunnerArgs-rygeUdRz.cjs → piRunnerArgs-DOEJJymf.cjs} +1 -1
- package/dist/{piRuntime-dtlRpOYa.mjs → piRuntime-B0QZykV7.mjs} +1 -1
- package/dist/{piRuntime-BvxCy9qQ.cjs → piRuntime-DiRayy91.cjs} +1 -1
- package/dist/{piTerminal-Bx6c5Jyd.mjs → piTerminal-DGF4X7C-.mjs} +20 -20
- package/dist/{piTerminal-ClaMS-57.cjs → piTerminal-DciFqPEi.cjs} +20 -20
- package/dist/{pushNotifications-IZaTtVDG.cjs → pushNotifications-C1i2W1GQ.cjs} +3 -3
- package/dist/{pushNotifications-pHkbUkqT.mjs → pushNotifications-CrCTpDiN.mjs} +3 -3
- package/dist/{query-BVqnfxlX.cjs → query-BkOpCpRo.cjs} +1 -1
- package/dist/{query-D_3rFFWe.mjs → query-CrSvcV32.mjs} +1 -1
- package/dist/{rateLimitWindows-C7xi99Eb.cjs → rateLimitWindows-BREA7OZj.cjs} +1 -1
- package/dist/{rateLimitWindows-DnLJ-gve.mjs → rateLimitWindows-DZVrafmm.mjs} +1 -1
- package/dist/{reconnectGate-DPDXEkOX.mjs → reconnectGate-COxAZTv8.mjs} +1 -1
- package/dist/{reconnectGate-CHI12y0Y.cjs → reconnectGate-YQ5jXJfY.cjs} +1 -1
- package/dist/{registerCommonHandlers-BrTglZnC.mjs → registerCommonHandlers-Cfl_dEWs.mjs} +2 -2
- package/dist/{registerCommonHandlers-CUCw-rad.cjs → registerCommonHandlers-D95IxqDN.cjs} +2 -2
- package/dist/{registerKillSessionHandler-Bo697Mt0.cjs → registerKillSessionHandler-DJJXtc_L.cjs} +6 -6
- package/dist/{registerKillSessionHandler-BJSVT1iq.mjs → registerKillSessionHandler-DoE6xgH3.mjs} +6 -6
- package/dist/{registerSideQuestionHandler-HNpsU_20.cjs → registerSideQuestionHandler-DsRz-aD9.cjs} +4 -4
- package/dist/{registerSideQuestionHandler-BFPCMrmC.mjs → registerSideQuestionHandler-Dv00rqcy.mjs} +4 -4
- package/dist/{remoteSessionClient-Blz-z9jM.mjs → remoteSessionClient-BFd_D9ka.mjs} +5 -5
- package/dist/{remoteSessionClient-9NzkfL13.cjs → remoteSessionClient-DleOeQlN.cjs} +5 -5
- package/dist/{reportProgressTool-B2-RFomn.mjs → reportProgressTool-D4xKY9Ur.mjs} +111 -4
- package/dist/{reportProgressTool-CW9rSnwQ.cjs → reportProgressTool-DtEpDqv3.cjs} +113 -3
- package/dist/{run-9aB7U4BF.cjs → run-CVAIFpsp.cjs} +391 -42
- package/dist/{run-BXyfDvCk.mjs → run-iDEMW4js.mjs} +391 -42
- package/dist/{runClaude-BKpWJdCX.mjs → runClaude-DvHdLJaV.mjs} +27 -25
- package/dist/{runClaude-B4ohp5Dk.cjs → runClaude-gucCQBma.cjs} +30 -28
- package/dist/{runClaudeDeps-gqSYeQkl.cjs → runClaudeDeps-CQ8vvqUQ.cjs} +42 -40
- package/dist/{runClaudeDeps-B0x5BCqC.mjs → runClaudeDeps-DkFWFwVc.mjs} +48 -46
- package/dist/{runGemini-BvV5k9b3.mjs → runGemini-B2lXQDru.mjs} +35 -33
- package/dist/{runGemini-BMzDy7hY.cjs → runGemini-C0vqJYtS.cjs} +35 -33
- package/dist/{runOpenClaw-3Cx3C2ww.cjs → runOpenClaw-DNV7GX73.cjs} +18 -18
- package/dist/{runOpenClaw-UcIDMHm7.mjs → runOpenClaw-Ddb6sOkY.mjs} +18 -18
- package/dist/{sandbox-BC-KbWe7.mjs → sandbox-Cw0cPDDh.mjs} +4 -4
- package/dist/{sandbox-QJdxjmxr.cjs → sandbox-FA0RlaZg.cjs} +4 -4
- package/dist/selfCheck-B-hKig8I.mjs +89 -0
- package/dist/{selfCheck-Be_M5coh.cjs → selfCheck-DFC8fzhF.cjs} +40 -39
- package/dist/{send-DhWp8M8B.cjs → send-BFd-5b_Q.cjs} +8 -8
- package/dist/{send-x789D5ci.mjs → send-CwgqPftE.mjs} +8 -8
- package/dist/{server-D-aSnlWI.mjs → server-C_4Fk45r.mjs} +4 -4
- package/dist/{server-kPDtS-DX.cjs → server-DwOdMGAP.cjs} +6 -6
- package/dist/{sessionLock-JWBEd8g_.mjs → sessionLock-CphKQyav.mjs} +3 -3
- package/dist/{sessionLock-CuPN9xfW.cjs → sessionLock-DglhFHzB.cjs} +3 -3
- package/dist/{startupSessionCreate-CxwJb5m9.cjs → sessionMetadata-DyTJ0Ki5.cjs} +14 -3
- package/dist/{startupSessionCreate-f1g6pp6E.mjs → sessionMetadata-V7Z7F-cj.mjs} +14 -4
- package/dist/{sessionOps-CYNOycqT.cjs → sessionOps-CIFvoFPA.cjs} +4 -4
- package/dist/{sessionOps-VS1baPz_.mjs → sessionOps-D-uFSTHk.mjs} +4 -4
- package/dist/{sessionProvider-DksA6icp.cjs → sessionProvider-B0daO-Ln.cjs} +10 -10
- package/dist/{sessionProvider-iRLKuR9V.mjs → sessionProvider-D8y7K8bK.mjs} +10 -10
- package/dist/{sessionScanner--X2Pzlra.cjs → sessionScanner-CWflbWoH.cjs} +3 -3
- package/dist/{sessionScanner-CAxiFc_3.mjs → sessionScanner-DQAOP6pU.mjs} +3 -3
- package/dist/{sessions-Dca1UgiF.mjs → sessions-CaO_-AI7.mjs} +10 -10
- package/dist/{sessions-BrnP53eO.cjs → sessions-CzpI76qj.cjs} +10 -10
- package/dist/{setupOfflineReconnection-Dwg6nHnP.cjs → setupOfflineReconnection-BZHRoKDx.cjs} +2 -2
- package/dist/{setupOfflineReconnection-nguxOn4s.mjs → setupOfflineReconnection-Ck-p0YPb.mjs} +2 -2
- package/dist/{spawn-BJMU9zbZ.mjs → spawn-BEJxfj60.mjs} +14 -14
- package/dist/{spawn-DDyMxQ7Z.cjs → spawn-DyjOa4nf.cjs} +14 -14
- package/dist/{spawnAgents-B8GT4JQX.cjs → spawnAgents-IiuqX0S5.cjs} +1 -1
- package/dist/{spawnAgents-SeUX5gIq.mjs → spawnAgents-XObVj6zN.mjs} +1 -1
- package/dist/{spawnHappyCLI-Cvk2ZMYj.cjs → spawnHappyCLI-C3XuIB2N.cjs} +1 -1
- package/dist/{spawnHappyCLI-DnT_QEdn.mjs → spawnHappyCLI-Cc9kKpcq.mjs} +1 -1
- package/dist/{startFileWatcher-DLfkP-IW.cjs → startFileWatcher-CeDJl9mN.cjs} +1 -1
- package/dist/{startFileWatcher-Djf0SdmK.mjs → startFileWatcher-t3K1y9kY.mjs} +1 -1
- package/dist/{store-DnaIrYLA.mjs → store-CqNAE-0v.mjs} +1 -1
- package/dist/{store-D41VdZcL.cjs → store-DOZAMV4W.cjs} +1 -1
- package/dist/{streamRelay-DEBIU6Ak.mjs → streamRelay-7D7v0hvk.mjs} +1 -1
- package/dist/{streamRelay-BT9ew0Mk.cjs → streamRelay-Dyp4x44P.cjs} +1 -1
- package/dist/{sync-B-B5mc8Z.cjs → sync-BvxhuW9R.cjs} +1 -1
- package/dist/{sync-Dfr1zgLx.mjs → sync-s1pUqWGm.mjs} +1 -1
- package/dist/{systemPrompt-pxNDR5u8.cjs → systemPrompt-CCdSrtn3.cjs} +2 -2
- package/dist/{systemPrompt-DAQq-bKB.mjs → systemPrompt-CLYTbBhV.mjs} +2 -2
- package/dist/{teams-BuXDbvzq.mjs → teams-BVp5F_xN.mjs} +7 -7
- package/dist/{teams-CBMB5SvT.cjs → teams-D2q1DQWz.cjs} +7 -7
- package/dist/{template-CB4gXtUX.cjs → template-M1YGFYUT.cjs} +1 -1
- package/dist/{template-DE9JMShn.mjs → template-oBrR0saD.mjs} +1 -1
- package/dist/{time-DTaj0RVK.cjs → time-D-v2Cd9e.cjs} +1 -1
- package/dist/{time-PqfO1O58.mjs → time-qd46L189.mjs} +1 -1
- package/dist/{titleGenerator-DVnEGxoB.mjs → titleGenerator-BdeHi3IY.mjs} +2 -2
- package/dist/{titleGenerator-BP5gqicG.cjs → titleGenerator-CSYqcorn.cjs} +3 -3
- package/dist/{todo-DaJPxDVT.mjs → todo-DiEhLgUZ.mjs} +95 -12
- package/dist/{todo-BXsQ5-iD.cjs → todo-Dq_YuJvj.cjs} +101 -18
- package/dist/{tools-G3_fMSjb.cjs → tools-CY2zrdd5.cjs} +1 -1
- package/dist/{tools-B4W8kWU8.mjs → tools-DR7GWBBV.mjs} +1 -1
- package/dist/{uninstall-C0pua8G4.cjs → uninstall-BHhHjbzE.cjs} +3 -3
- package/dist/{uninstall-ByWgUWHg.mjs → uninstall-BvwDZVU9.mjs} +3 -3
- package/dist/{wrapperAccount-BDeMsgbw.mjs → wrapperAccount-CpDsQL15.mjs} +2 -2
- package/dist/{wrapperAccount-CsxMfnCK.cjs → wrapperAccount-ejUjAQaM.cjs} +2 -2
- package/package.json +7 -7
- package/dist/selfCheck-NWjxjpSx.mjs +0 -88
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { l as ISSUE_ERROR_CODES, m as ISSUES_DISABLED_ERROR, n as ISSUE_WORKER_VERSION } from './index-kwsivEs-.mjs';
|
|
2
|
+
import { c as configuration } from './configuration-4pG95tsq.mjs';
|
|
3
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-DbOKjdUD.mjs';
|
|
4
|
+
|
|
5
|
+
const ISSUES_UNSUPPORTED_BACKOFF_MS = 10 * 6e4;
|
|
6
|
+
class IssuesUnsupportedError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super("This Very Happy server does not support Issues (or they are turned off).");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
class IssueRequestError extends Error {
|
|
12
|
+
constructor(status, code, details) {
|
|
13
|
+
super(code ? `Issue request failed: ${code}` : `Issue request failed (HTTP ${status})`);
|
|
14
|
+
this.status = status;
|
|
15
|
+
this.code = code;
|
|
16
|
+
this.details = details;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const ISSUE_TRANSACTION_CONFLICT = "transaction_conflict";
|
|
20
|
+
const ISSUE_CONFLICT_MAX_RETRIES = 5;
|
|
21
|
+
function issueConflictBackoffMs(attempt, random = Math.random) {
|
|
22
|
+
const base = 200 * 2 ** attempt;
|
|
23
|
+
return base + Math.floor(random() * base / 2);
|
|
24
|
+
}
|
|
25
|
+
const KNOWN_CODES = new Set(ISSUE_ERROR_CODES.filter((code) => code !== ISSUES_DISABLED_ERROR));
|
|
26
|
+
const EXTRA_OBJECT_CODES = /* @__PURE__ */ new Set(["issue_dispatch_not_found", "issue_comment_not_found", "session_not_found"]);
|
|
27
|
+
function isIssueObjectError(code) {
|
|
28
|
+
return typeof code === "string" && (KNOWN_CODES.has(code) || EXTRA_OBJECT_CODES.has(code));
|
|
29
|
+
}
|
|
30
|
+
function createIssuesClient(deps = {}) {
|
|
31
|
+
const now = deps.now ?? Date.now;
|
|
32
|
+
const doFetch = deps.fetch ?? fetch;
|
|
33
|
+
const token = deps.token ?? (async () => (await readCredentialsForConfiguredRelay())?.token ?? null);
|
|
34
|
+
const sleep = deps.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
35
|
+
const random = deps.random ?? Math.random;
|
|
36
|
+
let disabledUntil = 0;
|
|
37
|
+
async function request(path, method, body, timeoutMs = 1e4) {
|
|
38
|
+
for (let attempt = 0; ; attempt++) {
|
|
39
|
+
try {
|
|
40
|
+
return await requestOnce(path, method, body, timeoutMs);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
const retryable = error instanceof IssueRequestError && error.status === 409 && error.code === ISSUE_TRANSACTION_CONFLICT;
|
|
43
|
+
if (!retryable || attempt >= ISSUE_CONFLICT_MAX_RETRIES) throw error;
|
|
44
|
+
await sleep(issueConflictBackoffMs(attempt, random));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async function requestOnce(path, method, body, timeoutMs) {
|
|
49
|
+
if (now() < disabledUntil) throw new IssuesUnsupportedError();
|
|
50
|
+
const bearer = await token();
|
|
51
|
+
if (!bearer) throw new IssueRequestError(401, "not_signed_in", {});
|
|
52
|
+
const response = await doFetch(`${deps.serverUrl ?? configuration.serverUrl}${path}`, {
|
|
53
|
+
method,
|
|
54
|
+
redirect: "error",
|
|
55
|
+
headers: { authorization: `Bearer ${bearer}`, ...body === void 0 ? {} : { "content-type": "application/json" } },
|
|
56
|
+
body: body === void 0 ? void 0 : JSON.stringify(body),
|
|
57
|
+
signal: AbortSignal.timeout(timeoutMs)
|
|
58
|
+
});
|
|
59
|
+
let json = null;
|
|
60
|
+
try {
|
|
61
|
+
json = await response.json();
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
if (response.status === 404 && !isIssueObjectError(json?.error)) {
|
|
65
|
+
disabledUntil = now() + ISSUES_UNSUPPORTED_BACKOFF_MS;
|
|
66
|
+
throw new IssuesUnsupportedError();
|
|
67
|
+
}
|
|
68
|
+
if (!response.ok) {
|
|
69
|
+
const { error, ...details } = json && typeof json === "object" ? json : {};
|
|
70
|
+
throw new IssueRequestError(response.status, typeof error === "string" ? error : null, details);
|
|
71
|
+
}
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
const enc = (id) => encodeURIComponent(id);
|
|
75
|
+
const query = (params) => {
|
|
76
|
+
const q = new URLSearchParams();
|
|
77
|
+
for (const [k, v] of Object.entries(params)) if (v !== void 0 && v !== "") q.set(k, String(v));
|
|
78
|
+
const s = q.toString();
|
|
79
|
+
return s ? `?${s}` : "";
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
isDisabled: () => now() < disabledUntil,
|
|
83
|
+
// ── human / CLI ──
|
|
84
|
+
list: (params = {}) => request(`/v1/issues${query({ ...params, includeDeleted: params.includeDeleted ? "1" : void 0 })}`, "GET"),
|
|
85
|
+
get: (ref) => request(`/v1/issues/${enc(ref)}`, "GET"),
|
|
86
|
+
create: (input) => request("/v1/issues", "POST", input),
|
|
87
|
+
update: (id, input) => request(`/v1/issues/${enc(id)}`, "PATCH", input),
|
|
88
|
+
remove: (id) => request(`/v1/issues/${enc(id)}`, "DELETE"),
|
|
89
|
+
comment: (id, input) => request(`/v1/issues/${enc(id)}/comments`, "POST", input),
|
|
90
|
+
importLegacyTodos: () => request("/v1/issues/import-legacy-todos", "POST", {}),
|
|
91
|
+
// ── wrapper (agent; the wrapper stamps its own sessionId) ──
|
|
92
|
+
session: (sessionId, since, timeoutMs) => request(`/v1/issues/session/${enc(sessionId)}${since !== void 0 ? `?since=${Math.max(0, Math.floor(since))}` : ""}`, "GET", void 0, timeoutMs),
|
|
93
|
+
agentUpdate: (input) => request("/v1/issues/agent/update", "POST", input),
|
|
94
|
+
agentComment: (input) => request("/v1/issues/agent/comment", "POST", input),
|
|
95
|
+
// ── daemon issue worker ──
|
|
96
|
+
poll: (machineId) => request(`/v1/issues/dispatch${query({ machineId, workerVersion: ISSUE_WORKER_VERSION })}`, "GET"),
|
|
97
|
+
claim: (dispatchId, machineId) => request(`/v1/issues/dispatch/${enc(dispatchId)}/claim`, "POST", { machineId }),
|
|
98
|
+
complete: (dispatchId, input) => request(`/v1/issues/dispatch/${enc(dispatchId)}/complete`, "POST", input),
|
|
99
|
+
fail: (dispatchId, input) => request(`/v1/issues/dispatch/${enc(dispatchId)}/fail`, "POST", input),
|
|
100
|
+
sessionEvent: (runId, input) => request(`/v1/issues/runs/${enc(runId)}/session-event`, "POST", input)
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
let shared = null;
|
|
104
|
+
function sharedIssuesClient() {
|
|
105
|
+
return shared ??= createIssuesClient();
|
|
106
|
+
}
|
|
107
|
+
const imported = /* @__PURE__ */ new WeakSet();
|
|
108
|
+
async function importLegacyTodosOnce(client) {
|
|
109
|
+
if (imported.has(client)) return;
|
|
110
|
+
imported.add(client);
|
|
111
|
+
await client.importLegacyTodos().catch(() => void 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { IssuesUnsupportedError as I, IssueRequestError as a, createIssuesClient as c, importLegacyTodosOnce as i, sharedIssuesClient as s };
|
|
@@ -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-4pG95tsq.mjs';
|
|
2
|
+
import { b as readCredentialsForConfiguredRelay, r as readSettings } from './persistence-DbOKjdUD.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-ClUt7pqs.cjs');
|
|
4
|
+
var persistence = require('./persistence-TpVFA5-I.cjs');
|
|
5
5
|
|
|
6
6
|
const UNSUPPORTED_BACKOFF_MS = 10 * 6e4;
|
|
7
7
|
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 { j as isInsideTeamWorktree, k as rebaseTeamWorktreePath } from './index-kwsivEs-.mjs';
|
|
6
|
+
import { c as configuration } from './configuration-4pG95tsq.mjs';
|
|
7
|
+
import { r as readSettings, c as readPersistedSessions, b as readCredentialsForConfiguredRelay } from './persistence-DbOKjdUD.mjs';
|
|
8
|
+
import { r as readTeamScope, t as teamScopePath, w as writeTeamScope } from './context-Cf05DtNM.mjs';
|
|
9
9
|
|
|
10
10
|
async function teamRequest(path, method, token, scoped, body) {
|
|
11
11
|
const response = await fetch(`${configuration.serverUrl}${path}`, {
|
|
@@ -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-BiutHOAO.cjs');
|
|
8
|
+
var configuration = require('./configuration-ClUt7pqs.cjs');
|
|
9
|
+
var persistence = require('./persistence-TpVFA5-I.cjs');
|
|
10
|
+
var context = require('./context-wMsIGwBw.cjs');
|
|
11
11
|
|
|
12
12
|
async function teamRequest(path, method, token, scoped, body) {
|
|
13
13
|
const response = await fetch(`${configuration.configuration.serverUrl}${path}`, {
|
|
@@ -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-ClUt7pqs.cjs');
|
|
4
|
+
var persistence = require('./persistence-TpVFA5-I.cjs');
|
|
5
5
|
|
|
6
6
|
class AutomationsRequestError extends Error {
|
|
7
7
|
constructor(status, code, runStatus, invalidFields = []) {
|
|
@@ -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-CY2zrdd5.cjs');
|
|
4
|
+
var reportProgressTool = require('../reportProgressTool-DtEpDqv3.cjs');
|
|
5
|
+
var peerTools = require('../peerTools-Z8V2E0AF.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,39 @@ 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-C8BTmcrh.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-BiutHOAO.cjs');
|
|
19
19
|
require('@paralleldrive/cuid2');
|
|
20
|
-
require('../configuration-
|
|
20
|
+
require('../configuration-ClUt7pqs.cjs');
|
|
21
21
|
require('node:fs');
|
|
22
22
|
require('node:os');
|
|
23
|
-
require('../package-
|
|
23
|
+
require('../package-BFSsS_dl.cjs');
|
|
24
24
|
require('node:fs/promises');
|
|
25
|
-
require('../persistence-
|
|
25
|
+
require('../persistence-TpVFA5-I.cjs');
|
|
26
26
|
require('../authRelay-Dy1qU9td.cjs');
|
|
27
27
|
require('tweetnacl');
|
|
28
|
-
require('../logger-
|
|
28
|
+
require('../logger-D28MY1Bv.cjs');
|
|
29
29
|
require('chalk');
|
|
30
|
-
require('../context-
|
|
31
|
-
require('../client-
|
|
30
|
+
require('../context-wMsIGwBw.cjs');
|
|
31
|
+
require('../client-D0_UOmC1.cjs');
|
|
32
32
|
require('../precheckCompat-CWOi5c9L.cjs');
|
|
33
|
-
require('../client-
|
|
33
|
+
require('../client-BnoN4P4t.cjs');
|
|
34
34
|
require('../prompt-Bof2aQkI.cjs');
|
|
35
|
+
require('../client-1zIbVVX5.cjs');
|
|
36
|
+
require('../format-P9_M_7ga.cjs');
|
|
35
37
|
require('../ids-B6ZC0HGt.cjs');
|
|
36
|
-
require('../controlClient-
|
|
37
|
-
require('../sessionOps-
|
|
38
|
+
require('../controlClient-SYDFcIkk.cjs');
|
|
39
|
+
require('../sessionOps-CIFvoFPA.cjs');
|
|
38
40
|
require('axios');
|
|
39
|
-
require('../time-
|
|
41
|
+
require('../time-D-v2Cd9e.cjs');
|
|
40
42
|
require('../specialCommands-J3JFOq0J.cjs');
|
|
41
43
|
require('socket.io-client');
|
|
42
44
|
require('../backgroundTaskActivity-CBvUdj39.cjs');
|
|
43
|
-
require('../remoteSessionClient-
|
|
45
|
+
require('../remoteSessionClient-DleOeQlN.cjs');
|
|
44
46
|
require('../trimIdent-4gvk9Wk6.cjs');
|
|
45
47
|
|
|
46
48
|
function parseArgs(argv) {
|
|
@@ -180,6 +182,13 @@ async function main() {
|
|
|
180
182
|
if (response.isError) throw new Error(text || "Project request failed");
|
|
181
183
|
return { text };
|
|
182
184
|
});
|
|
185
|
+
reportProgressTool.registerIssueTools(server, async (name, args) => {
|
|
186
|
+
const response = await (await ensureHttpClient()).callTool({ name, arguments: args });
|
|
187
|
+
const content = response.content;
|
|
188
|
+
const text = content.filter((block) => block.type === "text").map((block) => block.text ?? "").join("\n");
|
|
189
|
+
if (response.isError) throw new Error(text || "Issue request failed");
|
|
190
|
+
return { text };
|
|
191
|
+
});
|
|
183
192
|
reportProgressTool.registerReportProgressTool(server, async (args) => (await ensureHttpClient()).callTool({ name: agentGuidance.REPORT_PROGRESS_TOOL_NAME, arguments: args }));
|
|
184
193
|
const stdio = new stdio_js.StdioServerTransport();
|
|
185
194
|
await server.connect(stdio);
|
|
@@ -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-DR7GWBBV.mjs';
|
|
2
|
+
import { r as registerAutomationTools, a as registerProjectTools, b as registerIssueTools, c as registerReportProgressTool } from '../reportProgressTool-D4xKY9Ur.mjs';
|
|
3
|
+
import { r as registerSessionPeerTools } from '../peerTools-4GYKxr8J.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,39 @@ 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-C0qjAgZ_.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-kwsivEs-.mjs';
|
|
17
17
|
import '@paralleldrive/cuid2';
|
|
18
|
-
import '../configuration-
|
|
18
|
+
import '../configuration-4pG95tsq.mjs';
|
|
19
19
|
import 'node:fs';
|
|
20
20
|
import 'node:os';
|
|
21
|
-
import '../package-
|
|
21
|
+
import '../package-DbGqY8Ej.mjs';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import '../persistence-
|
|
23
|
+
import '../persistence-DbOKjdUD.mjs';
|
|
24
24
|
import '../authRelay-DhQhkBvX.mjs';
|
|
25
25
|
import 'tweetnacl';
|
|
26
|
-
import '../logger-
|
|
26
|
+
import '../logger-BLMi8oJK.mjs';
|
|
27
27
|
import 'chalk';
|
|
28
|
-
import '../context-
|
|
29
|
-
import '../client-
|
|
28
|
+
import '../context-Cf05DtNM.mjs';
|
|
29
|
+
import '../client-Blpuk2Hr.mjs';
|
|
30
30
|
import '../precheckCompat-DeEbilbr.mjs';
|
|
31
|
-
import '../client-
|
|
31
|
+
import '../client-BXwIqRha.mjs';
|
|
32
32
|
import '../prompt-QHuFx9j6.mjs';
|
|
33
|
+
import '../client-BgxQ9aej.mjs';
|
|
34
|
+
import '../format-CbliQN8V.mjs';
|
|
33
35
|
import '../ids-DU6sLx4C.mjs';
|
|
34
|
-
import '../controlClient-
|
|
35
|
-
import '../sessionOps-
|
|
36
|
+
import '../controlClient-bqCKl9Nv.mjs';
|
|
37
|
+
import '../sessionOps-D-uFSTHk.mjs';
|
|
36
38
|
import 'axios';
|
|
37
|
-
import '../time-
|
|
39
|
+
import '../time-qd46L189.mjs';
|
|
38
40
|
import '../specialCommands-MXUN0wfI.mjs';
|
|
39
41
|
import 'socket.io-client';
|
|
40
42
|
import '../backgroundTaskActivity-8PdPxrvy.mjs';
|
|
41
|
-
import '../remoteSessionClient-
|
|
43
|
+
import '../remoteSessionClient-BFd_D9ka.mjs';
|
|
42
44
|
import '../trimIdent-BAjmv_TG.mjs';
|
|
43
45
|
|
|
44
46
|
function parseArgs(argv) {
|
|
@@ -178,6 +180,13 @@ async function main() {
|
|
|
178
180
|
if (response.isError) throw new Error(text || "Project request failed");
|
|
179
181
|
return { text };
|
|
180
182
|
});
|
|
183
|
+
registerIssueTools(server, async (name, args) => {
|
|
184
|
+
const response = await (await ensureHttpClient()).callTool({ name, arguments: args });
|
|
185
|
+
const content = response.content;
|
|
186
|
+
const text = content.filter((block) => block.type === "text").map((block) => block.text ?? "").join("\n");
|
|
187
|
+
if (response.isError) throw new Error(text || "Issue request failed");
|
|
188
|
+
return { text };
|
|
189
|
+
});
|
|
181
190
|
registerReportProgressTool(server, async (args) => (await ensureHttpClient()).callTool({ name: REPORT_PROGRESS_TOOL_NAME, arguments: args }));
|
|
182
191
|
const stdio = new StdioServerTransport();
|
|
183
192
|
await server.connect(stdio);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync, renameSync, rmSync, symlinkSync, mkdirSync, lstatSync, readlinkSync, readdirSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
|
-
import { l as accountCodexHomePath, b as accountSecretPath, e as expandHome } from './store-
|
|
4
|
+
import { l as accountCodexHomePath, b as accountSecretPath, e as expandHome } from './store-CqNAE-0v.mjs';
|
|
5
5
|
|
|
6
6
|
/*!
|
|
7
7
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
@@ -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-BLMi8oJK.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-DbGqY8Ej.mjs';
|
|
8
|
+
import { s as shouldReadCodexRateLimits, i as isUnsupportedCodexMethodError } from './rateLimitWindows-DZVrafmm.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-D28MY1Bv.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-BFSsS_dl.cjs');
|
|
10
|
+
var rateLimitWindows = require('./rateLimitWindows-BREA7OZj.cjs');
|
|
11
11
|
var processTree = require('./processTree-CMHWlVse.cjs');
|
|
12
12
|
|
|
13
13
|
const CODEX_HELPER_LABEL_MAX_CHARS = 80;
|
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { s as
|
|
1
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-8jKFCZOX.mjs';
|
|
2
|
+
import { t as createEnvelope, J as BUILTIN_TODO_DISCOVERY, I as ISSUE_SESSION_CAPABILITY, r as restoredEffort, x as readEffortIntent, W as EFFORT_INTENT_AUTO, P as PROMPT_QUEUE_CAPABILITY, ag as CODEX_STEER_CAPABILITY, a as PROJECT_SESSION_CAPABILITY, ah as CODEX_COMPACT_CAPABILITY, R as RUN_INTENT_CAPABILITY, A as AGENT_PROFILE_SESSION_CAPABILITY, ai as CODEX_BTW_CAPABILITY, aj as CODEX_LIVE_PERMISSION_CAPABILITY } from './index-kwsivEs-.mjs';
|
|
3
|
+
import { i as issueSessionMetadata, c as createSessionForStartup, b as HibernationExitLatch, H as HibernationProbe, a as commitHibernation } from './sessionMetadata-V7Z7F-cj.mjs';
|
|
4
|
+
import { a as recordRunIntents, w as withoutEffort, r as registerRunIntentRpc, b as DEFAULT_CODEX_PERMISSION_MODE } from './defaultPermissionMode-Cl3OvdHp.mjs';
|
|
5
|
+
import { h as hashObject, s as startHappyServer, c as createProjectInjector } from './deterministicJson-BRAeReBK.mjs';
|
|
6
|
+
import { s as sharedProjectsClient } from './client-BXwIqRha.mjs';
|
|
6
7
|
import { unlink } from 'node:fs/promises';
|
|
7
8
|
import { p as publishForkBackfillWhenCommitted, F as FORK_BACKFILL_CAPABILITY } from './forkBackfill-DYIjlN1Z.mjs';
|
|
8
9
|
import { randomUUID } from 'node:crypto';
|
|
9
10
|
import { createId } from '@paralleldrive/cuid2';
|
|
10
|
-
import { t as textResultPayload, d as toolResultContentText, c as connectionState, A as ApiClient } from './api-
|
|
11
|
+
import { t as textResultPayload, d as toolResultContentText, c as connectionState, A as ApiClient } from './api-DCUiAds-.mjs';
|
|
11
12
|
import { r as registerAgentAttachmentDownloads, H as HeldInput } from './heldInput-C69lA2dH.mjs';
|
|
12
|
-
import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-
|
|
13
|
+
import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-BKIq6EXR.mjs';
|
|
13
14
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
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-
|
|
15
|
+
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-CphKQyav.mjs';
|
|
15
16
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
16
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
17
|
-
import { S as SIDE_QUESTION_SYSTEM_PROMPT, b as buildSideQuestionPrompt, t as toolAttemptNotice, r as registerSideQuestionHandler, d as describePendingApprovals, w as wrapperRateLimitReporter } from './registerSideQuestionHandler-
|
|
18
|
-
import { l as logger } from './logger-
|
|
19
|
-
import { B as BasePermissionHandler } from './BasePermissionHandler-
|
|
20
|
-
import { B as BaseReasoningProcessor, s as settleCodexSession } from './codexTermination-
|
|
17
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-By4ntTIr.mjs';
|
|
18
|
+
import { S as SIDE_QUESTION_SYSTEM_PROMPT, b as buildSideQuestionPrompt, t as toolAttemptNotice, r as registerSideQuestionHandler, d as describePendingApprovals, w as wrapperRateLimitReporter } from './registerSideQuestionHandler-Dv00rqcy.mjs';
|
|
19
|
+
import { l as logger } from './logger-BLMi8oJK.mjs';
|
|
20
|
+
import { B as BasePermissionHandler } from './BasePermissionHandler-8Msj0Z8j.mjs';
|
|
21
|
+
import { B as BaseReasoningProcessor, s as settleCodexSession } from './codexTermination-BS0sLBKS.mjs';
|
|
21
22
|
import { execSync } from 'node:child_process';
|
|
22
|
-
import { r as readSettings, l as latchKeepAwake, e as evaluateWrapperIdle, a as resolveCheckMs, H as HIBERNATION_CAPABILITY } from './persistence-
|
|
23
|
-
import { g as getInitialMachineMetadata } from './machineMetadata-
|
|
24
|
-
import { c as configuration } from './configuration-
|
|
25
|
-
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-
|
|
23
|
+
import { r as readSettings, l as latchKeepAwake, e as evaluateWrapperIdle, a as resolveCheckMs, H as HIBERNATION_CAPABILITY } from './persistence-DbOKjdUD.mjs';
|
|
24
|
+
import { g as getInitialMachineMetadata } from './machineMetadata-D8OWVD4l.mjs';
|
|
25
|
+
import { c as configuration } from './configuration-4pG95tsq.mjs';
|
|
26
|
+
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-DoE6xgH3.mjs';
|
|
26
27
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
27
28
|
import { dirname, join } from 'node:path';
|
|
28
|
-
import { c as createSessionMetadata } from './createSessionMetadata-
|
|
29
|
+
import { c as createSessionMetadata } from './createSessionMetadata-CQkxe_4T.mjs';
|
|
29
30
|
import { M as MessageBuffer } from './sessionExitLifecycle-iAtZN9sa.mjs';
|
|
30
|
-
import { n as notifyDaemonSessionStarted, o as reportSessionEditToDaemon, c as checkDaemonHibernation } from './controlClient-
|
|
31
|
-
import { c as createSessionForStartup, b as HibernationExitLatch, H as HibernationProbe, a as commitHibernation } from './startupSessionCreate-f1g6pp6E.mjs';
|
|
31
|
+
import { n as notifyDaemonSessionStarted, o as reportSessionEditToDaemon, c as checkDaemonHibernation } from './controlClient-bqCKl9Nv.mjs';
|
|
32
32
|
import { d as decodeBase64, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
33
|
-
import { s as setupOfflineReconnection } from './setupOfflineReconnection-
|
|
33
|
+
import { s as setupOfflineReconnection } from './setupOfflineReconnection-Ck-p0YPb.mjs';
|
|
34
34
|
import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs';
|
|
35
35
|
import { a as parseSpecialCommand, c as compactCommandText, b as parseCompact } from './specialCommands-MXUN0wfI.mjs';
|
|
36
36
|
import { C as CHANGE_TITLE_INSTRUCTION } from './constants-BC4St0xd.mjs';
|
|
37
37
|
import { E as EditReportThrottle, a as extractCodexPatchPaths } from './editPaths-BVfS_FFL.mjs';
|
|
38
38
|
import { t as takeReconnectEnv } from './reconnectEnv-DeSvHl3q.mjs';
|
|
39
|
-
import { r as readSessionBindings, w as writeSessionBinding, d as defaultSecretProbe, a as readAccounts, c as readAccountsFileV2, f as writeAccountsFile, S as SPAWN_ACCOUNT_ENV } from './store-
|
|
39
|
+
import { r as readSessionBindings, w as writeSessionBinding, d as defaultSecretProbe, a as readAccounts, c as readAccountsFileV2, f as writeAccountsFile, S as SPAWN_ACCOUNT_ENV } from './store-CqNAE-0v.mjs';
|
|
40
40
|
import { mkdirSync, writeFileSync, chmodSync, rmSync } from 'node:fs';
|
|
41
|
-
import { a as resolveCodexAccount, r as readCodexProviders, s as syncCodexOverlay, b as baseCodexHome, c as codexAccountSwitched, d as readCodexDefaultProvider, e as codexAccountDefaultModel, f as accountModelsAsCatalog, i as isHistoryRejectedError, g as isCodexAuthRejection } from './codexAccount-
|
|
42
|
-
import { s as shouldRecordSpawnAccount, u as unavailableNotice } from './wrapperAccount-
|
|
43
|
-
import { a as extractNoSandboxFlag, e as ensureDaemonRunning } from './ensureDaemonRunning-
|
|
41
|
+
import { a as resolveCodexAccount, r as readCodexProviders, s as syncCodexOverlay, b as baseCodexHome, c as codexAccountSwitched, d as readCodexDefaultProvider, e as codexAccountDefaultModel, f as accountModelsAsCatalog, i as isHistoryRejectedError, g as isCodexAuthRejection } from './codexAccount-BAezf1fY.mjs';
|
|
42
|
+
import { s as shouldRecordSpawnAccount, u as unavailableNotice } from './wrapperAccount-CpDsQL15.mjs';
|
|
43
|
+
import { a as extractNoSandboxFlag, e as ensureDaemonRunning } from './ensureDaemonRunning-LqrgqVG3.mjs';
|
|
44
44
|
import 'tweetnacl';
|
|
45
45
|
import 'axios';
|
|
46
|
-
import './time-
|
|
47
|
-
import './browser-
|
|
46
|
+
import './time-qd46L189.mjs';
|
|
47
|
+
import './browser-BAlw0rns.mjs';
|
|
48
48
|
import 'open';
|
|
49
49
|
import 'zod';
|
|
50
50
|
import './prompt-QHuFx9j6.mjs';
|
|
51
|
-
import './
|
|
52
|
-
import './
|
|
51
|
+
import './client-BgxQ9aej.mjs';
|
|
52
|
+
import './reportProgressTool-D4xKY9Ur.mjs';
|
|
53
|
+
import './client-Blpuk2Hr.mjs';
|
|
53
54
|
import './precheckCompat-DeEbilbr.mjs';
|
|
55
|
+
import './format-CbliQN8V.mjs';
|
|
54
56
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
55
57
|
import 'node:os';
|
|
56
58
|
import './pi-CqyoZMjI.mjs';
|
|
57
59
|
import './fileStore-5qpetZS0.mjs';
|
|
58
|
-
import './client-
|
|
60
|
+
import './client-C0qjAgZ_.mjs';
|
|
59
61
|
import 'node:util';
|
|
60
|
-
import './context-
|
|
61
|
-
import './sessionOps-
|
|
62
|
+
import './context-Cf05DtNM.mjs';
|
|
63
|
+
import './sessionOps-D-uFSTHk.mjs';
|
|
62
64
|
import 'socket.io-client';
|
|
63
65
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
64
66
|
import './resources-CLP_MpK4.mjs';
|
|
65
|
-
import './tools-
|
|
66
|
-
import './peerTools-
|
|
67
|
+
import './tools-DR7GWBBV.mjs';
|
|
68
|
+
import './peerTools-4GYKxr8J.mjs';
|
|
67
69
|
import './ids-DU6sLx4C.mjs';
|
|
68
|
-
import './remoteSessionClient-
|
|
70
|
+
import './remoteSessionClient-BFd_D9ka.mjs';
|
|
69
71
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
70
72
|
import 'node:http';
|
|
71
73
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
72
74
|
import './limits-DIo7rEBR.mjs';
|
|
73
|
-
import './downloadTarget-
|
|
75
|
+
import './downloadTarget-Diq-GBu4.mjs';
|
|
74
76
|
import './terminals-Dc38XmZv.mjs';
|
|
75
77
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
76
78
|
import './tmuxSocket-BmZyixRM.mjs';
|
|
77
|
-
import './bootstrap-
|
|
78
|
-
import './package-
|
|
79
|
+
import './bootstrap-BkLFgEGF.mjs';
|
|
80
|
+
import './package-DbGqY8Ej.mjs';
|
|
79
81
|
import './webPanels-B2_C2-3g.mjs';
|
|
80
|
-
import './pushNotifications-
|
|
82
|
+
import './pushNotifications-CrCTpDiN.mjs';
|
|
81
83
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
82
84
|
import './previewPath-CXN4Vag0.mjs';
|
|
83
85
|
import 'crypto';
|
|
84
|
-
import './reconnectGate-
|
|
86
|
+
import './reconnectGate-COxAZTv8.mjs';
|
|
85
87
|
import 'os';
|
|
86
88
|
import 'child_process';
|
|
87
89
|
import 'node:events';
|
|
88
|
-
import './registerCommonHandlers-
|
|
90
|
+
import './registerCommonHandlers-Cfl_dEWs.mjs';
|
|
89
91
|
import 'util';
|
|
90
92
|
import 'fs/promises';
|
|
91
93
|
import 'path';
|
|
92
94
|
import 'cross-spawn';
|
|
93
|
-
import './sync-
|
|
95
|
+
import './sync-s1pUqWGm.mjs';
|
|
94
96
|
import 'chalk';
|
|
95
97
|
import './cliUpdate-Y34VGe9Y.mjs';
|
|
96
98
|
import './processTermination-ChJG5SLW.mjs';
|
|
@@ -98,16 +100,16 @@ import './processTreeSnapshot-fuwxC0fr.mjs';
|
|
|
98
100
|
import 'node:readline';
|
|
99
101
|
import './manager-BEsI4qt3.mjs';
|
|
100
102
|
import '@anthropic-ai/sandbox-runtime';
|
|
101
|
-
import './rateLimitWindows-
|
|
103
|
+
import './rateLimitWindows-DZVrafmm.mjs';
|
|
102
104
|
import './processTree-CP5IvQ2Z.mjs';
|
|
103
105
|
import './detectCLI-CSGMlV51.mjs';
|
|
104
106
|
import 'fs';
|
|
105
|
-
import './localHappyAgentAuth-
|
|
107
|
+
import './localHappyAgentAuth-DeDQjw24.mjs';
|
|
106
108
|
import './fsMkdir-DumgLTzR.mjs';
|
|
107
109
|
import './types-CkqAACXx.mjs';
|
|
108
110
|
import 'url';
|
|
109
|
-
import './claudeAccountEnv-
|
|
110
|
-
import './spawnHappyCLI-
|
|
111
|
+
import './claudeAccountEnv-CI8RlIB9.mjs';
|
|
112
|
+
import './spawnHappyCLI-Cc9kKpcq.mjs';
|
|
111
113
|
import './doctorReadiness-C208SMN9.mjs';
|
|
112
114
|
|
|
113
115
|
function getStartedSubagents(state) {
|
|
@@ -1650,6 +1652,7 @@ async function runCodex(opts) {
|
|
|
1650
1652
|
const { state, metadata } = createSessionMetadata({
|
|
1651
1653
|
flavor: "codex",
|
|
1652
1654
|
...process.env.VH_TEAM_OPERATION_ID ? { teamOperationId: process.env.VH_TEAM_OPERATION_ID } : {},
|
|
1655
|
+
...issueSessionMetadata(),
|
|
1653
1656
|
machineId,
|
|
1654
1657
|
startedBy: opts.startedBy,
|
|
1655
1658
|
sandbox: sandboxConfig,
|
|
@@ -1658,6 +1661,7 @@ async function runCodex(opts) {
|
|
|
1658
1661
|
...forkedFromMessageId ? { forkedFromMessageId } : {},
|
|
1659
1662
|
capabilities: [PROMPT_QUEUE_CAPABILITY, FORK_BACKFILL_CAPABILITY, HIBERNATION_CAPABILITY, AUTO_RESTART_CAPABILITY, CODEX_STEER_CAPABILITY, PROJECT_SESSION_CAPABILITY, CODEX_COMPACT_CAPABILITY, RUN_INTENT_CAPABILITY, AGENT_PROFILE_SESSION_CAPABILITY, CODEX_BTW_CAPABILITY, CODEX_LIVE_PERMISSION_CAPABILITY]
|
|
1660
1663
|
});
|
|
1664
|
+
metadata.capabilities = [...metadata.capabilities ?? [], ISSUE_SESSION_CAPABILITY];
|
|
1661
1665
|
metadata.attachmentKinds = [...CLAUDE_ATTACHMENT_KINDS];
|
|
1662
1666
|
metadata.stickyModel = null;
|
|
1663
1667
|
metadata.currentThoughtLevelCode = DEFAULT_CODEX_EFFORT;
|