very-happy-cli 0.2.159 → 0.2.161

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.
Files changed (259) hide show
  1. package/dist/{AcpBackend-VsfkZiVF.mjs → AcpBackend-6U6pQgx1.mjs} +4 -2
  2. package/dist/{AcpBackend-DUYFlyfN.cjs → AcpBackend-Ba98QDif.cjs} +78 -76
  3. package/dist/{AcpSessionManager-Bdv8LWXh.cjs → AcpSessionManager-BAY1Pggx.cjs} +9 -9
  4. package/dist/{AcpSessionManager-rYtVb0kN.mjs → AcpSessionManager-CoMWFVw3.mjs} +1 -1
  5. package/dist/BasePermissionHandler-2R0uH2CI.cjs +157 -0
  6. package/dist/BasePermissionHandler-BvvhBTja.mjs +155 -0
  7. package/dist/BaseReasoningProcessor-DyhO1uoU.mjs +198 -0
  8. package/dist/BaseReasoningProcessor-fsVNmCEF.cjs +200 -0
  9. package/dist/RemoteModeDisplay-D-HewyXg.mjs +150 -0
  10. package/dist/RemoteModeDisplay-NC1gPHtj.cjs +153 -0
  11. package/dist/agentAttachments-Dbw8iMCZ.cjs +20 -0
  12. package/dist/agentAttachments-M_B5qEF2.mjs +18 -0
  13. package/dist/agentGuidance-B5NATuFa.cjs +28 -0
  14. package/dist/agentGuidance-CQuNlNx8.mjs +20 -0
  15. package/dist/{agentHome-CvsJyeQB.mjs → agentHome-Ck1i1TQB.mjs} +8 -22
  16. package/dist/{agentHome-CHh4lmjM.cjs → agentHome-DvNnGphb.cjs} +14 -28
  17. package/dist/api-B2vLMS-z.cjs +3346 -0
  18. package/dist/api-SffjRQ1b.mjs +3339 -0
  19. package/dist/{types-Dh-s4Lqs.mjs → apiMachine-BpW9t8MO.mjs} +9116 -16205
  20. package/dist/{types-BbvK1Tr_.cjs → apiMachine-gFA54X7y.cjs} +9104 -16247
  21. package/dist/assistantTools-BfA0R3_m.cjs +380 -0
  22. package/dist/assistantTools-CgiTbnWb.mjs +376 -0
  23. package/dist/attachmentContent-CSGxr71v.mjs +82 -0
  24. package/dist/attachmentContent-DMMZzevR.cjs +88 -0
  25. package/dist/attachmentLimits-CzVrqgLR.cjs +354 -0
  26. package/dist/attachmentLimits-yba1uHFO.mjs +348 -0
  27. package/dist/auth-Bt4ceBBy.cjs +227 -0
  28. package/dist/auth-CYHjQ8oQ.mjs +225 -0
  29. package/dist/auth-DdyVZSo6.mjs +218 -0
  30. package/dist/auth-x4CEoysH.cjs +220 -0
  31. package/dist/authRelay-BdYkC1Po.cjs +156 -0
  32. package/dist/authRelay-DSAvg1uv.mjs +143 -0
  33. package/dist/{auto-DKmEls8Z.cjs → auto-BDXDUnjB.cjs} +70 -79
  34. package/dist/{auto-nb8GhRRy.mjs → auto-CXLlRi3a.mjs} +27 -36
  35. package/dist/backgroundTaskActivity-8PdPxrvy.mjs +149 -0
  36. package/dist/backgroundTaskActivity-CBvUdj39.cjs +157 -0
  37. package/dist/bootstrap-BNQq05jR.mjs +112 -0
  38. package/dist/bootstrap-CkgIq8N3.cjs +116 -0
  39. package/dist/browser-9pyhQr1R.mjs +20 -0
  40. package/dist/browser-BDOlKWYe.cjs +22 -0
  41. package/dist/claudeCliPath-BqkaH2oR.mjs +8 -0
  42. package/dist/claudeCliPath-U4HHmV4r.cjs +10 -0
  43. package/dist/claudeLocal-BDuGFnjJ.cjs +343 -0
  44. package/dist/claudeLocal-CQa8qnwq.mjs +339 -0
  45. package/dist/claudeLocalLauncher-Bd5I2-j6.cjs +154 -0
  46. package/dist/claudeLocalLauncher-CDqQI9ak.mjs +152 -0
  47. package/dist/cliUpdate-DsKXPFYp.cjs +120 -0
  48. package/dist/cliUpdate-Y34VGe9Y.mjs +112 -0
  49. package/dist/client-Brn-UwVk.mjs +100 -0
  50. package/dist/client-CXb1VJui.mjs +112 -0
  51. package/dist/client-C_axwRry.cjs +104 -0
  52. package/dist/client-DOBWJL3u.cjs +119 -0
  53. package/dist/codex/happyMcpStdioBridge.cjs +33 -14
  54. package/dist/codex/happyMcpStdioBridge.mjs +26 -7
  55. package/dist/codexAppServerClient-ZzhUTWPo.cjs +1090 -0
  56. package/dist/codexAppServerClient-oeQKD6Qf.mjs +1088 -0
  57. package/dist/codexCommand-C7H0NpBe.cjs +2088 -0
  58. package/dist/codexCommand-CJ82bl3l.mjs +2086 -0
  59. package/dist/codexThreadFork-BCaEMBiM.mjs +338 -0
  60. package/dist/codexThreadFork-BZqF-9bX.cjs +350 -0
  61. package/dist/{config-ClLtM6F3.mjs → config-BglnktIo.mjs} +7 -40
  62. package/dist/{config-DLx-vW3I.cjs → config-CYpL1Ahd.cjs} +26 -59
  63. package/dist/configuration-DoWFJUPm.mjs +170 -0
  64. package/dist/configuration-v9f8LM9T.cjs +181 -0
  65. package/dist/connect-hgcNjyAB.mjs +682 -0
  66. package/dist/connect-yEvjdRvx.cjs +684 -0
  67. package/dist/constants-BC4St0xd.mjs +11 -0
  68. package/dist/constants-VJ0N6WuG.cjs +17 -0
  69. package/dist/contentLogMetadata-BlWI0egu.mjs +51 -0
  70. package/dist/contentLogMetadata-ZSFk_NjQ.cjs +54 -0
  71. package/dist/context-B45vMtSZ.cjs +69 -0
  72. package/dist/context-C9GHPLEm.mjs +65 -0
  73. package/dist/controlClient-DjoKTtgK.mjs +260 -0
  74. package/dist/controlClient-fEHE85bH.cjs +279 -0
  75. package/dist/createSessionMetadata-BRLB9CNO.cjs +58 -0
  76. package/dist/createSessionMetadata-mIeehclp.mjs +54 -0
  77. package/dist/defaultPermissionMode-BnxJPVHT.mjs +4 -0
  78. package/dist/defaultPermissionMode-CxmTXUQR.cjs +7 -0
  79. package/dist/detectCLI-CSGMlV51.mjs +58 -0
  80. package/dist/detectCLI-DR9ZaN6B.cjs +61 -0
  81. package/dist/deterministicJson-DKDP_mM-.cjs +507 -0
  82. package/dist/deterministicJson-p835AdAU.mjs +502 -0
  83. package/dist/doctor-BPkYWSuq.mjs +75 -0
  84. package/dist/doctor-BeUuQXFs.mjs +391 -0
  85. package/dist/doctor-hVNnSZJn.cjs +395 -0
  86. package/dist/doctor-u46qYYKX.cjs +79 -0
  87. package/dist/doctorReadiness-BCZGcN0a.cjs +151 -0
  88. package/dist/doctorReadiness-C208SMN9.mjs +142 -0
  89. package/dist/editPaths-BVfS_FFL.mjs +68 -0
  90. package/dist/editPaths-Bqp4OFPw.cjs +73 -0
  91. package/dist/ensureDaemonRunning-CO7d1gOC.mjs +61 -0
  92. package/dist/ensureDaemonRunning-Dg9aZfjs.cjs +64 -0
  93. package/dist/handleResumeCommand-BiTPK0qd.mjs +240 -0
  94. package/dist/handleResumeCommand-DnVmy7a3.cjs +245 -0
  95. package/dist/ids-B6ZC0HGt.cjs +13 -0
  96. package/dist/ids-DU6sLx4C.mjs +10 -0
  97. package/dist/index-B6UGRQ7h.mjs +102 -0
  98. package/dist/{index-2mCaeKyf.mjs → index-CAFwetLk.mjs} +68 -38
  99. package/dist/index-Cqx-Raq6.mjs +68 -0
  100. package/dist/index-D3kI0hDR.cjs +107 -0
  101. package/dist/index-DA7yINuk.cjs +994 -0
  102. package/dist/{index-BEOMECtE.cjs → index-LIn6nCcq.cjs} +121 -91
  103. package/dist/index-Pf2cV9cn.cjs +182 -0
  104. package/dist/index-SPGPenK5.mjs +158 -0
  105. package/dist/index-gNTWtSKN.cjs +71 -0
  106. package/dist/index-qdS1friN.mjs +949 -0
  107. package/dist/index.cjs +5 -46
  108. package/dist/index.mjs +5 -46
  109. package/dist/{install-BPhJppvd.mjs → install-BO_W7VhL.mjs} +37 -37
  110. package/dist/install-Bu85vlHD.cjs +88 -0
  111. package/dist/install-ClUUl3yp.mjs +86 -0
  112. package/dist/{install-BOHrUaFM.cjs → install-Cs5qAPrB.cjs} +38 -38
  113. package/dist/{installPiTools-DuZ6jZvX.cjs → installPiTools-BKnXjrVu.cjs} +2 -3
  114. package/dist/{installPiTools-Cj7yU9Fc.mjs → installPiTools-B_CdM5_2.mjs} +1 -2
  115. package/dist/{installTerminalHooks-Cou3WUf3.cjs → installTerminalHooks-BQZbvxsZ.cjs} +5 -40
  116. package/dist/{installTerminalHooks-WeznjkuC.mjs → installTerminalHooks-By7gBMEF.mjs} +3 -38
  117. package/dist/lib.cjs +28 -19
  118. package/dist/lib.d.cts +12 -2
  119. package/dist/lib.d.mts +12 -2
  120. package/dist/lib.mjs +23 -14
  121. package/dist/lidState-C2dI0FAN.mjs +297 -0
  122. package/dist/lidState-KHHu1015.cjs +305 -0
  123. package/dist/limits-C-a7gr04.cjs +43 -0
  124. package/dist/limits-DIo7rEBR.mjs +36 -0
  125. package/dist/localHappyAgentAuth-BXiHPXdC.cjs +86 -0
  126. package/dist/localHappyAgentAuth-DCsetiyG.mjs +82 -0
  127. package/dist/logger-Bc8-u1w0.cjs +275 -0
  128. package/dist/logger-fXoNzNuB.mjs +271 -0
  129. package/dist/loginShellEnv-BkuYtExZ.cjs +182 -0
  130. package/dist/loginShellEnv-Dw8M7tkI.mjs +167 -0
  131. package/dist/machineMetadata-BHjehxJY.mjs +38 -0
  132. package/dist/machineMetadata-BibDMFVx.cjs +41 -0
  133. package/dist/main-BktM4A1K.mjs +939 -0
  134. package/dist/main-CLaX-t-b.cjs +941 -0
  135. package/dist/manager-BQ4flvQZ.mjs +101 -0
  136. package/dist/manager-Cly8xVIR.cjs +105 -0
  137. package/dist/{mcp-Dy3f_K0h.mjs → mcp-CeUd9KDr.mjs} +27 -33
  138. package/dist/{mcp-CPYbtsYG.cjs → mcp-GBfE70nk.cjs} +42 -48
  139. package/dist/messageBuffer-BWlGgR3A.mjs +71 -0
  140. package/dist/messageBuffer-fJMH6uY8.cjs +73 -0
  141. package/dist/mirrorProtocol-BNLtoWjO.mjs +170 -0
  142. package/dist/mirrorProtocol-BUtmg1ws.cjs +186 -0
  143. package/dist/oneShotPrompts-CL0dip9C.cjs +16 -0
  144. package/dist/oneShotPrompts-DT4p6RNd.mjs +12 -0
  145. package/dist/package-Cl5BEP5x.cjs +173 -0
  146. package/dist/package-uOg9SCKi.mjs +171 -0
  147. package/dist/path-B7zW-WwE.cjs +18 -0
  148. package/dist/path-D2wdaNSk.mjs +15 -0
  149. package/dist/peerTools-CIeiy9wn.cjs +283 -0
  150. package/dist/peerTools-Dz3_7Bkk.mjs +272 -0
  151. package/dist/permissionMode-CH4FoZfU.mjs +80 -0
  152. package/dist/permissionMode-CrV-XuMs.cjs +87 -0
  153. package/dist/persistence-CBNMzSa8.cjs +414 -0
  154. package/dist/persistence-oET5n61f.mjs +372 -0
  155. package/dist/piExtension.mjs +2 -1
  156. package/dist/piRunnerArgs-Bf7RUF__.cjs +66 -0
  157. package/dist/piRunnerArgs-Dk1ncwHF.mjs +59 -0
  158. package/dist/{piRuntime-NtF0YqjH.cjs → piRuntime-B_6TE9Eb.cjs} +4 -4
  159. package/dist/{piRuntime-kLZNpAAl.mjs → piRuntime-BwRdhK_N.mjs} +2 -2
  160. package/dist/{piTerminal-B0fEOV_2.mjs → piTerminal-Bap3R8Re.mjs} +32 -35
  161. package/dist/{piTerminal-9J0GAKzb.cjs → piTerminal-CagmEoez.cjs} +32 -35
  162. package/dist/previewPath-B0rBdhy1.cjs +83 -0
  163. package/dist/previewPath-CXN4Vag0.mjs +81 -0
  164. package/dist/projectPath-BTBIMB57.mjs +10 -0
  165. package/dist/projectPath-ChLhdOyt.cjs +13 -0
  166. package/dist/registerCommonHandlers-BjSV2Skz.cjs +538 -0
  167. package/dist/registerCommonHandlers-CrgvJsOy.mjs +536 -0
  168. package/dist/registerKillSessionHandler-6TC2S3lf.cjs +366 -0
  169. package/dist/registerKillSessionHandler-Cbc8Rgtd.mjs +363 -0
  170. package/dist/remoteSessionClient-BNx78NLb.cjs +634 -0
  171. package/dist/remoteSessionClient-CO7qOjR0.mjs +612 -0
  172. package/dist/resources-BdFBQi8r.mjs +117 -0
  173. package/dist/resources-JDPugcDq.cjs +120 -0
  174. package/dist/run-2l5vSt2h.mjs +5743 -0
  175. package/dist/run-D5xAEWSB.cjs +5766 -0
  176. package/dist/runClaude-BX6ixjtW.cjs +894 -0
  177. package/dist/runClaude-BgN6xo05.mjs +892 -0
  178. package/dist/runClaudeDeps-Bp20MScE.cjs +4168 -0
  179. package/dist/runClaudeDeps-COBBhD9o.mjs +4129 -0
  180. package/dist/{runGemini-F-mqx3_K.cjs → runGemini-CSMPkt0p.cjs} +202 -175
  181. package/dist/{runGemini-DV6Ouadt.mjs → runGemini-Cc2jq-uh.mjs} +58 -31
  182. package/dist/{runOpenClaw-D7MlPS5n.mjs → runOpenClaw-CIlCwdW2.mjs} +31 -32
  183. package/dist/{runOpenClaw-Qqo9j63M.cjs → runOpenClaw-YBwua4Rf.cjs} +64 -65
  184. package/dist/sandbox-C4gXLP1p.cjs +187 -0
  185. package/dist/sandbox-CNkwOtHI.mjs +180 -0
  186. package/dist/selfCheck-CU8xSDsl.cjs +87 -0
  187. package/dist/selfCheck-hJ6PCh7v.mjs +84 -0
  188. package/dist/{send-CLhYXNgy.mjs → send-CGHcKZ-w.mjs} +12 -5
  189. package/dist/{send-4qJTCAYW.cjs → send-DY9Nr-x4.cjs} +16 -9
  190. package/dist/server-II51Mimf.cjs +407 -0
  191. package/dist/server-m2b5pamZ.mjs +404 -0
  192. package/dist/sessionLock-7ePAYDOg.cjs +205 -0
  193. package/dist/sessionLock-Cw6FmbMv.mjs +197 -0
  194. package/dist/sessionModeFile-BVCV5f7E.cjs +36 -0
  195. package/dist/sessionModeFile-CDmDyRkD.mjs +32 -0
  196. package/dist/sessionOps-C_f1wKOr.mjs +760 -0
  197. package/dist/sessionOps-DJdExmBy.cjs +783 -0
  198. package/dist/sessionScanner-CaAHLyNV.mjs +206 -0
  199. package/dist/sessionScanner-D1goKdd3.cjs +209 -0
  200. package/dist/{sessions-Bh1pyddi.cjs → sessions-DGs6ALNo.cjs} +37 -28
  201. package/dist/{sessions-CzIH2rGp.mjs → sessions-DnvmWUel.mjs} +17 -8
  202. package/dist/setupOfflineReconnection-CVViqZft.mjs +72 -0
  203. package/dist/setupOfflineReconnection-R7XuR_sj.cjs +74 -0
  204. package/dist/smallFastModel-BLNgMrwR.mjs +18 -0
  205. package/dist/smallFastModel-D_uxGMo3.cjs +21 -0
  206. package/dist/{spawn-CmFOSVdW.cjs → spawn-CXTH7qg1.cjs} +61 -65
  207. package/dist/{spawn-CPIWlPOM.mjs → spawn-DNYSvFtC.mjs} +35 -40
  208. package/dist/spawnAgents-BGQiEF-w.cjs +52 -0
  209. package/dist/spawnAgents-DZzZ9jMI.mjs +45 -0
  210. package/dist/spawnHappyCLI-BhYj84rv.cjs +66 -0
  211. package/dist/spawnHappyCLI-cqWQbwsb.mjs +64 -0
  212. package/dist/specialCommands-BSqhYg5X.mjs +52 -0
  213. package/dist/specialCommands-DSsTeRej.cjs +54 -0
  214. package/dist/startFileWatcher-CKKx-8ZO.cjs +71 -0
  215. package/dist/startFileWatcher-CdegMbJj.mjs +69 -0
  216. package/dist/startupPlan-BLMbfQIH.cjs +12 -0
  217. package/dist/startupPlan-DFMyNgAs.mjs +10 -0
  218. package/dist/streamRelay-BiKw59Cc.cjs +233 -0
  219. package/dist/streamRelay-FPVbHpbM.mjs +231 -0
  220. package/dist/sync-CVk4QERO.cjs +71 -0
  221. package/dist/sync-CxD-w_40.mjs +69 -0
  222. package/dist/systemPrompt-BygJcmbi.cjs +97 -0
  223. package/dist/systemPrompt-DmtypUc7.mjs +94 -0
  224. package/dist/{teams-CEahj4cm.mjs → teams-BOC6nIPL.mjs} +9 -40
  225. package/dist/{teams-CB1R9-Z9.cjs → teams-BsvpOBfn.cjs} +14 -45
  226. package/dist/template-BaHAmH2K.cjs +129 -0
  227. package/dist/template-CiOPa2rd.mjs +121 -0
  228. package/dist/{terminalTitleSuggest-DKgX3osW.mjs → terminalTitleSuggest-CeKsX_V6.mjs} +1 -9
  229. package/dist/{terminalTitleSuggest-Dji8I0Jy.cjs → terminalTitleSuggest-DhvRFX3H.cjs} +0 -10
  230. package/dist/terminals-B_bfC9c2.cjs +250 -0
  231. package/dist/terminals-Dlg0x3nY.mjs +235 -0
  232. package/dist/time-BZNdNiIV.mjs +38 -0
  233. package/dist/time-CNRE4ChD.cjs +42 -0
  234. package/dist/titleGenerator-CFRhU-xq.cjs +172 -0
  235. package/dist/titleGenerator-ox6ptCsp.mjs +166 -0
  236. package/dist/tmuxSocket-B8Yx20sT.mjs +19 -0
  237. package/dist/tmuxSocket-D-Xt6Vn-.cjs +24 -0
  238. package/dist/{todo-DqyRI4wP.cjs → todo-B-KB7oAB.cjs} +15 -12
  239. package/dist/{todo-Cknp5D4U.mjs → todo-C5KBVbUw.mjs} +11 -8
  240. package/dist/tools-BZabNIid.mjs +177 -0
  241. package/dist/tools-BmQQUATY.mjs +60 -0
  242. package/dist/tools-CsSovyNp.cjs +180 -0
  243. package/dist/tools-lMDra4Pv.cjs +63 -0
  244. package/dist/trimIdent-4gvk9Wk6.cjs +22 -0
  245. package/dist/trimIdent-BAjmv_TG.mjs +20 -0
  246. package/dist/types-CRS-srZK.cjs +66 -0
  247. package/dist/types-CkqAACXx.mjs +64 -0
  248. package/dist/uninstall-B1WLtC1d.mjs +47 -0
  249. package/dist/uninstall-fvA5aWpU.cjs +49 -0
  250. package/package.json +7 -7
  251. package/scripts/session_hook_forwarder.cjs +9 -2
  252. package/dist/agentGuidance-BRDN1NoZ.cjs +0 -2217
  253. package/dist/agentGuidance-KgvYuF3R.mjs +0 -2145
  254. package/dist/index-BF6WfgV5.mjs +0 -19624
  255. package/dist/index-C-JazrMB.mjs +0 -52
  256. package/dist/index-blDSadUR.cjs +0 -58
  257. package/dist/index-rH3DrQ5B.cjs +0 -19688
  258. package/dist/limits-BH5CV5vR.cjs +0 -2683
  259. package/dist/limits-CjRj8IX5.mjs +0 -2558
