very-happy-cli 0.2.185 → 0.2.187
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-CCqL9mP1.cjs → AcpBackend-B2-ReWTo.cjs} +3 -3
- package/dist/{AcpBackend-DkoqWhTa.mjs → AcpBackend-C4Emg-H3.mjs} +3 -3
- package/dist/{AcpSessionManager-DrtAJQUH.cjs → AcpSessionManager-DR4-oZCz.cjs} +2 -2
- package/dist/{AcpSessionManager-BNPex8tJ.mjs → AcpSessionManager-Nard_zFS.mjs} +2 -2
- package/dist/{BasePermissionHandler-Dd4oGPDg.mjs → BasePermissionHandler-Bk9DmVZH.mjs} +1 -1
- package/dist/{BasePermissionHandler-DJZITwmL.cjs → BasePermissionHandler-CZ19WzsP.cjs} +1 -1
- package/dist/{acpSessionResume-_2NtETqb.mjs → acpSessionResume-DPSfMe7r.mjs} +1 -1
- package/dist/{acpSessionResume-umHzSMbQ.cjs → acpSessionResume-Hto_b8MK.cjs} +1 -1
- package/dist/{agentHome-Dv_hRIt7.mjs → agentHome-4-odnrAk.mjs} +4 -4
- package/dist/{agentHome-CmIMqMWy.cjs → agentHome-Mveyfa24.cjs} +4 -4
- package/dist/{api-BSz8MYte.cjs → api-DVEzYcoy.cjs} +10 -10
- package/dist/{api-BTS8mqLy.mjs → api-cVvbFZVK.mjs} +10 -10
- package/dist/{apiMachine-utCDabnO.cjs → apiMachine-Bd1C_JN6.cjs} +14 -14
- package/dist/{apiMachine-BcjccOmd.mjs → apiMachine-M7qY1izH.mjs} +14 -14
- package/dist/{attachmentContent-hkdGP2NV.cjs → attachmentContent-D8hViGiA.cjs} +2 -2
- package/dist/{attachmentContent-DpOzgDTw.mjs → attachmentContent-NNF-Eo4O.mjs} +2 -2
- package/dist/{auth-BKD2U9S2.mjs → auth-BCHL8Fx5.mjs} +5 -5
- package/dist/{auth-DzXdF08E.cjs → auth-BHw8be0X.cjs} +8 -8
- package/dist/{auth-CpbTj74y.mjs → auth-CKNEKwEV.mjs} +8 -8
- package/dist/{auth-B8nCUEiK.cjs → auth-b_1h0677.cjs} +5 -5
- package/dist/{auto-C-NK2JS8.mjs → auto-D716QYa3.mjs} +19 -19
- package/dist/{auto-E3ouHO37.cjs → auto-Da4rCLal.cjs} +19 -19
- package/dist/{bootstrap-DV4dqeCe.mjs → bootstrap-CndcegDb.mjs} +2 -2
- package/dist/{bootstrap-DIMkxIbR.cjs → bootstrap-j2RuoHVy.cjs} +2 -2
- package/dist/{browser-C0xt1NE-.mjs → browser-CLsM513o.mjs} +1 -1
- package/dist/{browser-Ch50ZchJ.cjs → browser-DIYTnD_T.cjs} +1 -1
- package/dist/{claudeLocal-D-U3fIdS.mjs → claudeLocal-3HbTx7K-.mjs} +7 -6
- package/dist/{claudeLocal-Curd8-dn.cjs → claudeLocal-C_uUbEO_.cjs} +9 -8
- package/dist/{claudeLocalLauncher-BEJ9Wad_.cjs → claudeLocalLauncher-BxWouVYk.cjs} +11 -11
- package/dist/{claudeLocalLauncher-BTNUVzRK.mjs → claudeLocalLauncher-DXh2chq3.mjs} +11 -11
- package/dist/{claudeSessionFork-JPEHVbfR.mjs → claudeSessionFork-B4olbwfj.mjs} +1 -1
- package/dist/{claudeSessionFork-DMdeScGk.cjs → claudeSessionFork-CsU96yXX.cjs} +1 -1
- package/dist/{client-D2lOnvzs.mjs → client-C8w9aQYe.mjs} +2 -2
- package/dist/{client-dpo5EbS9.cjs → client-CCy72Phz.cjs} +14 -5
- package/dist/{client-qgKef7S6.cjs → client-CWSfPlGD.cjs} +2 -2
- package/dist/{client-D1rJt15-.mjs → client-D8p1YjVt.mjs} +14 -5
- package/dist/{client-Ct1rnpJw.mjs → client-Zqg7DXHl.mjs} +2 -2
- package/dist/{client-C54hMWx6.cjs → client-q1aNOKgy.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +18 -17
- package/dist/codex/happyMcpStdioBridge.mjs +18 -17
- package/dist/{codexAppServerClient-CM3O0zHW.mjs → codexAppServerClient-Csc-XsRV.mjs} +3 -3
- package/dist/{codexAppServerClient-DGeqZViU.cjs → codexAppServerClient-g8npaIU9.cjs} +3 -3
- package/dist/{codexCommand-CkdopWS7.mjs → codexCommand-BS-foS_R.mjs} +43 -43
- package/dist/{codexCommand-D_8fbJEk.cjs → codexCommand-BV8pTAtv.cjs} +43 -43
- package/dist/{codexTermination-MG2j2DDX.cjs → codexTermination-B5WgZAWO.cjs} +1 -1
- package/dist/{codexTermination-FO52Ahcx.mjs → codexTermination-lOO15mt2.mjs} +1 -1
- package/dist/{config-IDbpY1Am.cjs → config-BOnZRJIG.cjs} +3 -3
- package/dist/{config-CppOKnWe.mjs → config-Ba5ufl-D.mjs} +3 -3
- package/dist/{configuration-HPdj5Til.mjs → configuration-8EAa2X9P.mjs} +1 -1
- package/dist/{configuration-CwfmwaLU.cjs → configuration-CAfdO4IC.cjs} +1 -1
- package/dist/{connect-BNlBIAM8.cjs → connect-2hWuvxRM.cjs} +13 -13
- package/dist/{connect-1YK7vPbW.mjs → connect-BHWHNe54.mjs} +13 -13
- package/dist/{context-DetK5c-x.mjs → context-B-jybQhf.mjs} +1 -1
- package/dist/{context-D3vDWjiI.cjs → context-BtCz06PX.cjs} +1 -1
- package/dist/{controlClient-DBylxaEh.mjs → controlClient-O-vf2MkJ.mjs} +3 -3
- package/dist/{controlClient-DTMI1aTp.cjs → controlClient-mH9AxBwT.cjs} +3 -3
- package/dist/{createSessionMetadata-D2Ll7PlQ.cjs → createSessionMetadata-Bcn7b8QB.cjs} +2 -2
- package/dist/{createSessionMetadata-D8pfpX4V.mjs → createSessionMetadata-HlzlfP0U.mjs} +2 -2
- package/dist/{daemonSupervisor-DfzrtNhM.mjs → daemonSupervisor-BxohggqN.mjs} +40 -1
- package/dist/{daemonSupervisor-57JYYzMf.cjs → daemonSupervisor-alqGPANc.cjs} +43 -1
- package/dist/{defaultPermissionMode-DVXkcryy.cjs → defaultPermissionMode-BN3PdltF.cjs} +2 -2
- package/dist/{defaultPermissionMode-Bkhj_DwT.mjs → defaultPermissionMode-BPDeX4S8.mjs} +2 -2
- package/dist/{deterministicJson-cEWItQun.mjs → deterministicJson-CruOxFA6.mjs} +14 -14
- package/dist/{deterministicJson-DUCYjhHe.cjs → deterministicJson-D9pZQhU9.cjs} +14 -14
- package/dist/{doctor-DpWtxNeT.mjs → doctor-BNhLBBTK.mjs} +7 -7
- package/dist/{doctor-tLRILlmz.cjs → doctor-lHD1YZH6.cjs} +7 -7
- package/dist/{downloadTarget-Ci5wcYC2.cjs → downloadTarget-BhkQxTa8.cjs} +6 -6
- package/dist/{downloadTarget-B5b5BHb2.mjs → downloadTarget-ByTxs_N5.mjs} +6 -6
- package/dist/{ensureDaemonRunning-Dsv8UPwx.cjs → ensureDaemonRunning-BiCK6RiS.cjs} +5 -5
- package/dist/{ensureDaemonRunning-GDGwNDGF.mjs → ensureDaemonRunning-Cv0AMaHK.mjs} +5 -5
- package/dist/{handleResumeCommand-DW7Ml1u5.mjs → handleResumeCommand-Cy_KW0LN.mjs} +5 -5
- package/dist/{handleResumeCommand-CncudrQd.cjs → handleResumeCommand-WB4VDeKk.cjs} +5 -5
- package/dist/{index-BEHzEYP0.cjs → index-B44ft-m4.cjs} +40 -40
- package/dist/{index-DisBaRvM.mjs → index-B9f1vKcC.mjs} +96 -0
- package/dist/{index-Dzb_Bsfu.cjs → index-Bcp-PEGc.cjs} +4 -4
- package/dist/{index-DRWlaLbe.mjs → index-BpSpw6jG.mjs} +3 -3
- package/dist/{index-Bh806Q-1.cjs → index-BpWESchl.cjs} +3 -3
- package/dist/{index-Ub-5xbcU.cjs → index-BumVulwx.cjs} +96 -0
- package/dist/{index-bT1X9Brv.mjs → index-CVMbboXv.mjs} +7 -7
- package/dist/{index-C1qLnBOk.mjs → index-CdOz1uDl.mjs} +41 -41
- package/dist/{index-Vx4EQ6wI.cjs → index-Vtcax4oD.cjs} +7 -7
- package/dist/{index-Wf6mKJq9.mjs → index-lWXWV0H2.mjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-F3rP8tBU.mjs → install-B8O1JpJH.mjs} +1 -1
- package/dist/{install-BATFlr_l.cjs → install-BOHlqewf.cjs} +1 -1
- package/dist/{install-CRs4tGBa.cjs → install-DdRVv9IS.cjs} +3 -3
- package/dist/{install-DmF9wfwV.mjs → install-mK93DJ6L.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-CG9jFcML.mjs → lidState-LtdUCXi-.mjs} +1 -1
- package/dist/{lidState-wwiu6M3p.cjs → lidState-XyjQaZtU.cjs} +1 -1
- package/dist/{localHappyAgentAuth-UoytSUX0.cjs → localHappyAgentAuth-C9Aj_wGD.cjs} +1 -1
- package/dist/{localHappyAgentAuth-CWha8BiX.mjs → localHappyAgentAuth-DqFE0Adr.mjs} +1 -1
- package/dist/{logger-CIUMiSLo.cjs → logger-BILSzq2s.cjs} +2 -2
- package/dist/{logger-BjXkscIr.mjs → logger-SAU4uSs4.mjs} +2 -2
- package/dist/{machineMetadata-BPlyxzxb.cjs → machineMetadata-C5TgUTpD.cjs} +3 -3
- package/dist/{machineMetadata-Ca4Dpy6s.mjs → machineMetadata-ZVnihOuL.mjs} +3 -3
- package/dist/{main-CS1U9i4s.mjs → main-BjOHtX8u.mjs} +47 -47
- package/dist/{main-FD8mmcsK.cjs → main-CVfx_-l7.cjs} +47 -47
- package/dist/{mcp-C7Rm1dTM.cjs → mcp-By9XK193.cjs} +15 -15
- package/dist/{mcp-BS6rdR8p.mjs → mcp-CWVr7KbQ.mjs} +15 -15
- package/dist/{mirrorProtocol-C3Anki4S.mjs → mirrorProtocol-BI6XbokT.mjs} +3 -3
- package/dist/{mirrorProtocol-CMJ2HOZF.cjs → mirrorProtocol-C0wyaesn.cjs} +3 -3
- package/dist/{package-Do0Y9bGA.mjs → package-BMBwnCn3.mjs} +10 -10
- package/dist/{package-CRDjc5vK.cjs → package-Bbfq2KR7.cjs} +10 -10
- package/dist/{panels-C-jss7nF.mjs → panels-CbIUwV6q.mjs} +5 -5
- package/dist/{panels-DwTHrZuo.cjs → panels-rQmysHlY.cjs} +5 -5
- package/dist/{peerTools-SLRntgX6.cjs → peerTools-CZfiq_Dx.cjs} +5 -5
- package/dist/{peerTools-CL7zBxlC.mjs → peerTools-CyruQrOo.mjs} +5 -5
- package/dist/{persistence-CmVwM5uq.mjs → persistence-C7T3HYjq.mjs} +2 -2
- package/dist/{persistence-CNWBdUH2.cjs → persistence-DPeSC0SK.cjs} +2 -2
- package/dist/{piRunnerArgs-K0K9Y0Yq.mjs → piRunnerArgs-CsWompo8.mjs} +1 -1
- package/dist/{piRunnerArgs-CXJx3PPx.cjs → piRunnerArgs-DAq8vIpP.cjs} +1 -1
- package/dist/{piRuntime-Bv41vG05.cjs → piRuntime-CFqlQFoz.cjs} +2 -2
- package/dist/{piRuntime-BSoHy-QJ.mjs → piRuntime-Dxd8Gfun.mjs} +2 -2
- package/dist/{piTerminal-B8acGxsm.mjs → piTerminal-BssuKDtJ.mjs} +18 -18
- package/dist/{piTerminal-DSs-fnps.cjs → piTerminal-DHG3Kzve.cjs} +18 -18
- package/dist/promptCacheTtl-B8PCzE6k.cjs +76 -0
- package/dist/promptCacheTtl-Ce0TVbrx.mjs +72 -0
- package/dist/{pushNotifications-DnpJJ7VR.mjs → pushNotifications-Bi72c41d.mjs} +3 -3
- package/dist/{pushNotifications-C651e0ZZ.cjs → pushNotifications-CsSyhnHu.cjs} +3 -3
- package/dist/{query-rxLftxvh.mjs → query-BQOwsKS1.mjs} +3 -2
- package/dist/{query-DXFx2VZY.cjs → query-Cuef299f.cjs} +5 -4
- package/dist/{rateLimitWindows-D9mQRGHv.mjs → rateLimitWindows-B6IAWYN5.mjs} +1 -1
- package/dist/{rateLimitWindows-1WoBs8ln.cjs → rateLimitWindows-bfwC81Z-.cjs} +1 -1
- package/dist/{registerCommonHandlers-K-BTp2iR.cjs → registerCommonHandlers-CQC04iF3.cjs} +2 -2
- package/dist/{registerCommonHandlers-DpBxSCBi.mjs → registerCommonHandlers-qzb6TQqo.mjs} +2 -2
- package/dist/{registerKillSessionHandler-DwPEAS2G.cjs → registerKillSessionHandler-BraKB5Ks.cjs} +6 -6
- package/dist/{registerKillSessionHandler-BDxd20fg.mjs → registerKillSessionHandler-DMPrrNKX.mjs} +6 -6
- package/dist/{remoteSessionClient-DHWfDMHA.mjs → remoteSessionClient-D3XhN_sd.mjs} +5 -5
- package/dist/{remoteSessionClient-DnFblfFz.cjs → remoteSessionClient-DffolBcQ.cjs} +5 -5
- package/dist/{reportProgressTool-CYgnezAO.cjs → reportProgressTool-BieTXE_R.cjs} +3 -3
- package/dist/{reportProgressTool-DJXfK6rp.mjs → reportProgressTool-irHR-XEW.mjs} +3 -3
- package/dist/{resources-CqwHPhdK.cjs → resources-BZ_Be0qM.cjs} +1 -1
- package/dist/{resources-CLdQfe3b.mjs → resources-CLP_MpK4.mjs} +1 -1
- package/dist/{run-BChqUxs6.cjs → run-Ck_WA6Nj.cjs} +218 -46
- package/dist/{run-BkixRBWm.mjs → run-DCUaxe2S.mjs} +221 -49
- package/dist/{runClaude-Bdw9vTgv.cjs → runClaude-BUGku2Qp.cjs} +22 -22
- package/dist/{runClaude-FWTCLnVq.mjs → runClaude-BryAvfNV.mjs} +22 -22
- package/dist/{runClaudeDeps-C6mCzhtO.mjs → runClaudeDeps-BZkWM9_u.mjs} +45 -45
- package/dist/{runClaudeDeps-CN_moqup.cjs → runClaudeDeps-Dbk1VrOW.cjs} +40 -40
- package/dist/{runGemini-CzPwEltY.cjs → runGemini-B6AZ2bv0.cjs} +34 -34
- package/dist/{runGemini-CI7ut_ng.mjs → runGemini-DT379gpi.mjs} +34 -34
- package/dist/{runOpenClaw-8V2K_-lg.mjs → runOpenClaw-Bpp9mkyO.mjs} +18 -18
- package/dist/{runOpenClaw-CLw64Nmq.cjs → runOpenClaw-eBUYlIVJ.cjs} +18 -18
- package/dist/{sandbox-DD2oQTt3.cjs → sandbox-Bv4H1P6u.cjs} +4 -4
- package/dist/{sandbox-BMkBdvHW.mjs → sandbox-Z8TM9eUg.mjs} +4 -4
- package/dist/{selfCheck-0jELpLE9.cjs → selfCheck--1k2Ptf6.cjs} +37 -37
- package/dist/selfCheck-DIGghfQz.mjs +86 -0
- package/dist/{send-BoLglO1t.cjs → send-BG4KYe6f.cjs} +8 -8
- package/dist/{send-BNjwFaVp.mjs → send-CKTovWuQ.mjs} +8 -8
- package/dist/{server-Uw82k7zD.cjs → server-BTNwH-sA.cjs} +6 -6
- package/dist/{server-C5wOp8jw.mjs → server-DLpXtoiZ.mjs} +4 -4
- package/dist/{sessionLock-BTo7Cdbi.cjs → sessionLock-Cf6RlgfF.cjs} +3 -3
- package/dist/{sessionLock-YMRCi-Ec.mjs → sessionLock-DhzB5ZI9.mjs} +3 -3
- package/dist/{sessionOps-BO6AesNJ.mjs → sessionOps-CiFjBCMa.mjs} +4 -4
- package/dist/{sessionOps-BDHEzyAY.cjs → sessionOps-R52JWMnX.cjs} +4 -4
- package/dist/{sessionProvider-DLdJJV6A.cjs → sessionProvider-LATn-lZL.cjs} +5 -5
- package/dist/{sessionProvider-CB9lGJdF.mjs → sessionProvider-f2tUhwBc.mjs} +5 -5
- package/dist/{sessionScanner-3TevonZd.cjs → sessionScanner-DRzZtGtu.cjs} +3 -3
- package/dist/{sessionScanner-BkukogZy.mjs → sessionScanner-lS1puA5H.mjs} +3 -3
- package/dist/{sessions-Bx-6fXTL.mjs → sessions-D01nnjOE.mjs} +10 -10
- package/dist/{sessions-BkBcZSj7.cjs → sessions-DGd8Fin6.cjs} +10 -10
- package/dist/{setupOfflineReconnection-DMfoVL-0.cjs → setupOfflineReconnection-Ds7ywGwR.cjs} +2 -2
- package/dist/{setupOfflineReconnection-DYzysFFJ.mjs → setupOfflineReconnection-UApZjcU5.mjs} +2 -2
- package/dist/{spawn-DvyBhowH.cjs → spawn-CT3g4p8A.cjs} +14 -14
- package/dist/{spawn-CHC32rLr.mjs → spawn-ct8aSMA8.mjs} +14 -14
- package/dist/{spawnAgents-D15n6tAj.cjs → spawnAgents-DsJSyLDl.cjs} +1 -1
- package/dist/{spawnAgents-jXo9jIYo.mjs → spawnAgents-f2q31uUV.mjs} +1 -1
- package/dist/{spawnHappyCLI-WYJCvAWD.cjs → spawnHappyCLI-DedrWByd.cjs} +1 -1
- package/dist/{spawnHappyCLI-e9MaJWB0.mjs → spawnHappyCLI-Dp05fHcp.mjs} +1 -1
- package/dist/{specialCommands-DqrQnKHC.cjs → specialCommands-35KxDNE8.cjs} +3 -3
- package/dist/{specialCommands-D00VrQ09.mjs → specialCommands-CTtmGCCf.mjs} +3 -3
- package/dist/{startFileWatcher-VFZ-Bpwa.cjs → startFileWatcher-72w11DP_.cjs} +1 -1
- package/dist/{startFileWatcher-CvUUesns.mjs → startFileWatcher-BLdxJdgu.mjs} +1 -1
- package/dist/{startupSessionCreate-B6HNLg0g.mjs → startupSessionCreate-CJFR_Zom.mjs} +1 -1
- package/dist/{startupSessionCreate-B25xTUJ4.cjs → startupSessionCreate-Cy4J4-Ep.cjs} +1 -1
- package/dist/{streamRelay-GzHxvMem.mjs → streamRelay-B3FloUTT.mjs} +1 -1
- package/dist/{streamRelay-CtTpf-Li.cjs → streamRelay-Cn_uGG6m.cjs} +1 -1
- package/dist/{sync-HPnxI4fz.mjs → sync-BWX1OVQi.mjs} +1 -1
- package/dist/{sync-DliZ1zZh.cjs → sync-lxDpbIh3.cjs} +1 -1
- package/dist/{systemPrompt-CYvRvanR.cjs → systemPrompt-0DqWPGY6.cjs} +2 -2
- package/dist/{systemPrompt-D9JJpzl_.mjs → systemPrompt-BIilbjt_.mjs} +2 -2
- package/dist/{teams-D7Ad6YSf.cjs → teams-CImmJLlM.cjs} +9 -9
- package/dist/{teams-C0PJlIMz.mjs → teams-CvpB8Rdm.mjs} +9 -9
- package/dist/{template-BLJxflCH.cjs → template-DPsqlHJQ.cjs} +1 -1
- package/dist/{template-YlpbYGeQ.mjs → template-DuKZw-Sz.mjs} +1 -1
- package/dist/{time-BCGGrWp4.cjs → time-BbQJi3Eh.cjs} +1 -1
- package/dist/{time-BbJ-NWcl.mjs → time-DjS5me2q.mjs} +1 -1
- package/dist/{titleGenerator-03Y2uoZW.mjs → titleGenerator-CGdBp5lQ.mjs} +1 -1
- package/dist/{titleGenerator-IrI84kqh.cjs → titleGenerator-CfJme6ep.cjs} +2 -2
- package/dist/{todo-DOh8KaxD.mjs → todo-BxfUKwTM.mjs} +6 -6
- package/dist/{todo-DdV9_uEu.cjs → todo-rN20m9lT.cjs} +6 -6
- package/dist/tools-B_W7xJNh.mjs +137 -0
- package/dist/tools-kGtSjG8h.cjs +140 -0
- package/dist/{uninstall-oGvAKOlN.cjs → uninstall-CBQsxEmD.cjs} +3 -3
- package/dist/{uninstall-BVYlC0jw.mjs → uninstall-DUjvgLlg.mjs} +3 -3
- package/package.json +10 -10
- package/dist/selfCheck-DgWZfw5E.mjs +0 -86
- package/dist/smallFastModel-BLNgMrwR.mjs +0 -18
- package/dist/smallFastModel-D_uxGMo3.cjs +0 -21
- package/dist/tools-DeoxWyQ0.cjs +0 -63
- package/dist/tools-WXF7ApAe.mjs +0 -60
|
@@ -2,13 +2,13 @@ import { randomUUID } from 'node:crypto';
|
|
|
2
2
|
import { userInfo, hostname } from 'node:os';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { i as isValidSessionId } from './ids-DU6sLx4C.mjs';
|
|
5
|
-
import { h as listDaemonPeers } from './controlClient-
|
|
6
|
-
import { c as readPersistedSessions } from './persistence-
|
|
7
|
-
import { s as sessionWebUrl, e as sendUserMessage } from './sessionOps-
|
|
8
|
-
import { a as listRemotePeers, b as sendRemotePeerMessage, d as deliverToSession } from './remoteSessionClient-
|
|
5
|
+
import { h as listDaemonPeers } from './controlClient-O-vf2MkJ.mjs';
|
|
6
|
+
import { c as readPersistedSessions } from './persistence-C7T3HYjq.mjs';
|
|
7
|
+
import { s as sessionWebUrl, e as sendUserMessage } from './sessionOps-CiFjBCMa.mjs';
|
|
8
|
+
import { a as listRemotePeers, b as sendRemotePeerMessage, d as deliverToSession } from './remoteSessionClient-D3XhN_sd.mjs';
|
|
9
9
|
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
10
10
|
import { resolve, isAbsolute, dirname } from 'node:path';
|
|
11
|
-
import { P as ProjectsUnsupportedError, s as sharedProjectsClient } from './client-
|
|
11
|
+
import { P as ProjectsUnsupportedError, s as sharedProjectsClient } from './client-C8w9aQYe.mjs';
|
|
12
12
|
|
|
13
13
|
const SESSION_PEER_SENT_FROM = "session-peer";
|
|
14
14
|
const CLI_PEER_SENDER_ID = "cli";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFile, open, unlink, stat, rename } from 'node:fs/promises';
|
|
2
2
|
import { existsSync, constants, readFileSync, unlinkSync, renameSync } from 'node:fs';
|
|
3
|
-
import { c as configuration, P as PRIVATE_FILE_MODE, w as writePrivateFileSync, a as hardenPrivateFileSync, e as ensurePrivateDirectory, b as writePrivateFile, h as hardenPrivateFile } from './configuration-
|
|
3
|
+
import { c as configuration, P as PRIVATE_FILE_MODE, w as writePrivateFileSync, a as hardenPrivateFileSync, e as ensurePrivateDirectory, b as writePrivateFile, h as hardenPrivateFile } from './configuration-8EAa2X9P.mjs';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import { c as credentialRelayProblem, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
6
|
-
import { l as logger } from './logger-
|
|
6
|
+
import { l as logger } from './logger-SAU4uSs4.mjs';
|
|
7
7
|
|
|
8
8
|
const HIBERNATION_CAPABILITY = "agent-hibernation-v1";
|
|
9
9
|
const HOUR_MS = 60 * 60 * 1e3;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var promises = require('node:fs/promises');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
|
-
var configuration = require('./configuration-
|
|
5
|
+
var configuration = require('./configuration-CAfdO4IC.cjs');
|
|
6
6
|
var z = require('zod');
|
|
7
7
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
8
|
-
var logger = require('./logger-
|
|
8
|
+
var logger = require('./logger-BILSzq2s.cjs');
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as sanitizeAgentSessionId, n as normalizeAcpPermissionMode } from './acpSessionResume-
|
|
1
|
+
import { s as sanitizeAgentSessionId, n as normalizeAcpPermissionMode } from './acpSessionResume-DPSfMe7r.mjs';
|
|
2
2
|
|
|
3
3
|
function sanitizeSpawnModel(value) {
|
|
4
4
|
if (typeof value !== "string") return null;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var promises = require('node:fs/promises');
|
|
4
4
|
var node_crypto = require('node:crypto');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var configuration = require('./configuration-
|
|
7
|
-
var resources = require('./resources-
|
|
6
|
+
var configuration = require('./configuration-CAfdO4IC.cjs');
|
|
7
|
+
var resources = require('./resources-BZ_Be0qM.cjs');
|
|
8
8
|
|
|
9
9
|
async function publish(path, content, mode) {
|
|
10
10
|
const temporary = `${path}.${node_crypto.randomUUID()}.new`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdir, chmod, writeFile, rename } from 'node:fs/promises';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { c as configuration } from './configuration-
|
|
5
|
-
import { P as PI_TEAMS_EXTENSION } from './resources-
|
|
4
|
+
import { c as configuration } from './configuration-8EAa2X9P.mjs';
|
|
5
|
+
import { P as PI_TEAMS_EXTENSION } from './resources-CLP_MpK4.mjs';
|
|
6
6
|
|
|
7
7
|
async function publish(path, content, mode) {
|
|
8
8
|
const temporary = `${path}.${randomUUID()}.new`;
|
|
@@ -3,15 +3,15 @@ import { randomUUID } from 'node:crypto';
|
|
|
3
3
|
import { createServer } from 'node:http';
|
|
4
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
5
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
6
|
-
import { p as preparePiTeamsRuntime } from './piRuntime-
|
|
7
|
-
import { registerMcpTools, registerTerminalTitleSuggest } from './mcp-
|
|
6
|
+
import { p as preparePiTeamsRuntime } from './piRuntime-Dxd8Gfun.mjs';
|
|
7
|
+
import { registerMcpTools, registerTerminalTitleSuggest } from './mcp-CWVr7KbQ.mjs';
|
|
8
8
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import './logger-
|
|
13
|
-
import './persistence-
|
|
14
|
-
import './configuration-
|
|
12
|
+
import './logger-SAU4uSs4.mjs';
|
|
13
|
+
import './persistence-C7T3HYjq.mjs';
|
|
14
|
+
import './configuration-8EAa2X9P.mjs';
|
|
15
15
|
import 'axios';
|
|
16
16
|
import 'tweetnacl';
|
|
17
17
|
import 'socket.io-client';
|
|
@@ -19,27 +19,27 @@ import './terminals-Dlg0x3nY.mjs';
|
|
|
19
19
|
import 'node:fs';
|
|
20
20
|
import 'node:path';
|
|
21
21
|
import { r as resolveMcpTerminalId } from './terminalToolContext-CFeGeaNm.mjs';
|
|
22
|
-
import './resources-
|
|
23
|
-
import './tools-
|
|
24
|
-
import './client-
|
|
22
|
+
import './resources-CLP_MpK4.mjs';
|
|
23
|
+
import './tools-B_W7xJNh.mjs';
|
|
24
|
+
import './client-D8p1YjVt.mjs';
|
|
25
25
|
import 'node:util';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-B9f1vKcC.mjs';
|
|
27
27
|
import '@paralleldrive/cuid2';
|
|
28
|
-
import './context-
|
|
28
|
+
import './context-B-jybQhf.mjs';
|
|
29
29
|
import '@modelcontextprotocol/sdk/server/stdio.js';
|
|
30
|
-
import './controlClient-
|
|
30
|
+
import './controlClient-O-vf2MkJ.mjs';
|
|
31
31
|
import './limits-DIo7rEBR.mjs';
|
|
32
|
-
import './downloadTarget-
|
|
33
|
-
import './sessionOps-
|
|
32
|
+
import './downloadTarget-ByTxs_N5.mjs';
|
|
33
|
+
import './sessionOps-CiFjBCMa.mjs';
|
|
34
34
|
import './authRelay-DhQhkBvX.mjs';
|
|
35
|
-
import './time-
|
|
35
|
+
import './time-DjS5me2q.mjs';
|
|
36
36
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
37
|
-
import './remoteSessionClient-
|
|
37
|
+
import './remoteSessionClient-D3XhN_sd.mjs';
|
|
38
38
|
import './ids-DU6sLx4C.mjs';
|
|
39
|
-
import './bootstrap-
|
|
39
|
+
import './bootstrap-CndcegDb.mjs';
|
|
40
40
|
import './previewPath-CXN4Vag0.mjs';
|
|
41
41
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
42
|
-
import './titleGenerator-
|
|
42
|
+
import './titleGenerator-CGdBp5lQ.mjs';
|
|
43
43
|
import 'node:module';
|
|
44
44
|
import './oneShotPrompts-DT4p6RNd.mjs';
|
|
45
45
|
import './projectPath-BTBIMB57.mjs';
|
|
@@ -47,7 +47,7 @@ import 'path';
|
|
|
47
47
|
import 'url';
|
|
48
48
|
import './trimIdent-BAjmv_TG.mjs';
|
|
49
49
|
import 'chalk';
|
|
50
|
-
import './package-
|
|
50
|
+
import './package-BMBwnCn3.mjs';
|
|
51
51
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
52
52
|
|
|
53
53
|
async function startPiTerminalTools(terminalId) {
|
|
@@ -5,15 +5,15 @@ var node_crypto = require('node:crypto');
|
|
|
5
5
|
var node_http = require('node:http');
|
|
6
6
|
var mcp_js = require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
7
7
|
var streamableHttp_js = require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
8
|
-
var piRuntime = require('./piRuntime-
|
|
9
|
-
var mcp = require('./mcp-
|
|
8
|
+
var piRuntime = require('./piRuntime-CFqlQFoz.cjs');
|
|
9
|
+
var mcp = require('./mcp-By9XK193.cjs');
|
|
10
10
|
require('./agentGuidance-BtBx2xxE.cjs');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:os');
|
|
13
13
|
require('zod');
|
|
14
|
-
require('./logger-
|
|
15
|
-
require('./persistence-
|
|
16
|
-
require('./configuration-
|
|
14
|
+
require('./logger-BILSzq2s.cjs');
|
|
15
|
+
require('./persistence-DPeSC0SK.cjs');
|
|
16
|
+
require('./configuration-CAfdO4IC.cjs');
|
|
17
17
|
require('axios');
|
|
18
18
|
require('tweetnacl');
|
|
19
19
|
require('socket.io-client');
|
|
@@ -21,27 +21,27 @@ require('./terminals-B_bfC9c2.cjs');
|
|
|
21
21
|
require('node:fs');
|
|
22
22
|
require('node:path');
|
|
23
23
|
var terminalToolContext = require('./terminalToolContext-DoV9Gs7K.cjs');
|
|
24
|
-
require('./resources-
|
|
25
|
-
require('./tools-
|
|
26
|
-
require('./client-
|
|
24
|
+
require('./resources-BZ_Be0qM.cjs');
|
|
25
|
+
require('./tools-kGtSjG8h.cjs');
|
|
26
|
+
require('./client-CCy72Phz.cjs');
|
|
27
27
|
require('node:util');
|
|
28
|
-
require('./index-
|
|
28
|
+
require('./index-BumVulwx.cjs');
|
|
29
29
|
require('@paralleldrive/cuid2');
|
|
30
|
-
require('./context-
|
|
30
|
+
require('./context-BtCz06PX.cjs');
|
|
31
31
|
require('@modelcontextprotocol/sdk/server/stdio.js');
|
|
32
|
-
require('./controlClient-
|
|
32
|
+
require('./controlClient-mH9AxBwT.cjs');
|
|
33
33
|
require('./limits-C-a7gr04.cjs');
|
|
34
|
-
require('./downloadTarget-
|
|
35
|
-
require('./sessionOps-
|
|
34
|
+
require('./downloadTarget-BhkQxTa8.cjs');
|
|
35
|
+
require('./sessionOps-R52JWMnX.cjs');
|
|
36
36
|
require('./authRelay-Dy1qU9td.cjs');
|
|
37
|
-
require('./time-
|
|
37
|
+
require('./time-BbQJi3Eh.cjs');
|
|
38
38
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
39
|
-
require('./remoteSessionClient-
|
|
39
|
+
require('./remoteSessionClient-DffolBcQ.cjs');
|
|
40
40
|
require('./ids-B6ZC0HGt.cjs');
|
|
41
|
-
require('./bootstrap-
|
|
41
|
+
require('./bootstrap-j2RuoHVy.cjs');
|
|
42
42
|
require('./previewPath-B0rBdhy1.cjs');
|
|
43
43
|
require('./terminalTitleSuggest-DhvRFX3H.cjs');
|
|
44
|
-
require('./titleGenerator-
|
|
44
|
+
require('./titleGenerator-CfJme6ep.cjs');
|
|
45
45
|
require('node:module');
|
|
46
46
|
require('./oneShotPrompts-CL0dip9C.cjs');
|
|
47
47
|
require('./projectPath-C3ioB4Bu.cjs');
|
|
@@ -49,7 +49,7 @@ require('path');
|
|
|
49
49
|
require('url');
|
|
50
50
|
require('./trimIdent-4gvk9Wk6.cjs');
|
|
51
51
|
require('chalk');
|
|
52
|
-
require('./package-
|
|
52
|
+
require('./package-Bbfq2KR7.cjs');
|
|
53
53
|
require('./tmuxSocket-D-Xt6Vn-.cjs');
|
|
54
54
|
|
|
55
55
|
async function startPiTerminalTools(terminalId) {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var node_fs = require('node:fs');
|
|
4
|
+
var os = require('node:os');
|
|
5
|
+
var path = require('node:path');
|
|
6
|
+
|
|
7
|
+
function ensureLocalProxyBypass(env) {
|
|
8
|
+
const existing = env.NO_PROXY ?? env.no_proxy ?? "";
|
|
9
|
+
const entries = existing.split(",").map((s) => s.trim()).filter(Boolean);
|
|
10
|
+
const toAdd = ["127.0.0.1", "localhost", "::1"].filter((h) => !entries.includes(h));
|
|
11
|
+
if (toAdd.length === 0) return;
|
|
12
|
+
const updated = existing ? `${existing},${toAdd.join(",")}` : toAdd.join(",");
|
|
13
|
+
env.NO_PROXY = updated;
|
|
14
|
+
env.no_proxy = updated;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const SMALL_FAST_MODEL = "claude-haiku-4-5-20251001";
|
|
18
|
+
function pinSmallFastModel(env) {
|
|
19
|
+
if (!env.ANTHROPIC_SMALL_FAST_MODEL) {
|
|
20
|
+
env.ANTHROPIC_SMALL_FAST_MODEL = SMALL_FAST_MODEL;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const HAPPY_PROMPT_CACHE_TTL_ENV = "HAPPY_CLAUDE_PROMPT_CACHE_TTL";
|
|
25
|
+
const DEFAULT_PROMPT_CACHE_TTL = "1h";
|
|
26
|
+
const CLAUDE_TTL_ENV_KEYS = [
|
|
27
|
+
"CLAUDE_CODE_PROMPT_CACHE_TTL",
|
|
28
|
+
"CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL",
|
|
29
|
+
"CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL",
|
|
30
|
+
"ENABLE_PROMPT_CACHING_1H",
|
|
31
|
+
"FORCE_PROMPT_CACHING_5M"
|
|
32
|
+
];
|
|
33
|
+
const CLAUDE_TTL_SETTINGS_KEYS = ["promptCacheTtl", "subagentPromptCacheTtl"];
|
|
34
|
+
function hasValue(value) {
|
|
35
|
+
return typeof value === "string" ? value.trim() !== "" : value !== void 0 && value !== null;
|
|
36
|
+
}
|
|
37
|
+
function settingsChooseTtl(doc) {
|
|
38
|
+
if (!doc || typeof doc !== "object") return false;
|
|
39
|
+
const record = doc;
|
|
40
|
+
if (CLAUDE_TTL_SETTINGS_KEYS.some((key) => hasValue(record[key]))) return true;
|
|
41
|
+
const env = record.env;
|
|
42
|
+
return !!env && typeof env === "object" && CLAUDE_TTL_ENV_KEYS.some((key) => hasValue(env[key]));
|
|
43
|
+
}
|
|
44
|
+
function decidePromptCacheTtl(env, readSettings) {
|
|
45
|
+
const own = env[HAPPY_PROMPT_CACHE_TTL_ENV]?.trim().toLowerCase();
|
|
46
|
+
if (own && own !== DEFAULT_PROMPT_CACHE_TTL) return "opted-out";
|
|
47
|
+
if (CLAUDE_TTL_ENV_KEYS.some((key) => hasValue(env[key]))) return "user-env";
|
|
48
|
+
if (readSettings().some(settingsChooseTtl)) return "user-settings";
|
|
49
|
+
if (env.HAPPY_SPAWNED_BY === "automation" && !hasValue(env.VH_AUTOMATION_STICKY)) return "one-shot-automation";
|
|
50
|
+
return "default-1h";
|
|
51
|
+
}
|
|
52
|
+
function claudeSettingsPaths(env, cwd, platform = process.platform) {
|
|
53
|
+
const configDir = env.CLAUDE_CONFIG_DIR?.trim() || path.join(os.homedir(), ".claude");
|
|
54
|
+
const paths = [path.join(configDir, "settings.json")];
|
|
55
|
+
if (cwd) paths.push(path.join(cwd, ".claude", "settings.json"), path.join(cwd, ".claude", "settings.local.json"));
|
|
56
|
+
if (platform === "darwin") paths.push("/Library/Application Support/ClaudeCode/managed-settings.json");
|
|
57
|
+
else if (platform === "win32") paths.push("C:\\Program Files\\ClaudeCode\\managed-settings.json");
|
|
58
|
+
else paths.push("/etc/claude-code/managed-settings.json");
|
|
59
|
+
return paths;
|
|
60
|
+
}
|
|
61
|
+
function readJson(path) {
|
|
62
|
+
try {
|
|
63
|
+
return JSON.parse(node_fs.readFileSync(path, "utf8"));
|
|
64
|
+
} catch {
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function applyPromptCacheTtlDefault(env, cwd) {
|
|
69
|
+
const decision = decidePromptCacheTtl(env, () => claudeSettingsPaths(env, cwd).map(readJson));
|
|
70
|
+
if (decision === "default-1h") env.CLAUDE_CODE_PROMPT_CACHE_TTL = DEFAULT_PROMPT_CACHE_TTL;
|
|
71
|
+
return decision;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
exports.applyPromptCacheTtlDefault = applyPromptCacheTtlDefault;
|
|
75
|
+
exports.ensureLocalProxyBypass = ensureLocalProxyBypass;
|
|
76
|
+
exports.pinSmallFastModel = pinSmallFastModel;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
|
|
5
|
+
function ensureLocalProxyBypass(env) {
|
|
6
|
+
const existing = env.NO_PROXY ?? env.no_proxy ?? "";
|
|
7
|
+
const entries = existing.split(",").map((s) => s.trim()).filter(Boolean);
|
|
8
|
+
const toAdd = ["127.0.0.1", "localhost", "::1"].filter((h) => !entries.includes(h));
|
|
9
|
+
if (toAdd.length === 0) return;
|
|
10
|
+
const updated = existing ? `${existing},${toAdd.join(",")}` : toAdd.join(",");
|
|
11
|
+
env.NO_PROXY = updated;
|
|
12
|
+
env.no_proxy = updated;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const SMALL_FAST_MODEL = "claude-haiku-4-5-20251001";
|
|
16
|
+
function pinSmallFastModel(env) {
|
|
17
|
+
if (!env.ANTHROPIC_SMALL_FAST_MODEL) {
|
|
18
|
+
env.ANTHROPIC_SMALL_FAST_MODEL = SMALL_FAST_MODEL;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const HAPPY_PROMPT_CACHE_TTL_ENV = "HAPPY_CLAUDE_PROMPT_CACHE_TTL";
|
|
23
|
+
const DEFAULT_PROMPT_CACHE_TTL = "1h";
|
|
24
|
+
const CLAUDE_TTL_ENV_KEYS = [
|
|
25
|
+
"CLAUDE_CODE_PROMPT_CACHE_TTL",
|
|
26
|
+
"CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL",
|
|
27
|
+
"CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL",
|
|
28
|
+
"ENABLE_PROMPT_CACHING_1H",
|
|
29
|
+
"FORCE_PROMPT_CACHING_5M"
|
|
30
|
+
];
|
|
31
|
+
const CLAUDE_TTL_SETTINGS_KEYS = ["promptCacheTtl", "subagentPromptCacheTtl"];
|
|
32
|
+
function hasValue(value) {
|
|
33
|
+
return typeof value === "string" ? value.trim() !== "" : value !== void 0 && value !== null;
|
|
34
|
+
}
|
|
35
|
+
function settingsChooseTtl(doc) {
|
|
36
|
+
if (!doc || typeof doc !== "object") return false;
|
|
37
|
+
const record = doc;
|
|
38
|
+
if (CLAUDE_TTL_SETTINGS_KEYS.some((key) => hasValue(record[key]))) return true;
|
|
39
|
+
const env = record.env;
|
|
40
|
+
return !!env && typeof env === "object" && CLAUDE_TTL_ENV_KEYS.some((key) => hasValue(env[key]));
|
|
41
|
+
}
|
|
42
|
+
function decidePromptCacheTtl(env, readSettings) {
|
|
43
|
+
const own = env[HAPPY_PROMPT_CACHE_TTL_ENV]?.trim().toLowerCase();
|
|
44
|
+
if (own && own !== DEFAULT_PROMPT_CACHE_TTL) return "opted-out";
|
|
45
|
+
if (CLAUDE_TTL_ENV_KEYS.some((key) => hasValue(env[key]))) return "user-env";
|
|
46
|
+
if (readSettings().some(settingsChooseTtl)) return "user-settings";
|
|
47
|
+
if (env.HAPPY_SPAWNED_BY === "automation" && !hasValue(env.VH_AUTOMATION_STICKY)) return "one-shot-automation";
|
|
48
|
+
return "default-1h";
|
|
49
|
+
}
|
|
50
|
+
function claudeSettingsPaths(env, cwd, platform = process.platform) {
|
|
51
|
+
const configDir = env.CLAUDE_CONFIG_DIR?.trim() || join(homedir(), ".claude");
|
|
52
|
+
const paths = [join(configDir, "settings.json")];
|
|
53
|
+
if (cwd) paths.push(join(cwd, ".claude", "settings.json"), join(cwd, ".claude", "settings.local.json"));
|
|
54
|
+
if (platform === "darwin") paths.push("/Library/Application Support/ClaudeCode/managed-settings.json");
|
|
55
|
+
else if (platform === "win32") paths.push("C:\\Program Files\\ClaudeCode\\managed-settings.json");
|
|
56
|
+
else paths.push("/etc/claude-code/managed-settings.json");
|
|
57
|
+
return paths;
|
|
58
|
+
}
|
|
59
|
+
function readJson(path) {
|
|
60
|
+
try {
|
|
61
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
62
|
+
} catch {
|
|
63
|
+
return void 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function applyPromptCacheTtlDefault(env, cwd) {
|
|
67
|
+
const decision = decidePromptCacheTtl(env, () => claudeSettingsPaths(env, cwd).map(readJson));
|
|
68
|
+
if (decision === "default-1h") env.CLAUDE_CODE_PROMPT_CACHE_TTL = DEFAULT_PROMPT_CACHE_TTL;
|
|
69
|
+
return decision;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { applyPromptCacheTtlDefault as a, ensureLocalProxyBypass as e, pinSmallFastModel as p };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { u as AgentVersionsSchema } from './index-
|
|
2
|
+
import { u as AgentVersionsSchema } from './index-B9f1vKcC.mjs';
|
|
3
3
|
import axios from 'axios';
|
|
4
|
-
import { l as logger } from './logger-
|
|
5
|
-
import { c as configuration } from './configuration-
|
|
4
|
+
import { l as logger } from './logger-SAU4uSs4.mjs';
|
|
5
|
+
import { c as configuration } from './configuration-8EAa2X9P.mjs';
|
|
6
6
|
import { c as contentLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
7
7
|
|
|
8
8
|
z.object({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var z = require('zod');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-BumVulwx.cjs');
|
|
5
5
|
var axios = require('axios');
|
|
6
|
-
var logger = require('./logger-
|
|
7
|
-
var configuration = require('./configuration-
|
|
6
|
+
var logger = require('./logger-BILSzq2s.cjs');
|
|
7
|
+
var configuration = require('./configuration-CAfdO4IC.cjs');
|
|
8
8
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
9
9
|
|
|
10
10
|
z.z.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { query as query$1 } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
-
import { p as pinSmallFastModel, e as ensureLocalProxyBypass } from './
|
|
3
|
-
import { l as logger } from './logger-
|
|
2
|
+
import { p as pinSmallFastModel, a as applyPromptCacheTtlDefault, e as ensureLocalProxyBypass } from './promptCacheTtl-Ce0TVbrx.mjs';
|
|
3
|
+
import { l as logger } from './logger-SAU4uSs4.mjs';
|
|
4
4
|
import { s as snapshotTree, k as killSurvivors } from './processTreeSnapshot-CuLJDNC-.mjs';
|
|
5
5
|
|
|
6
6
|
const HAPPY_DEFAULT_ENTRYPOINT = "remote_mobile";
|
|
@@ -106,6 +106,7 @@ function query(params) {
|
|
|
106
106
|
env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS = "1";
|
|
107
107
|
}
|
|
108
108
|
pinSmallFastModel(env);
|
|
109
|
+
applyPromptCacheTtlDefault(env, opts?.cwd);
|
|
109
110
|
if (opts?.mcpServers && Object.keys(opts.mcpServers).length > 0) {
|
|
110
111
|
ensureLocalProxyBypass(env);
|
|
111
112
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var claudeAgentSdk = require('@anthropic-ai/claude-agent-sdk');
|
|
4
|
-
var
|
|
5
|
-
var logger = require('./logger-
|
|
4
|
+
var promptCacheTtl = require('./promptCacheTtl-B8PCzE6k.cjs');
|
|
5
|
+
var logger = require('./logger-BILSzq2s.cjs');
|
|
6
6
|
var processTreeSnapshot = require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
7
7
|
|
|
8
8
|
const HAPPY_DEFAULT_ENTRYPOINT = "remote_mobile";
|
|
@@ -107,9 +107,10 @@ function query(params) {
|
|
|
107
107
|
if (env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS === void 0) {
|
|
108
108
|
env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS = "1";
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
promptCacheTtl.pinSmallFastModel(env);
|
|
111
|
+
promptCacheTtl.applyPromptCacheTtlDefault(env, opts?.cwd);
|
|
111
112
|
if (opts?.mcpServers && Object.keys(opts.mcpServers).length > 0) {
|
|
112
|
-
|
|
113
|
+
promptCacheTtl.ensureLocalProxyBypass(env);
|
|
113
114
|
}
|
|
114
115
|
if (sdkOptions.allowDangerouslySkipPermissions && typeof process.getuid === "function" && process.getuid() === 0 && env.IS_SANDBOX === void 0) {
|
|
115
116
|
env.IS_SANDBOX = "1";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-BILSzq2s.cjs');
|
|
4
4
|
var child_process = require('child_process');
|
|
5
5
|
var util = require('util');
|
|
6
6
|
var fs = require('fs/promises');
|
|
@@ -9,7 +9,7 @@ var require$$1 = require('path');
|
|
|
9
9
|
var spawn = require('cross-spawn');
|
|
10
10
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
11
11
|
var os = require('os');
|
|
12
|
-
var configuration = require('./configuration-
|
|
12
|
+
var configuration = require('./configuration-CAfdO4IC.cjs');
|
|
13
13
|
|
|
14
14
|
function run$1(args, options) {
|
|
15
15
|
const RUNNER_PATH = require$$1.resolve(require$$1.join(projectPath.projectPath(), "scripts", "ripgrep_launcher.cjs"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-SAU4uSs4.mjs';
|
|
2
2
|
import { spawn as spawn$1, exec } from 'child_process';
|
|
3
3
|
import { promisify } from 'util';
|
|
4
4
|
import { mkdir, writeFile, appendFile, stat, rename, unlink, readdir, readFile } from 'fs/promises';
|
|
@@ -7,7 +7,7 @@ import { resolve, join, sep } from 'path';
|
|
|
7
7
|
import { spawn } from 'cross-spawn';
|
|
8
8
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
9
9
|
import { platform } from 'os';
|
|
10
|
-
import { c as configuration } from './configuration-
|
|
10
|
+
import { c as configuration } from './configuration-8EAa2X9P.mjs';
|
|
11
11
|
|
|
12
12
|
function run$1(args, options) {
|
|
13
13
|
const RUNNER_PATH = resolve(join(projectPath(), "scripts", "ripgrep_launcher.cjs"));
|
package/dist/{registerKillSessionHandler-DwPEAS2G.cjs → registerKillSessionHandler-BraKB5Ks.cjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-BILSzq2s.cjs');
|
|
4
4
|
require('axios');
|
|
5
5
|
require('node:events');
|
|
6
6
|
require('socket.io-client');
|
|
7
|
-
require('./pushNotifications-
|
|
7
|
+
require('./pushNotifications-CsSyhnHu.cjs');
|
|
8
8
|
require('node:crypto');
|
|
9
9
|
require('tweetnacl');
|
|
10
|
-
require('./configuration-
|
|
11
|
-
require('./index-
|
|
12
|
-
require('./registerCommonHandlers-
|
|
10
|
+
require('./configuration-CAfdO4IC.cjs');
|
|
11
|
+
require('./index-BumVulwx.cjs');
|
|
12
|
+
require('./registerCommonHandlers-CQC04iF3.cjs');
|
|
13
13
|
require('os');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('@paralleldrive/cuid2');
|
|
16
|
-
require('./persistence-
|
|
16
|
+
require('./persistence-DPeSC0SK.cjs');
|
|
17
17
|
require('chalk');
|
|
18
18
|
require('./types-CRS-srZK.cjs');
|
|
19
19
|
|
package/dist/{registerKillSessionHandler-BDxd20fg.mjs → registerKillSessionHandler-DMPrrNKX.mjs}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-SAU4uSs4.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import 'socket.io-client';
|
|
5
|
-
import './pushNotifications-
|
|
5
|
+
import './pushNotifications-Bi72c41d.mjs';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'tweetnacl';
|
|
8
|
-
import './configuration-
|
|
9
|
-
import './index-
|
|
10
|
-
import './registerCommonHandlers-
|
|
8
|
+
import './configuration-8EAa2X9P.mjs';
|
|
9
|
+
import './index-B9f1vKcC.mjs';
|
|
10
|
+
import './registerCommonHandlers-qzb6TQqo.mjs';
|
|
11
11
|
import 'os';
|
|
12
12
|
import 'child_process';
|
|
13
13
|
import '@paralleldrive/cuid2';
|
|
14
|
-
import './persistence-
|
|
14
|
+
import './persistence-C7T3HYjq.mjs';
|
|
15
15
|
import 'chalk';
|
|
16
16
|
import './types-CkqAACXx.mjs';
|
|
17
17
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as resumeDaemonSession, l as listDaemonSessions } from './controlClient-
|
|
2
|
-
import { d as archiveSession, u as unarchiveSession, h as sessionLiveness, e as sendUserMessage, i as readSessionState, o as openUserScopedSocket } from './sessionOps-
|
|
3
|
-
import { d as delay } from './time-
|
|
1
|
+
import { j as resumeDaemonSession, l as listDaemonSessions } from './controlClient-O-vf2MkJ.mjs';
|
|
2
|
+
import { d as archiveSession, u as unarchiveSession, h as sessionLiveness, e as sendUserMessage, i as readSessionState, o as openUserScopedSocket } from './sessionOps-CiFjBCMa.mjs';
|
|
3
|
+
import { d as delay } from './time-DjS5me2q.mjs';
|
|
4
4
|
import axios from 'axios';
|
|
5
5
|
import { hostname } from 'node:os';
|
|
6
|
-
import { c as configuration } from './configuration-
|
|
7
|
-
import { r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-
|
|
6
|
+
import { c as configuration } from './configuration-8EAa2X9P.mjs';
|
|
7
|
+
import { r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-C7T3HYjq.mjs';
|
|
8
8
|
import { randomUUID } from 'node:crypto';
|
|
9
9
|
|
|
10
10
|
const ACTIVE_FRESH_WINDOW_MS = 15 * 60 * 1e3;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var controlClient = require('./controlClient-
|
|
4
|
-
var sessionOps = require('./sessionOps-
|
|
5
|
-
var time = require('./time-
|
|
3
|
+
var controlClient = require('./controlClient-mH9AxBwT.cjs');
|
|
4
|
+
var sessionOps = require('./sessionOps-R52JWMnX.cjs');
|
|
5
|
+
var time = require('./time-BbQJi3Eh.cjs');
|
|
6
6
|
var axios = require('axios');
|
|
7
7
|
var os = require('node:os');
|
|
8
|
-
var configuration = require('./configuration-
|
|
9
|
-
var persistence = require('./persistence-
|
|
8
|
+
var configuration = require('./configuration-CAfdO4IC.cjs');
|
|
9
|
+
var persistence = require('./persistence-DPeSC0SK.cjs');
|
|
10
10
|
var node_crypto = require('node:crypto');
|
|
11
11
|
|
|
12
12
|
const ACTIVE_FRESH_WINDOW_MS = 15 * 60 * 1e3;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var z = require('zod');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var client = require('./client-
|
|
4
|
+
var index = require('./index-BumVulwx.cjs');
|
|
5
|
+
var client = require('./client-CWSfPlGD.cjs');
|
|
6
6
|
var precheckCompat = require('./precheckCompat-CWOi5c9L.cjs');
|
|
7
|
-
var client$1 = require('./client-
|
|
7
|
+
var client$1 = require('./client-q1aNOKgy.cjs');
|
|
8
8
|
var prompt = require('./prompt-Bof2aQkI.cjs');
|
|
9
9
|
var agentGuidance = require('./agentGuidance-BtBx2xxE.cjs');
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { o as AutomationNameSchema, d as AUTOMATION_ATTENTION_REASON_MAX_CHARS, e as AUTOMATION_SUMMARY_MAX_CHARS, c as AutomationPrecheckSchema, p as AutomationConcurrencySchema, q as AutomationActionSchema, t as AutomationTriggerSchema } from './index-
|
|
3
|
-
import { a as authenticatedAutomationsClient, b as automationRunIdFromEnv } from './client-
|
|
2
|
+
import { o as AutomationNameSchema, d as AUTOMATION_ATTENTION_REASON_MAX_CHARS, e as AUTOMATION_SUMMARY_MAX_CHARS, c as AutomationPrecheckSchema, p as AutomationConcurrencySchema, q as AutomationActionSchema, t as AutomationTriggerSchema } from './index-B9f1vKcC.mjs';
|
|
3
|
+
import { a as authenticatedAutomationsClient, b as automationRunIdFromEnv } from './client-Zqg7DXHl.mjs';
|
|
4
4
|
import { u as updateAutomationChecked, c as createAutomationChecked } from './precheckCompat-DeEbilbr.mjs';
|
|
5
|
-
import { P as ProjectsUnsupportedError, a as ProjectRequestError, s as sharedProjectsClient } from './client-
|
|
5
|
+
import { P as ProjectsUnsupportedError, a as ProjectRequestError, s as sharedProjectsClient } from './client-C8w9aQYe.mjs';
|
|
6
6
|
import { f as formatContextForTool } from './prompt-QHuFx9j6.mjs';
|
|
7
7
|
import { R as REPORT_PROGRESS_TOOL_NAME, d as REPORT_PROGRESS_TOOL_TITLE, e as REPORT_PROGRESS_TOOL_DESCRIPTION } from './agentGuidance-BDYt2Qy2.mjs';
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ You coordinate; members do the work. Follow these defaults unless the user says
|
|
|
32
32
|
3. Prevent conflicts. Before delegating, name the files or modules each task will touch. Give work on the same area to one member in sequence, or agree the boundary and who rebases onto whom before both start. Relay overlaps between members yourself. Merges are serialized and yours.
|
|
33
33
|
4. Keep the team context. When the user gives a new instruction, or you make a decision, assign work, accept or return a result, or agree a conflict rule, record it at once with mcp__happy__project_note (kind decision, finding or handoff) in the team's project. After a context compaction or restart, read mcp__happy__project_context (full=true) and team_inspect before acting. If it answers "not in a project", ask the user to link this team to a project on the team page.
|
|
34
34
|
5. Write complete task briefs. Each goal states the background with the user's own words, what to do, acceptance criteria, boundaries (no merging, releasing or touching production unless the user authorized it), and the evidence to hand back (tests, screenshots, CI).
|
|
35
|
-
6. Review before accepting. A submission is not completion: check its evidence before team_accept. With team_return, say exactly what is wrong and how to fix it. Have a different member re-review security-sensitive changes. An idle member is neither done nor stuck; run team_inspect before chasing it.
|
|
35
|
+
6. Review before accepting. A submission is not completion: check its evidence before team_accept. With team_return, say exactly what is wrong and how to fix it. Have a different member re-review security-sensitive changes. An idle member is neither done nor stuck; run team_inspect before chasing it. Submissions and member messages wake you as a new turn: end your turn and wait; never poll with sleep loops, which hold those notifications back.
|
|
36
36
|
7. Report through the briefing board. With the owner_board_* tools: every decision the user must make goes on the board (owner_board_post kind decision, 2-4 options, one recommended, a stable key), never repeated in chat or member replies; refresh it with owner_board_update. Answer what you can in the stream (it is attached for you); if it needs work, say who is on it, set owner_board_update state in_progress, then owner_board_post kind answer with reply_to. Post a report for milestones (accepted, merged, released, incident conclusion) and a todo for what only the user can do offline (request_human when it blocks you); not progress, idle members or review detail. One item per topic, at most 5 open. Without the board, report conclusion first, with only what they must decide or know. Set recipientBotId on every team_message; without it the message goes to the task's assignee.
|
|
37
37
|
8. Never create a team to recover. If a team tool says this session has no team or no team scope, do not call team_create or team_join: run team_inspect, or tell the user and wait.`;
|
|
38
38
|
const TEAM_MEMBER_RULES = `Before starting, read the team's project context with mcp__happy__project_context; it returns "not in a project" when the team has none. Do only what your task asks. If your work overlaps another member's or needs a wider scope, tell your lead with team_message (recipientBotId = the lead) before going further. Submit with evidence: commands and results, artifact paths, screenshots or CI links.`;
|