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
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { i as isClaudeSessionId, h as extractCompleteLines, j as decideBackfill, k as parseTerminalHookPayload, m as decideMirrorBinding, M as MIRROR_BACKFILL_LINES_DEFAULT, n as mirrorLineKey, o as mirrorLocalId, q as initializeOwnedWorktree, f as summarizeSpawnSessionForLog, t as startAgentVersionChecks, W as WORKTREE_CAPABILITY_VERSION, u as currentWorktreeService } from './mirrorProtocol-
|
|
1
|
+
import { i as isClaudeSessionId, h as extractCompleteLines, j as decideBackfill, k as parseTerminalHookPayload, m as decideMirrorBinding, M as MIRROR_BACKFILL_LINES_DEFAULT, n as mirrorLineKey, o as mirrorLocalId, q as initializeOwnedWorktree, f as summarizeSpawnSessionForLog, t as startAgentVersionChecks, W as WORKTREE_CAPABILITY_VERSION, u as currentWorktreeService } from './mirrorProtocol-DFQLXDBI.mjs';
|
|
2
2
|
import { F as FS_MKDIR_CAPABILITY_VERSION } from './fsMkdir-DumgLTzR.mjs';
|
|
3
|
-
import { P as PI_ADAPTER_INSTALL_HINT, s as sanitizeSpawnModel } from './piRunnerArgs-
|
|
3
|
+
import { P as PI_ADAPTER_INSTALL_HINT, s as sanitizeSpawnModel } from './piRunnerArgs-Bdj0sjAT.mjs';
|
|
4
4
|
import fs from 'fs/promises';
|
|
5
5
|
import os from 'os';
|
|
6
6
|
import * as tmp from 'tmp';
|
|
7
7
|
import axios from 'axios';
|
|
8
8
|
import { readFileSync, openSync, fsyncSync, closeSync, renameSync, existsSync, readdirSync, statSync, unlinkSync, readSync, writeSync, ftruncateSync, utimesSync, realpathSync, promises, constants as constants$1, writeFileSync, mkdirSync, accessSync, rmdirSync } from 'node:fs';
|
|
9
9
|
import { join, isAbsolute, resolve, dirname, sep, basename, relative } from 'node:path';
|
|
10
|
-
import { f as ensurePrivateDirectorySync, w as writePrivateFileSync, c as configuration } from './configuration-
|
|
11
|
-
import { T as TurnActivityTracker, A as ApiClient } from './api-
|
|
12
|
-
import { S as SPAWN_AGENTS, i as isSpawnAgent, s as sanitizeSpawnPermissionMode, r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta, j as joinProject } from './spawnAgents-
|
|
13
|
-
import { l as logger } from './logger-
|
|
14
|
-
import { p as pruneStaleCompileCaches } from './index-
|
|
15
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
10
|
+
import { f as ensurePrivateDirectorySync, w as writePrivateFileSync, c as configuration } from './configuration-4pG95tsq.mjs';
|
|
11
|
+
import { T as TurnActivityTracker, A as ApiClient } from './api-DCUiAds-.mjs';
|
|
12
|
+
import { S as SPAWN_AGENTS, i as isSpawnAgent, s as sanitizeSpawnPermissionMode, r as resolveSpawnPermissionMode, a as resolveFirstMessageMeta, j as joinProject } from './spawnAgents-XObVj6zN.mjs';
|
|
13
|
+
import { l as logger } from './logger-BLMi8oJK.mjs';
|
|
14
|
+
import { p as pruneStaleCompileCaches } from './index-Sdvy1Lsf.mjs';
|
|
15
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-8jKFCZOX.mjs';
|
|
16
16
|
import { spawn, execSync } from 'child_process';
|
|
17
|
-
import { p as packageJson } from './package-
|
|
18
|
-
import { a as globalPrefixForPackage, N as NPM_SAFE_ARG, g as getEnvironmentInfo } from './doctor-
|
|
19
|
-
import { s as spawnHappyCLI } from './spawnHappyCLI-
|
|
20
|
-
import { c as readPersistedSessions, r as readSettings, l as latchKeepAwake, s as reportSignature, t as decideDaemonHibernation, v as nextCheckDelay, x as persistSession, d as readDaemonState, y as acquireDaemonLock, a as resolveCheckMs, z as resolveIdleMs, A as deletePersistedSessions, B as writeDaemonState, C as writeSettings, D as settingIdleMs, u as updateSettings, E as rewriteCredentialsForRelay, g as readCredentials, F as releaseDaemonLock } from './persistence-
|
|
21
|
-
import { i as isDaemonRunningCurrentlyInstalledHappyVersion, s as stopDaemon, w as cleanupDaemonState } from './controlClient-
|
|
22
|
-
import { e as sendUserMessage, f as readSessionMetadata, r as readSessionTranscript, l as listAccountSessions, a as listSessions, M as MAX_READ_LIMIT, s as sessionWebUrl, n as lineageOf, g as waitForSessionKey, d as archiveSession, h as analyzeLatestTurn, i as readSessionLog, j as TURN_WINDOW, p as userPromptText } from './sessionOps-
|
|
23
|
-
import {
|
|
17
|
+
import { p as packageJson } from './package-DbGqY8Ej.mjs';
|
|
18
|
+
import { a as globalPrefixForPackage, N as NPM_SAFE_ARG, g as getEnvironmentInfo } from './doctor-Dy7z3qvy.mjs';
|
|
19
|
+
import { s as spawnHappyCLI } from './spawnHappyCLI-Cc9kKpcq.mjs';
|
|
20
|
+
import { c as readPersistedSessions, r as readSettings, l as latchKeepAwake, s as reportSignature, t as decideDaemonHibernation, v as nextCheckDelay, x as persistSession, d as readDaemonState, y as acquireDaemonLock, a as resolveCheckMs, z as resolveIdleMs, A as deletePersistedSessions, B as writeDaemonState, C as writeSettings, D as settingIdleMs, u as updateSettings, E as rewriteCredentialsForRelay, g as readCredentials, F as releaseDaemonLock } from './persistence-DbOKjdUD.mjs';
|
|
21
|
+
import { i as isDaemonRunningCurrentlyInstalledHappyVersion, s as stopDaemon, w as cleanupDaemonState } from './controlClient-bqCKl9Nv.mjs';
|
|
22
|
+
import { e as sendUserMessage, f as readSessionMetadata, r as readSessionTranscript, l as listAccountSessions, a as listSessions, M as MAX_READ_LIMIT, s as sessionWebUrl, n as lineageOf, g as waitForSessionKey, d as archiveSession, h as analyzeLatestTurn, i as readSessionLog, j as TURN_WINDOW, p as userPromptText } from './sessionOps-D-uFSTHk.mjs';
|
|
23
|
+
import { a1 as AgentProfilesStateSchema, am as ServerMigrateNoticeSchema, an as isHarnessInstallId, ao as agentProfileUnavailableReason, ap as MODEL_INTENT_CONFIG, q as AUTOMATION_SUMMARY_MAX_CHARS, aq as AUTOMATION_PRECHECK_OUTPUT_MAX_CHARS, ar as AUTOMATION_PRECHECK_DEFAULT_TIMEOUT_MS, d as AUTOMATION_PRECHECK_MAX_TIMEOUT_MS, as as AUTOMATION_CLAIM_MAX_RUNS, at as AUTOMATION_DAEMON_CAPABILITY_PRECHECK, au as AUTOMATION_DEFAULT_LEASE_MS, i as isAutomationRunTerminal, D as resolveLaunchAgentProfile, av as ISSUE_SENT_FROM, aw as ISSUE_DISPATCH_LOCAL_ID_PREFIX, f as ISSUE_ASSIGNABLE_AGENTS, ax as HARNESS_INSTALL_CAPABILITY_VERSION } from './index-kwsivEs-.mjs';
|
|
24
24
|
import fastify from 'fastify';
|
|
25
25
|
import { z } from 'zod';
|
|
26
26
|
import { validatorCompiler, serializerCompiler } from 'fastify-type-provider-zod';
|
|
@@ -28,68 +28,69 @@ import { d as decodeBase64, s as sameRelay, e as encodeBase64, h as decrypt } fr
|
|
|
28
28
|
import { randomBytes, createHash, timingSafeEqual, randomUUID } from 'node:crypto';
|
|
29
29
|
import { c as checkPreviewPath } from './previewPath-CXN4Vag0.mjs';
|
|
30
30
|
import { a as BACKGROUND_TASKS_MAX, d as BACKGROUND_TASK_DESCRIPTION_MAX, e as BackgroundTaskTracker } from './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
31
|
-
import { b as sanitizeRateLimitReport } from './rateLimitWindows-
|
|
32
|
-
import { f as formatEditConflictNotice, b as SESSION_PEER_SENT_FROM, s as sendPeerMessage, l as listPeerSessions, C as CLI_PEER_SENDER_ID } from './peerTools-
|
|
31
|
+
import { b as sanitizeRateLimitReport } from './rateLimitWindows-DZVrafmm.mjs';
|
|
32
|
+
import { f as formatEditConflictNotice, b as SESSION_PEER_SENT_FROM, s as sendPeerMessage, l as listPeerSessions, C as CLI_PEER_SENDER_ID } from './peerTools-4GYKxr8J.mjs';
|
|
33
33
|
import os$1, { hostname, homedir, tmpdir } from 'node:os';
|
|
34
|
-
import { c as RemoteCallBudget, e as REMOTE_WRITE_CALLS_PER_MINUTE, d as deliverToSession, g as guardRemoteSessionOpsRequest, h as remoteError, i as REMOTE_OP_DEADLINE_MS, j as formatRemoteAuditLine, k as REMOTE_SEND_COMMIT_DEADLINE_MS, m as REMOTE_RESUME_WAIT_MS, n as capRemoteTranscript, o as capRemoteText, p as REMOTE_ANSWER_MAX_BYTES, q as REMOTE_TITLE_MAX_BYTES } from './remoteSessionClient-
|
|
35
|
-
import { assistantHome, bootstrapAssistantHome } from './bootstrap-
|
|
36
|
-
import { refreshAgentHomes, locateClaudeConversation, agentHomeSpawnEnv } from './index-
|
|
34
|
+
import { c as RemoteCallBudget, e as REMOTE_WRITE_CALLS_PER_MINUTE, d as deliverToSession, g as guardRemoteSessionOpsRequest, h as remoteError, i as REMOTE_OP_DEADLINE_MS, j as formatRemoteAuditLine, k as REMOTE_SEND_COMMIT_DEADLINE_MS, m as REMOTE_RESUME_WAIT_MS, n as capRemoteTranscript, o as capRemoteText, p as REMOTE_ANSWER_MAX_BYTES, q as REMOTE_TITLE_MAX_BYTES } from './remoteSessionClient-BFd_D9ka.mjs';
|
|
35
|
+
import { assistantHome, bootstrapAssistantHome } from './bootstrap-BkLFgEGF.mjs';
|
|
36
|
+
import { refreshAgentHomes, locateClaudeConversation, agentHomeSpawnEnv } from './index-XP-qcJQ3.mjs';
|
|
37
37
|
import require$$0, { existsSync as existsSync$1, statSync as statSync$1, mkdtempSync, rmSync } from 'fs';
|
|
38
38
|
import require$$1, { join as join$1 } from 'path';
|
|
39
39
|
import { spawn as spawn$1, execFile, spawnSync } from 'node:child_process';
|
|
40
40
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
41
41
|
import { d as daemonEndpointsMatch, r as resolveClaudeCredentialReadiness } from './doctorReadiness-C208SMN9.mjs';
|
|
42
|
-
import { o as ownerRetryPending, c as consumeOwnerRetry, s as spawnGate, a as afterStartupFailure, b as startupFailureMessage, T as TEAM_SPAWN_MAX_ATTEMPTS, d as TEAM_CLEANUP_RETRY_MS, g as getInitialMachineMetadata, e as getStartupCliAvailability, f as TEAM_RETRY_CAPABILITY_VERSION, w as withRunningCliFacts } from './machineMetadata-
|
|
42
|
+
import { o as ownerRetryPending, c as consumeOwnerRetry, s as spawnGate, a as afterStartupFailure, b as startupFailureMessage, T as TEAM_SPAWN_MAX_ATTEMPTS, d as TEAM_CLEANUP_RETRY_MS, g as getInitialMachineMetadata, e as getStartupCliAvailability, f as TEAM_RETRY_CAPABILITY_VERSION, w as withRunningCliFacts } from './machineMetadata-D8OWVD4l.mjs';
|
|
43
43
|
import { M as ModelConfigError, B as BackupStore, r as readConfigFile, s as sha256, a as atomicWriteFile } from './fileStore-5qpetZS0.mjs';
|
|
44
44
|
import { c as collectSecretValues, a as parseJsonObject, b as childObject, s as setOrDelete, d as changedPaths, e as stringifyLike, f as fail, n as normalizeModelList, g as normalizeModelId, h as normalizeSecret, i as normalizeBaseUrl, u as uniq, j as baseUrlWarnings, m as maskSecret, k as getPath$1, l as normalizeProviderId, o as piAdapter, r as redactText } from './pi-CqyoZMjI.mjs';
|
|
45
|
-
import { p as parse } from './codexAccount-
|
|
45
|
+
import { p as parse } from './codexAccount-BAezf1fY.mjs';
|
|
46
46
|
import require$$3 from 'crypto';
|
|
47
47
|
import { c as commandOnPath } from './detectCLI-CSGMlV51.mjs';
|
|
48
|
-
import { buildResumeLaunch } from './handleResumeCommand-
|
|
48
|
+
import { buildResumeLaunch } from './handleResumeCommand-Dz4Aw_aZ.mjs';
|
|
49
49
|
import { n as normalizeWebPanels } from './webPanels-B2_C2-3g.mjs';
|
|
50
50
|
import { access, symlink, readFile, rm, unlink, readlink, lstat, constants, rename, mkdir, copyFile, readdir, stat, open } from 'node:fs/promises';
|
|
51
51
|
import { p as parseExactVersion, c as compareExactVersions, f as fetchCliUpdateState, r as resolveCliUpdateCheckInterval, D as DEFAULT_CLI_UPDATE_CHECK_INTERVAL_MS } from './cliUpdate-Y34VGe9Y.mjs';
|
|
52
|
-
import { P as ProjectsUnsupportedError, c as createProjectsClient } from './client-
|
|
53
|
-
import { d as wrapperReportsIdle, f as decideAutoRestart, s as statusFromVerdict, g as autoRestartNextCheck, h as wrapperStaleness, r as recordAttempt, i as AUTO_RESTART_MAX_ATTEMPTS, j as AUTO_RESTART_MIN_GAP_MS, p as processIdentityFields, k as readSessionLock, l as AUTO_RESTARTED_ENV, n as encodeAutoRestarted, o as pendingUpgradeVersion, q as resolveQuietMs, u as AUTO_RESTART_RECHECK_CAP_MS } from './sessionLock-
|
|
54
|
-
import { c as createAutomationsClient, i as isAutomationsUnavailable, d as AutomationsRequestError } from './client-
|
|
52
|
+
import { P as ProjectsUnsupportedError, c as createProjectsClient } from './client-BXwIqRha.mjs';
|
|
53
|
+
import { d as wrapperReportsIdle, f as decideAutoRestart, s as statusFromVerdict, g as autoRestartNextCheck, h as wrapperStaleness, r as recordAttempt, i as AUTO_RESTART_MAX_ATTEMPTS, j as AUTO_RESTART_MIN_GAP_MS, p as processIdentityFields, k as readSessionLock, l as AUTO_RESTARTED_ENV, n as encodeAutoRestarted, o as pendingUpgradeVersion, q as resolveQuietMs, u as AUTO_RESTART_RECHECK_CAP_MS } from './sessionLock-CphKQyav.mjs';
|
|
54
|
+
import { c as createAutomationsClient, i as isAutomationsUnavailable, d as AutomationsRequestError } from './client-Blpuk2Hr.mjs';
|
|
55
55
|
import { w as withKeychainOffPath, a as keychainIdentityFor, i as interpretSecurityRead, s as securityReadArgs, b as securityDeleteArgs, c as keychainOffShimDir, d as interpretCredentialsFile, C as CREDENTIALS_REJECTED_DETAIL, e as buildClaudeAuthState, f as claudeAuthStateChanged, r as resolveSdkClaudeBinary, g as classifyAuthStatus, h as diagnoseStores, p as parseLaunchctlPid, H as HAPPY_DAEMON_LAUNCHD_LABEL, j as classifyLineage, l as probeLaunchdJob, m as detectDaemonSupervisor, n as daemonLineage, o as probeSystemdKillMode, q as wrappersSurviveHandover, t as handoverWaitsForSessions } from './daemonSupervisor-BxohggqN.mjs';
|
|
56
|
-
import { A as AccountService } from './accountService-
|
|
57
|
-
import { spawnSetupTokenPty, watchAccountFiles } from './daemonAccounts-
|
|
56
|
+
import { A as AccountService } from './accountService-ELazcp3V.mjs';
|
|
57
|
+
import { spawnSetupTokenPty, watchAccountFiles } from './daemonAccounts-B8xnkprW.mjs';
|
|
58
58
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
59
59
|
import { b as extractClaudeEditPaths } from './editPaths-BVfS_FFL.mjs';
|
|
60
|
-
import { s as startFileWatcher } from './startFileWatcher-
|
|
61
|
-
import { I as InvalidateSync } from './sync-
|
|
60
|
+
import { s as startFileWatcher } from './startFileWatcher-t3K1y9kY.mjs';
|
|
61
|
+
import { I as InvalidateSync } from './sync-s1pUqWGm.mjs';
|
|
62
62
|
import { R as RawJSONLinesSchema } from './types-CkqAACXx.mjs';
|
|
63
63
|
import { t as tmuxArgs, a as scrubTmuxClientEnv, s as shellescape } from './tmuxSocket-BmZyixRM.mjs';
|
|
64
64
|
import { i as isProcessAlive, t as terminateProcessTree } from './processTermination-ChJG5SLW.mjs';
|
|
65
65
|
import { findAllHappyProcesses } from './doctor-GN5mPOn5.mjs';
|
|
66
66
|
import { T as TEAM_SKILL, a as TEAM_LEAD_PLAYBOOK, b as TEAM_MEMBER_RULES } from './resources-CLP_MpK4.mjs';
|
|
67
67
|
import { promisify } from 'node:util';
|
|
68
|
-
import { b as clipText, r as renderAction, c as clipAutomationReport, e as renderTemplate } from './template-
|
|
68
|
+
import { b as clipText, r as renderAction, c as clipAutomationReport, e as renderTemplate } from './template-oBrR0saD.mjs';
|
|
69
|
+
import { I as IssuesUnsupportedError, a as IssueRequestError, c as createIssuesClient } from './client-BgxQ9aej.mjs';
|
|
69
70
|
import { d as describeAgentHome } from './loginShellEnv-Dw8M7tkI.mjs';
|
|
70
|
-
import { S as SPAWN_ACCOUNT_ENV } from './store-
|
|
71
|
-
import './acpSessionResume-
|
|
72
|
-
import './pushNotifications-
|
|
71
|
+
import { S as SPAWN_ACCOUNT_ENV } from './store-CqNAE-0v.mjs';
|
|
72
|
+
import './acpSessionResume-De_sTG30.mjs';
|
|
73
|
+
import './pushNotifications-CrCTpDiN.mjs';
|
|
73
74
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
74
|
-
import './reconnectGate-
|
|
75
|
+
import './reconnectGate-COxAZTv8.mjs';
|
|
75
76
|
import 'node:events';
|
|
76
77
|
import 'socket.io-client';
|
|
77
78
|
import './limits-DIo7rEBR.mjs';
|
|
78
|
-
import './time-
|
|
79
|
-
import './registerCommonHandlers-
|
|
79
|
+
import './time-qd46L189.mjs';
|
|
80
|
+
import './registerCommonHandlers-Cfl_dEWs.mjs';
|
|
80
81
|
import 'util';
|
|
81
82
|
import 'cross-spawn';
|
|
82
83
|
import '@paralleldrive/cuid2';
|
|
83
84
|
import 'chalk';
|
|
84
85
|
import 'node:module';
|
|
85
86
|
import 'tweetnacl';
|
|
86
|
-
import './browser-
|
|
87
|
+
import './browser-BAlw0rns.mjs';
|
|
87
88
|
import 'open';
|
|
88
89
|
import './specialCommands-MXUN0wfI.mjs';
|
|
89
90
|
import './ids-DU6sLx4C.mjs';
|
|
90
91
|
import 'url';
|
|
91
|
-
import './localHappyAgentAuth-
|
|
92
|
-
import './claudeAccountEnv-
|
|
92
|
+
import './localHappyAgentAuth-DeDQjw24.mjs';
|
|
93
|
+
import './claudeAccountEnv-CI8RlIB9.mjs';
|
|
93
94
|
import 'node:readline';
|
|
94
95
|
import 'node-pty';
|
|
95
96
|
import './processTreeSnapshot-fuwxC0fr.mjs';
|
|
@@ -7007,6 +7008,337 @@ ${action.prompt}`, { localId: `automation-${run.id}`, ...meta });
|
|
|
7007
7008
|
};
|
|
7008
7009
|
}
|
|
7009
7010
|
|
|
7011
|
+
const ID = /^[A-Za-z0-9_-]{1,128}$/;
|
|
7012
|
+
const ISSUE_RECEIPT_TTL_MS = 7 * 24 * 36e5;
|
|
7013
|
+
function dir(home) {
|
|
7014
|
+
return join(home, "issues", "receipts");
|
|
7015
|
+
}
|
|
7016
|
+
function readIssueReceipt(home, dispatchId) {
|
|
7017
|
+
if (!ID.test(dispatchId)) return null;
|
|
7018
|
+
try {
|
|
7019
|
+
return JSON.parse(readFileSync(join(dir(home), `${dispatchId}.json`), "utf8"));
|
|
7020
|
+
} catch {
|
|
7021
|
+
return null;
|
|
7022
|
+
}
|
|
7023
|
+
}
|
|
7024
|
+
function writeIssueReceipt(home, receipt) {
|
|
7025
|
+
if (!ID.test(receipt.dispatchId)) throw new Error("Invalid dispatch id");
|
|
7026
|
+
ensurePrivateDirectorySync(dir(home));
|
|
7027
|
+
writePrivateFileSync(join(dir(home), `${receipt.dispatchId}.json`), JSON.stringify({ ...receipt, updatedAt: Date.now() }));
|
|
7028
|
+
}
|
|
7029
|
+
function listIssueReceipts(home, now = Date.now()) {
|
|
7030
|
+
let files;
|
|
7031
|
+
try {
|
|
7032
|
+
files = readdirSync(dir(home));
|
|
7033
|
+
} catch {
|
|
7034
|
+
return [];
|
|
7035
|
+
}
|
|
7036
|
+
const out = [];
|
|
7037
|
+
for (const file of files) {
|
|
7038
|
+
if (!file.endsWith(".json")) continue;
|
|
7039
|
+
const path = join(dir(home), file);
|
|
7040
|
+
try {
|
|
7041
|
+
const receipt = JSON.parse(readFileSync(path, "utf8"));
|
|
7042
|
+
const at = typeof receipt.updatedAt === "number" ? receipt.updatedAt : statSync(path).mtimeMs;
|
|
7043
|
+
if (now - at > ISSUE_RECEIPT_TTL_MS) {
|
|
7044
|
+
unlinkSync(path);
|
|
7045
|
+
continue;
|
|
7046
|
+
}
|
|
7047
|
+
out.push(receipt);
|
|
7048
|
+
} catch {
|
|
7049
|
+
}
|
|
7050
|
+
}
|
|
7051
|
+
return out;
|
|
7052
|
+
}
|
|
7053
|
+
|
|
7054
|
+
const ISSUE_POLL_MS = 5e3;
|
|
7055
|
+
const ISSUE_SPAWNED_BY = "issue";
|
|
7056
|
+
const FIRST_MESSAGE_KEY_WAIT_MS = 1e4;
|
|
7057
|
+
function issueKeyFromPrompt(prompt) {
|
|
7058
|
+
return /^You are assigned issue ([A-Z]+-\d{1,9}):/.exec(prompt)?.[1] ?? null;
|
|
7059
|
+
}
|
|
7060
|
+
function issueSpawnAccount(spawn) {
|
|
7061
|
+
if (spawn.agentProfile === void 0) return void 0;
|
|
7062
|
+
return spawn.agentProfile === null ? null : spawn.agentProfile.id;
|
|
7063
|
+
}
|
|
7064
|
+
function issueAccountRefusal(resolve, agent, requested) {
|
|
7065
|
+
if (!resolve) return null;
|
|
7066
|
+
if (agent !== "claude" && agent !== "codex") return typeof requested === "string" ? `Account unavailable (agent-mismatch): accounts are not supported for ${agent} yet` : null;
|
|
7067
|
+
try {
|
|
7068
|
+
resolve(agent, requested);
|
|
7069
|
+
return null;
|
|
7070
|
+
} catch (error) {
|
|
7071
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
7072
|
+
return accountUnavailableError(message, "issue");
|
|
7073
|
+
}
|
|
7074
|
+
}
|
|
7075
|
+
function issueExitEvent(exit) {
|
|
7076
|
+
if (!exit) return "exited";
|
|
7077
|
+
if (exit.signal) return ["SIGTERM", "SIGINT", "SIGHUP"].includes(exit.signal) ? "exited" : "crashed";
|
|
7078
|
+
return exit.code === 0 || exit.code === null || exit.code === 130 || exit.code === 143 ? "exited" : "crashed";
|
|
7079
|
+
}
|
|
7080
|
+
function persistedRunSessions(runId) {
|
|
7081
|
+
return Object.entries(readPersistedSessions()).filter(([, entry]) => entry.metadata?.issue?.runId === runId).map(([sessionId]) => sessionId);
|
|
7082
|
+
}
|
|
7083
|
+
function httpCode(error) {
|
|
7084
|
+
return error instanceof IssueRequestError ? error.code : null;
|
|
7085
|
+
}
|
|
7086
|
+
function createIssueWorker(deps) {
|
|
7087
|
+
const home = deps.home ?? configuration.happyHomeDir;
|
|
7088
|
+
const client = deps.client;
|
|
7089
|
+
const send = deps.send ?? (async (sessionId, text, options) => {
|
|
7090
|
+
const key = await waitForSessionKey(sessionId, FIRST_MESSAGE_KEY_WAIT_MS);
|
|
7091
|
+
await sendUserMessage(sessionId, key, text, "issue", options);
|
|
7092
|
+
});
|
|
7093
|
+
const capabilities = deps.capabilities ?? ((sessionId) => readPersistedSessions()[sessionId]?.metadata?.capabilities ?? null);
|
|
7094
|
+
let running = false;
|
|
7095
|
+
let closed = false;
|
|
7096
|
+
let retryAt = 0;
|
|
7097
|
+
const runBySession = /* @__PURE__ */ new Map();
|
|
7098
|
+
const lastEvent = /* @__PURE__ */ new Map();
|
|
7099
|
+
const events = [];
|
|
7100
|
+
for (const r of listIssueReceipts(home)) {
|
|
7101
|
+
if (r.kind === "spawn" && r.sessionId && !r.ended && (r.phase === "delivered" || r.phase === "completed")) runBySession.set(r.sessionId, r.runId);
|
|
7102
|
+
}
|
|
7103
|
+
const save = (receipt) => {
|
|
7104
|
+
writeIssueReceipt(home, receipt);
|
|
7105
|
+
return receipt;
|
|
7106
|
+
};
|
|
7107
|
+
async function fail(receipt, error, unknown = false) {
|
|
7108
|
+
await client.fail(receipt.dispatchId, { machineId: deps.machineId, claimId: receipt.claimId, error: error.slice(0, 4e3), ...unknown ? { unknown: true } : {} });
|
|
7109
|
+
save({ ...receipt, phase: unknown ? receipt.phase : "failed" });
|
|
7110
|
+
deps.log(`Issue dispatch ${receipt.dispatchId} ${unknown ? "outcome unknown" : "failed"}`);
|
|
7111
|
+
}
|
|
7112
|
+
async function complete(receipt) {
|
|
7113
|
+
let lastError;
|
|
7114
|
+
for (let attempt = 0; attempt < 3; attempt++) {
|
|
7115
|
+
try {
|
|
7116
|
+
await client.complete(receipt.dispatchId, { machineId: deps.machineId, claimId: receipt.claimId, sessionId: receipt.sessionId });
|
|
7117
|
+
save({ ...receipt, phase: "completed" });
|
|
7118
|
+
return;
|
|
7119
|
+
} catch (error) {
|
|
7120
|
+
lastError = error;
|
|
7121
|
+
if (httpCode(error) === "issue_dispatch_claim_mismatch" || error instanceof IssuesUnsupportedError) break;
|
|
7122
|
+
await new Promise((resolve) => setTimeout(resolve, 500 * (attempt + 1)));
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
throw lastError;
|
|
7126
|
+
}
|
|
7127
|
+
async function runSpawn(view, receipt) {
|
|
7128
|
+
const spawn = view.spawn;
|
|
7129
|
+
if (receipt.phase === "failed") {
|
|
7130
|
+
await fail(receipt, "This dispatch already failed on this machine");
|
|
7131
|
+
return;
|
|
7132
|
+
}
|
|
7133
|
+
if (!spawn) {
|
|
7134
|
+
await fail(receipt, "Dispatch has no spawn payload");
|
|
7135
|
+
return;
|
|
7136
|
+
}
|
|
7137
|
+
const agent = spawn.agent;
|
|
7138
|
+
if (receipt.phase === "claimed") {
|
|
7139
|
+
if (!ISSUE_ASSIGNABLE_AGENTS.includes(agent)) {
|
|
7140
|
+
await fail(receipt, `Agent "${agent}" cannot run issues on this machine`);
|
|
7141
|
+
return;
|
|
7142
|
+
}
|
|
7143
|
+
if (!isAbsolute(spawn.directory)) {
|
|
7144
|
+
await fail(receipt, `Directory must be absolute: ${spawn.directory}`);
|
|
7145
|
+
return;
|
|
7146
|
+
}
|
|
7147
|
+
const account = issueSpawnAccount(spawn);
|
|
7148
|
+
const refusal = issueAccountRefusal(deps.resolveAccount, agent, account);
|
|
7149
|
+
if (refusal) {
|
|
7150
|
+
await fail(receipt, refusal);
|
|
7151
|
+
return;
|
|
7152
|
+
}
|
|
7153
|
+
const mode = sanitizeSpawnPermissionMode(spawn.permissionMode ?? void 0);
|
|
7154
|
+
const permissionMode = resolveSpawnPermissionMode(agent, mode ?? void 0);
|
|
7155
|
+
const key = issueKeyFromPrompt(spawn.prompt);
|
|
7156
|
+
receipt = save({ ...receipt, phase: "spawning" });
|
|
7157
|
+
const spawned = await deps.spawn({
|
|
7158
|
+
directory: spawn.directory,
|
|
7159
|
+
agent,
|
|
7160
|
+
permissionMode,
|
|
7161
|
+
spawnedBy: ISSUE_SPAWNED_BY,
|
|
7162
|
+
environmentVariables: { VH_ISSUE_ID: view.issueId, VH_ISSUE_RUN_ID: view.runId, ...key ? { VH_ISSUE_KEY: key } : {} },
|
|
7163
|
+
...account !== void 0 ? { agentProfileId: account } : {}
|
|
7164
|
+
});
|
|
7165
|
+
if (spawned.type === "error" && agentProfileUnavailableReason(spawned.errorMessage)) {
|
|
7166
|
+
await fail({ ...receipt, phase: "claimed" }, accountUnavailableError(spawned.errorMessage, "issue") ?? spawned.errorMessage);
|
|
7167
|
+
return;
|
|
7168
|
+
}
|
|
7169
|
+
if (spawned.type === "error" && spawned.startupExit?.exited) {
|
|
7170
|
+
await fail(receipt, `Session failed to start: ${spawned.errorMessage}`);
|
|
7171
|
+
return;
|
|
7172
|
+
}
|
|
7173
|
+
if (spawned.type === "requestToApproveDirectoryCreation") {
|
|
7174
|
+
await fail(receipt, `Directory does not exist on this machine: ${spawn.directory}`);
|
|
7175
|
+
return;
|
|
7176
|
+
}
|
|
7177
|
+
if (spawned.type !== "success") {
|
|
7178
|
+
const matches = persistedRunSessions(view.runId);
|
|
7179
|
+
if (matches.length !== 1) {
|
|
7180
|
+
await fail(receipt, `Spawn outcome unknown: ${spawned.errorMessage}`, true);
|
|
7181
|
+
return;
|
|
7182
|
+
}
|
|
7183
|
+
receipt = save({ ...receipt, sessionId: matches[0], phase: "spawned" });
|
|
7184
|
+
} else {
|
|
7185
|
+
receipt = save({ ...receipt, sessionId: spawned.sessionId, phase: "spawned" });
|
|
7186
|
+
}
|
|
7187
|
+
runBySession.set(receipt.sessionId, view.runId);
|
|
7188
|
+
if (spawn.projectId && deps.joinProject) await deps.joinProject(receipt.sessionId, spawn.projectId).catch(() => void 0);
|
|
7189
|
+
}
|
|
7190
|
+
if (receipt.phase === "spawning") {
|
|
7191
|
+
const matches = persistedRunSessions(view.runId);
|
|
7192
|
+
if (matches.length !== 1) {
|
|
7193
|
+
await fail(receipt, "Spawn outcome unknown; verify the old process before retrying", true);
|
|
7194
|
+
return;
|
|
7195
|
+
}
|
|
7196
|
+
receipt = save({ ...receipt, sessionId: matches[0], phase: "spawned" });
|
|
7197
|
+
runBySession.set(receipt.sessionId, view.runId);
|
|
7198
|
+
}
|
|
7199
|
+
if (receipt.phase === "spawned") {
|
|
7200
|
+
const sessionId = receipt.sessionId;
|
|
7201
|
+
const mode = sanitizeSpawnPermissionMode(spawn.permissionMode ?? void 0);
|
|
7202
|
+
const permissionMode = resolveSpawnPermissionMode(agent, mode ?? void 0);
|
|
7203
|
+
const meta = resolveFirstMessageMeta({ agent, permissionMode, explicitModel: spawn.model ?? void 0, capabilities: capabilities(sessionId) });
|
|
7204
|
+
try {
|
|
7205
|
+
await send(sessionId, spawn.prompt, { localId: `${ISSUE_DISPATCH_LOCAL_ID_PREFIX}${view.id}`, sentFrom: ISSUE_SENT_FROM, ...meta });
|
|
7206
|
+
} catch (error) {
|
|
7207
|
+
await fail(receipt, `First message failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
7208
|
+
return;
|
|
7209
|
+
}
|
|
7210
|
+
receipt = save({ ...receipt, phase: "delivered" });
|
|
7211
|
+
}
|
|
7212
|
+
if (receipt.phase === "delivered" || receipt.phase === "completed") {
|
|
7213
|
+
await complete(receipt);
|
|
7214
|
+
lastEvent.set(receipt.sessionId, "running");
|
|
7215
|
+
}
|
|
7216
|
+
}
|
|
7217
|
+
async function runMessage(view, receipt) {
|
|
7218
|
+
const message = view.message;
|
|
7219
|
+
if (receipt.phase === "failed") {
|
|
7220
|
+
await fail(receipt, "Session is not running on this machine");
|
|
7221
|
+
return;
|
|
7222
|
+
}
|
|
7223
|
+
if (!message) {
|
|
7224
|
+
await fail(receipt, "Dispatch has no message payload");
|
|
7225
|
+
return;
|
|
7226
|
+
}
|
|
7227
|
+
if (receipt.phase === "claimed") {
|
|
7228
|
+
if (!deps.live(message.sessionId)) {
|
|
7229
|
+
await fail(receipt, "Session is not running on this machine");
|
|
7230
|
+
return;
|
|
7231
|
+
}
|
|
7232
|
+
try {
|
|
7233
|
+
await send(message.sessionId, message.text, { localId: `${ISSUE_DISPATCH_LOCAL_ID_PREFIX}${view.id}`, sentFrom: ISSUE_SENT_FROM });
|
|
7234
|
+
} catch (error) {
|
|
7235
|
+
await fail(receipt, `Message delivery failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
7236
|
+
return;
|
|
7237
|
+
}
|
|
7238
|
+
receipt = save({ ...receipt, sessionId: message.sessionId, phase: "delivered" });
|
|
7239
|
+
}
|
|
7240
|
+
await complete({ ...receipt, sessionId: receipt.sessionId ?? message.sessionId });
|
|
7241
|
+
}
|
|
7242
|
+
async function execute(polled) {
|
|
7243
|
+
let claimed;
|
|
7244
|
+
try {
|
|
7245
|
+
claimed = (await client.claim(polled.id, deps.machineId)).dispatch;
|
|
7246
|
+
} catch (error) {
|
|
7247
|
+
const code = httpCode(error);
|
|
7248
|
+
if (code === "issue_dispatch_claim_mismatch" || code === "issue_run_not_current" || code === "issue_dispatch_not_found") return;
|
|
7249
|
+
throw error;
|
|
7250
|
+
}
|
|
7251
|
+
if (!claimed.claimId) throw new Error("Dispatch claim did not return a claim id");
|
|
7252
|
+
const prior = readIssueReceipt(home, claimed.id);
|
|
7253
|
+
const receipt = save(prior ? { ...prior, claimId: claimed.claimId } : { dispatchId: claimed.id, kind: claimed.kind === "message" ? "message" : "spawn", runId: claimed.runId, issueId: claimed.issueId, claimId: claimed.claimId, phase: "claimed", updatedAt: Date.now() });
|
|
7254
|
+
if (claimed.kind === "message") await runMessage(claimed, receipt);
|
|
7255
|
+
else if (claimed.kind === "spawn") await runSpawn(claimed, receipt);
|
|
7256
|
+
else await fail(receipt, `Unknown dispatch kind "${claimed.kind}"`);
|
|
7257
|
+
}
|
|
7258
|
+
let flushing = false;
|
|
7259
|
+
async function flushEvents() {
|
|
7260
|
+
if (flushing) return;
|
|
7261
|
+
flushing = true;
|
|
7262
|
+
try {
|
|
7263
|
+
await drainEvents();
|
|
7264
|
+
} finally {
|
|
7265
|
+
flushing = false;
|
|
7266
|
+
}
|
|
7267
|
+
}
|
|
7268
|
+
async function drainEvents() {
|
|
7269
|
+
while (events.length && !closed) {
|
|
7270
|
+
const next = events[0];
|
|
7271
|
+
try {
|
|
7272
|
+
await client.sessionEvent(next.runId, { machineId: deps.machineId, sessionId: next.sessionId, event: next.event });
|
|
7273
|
+
} catch (error) {
|
|
7274
|
+
const code = httpCode(error);
|
|
7275
|
+
if (!(error instanceof IssuesUnsupportedError) && code !== "issue_run_not_found" && !(error instanceof IssueRequestError && error.status < 500 && error.status !== 429)) return;
|
|
7276
|
+
}
|
|
7277
|
+
events.shift();
|
|
7278
|
+
if (next.event === "exited" || next.event === "crashed") {
|
|
7279
|
+
runBySession.delete(next.sessionId);
|
|
7280
|
+
lastEvent.delete(next.sessionId);
|
|
7281
|
+
for (const r of listIssueReceipts(home)) if (r.sessionId === next.sessionId && r.kind === "spawn") save({ ...r, ended: true });
|
|
7282
|
+
}
|
|
7283
|
+
}
|
|
7284
|
+
}
|
|
7285
|
+
async function tick() {
|
|
7286
|
+
if (running || closed || Date.now() < retryAt) return;
|
|
7287
|
+
running = true;
|
|
7288
|
+
try {
|
|
7289
|
+
let dispatches;
|
|
7290
|
+
try {
|
|
7291
|
+
dispatches = (await client.poll(deps.machineId)).dispatches ?? [];
|
|
7292
|
+
} catch (error) {
|
|
7293
|
+
if (!(error instanceof IssuesUnsupportedError)) {
|
|
7294
|
+
retryAt = Date.now() + 3e4;
|
|
7295
|
+
deps.log(`Issue dispatch poll unavailable${error instanceof IssueRequestError ? ` (${error.status}${error.code ? ` ${error.code}` : ""})` : ""}`);
|
|
7296
|
+
}
|
|
7297
|
+
return;
|
|
7298
|
+
}
|
|
7299
|
+
for (const dispatch of dispatches) {
|
|
7300
|
+
if (closed) break;
|
|
7301
|
+
try {
|
|
7302
|
+
await execute(dispatch);
|
|
7303
|
+
} catch (error) {
|
|
7304
|
+
deps.log(`Issue dispatch ${dispatch.id} remains pending${error instanceof IssueRequestError && error.code ? ` (${error.code})` : ""}`);
|
|
7305
|
+
}
|
|
7306
|
+
}
|
|
7307
|
+
await flushEvents();
|
|
7308
|
+
} finally {
|
|
7309
|
+
running = false;
|
|
7310
|
+
}
|
|
7311
|
+
}
|
|
7312
|
+
let timer;
|
|
7313
|
+
if (deps.autoStart !== false) {
|
|
7314
|
+
timer = setInterval(() => {
|
|
7315
|
+
void tick();
|
|
7316
|
+
}, ISSUE_POLL_MS);
|
|
7317
|
+
timer.unref();
|
|
7318
|
+
void tick();
|
|
7319
|
+
}
|
|
7320
|
+
return {
|
|
7321
|
+
tick,
|
|
7322
|
+
hasSession: (sessionId) => runBySession.has(sessionId),
|
|
7323
|
+
/** Daemon hooks (turn start/end, wrapper exit) → run session event; deduplicated per session. */
|
|
7324
|
+
report(sessionId, event) {
|
|
7325
|
+
const runId = runBySession.get(sessionId);
|
|
7326
|
+
if (!runId || closed || lastEvent.get(sessionId) === event) return;
|
|
7327
|
+
lastEvent.set(sessionId, event);
|
|
7328
|
+
events.push({ sessionId, runId, event });
|
|
7329
|
+
if (events.length > 500) events.splice(0, events.length - 500);
|
|
7330
|
+
void flushEvents();
|
|
7331
|
+
},
|
|
7332
|
+
get busy() {
|
|
7333
|
+
return running;
|
|
7334
|
+
},
|
|
7335
|
+
stop: () => {
|
|
7336
|
+
closed = true;
|
|
7337
|
+
if (timer) clearInterval(timer);
|
|
7338
|
+
}
|
|
7339
|
+
};
|
|
7340
|
+
}
|
|
7341
|
+
|
|
7010
7342
|
function daemonExitCode(source) {
|
|
7011
7343
|
return source === "exception" ? 1 : 0;
|
|
7012
7344
|
}
|
|
@@ -7162,6 +7494,7 @@ async function startDaemon() {
|
|
|
7162
7494
|
logger.debug("[DAEMON RUN] Auth and machine setup complete");
|
|
7163
7495
|
const pidToTrackedSession = /* @__PURE__ */ new Map();
|
|
7164
7496
|
const turnActivity = new TurnActivityTracker();
|
|
7497
|
+
turnActivity.onEvent((sessionId, event) => issueWorker?.report(sessionId, event === "turn_started" ? "running" : "idle"));
|
|
7165
7498
|
const backgroundTasks = new BackgroundTaskTracker();
|
|
7166
7499
|
const peerCoordinator = createPeerCoordinator({ getChildren: () => Array.from(pidToTrackedSession.values()) });
|
|
7167
7500
|
const hibernationAutomations = createAutomationsClient({ serverUrl: configuration.serverUrl, token: credentials.token, client: "daemon-hibernate" });
|
|
@@ -7197,6 +7530,7 @@ async function startDaemon() {
|
|
|
7197
7530
|
let autoRestart;
|
|
7198
7531
|
let bundleReplacedSeen = false;
|
|
7199
7532
|
let automationRunner;
|
|
7533
|
+
let issueWorker;
|
|
7200
7534
|
let projectPresence;
|
|
7201
7535
|
const persisted = readPersistedSessions();
|
|
7202
7536
|
const liveHappyProcesses = await findAllHappyProcesses();
|
|
@@ -7718,7 +8052,7 @@ async function startDaemon() {
|
|
|
7718
8052
|
happyProcess.on("exit", (code, signal) => {
|
|
7719
8053
|
logger.debug(`[DAEMON RUN] Child PID ${happyProcess.pid} exited with code ${code}, signal ${signal}`);
|
|
7720
8054
|
if (happyProcess.pid) {
|
|
7721
|
-
onChildExited(happyProcess.pid);
|
|
8055
|
+
onChildExited(happyProcess.pid, { code, signal });
|
|
7722
8056
|
}
|
|
7723
8057
|
});
|
|
7724
8058
|
happyProcess.on("error", (error) => {
|
|
@@ -8109,8 +8443,11 @@ async function startDaemon() {
|
|
|
8109
8443
|
logger.debug(`[DAEMON RUN] Session ${sessionId} not found`);
|
|
8110
8444
|
return false;
|
|
8111
8445
|
};
|
|
8112
|
-
const onChildExited = (pid) => {
|
|
8446
|
+
const onChildExited = (pid, exit) => {
|
|
8113
8447
|
const session = pidToTrackedSession.get(pid);
|
|
8448
|
+
if (session?.happySessionId && !autoRestartExits.has(session.happySessionId) && issueWorker?.hasSession(session.happySessionId)) {
|
|
8449
|
+
issueWorker.report(session.happySessionId, daemonHibernation.pendingExit(session.happySessionId) ? "idle" : issueExitEvent(exit));
|
|
8450
|
+
}
|
|
8114
8451
|
if (session?.happySessionId && !autoRestartExits.has(session.happySessionId) && (session.spawnedBy === "teams" || teamWorker?.hasSession(session.happySessionId))) teamWorker?.report(session.happySessionId, "exited");
|
|
8115
8452
|
if (session?.happySessionId && automationRunner?.hasSession(session.happySessionId)) automationRunner.report(session.happySessionId, "exited");
|
|
8116
8453
|
if (session?.happySessionId) turnActivity.forget(session.happySessionId);
|
|
@@ -8640,6 +8977,7 @@ async function startDaemon() {
|
|
|
8640
8977
|
const sessionsHold = () => handoverWaitsForSessions({ bundleReplaced, relayMove: !!relayMove, sparesWrappers: handoverSparesWrappers }) && (turnActivity.hasActiveTurn() || backgroundTasks.hasAny());
|
|
8641
8978
|
if ((bundleReplaced || relayMove) && !teamWorker?.busy && !automationRunner?.busy && !updateController.isRunning() && !harnessInstaller?.isRunning() && !sessionsHold()) {
|
|
8642
8979
|
const preflight = bundleReplaced ? await preflightNewBundle(bundlePath) : { action: "proceed" };
|
|
8980
|
+
if (issueWorker?.busy) return;
|
|
8643
8981
|
if (preflight.action === "hold") {
|
|
8644
8982
|
if (lastHandoverHold !== preflight.reason) {
|
|
8645
8983
|
lastHandoverHold = preflight.reason;
|
|
@@ -8653,6 +8991,7 @@ async function startDaemon() {
|
|
|
8653
8991
|
logger.debug(relayMove ? `[DAEMON RUN] Relay moved to ${relayMove.serverUrl}; handing off to a new daemon on the new settings` : "[DAEMON RUN] Daemon bundle replaced on disk and verified, handing off to new daemon");
|
|
8654
8992
|
teamWorker?.stop();
|
|
8655
8993
|
automationRunner?.stop();
|
|
8994
|
+
issueWorker?.stop();
|
|
8656
8995
|
projectPresence?.stop();
|
|
8657
8996
|
clearInterval(restartOnStaleVersionAndHeartbeat);
|
|
8658
8997
|
clearInterval(cliUpdateInterval);
|
|
@@ -8749,6 +9088,15 @@ async function startDaemon() {
|
|
|
8749
9088
|
} : {},
|
|
8750
9089
|
log: (message) => logger.debug(`[DAEMON RUN] ${message}`)
|
|
8751
9090
|
});
|
|
9091
|
+
issueWorker = createIssueWorker({
|
|
9092
|
+
machineId,
|
|
9093
|
+
client: createIssuesClient({ token: async () => credentials.token }),
|
|
9094
|
+
spawn: spawnSession,
|
|
9095
|
+
live: (id) => [...pidToTrackedSession.values()].some((s) => s.happySessionId === id && isPidAlive(s.pid)),
|
|
9096
|
+
...accountServiceRef ? { resolveAccount: (agent, requested) => accountServiceRef.resolveSpawnAccount(agent, requested) } : {},
|
|
9097
|
+
joinProject: (sessionId, projectId) => joinProject(projectsClient, sessionId, { kind: "explicit", projectId }, { via: "issue" }),
|
|
9098
|
+
log: (message) => logger.debug(`[DAEMON RUN] ${message}`)
|
|
9099
|
+
});
|
|
8752
9100
|
projectPresence = createProjectPresenceReporter({
|
|
8753
9101
|
machineId,
|
|
8754
9102
|
client: projectsClient,
|
|
@@ -8782,6 +9130,7 @@ async function startDaemon() {
|
|
|
8782
9130
|
const scrollbackFlush = apiMachine.flushTerminalScrollback();
|
|
8783
9131
|
teamWorker?.stop();
|
|
8784
9132
|
automationRunner?.stop({ killScripts: true });
|
|
9133
|
+
issueWorker?.stop();
|
|
8785
9134
|
projectPresence?.stop();
|
|
8786
9135
|
currentWorktreeService()?.stopAll();
|
|
8787
9136
|
if (restartOnStaleVersionAndHeartbeat) {
|