very-happy-cli 0.2.198 → 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-Bm3EodAb.mjs → AcpBackend-Cnp6WNn8.mjs} +3 -3
- package/dist/{AcpBackend-DOuWeCAx.cjs → AcpBackend-CwSShYPI.cjs} +3 -3
- package/dist/{AcpSessionManager-BiwuXpbx.mjs → AcpSessionManager-C4O3jhT_.mjs} +2 -2
- package/dist/{AcpSessionManager-DvsZWTXp.cjs → AcpSessionManager-DqW99tOL.cjs} +2 -2
- package/dist/{BasePermissionHandler-1QcavYFn.mjs → BasePermissionHandler-8Msj0Z8j.mjs} +1 -1
- package/dist/{BasePermissionHandler-25RmI4dK.cjs → BasePermissionHandler-CgqjIUyG.cjs} +1 -1
- package/dist/{account-DA4mbX3-.mjs → account-BIxPuBEs.mjs} +11 -11
- package/dist/{account-ChUtFYld.cjs → account-DcNh2_SN.cjs} +11 -11
- package/dist/{accountService-BWUjgHl0.cjs → accountService-BDJo14mY.cjs} +4 -4
- package/dist/{accountService-D7NZrnQd.mjs → accountService-ELazcp3V.mjs} +4 -4
- package/dist/{acpSessionResume-CeQu84Ol.cjs → acpSessionResume-B_W8uTI6.cjs} +1 -1
- package/dist/{acpSessionResume-D6YgeofW.mjs → acpSessionResume-De_sTG30.mjs} +1 -1
- package/dist/{agentHome-DM6mC64c.mjs → agentHome-C-900jC1.mjs} +4 -4
- package/dist/{agentHome-DevJCRG9.cjs → agentHome-C-usjJwB.cjs} +4 -4
- package/dist/{api-te19Pzi3.cjs → api-BPWRzeNF.cjs} +16 -10
- package/dist/{api-oceym3w6.mjs → api-DCUiAds-.mjs} +16 -10
- package/dist/{apiMachine-DCHsqtFQ.mjs → apiMachine-CJl4m3V3.mjs} +18 -18
- package/dist/{apiMachine-BjhCXg6C.cjs → apiMachine-DjhbA1rL.cjs} +18 -18
- package/dist/{attachmentContent-Dl29U1v1.mjs → attachmentContent-BKIq6EXR.mjs} +2 -2
- package/dist/{attachmentContent-BfCEgPTP.cjs → attachmentContent-C2f1UEP9.cjs} +2 -2
- package/dist/{auth-BIkCWkRV.mjs → auth-8jKFCZOX.mjs} +5 -5
- package/dist/{auth-SshU0tNW.cjs → auth-h6oU63Ni.cjs} +8 -8
- package/dist/{auth-SH0o7ue7.cjs → auth-oAnLi4Tl.cjs} +5 -5
- package/dist/{auth-BJ8Tej9L.mjs → auth-uLRHXOGY.mjs} +8 -8
- package/dist/{auto-Bdr4sSJk.mjs → auto-A5arQ-bI.mjs} +17 -17
- package/dist/{auto-t1B1Yzb3.cjs → auto-Bpa5iA1A.cjs} +17 -17
- package/dist/{bootstrap-D8DYLUId.mjs → bootstrap-BkLFgEGF.mjs} +2 -2
- package/dist/{bootstrap-GZDknvPy.cjs → bootstrap-DUKAKxrJ.cjs} +2 -2
- package/dist/{browser-C-H3QYV2.mjs → browser-BAlw0rns.mjs} +1 -1
- package/dist/{browser-DwCi-9Ya.cjs → browser-Ds-N-Dup.cjs} +1 -1
- package/dist/{claudeAccountEnv-DmVbGhZb.mjs → claudeAccountEnv-CI8RlIB9.mjs} +1 -1
- package/dist/{claudeAccountEnv-DSaFKajJ.cjs → claudeAccountEnv-D33xXRE7.cjs} +1 -1
- package/dist/{claudeLocal-Ck1jTve1.cjs → claudeLocal-BbsOT-EF.cjs} +5 -5
- package/dist/{claudeLocal-BiM2x9DJ.mjs → claudeLocal-X48n0RhP.mjs} +5 -5
- package/dist/{claudeLocalLauncher-DzvM0jBo.mjs → claudeLocalLauncher-D18gRtxz.mjs} +10 -10
- package/dist/{claudeLocalLauncher-Jsupvl4V.cjs → claudeLocalLauncher-D1jS3iK4.cjs} +10 -10
- package/dist/{claudeSessionFork-CDTbQmYi.cjs → claudeSessionFork-Bkxn40Y8.cjs} +1 -1
- package/dist/{claudeSessionFork-D-BhXkRa.mjs → claudeSessionFork-n1vMiFcP.mjs} +1 -1
- package/dist/client-1zIbVVX5.cjs +120 -0
- package/dist/{client-BRuFIwki.mjs → client-BXwIqRha.mjs} +2 -2
- package/dist/client-BgxQ9aej.mjs +114 -0
- package/dist/{client-CISkP897.mjs → client-Blpuk2Hr.mjs} +2 -2
- package/dist/{client-D-HEr922.cjs → client-BnoN4P4t.cjs} +2 -2
- package/dist/{client-E4kW5qjR.mjs → client-C0qjAgZ_.mjs} +4 -4
- package/dist/{client-v6rdLsBH.cjs → client-C8BTmcrh.cjs} +4 -4
- package/dist/{client-oqSAKwmy.cjs → client-D0_UOmC1.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +25 -16
- package/dist/codex/happyMcpStdioBridge.mjs +25 -16
- package/dist/{codexAccount-CnbDfCOM.mjs → codexAccount-BAezf1fY.mjs} +1 -1
- package/dist/{codexAccount-CQ4W1Ax8.cjs → codexAccount-DfeCHUOU.cjs} +1 -1
- package/dist/{codexAppServerClient-BLasFGTm.mjs → codexAppServerClient-By4ntTIr.mjs} +3 -3
- package/dist/{codexAppServerClient--K-ILfqM.cjs → codexAppServerClient-xBeqblCj.cjs} +3 -3
- package/dist/{codexCommand-Wv1WVNtM.mjs → codexCommand-C7BVsmPu.mjs} +58 -47
- package/dist/{codexCommand-M1uNblJx.cjs → codexCommand-CgzJe-Ti.cjs} +62 -51
- package/dist/{codexTermination-DigTBSJE.mjs → codexTermination-BS0sLBKS.mjs} +1 -1
- package/dist/{codexTermination-BumRIUqm.cjs → codexTermination-DVrdQx3Q.cjs} +1 -1
- package/dist/{config-Czs0Tucv.cjs → config-4R0rnthZ.cjs} +3 -3
- package/dist/{config-Br2fCFwB.mjs → config-D3jidXDu.mjs} +3 -3
- package/dist/{configuration-JBFF7432.mjs → configuration-4pG95tsq.mjs} +1 -1
- package/dist/{configuration-DfRs3WLd.cjs → configuration-ClUt7pqs.cjs} +1 -1
- package/dist/{connect-Cr--b0yl.cjs → connect-Da2NQJ3K.cjs} +13 -13
- package/dist/{connect-CbCqv-MV.mjs → connect-Do5qcqmg.mjs} +13 -13
- package/dist/{context-DLIjT5qU.mjs → context-Cf05DtNM.mjs} +1 -1
- package/dist/{context-C5WWlHOl.cjs → context-wMsIGwBw.cjs} +1 -1
- package/dist/{controlClient-B61crTpk.cjs → controlClient-SYDFcIkk.cjs} +3 -3
- package/dist/{controlClient-D5BYm3PU.mjs → controlClient-bqCKl9Nv.mjs} +3 -3
- package/dist/{createSessionMetadata-OMKj3e48.mjs → createSessionMetadata-CQkxe_4T.mjs} +3 -2
- package/dist/{createSessionMetadata-BwYysMTH.cjs → createSessionMetadata-msQTEvvn.cjs} +3 -2
- package/dist/{daemonAccounts-asWvoPKG.mjs → daemonAccounts-B8xnkprW.mjs} +3 -3
- package/dist/{daemonAccounts-CqAnPXDJ.cjs → daemonAccounts-Ch_rSTSX.cjs} +2 -2
- package/dist/{defaultPermissionMode-BItpIZML.cjs → defaultPermissionMode-BETWd5Lf.cjs} +1 -1
- package/dist/{defaultPermissionMode-4KYZA4WF.mjs → defaultPermissionMode-Cl3OvdHp.mjs} +1 -1
- package/dist/{deterministicJson-DnTSkEgb.mjs → deterministicJson-BRAeReBK.mjs} +67 -17
- package/dist/{deterministicJson-DIzyb1dQ.cjs → deterministicJson-CQ8jkArF.cjs} +72 -22
- package/dist/{doctor-Dn1G6QhF.cjs → doctor-C9D-t20z.cjs} +7 -7
- package/dist/{doctor-jrvm-tl3.mjs → doctor-Dy7z3qvy.mjs} +7 -7
- package/dist/{downloadTarget-DGnCGrDZ.cjs → downloadTarget-DfoOSrYi.cjs} +6 -6
- package/dist/{downloadTarget-BtsN_-LN.mjs → downloadTarget-Diq-GBu4.mjs} +6 -6
- package/dist/{ensureDaemonRunning-DsvcjXb4.cjs → ensureDaemonRunning-Df76EtKd.cjs} +5 -5
- package/dist/{ensureDaemonRunning-DCmXUwNi.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-hzho-lp7.cjs → handleResumeCommand-CjCtwrrm.cjs} +5 -5
- package/dist/{handleResumeCommand-CFupxyHT.mjs → handleResumeCommand-Dz4Aw_aZ.mjs} +5 -5
- package/dist/{index-BMFLwBCd.mjs → index-BNBXrqRE.mjs} +4 -4
- package/dist/{index-BknTkVnR.cjs → index-BiutHOAO.cjs} +62 -1
- package/dist/{index-CRI-_-YH.cjs → index-ByBOdEvG.cjs} +48 -44
- package/dist/{index-DCfEzudP.cjs → index-CbzettaI.cjs} +4 -4
- package/dist/{index-5TDKOvkU.cjs → index-CdOnhx2X.cjs} +4 -4
- package/dist/{index-CHk8F9OY.mjs → index-CjMA70-R.mjs} +47 -43
- package/dist/{index-EGwuuFdL.cjs → index-DUwOmhnq.cjs} +3 -3
- package/dist/{index-CZpFhEmE.mjs → index-Sdvy1Lsf.mjs} +3 -3
- package/dist/{index-CofTgtQ3.mjs → index-XP-qcJQ3.mjs} +4 -4
- package/dist/{index-CxiisoO1.mjs → index-kwsivEs-.mjs} +49 -2
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-CB5eTmzm.cjs → install-C4dKrmxR.cjs} +3 -3
- package/dist/{install-CeDqNGxI.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-B6xdH-Fr.cjs → localHappyAgentAuth-CjtNcaI0.cjs} +1 -1
- package/dist/{localHappyAgentAuth-BiIyMoiG.mjs → localHappyAgentAuth-DeDQjw24.mjs} +1 -1
- package/dist/{logger-BHfBDOsy.mjs → logger-BLMi8oJK.mjs} +2 -2
- package/dist/{logger-BrAF4iuT.cjs → logger-D28MY1Bv.cjs} +2 -2
- package/dist/{machineMetadata-D5PO2ylb.cjs → machineMetadata-BzjrIn_N.cjs} +3 -3
- package/dist/{machineMetadata-Ekniv5o4.mjs → machineMetadata-D8OWVD4l.mjs} +3 -3
- package/dist/{main-C8lsRSYS.cjs → main-DoJIcSOh.cjs} +57 -47
- package/dist/{main-HXdcnexS.mjs → main-c0fCuBON.mjs} +57 -47
- package/dist/{mcp-D9sglL02.cjs → mcp-CEtvR6tG.cjs} +18 -18
- package/dist/{mcp-C2YD6mq4.mjs → mcp-DKkBFGUa.mjs} +18 -18
- package/dist/{mirrorProtocol-CNF1eHsm.cjs → mirrorProtocol-CCl9dtzh.cjs} +3 -3
- package/dist/{mirrorProtocol-BLhArCS9.mjs → mirrorProtocol-DFQLXDBI.mjs} +3 -3
- package/dist/{package-CStJrLG3.cjs → package-BFSsS_dl.cjs} +7 -7
- package/dist/{package-BGZo2vAj.mjs → package-DbGqY8Ej.mjs} +7 -7
- package/dist/{panels-GVnnEsow.mjs → panels-2yIO9FxQ.mjs} +5 -5
- package/dist/{panels-D4_yGw4n.cjs → panels-BqLXIQif.cjs} +5 -5
- package/dist/{peerTools-BO-H0wNj.mjs → peerTools-4GYKxr8J.mjs} +5 -5
- package/dist/{peerTools-Drow2-P4.cjs → peerTools-Z8V2E0AF.cjs} +5 -5
- package/dist/{persistence-DvD-irLh.mjs → persistence-DbOKjdUD.mjs} +3 -3
- package/dist/{persistence-DGfEdbA5.cjs → persistence-TpVFA5-I.cjs} +2 -2
- package/dist/{piRunnerArgs-DwcAwwzm.mjs → piRunnerArgs-Bdj0sjAT.mjs} +1 -1
- package/dist/{piRunnerArgs-C1dLsoXF.cjs → piRunnerArgs-DOEJJymf.cjs} +1 -1
- package/dist/{piRuntime-_yRSPgnR.mjs → piRuntime-B0QZykV7.mjs} +1 -1
- package/dist/{piRuntime-d2h0Cska.cjs → piRuntime-DiRayy91.cjs} +1 -1
- package/dist/{piTerminal-WN0AMv9u.mjs → piTerminal-DGF4X7C-.mjs} +20 -20
- package/dist/{piTerminal-CVB4fa5R.cjs → piTerminal-DciFqPEi.cjs} +20 -20
- package/dist/{pushNotifications-3YsyCEfY.cjs → pushNotifications-C1i2W1GQ.cjs} +3 -3
- package/dist/{pushNotifications-D2UZnoTB.mjs → pushNotifications-CrCTpDiN.mjs} +3 -3
- package/dist/{query-Ba7UXc_y.cjs → query-BkOpCpRo.cjs} +1 -1
- package/dist/{query-_sw0hG6A.mjs → query-CrSvcV32.mjs} +1 -1
- package/dist/{rateLimitWindows-DiiGHS9r.cjs → rateLimitWindows-BREA7OZj.cjs} +1 -1
- package/dist/{rateLimitWindows-DzXv6p_W.mjs → rateLimitWindows-DZVrafmm.mjs} +1 -1
- package/dist/{reconnectGate-CxLgZCBh.mjs → reconnectGate-COxAZTv8.mjs} +1 -1
- package/dist/{reconnectGate-BpePVLPu.cjs → reconnectGate-YQ5jXJfY.cjs} +1 -1
- package/dist/{registerCommonHandlers-ChdVwZW6.mjs → registerCommonHandlers-Cfl_dEWs.mjs} +2 -2
- package/dist/{registerCommonHandlers-6iKpECuR.cjs → registerCommonHandlers-D95IxqDN.cjs} +2 -2
- package/dist/{registerKillSessionHandler-BDTgrstx.cjs → registerKillSessionHandler-DJJXtc_L.cjs} +6 -6
- package/dist/{registerKillSessionHandler-D6wYbAIt.mjs → registerKillSessionHandler-DoE6xgH3.mjs} +6 -6
- package/dist/{registerSideQuestionHandler-U4LGga_Z.cjs → registerSideQuestionHandler-DsRz-aD9.cjs} +4 -4
- package/dist/{registerSideQuestionHandler-C3K_qKwA.mjs → registerSideQuestionHandler-Dv00rqcy.mjs} +4 -4
- package/dist/{remoteSessionClient-CFNM8UEh.mjs → remoteSessionClient-BFd_D9ka.mjs} +5 -5
- package/dist/{remoteSessionClient-DSC5Cj21.cjs → remoteSessionClient-DleOeQlN.cjs} +5 -5
- package/dist/{reportProgressTool-CFmDK8ag.mjs → reportProgressTool-D4xKY9Ur.mjs} +111 -4
- package/dist/{reportProgressTool-Cr25LWeW.cjs → reportProgressTool-DtEpDqv3.cjs} +113 -3
- package/dist/{run-Be0yicft.cjs → run-CVAIFpsp.cjs} +391 -42
- package/dist/{run-D0D73Dam.mjs → run-iDEMW4js.mjs} +391 -42
- package/dist/{runClaude-1NP467UM.mjs → runClaude-DvHdLJaV.mjs} +27 -25
- package/dist/{runClaude-BOxvKK4H.cjs → runClaude-gucCQBma.cjs} +30 -28
- package/dist/{runClaudeDeps-CkRlQx2Y.cjs → runClaudeDeps-CQ8vvqUQ.cjs} +42 -40
- package/dist/{runClaudeDeps-BPzLoWyT.mjs → runClaudeDeps-DkFWFwVc.mjs} +48 -46
- package/dist/{runGemini-j2n5ZlOL.mjs → runGemini-B2lXQDru.mjs} +35 -33
- package/dist/{runGemini-BowXJRXb.cjs → runGemini-C0vqJYtS.cjs} +35 -33
- package/dist/{runOpenClaw-DLsnZnFM.cjs → runOpenClaw-DNV7GX73.cjs} +18 -18
- package/dist/{runOpenClaw-6zrT8dPO.mjs → runOpenClaw-Ddb6sOkY.mjs} +18 -18
- package/dist/{sandbox-BFbT6HDl.mjs → sandbox-Cw0cPDDh.mjs} +4 -4
- package/dist/{sandbox-DLijcRKk.cjs → sandbox-FA0RlaZg.cjs} +4 -4
- package/dist/selfCheck-B-hKig8I.mjs +89 -0
- package/dist/{selfCheck-U-A1DCi9.cjs → selfCheck-DFC8fzhF.cjs} +40 -39
- package/dist/{send-CGxo_QUR.cjs → send-BFd-5b_Q.cjs} +8 -8
- package/dist/{send-CQGKb3Kb.mjs → send-CwgqPftE.mjs} +8 -8
- package/dist/{server-DR5bQzTq.mjs → server-C_4Fk45r.mjs} +4 -4
- package/dist/{server-CWbcDBjV.cjs → server-DwOdMGAP.cjs} +6 -6
- package/dist/{sessionLock-DqFKSW8u.mjs → sessionLock-CphKQyav.mjs} +3 -3
- package/dist/{sessionLock-CJiayMcZ.cjs → sessionLock-DglhFHzB.cjs} +3 -3
- package/dist/{startupSessionCreate-s1ekIs2Z.cjs → sessionMetadata-DyTJ0Ki5.cjs} +14 -3
- package/dist/{startupSessionCreate-CfBajt2k.mjs → sessionMetadata-V7Z7F-cj.mjs} +14 -4
- package/dist/{sessionOps-Cw_JivR2.cjs → sessionOps-CIFvoFPA.cjs} +4 -4
- package/dist/{sessionOps-D-SDNs-D.mjs → sessionOps-D-uFSTHk.mjs} +4 -4
- package/dist/{sessionProvider-JEAWxBF6.cjs → sessionProvider-B0daO-Ln.cjs} +10 -10
- package/dist/{sessionProvider-Cb-LtbFQ.mjs → sessionProvider-D8y7K8bK.mjs} +10 -10
- package/dist/{sessionScanner-zJrc_Oe0.cjs → sessionScanner-CWflbWoH.cjs} +3 -3
- package/dist/{sessionScanner-C2M697xz.mjs → sessionScanner-DQAOP6pU.mjs} +3 -3
- package/dist/{sessions-CIxnjpCM.mjs → sessions-CaO_-AI7.mjs} +10 -10
- package/dist/{sessions-D2yLkE5R.cjs → sessions-CzpI76qj.cjs} +10 -10
- package/dist/{setupOfflineReconnection-Uu3tqISz.cjs → setupOfflineReconnection-BZHRoKDx.cjs} +2 -2
- package/dist/{setupOfflineReconnection-DzV1wB4y.mjs → setupOfflineReconnection-Ck-p0YPb.mjs} +2 -2
- package/dist/{spawn-CeeM-Piz.mjs → spawn-BEJxfj60.mjs} +14 -14
- package/dist/{spawn-DD1Sv8Ri.cjs → spawn-DyjOa4nf.cjs} +14 -14
- package/dist/{spawnAgents-CrHgpAzU.cjs → spawnAgents-IiuqX0S5.cjs} +1 -1
- package/dist/{spawnAgents-DEBfpoPZ.mjs → spawnAgents-XObVj6zN.mjs} +1 -1
- package/dist/{spawnHappyCLI-CYzlz9Sl.cjs → spawnHappyCLI-C3XuIB2N.cjs} +1 -1
- package/dist/{spawnHappyCLI-CUfe8n_m.mjs → spawnHappyCLI-Cc9kKpcq.mjs} +1 -1
- package/dist/{startFileWatcher-C0u3J6Bj.cjs → startFileWatcher-CeDJl9mN.cjs} +1 -1
- package/dist/{startFileWatcher-JdO3v65I.mjs → startFileWatcher-t3K1y9kY.mjs} +1 -1
- package/dist/{store-DEhdblkI.mjs → store-CqNAE-0v.mjs} +1 -1
- package/dist/{store-QBBJB5Ox.cjs → store-DOZAMV4W.cjs} +1 -1
- package/dist/{streamRelay-DymKR1Rk.mjs → streamRelay-7D7v0hvk.mjs} +1 -1
- package/dist/{streamRelay-BVrCYh2G.cjs → streamRelay-Dyp4x44P.cjs} +1 -1
- package/dist/{sync-BO4DRSub.cjs → sync-BvxhuW9R.cjs} +1 -1
- package/dist/{sync-BLGrIKN9.mjs → sync-s1pUqWGm.mjs} +1 -1
- package/dist/{systemPrompt-DTUJZOn6.cjs → systemPrompt-CCdSrtn3.cjs} +2 -2
- package/dist/{systemPrompt-YylizkJs.mjs → systemPrompt-CLYTbBhV.mjs} +2 -2
- package/dist/{teams-zkGFcwsG.mjs → teams-BVp5F_xN.mjs} +7 -7
- package/dist/{teams-DnLPBPKx.cjs → teams-D2q1DQWz.cjs} +7 -7
- package/dist/{template-uSKZ53Sv.cjs → template-M1YGFYUT.cjs} +1 -1
- package/dist/{template-BGlDAjbM.mjs → template-oBrR0saD.mjs} +1 -1
- package/dist/{time-Cv4hbCLT.cjs → time-D-v2Cd9e.cjs} +1 -1
- package/dist/{time-DZE0879N.mjs → time-qd46L189.mjs} +1 -1
- package/dist/{titleGenerator-B2BbmJuc.mjs → titleGenerator-BdeHi3IY.mjs} +2 -2
- package/dist/{titleGenerator-D2ehxbvK.cjs → titleGenerator-CSYqcorn.cjs} +3 -3
- package/dist/{todo-DUpW9d8p.mjs → todo-DiEhLgUZ.mjs} +95 -12
- package/dist/{todo-9kn_9N-H.cjs → todo-Dq_YuJvj.cjs} +101 -18
- package/dist/{tools-rMr-wPIc.cjs → tools-CY2zrdd5.cjs} +1 -1
- package/dist/{tools-gIDXwAzk.mjs → tools-DR7GWBBV.mjs} +1 -1
- package/dist/{uninstall-CHx5TOHi.cjs → uninstall-BHhHjbzE.cjs} +3 -3
- package/dist/{uninstall-CBlRzvNa.mjs → uninstall-BvwDZVU9.mjs} +3 -3
- package/dist/{wrapperAccount-Ce78kKMo.mjs → wrapperAccount-CpDsQL15.mjs} +2 -2
- package/dist/{wrapperAccount-EkmR4V-v.cjs → wrapperAccount-ejUjAQaM.cjs} +2 -2
- package/package.json +7 -7
- package/dist/selfCheck-DCIqaiMu.mjs +0 -88
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync, existsSync, mkdirSync, chmodSync, writeFileSync, renameSync, rmSync } from 'node:fs';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import { join, dirname } from 'node:path';
|
|
4
|
-
import {
|
|
4
|
+
import { z as AGENT_PROFILE_KINDS } from './index-kwsivEs-.mjs';
|
|
5
5
|
|
|
6
6
|
function providersPath(happyHomeDir) {
|
|
7
7
|
return join(happyHomeDir, "providers.json");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var node_fs = require('node:fs');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BiutHOAO.cjs');
|
|
7
7
|
|
|
8
8
|
function providersPath(happyHomeDir) {
|
|
9
9
|
return path.join(happyHomeDir, "providers.json");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-D28MY1Bv.cjs');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path$1 = require('node:path');
|
|
6
6
|
var path = require('./path-B7zW-WwE.cjs');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-BiutHOAO.cjs');
|
|
8
8
|
var trimIdent = require('./trimIdent-4gvk9Wk6.cjs');
|
|
9
9
|
var os = require('node:os');
|
|
10
10
|
var agentGuidance = require('./agentGuidance-BtBx2xxE.cjs');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BLMi8oJK.mjs';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { J as BUILTIN_TODO_DISCOVERY } from './index-kwsivEs-.mjs';
|
|
6
6
|
import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs';
|
|
7
7
|
import { homedir } from 'node:os';
|
|
8
8
|
import { A as AGENT_GUIDANCE } from './agentGuidance-BDYt2Qy2.mjs';
|
|
@@ -2,21 +2,21 @@ import { homedir } from 'node:os';
|
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
|
-
import { t as teamRequest, c as createTeamsClient } from './client-
|
|
6
|
-
import { b as readCredentialsForConfiguredRelay } from './persistence-
|
|
5
|
+
import { t as teamRequest, c as createTeamsClient } from './client-C0qjAgZ_.mjs';
|
|
6
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-DbOKjdUD.mjs';
|
|
7
7
|
import { a as installTeamSkill, i as installAutomationSkill } from './install-B8O1JpJH.mjs';
|
|
8
8
|
import 'node:child_process';
|
|
9
9
|
import 'node:util';
|
|
10
10
|
import 'node:path';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-kwsivEs-.mjs';
|
|
12
12
|
import '@paralleldrive/cuid2';
|
|
13
|
-
import './configuration-
|
|
13
|
+
import './configuration-4pG95tsq.mjs';
|
|
14
14
|
import 'node:fs';
|
|
15
|
-
import './package-
|
|
16
|
-
import './context-
|
|
15
|
+
import './package-DbGqY8Ej.mjs';
|
|
16
|
+
import './context-Cf05DtNM.mjs';
|
|
17
17
|
import './authRelay-DhQhkBvX.mjs';
|
|
18
18
|
import 'tweetnacl';
|
|
19
|
-
import './logger-
|
|
19
|
+
import './logger-BLMi8oJK.mjs';
|
|
20
20
|
import 'chalk';
|
|
21
21
|
import './resources-CLP_MpK4.mjs';
|
|
22
22
|
|
|
@@ -4,21 +4,21 @@ var os = require('node:os');
|
|
|
4
4
|
var promises = require('node:fs/promises');
|
|
5
5
|
var z = require('zod');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
|
-
var client = require('./client-
|
|
8
|
-
var persistence = require('./persistence-
|
|
7
|
+
var client = require('./client-C8BTmcrh.cjs');
|
|
8
|
+
var persistence = require('./persistence-TpVFA5-I.cjs');
|
|
9
9
|
var install = require('./install-BOHlqewf.cjs');
|
|
10
10
|
require('node:child_process');
|
|
11
11
|
require('node:util');
|
|
12
12
|
require('node:path');
|
|
13
|
-
require('./index-
|
|
13
|
+
require('./index-BiutHOAO.cjs');
|
|
14
14
|
require('@paralleldrive/cuid2');
|
|
15
|
-
require('./configuration-
|
|
15
|
+
require('./configuration-ClUt7pqs.cjs');
|
|
16
16
|
require('node:fs');
|
|
17
|
-
require('./package-
|
|
18
|
-
require('./context-
|
|
17
|
+
require('./package-BFSsS_dl.cjs');
|
|
18
|
+
require('./context-wMsIGwBw.cjs');
|
|
19
19
|
require('./authRelay-Dy1qU9td.cjs');
|
|
20
20
|
require('tweetnacl');
|
|
21
|
-
require('./logger-
|
|
21
|
+
require('./logger-D28MY1Bv.cjs');
|
|
22
22
|
require('chalk');
|
|
23
23
|
require('./resources-BZ_Be0qM.cjs');
|
|
24
24
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as AUTOMATION_ATTENTION_REASON_MAX_CHARS, q as AUTOMATION_SUMMARY_MAX_CHARS } from './index-kwsivEs-.mjs';
|
|
2
2
|
|
|
3
3
|
function payloadJson(payload) {
|
|
4
4
|
if (!payload) return void 0;
|
|
@@ -3,9 +3,9 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { T as TITLE_PROMPT_PREFIX } from './oneShotPrompts-DT4p6RNd.mjs';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
5
|
import { resolve, join } from 'node:path';
|
|
6
|
-
import { l as logger } from './logger-
|
|
6
|
+
import { l as logger } from './logger-BLMi8oJK.mjs';
|
|
7
7
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
8
|
-
import { a as accountClaudeSettings } from './wrapperAccount-
|
|
8
|
+
import { a as accountClaudeSettings } from './wrapperAccount-CpDsQL15.mjs';
|
|
9
9
|
|
|
10
10
|
const MAX_PROMPT_SAMPLE_CHARS = 500;
|
|
11
11
|
const MAX_TITLE_CHARS = 60;
|
|
@@ -5,16 +5,16 @@ var module$1 = require('node:module');
|
|
|
5
5
|
var oneShotPrompts = require('./oneShotPrompts-CL0dip9C.cjs');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
7
|
var path = require('node:path');
|
|
8
|
-
var logger = require('./logger-
|
|
8
|
+
var logger = require('./logger-D28MY1Bv.cjs');
|
|
9
9
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
10
|
-
var wrapperAccount = require('./wrapperAccount-
|
|
10
|
+
var wrapperAccount = require('./wrapperAccount-ejUjAQaM.cjs');
|
|
11
11
|
|
|
12
12
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
13
13
|
const MAX_PROMPT_SAMPLE_CHARS = 500;
|
|
14
14
|
const MAX_TITLE_CHARS = 60;
|
|
15
15
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
16
16
|
function loadClaudeVersionUtils() {
|
|
17
|
-
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('titleGenerator-
|
|
17
|
+
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('titleGenerator-CSYqcorn.cjs', document.baseURI).href)));
|
|
18
18
|
return require$1(path.resolve(path.join(projectPath.projectPath(), "scripts", "claude_version_utils.cjs")));
|
|
19
19
|
}
|
|
20
20
|
function resolveClaudeBinary(loadUtils = loadClaudeVersionUtils) {
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import {
|
|
3
|
-
import { b as readCredentialsForConfiguredRelay } from './persistence-
|
|
4
|
-
import { r as readTeamScope, t as teamScopePath } from './context-
|
|
1
|
+
import { c as configuration } from './configuration-4pG95tsq.mjs';
|
|
2
|
+
import { E as createBuiltinTodoClient, F as ISSUE_LIMITS, g as ISSUE_STATUSES, G as isIssueClosed, H as BUILTIN_TODO_SKILL } from './index-kwsivEs-.mjs';
|
|
3
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-DbOKjdUD.mjs';
|
|
4
|
+
import { r as readTeamScope, t as teamScopePath } from './context-Cf05DtNM.mjs';
|
|
5
|
+
import { a as IssueRequestError, s as sharedIssuesClient, i as importLegacyTodosOnce, I as IssuesUnsupportedError } from './client-BgxQ9aej.mjs';
|
|
6
|
+
import { d as describeIssueError } from './format-CbliQN8V.mjs';
|
|
5
7
|
import 'node:fs';
|
|
6
8
|
import 'node:os';
|
|
7
9
|
import 'node:path';
|
|
8
|
-
import './package-
|
|
10
|
+
import './package-DbGqY8Ej.mjs';
|
|
9
11
|
import 'node:fs/promises';
|
|
10
12
|
import 'zod';
|
|
11
13
|
import '@paralleldrive/cuid2';
|
|
12
14
|
import './authRelay-DhQhkBvX.mjs';
|
|
13
15
|
import 'node:crypto';
|
|
14
16
|
import 'tweetnacl';
|
|
15
|
-
import './logger-
|
|
17
|
+
import './logger-BLMi8oJK.mjs';
|
|
16
18
|
import 'chalk';
|
|
17
19
|
import 'node:util';
|
|
18
20
|
|
|
19
|
-
async function
|
|
21
|
+
async function assertAccountTodosAllowed() {
|
|
20
22
|
if (process.env.VH_TEAM_SCOPE_FILE !== void 0) {
|
|
21
23
|
throw new Error("Scoped Teams sessions cannot access account Todos; ask the owner session.");
|
|
22
24
|
}
|
|
@@ -24,13 +26,70 @@ async function authenticatedBuiltinTodoClient() {
|
|
|
24
26
|
if (sessionId && await readTeamScope(teamScopePath(sessionId))) {
|
|
25
27
|
throw new Error("Scoped Teams sessions cannot access account Todos; ask the owner session.");
|
|
26
28
|
}
|
|
29
|
+
}
|
|
30
|
+
async function authenticatedBuiltinTodoClient() {
|
|
31
|
+
await assertAccountTodosAllowed();
|
|
27
32
|
const credentials = await readCredentialsForConfiguredRelay();
|
|
28
33
|
if (!credentials) throw new Error("Sign in to Very Happy with `very-happy auth login` before accessing Todos.");
|
|
29
34
|
return createBuiltinTodoClient(credentials, { serverUrl: configuration.serverUrl, clientId: "very-happy-cli-todo" });
|
|
30
35
|
}
|
|
31
36
|
|
|
37
|
+
function issueToTodoRecord(issue) {
|
|
38
|
+
return {
|
|
39
|
+
schemaVersion: 1,
|
|
40
|
+
id: issue.id,
|
|
41
|
+
key: issue.key,
|
|
42
|
+
title: issue.title,
|
|
43
|
+
note: issue.description,
|
|
44
|
+
status: isIssueClosed(issue.status) ? "done" : "open",
|
|
45
|
+
order: issue.sortOrder,
|
|
46
|
+
createdAt: issue.createdAt,
|
|
47
|
+
updatedAt: issue.updatedAt,
|
|
48
|
+
version: issue.version
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const OPEN = ISSUE_STATUSES.filter((s) => !isIssueClosed(s)).join(",");
|
|
52
|
+
const CONFLICT = "Todo version conflict; read the latest task before deciding what to change.";
|
|
53
|
+
async function find(client, ref) {
|
|
54
|
+
try {
|
|
55
|
+
return (await client.get(ref)).issue;
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (!(error instanceof IssueRequestError && error.code === "issue_not_found")) throw error;
|
|
58
|
+
}
|
|
59
|
+
const { issues } = await client.list({ assigneeKind: "none", limit: ISSUE_LIMITS.listMax });
|
|
60
|
+
return issues.find((issue) => issue.legacyTodoId === ref) ?? null;
|
|
61
|
+
}
|
|
62
|
+
async function runTodoViaIssues(command, client) {
|
|
63
|
+
if (command.action === "list") {
|
|
64
|
+
const { issues, nextCursor } = await client.list({ assigneeKind: "none", ...command.all ? {} : { status: OPEN }, limit: ISSUE_LIMITS.listMax });
|
|
65
|
+
const records = issues.map(issueToTodoRecord).sort((a, b) => a.order - b.order || a.createdAt - b.createdAt);
|
|
66
|
+
const list = { records, truncated: nextCursor !== null, invalidCount: 0 };
|
|
67
|
+
return list;
|
|
68
|
+
}
|
|
69
|
+
if (command.action === "add") {
|
|
70
|
+
if (command.title.trim().length > ISSUE_LIMITS.titleChars) throw new Error(`Todo title must contain 1\u2013${ISSUE_LIMITS.titleChars} characters on this server`);
|
|
71
|
+
const { issue: issue2 } = await client.create({ title: command.title.trim(), description: command.note ?? "", status: "todo", assignee: { kind: "none" }, requestId: command.id });
|
|
72
|
+
return issueToTodoRecord(issue2);
|
|
73
|
+
}
|
|
74
|
+
const issue = await find(client, command.id);
|
|
75
|
+
if (command.action === "get") return issue && !issue.deletedAt ? issueToTodoRecord(issue) : null;
|
|
76
|
+
if (!issue || issue.deletedAt) throw new Error("Todo not found; it may have been deleted.");
|
|
77
|
+
if (issue.version !== command.version) throw new Error(CONFLICT);
|
|
78
|
+
try {
|
|
79
|
+
if (command.action === "delete") {
|
|
80
|
+
await client.remove(issue.id);
|
|
81
|
+
return { id: issue.id, deleted: true };
|
|
82
|
+
}
|
|
83
|
+
const patch = command.action === "edit" ? { ...command.title !== void 0 ? { title: command.title.trim() } : {}, ...command.note !== void 0 ? { description: command.note } : {} } : { status: command.action === "complete" ? "done" : "todo" };
|
|
84
|
+
return issueToTodoRecord((await client.update(issue.id, { ...patch, ifVersion: issue.version })).issue);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
if (error instanceof IssueRequestError && error.code === "issue_version_conflict") throw new Error(CONFLICT);
|
|
87
|
+
throw error;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
32
91
|
const TODO_HELP = `very-happy todo \u2014 account-owned built-in Todos (JSON output)
|
|
33
|
-
very-happy todo list
|
|
92
|
+
very-happy todo list [--all]
|
|
34
93
|
very-happy todo get ID
|
|
35
94
|
very-happy todo add --id UUID --title TEXT [--note TEXT]
|
|
36
95
|
very-happy todo edit ID --version N [--title TEXT] [--note TEXT]
|
|
@@ -42,8 +101,14 @@ before deciding what to change. Reuse the same add UUID and arguments after an
|
|
|
42
101
|
unknown result. Use --title=TEXT or --note=TEXT for values starting with --.
|
|
43
102
|
These commands use the current relay and login; they do not
|
|
44
103
|
operate external providers or agent execution plans. skill prints the official
|
|
45
|
-
instructions without authentication. Pass --help for this reference
|
|
104
|
+
instructions without authentication. Pass --help for this reference.
|
|
105
|
+
|
|
106
|
+
On a server with Issues, a todo is an issue without an assignee: list shows the
|
|
107
|
+
open ones (--all adds completed), add creates a todo-status issue, ID may also be
|
|
108
|
+
an issue key (VH-12), and \`very-happy issue\` offers the rest. Without Issues the
|
|
109
|
+
commands use the classic Todos store.`;
|
|
46
110
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
111
|
+
const ISSUE_KEY = /^VH-[1-9][0-9]{0,8}$/i;
|
|
47
112
|
function parseTodoArgs(args) {
|
|
48
113
|
if (args.length === 0 || args.length === 1 && args[0] === "--help") return { action: "help" };
|
|
49
114
|
const action = args[0];
|
|
@@ -51,8 +116,13 @@ function parseTodoArgs(args) {
|
|
|
51
116
|
if (args.length === 2 && args[1] === "--help") return { action: "help" };
|
|
52
117
|
const flags = {};
|
|
53
118
|
let id;
|
|
119
|
+
let all = false;
|
|
54
120
|
for (let i = 1; i < args.length; i++) {
|
|
55
121
|
const arg = args[i];
|
|
122
|
+
if (arg === "--all" && action === "list" && !all) {
|
|
123
|
+
all = true;
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
56
126
|
if (arg.startsWith("--")) {
|
|
57
127
|
const separator = arg.indexOf("=");
|
|
58
128
|
const flag = separator === -1 ? arg : arg.slice(0, separator);
|
|
@@ -69,7 +139,7 @@ function parseTodoArgs(args) {
|
|
|
69
139
|
const allowed = action === "add" ? ["--id", "--title", "--note"] : action === "edit" ? ["--version", "--title", "--note"] : ["complete", "reopen", "delete"].includes(action) ? ["--version"] : [];
|
|
70
140
|
for (const flag of Object.keys(flags)) if (!allowed.includes(flag)) throw new Error(`${flag} is not supported for ${action}`);
|
|
71
141
|
const needsId = ["get", "edit", "complete", "reopen", "delete"].includes(action);
|
|
72
|
-
if (needsId ? !id || !UUID.test(id) : id !== void 0) throw new Error(needsId ? "A valid Todo UUID is required" : "Unexpected Todo ID");
|
|
142
|
+
if (needsId ? !id || !(UUID.test(id) || ISSUE_KEY.test(id)) : id !== void 0) throw new Error(needsId ? "A valid Todo UUID is required" : "Unexpected Todo ID");
|
|
73
143
|
if (action === "add" && (!flags["--id"] || !UUID.test(flags["--id"]))) throw new Error("add requires --id UUID; reuse it when retrying");
|
|
74
144
|
if (action === "add" && flags["--title"] === void 0) throw new Error("add requires --title");
|
|
75
145
|
if (action === "edit" && flags["--title"] === void 0 && flags["--note"] === void 0) throw new Error("edit requires --title or --note");
|
|
@@ -81,9 +151,9 @@ function parseTodoArgs(args) {
|
|
|
81
151
|
if (value === void 0 || !/^(0|[1-9][0-9]*)$/.test(value) || !Number.isSafeInteger(Number(value))) throw new Error("A non-negative safe integer --version is required");
|
|
82
152
|
version = Number(value);
|
|
83
153
|
}
|
|
84
|
-
return { action, id: action === "add" ? flags["--id"] : id, version, title: flags["--title"], note: flags["--note"] };
|
|
154
|
+
return { action, id: action === "add" ? flags["--id"] : id, version, title: flags["--title"], note: flags["--note"], ...all ? { all } : {} };
|
|
85
155
|
}
|
|
86
|
-
async function handleTodoCommand(args) {
|
|
156
|
+
async function handleTodoCommand(args, deps = {}) {
|
|
87
157
|
const command = parseTodoArgs(args);
|
|
88
158
|
if (command.action === "help") {
|
|
89
159
|
console.log(TODO_HELP);
|
|
@@ -93,6 +163,19 @@ async function handleTodoCommand(args) {
|
|
|
93
163
|
console.log(BUILTIN_TODO_SKILL);
|
|
94
164
|
return;
|
|
95
165
|
}
|
|
166
|
+
await assertAccountTodosAllowed();
|
|
167
|
+
const issues = deps.issues ?? sharedIssuesClient();
|
|
168
|
+
if (!issues.isDisabled()) {
|
|
169
|
+
try {
|
|
170
|
+
await importLegacyTodosOnce(issues);
|
|
171
|
+
const result2 = await runTodoViaIssues(command, issues);
|
|
172
|
+
console.log(JSON.stringify({ serverUrl: configuration.serverUrl, result: result2 }));
|
|
173
|
+
return;
|
|
174
|
+
} catch (error) {
|
|
175
|
+
if (!(error instanceof IssuesUnsupportedError)) throw new Error(describeIssueError(error));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (command.id !== void 0 && !UUID.test(command.id)) throw new Error("This server has no Issues; use the Todo UUID");
|
|
96
179
|
const client = await authenticatedBuiltinTodoClient();
|
|
97
180
|
let result;
|
|
98
181
|
if (command.action === "list") result = await client.list();
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var context = require('./context-
|
|
3
|
+
var configuration = require('./configuration-ClUt7pqs.cjs');
|
|
4
|
+
var index = require('./index-BiutHOAO.cjs');
|
|
5
|
+
var persistence = require('./persistence-TpVFA5-I.cjs');
|
|
6
|
+
var context = require('./context-wMsIGwBw.cjs');
|
|
7
|
+
var client = require('./client-1zIbVVX5.cjs');
|
|
8
|
+
var format = require('./format-P9_M_7ga.cjs');
|
|
7
9
|
require('node:fs');
|
|
8
10
|
require('node:os');
|
|
9
11
|
require('node:path');
|
|
10
|
-
require('./package-
|
|
12
|
+
require('./package-BFSsS_dl.cjs');
|
|
11
13
|
require('node:fs/promises');
|
|
12
14
|
require('zod');
|
|
13
15
|
require('@paralleldrive/cuid2');
|
|
14
16
|
require('./authRelay-Dy1qU9td.cjs');
|
|
15
17
|
require('node:crypto');
|
|
16
18
|
require('tweetnacl');
|
|
17
|
-
require('./logger-
|
|
19
|
+
require('./logger-D28MY1Bv.cjs');
|
|
18
20
|
require('chalk');
|
|
19
21
|
require('node:util');
|
|
20
22
|
|
|
21
|
-
async function
|
|
23
|
+
async function assertAccountTodosAllowed() {
|
|
22
24
|
if (process.env.VH_TEAM_SCOPE_FILE !== void 0) {
|
|
23
25
|
throw new Error("Scoped Teams sessions cannot access account Todos; ask the owner session.");
|
|
24
26
|
}
|
|
@@ -26,13 +28,70 @@ async function authenticatedBuiltinTodoClient() {
|
|
|
26
28
|
if (sessionId && await context.readTeamScope(context.teamScopePath(sessionId))) {
|
|
27
29
|
throw new Error("Scoped Teams sessions cannot access account Todos; ask the owner session.");
|
|
28
30
|
}
|
|
31
|
+
}
|
|
32
|
+
async function authenticatedBuiltinTodoClient() {
|
|
33
|
+
await assertAccountTodosAllowed();
|
|
29
34
|
const credentials = await persistence.readCredentialsForConfiguredRelay();
|
|
30
35
|
if (!credentials) throw new Error("Sign in to Very Happy with `very-happy auth login` before accessing Todos.");
|
|
31
36
|
return index.createBuiltinTodoClient(credentials, { serverUrl: configuration.configuration.serverUrl, clientId: "very-happy-cli-todo" });
|
|
32
37
|
}
|
|
33
38
|
|
|
39
|
+
function issueToTodoRecord(issue) {
|
|
40
|
+
return {
|
|
41
|
+
schemaVersion: 1,
|
|
42
|
+
id: issue.id,
|
|
43
|
+
key: issue.key,
|
|
44
|
+
title: issue.title,
|
|
45
|
+
note: issue.description,
|
|
46
|
+
status: index.isIssueClosed(issue.status) ? "done" : "open",
|
|
47
|
+
order: issue.sortOrder,
|
|
48
|
+
createdAt: issue.createdAt,
|
|
49
|
+
updatedAt: issue.updatedAt,
|
|
50
|
+
version: issue.version
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
const OPEN = index.ISSUE_STATUSES.filter((s) => !index.isIssueClosed(s)).join(",");
|
|
54
|
+
const CONFLICT = "Todo version conflict; read the latest task before deciding what to change.";
|
|
55
|
+
async function find(client$1, ref) {
|
|
56
|
+
try {
|
|
57
|
+
return (await client$1.get(ref)).issue;
|
|
58
|
+
} catch (error) {
|
|
59
|
+
if (!(error instanceof client.IssueRequestError && error.code === "issue_not_found")) throw error;
|
|
60
|
+
}
|
|
61
|
+
const { issues } = await client$1.list({ assigneeKind: "none", limit: index.ISSUE_LIMITS.listMax });
|
|
62
|
+
return issues.find((issue) => issue.legacyTodoId === ref) ?? null;
|
|
63
|
+
}
|
|
64
|
+
async function runTodoViaIssues(command, client$1) {
|
|
65
|
+
if (command.action === "list") {
|
|
66
|
+
const { issues, nextCursor } = await client$1.list({ assigneeKind: "none", ...command.all ? {} : { status: OPEN }, limit: index.ISSUE_LIMITS.listMax });
|
|
67
|
+
const records = issues.map(issueToTodoRecord).sort((a, b) => a.order - b.order || a.createdAt - b.createdAt);
|
|
68
|
+
const list = { records, truncated: nextCursor !== null, invalidCount: 0 };
|
|
69
|
+
return list;
|
|
70
|
+
}
|
|
71
|
+
if (command.action === "add") {
|
|
72
|
+
if (command.title.trim().length > index.ISSUE_LIMITS.titleChars) throw new Error(`Todo title must contain 1\u2013${index.ISSUE_LIMITS.titleChars} characters on this server`);
|
|
73
|
+
const { issue: issue2 } = await client$1.create({ title: command.title.trim(), description: command.note ?? "", status: "todo", assignee: { kind: "none" }, requestId: command.id });
|
|
74
|
+
return issueToTodoRecord(issue2);
|
|
75
|
+
}
|
|
76
|
+
const issue = await find(client$1, command.id);
|
|
77
|
+
if (command.action === "get") return issue && !issue.deletedAt ? issueToTodoRecord(issue) : null;
|
|
78
|
+
if (!issue || issue.deletedAt) throw new Error("Todo not found; it may have been deleted.");
|
|
79
|
+
if (issue.version !== command.version) throw new Error(CONFLICT);
|
|
80
|
+
try {
|
|
81
|
+
if (command.action === "delete") {
|
|
82
|
+
await client$1.remove(issue.id);
|
|
83
|
+
return { id: issue.id, deleted: true };
|
|
84
|
+
}
|
|
85
|
+
const patch = command.action === "edit" ? { ...command.title !== void 0 ? { title: command.title.trim() } : {}, ...command.note !== void 0 ? { description: command.note } : {} } : { status: command.action === "complete" ? "done" : "todo" };
|
|
86
|
+
return issueToTodoRecord((await client$1.update(issue.id, { ...patch, ifVersion: issue.version })).issue);
|
|
87
|
+
} catch (error) {
|
|
88
|
+
if (error instanceof client.IssueRequestError && error.code === "issue_version_conflict") throw new Error(CONFLICT);
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
34
93
|
const TODO_HELP = `very-happy todo \u2014 account-owned built-in Todos (JSON output)
|
|
35
|
-
very-happy todo list
|
|
94
|
+
very-happy todo list [--all]
|
|
36
95
|
very-happy todo get ID
|
|
37
96
|
very-happy todo add --id UUID --title TEXT [--note TEXT]
|
|
38
97
|
very-happy todo edit ID --version N [--title TEXT] [--note TEXT]
|
|
@@ -44,8 +103,14 @@ before deciding what to change. Reuse the same add UUID and arguments after an
|
|
|
44
103
|
unknown result. Use --title=TEXT or --note=TEXT for values starting with --.
|
|
45
104
|
These commands use the current relay and login; they do not
|
|
46
105
|
operate external providers or agent execution plans. skill prints the official
|
|
47
|
-
instructions without authentication. Pass --help for this reference
|
|
106
|
+
instructions without authentication. Pass --help for this reference.
|
|
107
|
+
|
|
108
|
+
On a server with Issues, a todo is an issue without an assignee: list shows the
|
|
109
|
+
open ones (--all adds completed), add creates a todo-status issue, ID may also be
|
|
110
|
+
an issue key (VH-12), and \`very-happy issue\` offers the rest. Without Issues the
|
|
111
|
+
commands use the classic Todos store.`;
|
|
48
112
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
113
|
+
const ISSUE_KEY = /^VH-[1-9][0-9]{0,8}$/i;
|
|
49
114
|
function parseTodoArgs(args) {
|
|
50
115
|
if (args.length === 0 || args.length === 1 && args[0] === "--help") return { action: "help" };
|
|
51
116
|
const action = args[0];
|
|
@@ -53,8 +118,13 @@ function parseTodoArgs(args) {
|
|
|
53
118
|
if (args.length === 2 && args[1] === "--help") return { action: "help" };
|
|
54
119
|
const flags = {};
|
|
55
120
|
let id;
|
|
121
|
+
let all = false;
|
|
56
122
|
for (let i = 1; i < args.length; i++) {
|
|
57
123
|
const arg = args[i];
|
|
124
|
+
if (arg === "--all" && action === "list" && !all) {
|
|
125
|
+
all = true;
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
58
128
|
if (arg.startsWith("--")) {
|
|
59
129
|
const separator = arg.indexOf("=");
|
|
60
130
|
const flag = separator === -1 ? arg : arg.slice(0, separator);
|
|
@@ -71,7 +141,7 @@ function parseTodoArgs(args) {
|
|
|
71
141
|
const allowed = action === "add" ? ["--id", "--title", "--note"] : action === "edit" ? ["--version", "--title", "--note"] : ["complete", "reopen", "delete"].includes(action) ? ["--version"] : [];
|
|
72
142
|
for (const flag of Object.keys(flags)) if (!allowed.includes(flag)) throw new Error(`${flag} is not supported for ${action}`);
|
|
73
143
|
const needsId = ["get", "edit", "complete", "reopen", "delete"].includes(action);
|
|
74
|
-
if (needsId ? !id || !UUID.test(id) : id !== void 0) throw new Error(needsId ? "A valid Todo UUID is required" : "Unexpected Todo ID");
|
|
144
|
+
if (needsId ? !id || !(UUID.test(id) || ISSUE_KEY.test(id)) : id !== void 0) throw new Error(needsId ? "A valid Todo UUID is required" : "Unexpected Todo ID");
|
|
75
145
|
if (action === "add" && (!flags["--id"] || !UUID.test(flags["--id"]))) throw new Error("add requires --id UUID; reuse it when retrying");
|
|
76
146
|
if (action === "add" && flags["--title"] === void 0) throw new Error("add requires --title");
|
|
77
147
|
if (action === "edit" && flags["--title"] === void 0 && flags["--note"] === void 0) throw new Error("edit requires --title or --note");
|
|
@@ -83,9 +153,9 @@ function parseTodoArgs(args) {
|
|
|
83
153
|
if (value === void 0 || !/^(0|[1-9][0-9]*)$/.test(value) || !Number.isSafeInteger(Number(value))) throw new Error("A non-negative safe integer --version is required");
|
|
84
154
|
version = Number(value);
|
|
85
155
|
}
|
|
86
|
-
return { action, id: action === "add" ? flags["--id"] : id, version, title: flags["--title"], note: flags["--note"] };
|
|
156
|
+
return { action, id: action === "add" ? flags["--id"] : id, version, title: flags["--title"], note: flags["--note"], ...all ? { all } : {} };
|
|
87
157
|
}
|
|
88
|
-
async function handleTodoCommand(args) {
|
|
158
|
+
async function handleTodoCommand(args, deps = {}) {
|
|
89
159
|
const command = parseTodoArgs(args);
|
|
90
160
|
if (command.action === "help") {
|
|
91
161
|
console.log(TODO_HELP);
|
|
@@ -95,20 +165,33 @@ async function handleTodoCommand(args) {
|
|
|
95
165
|
console.log(index.BUILTIN_TODO_SKILL);
|
|
96
166
|
return;
|
|
97
167
|
}
|
|
98
|
-
|
|
168
|
+
await assertAccountTodosAllowed();
|
|
169
|
+
const issues = deps.issues ?? client.sharedIssuesClient();
|
|
170
|
+
if (!issues.isDisabled()) {
|
|
171
|
+
try {
|
|
172
|
+
await client.importLegacyTodosOnce(issues);
|
|
173
|
+
const result2 = await runTodoViaIssues(command, issues);
|
|
174
|
+
console.log(JSON.stringify({ serverUrl: configuration.configuration.serverUrl, result: result2 }));
|
|
175
|
+
return;
|
|
176
|
+
} catch (error) {
|
|
177
|
+
if (!(error instanceof client.IssuesUnsupportedError)) throw new Error(format.describeIssueError(error));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (command.id !== void 0 && !UUID.test(command.id)) throw new Error("This server has no Issues; use the Todo UUID");
|
|
181
|
+
const client$1 = await authenticatedBuiltinTodoClient();
|
|
99
182
|
let result;
|
|
100
|
-
if (command.action === "list") result = await client.list();
|
|
101
|
-
else if (command.action === "add") result = await client.create(command.title, command.note ?? "", command.id);
|
|
183
|
+
if (command.action === "list") result = await client$1.list();
|
|
184
|
+
else if (command.action === "add") result = await client$1.create(command.title, command.note ?? "", command.id);
|
|
102
185
|
else {
|
|
103
|
-
const record = await client.get(command.id);
|
|
186
|
+
const record = await client$1.get(command.id);
|
|
104
187
|
if (command.action === "get") result = record;
|
|
105
188
|
else {
|
|
106
189
|
if (!record) throw new Error("Todo not found; it may have been deleted.");
|
|
107
190
|
if (record.version !== command.version) throw new Error("Todo version conflict; read the latest task before deciding what to change.");
|
|
108
191
|
if (command.action === "delete") {
|
|
109
|
-
await client.remove(record);
|
|
192
|
+
await client$1.remove(record);
|
|
110
193
|
result = { id: record.id, deleted: true };
|
|
111
|
-
} else result = await client.update(record, command.action === "edit" ? { ...command.title !== void 0 ? { title: command.title } : {}, ...command.note !== void 0 ? { note: command.note } : {} } : { status: command.action === "complete" ? "done" : "open" });
|
|
194
|
+
} else result = await client$1.update(record, command.action === "edit" ? { ...command.title !== void 0 ? { title: command.title } : {}, ...command.note !== void 0 ? { note: command.note } : {} } : { status: command.action === "complete" ? "done" : "open" });
|
|
112
195
|
}
|
|
113
196
|
}
|
|
114
197
|
console.log(JSON.stringify({ serverUrl: configuration.configuration.serverUrl, result }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as createTeamsClient } from './client-
|
|
2
|
+
import { c as createTeamsClient } from './client-C0qjAgZ_.mjs';
|
|
3
3
|
|
|
4
4
|
const CLOSED_GOAL_CHARS = 200;
|
|
5
5
|
const closed = (task) => task.status === "done" || task.status === "cancelled";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-D28MY1Bv.cjs');
|
|
4
4
|
var require$$0 = require('fs');
|
|
5
5
|
var child_process = require('child_process');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('node:util');
|
|
8
|
-
require('./configuration-
|
|
8
|
+
require('./configuration-ClUt7pqs.cjs');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:os');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-BFSsS_dl.cjs');
|
|
13
13
|
require('node:fs/promises');
|
|
14
14
|
|
|
15
15
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BLMi8oJK.mjs';
|
|
2
2
|
import { existsSync, unlinkSync } from 'fs';
|
|
3
3
|
import { execSync } from 'child_process';
|
|
4
4
|
import 'chalk';
|
|
5
5
|
import 'node:util';
|
|
6
|
-
import './configuration-
|
|
6
|
+
import './configuration-4pG95tsq.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-DbGqY8Ej.mjs';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
12
|
|
|
13
13
|
const PLIST_LABEL = "com.happy-cli.daemon";
|