@@ -0,0 +1,305 @@
1
+ 'use strict';
2
+
3
+ var logger = require('./logger-Bc8-u1w0.cjs');
4
+ var authRelay = require('./authRelay-BdYkC1Po.cjs');
5
+ var os = require('os');
6
+ var child_process = require('child_process');
7
+
8
+ function isRateQuotaCode(code) {
9
+ return typeof code === "string" && code.endsWith("_rate_quota_exceeded");
10
+ }
11
+ const RATE_RETRY_MIN_DELAY_MS = 2e3;
12
+ const RATE_RETRY_MAX_DELAY_MS = 6e4;
13
+ function rateRetryDelayMs(attempt, random = Math.random()) {
14
+ const exponent = Math.max(0, Math.min(attempt, 32) - 1);
15
+ const ceiling = Math.min(RATE_RETRY_MIN_DELAY_MS * 2 ** exponent, RATE_RETRY_MAX_DELAY_MS);
16
+ return Math.round(RATE_RETRY_MIN_DELAY_MS + random * (ceiling - RATE_RETRY_MIN_DELAY_MS));
17
+ }
18
+ async function pauseForRateQuota(opts) {
19
+ const ms = rateRetryDelayMs(opts.attempt);
20
+ opts.log?.(`[RATE] ${opts.label} write refused (${opts.code}), attempt ${opts.attempt} \u2014 waiting ${ms}ms`);
21
+ await opts.sleep(ms);
22
+ return ms;
23
+ }
24
+
25
+ class RpcHandlerManager {
26
+ handlers = /* @__PURE__ */ new Map();
27
+ /**
28
+ * B-506: methods whose params/result are PLAINTEXT JSON strings instead of
29
+ * machine-key ciphertext. The caller is a CLI on another machine of the
30
+ * same account, which holds neither this machine's key nor the account
31
+ * content key; the trusted relay sees the payload either way (this fork
32
+ * is server-trusted, not e2e). Only `registerPlainHandler` puts a method
33
+ * here; everything else keeps decrypting.
34
+ */
35
+ plainMethods = /* @__PURE__ */ new Set();
36
+ scopePrefix;
37
+ encryptionKey;
38
+ encryptionVariant;
39
+ logger;
40
+ sockets = /* @__PURE__ */ new Set();
41
+ constructor(config) {
42
+ this.scopePrefix = config.scopePrefix;
43
+ this.encryptionKey = config.encryptionKey;
44
+ this.encryptionVariant = config.encryptionVariant;
45
+ this.logger = config.logger || ((msg, data) => logger.logger.debug(msg, data));
46
+ }
47
+ /**
48
+ * Register an RPC handler for a specific method
49
+ * @param method - The method name (without prefix)
50
+ * @param handler - The handler function
51
+ */
52
+ registerHandler(method, handler) {
53
+ const prefixedMethod = this.getPrefixedMethod(method);
54
+ this.handlers.set(prefixedMethod, handler);
55
+ for (const socket of this.sockets) socket.emit("rpc-register", { method: prefixedMethod });
56
+ }
57
+ unregisterHandler(method) {
58
+ const prefixedMethod = this.getPrefixedMethod(method);
59
+ this.handlers.delete(prefixedMethod);
60
+ this.plainMethods.delete(prefixedMethod);
61
+ for (const socket of this.sockets) socket.emit("rpc-unregister", { method: prefixedMethod });
62
+ }
63
+ /**
64
+ * B-506: register a method whose request is a plaintext JSON string and
65
+ * whose response is returned as a plaintext JSON string (see
66
+ * `plainMethods`). The handler receives the parsed params; a throw is
67
+ * answered with `{ error }` like the encrypted path.
68
+ */
69
+ registerPlainHandler(method, handler) {
70
+ this.plainMethods.add(this.getPrefixedMethod(method));
71
+ this.registerHandler(method, handler);
72
+ }
73
+ isPlainMethod(prefixedMethod) {
74
+ return this.plainMethods.has(prefixedMethod);
75
+ }
76
+ /**
77
+ * Handle an incoming RPC request
78
+ * @param request - The RPC request data
79
+ * @param callback - The response callback
80
+ */
81
+ async handleRequest(request) {
82
+ if (this.plainMethods.has(request.method)) {
83
+ return this.handlePlainRequest(request);
84
+ }
85
+ try {
86
+ const handler = this.handlers.get(request.method);
87
+ if (!handler) {
88
+ this.logger("[RPC] [ERROR] Method not found", { method: request.method });
89
+ const errorResponse = { error: "Method not found" };
90
+ const encryptedError = authRelay.encodeBase64(authRelay.encrypt(this.encryptionKey, this.encryptionVariant, errorResponse));
91
+ return encryptedError;
92
+ }
93
+ const decryptedParams = authRelay.decrypt(this.encryptionKey, this.encryptionVariant, authRelay.decodeBase64(request.params));
94
+ this.logger("[RPC] Calling handler", { method: request.method });
95
+ const result = await handler(decryptedParams);
96
+ this.logger("[RPC] Handler returned", { method: request.method, hasResult: result !== void 0 });
97
+ const encryptedResponse = authRelay.encodeBase64(authRelay.encrypt(this.encryptionKey, this.encryptionVariant, result));
98
+ this.logger("[RPC] Sending encrypted response", { method: request.method, responseLength: encryptedResponse.length });
99
+ return encryptedResponse;
100
+ } catch (error) {
101
+ this.logger("[RPC] [ERROR] Error handling request", { error });
102
+ const errorResponse = {
103
+ error: error instanceof Error ? error.message : "Unknown error"
104
+ };
105
+ return authRelay.encodeBase64(authRelay.encrypt(this.encryptionKey, this.encryptionVariant, errorResponse));
106
+ }
107
+ }
108
+ /** Plaintext variant of handleRequest (B-506). Never throws; never encrypts. */
109
+ async handlePlainRequest(request) {
110
+ const handler = this.handlers.get(request.method);
111
+ if (!handler) return JSON.stringify({ error: "Method not found" });
112
+ let params;
113
+ try {
114
+ params = typeof request.params === "string" && request.params.length > 0 ? JSON.parse(request.params) : {};
115
+ } catch {
116
+ return JSON.stringify({ error: "Invalid JSON params" });
117
+ }
118
+ try {
119
+ this.logger("[RPC] Calling plain handler", { method: request.method });
120
+ const result = await handler(params);
121
+ return JSON.stringify(result === void 0 ? null : result);
122
+ } catch (error) {
123
+ this.logger("[RPC] [ERROR] Error handling plain request", { error });
124
+ return JSON.stringify({ error: error instanceof Error ? error.message : "Unknown error" });
125
+ }
126
+ }
127
+ onSocketConnect(socket) {
128
+ this.sockets.add(socket);
129
+ for (const [prefixedMethod] of this.handlers) {
130
+ socket.emit("rpc-register", { method: prefixedMethod });
131
+ }
132
+ }
133
+ /**
134
+ * Attach a candidate transport and wait until the server confirms every
135
+ * method before a release handover closes the old transport.
136
+ */
137
+ async onSocketConnectAndWait(socket, timeoutMs = 1e4) {
138
+ this.sockets.add(socket);
139
+ const pending = new Set(this.handlers.keys());
140
+ const acknowledged = /* @__PURE__ */ new Set();
141
+ await new Promise((resolve, reject) => {
142
+ let settleTimer = null;
143
+ const timer = setTimeout(() => {
144
+ cleanup();
145
+ reject(new Error(`RPC registration timed out (${pending.size} pending)`));
146
+ }, timeoutMs);
147
+ timer.unref?.();
148
+ const maybeSettle = () => {
149
+ if (pending.size > 0 || settleTimer) return;
150
+ settleTimer = setTimeout(() => {
151
+ settleTimer = null;
152
+ for (const prefixedMethod of this.handlers.keys()) {
153
+ if (acknowledged.has(prefixedMethod) || pending.has(prefixedMethod)) continue;
154
+ pending.add(prefixedMethod);
155
+ socket.emit("rpc-register", { method: prefixedMethod });
156
+ }
157
+ if (pending.size === 0) {
158
+ cleanup();
159
+ resolve();
160
+ }
161
+ }, 0);
162
+ settleTimer.unref?.();
163
+ };
164
+ const onRegistered = (data) => {
165
+ if (typeof data?.method !== "string") return;
166
+ acknowledged.add(data.method);
167
+ pending.delete(data.method);
168
+ maybeSettle();
169
+ };
170
+ const cleanup = () => {
171
+ clearTimeout(timer);
172
+ if (settleTimer) clearTimeout(settleTimer);
173
+ socket.off("rpc-registered", onRegistered);
174
+ };
175
+ socket.on("rpc-registered", onRegistered);
176
+ for (const prefixedMethod of pending) socket.emit("rpc-register", { method: prefixedMethod });
177
+ maybeSettle();
178
+ }).catch((error) => {
179
+ this.sockets.delete(socket);
180
+ throw error;
181
+ });
182
+ }
183
+ onSocketDisconnect(socket) {
184
+ if (socket) this.sockets.delete(socket);
185
+ else this.sockets.clear();
186
+ }
187
+ /**
188
+ * Get the number of registered handlers
189
+ */
190
+ getHandlerCount() {
191
+ return this.handlers.size;
192
+ }
193
+ /**
194
+ * Check if a handler is registered
195
+ * @param method - The method name (without prefix)
196
+ */
197
+ hasHandler(method) {
198
+ const prefixedMethod = this.getPrefixedMethod(method);
199
+ return this.handlers.has(prefixedMethod);
200
+ }
201
+ /**
202
+ * Clear all handlers
203
+ */
204
+ clearHandlers() {
205
+ this.handlers.clear();
206
+ this.logger("Cleared all RPC handlers");
207
+ }
208
+ /**
209
+ * Get the prefixed method name
210
+ * @param method - The method name
211
+ */
212
+ getPrefixedMethod(method) {
213
+ return `${this.scopePrefix}:${method}`;
214
+ }
215
+ }
216
+
217
+ function describeSocketAckDrop(drop) {
218
+ switch (drop.reason) {
219
+ case "no-ack":
220
+ return "no ack callback on the frame (re-delivered after a transport close?); response dropped";
221
+ case "handler-threw":
222
+ return `handler threw: ${drop.error instanceof Error ? drop.error.message : String(drop.error)}`;
223
+ case "ack-threw":
224
+ return `ack callback threw: ${drop.error instanceof Error ? drop.error.message : String(drop.error)}`;
225
+ }
226
+ }
227
+ function safeAck(ack, onDrop) {
228
+ return (value) => {
229
+ if (typeof ack !== "function") {
230
+ onDrop({ reason: "no-ack" });
231
+ return;
232
+ }
233
+ try {
234
+ ack(value);
235
+ } catch (error) {
236
+ onDrop({ reason: "ack-threw", error });
237
+ }
238
+ };
239
+ }
240
+ async function answerSocketRequest(ack, run, onDrop) {
241
+ let value;
242
+ try {
243
+ value = await run();
244
+ } catch (error) {
245
+ onDrop({ reason: "handler-threw", error });
246
+ return;
247
+ }
248
+ safeAck(ack, onDrop)(value);
249
+ }
250
+
251
+ function hasNetworkConnectivity() {
252
+ const interfaces = os.networkInterfaces();
253
+ for (const name of Object.keys(interfaces)) {
254
+ for (const iface of interfaces[name] || []) {
255
+ if (!iface.internal && iface.family === "IPv4") return true;
256
+ }
257
+ }
258
+ return false;
259
+ }
260
+ function isLidClosed() {
261
+ if (process.platform !== "darwin") return false;
262
+ try {
263
+ const output = child_process.execSync("ioreg -r -k AppleClamshellState -d 4", {
264
+ timeout: 5e3,
265
+ encoding: "utf-8"
266
+ });
267
+ return output.includes('"AppleClamshellState" = Yes');
268
+ } catch {
269
+ return false;
270
+ }
271
+ }
272
+ function hasExternalDisplay() {
273
+ if (process.platform !== "darwin") return false;
274
+ try {
275
+ const output = child_process.execSync("system_profiler SPDisplaysDataType -json 2>/dev/null", {
276
+ timeout: 1e4,
277
+ encoding: "utf-8"
278
+ });
279
+ const data = JSON.parse(output);
280
+ const gpus = data.SPDisplaysDataType || [];
281
+ for (const gpu of gpus) {
282
+ const displays = gpu.spdisplays_ndrvs || [];
283
+ for (const display of displays) {
284
+ const isBuiltIn = display.spdisplays_builtin === "spdisplays_yes" || display.spdisplays_connection_type === "spdisplays_internal";
285
+ if (!isBuiltIn) return true;
286
+ }
287
+ }
288
+ return false;
289
+ } catch {
290
+ return false;
291
+ }
292
+ }
293
+ function shouldReconnect() {
294
+ if (!hasNetworkConnectivity()) return false;
295
+ if (isLidClosed() && !hasExternalDisplay()) return false;
296
+ return true;
297
+ }
298
+
299
+ exports.RpcHandlerManager = RpcHandlerManager;
300
+ exports.answerSocketRequest = answerSocketRequest;
301
+ exports.describeSocketAckDrop = describeSocketAckDrop;
302
+ exports.isRateQuotaCode = isRateQuotaCode;
303
+ exports.pauseForRateQuota = pauseForRateQuota;
304
+ exports.safeAck = safeAck;
305
+ exports.shouldReconnect = shouldReconnect;
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ const CLIPBOARD_MAX_BYTES = 256 * 1024;
4
+ const CLIPBOARD_HISTORY_MAX_BYTES = 32 * 1024;
5
+ const CLIPBOARD_TOOL_NAME = "copy_to_clipboard";
6
+ const CLIPBOARD_TOOL_TITLE = "Copy to User Clipboard";
7
+ const CLIPBOARD_TOOL_DESCRIPTION = `Copy text to the clipboard of the device the user is currently viewing this session from (their web browser, possibly a phone). Use this whenever the user wants a piece of text handed to them \u2014 not only when they literally say "clipboard". Trigger phrases include: "copy X", "copy that for me", "give me X", "send me X", "I need X on my phone", "\u590D\u5236\u7ED9\u6211", "\u628A X \u590D\u5236\u4E00\u4E0B", "\u53D1\u6211", "\u7ED9\u6211\u4E00\u4EFD", "\u590D\u5236\u5230\u526A\u5207\u677F/\u526A\u8D34\u677F". Typical payloads: command output, code snippets, tokens/keys, URLs, file contents, commit messages. The text is delivered to every device where the user has the web client open. Payloads larger than ${CLIPBOARD_MAX_BYTES / 1024}KB are truncated.`;
8
+ function prepareClipboardText(input, maxBytes = CLIPBOARD_MAX_BYTES) {
9
+ const totalBytes = Buffer.byteLength(input, "utf8");
10
+ if (totalBytes <= maxBytes) {
11
+ return { text: input, truncated: false, totalBytes };
12
+ }
13
+ const sliced = Buffer.from(input, "utf8").subarray(0, maxBytes).toString("utf8");
14
+ let text = sliced;
15
+ if (text.endsWith("\uFFFD")) {
16
+ text = text.slice(0, -1);
17
+ }
18
+ const lastCode = text.charCodeAt(text.length - 1);
19
+ if (lastCode >= 55296 && lastCode <= 56319) {
20
+ text = text.slice(0, -1);
21
+ }
22
+ return { text, truncated: true, totalBytes };
23
+ }
24
+ function prepareClipboardHistoryText(input) {
25
+ const prepared = prepareClipboardText(input, CLIPBOARD_HISTORY_MAX_BYTES);
26
+ if (Buffer.byteLength(JSON.stringify(prepared.text), "utf8") <= CLIPBOARD_HISTORY_MAX_BYTES + 2) return prepared;
27
+ let encodedBytes = 0;
28
+ let text = "";
29
+ for (const character of prepared.text) {
30
+ const cost = Buffer.byteLength(JSON.stringify(character), "utf8") - 2;
31
+ if (encodedBytes + cost > CLIPBOARD_HISTORY_MAX_BYTES) break;
32
+ encodedBytes += cost;
33
+ text += character;
34
+ }
35
+ return { text, truncated: true, totalBytes: prepared.totalBytes };
36
+ }
37
+
38
+ exports.CLIPBOARD_MAX_BYTES = CLIPBOARD_MAX_BYTES;
39
+ exports.CLIPBOARD_TOOL_DESCRIPTION = CLIPBOARD_TOOL_DESCRIPTION;
40
+ exports.CLIPBOARD_TOOL_NAME = CLIPBOARD_TOOL_NAME;
41
+ exports.CLIPBOARD_TOOL_TITLE = CLIPBOARD_TOOL_TITLE;
42
+ exports.prepareClipboardHistoryText = prepareClipboardHistoryText;
43
+ exports.prepareClipboardText = prepareClipboardText;
@@ -0,0 +1,36 @@
1
+ const CLIPBOARD_MAX_BYTES = 256 * 1024;
2
+ const CLIPBOARD_HISTORY_MAX_BYTES = 32 * 1024;
3
+ const CLIPBOARD_TOOL_NAME = "copy_to_clipboard";
4
+ const CLIPBOARD_TOOL_TITLE = "Copy to User Clipboard";
5
+ const CLIPBOARD_TOOL_DESCRIPTION = `Copy text to the clipboard of the device the user is currently viewing this session from (their web browser, possibly a phone). Use this whenever the user wants a piece of text handed to them \u2014 not only when they literally say "clipboard". Trigger phrases include: "copy X", "copy that for me", "give me X", "send me X", "I need X on my phone", "\u590D\u5236\u7ED9\u6211", "\u628A X \u590D\u5236\u4E00\u4E0B", "\u53D1\u6211", "\u7ED9\u6211\u4E00\u4EFD", "\u590D\u5236\u5230\u526A\u5207\u677F/\u526A\u8D34\u677F". Typical payloads: command output, code snippets, tokens/keys, URLs, file contents, commit messages. The text is delivered to every device where the user has the web client open. Payloads larger than ${CLIPBOARD_MAX_BYTES / 1024}KB are truncated.`;
6
+ function prepareClipboardText(input, maxBytes = CLIPBOARD_MAX_BYTES) {
7
+ const totalBytes = Buffer.byteLength(input, "utf8");
8
+ if (totalBytes <= maxBytes) {
9
+ return { text: input, truncated: false, totalBytes };
10
+ }
11
+ const sliced = Buffer.from(input, "utf8").subarray(0, maxBytes).toString("utf8");
12
+ let text = sliced;
13
+ if (text.endsWith("\uFFFD")) {
14
+ text = text.slice(0, -1);
15
+ }
16
+ const lastCode = text.charCodeAt(text.length - 1);
17
+ if (lastCode >= 55296 && lastCode <= 56319) {
18
+ text = text.slice(0, -1);
19
+ }
20
+ return { text, truncated: true, totalBytes };
21
+ }
22
+ function prepareClipboardHistoryText(input) {
23
+ const prepared = prepareClipboardText(input, CLIPBOARD_HISTORY_MAX_BYTES);
24
+ if (Buffer.byteLength(JSON.stringify(prepared.text), "utf8") <= CLIPBOARD_HISTORY_MAX_BYTES + 2) return prepared;
25
+ let encodedBytes = 0;
26
+ let text = "";
27
+ for (const character of prepared.text) {
28
+ const cost = Buffer.byteLength(JSON.stringify(character), "utf8") - 2;
29
+ if (encodedBytes + cost > CLIPBOARD_HISTORY_MAX_BYTES) break;
30
+ encodedBytes += cost;
31
+ text += character;
32
+ }
33
+ return { text, truncated: true, totalBytes: prepared.totalBytes };
34
+ }
35
+
36
+ export { CLIPBOARD_TOOL_NAME as C, CLIPBOARD_TOOL_TITLE as a, CLIPBOARD_TOOL_DESCRIPTION as b, CLIPBOARD_MAX_BYTES as c, prepareClipboardHistoryText as d, prepareClipboardText as p };
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ var node_crypto = require('node:crypto');
4
+ var node_fs = require('node:fs');
5
+ var path = require('node:path');
6
+ var tweetnacl = require('tweetnacl');
7
+ var z = require('zod');
8
+ var authRelay = require('./authRelay-BdYkC1Po.cjs');
9
+ var configuration = require('./configuration-v9f8LM9T.cjs');
10
+
11
+ const AgentCredentialsSchema = z.z.object({
12
+ token: z.z.string().min(1),
13
+ secret: z.z.string().min(1),
14
+ authServerUrl: z.z.string().optional()
15
+ });
16
+ function hmacSha512(key, data) {
17
+ const hmac = node_crypto.createHmac("sha512", key);
18
+ hmac.update(data);
19
+ return new Uint8Array(hmac.digest());
20
+ }
21
+ function deriveKey(master, usage, path) {
22
+ const root = hmacSha512(new TextEncoder().encode(`${usage} Master Seed`), master);
23
+ let state = {
24
+ key: root.slice(0, 32),
25
+ chainCode: root.slice(32)
26
+ };
27
+ for (const index of path) {
28
+ const data = new Uint8Array([0, ...new TextEncoder().encode(index)]);
29
+ const derived = hmacSha512(state.chainCode, data);
30
+ state = {
31
+ key: derived.slice(0, 32),
32
+ chainCode: derived.slice(32)
33
+ };
34
+ }
35
+ return state.key;
36
+ }
37
+ function deriveContentKeyPair(secret) {
38
+ const seed = deriveKey(secret, "Happy EnCoder", ["content"]);
39
+ const hashedSeed = new Uint8Array(node_crypto.createHash("sha512").update(seed).digest());
40
+ const secretKey = hashedSeed.slice(0, 32);
41
+ const keyPair = tweetnacl.box.keyPair.fromSecretKey(secretKey);
42
+ return {
43
+ publicKey: keyPair.publicKey,
44
+ secretKey: keyPair.secretKey
45
+ };
46
+ }
47
+ function getLocalHappyAgentCredentialPath(happyHomeDir = configuration.configuration.happyHomeDir) {
48
+ return path.join(happyHomeDir, "agent.key");
49
+ }
50
+ function readLocalHappyAgentCredentials(happyHomeDir = configuration.configuration.happyHomeDir, serverUrl = configuration.configuration.serverUrl) {
51
+ const credentialPath = getLocalHappyAgentCredentialPath(happyHomeDir);
52
+ if (!node_fs.existsSync(credentialPath)) {
53
+ return null;
54
+ }
55
+ try {
56
+ const parsed = AgentCredentialsSchema.parse(JSON.parse(node_fs.readFileSync(credentialPath, "utf8")));
57
+ if (!parsed.authServerUrl) return null;
58
+ if (authRelay.credentialRelayProblem(parsed.authServerUrl, serverUrl)) return null;
59
+ const secret = authRelay.decodeBase64(parsed.secret);
60
+ return {
61
+ token: parsed.token,
62
+ authServerUrl: parsed.authServerUrl,
63
+ secret,
64
+ contentKeyPair: deriveContentKeyPair(secret)
65
+ };
66
+ } catch {
67
+ return null;
68
+ }
69
+ }
70
+ function hasLocalHappyAgentAuth(happyHomeDir = configuration.configuration.happyHomeDir) {
71
+ return readLocalHappyAgentCredentials(happyHomeDir) !== null;
72
+ }
73
+ function detectResumeSupport(happyHomeDir = configuration.configuration.happyHomeDir) {
74
+ const happyAgentAuthenticated = hasLocalHappyAgentAuth(happyHomeDir);
75
+ return {
76
+ rpcAvailable: happyAgentAuthenticated,
77
+ requiresSameMachine: true,
78
+ requiresHappyAgentAuth: true,
79
+ happyAgentAuthenticated,
80
+ detectedAt: Date.now()
81
+ };
82
+ }
83
+
84
+ exports.detectResumeSupport = detectResumeSupport;
85
+ exports.getLocalHappyAgentCredentialPath = getLocalHappyAgentCredentialPath;
86
+ exports.readLocalHappyAgentCredentials = readLocalHappyAgentCredentials;
@@ -0,0 +1,82 @@
1
+ import { createHash, createHmac } from 'node:crypto';
2
+ import { existsSync, readFileSync } from 'node:fs';
3
+ import { join } from 'node:path';
4
+ import tweetnacl from 'tweetnacl';
5
+ import { z } from 'zod';
6
+ import { c as credentialRelayProblem, d as decodeBase64 } from './authRelay-DSAvg1uv.mjs';
7
+ import { c as configuration } from './configuration-DoWFJUPm.mjs';
8
+
9
+ const AgentCredentialsSchema = z.object({
10
+ token: z.string().min(1),
11
+ secret: z.string().min(1),
12
+ authServerUrl: z.string().optional()
13
+ });
14
+ function hmacSha512(key, data) {
15
+ const hmac = createHmac("sha512", key);
16
+ hmac.update(data);
17
+ return new Uint8Array(hmac.digest());
18
+ }
19
+ function deriveKey(master, usage, path) {
20
+ const root = hmacSha512(new TextEncoder().encode(`${usage} Master Seed`), master);
21
+ let state = {
22
+ key: root.slice(0, 32),
23
+ chainCode: root.slice(32)
24
+ };
25
+ for (const index of path) {
26
+ const data = new Uint8Array([0, ...new TextEncoder().encode(index)]);
27
+ const derived = hmacSha512(state.chainCode, data);
28
+ state = {
29
+ key: derived.slice(0, 32),
30
+ chainCode: derived.slice(32)
31
+ };
32
+ }
33
+ return state.key;
34
+ }
35
+ function deriveContentKeyPair(secret) {
36
+ const seed = deriveKey(secret, "Happy EnCoder", ["content"]);
37
+ const hashedSeed = new Uint8Array(createHash("sha512").update(seed).digest());
38
+ const secretKey = hashedSeed.slice(0, 32);
39
+ const keyPair = tweetnacl.box.keyPair.fromSecretKey(secretKey);
40
+ return {
41
+ publicKey: keyPair.publicKey,
42
+ secretKey: keyPair.secretKey
43
+ };
44
+ }
45
+ function getLocalHappyAgentCredentialPath(happyHomeDir = configuration.happyHomeDir) {
46
+ return join(happyHomeDir, "agent.key");
47
+ }
48
+ function readLocalHappyAgentCredentials(happyHomeDir = configuration.happyHomeDir, serverUrl = configuration.serverUrl) {
49
+ const credentialPath = getLocalHappyAgentCredentialPath(happyHomeDir);
50
+ if (!existsSync(credentialPath)) {
51
+ return null;
52
+ }
53
+ try {
54
+ const parsed = AgentCredentialsSchema.parse(JSON.parse(readFileSync(credentialPath, "utf8")));
55
+ if (!parsed.authServerUrl) return null;
56
+ if (credentialRelayProblem(parsed.authServerUrl, serverUrl)) return null;
57
+ const secret = decodeBase64(parsed.secret);
58
+ return {
59
+ token: parsed.token,
60
+ authServerUrl: parsed.authServerUrl,
61
+ secret,
62
+ contentKeyPair: deriveContentKeyPair(secret)
63
+ };
64
+ } catch {
65
+ return null;
66
+ }
67
+ }
68
+ function hasLocalHappyAgentAuth(happyHomeDir = configuration.happyHomeDir) {
69
+ return readLocalHappyAgentCredentials(happyHomeDir) !== null;
70
+ }
71
+ function detectResumeSupport(happyHomeDir = configuration.happyHomeDir) {
72
+ const happyAgentAuthenticated = hasLocalHappyAgentAuth(happyHomeDir);
73
+ return {
74
+ rpcAvailable: happyAgentAuthenticated,
75
+ requiresSameMachine: true,
76
+ requiresHappyAgentAuth: true,
77
+ happyAgentAuthenticated,
78
+ detectedAt: Date.now()
79
+ };
80
+ }
81
+
82
+ export { detectResumeSupport as d, getLocalHappyAgentCredentialPath as g, readLocalHappyAgentCredentials as r };