very-happy-cli 0.2.183 → 0.2.185
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-B-aMuEzO.cjs → AcpBackend-CCqL9mP1.cjs} +3 -3
- package/dist/{AcpBackend-9c-Jeaxd.mjs → AcpBackend-DkoqWhTa.mjs} +3 -3
- package/dist/{AcpSessionManager-CS0FOSQk.mjs → AcpSessionManager-BNPex8tJ.mjs} +2 -2
- package/dist/{AcpSessionManager-BxXe24AV.cjs → AcpSessionManager-DrtAJQUH.cjs} +2 -2
- package/dist/{BasePermissionHandler-BREjppjP.cjs → BasePermissionHandler-DJZITwmL.cjs} +1 -1
- package/dist/{BasePermissionHandler-BJ1ID_Br.mjs → BasePermissionHandler-Dd4oGPDg.mjs} +1 -1
- package/dist/{acpSessionResume-BKtI9Jq_.mjs → acpSessionResume-_2NtETqb.mjs} +1 -1
- package/dist/{acpSessionResume-mVoJ75vI.cjs → acpSessionResume-umHzSMbQ.cjs} +1 -1
- package/dist/{agentHome-rzjm56o4.cjs → agentHome-CmIMqMWy.cjs} +4 -4
- package/dist/{agentHome-B8Ctr_Nu.mjs → agentHome-Dv_hRIt7.mjs} +4 -4
- package/dist/{api-xZiqVynF.cjs → api-BSz8MYte.cjs} +67 -17
- package/dist/{api-C29WLYkW.mjs → api-BTS8mqLy.mjs} +67 -17
- package/dist/{apiMachine-Dz6Yfk0m.mjs → apiMachine-BcjccOmd.mjs} +14 -14
- package/dist/{apiMachine-B-FNBIYG.cjs → apiMachine-utCDabnO.cjs} +14 -14
- package/dist/{attachmentContent-DwY0uIg6.mjs → attachmentContent-DpOzgDTw.mjs} +2 -2
- package/dist/{attachmentContent-COV4LF8k.cjs → attachmentContent-hkdGP2NV.cjs} +2 -2
- package/dist/{auth-CYtk9_ga.cjs → auth-B8nCUEiK.cjs} +5 -5
- package/dist/{auth-xT70IYMx.mjs → auth-BKD2U9S2.mjs} +5 -5
- package/dist/{auth-DvbSDalm.mjs → auth-CpbTj74y.mjs} +8 -8
- package/dist/{auth-D_qsnVr3.cjs → auth-DzXdF08E.cjs} +8 -8
- package/dist/{auto-IiPqvIsN.mjs → auto-C-NK2JS8.mjs} +17 -17
- package/dist/{auto-DT_PfpCx.cjs → auto-E3ouHO37.cjs} +17 -17
- package/dist/{bootstrap-C50NkfPx.cjs → bootstrap-DIMkxIbR.cjs} +2 -2
- package/dist/{bootstrap-DS8Acdhm.mjs → bootstrap-DV4dqeCe.mjs} +2 -2
- package/dist/{browser-1j9gdZoD.mjs → browser-C0xt1NE-.mjs} +1 -1
- package/dist/{browser-CxKZLd2T.cjs → browser-Ch50ZchJ.cjs} +1 -1
- package/dist/{claudeLocal-CgNWpepB.cjs → claudeLocal-Curd8-dn.cjs} +5 -5
- package/dist/{claudeLocal-U1Fa9sJo.mjs → claudeLocal-D-U3fIdS.mjs} +5 -5
- package/dist/{claudeLocalLauncher-IyFm0D6a.cjs → claudeLocalLauncher-BEJ9Wad_.cjs} +10 -10
- package/dist/{claudeLocalLauncher-BjCsfZUE.mjs → claudeLocalLauncher-BTNUVzRK.mjs} +10 -10
- package/dist/{claudeSessionFork-BUO1XdSm.cjs → claudeSessionFork-DMdeScGk.cjs} +1 -1
- package/dist/{claudeSessionFork-6-1vKISn.mjs → claudeSessionFork-JPEHVbfR.mjs} +1 -1
- package/dist/{client-DcKJ0ul_.cjs → client-C54hMWx6.cjs} +2 -2
- package/dist/{client-BgHvK7lo.mjs → client-Ct1rnpJw.mjs} +2 -2
- package/dist/{client-DfDyE322.mjs → client-D1rJt15-.mjs} +18 -5
- package/dist/{client-5_zDNdOh.mjs → client-D2lOnvzs.mjs} +2 -2
- package/dist/{client--vZueZYF.cjs → client-dpo5EbS9.cjs} +18 -5
- package/dist/{client-DYGDBD0M.cjs → client-qgKef7S6.cjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/{codexAppServerClient-DvBg4hGc.mjs → codexAppServerClient-CM3O0zHW.mjs} +3 -3
- package/dist/{codexAppServerClient-C3nrTfwY.cjs → codexAppServerClient-DGeqZViU.cjs} +3 -3
- package/dist/{codexCommand-Bqp2--g_.mjs → codexCommand-CkdopWS7.mjs} +42 -42
- package/dist/{codexCommand-DSiU6MNt.cjs → codexCommand-D_8fbJEk.cjs} +42 -42
- package/dist/{codexTermination-DsliWl_s.mjs → codexTermination-FO52Ahcx.mjs} +1 -1
- package/dist/{codexTermination-D9TRTglF.cjs → codexTermination-MG2j2DDX.cjs} +1 -1
- package/dist/{config-DeaqRn3o.mjs → config-CppOKnWe.mjs} +3 -3
- package/dist/{config-CRhWiOwi.cjs → config-IDbpY1Am.cjs} +3 -3
- package/dist/{configuration-K3I6yOjZ.cjs → configuration-CwfmwaLU.cjs} +1 -1
- package/dist/{configuration-elzht62L.mjs → configuration-HPdj5Til.mjs} +1 -1
- package/dist/{connect-CT5cOlnC.mjs → connect-1YK7vPbW.mjs} +13 -13
- package/dist/{connect-B5UbfmO3.cjs → connect-BNlBIAM8.cjs} +13 -13
- package/dist/{context-DNKNF8Yh.cjs → context-D3vDWjiI.cjs} +1 -1
- package/dist/{context-CLj1_RYF.mjs → context-DetK5c-x.mjs} +1 -1
- package/dist/{controlClient-CuYQs2aZ.mjs → controlClient-DBylxaEh.mjs} +14 -4
- package/dist/{controlClient-ChqmxgbB.cjs → controlClient-DTMI1aTp.cjs} +14 -3
- package/dist/{createSessionMetadata-QfiRx4Tf.cjs → createSessionMetadata-D2Ll7PlQ.cjs} +2 -2
- package/dist/{createSessionMetadata-C1MbLQnh.mjs → createSessionMetadata-D8pfpX4V.mjs} +2 -2
- package/dist/{defaultPermissionMode-U9LuUeQh.mjs → defaultPermissionMode-Bkhj_DwT.mjs} +2 -2
- package/dist/{defaultPermissionMode-DQmdZZIg.cjs → defaultPermissionMode-DVXkcryy.cjs} +2 -2
- package/dist/{deterministicJson-BBRUcB8i.cjs → deterministicJson-DUCYjhHe.cjs} +13 -13
- package/dist/{deterministicJson-BixlyPWV.mjs → deterministicJson-cEWItQun.mjs} +13 -13
- package/dist/{doctor-Dban2oE2.mjs → doctor-DpWtxNeT.mjs} +7 -7
- package/dist/{doctor-CKgHUV4W.cjs → doctor-tLRILlmz.cjs} +7 -7
- package/dist/{downloadTarget-VUTd9lEO.mjs → downloadTarget-B5b5BHb2.mjs} +6 -6
- package/dist/{downloadTarget-CmC11Y7E.cjs → downloadTarget-Ci5wcYC2.cjs} +6 -6
- package/dist/{ensureDaemonRunning-L0fl0cLE.cjs → ensureDaemonRunning-Dsv8UPwx.cjs} +5 -5
- package/dist/{ensureDaemonRunning-khb8Nr1n.mjs → ensureDaemonRunning-GDGwNDGF.mjs} +5 -5
- package/dist/{handleResumeCommand-D9myBN2N.cjs → handleResumeCommand-CncudrQd.cjs} +5 -5
- package/dist/{handleResumeCommand-CLDGWpTJ.mjs → handleResumeCommand-DW7Ml1u5.mjs} +5 -5
- package/dist/{index-DgA79dVw.cjs → index-BEHzEYP0.cjs} +39 -39
- package/dist/{index-BdJs0465.cjs → index-Bh806Q-1.cjs} +3 -3
- package/dist/{index-IRI8s8kz.mjs → index-C1qLnBOk.mjs} +40 -40
- package/dist/{index-CtwqBeH6.mjs → index-DRWlaLbe.mjs} +3 -3
- package/dist/{index-BptfFoXM.mjs → index-DisBaRvM.mjs} +10 -1
- package/dist/{index-y4JNyz9H.cjs → index-Dzb_Bsfu.cjs} +4 -4
- package/dist/{index-Fq-jxjsB.cjs → index-Ub-5xbcU.cjs} +10 -1
- package/dist/{index-COSjJPIv.cjs → index-Vx4EQ6wI.cjs} +4 -4
- package/dist/{index-GkkbUZX-.mjs → index-Wf6mKJq9.mjs} +4 -4
- package/dist/{index-BMZx-699.mjs → index-bT1X9Brv.mjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-cn98bTCs.cjs → install-CRs4tGBa.cjs} +3 -3
- package/dist/{install-JvCk2PJV.mjs → install-DmF9wfwV.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +11 -0
- package/dist/lib.d.mts +11 -0
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-DXeYTsrm.mjs → lidState-CG9jFcML.mjs} +1 -1
- package/dist/{lidState-Bcs5kRHi.cjs → lidState-wwiu6M3p.cjs} +1 -1
- package/dist/{localHappyAgentAuth-C1A4ChCR.mjs → localHappyAgentAuth-CWha8BiX.mjs} +1 -1
- package/dist/{localHappyAgentAuth-CypTSe42.cjs → localHappyAgentAuth-UoytSUX0.cjs} +1 -1
- package/dist/{logger-RMPh5aqe.mjs → logger-BjXkscIr.mjs} +2 -2
- package/dist/{logger-Cgwz30rK.cjs → logger-CIUMiSLo.cjs} +2 -2
- package/dist/{machineMetadata-BSOGMNRi.cjs → machineMetadata-BPlyxzxb.cjs} +3 -3
- package/dist/{machineMetadata-BTUtPRth.mjs → machineMetadata-Ca4Dpy6s.mjs} +3 -3
- package/dist/{main-DNDL6t8z.mjs → main-CS1U9i4s.mjs} +53 -45
- package/dist/{main-4iiwYpCR.cjs → main-FD8mmcsK.cjs} +53 -45
- package/dist/{mcp-DXYDPOpJ.mjs → mcp-BS6rdR8p.mjs} +15 -15
- package/dist/{mcp-C7eEoGhz.cjs → mcp-C7Rm1dTM.cjs} +15 -15
- package/dist/{mirrorProtocol-DQRy5PaT.mjs → mirrorProtocol-C3Anki4S.mjs} +3 -3
- package/dist/{mirrorProtocol-c5g5MgNc.cjs → mirrorProtocol-CMJ2HOZF.cjs} +3 -3
- package/dist/{package-3aPiSpZj.cjs → package-CRDjc5vK.cjs} +7 -7
- package/dist/{package-CTrz6U3C.mjs → package-Do0Y9bGA.mjs} +7 -7
- package/dist/{panels-B5sZ84vA.mjs → panels-C-jss7nF.mjs} +5 -5
- package/dist/{panels-BmsmKHbw.cjs → panels-DwTHrZuo.cjs} +5 -5
- package/dist/{peerTools-DIPOX033.mjs → peerTools-CL7zBxlC.mjs} +5 -5
- package/dist/{peerTools-Dxe7iCi_.cjs → peerTools-SLRntgX6.cjs} +5 -5
- package/dist/{persistence-DZRMUZZS.cjs → persistence-CNWBdUH2.cjs} +2 -2
- package/dist/{persistence-zJo4r7YI.mjs → persistence-CmVwM5uq.mjs} +2 -2
- package/dist/{piRunnerArgs-BSPiS6tZ.cjs → piRunnerArgs-CXJx3PPx.cjs} +1 -1
- package/dist/{piRunnerArgs-IVdoHUB6.mjs → piRunnerArgs-K0K9Y0Yq.mjs} +1 -1
- package/dist/{piRuntime-BvHO3vgO.mjs → piRuntime-BSoHy-QJ.mjs} +1 -1
- package/dist/{piRuntime-BJzjlMcN.cjs → piRuntime-Bv41vG05.cjs} +1 -1
- package/dist/{piTerminal-D7vBOpkE.mjs → piTerminal-B8acGxsm.mjs} +17 -17
- package/dist/{piTerminal-Cz4pW55d.cjs → piTerminal-DSs-fnps.cjs} +17 -17
- package/dist/providerBinding-B-Qbx9W2.cjs +140 -0
- package/dist/providerBinding-CYubGg-Z.mjs +132 -0
- package/dist/{pushNotifications-CgIrYml3.cjs → pushNotifications-C651e0ZZ.cjs} +3 -3
- package/dist/{pushNotifications-C4R9-1hU.mjs → pushNotifications-DnpJJ7VR.mjs} +3 -3
- package/dist/{query-CZQG1PdU.cjs → query-DXFx2VZY.cjs} +1 -1
- package/dist/{query-DKPmDsHS.mjs → query-rxLftxvh.mjs} +1 -1
- package/dist/{rateLimitWindows-CPV0nLeq.cjs → rateLimitWindows-1WoBs8ln.cjs} +1 -1
- package/dist/{rateLimitWindows-HlHATOQ0.mjs → rateLimitWindows-D9mQRGHv.mjs} +1 -1
- package/dist/{registerCommonHandlers-a9lHojSV.mjs → registerCommonHandlers-DpBxSCBi.mjs} +2 -2
- package/dist/{registerCommonHandlers-D1pC83Op.cjs → registerCommonHandlers-K-BTp2iR.cjs} +2 -2
- package/dist/{registerKillSessionHandler-Bp-fuH-w.mjs → registerKillSessionHandler-BDxd20fg.mjs} +6 -6
- package/dist/{registerKillSessionHandler-nTi2vVJy.cjs → registerKillSessionHandler-DwPEAS2G.cjs} +6 -6
- package/dist/{remoteSessionClient-Cwrddscy.mjs → remoteSessionClient-DHWfDMHA.mjs} +5 -5
- package/dist/{remoteSessionClient-HQAKAvVd.cjs → remoteSessionClient-DnFblfFz.cjs} +5 -5
- package/dist/{reportProgressTool-Be-8ADI4.cjs → reportProgressTool-CYgnezAO.cjs} +3 -3
- package/dist/{reportProgressTool-CcZ32nrd.mjs → reportProgressTool-DJXfK6rp.mjs} +3 -3
- package/dist/{run-CxRJk9qq.cjs → run-BChqUxs6.cjs} +77 -40
- package/dist/{run-BBU8GyxE.mjs → run-BkixRBWm.mjs} +77 -40
- package/dist/{runClaude-Dd5zJaUZ.cjs → runClaude-Bdw9vTgv.cjs} +39 -24
- package/dist/{runClaude-DR6pEQwd.mjs → runClaude-FWTCLnVq.mjs} +39 -24
- package/dist/{runClaudeDeps-COgZaUZm.mjs → runClaudeDeps-C6mCzhtO.mjs} +47 -43
- package/dist/{runClaudeDeps-CTtZ_1mC.cjs → runClaudeDeps-CN_moqup.cjs} +42 -38
- package/dist/{runGemini-DVoVUfPp.mjs → runGemini-CI7ut_ng.mjs} +33 -33
- package/dist/{runGemini-DX72qB92.cjs → runGemini-CzPwEltY.cjs} +33 -33
- package/dist/{runOpenClaw-BHjzmzeC.mjs → runOpenClaw-8V2K_-lg.mjs} +18 -18
- package/dist/{runOpenClaw-BSg4hFVt.cjs → runOpenClaw-CLw64Nmq.cjs} +18 -18
- package/dist/{sandbox-CWR9EqoN.mjs → sandbox-BMkBdvHW.mjs} +4 -4
- package/dist/{sandbox-D1T_hmgZ.cjs → sandbox-DD2oQTt3.cjs} +4 -4
- package/dist/{selfCheck-CE7vlnNS.cjs → selfCheck-0jELpLE9.cjs} +37 -36
- package/dist/selfCheck-DgWZfw5E.mjs +86 -0
- package/dist/{send-BDF0Zvxo.mjs → send-BNjwFaVp.mjs} +8 -8
- package/dist/{send-BxZqRCcG.cjs → send-BoLglO1t.cjs} +8 -8
- package/dist/{server-B4JtnDLF.mjs → server-C5wOp8jw.mjs} +4 -4
- package/dist/{server-DB7_70Mi.cjs → server-Uw82k7zD.cjs} +6 -6
- package/dist/{sessionLock-BXvFN6uw.cjs → sessionLock-BTo7Cdbi.cjs} +3 -3
- package/dist/{sessionLock-CXOOX-VD.mjs → sessionLock-YMRCi-Ec.mjs} +3 -3
- package/dist/{sessionOps-BWlDlFYP.cjs → sessionOps-BDHEzyAY.cjs} +4 -4
- package/dist/{sessionOps-ByVggB_q.mjs → sessionOps-BO6AesNJ.mjs} +4 -4
- package/dist/sessionProvider-CB9lGJdF.mjs +109 -0
- package/dist/sessionProvider-DLdJJV6A.cjs +114 -0
- package/dist/{sessionScanner-DkxPB5VA.cjs → sessionScanner-3TevonZd.cjs} +3 -3
- package/dist/{sessionScanner-r66RtF95.mjs → sessionScanner-BkukogZy.mjs} +3 -3
- package/dist/{sessions-BiJTxFy9.cjs → sessions-BkBcZSj7.cjs} +10 -10
- package/dist/{sessions-C1lLK_a9.mjs → sessions-Bx-6fXTL.mjs} +10 -10
- package/dist/{setupOfflineReconnection-CecTiFZ-.cjs → setupOfflineReconnection-DMfoVL-0.cjs} +2 -2
- package/dist/{setupOfflineReconnection-Bl3DuakT.mjs → setupOfflineReconnection-DYzysFFJ.mjs} +2 -2
- package/dist/{spawn-D-8MlEM6.mjs → spawn-CHC32rLr.mjs} +14 -14
- package/dist/{spawn-D79mVa3h.cjs → spawn-DvyBhowH.cjs} +14 -14
- package/dist/{spawnAgents-Sfnf-4pN.cjs → spawnAgents-D15n6tAj.cjs} +1 -1
- package/dist/{spawnAgents-DJHjq01u.mjs → spawnAgents-jXo9jIYo.mjs} +1 -1
- package/dist/{spawnHappyCLI-CQwQs9G5.cjs → spawnHappyCLI-WYJCvAWD.cjs} +1 -1
- package/dist/{spawnHappyCLI-v_bJwZ4Z.mjs → spawnHappyCLI-e9MaJWB0.mjs} +1 -1
- package/dist/{specialCommands-yMnFvS-W.mjs → specialCommands-D00VrQ09.mjs} +3 -3
- package/dist/{specialCommands-CWMVfT5s.cjs → specialCommands-DqrQnKHC.cjs} +3 -3
- package/dist/{startFileWatcher-BCDkT_tr.mjs → startFileWatcher-CvUUesns.mjs} +1 -1
- package/dist/{startFileWatcher-GW4_E7dV.cjs → startFileWatcher-VFZ-Bpwa.cjs} +1 -1
- package/dist/{startupSessionCreate-tBRa_ze8.cjs → startupSessionCreate-B25xTUJ4.cjs} +1 -1
- package/dist/{startupSessionCreate-BcAGYo51.mjs → startupSessionCreate-B6HNLg0g.mjs} +1 -1
- package/dist/{streamRelay-BZ8drtof.cjs → streamRelay-CtTpf-Li.cjs} +1 -1
- package/dist/{streamRelay-BEDiy6_b.mjs → streamRelay-GzHxvMem.mjs} +1 -1
- package/dist/{sync-BMDkyo75.cjs → sync-DliZ1zZh.cjs} +1 -1
- package/dist/{sync--QUIOuf8.mjs → sync-HPnxI4fz.mjs} +1 -1
- package/dist/{systemPrompt-DoHSXrH0.cjs → systemPrompt-CYvRvanR.cjs} +2 -2
- package/dist/{systemPrompt-O0Kd6vbA.mjs → systemPrompt-D9JJpzl_.mjs} +2 -2
- package/dist/{teams-CTF1gT48.mjs → teams-C0PJlIMz.mjs} +7 -7
- package/dist/{teams-BkZop-sP.cjs → teams-D7Ad6YSf.cjs} +7 -7
- package/dist/{template-CeC1dYe-.cjs → template-BLJxflCH.cjs} +1 -1
- package/dist/{template-D1fm22em.mjs → template-YlpbYGeQ.mjs} +1 -1
- package/dist/{time-CdCotzKU.cjs → time-BCGGrWp4.cjs} +1 -1
- package/dist/{time-B2KKdAym.mjs → time-BbJ-NWcl.mjs} +1 -1
- package/dist/{titleGenerator-BFDczskR.mjs → titleGenerator-03Y2uoZW.mjs} +1 -1
- package/dist/{titleGenerator-DZH1XqAf.cjs → titleGenerator-IrI84kqh.cjs} +2 -2
- package/dist/{todo-C2gyOUom.mjs → todo-DOh8KaxD.mjs} +6 -6
- package/dist/{todo-DnTFTHmV.cjs → todo-DdV9_uEu.cjs} +6 -6
- package/dist/{tools-C8rpwyIl.cjs → tools-DeoxWyQ0.cjs} +1 -1
- package/dist/{tools-DUjkqSQL.mjs → tools-WXF7ApAe.mjs} +1 -1
- package/dist/{uninstall-B5Ew50mZ.mjs → uninstall-BVYlC0jw.mjs} +3 -3
- package/dist/{uninstall-CKMPWTMv.cjs → uninstall-oGvAKOlN.cjs} +3 -3
- package/package.json +7 -7
- package/dist/selfCheck-ZGgBtxFQ.mjs +0 -85
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
const PROVIDER_STRIPPED_ENV_KEYS = [
|
|
8
|
+
"ANTHROPIC_API_KEY",
|
|
9
|
+
"CLAUDE_CODE_OAUTH_TOKEN",
|
|
10
|
+
"CLAUDE_CODE_OAUTH_REFRESH_TOKEN",
|
|
11
|
+
"CLAUDE_CODE_OAUTH_SCOPES",
|
|
12
|
+
"CLAUDE_CODE_USE_BEDROCK",
|
|
13
|
+
"CLAUDE_CODE_USE_VERTEX",
|
|
14
|
+
"ANTHROPIC_CUSTOM_HEADERS",
|
|
15
|
+
"ANTHROPIC_SMALL_FAST_MODEL",
|
|
16
|
+
"CLAUDE_CODE_MAX_CONTEXT_TOKENS"
|
|
17
|
+
];
|
|
18
|
+
function providersPath(happyHomeDir) {
|
|
19
|
+
return path.join(happyHomeDir, "providers.json");
|
|
20
|
+
}
|
|
21
|
+
function sessionProvidersPath(happyHomeDir) {
|
|
22
|
+
return path.join(happyHomeDir, "session-providers.json");
|
|
23
|
+
}
|
|
24
|
+
function expandHome(path$1, home = os.homedir()) {
|
|
25
|
+
return path$1 === "~" ? home : path$1.startsWith("~/") ? path.join(home, path$1.slice(2)) : path$1;
|
|
26
|
+
}
|
|
27
|
+
function readJson(path) {
|
|
28
|
+
if (!node_fs.existsSync(path)) return void 0;
|
|
29
|
+
return JSON.parse(node_fs.readFileSync(path, "utf8"));
|
|
30
|
+
}
|
|
31
|
+
function parseProvidersFile(raw) {
|
|
32
|
+
const profiles = {};
|
|
33
|
+
const src = raw && typeof raw === "object" ? raw.profiles : void 0;
|
|
34
|
+
if (src && typeof src === "object") {
|
|
35
|
+
for (const [id, p] of Object.entries(src)) {
|
|
36
|
+
if (!p || typeof p !== "object") continue;
|
|
37
|
+
const { name, baseUrl, apiKeyFile, models } = p;
|
|
38
|
+
if (typeof baseUrl !== "string" || !/^https?:\/\//.test(baseUrl) || typeof apiKeyFile !== "string" || !apiKeyFile) continue;
|
|
39
|
+
const ids = [];
|
|
40
|
+
const contextWindows = {};
|
|
41
|
+
for (const m of Array.isArray(models) ? models : []) {
|
|
42
|
+
if (typeof m === "string") ids.push(m);
|
|
43
|
+
else if (m && typeof m === "object" && typeof m.id === "string") {
|
|
44
|
+
const { id: modelId, contextWindow } = m;
|
|
45
|
+
ids.push(modelId);
|
|
46
|
+
if (typeof contextWindow === "number" && Number.isInteger(contextWindow) && contextWindow > 0) contextWindows[modelId] = contextWindow;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
profiles[id] = {
|
|
50
|
+
...typeof name === "string" ? { name } : {},
|
|
51
|
+
baseUrl: baseUrl.replace(/\/+$/, ""),
|
|
52
|
+
apiKeyFile,
|
|
53
|
+
...Array.isArray(models) ? { models: ids } : {},
|
|
54
|
+
...Object.keys(contextWindows).length > 0 ? { contextWindows } : {}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return { profiles };
|
|
59
|
+
}
|
|
60
|
+
function parseSessionProvidersFile(raw) {
|
|
61
|
+
const out = {};
|
|
62
|
+
if (!raw || typeof raw !== "object") return out;
|
|
63
|
+
for (const [sessionId, b] of Object.entries(raw)) {
|
|
64
|
+
if (!b || typeof b !== "object") continue;
|
|
65
|
+
const { profile, model } = b;
|
|
66
|
+
if (typeof profile === "string" && profile && typeof model === "string" && model) out[sessionId] = { profile, model };
|
|
67
|
+
}
|
|
68
|
+
return out;
|
|
69
|
+
}
|
|
70
|
+
function readProviders(happyHomeDir) {
|
|
71
|
+
return parseProvidersFile(readJson(providersPath(happyHomeDir)));
|
|
72
|
+
}
|
|
73
|
+
function readSessionProviders(happyHomeDir) {
|
|
74
|
+
return parseSessionProvidersFile(readJson(sessionProvidersPath(happyHomeDir)));
|
|
75
|
+
}
|
|
76
|
+
function buildProviderEnv(profile, model, token) {
|
|
77
|
+
const contextWindow = profile.contextWindows?.[model];
|
|
78
|
+
return {
|
|
79
|
+
ANTHROPIC_BASE_URL: profile.baseUrl,
|
|
80
|
+
ANTHROPIC_AUTH_TOKEN: token,
|
|
81
|
+
ANTHROPIC_MODEL: model,
|
|
82
|
+
ANTHROPIC_DEFAULT_OPUS_MODEL: model,
|
|
83
|
+
ANTHROPIC_DEFAULT_SONNET_MODEL: model,
|
|
84
|
+
ANTHROPIC_DEFAULT_HAIKU_MODEL: model,
|
|
85
|
+
ANTHROPIC_SMALL_FAST_MODEL: model,
|
|
86
|
+
CLAUDE_CODE_SUBAGENT_MODEL: model,
|
|
87
|
+
CLAUDE_CODE_NO_MODEL_FALLBACK: "1",
|
|
88
|
+
...contextWindow ? { CLAUDE_CODE_MAX_CONTEXT_TOKENS: String(contextWindow) } : {}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function resolveSessionProvider(sessionId, deps) {
|
|
92
|
+
const binding = deps.bindings[sessionId];
|
|
93
|
+
if (!binding) return null;
|
|
94
|
+
const profile = deps.providers.profiles[binding.profile];
|
|
95
|
+
if (!profile) throw new Error(`provider profile "${binding.profile}" is not defined in providers.json`);
|
|
96
|
+
const token = deps.readKey(profile.apiKeyFile).trim();
|
|
97
|
+
if (!token) throw new Error(`provider profile "${binding.profile}": api key file is empty`);
|
|
98
|
+
return {
|
|
99
|
+
profile: binding.profile,
|
|
100
|
+
model: binding.model,
|
|
101
|
+
baseUrl: profile.baseUrl,
|
|
102
|
+
env: buildProviderEnv(profile, binding.model, token),
|
|
103
|
+
unset: PROVIDER_STRIPPED_ENV_KEYS
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function loadSessionProvider(happyHomeDir, sessionId) {
|
|
107
|
+
const bindings = readSessionProviders(happyHomeDir);
|
|
108
|
+
if (!bindings[sessionId]) return null;
|
|
109
|
+
return resolveSessionProvider(sessionId, {
|
|
110
|
+
providers: readProviders(happyHomeDir),
|
|
111
|
+
bindings,
|
|
112
|
+
readKey: (p) => node_fs.readFileSync(expandHome(p), "utf8")
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function applyProviderEnv(env, provider) {
|
|
116
|
+
for (const key of provider.unset) delete env[key];
|
|
117
|
+
Object.assign(env, provider.env);
|
|
118
|
+
}
|
|
119
|
+
function updateBindings(current, sessionId, binding) {
|
|
120
|
+
const next = { ...current };
|
|
121
|
+
if (binding) next[sessionId] = binding;
|
|
122
|
+
else delete next[sessionId];
|
|
123
|
+
return next;
|
|
124
|
+
}
|
|
125
|
+
function writeSessionProviders(happyHomeDir, bindings) {
|
|
126
|
+
const path$1 = sessionProvidersPath(happyHomeDir);
|
|
127
|
+
node_fs.mkdirSync(path.dirname(path$1), { recursive: true });
|
|
128
|
+
const tmp = `${path$1}.${process.pid}.tmp`;
|
|
129
|
+
node_fs.writeFileSync(tmp, JSON.stringify(bindings, null, 2) + "\n", { mode: 384 });
|
|
130
|
+
node_fs.chmodSync(tmp, 384);
|
|
131
|
+
node_fs.renameSync(tmp, path$1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
exports.applyProviderEnv = applyProviderEnv;
|
|
135
|
+
exports.loadSessionProvider = loadSessionProvider;
|
|
136
|
+
exports.readProviders = readProviders;
|
|
137
|
+
exports.readSessionProviders = readSessionProviders;
|
|
138
|
+
exports.sessionProvidersPath = sessionProvidersPath;
|
|
139
|
+
exports.updateBindings = updateBindings;
|
|
140
|
+
exports.writeSessionProviders = writeSessionProviders;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { mkdirSync, writeFileSync, chmodSync, renameSync, existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
|
|
5
|
+
const PROVIDER_STRIPPED_ENV_KEYS = [
|
|
6
|
+
"ANTHROPIC_API_KEY",
|
|
7
|
+
"CLAUDE_CODE_OAUTH_TOKEN",
|
|
8
|
+
"CLAUDE_CODE_OAUTH_REFRESH_TOKEN",
|
|
9
|
+
"CLAUDE_CODE_OAUTH_SCOPES",
|
|
10
|
+
"CLAUDE_CODE_USE_BEDROCK",
|
|
11
|
+
"CLAUDE_CODE_USE_VERTEX",
|
|
12
|
+
"ANTHROPIC_CUSTOM_HEADERS",
|
|
13
|
+
"ANTHROPIC_SMALL_FAST_MODEL",
|
|
14
|
+
"CLAUDE_CODE_MAX_CONTEXT_TOKENS"
|
|
15
|
+
];
|
|
16
|
+
function providersPath(happyHomeDir) {
|
|
17
|
+
return join(happyHomeDir, "providers.json");
|
|
18
|
+
}
|
|
19
|
+
function sessionProvidersPath(happyHomeDir) {
|
|
20
|
+
return join(happyHomeDir, "session-providers.json");
|
|
21
|
+
}
|
|
22
|
+
function expandHome(path, home = homedir()) {
|
|
23
|
+
return path === "~" ? home : path.startsWith("~/") ? join(home, path.slice(2)) : path;
|
|
24
|
+
}
|
|
25
|
+
function readJson(path) {
|
|
26
|
+
if (!existsSync(path)) return void 0;
|
|
27
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
28
|
+
}
|
|
29
|
+
function parseProvidersFile(raw) {
|
|
30
|
+
const profiles = {};
|
|
31
|
+
const src = raw && typeof raw === "object" ? raw.profiles : void 0;
|
|
32
|
+
if (src && typeof src === "object") {
|
|
33
|
+
for (const [id, p] of Object.entries(src)) {
|
|
34
|
+
if (!p || typeof p !== "object") continue;
|
|
35
|
+
const { name, baseUrl, apiKeyFile, models } = p;
|
|
36
|
+
if (typeof baseUrl !== "string" || !/^https?:\/\//.test(baseUrl) || typeof apiKeyFile !== "string" || !apiKeyFile) continue;
|
|
37
|
+
const ids = [];
|
|
38
|
+
const contextWindows = {};
|
|
39
|
+
for (const m of Array.isArray(models) ? models : []) {
|
|
40
|
+
if (typeof m === "string") ids.push(m);
|
|
41
|
+
else if (m && typeof m === "object" && typeof m.id === "string") {
|
|
42
|
+
const { id: modelId, contextWindow } = m;
|
|
43
|
+
ids.push(modelId);
|
|
44
|
+
if (typeof contextWindow === "number" && Number.isInteger(contextWindow) && contextWindow > 0) contextWindows[modelId] = contextWindow;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
profiles[id] = {
|
|
48
|
+
...typeof name === "string" ? { name } : {},
|
|
49
|
+
baseUrl: baseUrl.replace(/\/+$/, ""),
|
|
50
|
+
apiKeyFile,
|
|
51
|
+
...Array.isArray(models) ? { models: ids } : {},
|
|
52
|
+
...Object.keys(contextWindows).length > 0 ? { contextWindows } : {}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return { profiles };
|
|
57
|
+
}
|
|
58
|
+
function parseSessionProvidersFile(raw) {
|
|
59
|
+
const out = {};
|
|
60
|
+
if (!raw || typeof raw !== "object") return out;
|
|
61
|
+
for (const [sessionId, b] of Object.entries(raw)) {
|
|
62
|
+
if (!b || typeof b !== "object") continue;
|
|
63
|
+
const { profile, model } = b;
|
|
64
|
+
if (typeof profile === "string" && profile && typeof model === "string" && model) out[sessionId] = { profile, model };
|
|
65
|
+
}
|
|
66
|
+
return out;
|
|
67
|
+
}
|
|
68
|
+
function readProviders(happyHomeDir) {
|
|
69
|
+
return parseProvidersFile(readJson(providersPath(happyHomeDir)));
|
|
70
|
+
}
|
|
71
|
+
function readSessionProviders(happyHomeDir) {
|
|
72
|
+
return parseSessionProvidersFile(readJson(sessionProvidersPath(happyHomeDir)));
|
|
73
|
+
}
|
|
74
|
+
function buildProviderEnv(profile, model, token) {
|
|
75
|
+
const contextWindow = profile.contextWindows?.[model];
|
|
76
|
+
return {
|
|
77
|
+
ANTHROPIC_BASE_URL: profile.baseUrl,
|
|
78
|
+
ANTHROPIC_AUTH_TOKEN: token,
|
|
79
|
+
ANTHROPIC_MODEL: model,
|
|
80
|
+
ANTHROPIC_DEFAULT_OPUS_MODEL: model,
|
|
81
|
+
ANTHROPIC_DEFAULT_SONNET_MODEL: model,
|
|
82
|
+
ANTHROPIC_DEFAULT_HAIKU_MODEL: model,
|
|
83
|
+
ANTHROPIC_SMALL_FAST_MODEL: model,
|
|
84
|
+
CLAUDE_CODE_SUBAGENT_MODEL: model,
|
|
85
|
+
CLAUDE_CODE_NO_MODEL_FALLBACK: "1",
|
|
86
|
+
...contextWindow ? { CLAUDE_CODE_MAX_CONTEXT_TOKENS: String(contextWindow) } : {}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function resolveSessionProvider(sessionId, deps) {
|
|
90
|
+
const binding = deps.bindings[sessionId];
|
|
91
|
+
if (!binding) return null;
|
|
92
|
+
const profile = deps.providers.profiles[binding.profile];
|
|
93
|
+
if (!profile) throw new Error(`provider profile "${binding.profile}" is not defined in providers.json`);
|
|
94
|
+
const token = deps.readKey(profile.apiKeyFile).trim();
|
|
95
|
+
if (!token) throw new Error(`provider profile "${binding.profile}": api key file is empty`);
|
|
96
|
+
return {
|
|
97
|
+
profile: binding.profile,
|
|
98
|
+
model: binding.model,
|
|
99
|
+
baseUrl: profile.baseUrl,
|
|
100
|
+
env: buildProviderEnv(profile, binding.model, token),
|
|
101
|
+
unset: PROVIDER_STRIPPED_ENV_KEYS
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function loadSessionProvider(happyHomeDir, sessionId) {
|
|
105
|
+
const bindings = readSessionProviders(happyHomeDir);
|
|
106
|
+
if (!bindings[sessionId]) return null;
|
|
107
|
+
return resolveSessionProvider(sessionId, {
|
|
108
|
+
providers: readProviders(happyHomeDir),
|
|
109
|
+
bindings,
|
|
110
|
+
readKey: (p) => readFileSync(expandHome(p), "utf8")
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function applyProviderEnv(env, provider) {
|
|
114
|
+
for (const key of provider.unset) delete env[key];
|
|
115
|
+
Object.assign(env, provider.env);
|
|
116
|
+
}
|
|
117
|
+
function updateBindings(current, sessionId, binding) {
|
|
118
|
+
const next = { ...current };
|
|
119
|
+
if (binding) next[sessionId] = binding;
|
|
120
|
+
else delete next[sessionId];
|
|
121
|
+
return next;
|
|
122
|
+
}
|
|
123
|
+
function writeSessionProviders(happyHomeDir, bindings) {
|
|
124
|
+
const path = sessionProvidersPath(happyHomeDir);
|
|
125
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
126
|
+
const tmp = `${path}.${process.pid}.tmp`;
|
|
127
|
+
writeFileSync(tmp, JSON.stringify(bindings, null, 2) + "\n", { mode: 384 });
|
|
128
|
+
chmodSync(tmp, 384);
|
|
129
|
+
renameSync(tmp, path);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { applyProviderEnv as a, readProviders as b, loadSessionProvider as l, readSessionProviders as r, sessionProvidersPath as s, updateBindings as u, writeSessionProviders as w };
|
|
@@ -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-Ub-5xbcU.cjs');
|
|
5
5
|
var axios = require('axios');
|
|
6
|
-
var logger = require('./logger-
|
|
7
|
-
var configuration = require('./configuration-
|
|
6
|
+
var logger = require('./logger-CIUMiSLo.cjs');
|
|
7
|
+
var configuration = require('./configuration-CwfmwaLU.cjs');
|
|
8
8
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
9
9
|
|
|
10
10
|
z.z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { u as AgentVersionsSchema } from './index-
|
|
2
|
+
import { u as AgentVersionsSchema } from './index-DisBaRvM.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-BjXkscIr.mjs';
|
|
5
|
+
import { c as configuration } from './configuration-HPdj5Til.mjs';
|
|
6
6
|
import { c as contentLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
7
7
|
|
|
8
8
|
z.object({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var claudeAgentSdk = require('@anthropic-ai/claude-agent-sdk');
|
|
4
4
|
var smallFastModel = require('./smallFastModel-D_uxGMo3.cjs');
|
|
5
|
-
var logger = require('./logger-
|
|
5
|
+
var logger = require('./logger-CIUMiSLo.cjs');
|
|
6
6
|
var processTreeSnapshot = require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
7
7
|
|
|
8
8
|
const HAPPY_DEFAULT_ENTRYPOINT = "remote_mobile";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { query as query$1 } from '@anthropic-ai/claude-agent-sdk';
|
|
2
2
|
import { p as pinSmallFastModel, e as ensureLocalProxyBypass } from './smallFastModel-BLNgMrwR.mjs';
|
|
3
|
-
import { l as logger } from './logger-
|
|
3
|
+
import { l as logger } from './logger-BjXkscIr.mjs';
|
|
4
4
|
import { s as snapshotTree, k as killSurvivors } from './processTreeSnapshot-CuLJDNC-.mjs';
|
|
5
5
|
|
|
6
6
|
const HAPPY_DEFAULT_ENTRYPOINT = "remote_mobile";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BjXkscIr.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-HPdj5Til.mjs';
|
|
11
11
|
|
|
12
12
|
function run$1(args, options) {
|
|
13
13
|
const RUNNER_PATH = resolve(join(projectPath(), "scripts", "ripgrep_launcher.cjs"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-CIUMiSLo.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-CwfmwaLU.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"));
|
package/dist/{registerKillSessionHandler-Bp-fuH-w.mjs → registerKillSessionHandler-BDxd20fg.mjs}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BjXkscIr.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import 'socket.io-client';
|
|
5
|
-
import './pushNotifications-
|
|
5
|
+
import './pushNotifications-DnpJJ7VR.mjs';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'tweetnacl';
|
|
8
|
-
import './configuration-
|
|
9
|
-
import './index-
|
|
10
|
-
import './registerCommonHandlers-
|
|
8
|
+
import './configuration-HPdj5Til.mjs';
|
|
9
|
+
import './index-DisBaRvM.mjs';
|
|
10
|
+
import './registerCommonHandlers-DpBxSCBi.mjs';
|
|
11
11
|
import 'os';
|
|
12
12
|
import 'child_process';
|
|
13
13
|
import '@paralleldrive/cuid2';
|
|
14
|
-
import './persistence-
|
|
14
|
+
import './persistence-CmVwM5uq.mjs';
|
|
15
15
|
import 'chalk';
|
|
16
16
|
import './types-CkqAACXx.mjs';
|
|
17
17
|
|
package/dist/{registerKillSessionHandler-nTi2vVJy.cjs → registerKillSessionHandler-DwPEAS2G.cjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-CIUMiSLo.cjs');
|
|
4
4
|
require('axios');
|
|
5
5
|
require('node:events');
|
|
6
6
|
require('socket.io-client');
|
|
7
|
-
require('./pushNotifications-
|
|
7
|
+
require('./pushNotifications-C651e0ZZ.cjs');
|
|
8
8
|
require('node:crypto');
|
|
9
9
|
require('tweetnacl');
|
|
10
|
-
require('./configuration-
|
|
11
|
-
require('./index-
|
|
12
|
-
require('./registerCommonHandlers-
|
|
10
|
+
require('./configuration-CwfmwaLU.cjs');
|
|
11
|
+
require('./index-Ub-5xbcU.cjs');
|
|
12
|
+
require('./registerCommonHandlers-K-BTp2iR.cjs');
|
|
13
13
|
require('os');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('@paralleldrive/cuid2');
|
|
16
|
-
require('./persistence-
|
|
16
|
+
require('./persistence-CNWBdUH2.cjs');
|
|
17
17
|
require('chalk');
|
|
18
18
|
require('./types-CRS-srZK.cjs');
|
|
19
19
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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-DBylxaEh.mjs';
|
|
2
|
+
import { d as archiveSession, u as unarchiveSession, h as sessionLiveness, e as sendUserMessage, i as readSessionState, o as openUserScopedSocket } from './sessionOps-BO6AesNJ.mjs';
|
|
3
|
+
import { d as delay } from './time-BbJ-NWcl.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-HPdj5Til.mjs';
|
|
7
|
+
import { r as readSettings, b as readCredentialsForConfiguredRelay } from './persistence-CmVwM5uq.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-DTMI1aTp.cjs');
|
|
4
|
+
var sessionOps = require('./sessionOps-BDHEzyAY.cjs');
|
|
5
|
+
var time = require('./time-BCGGrWp4.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-CwfmwaLU.cjs');
|
|
9
|
+
var persistence = require('./persistence-CNWBdUH2.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-Ub-5xbcU.cjs');
|
|
5
|
+
var client = require('./client-qgKef7S6.cjs');
|
|
6
6
|
var precheckCompat = require('./precheckCompat-CWOi5c9L.cjs');
|
|
7
|
-
var client$1 = require('./client-
|
|
7
|
+
var client$1 = require('./client-C54hMWx6.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-DisBaRvM.mjs';
|
|
3
|
+
import { a as authenticatedAutomationsClient, b as automationRunIdFromEnv } from './client-Ct1rnpJw.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-D2lOnvzs.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
|
|