very-happy-cli 0.2.191 → 0.2.193
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-CCy_9AfR.mjs → AcpBackend-B4PwjqHt.mjs} +3 -3
- package/dist/{AcpBackend-DgrIc1vH.cjs → AcpBackend-DtJCgftG.cjs} +3 -3
- package/dist/{AcpSessionManager-CQnxx7gD.mjs → AcpSessionManager-BzKWgkdP.mjs} +2 -2
- package/dist/{AcpSessionManager-DVOzCD3P.cjs → AcpSessionManager-D4qshX_H.cjs} +2 -2
- package/dist/{BasePermissionHandler-C9Ag7yvs.cjs → BasePermissionHandler-5iG-cvA2.cjs} +1 -1
- package/dist/{BasePermissionHandler-DYLN6Ec9.mjs → BasePermissionHandler-DV6UM6e9.mjs} +1 -1
- package/dist/account-Dco_nGT4.mjs +297 -0
- package/dist/account-DvpA60oU.cjs +302 -0
- package/dist/accountService-Cd7bnkfd.mjs +916 -0
- package/dist/accountService-CuUSJDhP.cjs +921 -0
- package/dist/{acpSessionResume-TvP_4Zq2.cjs → acpSessionResume-Bk9mjXZ9.cjs} +1 -1
- package/dist/{acpSessionResume-Bi7pA1n_.mjs → acpSessionResume-TQwN9ZZE.mjs} +1 -1
- package/dist/{agentHome-DGv105SR.mjs → agentHome-Bep8semY.mjs} +4 -4
- package/dist/{agentHome-DNUKJWOY.cjs → agentHome-c2dlgcw1.cjs} +4 -4
- package/dist/{api-BBxZ7y2z.cjs → api-CBE_a88I.cjs} +10 -10
- package/dist/{api-jfeMRg5R.mjs → api-DUfunY3x.mjs} +10 -10
- package/dist/{apiMachine-DqyjKBZG.cjs → apiMachine-BqtG0IWm.cjs} +83 -27
- package/dist/{apiMachine-DRJ7y-BB.mjs → apiMachine-CU_bw5nV.mjs} +78 -22
- package/dist/{attachmentContent-BO2njyza.cjs → attachmentContent-B3AzuYqk.cjs} +2 -2
- package/dist/{attachmentContent-Dm_RIs5L.mjs → attachmentContent-KNIZxwlu.mjs} +2 -2
- package/dist/{auth-BYDtjVNb.mjs → auth-CZ7pKS-j.mjs} +8 -8
- package/dist/{auth-DnxoVkkf.cjs → auth-DCjxpI6Z.cjs} +5 -5
- package/dist/{auth-DLR3ksCF.cjs → auth-SJ_dPw7H.cjs} +8 -8
- package/dist/{auth-DC6rg8lJ.mjs → auth-jN5dNqTO.mjs} +5 -5
- package/dist/{auto-CwO0u8hB.cjs → auto-B_59RYH1.cjs} +23 -21
- package/dist/{auto-D5Jhukq1.mjs → auto-DC0Sq-qB.mjs} +23 -21
- package/dist/{bootstrap-rLaL3kTa.mjs → bootstrap-B3gMpU9e.mjs} +2 -2
- package/dist/{bootstrap-sly4qPPY.cjs → bootstrap-CoJu9VnB.cjs} +2 -2
- package/dist/{browser-CHpVgyni.mjs → browser-LHW2hBH8.mjs} +1 -1
- package/dist/{browser-BTgZ9d4i.cjs → browser-v1pdPP1E.cjs} +1 -1
- package/dist/claudeAccountEnv-BL1pR_37.mjs +133 -0
- package/dist/claudeAccountEnv-CEX_EMZr.cjs +138 -0
- package/dist/{claudeLocal-Bgb5GGsq.mjs → claudeLocal-BZUgA5G2.mjs} +5 -5
- package/dist/{claudeLocal-1vuTFcL8.cjs → claudeLocal-BrzM2RBI.cjs} +5 -5
- package/dist/{claudeLocalLauncher-T7EfT68h.mjs → claudeLocalLauncher-A0AQyHFi.mjs} +10 -10
- package/dist/{claudeLocalLauncher-DOsL6HFY.cjs → claudeLocalLauncher-XAMpXUM7.cjs} +10 -10
- package/dist/{claudeSessionFork-Cko4SaVi.cjs → claudeSessionFork-Mhn2fYe_.cjs} +1 -1
- package/dist/{claudeSessionFork-CPvi6yDX.mjs → claudeSessionFork-_GwIlmMB.mjs} +1 -1
- package/dist/{client-BXD66ZF5.mjs → client-7RnI9J0W.mjs} +2 -2
- package/dist/{client-Bi20Ka0h.mjs → client-Bde4QVIn.mjs} +4 -2
- package/dist/{client-C5-C0t2a.cjs → client-CJr8Pjwm.cjs} +4 -2
- package/dist/{client-BscskEBk.cjs → client-D2GWkd-T.cjs} +2 -2
- package/dist/{client-C-OdTbrU.cjs → client-DLlnmAPL.cjs} +4 -4
- package/dist/{client-Bh1aUPh-.mjs → client-DwbhrX6D.mjs} +4 -4
- package/dist/codex/happyMcpStdioBridge.cjs +16 -16
- package/dist/codex/happyMcpStdioBridge.mjs +16 -16
- package/dist/codexAccount-BDQjRbtI.cjs +1028 -0
- package/dist/codexAccount-NOX5pmQf.mjs +1015 -0
- package/dist/{codexAppServerClient-DXhAf6i-.mjs → codexAppServerClient-B3QJV6Ey.mjs} +18 -7
- package/dist/{codexAppServerClient-DKXeikEe.cjs → codexAppServerClient-DWEsZUC4.cjs} +18 -7
- package/dist/{codexCommand-DvbbpYBS.cjs → codexCommand-Bg8AmxVm.cjs} +195 -63
- package/dist/{codexCommand-CIaOiiOj.mjs → codexCommand-D1xlj4sT.mjs} +196 -64
- package/dist/{codexTermination-BszWfyk5.cjs → codexTermination-ByX9GcEJ.cjs} +1 -1
- package/dist/{codexTermination-BcQdEDaw.mjs → codexTermination-CaWAVQjZ.mjs} +1 -1
- package/dist/{config-Di3Cf6js.cjs → config-B2GGbiTv.cjs} +3 -3
- package/dist/{config-OCEcVVK1.mjs → config-C2XYEwXz.mjs} +3 -3
- package/dist/{configuration-DfPBa-9d.cjs → configuration-BBK0rmmj.cjs} +1 -1
- package/dist/{configuration-ECqXu34R.mjs → configuration-ThKBP_zY.mjs} +1 -1
- package/dist/{connect-BTfAUhk8.mjs → connect-BirnCl9q.mjs} +13 -13
- package/dist/{connect-BPQRuOw5.cjs → connect-C3tZs_NC.cjs} +13 -13
- package/dist/{context-CfgTFpCB.mjs → context-C0EFLnOg.mjs} +1 -1
- package/dist/{context-Co7hUaW-.cjs → context-wDp0aZBK.cjs} +1 -1
- package/dist/{controlClient-ClI7A0qE.mjs → controlClient-Ckl8N1MS.mjs} +14 -5
- package/dist/{controlClient-C13_pSKG.cjs → controlClient-DwWTns3A.cjs} +15 -4
- package/dist/{createSessionMetadata-Cf78KHtt.cjs → createSessionMetadata-DqZ6h02H.cjs} +2 -2
- package/dist/{createSessionMetadata-B0eT_Kfj.mjs → createSessionMetadata-vug4Cv8z.mjs} +2 -2
- package/dist/daemonAccounts-CpGDY_4k.cjs +54 -0
- package/dist/daemonAccounts-DwPwKxvv.mjs +30 -0
- package/dist/{defaultPermissionMode-oqTupStc.cjs → defaultPermissionMode-BakXiqRr.cjs} +1 -1
- package/dist/{defaultPermissionMode-m6z2QVyP.mjs → defaultPermissionMode-DF5AfeBb.mjs} +1 -1
- package/dist/{deterministicJson-BtSwbsok.mjs → deterministicJson-BzX94gi3.mjs} +13 -13
- package/dist/{deterministicJson-CpFFgUL_.cjs → deterministicJson-t33SsuRC.cjs} +13 -13
- package/dist/{doctor-BEU0_1Xv.cjs → doctor-B9ug1LZb.cjs} +7 -7
- package/dist/{doctor-lsxmAK4o.mjs → doctor-C1zyOSXw.mjs} +7 -7
- package/dist/{downloadTarget-BXqXhNF7.mjs → downloadTarget-Baslc6jW.mjs} +6 -6
- package/dist/{downloadTarget-CikzJv1h.cjs → downloadTarget-T1id2Gh6.cjs} +6 -6
- package/dist/{ensureDaemonRunning-B_9WAlbU.mjs → ensureDaemonRunning-C6ERYK-O.mjs} +5 -5
- package/dist/{ensureDaemonRunning-BUuH-pbE.cjs → ensureDaemonRunning-CoAg11Zi.cjs} +5 -5
- package/dist/{handleResumeCommand-BK9XKH_l.mjs → handleResumeCommand-CrlqDuz7.mjs} +5 -5
- package/dist/{handleResumeCommand-Dj7oi2KO.cjs → handleResumeCommand-DPi-sPm7.cjs} +5 -5
- package/dist/{index-D3c7CLot.cjs → index-B1swQJUS.cjs} +4 -4
- package/dist/{index-CmZusg8Q.cjs → index-B2dJA8VG.cjs} +3 -3
- package/dist/{index-CLUHaPU8.cjs → index-BUFrKZeQ.cjs} +205 -5
- package/dist/{index-BjZnpGWX.mjs → index-BbdV2mzy.mjs} +3 -3
- package/dist/{index-BdOJOZ6J.mjs → index-BcSPg3c5.mjs} +4 -4
- package/dist/{index-CauRYQKr.cjs → index-Bkslzin5.cjs} +44 -40
- package/dist/{index-DuK9XYbZ.mjs → index-Cn73rdtQ.mjs} +4 -4
- package/dist/{index-Bq8NKSCF.mjs → index-D1YnIih6.mjs} +195 -6
- package/dist/{index-Cxso1rg4.mjs → index-fZO4nF6e.mjs} +45 -41
- package/dist/{index-Dg2NAF_-.cjs → index-rocrvOYG.cjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-DXllkuy0.cjs → install-CArXjPfW.cjs} +3 -3
- package/dist/{install-DTIveLOS.mjs → install-CChhyV2G.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +354 -0
- package/dist/lib.d.mts +354 -0
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-CD81ryTy.mjs → lidState-B6yYKjNK.mjs} +1 -1
- package/dist/{lidState-C9_DoF9i.cjs → lidState-B_v6qgfE.cjs} +1 -1
- package/dist/{localHappyAgentAuth-Cg-m1lwm.mjs → localHappyAgentAuth-KRlg_aI0.mjs} +1 -1
- package/dist/{localHappyAgentAuth-CCjUvOfi.cjs → localHappyAgentAuth-jJH0n67S.cjs} +1 -1
- package/dist/{logger-Ct2zvaq0.cjs → logger-CX3x2eI4.cjs} +2 -2
- package/dist/{logger-GcbI0eg2.mjs → logger-JV7-4Q_6.mjs} +2 -2
- package/dist/{machineMetadata-CXRmFNOV.mjs → machineMetadata-D5-SW9kv.mjs} +3 -3
- package/dist/{machineMetadata-DDCVWb_x.cjs → machineMetadata-DhZuM0iB.cjs} +3 -3
- package/dist/{main-BHC-WIcM.cjs → main-1x1HGQEy.cjs} +92 -48
- package/dist/{main-omGr_ONk.mjs → main-CFOdXbPD.mjs} +92 -48
- package/dist/{mcp-xUzii0m8.cjs → mcp-BnKBSEh7.cjs} +18 -15
- package/dist/{mcp-D5hxmRAq.mjs → mcp-R6lMcFLO.mjs} +18 -15
- package/dist/{mirrorProtocol-Lcx20Oby.mjs → mirrorProtocol-CD4ntuZJ.mjs} +3 -3
- package/dist/{mirrorProtocol-Dfl8Ahyf.cjs → mirrorProtocol-DO-KtvAL.cjs} +3 -3
- package/dist/{package-BsUHyqWe.mjs → package-Bw3H6VLn.mjs} +7 -7
- package/dist/{package-9n7wd2dT.cjs → package-uzlvxa5S.cjs} +7 -7
- package/dist/{panels-CpEKWWbI.mjs → panels-BamhZCoZ.mjs} +5 -5
- package/dist/{panels-BfknEmt7.cjs → panels-C46FxjmH.cjs} +5 -5
- package/dist/{peerTools-CElYh-5u.cjs → peerTools-D-VNNFw-.cjs} +5 -5
- package/dist/{peerTools-CwCe6tmJ.mjs → peerTools-WtRgTSqG.mjs} +5 -5
- package/dist/{persistence-Cpw4yJs8.mjs → persistence-Cg4sfjQV.mjs} +2 -2
- package/dist/{persistence-A2NeERZJ.cjs → persistence-CsmAgN-C.cjs} +2 -2
- package/dist/{piRunnerArgs-Bqmu16He.mjs → piRunnerArgs-BbaAQvb4.mjs} +2 -2
- package/dist/{piRunnerArgs-BnFU0K73.cjs → piRunnerArgs-vnFygygF.cjs} +1 -1
- package/dist/{piRuntime-Cgn1b0OX.mjs → piRuntime-Bid7TBf5.mjs} +1 -1
- package/dist/{piRuntime-DpS9TAIs.cjs → piRuntime-C2uj5Ucx.cjs} +1 -1
- package/dist/{piTerminal-rmve-VlI.cjs → piTerminal-Ckpjfoqa.cjs} +20 -17
- package/dist/{piTerminal-BGdps8f3.mjs → piTerminal-CqxgrI13.mjs} +20 -17
- package/dist/{pushNotifications-23YSd-0l.cjs → pushNotifications-BCg7YAiu.cjs} +5 -3
- package/dist/{pushNotifications-XAM8__Pg.mjs → pushNotifications-BbE-qV9I.mjs} +5 -3
- package/dist/{query-SZcYnJoW.mjs → query-Bfr9O_62.mjs} +1 -1
- package/dist/{query-u2GX-I0C.cjs → query-vQ-HG394.cjs} +1 -1
- package/dist/{rateLimitReporter-CaTzBe3x.cjs → rateLimitReporter-BZ8x0-6-.cjs} +3 -3
- package/dist/{rateLimitReporter-COUkf446.mjs → rateLimitReporter-CAz7VMw4.mjs} +3 -3
- package/dist/{rateLimitWindows-B2Kx6L0S.cjs → rateLimitWindows-BZl6GMwQ.cjs} +1 -1
- package/dist/{rateLimitWindows-j_qQk0KY.mjs → rateLimitWindows-CRARnKaI.mjs} +1 -1
- package/dist/reconnectEnv-B31lY4nR.cjs +27 -0
- package/dist/reconnectEnv-DeSvHl3q.mjs +24 -0
- package/dist/{registerCommonHandlers-D1MiSfcB.cjs → registerCommonHandlers-CZGmrPbT.cjs} +2 -2
- package/dist/{registerCommonHandlers-DRRfinzK.mjs → registerCommonHandlers-Cj3Nl9y-.mjs} +2 -2
- package/dist/{registerKillSessionHandler-Cpug_r5C.mjs → registerKillSessionHandler-Bg9t45Ub.mjs} +6 -6
- package/dist/{registerKillSessionHandler-hvCsEn7b.cjs → registerKillSessionHandler-C3EDnW4F.cjs} +6 -6
- package/dist/{remoteSessionClient-BdnJ_n8C.mjs → remoteSessionClient--0vfA7I5.mjs} +5 -5
- package/dist/{remoteSessionClient-6ymeMVa4.cjs → remoteSessionClient-CcSP24Zq.cjs} +5 -5
- package/dist/{reportProgressTool-XgQBzxoD.mjs → reportProgressTool-DVru7jc_.mjs} +3 -3
- package/dist/{reportProgressTool-tzQLCLIw.cjs → reportProgressTool-Ddg1yVq2.cjs} +3 -3
- package/dist/{run-DYL_wuj7.cjs → run-BTrIT_jU.cjs} +347 -856
- package/dist/{run-Bt0AklUU.mjs → run-HtvH6BLi.mjs} +346 -855
- package/dist/{runClaude-C3rii_S6.mjs → runClaude-DsHTk5Bu.mjs} +62 -44
- package/dist/{runClaude-CBEpYO4S.cjs → runClaude-ipjwAHPI.cjs} +62 -44
- package/dist/{runClaudeDeps-CYuozSC6.cjs → runClaudeDeps-BKpwL6ln.cjs} +51 -42
- package/dist/{runClaudeDeps-DlVfMG4F.mjs → runClaudeDeps-BV3vpeyY.mjs} +56 -47
- package/dist/{runGemini-CEI3b90u.cjs → runGemini-B-G0_7Ab.cjs} +33 -33
- package/dist/{runGemini-DkYhRk9S.mjs → runGemini-DhjK6_Fp.mjs} +33 -33
- package/dist/{runOpenClaw-DpprWCoz.mjs → runOpenClaw-B6lawk8n.mjs} +18 -18
- package/dist/{runOpenClaw-BgjD6E4d.cjs → runOpenClaw-BHIo8tkn.cjs} +18 -18
- package/dist/{sandbox-XCDUbH72.cjs → sandbox-BAsO0ILe.cjs} +4 -4
- package/dist/{sandbox-DJ7A7lsy.mjs → sandbox-CKb7pCXg.mjs} +4 -4
- package/dist/selfCheck-CZ-t1Xzq.mjs +88 -0
- package/dist/{selfCheck-BYUDB1Uq.cjs → selfCheck-D4VvVZNi.cjs} +39 -37
- package/dist/{send-CASDBCyJ.cjs → send-Cz5m39QR.cjs} +8 -8
- package/dist/{send-Ba63huxv.mjs → send-D8ipLKMY.mjs} +8 -8
- package/dist/{server-w3W0toNd.mjs → server-CjvgT3N9.mjs} +4 -4
- package/dist/{server-cZoV9XRt.cjs → server-CySyJKPH.cjs} +6 -6
- package/dist/{sessionLock-G2PMqvsh.mjs → sessionLock-B73fhgQN.mjs} +10 -4
- package/dist/{sessionLock-BmLA2S8K.cjs → sessionLock-DdDCuNUs.cjs} +10 -3
- package/dist/{sessionOps-DPw5k8vV.mjs → sessionOps-C65Iej_C.mjs} +50 -8
- package/dist/{sessionOps-DXlTmS7J.cjs → sessionOps-XSEjIqNq.cjs} +50 -8
- package/dist/sessionProvider-CLVNkfji.mjs +110 -0
- package/dist/sessionProvider-Dgsty8z_.cjs +115 -0
- package/dist/{sessionScanner-AHjnicxi.cjs → sessionScanner-D8IVXMMH.cjs} +3 -3
- package/dist/{sessionScanner-BCXpdZJN.mjs → sessionScanner-MW1P9Pm9.mjs} +3 -3
- package/dist/{sessions-BiBXOBx0.cjs → sessions-BKz7gZqg.cjs} +10 -10
- package/dist/{sessions-Clk8MR5Y.mjs → sessions-Dtk_agUL.mjs} +10 -10
- package/dist/{setupOfflineReconnection-DI-QZGYz.mjs → setupOfflineReconnection-Bvdy-2xd.mjs} +2 -2
- package/dist/{setupOfflineReconnection-BKLfOd-i.cjs → setupOfflineReconnection-DxMiW7OV.cjs} +2 -2
- package/dist/{spawn-D5omsx1Q.cjs → spawn-DiPkJcrQ.cjs} +36 -17
- package/dist/{spawn-4tsp1uhh.mjs → spawn-Dm4xsZBX.mjs} +36 -17
- package/dist/{spawnAgents-CtkkIFHd.cjs → spawnAgents-B9olJ8xn.cjs} +1 -1
- package/dist/{spawnAgents-CjoU6ZOS.mjs → spawnAgents-I29H9nO8.mjs} +1 -1
- package/dist/{spawnHappyCLI-CF_gLi92.cjs → spawnHappyCLI-BYGOUda1.cjs} +1 -1
- package/dist/{spawnHappyCLI-CIA9Sc_5.mjs → spawnHappyCLI-CnMwzjWX.mjs} +1 -1
- package/dist/{startFileWatcher-9Stpxe7p.cjs → startFileWatcher-D14W6gn-.cjs} +1 -1
- package/dist/{startFileWatcher-CDO6fb2m.mjs → startFileWatcher-DePAY1T5.mjs} +1 -1
- package/dist/{startupSessionCreate-BtR4iYEC.mjs → startupSessionCreate-DoK0IvJG.mjs} +3 -3
- package/dist/{startupSessionCreate-CcF7rGGB.cjs → startupSessionCreate-rBHd4tc1.cjs} +3 -3
- package/dist/store-CkNa6oj4.cjs +326 -0
- package/dist/store-Vej_738f.mjs +305 -0
- package/dist/{streamRelay-BhI6jqF-.cjs → streamRelay-C0G1HOOd.cjs} +1 -1
- package/dist/{streamRelay-DMwOMTKf.mjs → streamRelay-C5U-C4GS.mjs} +1 -1
- package/dist/{sync-C0PRuTMj.mjs → sync-BP6vnxVP.mjs} +1 -1
- package/dist/{sync-Ba8N6xba.cjs → sync-WYBwkJvG.cjs} +1 -1
- package/dist/{systemPrompt-DV5IReD4.cjs → systemPrompt-BkQlCk5_.cjs} +2 -2
- package/dist/{systemPrompt-D0q8eyjy.mjs → systemPrompt-aRqBmkpw.mjs} +2 -2
- package/dist/{teams-BO3_arwM.mjs → teams-CGmC4ygu.mjs} +7 -7
- package/dist/{teams-z3Gp-KlV.cjs → teams-phbpwAGD.cjs} +7 -7
- package/dist/{template-B_5l6pkc.cjs → template-B9pLEP8v.cjs} +2 -2
- package/dist/{template-DLR_0hfj.mjs → template-CL9EvQLQ.mjs} +2 -2
- package/dist/{time-Cy0a-7YX.cjs → time-BTLcO8jp.cjs} +1 -1
- package/dist/{time-D0jvDRhn.mjs → time-Cw0liIqB.mjs} +1 -1
- package/dist/{titleGenerator-RGHWP2YL.cjs → titleGenerator-Y1_7ceJC.cjs} +17 -13
- package/dist/{titleGenerator-AGQsXskb.mjs → titleGenerator-h6TmFe-c.mjs} +16 -12
- package/dist/{todo-CzIDPLFy.cjs → todo-BxiPiCvB.cjs} +6 -6
- package/dist/{todo-BZ954vsz.mjs → todo-OKcTC_VC.mjs} +6 -6
- package/dist/{tools-Bei5i03L.mjs → tools-BR-drXZ8.mjs} +3 -2
- package/dist/{tools-B1x1j6tz.cjs → tools-CcebYtLj.cjs} +3 -2
- package/dist/{uninstall-C3cnIvz1.cjs → uninstall-CnDeCC-M.cjs} +3 -3
- package/dist/{uninstall-B4T_e3Mr.mjs → uninstall-D3stWKD2.mjs} +3 -3
- package/dist/wrapperAccount-BkufO_9g.mjs +107 -0
- package/dist/wrapperAccount-D2A4DuZy.cjs +113 -0
- package/package.json +7 -7
- package/dist/providerBinding-B-Qbx9W2.cjs +0 -140
- package/dist/providerBinding-CYubGg-Z.mjs +0 -132
- package/dist/selfCheck-C-rNljKV.mjs +0 -86
- package/dist/sessionProvider-DUn91LhJ.mjs +0 -109
- package/dist/sessionProvider-Dg691XQ4.cjs +0 -114
|
@@ -431,18 +431,203 @@ const ConnectionDiagnosticEventSchema = z$1.object({
|
|
|
431
431
|
z$1.object({
|
|
432
432
|
events: z$1.array(ConnectionDiagnosticEventSchema).min(1).max(32)
|
|
433
433
|
}).strict();
|
|
434
|
+
const AGENT_PROFILE_SESSION_CAPABILITY = "agent-profile-v1";
|
|
435
|
+
const AGENT_PROFILE_RPC = {
|
|
436
|
+
list: "agent-profile-list",
|
|
437
|
+
add: "agent-profile-add",
|
|
438
|
+
loginStart: "agent-profile-login-start",
|
|
439
|
+
loginSubmit: "agent-profile-login-submit",
|
|
440
|
+
loginStatus: "agent-profile-login-status",
|
|
441
|
+
loginCancel: "agent-profile-login-cancel",
|
|
442
|
+
test: "agent-profile-test",
|
|
443
|
+
rename: "agent-profile-rename",
|
|
444
|
+
remove: "agent-profile-remove",
|
|
445
|
+
setDefault: "agent-profile-set-default",
|
|
446
|
+
bind: "agent-profile-bind"
|
|
447
|
+
};
|
|
448
|
+
const AGENT_PROFILE_KINDS = ["claude-subscription", "claude-api", "codex-chatgpt", "codex-provider"];
|
|
449
|
+
const AGENT_PROFILE_STATUSES = ["ok", "unverified", "expired", "invalid", "missing-secret"];
|
|
450
|
+
const AgentProfileSummarySchema = z$1.object({
|
|
451
|
+
id: z$1.string(),
|
|
452
|
+
label: z$1.string(),
|
|
453
|
+
agent: z$1.string(),
|
|
454
|
+
// 'claude' | 'codex' (pi/gemini later)
|
|
455
|
+
kind: z$1.string(),
|
|
456
|
+
// AgentProfileKind (open)
|
|
457
|
+
status: z$1.string(),
|
|
458
|
+
// AgentProfileStatus (open; unknown → 'unverified')
|
|
459
|
+
statusDetail: z$1.string().optional(),
|
|
460
|
+
// short human reason for the last failed check
|
|
461
|
+
checkedAt: z$1.number().optional(),
|
|
462
|
+
createdAt: z$1.number().optional(),
|
|
463
|
+
/** Subscription token expiry (ms). The UI derives 「即将过期」 from it. */
|
|
464
|
+
expiresAt: z$1.number().optional(),
|
|
465
|
+
/** API kinds: endpoint (not a secret). */
|
|
466
|
+
baseUrl: z$1.string().optional(),
|
|
467
|
+
/** API kinds: models the endpoint serves; first = default for a new binding. */
|
|
468
|
+
models: z$1.array(z$1.string()).optional(),
|
|
469
|
+
/** Where the key comes from: 'file' | 'env' | 'stored' (pasted / login-created, kept 0600 on the machine). */
|
|
470
|
+
keySource: z$1.string().optional(),
|
|
471
|
+
/** 'file' → the path, 'env' → the variable name. Never the key. */
|
|
472
|
+
keyRef: z$1.string().optional(),
|
|
473
|
+
/** Read from the B-794 `providers.json` (v1): listed and usable, but edit/remove it in that file. */
|
|
474
|
+
legacy: z$1.boolean().optional(),
|
|
475
|
+
/** B-850b codex-provider: the `[model_providers.<id>]` of ~/.codex/config.toml it is based on. */
|
|
476
|
+
provider: z$1.string().optional(),
|
|
477
|
+
/** B-850b codex-chatgpt: from Codex `account/read` after sign-in. */
|
|
478
|
+
email: z$1.string().optional(),
|
|
479
|
+
planType: z$1.string().optional()
|
|
480
|
+
});
|
|
481
|
+
const AgentProfilesStateSchema = z$1.object({
|
|
482
|
+
daemonPid: z$1.number(),
|
|
483
|
+
updatedAt: z$1.number(),
|
|
484
|
+
accounts: z$1.array(AgentProfileSummarySchema),
|
|
485
|
+
/** agent → account id new sessions on this machine use when the spawn names none. Absent = machine login. */
|
|
486
|
+
defaults: z$1.record(z$1.string(), z$1.string()),
|
|
487
|
+
/**
|
|
488
|
+
* B-850b: the account kinds this daemon can create (its AGENT_PROFILE_KINDS). Always sent from
|
|
489
|
+
* B-850b on, so a codex-capable daemon with no config.toml providers is distinguishable from a
|
|
490
|
+
* B-850a daemon. Absent (older daemon) = ['claude-subscription', 'claude-api'].
|
|
491
|
+
*/
|
|
492
|
+
kinds: z$1.array(z$1.string()).optional(),
|
|
493
|
+
/** B-850b: the providers in this machine's ~/.codex/config.toml (for the add form; no secrets). Absent when none. */
|
|
494
|
+
codexProviders: z$1.array(z$1.object({
|
|
495
|
+
id: z$1.string(),
|
|
496
|
+
name: z$1.string().optional(),
|
|
497
|
+
baseUrl: z$1.string().optional(),
|
|
498
|
+
envKey: z$1.string().optional()
|
|
499
|
+
})).optional(),
|
|
500
|
+
/**
|
|
501
|
+
* B-850d: what else this daemon honours. `'launch-accounts'` = the account
|
|
502
|
+
* chosen on a project / team / automation (and a fork's inherited one) is
|
|
503
|
+
* used, and an unusable one refuses the run. Absent (B-850a/b daemon) =
|
|
504
|
+
* those fields are ignored: such sessions start on the machine default
|
|
505
|
+
* account, else the machine login — the Web says so next to the picker.
|
|
506
|
+
*/
|
|
507
|
+
features: z$1.array(z$1.string()).optional()
|
|
508
|
+
});
|
|
509
|
+
z$1.object({
|
|
510
|
+
id: z$1.string(),
|
|
511
|
+
label: z$1.string(),
|
|
512
|
+
kind: z$1.string(),
|
|
513
|
+
status: z$1.string(),
|
|
514
|
+
reason: z$1.string().optional(),
|
|
515
|
+
/** API kinds: the model every slot is pinned to. */
|
|
516
|
+
model: z$1.string().optional()
|
|
517
|
+
});
|
|
518
|
+
const AgentProfileKeyInputSchema = z$1.discriminatedUnion("source", [
|
|
519
|
+
z$1.object({ source: z$1.literal("file"), path: z$1.string().min(1).max(1024) }),
|
|
520
|
+
z$1.object({ source: z$1.literal("env"), name: z$1.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/) }),
|
|
521
|
+
/** Q2: allowed, never the default. Relayed through the server (not stored there); kept 0600 on the machine. */
|
|
522
|
+
z$1.object({ source: z$1.literal("paste"), value: z$1.string().min(1).max(4096) })
|
|
523
|
+
]);
|
|
524
|
+
const AgentProfileModelInputSchema = z$1.union([
|
|
525
|
+
z$1.string().min(1).max(160),
|
|
526
|
+
z$1.object({ id: z$1.string().min(1).max(160), contextWindow: z$1.number().int().positive().optional() })
|
|
527
|
+
]);
|
|
528
|
+
const BaseUrlSchema = z$1.string().regex(/^https?:\/\/\S+$/).max(512);
|
|
529
|
+
const ClaudeApiAddRequestSchema = z$1.object({
|
|
530
|
+
agent: z$1.literal("claude"),
|
|
531
|
+
kind: z$1.literal("claude-api"),
|
|
532
|
+
label: z$1.string().trim().min(1).max(60),
|
|
533
|
+
baseUrl: BaseUrlSchema,
|
|
534
|
+
models: z$1.array(AgentProfileModelInputSchema).max(50).optional(),
|
|
535
|
+
key: AgentProfileKeyInputSchema
|
|
536
|
+
});
|
|
537
|
+
const CodexProviderAddRequestSchema = z$1.object({
|
|
538
|
+
agent: z$1.literal("codex"),
|
|
539
|
+
kind: z$1.literal("codex-provider"),
|
|
540
|
+
label: z$1.string().trim().min(1).max(60),
|
|
541
|
+
provider: z$1.string().regex(/^[A-Za-z0-9_-]{1,64}$/).optional(),
|
|
542
|
+
baseUrl: BaseUrlSchema.optional(),
|
|
543
|
+
wireApi: z$1.enum(["responses", "chat"]).optional(),
|
|
544
|
+
models: z$1.array(AgentProfileModelInputSchema).max(50).optional(),
|
|
545
|
+
key: AgentProfileKeyInputSchema
|
|
546
|
+
}).refine((r) => !!r.provider || !!r.baseUrl, { message: "provider or baseUrl is required" });
|
|
547
|
+
const AgentProfileAddRequestSchema = z$1.union([ClaudeApiAddRequestSchema, CodexProviderAddRequestSchema]);
|
|
548
|
+
const AgentProfileLoginStartRequestSchema = z$1.union([
|
|
549
|
+
z$1.object({
|
|
550
|
+
agent: z$1.literal("claude"),
|
|
551
|
+
kind: z$1.literal("claude-subscription"),
|
|
552
|
+
label: z$1.string().trim().min(1).max(60).optional(),
|
|
553
|
+
accountId: z$1.string().optional()
|
|
554
|
+
}),
|
|
555
|
+
z$1.object({
|
|
556
|
+
agent: z$1.literal("codex"),
|
|
557
|
+
kind: z$1.literal("codex-chatgpt"),
|
|
558
|
+
/** Optional: a new account defaults to the signed-in email. */
|
|
559
|
+
label: z$1.string().trim().min(1).max(60).optional(),
|
|
560
|
+
accountId: z$1.string().optional()
|
|
561
|
+
})
|
|
562
|
+
]);
|
|
563
|
+
const AgentProfileLoginSubmitRequestSchema = z$1.object({
|
|
564
|
+
loginId: z$1.string(),
|
|
565
|
+
code: z$1.string().trim().min(1).max(2048)
|
|
566
|
+
});
|
|
567
|
+
z$1.object({
|
|
568
|
+
loginId: z$1.string(),
|
|
569
|
+
state: z$1.string(),
|
|
570
|
+
/** B-850b: 'paste-code' | 'device-code' (absent = older CLI = paste-code). */
|
|
571
|
+
flow: z$1.string().optional(),
|
|
572
|
+
/** device-code: what the user types on the `url` page. Not a secret on its own (useless without the browser sign-in). */
|
|
573
|
+
userCode: z$1.string().optional(),
|
|
574
|
+
url: z$1.string().optional(),
|
|
575
|
+
expiresAt: z$1.number().optional(),
|
|
576
|
+
account: AgentProfileSummarySchema.optional(),
|
|
577
|
+
error: z$1.string().optional()
|
|
578
|
+
});
|
|
579
|
+
const AgentProfileBindRequestSchema = z$1.object({
|
|
580
|
+
sessionId: z$1.string().min(1),
|
|
581
|
+
/** null = back to the machine login. */
|
|
582
|
+
accountId: z$1.string().nullable(),
|
|
583
|
+
/** API kinds only; default = the account's first model. */
|
|
584
|
+
model: z$1.string().max(160).optional(),
|
|
585
|
+
/** Default true: restart the session in place now. */
|
|
586
|
+
restart: z$1.boolean().optional()
|
|
587
|
+
});
|
|
588
|
+
new Set(AGENT_PROFILE_STATUSES);
|
|
589
|
+
const AGENT_PROFILE_FEATURE_LAUNCH = "launch-accounts";
|
|
590
|
+
const AgentProfileRefSchema = z$1.object({
|
|
591
|
+
id: z$1.string().min(1).max(64),
|
|
592
|
+
label: z$1.string().min(1).max(200).optional()
|
|
593
|
+
});
|
|
594
|
+
const AgentProfileChoiceSchema = AgentProfileRefSchema.nullable();
|
|
595
|
+
const ProjectAgentProfileSchema = z$1.object({
|
|
596
|
+
agent: z$1.string().min(1).max(64),
|
|
597
|
+
machineId: z$1.string().min(1).max(128),
|
|
598
|
+
id: z$1.string().min(1).max(64).nullable(),
|
|
599
|
+
label: z$1.string().min(1).max(200).optional()
|
|
600
|
+
});
|
|
601
|
+
const ProjectAgentProfilesSchema = z$1.array(ProjectAgentProfileSchema).max(16);
|
|
602
|
+
function resolveLaunchAgentProfile(input) {
|
|
603
|
+
if (input.explicit !== void 0) {
|
|
604
|
+
const id2 = input.explicit === null ? null : input.explicit.id;
|
|
605
|
+
return { agentProfileId: id2, source: "explicit", effective: id2 };
|
|
606
|
+
}
|
|
607
|
+
const entry = input.project?.find((p) => p.agent === input.agent && p.machineId === input.machineId);
|
|
608
|
+
if (entry) return { agentProfileId: entry.id, source: "project", effective: entry.id };
|
|
609
|
+
if (!input.machineDefaults) return { agentProfileId: void 0, source: "machine", effective: void 0 };
|
|
610
|
+
const fallback = input.machineDefaults[input.agent];
|
|
611
|
+
return fallback ? { agentProfileId: void 0, source: "machine", effective: fallback } : { agentProfileId: void 0, source: "machine-login", effective: null };
|
|
612
|
+
}
|
|
613
|
+
function agentProfileUnavailableReason(error) {
|
|
614
|
+
const m = /^agent-profile-unavailable:([a-z-]+)/.exec(error ?? "");
|
|
615
|
+
return m ? m[1] : null;
|
|
616
|
+
}
|
|
434
617
|
const TeamPermissionModeSchema = z$1.enum(["default", "bypassPermissions"]);
|
|
435
618
|
const id$3 = z$1.string().min(1).max(128);
|
|
436
619
|
const text$1 = z$1.string().min(1).max(32e3);
|
|
437
620
|
const TeamAssistantSchema = z$1.enum(["claude", "codex", "pi-acp"]);
|
|
438
621
|
const TeamModelSchema = z$1.string().trim().min(1).max(256);
|
|
439
|
-
const TeamLaunchSchema = z$1.object({ goal: text$1, directory: z$1.string().min(1).max(4096), assistant: TeamAssistantSchema, model: TeamModelSchema.optional() });
|
|
440
|
-
const TeamDefaultsSchema = z$1.object({ assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional(), maxParallel: z$1.number().int().min(1).max(16).optional() });
|
|
622
|
+
const TeamLaunchSchema = z$1.object({ goal: text$1, directory: z$1.string().min(1).max(4096), assistant: TeamAssistantSchema, model: TeamModelSchema.optional(), agentProfile: AgentProfileChoiceSchema.optional() });
|
|
623
|
+
const TeamDefaultsSchema = z$1.object({ assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional(), maxParallel: z$1.number().int().min(1).max(16).optional(), agentProfile: AgentProfileChoiceSchema.optional() });
|
|
441
624
|
const TeamActionSchema = z$1.discriminatedUnion("type", [
|
|
442
625
|
z$1.object({ type: z$1.literal("archive") }),
|
|
443
626
|
z$1.object({ type: z$1.literal("start"), launch: TeamLaunchSchema }),
|
|
444
627
|
z$1.object({ type: z$1.literal("set-defaults"), defaults: TeamDefaultsSchema }),
|
|
445
628
|
z$1.object({ type: z$1.literal("set-permission-mode"), permissionMode: TeamPermissionModeSchema }),
|
|
629
|
+
/** B-850d: a member's account for its next spawn (absent = follow the team default). An old server answers invalid action. */
|
|
630
|
+
z$1.object({ type: z$1.literal("set-bot-account"), botId: id$3, agentProfile: AgentProfileChoiceSchema.optional() }),
|
|
446
631
|
z$1.object({ type: z$1.literal("schedule-create"), name: id$3, botId: id$3, body: text$1, runAt: z$1.number().int().positive().max(864e13), intervalMs: z$1.number().int().min(6e4).max(366 * 864e5).optional() }),
|
|
447
632
|
z$1.object({ type: z$1.literal("schedule-pause"), scheduleId: id$3, version: z$1.number().int().positive() }),
|
|
448
633
|
z$1.object({ type: z$1.literal("schedule-resume"), scheduleId: id$3, version: z$1.number().int().positive() }),
|
|
@@ -452,7 +637,7 @@ const TeamActionSchema = z$1.discriminatedUnion("type", [
|
|
|
452
637
|
z$1.object({ type: z$1.literal("retry-operation"), operationId: id$3, claimId: id$3 }),
|
|
453
638
|
/** B-730: `transfer` = the owner confirmed moving a session that is bound in another live team (Web adopt); without it the server answers `session_in_other_team`. An old server strips it. */
|
|
454
639
|
z$1.object({ type: z$1.literal("join"), name: id$3, sessionId: id$3, botId: id$3.optional(), transfer: z$1.literal(true).optional() }),
|
|
455
|
-
z$1.object({ type: z$1.literal("delegate"), goal: text$1, acceptance: z$1.array(text$1).min(1).max(32), parentTaskId: id$3.optional(), assigneeBotId: id$3.optional(), botName: id$3.optional(), directory: z$1.string().min(1).max(4096).optional(), assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional() }),
|
|
640
|
+
z$1.object({ type: z$1.literal("delegate"), goal: text$1, acceptance: z$1.array(text$1).min(1).max(32), parentTaskId: id$3.optional(), assigneeBotId: id$3.optional(), botName: id$3.optional(), directory: z$1.string().min(1).max(4096).optional(), assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional(), agentProfile: AgentProfileChoiceSchema.optional() }),
|
|
456
641
|
z$1.object({ type: z$1.literal("message"), taskId: id$3, body: text$1, recipientBotId: id$3.optional() }),
|
|
457
642
|
z$1.object({ type: z$1.literal("submit"), taskId: id$3, attemptId: id$3, goalVersion: z$1.number().int().positive(), result: text$1 }),
|
|
458
643
|
z$1.object({ type: z$1.literal("accept"), taskId: id$3, attemptId: id$3, goalVersion: z$1.number().int().positive() }),
|
|
@@ -540,7 +725,9 @@ const AutomationActionSchema = z$1.discriminatedUnion("kind", [
|
|
|
540
725
|
model: z$1.string().trim().min(1).max(256).nullable().optional(),
|
|
541
726
|
permissionMode: z$1.string().trim().min(1).max(64).nullable().optional(),
|
|
542
727
|
worktree: z$1.boolean().optional(),
|
|
543
|
-
sticky: AutomationStickySchema.optional()
|
|
728
|
+
sticky: AutomationStickySchema.optional(),
|
|
729
|
+
/** B-850d: the account the run uses (absent = project default > machine default; null = machine login). An older daemon ignores it. */
|
|
730
|
+
agentProfile: AgentProfileChoiceSchema.optional()
|
|
544
731
|
}),
|
|
545
732
|
z$1.object({ kind: z$1.literal("send"), sessionId: id$2, prompt: text }),
|
|
546
733
|
z$1.object({
|
|
@@ -649,7 +836,9 @@ const ProjectDefaultsSchema = z$1.object({
|
|
|
649
836
|
agent: z$1.string().max(64).nullable().optional(),
|
|
650
837
|
model: z$1.string().max(256).nullable().optional(),
|
|
651
838
|
permissionMode: z$1.string().max(64).nullable().optional(),
|
|
652
|
-
worktree: z$1.boolean().nullable().optional()
|
|
839
|
+
worktree: z$1.boolean().nullable().optional(),
|
|
840
|
+
/** B-850d: per-agent account for new sessions (one entry per agent, machine-scoped; ids + labels only). */
|
|
841
|
+
agentProfiles: ProjectAgentProfilesSchema.nullable().optional()
|
|
653
842
|
});
|
|
654
843
|
const PROJECT_LOG_KINDS = ["decision", "finding", "handoff"];
|
|
655
844
|
const ProjectLogKindSchema = z$1.enum(PROJECT_LOG_KINDS);
|
|
@@ -1708,4 +1897,4 @@ z.object({
|
|
|
1708
1897
|
reason: z.string()
|
|
1709
1898
|
});
|
|
1710
1899
|
|
|
1711
|
-
export {
|
|
1900
|
+
export { OwnerBoardResolveInputSchema as $, AGENT_PROFILE_SESSION_CAPABILITY as A, BUILTIN_TODO_SKILL as B, CLAUDE_CONFIG_MODEL_CAPABILITY as C, AutomationTriggerSchema as D, AgentProfilesStateSchema as E, AgentVersionsSchema as F, AGENT_PROFILE_FEATURE_LAUNCH as G, AgentProfileAddRequestSchema as H, AgentProfileLoginStartRequestSchema as I, AgentProfileLoginSubmitRequestSchema as J, AgentProfileBindRequestSchema as K, getAgentCodeDefaults as L, isLatestModelMode as M, resolveLatestModel as N, LATEST_MODEL_MODE as O, PROMPT_QUEUE_CAPABILITY as P, EFFORT_INTENT_AUTO as Q, RUN_INTENT_CAPABILITY as R, STREAM_DELTA_MAX_CHARS as S, normalizeAgentKey as T, AGENT_VERSION_SOURCES as U, ATTENTION_DISABLED_ERROR as V, ATTENTION_LIMITS as W, ownerBoardPostToRest as X, isAttentionBoardLocalId as Y, OwnerBoardPostInputSchema as Z, OwnerBoardUpdateInputSchema as _, PROJECT_SESSION_CAPABILITY as a, OwnerBoardListInputSchema as a0, ATTENTION_SESSION_CAPABILITY as a1, PI_STEER_CAPABILITY as a2, ReleaseDrainNoticeSchema as a3, RelayAssignmentResponseSchema as a4, CODEX_STEER_CAPABILITY as a5, CODEX_COMPACT_CAPABILITY as a6, AGENT_PROFILE_RPC as a7, RelayCandidatesResponseSchema as a8, ServerMigrateNoticeSchema as a9, isHarnessInstallId as aa, agentProfileUnavailableReason as ab, MODEL_INTENT_CONFIG as ac, AUTOMATION_PRECHECK_OUTPUT_MAX_CHARS as ad, AUTOMATION_PRECHECK_DEFAULT_TIMEOUT_MS as ae, AUTOMATION_CLAIM_MAX_RUNS as af, AUTOMATION_DAEMON_CAPABILITY_PRECHECK as ag, AUTOMATION_DEFAULT_LEASE_MS as ah, HARNESS_INSTALL_CAPABILITY_VERSION as ai, restoredModel as b, AUTOMATION_NAME_PATTERN as c, AUTOMATION_PRECHECK_MAX_TIMEOUT_MS as d, AutomationPrecheckSchema as e, isInsideTeamWorktree as f, rebaseTeamWorktreePath as g, AUTOMATION_ATTENTION_REASON_MAX_CHARS as h, isAutomationRunTerminal as i, AUTOMATION_SUMMARY_MAX_CHARS as j, createEnvelope as k, RUN_INTENT_RPC as l, RunIntentRequestSchema as m, nextRunIntents as n, readEffortIntent as o, readModelIntent as p, createBuiltinTodoClient as q, restoredEffort as r, streamKeyOf as s, AGENT_PROFILE_KINDS as t, parseLatestModelTable as u, resolveLaunchAgentProfile as v, BUILTIN_TODO_DISCOVERY as w, AutomationNameSchema as x, AutomationConcurrencySchema as y, AutomationActionSchema as z };
|
|
@@ -1,99 +1,103 @@
|
|
|
1
|
-
import { D as DefaultTransport, A as AcpBackend, i as isAgentExitError, a as acpNoticeMessage } from './AcpBackend-
|
|
2
|
-
export { b as DEFAULT_IDLE_TIMEOUT_MS, c as DEFAULT_TOOL_CALL_TIMEOUT_MS, e as extractErrorDetail, f as formatDuration, d as formatDurationMinutes, h as handleAgentMessageChunk, g as handleAgentThoughtChunk, j as handleLegacyMessageChunk, k as handlePlanUpdate, l as handleThinkingUpdate, m as handleToolCall, n as handleToolCallUpdate, p as parseArgsFromContent } from './AcpBackend-
|
|
3
|
-
import { l as logger } from './logger-
|
|
4
|
-
import { A as AcpSessionManager } from './AcpSessionManager-
|
|
5
|
-
import { P as PROMPT_QUEUE_CAPABILITY, a as PROJECT_SESSION_CAPABILITY,
|
|
6
|
-
import { h as hashObject, s as startHappyServer, r as readPiModelsJson, a as resolvePiContextUsage, c as createProjectInjector } from './deterministicJson-
|
|
1
|
+
import { D as DefaultTransport, A as AcpBackend, i as isAgentExitError, a as acpNoticeMessage } from './AcpBackend-B4PwjqHt.mjs';
|
|
2
|
+
export { b as DEFAULT_IDLE_TIMEOUT_MS, c as DEFAULT_TOOL_CALL_TIMEOUT_MS, e as extractErrorDetail, f as formatDuration, d as formatDurationMinutes, h as handleAgentMessageChunk, g as handleAgentThoughtChunk, j as handleLegacyMessageChunk, k as handlePlanUpdate, l as handleThinkingUpdate, m as handleToolCall, n as handleToolCallUpdate, p as parseArgsFromContent } from './AcpBackend-B4PwjqHt.mjs';
|
|
3
|
+
import { l as logger } from './logger-JV7-4Q_6.mjs';
|
|
4
|
+
import { A as AcpSessionManager } from './AcpSessionManager-BzKWgkdP.mjs';
|
|
5
|
+
import { P as PROMPT_QUEUE_CAPABILITY, a as PROJECT_SESSION_CAPABILITY, a2 as PI_STEER_CAPABILITY, w as BUILTIN_TODO_DISCOVERY } from './index-D1YnIih6.mjs';
|
|
6
|
+
import { h as hashObject, s as startHappyServer, r as readPiModelsJson, a as resolvePiContextUsage, c as createProjectInjector } from './deterministicJson-BzX94gi3.mjs';
|
|
7
7
|
import { c as compactCommandText, C as COMPACT_UNSUPPORTED_NOTICE } from './specialCommands-MXUN0wfI.mjs';
|
|
8
8
|
import { r as registerAgentAttachmentDownloads, H as HeldInput } from './heldInput-C69lA2dH.mjs';
|
|
9
|
-
import { c as configuration } from './configuration-
|
|
10
|
-
import { a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt, C as CLAUDE_ATTACHMENT_KINDS } from './attachmentContent-
|
|
11
|
-
import { p as preparePiTeamsRuntime } from './piRuntime-
|
|
9
|
+
import { c as configuration } from './configuration-ThKBP_zY.mjs';
|
|
10
|
+
import { a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt, C as CLAUDE_ATTACHMENT_KINDS } from './attachmentContent-KNIZxwlu.mjs';
|
|
11
|
+
import { p as preparePiTeamsRuntime } from './piRuntime-Bid7TBf5.mjs';
|
|
12
12
|
import { randomUUID } from 'node:crypto';
|
|
13
13
|
import { join } from 'node:path';
|
|
14
|
-
import { c as connectionState, A as ApiClient } from './api-
|
|
15
|
-
import { s as sharedProjectsClient } from './client-
|
|
16
|
-
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-
|
|
17
|
-
import { r as readSettings, a as resolveCheckMs } from './persistence-
|
|
18
|
-
import { g as getInitialMachineMetadata } from './machineMetadata-
|
|
19
|
-
import { c as createSessionMetadata } from './createSessionMetadata-
|
|
20
|
-
import { s as setupOfflineReconnection } from './setupOfflineReconnection-
|
|
21
|
-
import { c as createSessionForStartup, H as HibernationProbe } from './startupSessionCreate-
|
|
22
|
-
import { n as notifyDaemonSessionStarted, c as checkDaemonHibernation,
|
|
14
|
+
import { c as connectionState, A as ApiClient } from './api-DUfunY3x.mjs';
|
|
15
|
+
import { s as sharedProjectsClient } from './client-Bde4QVIn.mjs';
|
|
16
|
+
import { M as MessageQueue2, r as registerKillSessionHandler } from './registerKillSessionHandler-Bg9t45Ub.mjs';
|
|
17
|
+
import { r as readSettings, a as resolveCheckMs } from './persistence-Cg4sfjQV.mjs';
|
|
18
|
+
import { g as getInitialMachineMetadata } from './machineMetadata-D5-SW9kv.mjs';
|
|
19
|
+
import { c as createSessionMetadata } from './createSessionMetadata-vug4Cv8z.mjs';
|
|
20
|
+
import { s as setupOfflineReconnection } from './setupOfflineReconnection-Bvdy-2xd.mjs';
|
|
21
|
+
import { c as createSessionForStartup, H as HibernationProbe } from './startupSessionCreate-DoK0IvJG.mjs';
|
|
22
|
+
import { n as notifyDaemonSessionStarted, c as checkDaemonHibernation, o as reportSessionEditToDaemon } from './controlClient-Ckl8N1MS.mjs';
|
|
23
23
|
import { d as decodeBase64, e as encodeBase64 } from './authRelay-DhQhkBvX.mjs';
|
|
24
|
-
import { A as AUTO_RESTART_CAPABILITY, c as claimSessionOrExit, a as applyServerSnapshot, w as withoutServerSnapshot, m as mergeReconnectMetadata, t as takeAutoRestartedEvent } from './sessionLock-
|
|
25
|
-
import { r as readAcpReconnectEnv, n as normalizeAcpPermissionMode, p as piRestartNotice, w as writeSessionModeFile, a as removeSessionModeFile } from './acpSessionResume-
|
|
26
|
-
import {
|
|
24
|
+
import { A as AUTO_RESTART_CAPABILITY, c as claimSessionOrExit, a as applyServerSnapshot, w as withoutServerSnapshot, m as mergeReconnectMetadata, t as takeAutoRestartedEvent } from './sessionLock-B73fhgQN.mjs';
|
|
25
|
+
import { r as readAcpReconnectEnv, n as normalizeAcpPermissionMode, p as piRestartNotice, w as writeSessionModeFile, a as removeSessionModeFile } from './acpSessionResume-TQwN9ZZE.mjs';
|
|
26
|
+
import { t as takeReconnectEnv } from './reconnectEnv-DeSvHl3q.mjs';
|
|
27
|
+
import { S as StreamRelay } from './streamRelay-C5U-C4GS.mjs';
|
|
27
28
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
28
|
-
import { B as BasePermissionHandler } from './BasePermissionHandler-
|
|
29
|
-
import { T as TitleGenerator } from './titleGenerator-
|
|
29
|
+
import { B as BasePermissionHandler } from './BasePermissionHandler-DV6UM6e9.mjs';
|
|
30
|
+
import { T as TitleGenerator } from './titleGenerator-h6TmFe-c.mjs';
|
|
30
31
|
import { E as EditReportThrottle, e as extractAcpEditPaths } from './editPaths-BVfS_FFL.mjs';
|
|
31
32
|
import { readFileSync } from 'node:fs';
|
|
32
33
|
import { homedir } from 'node:os';
|
|
33
34
|
import 'node:child_process';
|
|
34
35
|
import '@agentclientprotocol/sdk';
|
|
35
|
-
import './time-
|
|
36
|
+
import './time-Cw0liIqB.mjs';
|
|
36
37
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
37
38
|
import './processTree-CP5IvQ2Z.mjs';
|
|
38
|
-
import './package-
|
|
39
|
+
import './package-Bw3H6VLn.mjs';
|
|
39
40
|
import 'chalk';
|
|
40
41
|
import 'node:util';
|
|
41
42
|
import '@paralleldrive/cuid2';
|
|
42
43
|
import 'zod';
|
|
43
44
|
import './prompt-QHuFx9j6.mjs';
|
|
44
|
-
import './reportProgressTool-
|
|
45
|
-
import './client-
|
|
45
|
+
import './reportProgressTool-DVru7jc_.mjs';
|
|
46
|
+
import './client-7RnI9J0W.mjs';
|
|
46
47
|
import './precheckCompat-DeEbilbr.mjs';
|
|
47
48
|
import './agentGuidance-BDYt2Qy2.mjs';
|
|
48
49
|
import './trimIdent-BAjmv_TG.mjs';
|
|
49
50
|
import './pi-CqyoZMjI.mjs';
|
|
50
51
|
import './fileStore-5qpetZS0.mjs';
|
|
51
52
|
import 'node:fs/promises';
|
|
52
|
-
import './client-
|
|
53
|
-
import './context-
|
|
54
|
-
import './sessionOps-
|
|
53
|
+
import './client-DwbhrX6D.mjs';
|
|
54
|
+
import './context-C0EFLnOg.mjs';
|
|
55
|
+
import './sessionOps-C65Iej_C.mjs';
|
|
55
56
|
import 'axios';
|
|
56
57
|
import 'socket.io-client';
|
|
57
58
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
58
59
|
import './resources-CLP_MpK4.mjs';
|
|
59
|
-
import './tools-
|
|
60
|
-
import './peerTools-
|
|
60
|
+
import './tools-BR-drXZ8.mjs';
|
|
61
|
+
import './peerTools-WtRgTSqG.mjs';
|
|
61
62
|
import './ids-DU6sLx4C.mjs';
|
|
62
|
-
import './remoteSessionClient
|
|
63
|
+
import './remoteSessionClient--0vfA7I5.mjs';
|
|
63
64
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
64
65
|
import 'node:http';
|
|
65
66
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
66
67
|
import './limits-DIo7rEBR.mjs';
|
|
67
|
-
import './downloadTarget-
|
|
68
|
+
import './downloadTarget-Baslc6jW.mjs';
|
|
68
69
|
import './terminals-Dlg0x3nY.mjs';
|
|
69
70
|
import './terminalTitleSuggest-CeKsX_V6.mjs';
|
|
70
71
|
import './tmuxSocket-B8Yx20sT.mjs';
|
|
71
|
-
import './bootstrap-
|
|
72
|
+
import './bootstrap-B3gMpU9e.mjs';
|
|
72
73
|
import './webPanels-B2_C2-3g.mjs';
|
|
73
|
-
import './pushNotifications-
|
|
74
|
+
import './pushNotifications-BbE-qV9I.mjs';
|
|
74
75
|
import './previewPath-CXN4Vag0.mjs';
|
|
75
76
|
import 'crypto';
|
|
76
|
-
import './lidState-
|
|
77
|
+
import './lidState-B6yYKjNK.mjs';
|
|
77
78
|
import 'os';
|
|
78
79
|
import 'child_process';
|
|
79
80
|
import 'node:events';
|
|
80
|
-
import './registerCommonHandlers-
|
|
81
|
+
import './registerCommonHandlers-Cj3Nl9y-.mjs';
|
|
81
82
|
import 'util';
|
|
82
83
|
import 'fs/promises';
|
|
83
84
|
import 'path';
|
|
84
85
|
import 'cross-spawn';
|
|
85
|
-
import './sync-
|
|
86
|
+
import './sync-BP6vnxVP.mjs';
|
|
86
87
|
import 'tweetnacl';
|
|
87
88
|
import './types-CkqAACXx.mjs';
|
|
88
89
|
import './detectCLI-CSGMlV51.mjs';
|
|
89
90
|
import 'fs';
|
|
90
|
-
import './localHappyAgentAuth-
|
|
91
|
+
import './localHappyAgentAuth-KRlg_aI0.mjs';
|
|
91
92
|
import './fsMkdir-DumgLTzR.mjs';
|
|
92
93
|
import './cliUpdate-Y34VGe9Y.mjs';
|
|
93
94
|
import './processTreeSnapshot-CuLJDNC-.mjs';
|
|
94
95
|
import 'url';
|
|
95
96
|
import 'node:module';
|
|
96
97
|
import './oneShotPrompts-DT4p6RNd.mjs';
|
|
98
|
+
import './wrapperAccount-BkufO_9g.mjs';
|
|
99
|
+
import './claudeAccountEnv-BL1pR_37.mjs';
|
|
100
|
+
import './store-Vej_738f.mjs';
|
|
97
101
|
|
|
98
102
|
function createAcpBackend(options) {
|
|
99
103
|
const backendOptions = {
|
|
@@ -837,7 +841,7 @@ async function runAcp(opts) {
|
|
|
837
841
|
});
|
|
838
842
|
metadata.attachmentKinds = [];
|
|
839
843
|
if (opts.agentName === "gemini") metadata.configuredModel = readGeminiConfiguredModel();
|
|
840
|
-
const reconnect = readAcpReconnectEnv(
|
|
844
|
+
const reconnect = readAcpReconnectEnv(takeReconnectEnv());
|
|
841
845
|
let response;
|
|
842
846
|
if (reconnect) {
|
|
843
847
|
logger.debug(`[acp] Reconnecting to existing session ${reconnect.sessionId}`);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var query = require('./query-
|
|
3
|
+
var query = require('./query-vQ-HG394.cjs');
|
|
4
4
|
var claudeAgentSdk = require('@anthropic-ai/claude-agent-sdk');
|
|
5
5
|
require('./promptCacheTtl-B8PCzE6k.cjs');
|
|
6
6
|
require('node:fs');
|
|
7
7
|
require('node:os');
|
|
8
8
|
require('node:path');
|
|
9
|
-
require('./logger-
|
|
9
|
+
require('./logger-CX3x2eI4.cjs');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('node:util');
|
|
12
|
-
require('./configuration-
|
|
13
|
-
require('./package-
|
|
12
|
+
require('./configuration-BBK0rmmj.cjs');
|
|
13
|
+
require('./package-uzlvxa5S.cjs');
|
|
14
14
|
require('node:fs/promises');
|
|
15
15
|
require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
16
16
|
require('node:child_process');
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-CX3x2eI4.cjs');
|
|
4
4
|
var require$$0 = require('fs');
|
|
5
5
|
var child_process = require('child_process');
|
|
6
6
|
var trimIdent = require('./trimIdent-4gvk9Wk6.cjs');
|
|
7
7
|
var os = require('os');
|
|
8
8
|
require('chalk');
|
|
9
9
|
require('node:util');
|
|
10
|
-
require('./configuration-
|
|
10
|
+
require('./configuration-BBK0rmmj.cjs');
|
|
11
11
|
require('node:fs');
|
|
12
12
|
require('node:os');
|
|
13
13
|
require('node:path');
|
|
14
|
-
require('./package-
|
|
14
|
+
require('./package-uzlvxa5S.cjs');
|
|
15
15
|
require('node:fs/promises');
|
|
16
16
|
|
|
17
17
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-JV7-4Q_6.mjs';
|
|
2
2
|
import { existsSync, writeFileSync, chmodSync } from 'fs';
|
|
3
3
|
import { execSync } from 'child_process';
|
|
4
4
|
import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs';
|
|
5
5
|
import os from 'os';
|
|
6
6
|
import 'chalk';
|
|
7
7
|
import 'node:util';
|
|
8
|
-
import './configuration-
|
|
8
|
+
import './configuration-ThKBP_zY.mjs';
|
|
9
9
|
import 'node:fs';
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'node:path';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-Bw3H6VLn.mjs';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
|
|
15
15
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
package/dist/lib.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var api = require('./api-
|
|
4
|
-
var logger = require('./logger-
|
|
5
|
-
var configuration = require('./configuration-
|
|
3
|
+
var api = require('./api-CBE_a88I.cjs');
|
|
4
|
+
var logger = require('./logger-CX3x2eI4.cjs');
|
|
5
|
+
var configuration = require('./configuration-BBK0rmmj.cjs');
|
|
6
6
|
var types = require('./types-CRS-srZK.cjs');
|
|
7
7
|
require('axios');
|
|
8
|
-
require('./lidState-
|
|
8
|
+
require('./lidState-B_v6qgfE.cjs');
|
|
9
9
|
require('./authRelay-Dy1qU9td.cjs');
|
|
10
10
|
require('node:crypto');
|
|
11
11
|
require('tweetnacl');
|
|
@@ -13,14 +13,14 @@ require('os');
|
|
|
13
13
|
require('child_process');
|
|
14
14
|
require('node:events');
|
|
15
15
|
require('socket.io-client');
|
|
16
|
-
require('./pushNotifications-
|
|
16
|
+
require('./pushNotifications-BCg7YAiu.cjs');
|
|
17
17
|
require('zod');
|
|
18
|
-
require('./index-
|
|
18
|
+
require('./index-BUFrKZeQ.cjs');
|
|
19
19
|
require('@paralleldrive/cuid2');
|
|
20
20
|
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
21
21
|
require('./limits-C-a7gr04.cjs');
|
|
22
|
-
require('./time-
|
|
23
|
-
require('./registerCommonHandlers-
|
|
22
|
+
require('./time-BTLcO8jp.cjs');
|
|
23
|
+
require('./registerCommonHandlers-CZGmrPbT.cjs');
|
|
24
24
|
require('util');
|
|
25
25
|
require('fs/promises');
|
|
26
26
|
require('crypto');
|
|
@@ -28,17 +28,17 @@ require('path');
|
|
|
28
28
|
require('cross-spawn');
|
|
29
29
|
require('./projectPath-C3ioB4Bu.cjs');
|
|
30
30
|
require('url');
|
|
31
|
-
require('./sync-
|
|
31
|
+
require('./sync-WYBwkJvG.cjs');
|
|
32
32
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
33
|
-
require('./controlClient-
|
|
34
|
-
require('./persistence-
|
|
33
|
+
require('./controlClient-DwWTns3A.cjs');
|
|
34
|
+
require('./persistence-CsmAgN-C.cjs');
|
|
35
35
|
require('node:fs/promises');
|
|
36
36
|
require('node:fs');
|
|
37
37
|
require('chalk');
|
|
38
38
|
require('node:util');
|
|
39
39
|
require('node:path');
|
|
40
40
|
require('node:os');
|
|
41
|
-
require('./package-
|
|
41
|
+
require('./package-uzlvxa5S.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|