very-happy-cli 0.2.192 → 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-CGHTDJd9.mjs → AcpBackend-B4PwjqHt.mjs} +3 -3
- package/dist/{AcpBackend-BQO4ShOy.cjs → AcpBackend-DtJCgftG.cjs} +3 -3
- package/dist/{AcpSessionManager-G0xD6Jbq.mjs → AcpSessionManager-BzKWgkdP.mjs} +2 -2
- package/dist/{AcpSessionManager-LlUMmcpB.cjs → AcpSessionManager-D4qshX_H.cjs} +2 -2
- package/dist/{BasePermissionHandler-N6Ip3tFt.cjs → BasePermissionHandler-5iG-cvA2.cjs} +1 -1
- package/dist/{BasePermissionHandler-BmTIg376.mjs → BasePermissionHandler-DV6UM6e9.mjs} +1 -1
- package/dist/{account-CCVT-HO_.mjs → account-Dco_nGT4.mjs} +84 -27
- package/dist/{account-DtaouikP.cjs → account-DvpA60oU.cjs} +84 -27
- package/dist/{accountService-Dd9uqde2.mjs → accountService-Cd7bnkfd.mjs} +369 -19
- package/dist/{accountService-Bddy0zwL.cjs → accountService-CuUSJDhP.cjs} +369 -19
- package/dist/{acpSessionResume-BnHDk5eD.cjs → acpSessionResume-Bk9mjXZ9.cjs} +1 -1
- package/dist/{acpSessionResume-BWEUxNtC.mjs → acpSessionResume-TQwN9ZZE.mjs} +1 -1
- package/dist/{agentHome-B0VnjkZW.mjs → agentHome-Bep8semY.mjs} +4 -4
- package/dist/{agentHome-CqQ29YY7.cjs → agentHome-c2dlgcw1.cjs} +4 -4
- package/dist/{api-hMDsC6Wg.cjs → api-CBE_a88I.cjs} +10 -10
- package/dist/{api-_LeBScjg.mjs → api-DUfunY3x.mjs} +10 -10
- package/dist/{apiMachine-CqW2m6Zr.cjs → apiMachine-BqtG0IWm.cjs} +19 -18
- package/dist/{apiMachine-CgRldeJ6.mjs → apiMachine-CU_bw5nV.mjs} +19 -18
- package/dist/{attachmentContent-BEeT2J5n.cjs → attachmentContent-B3AzuYqk.cjs} +2 -2
- package/dist/{attachmentContent-CyptLIfq.mjs → attachmentContent-KNIZxwlu.mjs} +2 -2
- package/dist/{auth-CFQikywl.mjs → auth-CZ7pKS-j.mjs} +8 -8
- package/dist/{auth-C9NvNHhL.cjs → auth-DCjxpI6Z.cjs} +5 -5
- package/dist/{auth-CA1OClsW.cjs → auth-SJ_dPw7H.cjs} +8 -8
- package/dist/{auth-DL8_J9vu.mjs → auth-jN5dNqTO.mjs} +5 -5
- package/dist/{auto-uQOxlxLp.cjs → auto-B_59RYH1.cjs} +23 -21
- package/dist/{auto-CKI05w1D.mjs → auto-DC0Sq-qB.mjs} +23 -21
- package/dist/{bootstrap-DaZ0Np7X.mjs → bootstrap-B3gMpU9e.mjs} +2 -2
- package/dist/{bootstrap-DsZGc69k.cjs → bootstrap-CoJu9VnB.cjs} +2 -2
- package/dist/{browser-BUIaSHK2.mjs → browser-LHW2hBH8.mjs} +1 -1
- package/dist/{browser-Ft0ASDm7.cjs → browser-v1pdPP1E.cjs} +1 -1
- package/dist/{claudeAccountEnv-ON24i0qv.mjs → claudeAccountEnv-BL1pR_37.mjs} +2 -1
- package/dist/{claudeAccountEnv-BOBpJ3k8.cjs → claudeAccountEnv-CEX_EMZr.cjs} +2 -1
- package/dist/{claudeLocal-B1ZVtryl.mjs → claudeLocal-BZUgA5G2.mjs} +5 -5
- package/dist/{claudeLocal-BMf9t4Fa.cjs → claudeLocal-BrzM2RBI.cjs} +5 -5
- package/dist/{claudeLocalLauncher-Bp8bqF4y.mjs → claudeLocalLauncher-A0AQyHFi.mjs} +10 -10
- package/dist/{claudeLocalLauncher-C8TeJcfF.cjs → claudeLocalLauncher-XAMpXUM7.cjs} +10 -10
- package/dist/{claudeSessionFork-YiktY55n.cjs → claudeSessionFork-Mhn2fYe_.cjs} +1 -1
- package/dist/{claudeSessionFork-8AA47z8Y.mjs → claudeSessionFork-_GwIlmMB.mjs} +1 -1
- package/dist/{client-Cxlp_D4I.mjs → client-7RnI9J0W.mjs} +2 -2
- package/dist/{client-Bm4oKvW7.mjs → client-Bde4QVIn.mjs} +4 -2
- package/dist/{client-D8XROyZc.cjs → client-CJr8Pjwm.cjs} +4 -2
- package/dist/{client-Crh8_cNx.cjs → client-D2GWkd-T.cjs} +2 -2
- package/dist/{client-CFHZfh9x.cjs → client-DLlnmAPL.cjs} +4 -4
- package/dist/{client-BmPaBnDK.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-BWJbLCQn.mjs → codexAppServerClient-B3QJV6Ey.mjs} +18 -7
- package/dist/{codexAppServerClient-q8GHQhyC.cjs → codexAppServerClient-DWEsZUC4.cjs} +18 -7
- package/dist/{codexCommand-BgpGg-Zy.cjs → codexCommand-Bg8AmxVm.cjs} +187 -57
- package/dist/{codexCommand-BfXfRQr4.mjs → codexCommand-D1xlj4sT.mjs} +188 -58
- package/dist/{codexTermination-CVUF0X75.cjs → codexTermination-ByX9GcEJ.cjs} +1 -1
- package/dist/{codexTermination-s9fd1gkA.mjs → codexTermination-CaWAVQjZ.mjs} +1 -1
- package/dist/{config-BAjyTyYp.cjs → config-B2GGbiTv.cjs} +3 -3
- package/dist/{config-BF8XgLyc.mjs → config-C2XYEwXz.mjs} +3 -3
- package/dist/{configuration-CXEVKAyF.cjs → configuration-BBK0rmmj.cjs} +1 -1
- package/dist/{configuration-IhRiLDVe.mjs → configuration-ThKBP_zY.mjs} +1 -1
- package/dist/{connect-LZh1gr08.mjs → connect-BirnCl9q.mjs} +13 -13
- package/dist/{connect-rCS56arw.cjs → connect-C3tZs_NC.cjs} +13 -13
- package/dist/{context-DO6F5YwH.mjs → context-C0EFLnOg.mjs} +1 -1
- package/dist/{context-3_S_mWz9.cjs → context-wDp0aZBK.cjs} +1 -1
- package/dist/{controlClient-8ILulwjc.mjs → controlClient-Ckl8N1MS.mjs} +3 -3
- package/dist/{controlClient-j7p5p3_7.cjs → controlClient-DwWTns3A.cjs} +3 -3
- package/dist/{createSessionMetadata-DwdD_uVo.cjs → createSessionMetadata-DqZ6h02H.cjs} +2 -2
- package/dist/{createSessionMetadata-oyaTZm1b.mjs → createSessionMetadata-vug4Cv8z.mjs} +2 -2
- package/dist/{daemonAccounts-BCjDgoNt.cjs → daemonAccounts-CpGDY_4k.cjs} +4 -1
- package/dist/{daemonAccounts-BJgt6IJe.mjs → daemonAccounts-DwPwKxvv.mjs} +5 -2
- package/dist/{defaultPermissionMode-BFShzF55.cjs → defaultPermissionMode-BakXiqRr.cjs} +1 -1
- package/dist/{defaultPermissionMode-Lt3PUCwY.mjs → defaultPermissionMode-DF5AfeBb.mjs} +1 -1
- package/dist/{deterministicJson-Dfp-7wUZ.mjs → deterministicJson-BzX94gi3.mjs} +13 -13
- package/dist/{deterministicJson-DUN0v3St.cjs → deterministicJson-t33SsuRC.cjs} +13 -13
- package/dist/{doctor-FgUYTbAT.cjs → doctor-B9ug1LZb.cjs} +7 -7
- package/dist/{doctor-B_UwMcVT.mjs → doctor-C1zyOSXw.mjs} +7 -7
- package/dist/{downloadTarget-C0d6jRx-.mjs → downloadTarget-Baslc6jW.mjs} +6 -6
- package/dist/{downloadTarget-BrrQEDxg.cjs → downloadTarget-T1id2Gh6.cjs} +6 -6
- package/dist/{ensureDaemonRunning-KUMFfIil.mjs → ensureDaemonRunning-C6ERYK-O.mjs} +5 -5
- package/dist/{ensureDaemonRunning-Cq4FYI5Q.cjs → ensureDaemonRunning-CoAg11Zi.cjs} +5 -5
- package/dist/{handleResumeCommand-BGhVo3QH.mjs → handleResumeCommand-CrlqDuz7.mjs} +5 -5
- package/dist/{handleResumeCommand-Cl9GIL5F.cjs → handleResumeCommand-DPi-sPm7.cjs} +5 -5
- package/dist/{index-CZaLMmPC.cjs → index-B1swQJUS.cjs} +4 -4
- package/dist/{index-CQ_hLLCj.cjs → index-B2dJA8VG.cjs} +3 -3
- package/dist/{index-BzAYnYct.cjs → index-BUFrKZeQ.cjs} +198 -108
- package/dist/{index-JQDyJ3Li.mjs → index-BbdV2mzy.mjs} +3 -3
- package/dist/{index-BjXjMhGY.mjs → index-BcSPg3c5.mjs} +4 -4
- package/dist/{index-D8ODb0_U.cjs → index-Bkslzin5.cjs} +42 -42
- package/dist/{index-v5EmjT8l.mjs → index-Cn73rdtQ.mjs} +4 -4
- package/dist/{index-DYD3GM1m.mjs → index-D1YnIih6.mjs} +195 -109
- package/dist/{index-Ca1Tt96A.mjs → index-fZO4nF6e.mjs} +43 -43
- package/dist/{index-CRipkiqo.cjs → index-rocrvOYG.cjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-ClUA9tbC.cjs → install-CArXjPfW.cjs} +3 -3
- package/dist/{install-D6EHRtAN.mjs → install-CChhyV2G.mjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +97 -25
- package/dist/lib.d.mts +97 -25
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-CZOXXdzv.mjs → lidState-B6yYKjNK.mjs} +1 -1
- package/dist/{lidState-DqoN7zH4.cjs → lidState-B_v6qgfE.cjs} +1 -1
- package/dist/{localHappyAgentAuth-YHxDZ4x4.mjs → localHappyAgentAuth-KRlg_aI0.mjs} +1 -1
- package/dist/{localHappyAgentAuth-BnGCpHRX.cjs → localHappyAgentAuth-jJH0n67S.cjs} +1 -1
- package/dist/{logger-8su64lqR.cjs → logger-CX3x2eI4.cjs} +2 -2
- package/dist/{logger-Fd_rNvgd.mjs → logger-JV7-4Q_6.mjs} +2 -2
- package/dist/{machineMetadata-1HIIC7Bc.mjs → machineMetadata-D5-SW9kv.mjs} +3 -3
- package/dist/{machineMetadata-DYXt3p6u.cjs → machineMetadata-DhZuM0iB.cjs} +3 -3
- package/dist/{main-C_GrcYkn.cjs → main-1x1HGQEy.cjs} +47 -47
- package/dist/{main-BI6GIzUL.mjs → main-CFOdXbPD.mjs} +47 -47
- package/dist/{mcp-BycIv9oQ.cjs → mcp-BnKBSEh7.cjs} +18 -18
- package/dist/{mcp-XGoxywno.mjs → mcp-R6lMcFLO.mjs} +18 -18
- package/dist/{mirrorProtocol-DXT3rv7T.mjs → mirrorProtocol-CD4ntuZJ.mjs} +3 -3
- package/dist/{mirrorProtocol-DVnB8EO8.cjs → mirrorProtocol-DO-KtvAL.cjs} +3 -3
- package/dist/{package-6KkRAops.mjs → package-Bw3H6VLn.mjs} +7 -7
- package/dist/{package-iuLlSiSF.cjs → package-uzlvxa5S.cjs} +7 -7
- package/dist/{panels-B5Di2zb2.mjs → panels-BamhZCoZ.mjs} +5 -5
- package/dist/{panels-0C89q0Tu.cjs → panels-C46FxjmH.cjs} +5 -5
- package/dist/{peerTools-CANTX_mG.cjs → peerTools-D-VNNFw-.cjs} +5 -5
- package/dist/{peerTools-CKJ-IDM4.mjs → peerTools-WtRgTSqG.mjs} +5 -5
- package/dist/{persistence-DWcHe035.mjs → persistence-Cg4sfjQV.mjs} +2 -2
- package/dist/{persistence-B4ttN-fR.cjs → persistence-CsmAgN-C.cjs} +2 -2
- package/dist/{piRunnerArgs-Bl5GpBoN.mjs → piRunnerArgs-BbaAQvb4.mjs} +1 -1
- package/dist/{piRunnerArgs-BOkfxyak.cjs → piRunnerArgs-vnFygygF.cjs} +1 -1
- package/dist/{piRuntime-BhwxzdQf.mjs → piRuntime-Bid7TBf5.mjs} +1 -1
- package/dist/{piRuntime-DzrIiZU8.cjs → piRuntime-C2uj5Ucx.cjs} +1 -1
- package/dist/{piTerminal-BdS7ol7v.cjs → piTerminal-Ckpjfoqa.cjs} +20 -20
- package/dist/{piTerminal-DnA2CbGr.mjs → piTerminal-CqxgrI13.mjs} +20 -20
- package/dist/{pushNotifications-BqFoLye2.cjs → pushNotifications-BCg7YAiu.cjs} +3 -3
- package/dist/{pushNotifications-DkQ0yvFs.mjs → pushNotifications-BbE-qV9I.mjs} +3 -3
- package/dist/{query-BRJYSkb1.mjs → query-Bfr9O_62.mjs} +1 -1
- package/dist/{query-BQ4br3yn.cjs → query-vQ-HG394.cjs} +1 -1
- package/dist/{rateLimitReporter-DK5SQuCc.cjs → rateLimitReporter-BZ8x0-6-.cjs} +3 -3
- package/dist/{rateLimitReporter-BRbYkmuP.mjs → rateLimitReporter-CAz7VMw4.mjs} +3 -3
- package/dist/{rateLimitWindows-DBfiuYeg.cjs → rateLimitWindows-BZl6GMwQ.cjs} +1 -1
- package/dist/{rateLimitWindows-Da5AR-4u.mjs → rateLimitWindows-CRARnKaI.mjs} +1 -1
- package/dist/{registerCommonHandlers-m6pxxf2J.cjs → registerCommonHandlers-CZGmrPbT.cjs} +2 -2
- package/dist/{registerCommonHandlers-yQ7Ru-l0.mjs → registerCommonHandlers-Cj3Nl9y-.mjs} +2 -2
- package/dist/{registerKillSessionHandler-BDNpi7YO.mjs → registerKillSessionHandler-Bg9t45Ub.mjs} +6 -6
- package/dist/{registerKillSessionHandler-BAOIa_Fs.cjs → registerKillSessionHandler-C3EDnW4F.cjs} +6 -6
- package/dist/{remoteSessionClient-CZ7aaNgj.mjs → remoteSessionClient--0vfA7I5.mjs} +5 -5
- package/dist/{remoteSessionClient-iJMXRN_D.cjs → remoteSessionClient-CcSP24Zq.cjs} +5 -5
- package/dist/{reportProgressTool-DfQhPu0s.mjs → reportProgressTool-DVru7jc_.mjs} +3 -3
- package/dist/{reportProgressTool-DpFs7pSe.cjs → reportProgressTool-Ddg1yVq2.cjs} +3 -3
- package/dist/{run-p-xp1_HY.cjs → run-BTrIT_jU.cjs} +178 -847
- package/dist/{run-CwN28mcj.mjs → run-HtvH6BLi.mjs} +176 -845
- package/dist/{runClaude-DRKtAGTm.mjs → runClaude-DsHTk5Bu.mjs} +25 -25
- package/dist/{runClaude-D6U1Z575.cjs → runClaude-ipjwAHPI.cjs} +25 -25
- package/dist/{runClaudeDeps-Dkofokgb.cjs → runClaudeDeps-BKpwL6ln.cjs} +41 -41
- package/dist/{runClaudeDeps-BheVcIlD.mjs → runClaudeDeps-BV3vpeyY.mjs} +46 -46
- package/dist/{runGemini-C8q3YCc0.cjs → runGemini-B-G0_7Ab.cjs} +33 -33
- package/dist/{runGemini-owbvhFbi.mjs → runGemini-DhjK6_Fp.mjs} +33 -33
- package/dist/{runOpenClaw-Dky3-mjO.mjs → runOpenClaw-B6lawk8n.mjs} +18 -18
- package/dist/{runOpenClaw-DGeN66-t.cjs → runOpenClaw-BHIo8tkn.cjs} +18 -18
- package/dist/{sandbox-D2CPyoCA.cjs → sandbox-BAsO0ILe.cjs} +4 -4
- package/dist/{sandbox-sq_wy9Gl.mjs → sandbox-CKb7pCXg.mjs} +4 -4
- package/dist/selfCheck-CZ-t1Xzq.mjs +88 -0
- package/dist/{selfCheck-BgLvQKSt.cjs → selfCheck-D4VvVZNi.cjs} +39 -39
- package/dist/{send-Cd10YhXh.cjs → send-Cz5m39QR.cjs} +8 -8
- package/dist/{send-K9vg-8t-.mjs → send-D8ipLKMY.mjs} +8 -8
- package/dist/{server-De4W1zuK.mjs → server-CjvgT3N9.mjs} +4 -4
- package/dist/{server-DRrV64r0.cjs → server-CySyJKPH.cjs} +6 -6
- package/dist/{sessionLock-Dl6i7IgA.mjs → sessionLock-B73fhgQN.mjs} +3 -3
- package/dist/{sessionLock-BDtSzzKS.cjs → sessionLock-DdDCuNUs.cjs} +3 -3
- package/dist/{sessionOps-gU88-W9F.mjs → sessionOps-C65Iej_C.mjs} +50 -8
- package/dist/{sessionOps-DvnEH4PL.cjs → sessionOps-XSEjIqNq.cjs} +50 -8
- package/dist/{sessionProvider-CKcIo7KO.mjs → sessionProvider-CLVNkfji.mjs} +11 -9
- package/dist/{sessionProvider-CbSZeZrl.cjs → sessionProvider-Dgsty8z_.cjs} +11 -9
- package/dist/{sessionScanner-7RtcCeyD.cjs → sessionScanner-D8IVXMMH.cjs} +3 -3
- package/dist/{sessionScanner-DR32uSby.mjs → sessionScanner-MW1P9Pm9.mjs} +3 -3
- package/dist/{sessions-BvuMjgvJ.cjs → sessions-BKz7gZqg.cjs} +10 -10
- package/dist/{sessions-DTt2Eguk.mjs → sessions-Dtk_agUL.mjs} +10 -10
- package/dist/{setupOfflineReconnection-BGnvhRfb.mjs → setupOfflineReconnection-Bvdy-2xd.mjs} +2 -2
- package/dist/{setupOfflineReconnection-DduOsw6p.cjs → setupOfflineReconnection-DxMiW7OV.cjs} +2 -2
- package/dist/{spawn-DMB6rRPA.cjs → spawn-DiPkJcrQ.cjs} +26 -16
- package/dist/{spawn-CL3cUc7b.mjs → spawn-Dm4xsZBX.mjs} +26 -16
- package/dist/{spawnAgents-CClb7buD.cjs → spawnAgents-B9olJ8xn.cjs} +1 -1
- package/dist/{spawnAgents-CRMfOJhh.mjs → spawnAgents-I29H9nO8.mjs} +1 -1
- package/dist/{spawnHappyCLI-DJdhX_Qx.cjs → spawnHappyCLI-BYGOUda1.cjs} +1 -1
- package/dist/{spawnHappyCLI-Cj_6IICe.mjs → spawnHappyCLI-CnMwzjWX.mjs} +1 -1
- package/dist/{startFileWatcher-LnOmVW6H.cjs → startFileWatcher-D14W6gn-.cjs} +1 -1
- package/dist/{startFileWatcher-DikVa8kg.mjs → startFileWatcher-DePAY1T5.mjs} +1 -1
- package/dist/{startupSessionCreate-CDdaLaMq.mjs → startupSessionCreate-DoK0IvJG.mjs} +3 -3
- package/dist/{startupSessionCreate-B3ND-917.cjs → startupSessionCreate-rBHd4tc1.cjs} +3 -3
- package/dist/{store-DV__wCvP.cjs → store-CkNa6oj4.cjs} +46 -9
- package/dist/{store--XN-7MS0.mjs → store-Vej_738f.mjs} +46 -10
- package/dist/{streamRelay-DFdOaLOn.cjs → streamRelay-C0G1HOOd.cjs} +1 -1
- package/dist/{streamRelay-sABnxEXq.mjs → streamRelay-C5U-C4GS.mjs} +1 -1
- package/dist/{sync-JoEZKRo8.mjs → sync-BP6vnxVP.mjs} +1 -1
- package/dist/{sync-_2lsZ1U2.cjs → sync-WYBwkJvG.cjs} +1 -1
- package/dist/{systemPrompt-CJEvNCuW.cjs → systemPrompt-BkQlCk5_.cjs} +2 -2
- package/dist/{systemPrompt-Zq4HyrZ5.mjs → systemPrompt-aRqBmkpw.mjs} +2 -2
- package/dist/{teams-qz4LqKJ2.mjs → teams-CGmC4ygu.mjs} +7 -7
- package/dist/{teams-BNZafnrT.cjs → teams-phbpwAGD.cjs} +7 -7
- package/dist/{template-LgvBbOna.cjs → template-B9pLEP8v.cjs} +2 -2
- package/dist/{template-CJ8BWSsc.mjs → template-CL9EvQLQ.mjs} +2 -2
- package/dist/{time-CaUlWSNJ.cjs → time-BTLcO8jp.cjs} +1 -1
- package/dist/{time-bzmet4s5.mjs → time-Cw0liIqB.mjs} +1 -1
- package/dist/{titleGenerator-BuIIu_JP.cjs → titleGenerator-Y1_7ceJC.cjs} +3 -3
- package/dist/{titleGenerator-CbTtJ_1D.mjs → titleGenerator-h6TmFe-c.mjs} +2 -2
- package/dist/{todo-CQ_BTf9C.cjs → todo-BxiPiCvB.cjs} +6 -6
- package/dist/{todo-DIrVF_Ak.mjs → todo-OKcTC_VC.mjs} +6 -6
- package/dist/{tools-cLOjBvPn.mjs → tools-BR-drXZ8.mjs} +3 -2
- package/dist/{tools-BnmmFZji.cjs → tools-CcebYtLj.cjs} +3 -2
- package/dist/{uninstall-uEEGKB84.cjs → uninstall-CnDeCC-M.cjs} +3 -3
- package/dist/{uninstall-C5OuW6dE.mjs → uninstall-D3stWKD2.mjs} +3 -3
- package/dist/{wrapperAccount-DXlD3bsO.mjs → wrapperAccount-BkufO_9g.mjs} +5 -4
- package/dist/{wrapperAccount-DzoGqS2b.cjs → wrapperAccount-D2A4DuZy.cjs} +6 -3
- package/package.json +7 -7
- package/dist/selfCheck-vkfrgQ7X.mjs +0 -88
|
@@ -451,18 +451,203 @@ const ConnectionDiagnosticEventSchema = z.z.object({
|
|
|
451
451
|
z.z.object({
|
|
452
452
|
events: z.z.array(ConnectionDiagnosticEventSchema).min(1).max(32)
|
|
453
453
|
}).strict();
|
|
454
|
+
const AGENT_PROFILE_SESSION_CAPABILITY = "agent-profile-v1";
|
|
455
|
+
const AGENT_PROFILE_RPC = {
|
|
456
|
+
list: "agent-profile-list",
|
|
457
|
+
add: "agent-profile-add",
|
|
458
|
+
loginStart: "agent-profile-login-start",
|
|
459
|
+
loginSubmit: "agent-profile-login-submit",
|
|
460
|
+
loginStatus: "agent-profile-login-status",
|
|
461
|
+
loginCancel: "agent-profile-login-cancel",
|
|
462
|
+
test: "agent-profile-test",
|
|
463
|
+
rename: "agent-profile-rename",
|
|
464
|
+
remove: "agent-profile-remove",
|
|
465
|
+
setDefault: "agent-profile-set-default",
|
|
466
|
+
bind: "agent-profile-bind"
|
|
467
|
+
};
|
|
468
|
+
const AGENT_PROFILE_KINDS = ["claude-subscription", "claude-api", "codex-chatgpt", "codex-provider"];
|
|
469
|
+
const AGENT_PROFILE_STATUSES = ["ok", "unverified", "expired", "invalid", "missing-secret"];
|
|
470
|
+
const AgentProfileSummarySchema = z.z.object({
|
|
471
|
+
id: z.z.string(),
|
|
472
|
+
label: z.z.string(),
|
|
473
|
+
agent: z.z.string(),
|
|
474
|
+
// 'claude' | 'codex' (pi/gemini later)
|
|
475
|
+
kind: z.z.string(),
|
|
476
|
+
// AgentProfileKind (open)
|
|
477
|
+
status: z.z.string(),
|
|
478
|
+
// AgentProfileStatus (open; unknown → 'unverified')
|
|
479
|
+
statusDetail: z.z.string().optional(),
|
|
480
|
+
// short human reason for the last failed check
|
|
481
|
+
checkedAt: z.z.number().optional(),
|
|
482
|
+
createdAt: z.z.number().optional(),
|
|
483
|
+
/** Subscription token expiry (ms). The UI derives 「即将过期」 from it. */
|
|
484
|
+
expiresAt: z.z.number().optional(),
|
|
485
|
+
/** API kinds: endpoint (not a secret). */
|
|
486
|
+
baseUrl: z.z.string().optional(),
|
|
487
|
+
/** API kinds: models the endpoint serves; first = default for a new binding. */
|
|
488
|
+
models: z.z.array(z.z.string()).optional(),
|
|
489
|
+
/** Where the key comes from: 'file' | 'env' | 'stored' (pasted / login-created, kept 0600 on the machine). */
|
|
490
|
+
keySource: z.z.string().optional(),
|
|
491
|
+
/** 'file' → the path, 'env' → the variable name. Never the key. */
|
|
492
|
+
keyRef: z.z.string().optional(),
|
|
493
|
+
/** Read from the B-794 `providers.json` (v1): listed and usable, but edit/remove it in that file. */
|
|
494
|
+
legacy: z.z.boolean().optional(),
|
|
495
|
+
/** B-850b codex-provider: the `[model_providers.<id>]` of ~/.codex/config.toml it is based on. */
|
|
496
|
+
provider: z.z.string().optional(),
|
|
497
|
+
/** B-850b codex-chatgpt: from Codex `account/read` after sign-in. */
|
|
498
|
+
email: z.z.string().optional(),
|
|
499
|
+
planType: z.z.string().optional()
|
|
500
|
+
});
|
|
501
|
+
const AgentProfilesStateSchema = z.z.object({
|
|
502
|
+
daemonPid: z.z.number(),
|
|
503
|
+
updatedAt: z.z.number(),
|
|
504
|
+
accounts: z.z.array(AgentProfileSummarySchema),
|
|
505
|
+
/** agent → account id new sessions on this machine use when the spawn names none. Absent = machine login. */
|
|
506
|
+
defaults: z.z.record(z.z.string(), z.z.string()),
|
|
507
|
+
/**
|
|
508
|
+
* B-850b: the account kinds this daemon can create (its AGENT_PROFILE_KINDS). Always sent from
|
|
509
|
+
* B-850b on, so a codex-capable daemon with no config.toml providers is distinguishable from a
|
|
510
|
+
* B-850a daemon. Absent (older daemon) = ['claude-subscription', 'claude-api'].
|
|
511
|
+
*/
|
|
512
|
+
kinds: z.z.array(z.z.string()).optional(),
|
|
513
|
+
/** B-850b: the providers in this machine's ~/.codex/config.toml (for the add form; no secrets). Absent when none. */
|
|
514
|
+
codexProviders: z.z.array(z.z.object({
|
|
515
|
+
id: z.z.string(),
|
|
516
|
+
name: z.z.string().optional(),
|
|
517
|
+
baseUrl: z.z.string().optional(),
|
|
518
|
+
envKey: z.z.string().optional()
|
|
519
|
+
})).optional(),
|
|
520
|
+
/**
|
|
521
|
+
* B-850d: what else this daemon honours. `'launch-accounts'` = the account
|
|
522
|
+
* chosen on a project / team / automation (and a fork's inherited one) is
|
|
523
|
+
* used, and an unusable one refuses the run. Absent (B-850a/b daemon) =
|
|
524
|
+
* those fields are ignored: such sessions start on the machine default
|
|
525
|
+
* account, else the machine login — the Web says so next to the picker.
|
|
526
|
+
*/
|
|
527
|
+
features: z.z.array(z.z.string()).optional()
|
|
528
|
+
});
|
|
529
|
+
z.z.object({
|
|
530
|
+
id: z.z.string(),
|
|
531
|
+
label: z.z.string(),
|
|
532
|
+
kind: z.z.string(),
|
|
533
|
+
status: z.z.string(),
|
|
534
|
+
reason: z.z.string().optional(),
|
|
535
|
+
/** API kinds: the model every slot is pinned to. */
|
|
536
|
+
model: z.z.string().optional()
|
|
537
|
+
});
|
|
538
|
+
const AgentProfileKeyInputSchema = z.z.discriminatedUnion("source", [
|
|
539
|
+
z.z.object({ source: z.z.literal("file"), path: z.z.string().min(1).max(1024) }),
|
|
540
|
+
z.z.object({ source: z.z.literal("env"), name: z.z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/) }),
|
|
541
|
+
/** Q2: allowed, never the default. Relayed through the server (not stored there); kept 0600 on the machine. */
|
|
542
|
+
z.z.object({ source: z.z.literal("paste"), value: z.z.string().min(1).max(4096) })
|
|
543
|
+
]);
|
|
544
|
+
const AgentProfileModelInputSchema = z.z.union([
|
|
545
|
+
z.z.string().min(1).max(160),
|
|
546
|
+
z.z.object({ id: z.z.string().min(1).max(160), contextWindow: z.z.number().int().positive().optional() })
|
|
547
|
+
]);
|
|
548
|
+
const BaseUrlSchema = z.z.string().regex(/^https?:\/\/\S+$/).max(512);
|
|
549
|
+
const ClaudeApiAddRequestSchema = z.z.object({
|
|
550
|
+
agent: z.z.literal("claude"),
|
|
551
|
+
kind: z.z.literal("claude-api"),
|
|
552
|
+
label: z.z.string().trim().min(1).max(60),
|
|
553
|
+
baseUrl: BaseUrlSchema,
|
|
554
|
+
models: z.z.array(AgentProfileModelInputSchema).max(50).optional(),
|
|
555
|
+
key: AgentProfileKeyInputSchema
|
|
556
|
+
});
|
|
557
|
+
const CodexProviderAddRequestSchema = z.z.object({
|
|
558
|
+
agent: z.z.literal("codex"),
|
|
559
|
+
kind: z.z.literal("codex-provider"),
|
|
560
|
+
label: z.z.string().trim().min(1).max(60),
|
|
561
|
+
provider: z.z.string().regex(/^[A-Za-z0-9_-]{1,64}$/).optional(),
|
|
562
|
+
baseUrl: BaseUrlSchema.optional(),
|
|
563
|
+
wireApi: z.z.enum(["responses", "chat"]).optional(),
|
|
564
|
+
models: z.z.array(AgentProfileModelInputSchema).max(50).optional(),
|
|
565
|
+
key: AgentProfileKeyInputSchema
|
|
566
|
+
}).refine((r) => !!r.provider || !!r.baseUrl, { message: "provider or baseUrl is required" });
|
|
567
|
+
const AgentProfileAddRequestSchema = z.z.union([ClaudeApiAddRequestSchema, CodexProviderAddRequestSchema]);
|
|
568
|
+
const AgentProfileLoginStartRequestSchema = z.z.union([
|
|
569
|
+
z.z.object({
|
|
570
|
+
agent: z.z.literal("claude"),
|
|
571
|
+
kind: z.z.literal("claude-subscription"),
|
|
572
|
+
label: z.z.string().trim().min(1).max(60).optional(),
|
|
573
|
+
accountId: z.z.string().optional()
|
|
574
|
+
}),
|
|
575
|
+
z.z.object({
|
|
576
|
+
agent: z.z.literal("codex"),
|
|
577
|
+
kind: z.z.literal("codex-chatgpt"),
|
|
578
|
+
/** Optional: a new account defaults to the signed-in email. */
|
|
579
|
+
label: z.z.string().trim().min(1).max(60).optional(),
|
|
580
|
+
accountId: z.z.string().optional()
|
|
581
|
+
})
|
|
582
|
+
]);
|
|
583
|
+
const AgentProfileLoginSubmitRequestSchema = z.z.object({
|
|
584
|
+
loginId: z.z.string(),
|
|
585
|
+
code: z.z.string().trim().min(1).max(2048)
|
|
586
|
+
});
|
|
587
|
+
z.z.object({
|
|
588
|
+
loginId: z.z.string(),
|
|
589
|
+
state: z.z.string(),
|
|
590
|
+
/** B-850b: 'paste-code' | 'device-code' (absent = older CLI = paste-code). */
|
|
591
|
+
flow: z.z.string().optional(),
|
|
592
|
+
/** device-code: what the user types on the `url` page. Not a secret on its own (useless without the browser sign-in). */
|
|
593
|
+
userCode: z.z.string().optional(),
|
|
594
|
+
url: z.z.string().optional(),
|
|
595
|
+
expiresAt: z.z.number().optional(),
|
|
596
|
+
account: AgentProfileSummarySchema.optional(),
|
|
597
|
+
error: z.z.string().optional()
|
|
598
|
+
});
|
|
599
|
+
const AgentProfileBindRequestSchema = z.z.object({
|
|
600
|
+
sessionId: z.z.string().min(1),
|
|
601
|
+
/** null = back to the machine login. */
|
|
602
|
+
accountId: z.z.string().nullable(),
|
|
603
|
+
/** API kinds only; default = the account's first model. */
|
|
604
|
+
model: z.z.string().max(160).optional(),
|
|
605
|
+
/** Default true: restart the session in place now. */
|
|
606
|
+
restart: z.z.boolean().optional()
|
|
607
|
+
});
|
|
608
|
+
new Set(AGENT_PROFILE_STATUSES);
|
|
609
|
+
const AGENT_PROFILE_FEATURE_LAUNCH = "launch-accounts";
|
|
610
|
+
const AgentProfileRefSchema = z.z.object({
|
|
611
|
+
id: z.z.string().min(1).max(64),
|
|
612
|
+
label: z.z.string().min(1).max(200).optional()
|
|
613
|
+
});
|
|
614
|
+
const AgentProfileChoiceSchema = AgentProfileRefSchema.nullable();
|
|
615
|
+
const ProjectAgentProfileSchema = z.z.object({
|
|
616
|
+
agent: z.z.string().min(1).max(64),
|
|
617
|
+
machineId: z.z.string().min(1).max(128),
|
|
618
|
+
id: z.z.string().min(1).max(64).nullable(),
|
|
619
|
+
label: z.z.string().min(1).max(200).optional()
|
|
620
|
+
});
|
|
621
|
+
const ProjectAgentProfilesSchema = z.z.array(ProjectAgentProfileSchema).max(16);
|
|
622
|
+
function resolveLaunchAgentProfile(input) {
|
|
623
|
+
if (input.explicit !== void 0) {
|
|
624
|
+
const id2 = input.explicit === null ? null : input.explicit.id;
|
|
625
|
+
return { agentProfileId: id2, source: "explicit", effective: id2 };
|
|
626
|
+
}
|
|
627
|
+
const entry = input.project?.find((p) => p.agent === input.agent && p.machineId === input.machineId);
|
|
628
|
+
if (entry) return { agentProfileId: entry.id, source: "project", effective: entry.id };
|
|
629
|
+
if (!input.machineDefaults) return { agentProfileId: void 0, source: "machine", effective: void 0 };
|
|
630
|
+
const fallback = input.machineDefaults[input.agent];
|
|
631
|
+
return fallback ? { agentProfileId: void 0, source: "machine", effective: fallback } : { agentProfileId: void 0, source: "machine-login", effective: null };
|
|
632
|
+
}
|
|
633
|
+
function agentProfileUnavailableReason(error) {
|
|
634
|
+
const m = /^agent-profile-unavailable:([a-z-]+)/.exec(error ?? "");
|
|
635
|
+
return m ? m[1] : null;
|
|
636
|
+
}
|
|
454
637
|
const TeamPermissionModeSchema = z.z.enum(["default", "bypassPermissions"]);
|
|
455
638
|
const id$3 = z.z.string().min(1).max(128);
|
|
456
639
|
const text$1 = z.z.string().min(1).max(32e3);
|
|
457
640
|
const TeamAssistantSchema = z.z.enum(["claude", "codex", "pi-acp"]);
|
|
458
641
|
const TeamModelSchema = z.z.string().trim().min(1).max(256);
|
|
459
|
-
const TeamLaunchSchema = z.z.object({ goal: text$1, directory: z.z.string().min(1).max(4096), assistant: TeamAssistantSchema, model: TeamModelSchema.optional() });
|
|
460
|
-
const TeamDefaultsSchema = z.z.object({ assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional(), maxParallel: z.z.number().int().min(1).max(16).optional() });
|
|
642
|
+
const TeamLaunchSchema = z.z.object({ goal: text$1, directory: z.z.string().min(1).max(4096), assistant: TeamAssistantSchema, model: TeamModelSchema.optional(), agentProfile: AgentProfileChoiceSchema.optional() });
|
|
643
|
+
const TeamDefaultsSchema = z.z.object({ assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional(), maxParallel: z.z.number().int().min(1).max(16).optional(), agentProfile: AgentProfileChoiceSchema.optional() });
|
|
461
644
|
const TeamActionSchema = z.z.discriminatedUnion("type", [
|
|
462
645
|
z.z.object({ type: z.z.literal("archive") }),
|
|
463
646
|
z.z.object({ type: z.z.literal("start"), launch: TeamLaunchSchema }),
|
|
464
647
|
z.z.object({ type: z.z.literal("set-defaults"), defaults: TeamDefaultsSchema }),
|
|
465
648
|
z.z.object({ type: z.z.literal("set-permission-mode"), permissionMode: TeamPermissionModeSchema }),
|
|
649
|
+
/** B-850d: a member's account for its next spawn (absent = follow the team default). An old server answers invalid action. */
|
|
650
|
+
z.z.object({ type: z.z.literal("set-bot-account"), botId: id$3, agentProfile: AgentProfileChoiceSchema.optional() }),
|
|
466
651
|
z.z.object({ type: z.z.literal("schedule-create"), name: id$3, botId: id$3, body: text$1, runAt: z.z.number().int().positive().max(864e13), intervalMs: z.z.number().int().min(6e4).max(366 * 864e5).optional() }),
|
|
467
652
|
z.z.object({ type: z.z.literal("schedule-pause"), scheduleId: id$3, version: z.z.number().int().positive() }),
|
|
468
653
|
z.z.object({ type: z.z.literal("schedule-resume"), scheduleId: id$3, version: z.z.number().int().positive() }),
|
|
@@ -472,7 +657,7 @@ const TeamActionSchema = z.z.discriminatedUnion("type", [
|
|
|
472
657
|
z.z.object({ type: z.z.literal("retry-operation"), operationId: id$3, claimId: id$3 }),
|
|
473
658
|
/** 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. */
|
|
474
659
|
z.z.object({ type: z.z.literal("join"), name: id$3, sessionId: id$3, botId: id$3.optional(), transfer: z.z.literal(true).optional() }),
|
|
475
|
-
z.z.object({ type: z.z.literal("delegate"), goal: text$1, acceptance: z.z.array(text$1).min(1).max(32), parentTaskId: id$3.optional(), assigneeBotId: id$3.optional(), botName: id$3.optional(), directory: z.z.string().min(1).max(4096).optional(), assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional() }),
|
|
660
|
+
z.z.object({ type: z.z.literal("delegate"), goal: text$1, acceptance: z.z.array(text$1).min(1).max(32), parentTaskId: id$3.optional(), assigneeBotId: id$3.optional(), botName: id$3.optional(), directory: z.z.string().min(1).max(4096).optional(), assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional(), agentProfile: AgentProfileChoiceSchema.optional() }),
|
|
476
661
|
z.z.object({ type: z.z.literal("message"), taskId: id$3, body: text$1, recipientBotId: id$3.optional() }),
|
|
477
662
|
z.z.object({ type: z.z.literal("submit"), taskId: id$3, attemptId: id$3, goalVersion: z.z.number().int().positive(), result: text$1 }),
|
|
478
663
|
z.z.object({ type: z.z.literal("accept"), taskId: id$3, attemptId: id$3, goalVersion: z.z.number().int().positive() }),
|
|
@@ -560,7 +745,9 @@ const AutomationActionSchema = z.z.discriminatedUnion("kind", [
|
|
|
560
745
|
model: z.z.string().trim().min(1).max(256).nullable().optional(),
|
|
561
746
|
permissionMode: z.z.string().trim().min(1).max(64).nullable().optional(),
|
|
562
747
|
worktree: z.z.boolean().optional(),
|
|
563
|
-
sticky: AutomationStickySchema.optional()
|
|
748
|
+
sticky: AutomationStickySchema.optional(),
|
|
749
|
+
/** B-850d: the account the run uses (absent = project default > machine default; null = machine login). An older daemon ignores it. */
|
|
750
|
+
agentProfile: AgentProfileChoiceSchema.optional()
|
|
564
751
|
}),
|
|
565
752
|
z.z.object({ kind: z.z.literal("send"), sessionId: id$2, prompt: text }),
|
|
566
753
|
z.z.object({
|
|
@@ -669,7 +856,9 @@ const ProjectDefaultsSchema = z.z.object({
|
|
|
669
856
|
agent: z.z.string().max(64).nullable().optional(),
|
|
670
857
|
model: z.z.string().max(256).nullable().optional(),
|
|
671
858
|
permissionMode: z.z.string().max(64).nullable().optional(),
|
|
672
|
-
worktree: z.z.boolean().nullable().optional()
|
|
859
|
+
worktree: z.z.boolean().nullable().optional(),
|
|
860
|
+
/** B-850d: per-agent account for new sessions (one entry per agent, machine-scoped; ids + labels only). */
|
|
861
|
+
agentProfiles: ProjectAgentProfilesSchema.nullable().optional()
|
|
673
862
|
});
|
|
674
863
|
const PROJECT_LOG_KINDS = ["decision", "finding", "handoff"];
|
|
675
864
|
const ProjectLogKindSchema = z.z.enum(PROJECT_LOG_KINDS);
|
|
@@ -1405,109 +1594,6 @@ function restoredModel(metadata) {
|
|
|
1405
1594
|
if (metadata?.stickyModel === null && typeof intent === "string") return null;
|
|
1406
1595
|
return void 0;
|
|
1407
1596
|
}
|
|
1408
|
-
const AGENT_PROFILE_SESSION_CAPABILITY = "agent-profile-v1";
|
|
1409
|
-
const AGENT_PROFILE_RPC = {
|
|
1410
|
-
list: "agent-profile-list",
|
|
1411
|
-
add: "agent-profile-add",
|
|
1412
|
-
loginStart: "agent-profile-login-start",
|
|
1413
|
-
loginSubmit: "agent-profile-login-submit",
|
|
1414
|
-
loginStatus: "agent-profile-login-status",
|
|
1415
|
-
loginCancel: "agent-profile-login-cancel",
|
|
1416
|
-
test: "agent-profile-test",
|
|
1417
|
-
rename: "agent-profile-rename",
|
|
1418
|
-
remove: "agent-profile-remove",
|
|
1419
|
-
setDefault: "agent-profile-set-default",
|
|
1420
|
-
bind: "agent-profile-bind"
|
|
1421
|
-
};
|
|
1422
|
-
const AGENT_PROFILE_STATUSES = ["ok", "unverified", "expired", "invalid", "missing-secret"];
|
|
1423
|
-
const AgentProfileSummarySchema = z.z.object({
|
|
1424
|
-
id: z.z.string(),
|
|
1425
|
-
label: z.z.string(),
|
|
1426
|
-
agent: z.z.string(),
|
|
1427
|
-
// 'claude' (codex/pi/gemini later)
|
|
1428
|
-
kind: z.z.string(),
|
|
1429
|
-
// AgentProfileKind (open)
|
|
1430
|
-
status: z.z.string(),
|
|
1431
|
-
// AgentProfileStatus (open; unknown → 'unverified')
|
|
1432
|
-
statusDetail: z.z.string().optional(),
|
|
1433
|
-
// short human reason for the last failed check
|
|
1434
|
-
checkedAt: z.z.number().optional(),
|
|
1435
|
-
createdAt: z.z.number().optional(),
|
|
1436
|
-
/** Subscription token expiry (ms). The UI derives 「即将过期」 from it. */
|
|
1437
|
-
expiresAt: z.z.number().optional(),
|
|
1438
|
-
/** API kinds: endpoint (not a secret). */
|
|
1439
|
-
baseUrl: z.z.string().optional(),
|
|
1440
|
-
/** API kinds: models the endpoint serves; first = default for a new binding. */
|
|
1441
|
-
models: z.z.array(z.z.string()).optional(),
|
|
1442
|
-
/** Where the key comes from: 'file' | 'env' | 'stored' (pasted / login-created, kept 0600 on the machine). */
|
|
1443
|
-
keySource: z.z.string().optional(),
|
|
1444
|
-
/** 'file' → the path, 'env' → the variable name. Never the key. */
|
|
1445
|
-
keyRef: z.z.string().optional(),
|
|
1446
|
-
/** Read from the B-794 `providers.json` (v1): listed and usable, but edit/remove it in that file. */
|
|
1447
|
-
legacy: z.z.boolean().optional()
|
|
1448
|
-
});
|
|
1449
|
-
const AgentProfilesStateSchema = z.z.object({
|
|
1450
|
-
daemonPid: z.z.number(),
|
|
1451
|
-
updatedAt: z.z.number(),
|
|
1452
|
-
accounts: z.z.array(AgentProfileSummarySchema),
|
|
1453
|
-
/** agent → account id new sessions on this machine use when the spawn names none. Absent = machine login. */
|
|
1454
|
-
defaults: z.z.record(z.z.string(), z.z.string())
|
|
1455
|
-
});
|
|
1456
|
-
z.z.object({
|
|
1457
|
-
id: z.z.string(),
|
|
1458
|
-
label: z.z.string(),
|
|
1459
|
-
kind: z.z.string(),
|
|
1460
|
-
status: z.z.string(),
|
|
1461
|
-
reason: z.z.string().optional(),
|
|
1462
|
-
/** API kinds: the model every slot is pinned to. */
|
|
1463
|
-
model: z.z.string().optional()
|
|
1464
|
-
});
|
|
1465
|
-
const AgentProfileKeyInputSchema = z.z.discriminatedUnion("source", [
|
|
1466
|
-
z.z.object({ source: z.z.literal("file"), path: z.z.string().min(1).max(1024) }),
|
|
1467
|
-
z.z.object({ source: z.z.literal("env"), name: z.z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/) }),
|
|
1468
|
-
/** Q2: allowed, never the default. Relayed through the server (not stored there); kept 0600 on the machine. */
|
|
1469
|
-
z.z.object({ source: z.z.literal("paste"), value: z.z.string().min(1).max(4096) })
|
|
1470
|
-
]);
|
|
1471
|
-
const AgentProfileModelInputSchema = z.z.union([
|
|
1472
|
-
z.z.string().min(1).max(160),
|
|
1473
|
-
z.z.object({ id: z.z.string().min(1).max(160), contextWindow: z.z.number().int().positive().optional() })
|
|
1474
|
-
]);
|
|
1475
|
-
const AgentProfileAddRequestSchema = z.z.object({
|
|
1476
|
-
agent: z.z.literal("claude"),
|
|
1477
|
-
kind: z.z.literal("claude-api"),
|
|
1478
|
-
label: z.z.string().trim().min(1).max(60),
|
|
1479
|
-
baseUrl: z.z.string().regex(/^https?:\/\/\S+$/).max(512),
|
|
1480
|
-
models: z.z.array(AgentProfileModelInputSchema).max(50).optional(),
|
|
1481
|
-
key: AgentProfileKeyInputSchema
|
|
1482
|
-
});
|
|
1483
|
-
const AgentProfileLoginStartRequestSchema = z.z.object({
|
|
1484
|
-
agent: z.z.literal("claude"),
|
|
1485
|
-
kind: z.z.literal("claude-subscription"),
|
|
1486
|
-
label: z.z.string().trim().min(1).max(60).optional(),
|
|
1487
|
-
accountId: z.z.string().optional()
|
|
1488
|
-
});
|
|
1489
|
-
const AgentProfileLoginSubmitRequestSchema = z.z.object({
|
|
1490
|
-
loginId: z.z.string(),
|
|
1491
|
-
code: z.z.string().trim().min(1).max(2048)
|
|
1492
|
-
});
|
|
1493
|
-
z.z.object({
|
|
1494
|
-
loginId: z.z.string(),
|
|
1495
|
-
state: z.z.string(),
|
|
1496
|
-
url: z.z.string().optional(),
|
|
1497
|
-
expiresAt: z.z.number().optional(),
|
|
1498
|
-
account: AgentProfileSummarySchema.optional(),
|
|
1499
|
-
error: z.z.string().optional()
|
|
1500
|
-
});
|
|
1501
|
-
const AgentProfileBindRequestSchema = z.z.object({
|
|
1502
|
-
sessionId: z.z.string().min(1),
|
|
1503
|
-
/** null = back to the machine login. */
|
|
1504
|
-
accountId: z.z.string().nullable(),
|
|
1505
|
-
/** API kinds only; default = the account's first model. */
|
|
1506
|
-
model: z.z.string().max(160).optional(),
|
|
1507
|
-
/** Default true: restart the session in place now. */
|
|
1508
|
-
restart: z.z.boolean().optional()
|
|
1509
|
-
});
|
|
1510
|
-
new Set(AGENT_PROFILE_STATUSES);
|
|
1511
1597
|
const PROMPT_QUEUE_CAPABILITY = "prompt-queue-v1";
|
|
1512
1598
|
const PROMPT_QUEUE_MAX_ITEMS = 50;
|
|
1513
1599
|
const PROMPT_QUEUE_LOCAL_ID_MAX_BYTES = 256;
|
|
@@ -1831,6 +1917,8 @@ z__namespace.object({
|
|
|
1831
1917
|
reason: z__namespace.string()
|
|
1832
1918
|
});
|
|
1833
1919
|
|
|
1920
|
+
exports.AGENT_PROFILE_FEATURE_LAUNCH = AGENT_PROFILE_FEATURE_LAUNCH;
|
|
1921
|
+
exports.AGENT_PROFILE_KINDS = AGENT_PROFILE_KINDS;
|
|
1834
1922
|
exports.AGENT_PROFILE_RPC = AGENT_PROFILE_RPC;
|
|
1835
1923
|
exports.AGENT_PROFILE_SESSION_CAPABILITY = AGENT_PROFILE_SESSION_CAPABILITY;
|
|
1836
1924
|
exports.AGENT_VERSION_SOURCES = AGENT_VERSION_SOURCES;
|
|
@@ -1881,6 +1969,7 @@ exports.ReleaseDrainNoticeSchema = ReleaseDrainNoticeSchema;
|
|
|
1881
1969
|
exports.RunIntentRequestSchema = RunIntentRequestSchema;
|
|
1882
1970
|
exports.STREAM_DELTA_MAX_CHARS = STREAM_DELTA_MAX_CHARS;
|
|
1883
1971
|
exports.ServerMigrateNoticeSchema = ServerMigrateNoticeSchema;
|
|
1972
|
+
exports.agentProfileUnavailableReason = agentProfileUnavailableReason;
|
|
1884
1973
|
exports.createBuiltinTodoClient = createBuiltinTodoClient;
|
|
1885
1974
|
exports.createEnvelope = createEnvelope;
|
|
1886
1975
|
exports.getAgentCodeDefaults = getAgentCodeDefaults;
|
|
@@ -1897,6 +1986,7 @@ exports.readEffortIntent = readEffortIntent;
|
|
|
1897
1986
|
exports.readModelIntent = readModelIntent;
|
|
1898
1987
|
exports.rebaseTeamWorktreePath = rebaseTeamWorktreePath;
|
|
1899
1988
|
exports.resolveLatestModel = resolveLatestModel;
|
|
1989
|
+
exports.resolveLaunchAgentProfile = resolveLaunchAgentProfile;
|
|
1900
1990
|
exports.restoredEffort = restoredEffort;
|
|
1901
1991
|
exports.restoredModel = restoredModel;
|
|
1902
1992
|
exports.streamKeyOf = streamKeyOf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
1
|
+
import { p as packageJson } from './package-Bw3H6VLn.mjs';
|
|
2
2
|
import module$1 from 'node:module';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { readdir, rm } from 'node:fs/promises';
|
|
@@ -57,10 +57,10 @@ async function pruneStaleCompileCaches(happyHomeDir, cliVersion) {
|
|
|
57
57
|
async function run(args) {
|
|
58
58
|
enableCompileCacheIfPossible(packageJson.version);
|
|
59
59
|
if (isStandaloneVersionRequest(args) || isSelfCheckRequest(args)) {
|
|
60
|
-
const { selfCheckMain } = await import('./selfCheck-
|
|
60
|
+
const { selfCheckMain } = await import('./selfCheck-CZ-t1Xzq.mjs');
|
|
61
61
|
process.exit(await selfCheckMain({ verbose: isSelfCheckRequest(args) }));
|
|
62
62
|
}
|
|
63
|
-
const { main } = await import('./main-
|
|
63
|
+
const { main } = await import('./main-CFOdXbPD.mjs');
|
|
64
64
|
await main();
|
|
65
65
|
}
|
|
66
66
|
void run(process.argv.slice(2));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { q as query } from './query-
|
|
1
|
+
import { q as query } from './query-Bfr9O_62.mjs';
|
|
2
2
|
export { AbortError } from '@anthropic-ai/claude-agent-sdk';
|
|
3
3
|
import './promptCacheTtl-Ce0TVbrx.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:os';
|
|
6
6
|
import 'node:path';
|
|
7
|
-
import './logger-
|
|
7
|
+
import './logger-JV7-4Q_6.mjs';
|
|
8
8
|
import 'chalk';
|
|
9
9
|
import 'node:util';
|
|
10
|
-
import './configuration-
|
|
11
|
-
import './package-
|
|
10
|
+
import './configuration-ThKBP_zY.mjs';
|
|
11
|
+
import './package-Bw3H6VLn.mjs';
|
|
12
12
|
import 'node:fs/promises';
|
|
13
13
|
import './processTreeSnapshot-CuLJDNC-.mjs';
|
|
14
14
|
import 'node:child_process';
|
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AcpBackend = require('./AcpBackend-
|
|
4
|
-
var logger = require('./logger-
|
|
5
|
-
var AcpSessionManager = require('./AcpSessionManager-
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var deterministicJson = require('./deterministicJson-
|
|
3
|
+
var AcpBackend = require('./AcpBackend-DtJCgftG.cjs');
|
|
4
|
+
var logger = require('./logger-CX3x2eI4.cjs');
|
|
5
|
+
var AcpSessionManager = require('./AcpSessionManager-D4qshX_H.cjs');
|
|
6
|
+
var index = require('./index-BUFrKZeQ.cjs');
|
|
7
|
+
var deterministicJson = require('./deterministicJson-t33SsuRC.cjs');
|
|
8
8
|
var specialCommands = require('./specialCommands-J3JFOq0J.cjs');
|
|
9
9
|
var heldInput = require('./heldInput-BOtqFO2r.cjs');
|
|
10
|
-
var configuration = require('./configuration-
|
|
11
|
-
var attachmentContent = require('./attachmentContent-
|
|
12
|
-
var piRuntime = require('./piRuntime-
|
|
10
|
+
var configuration = require('./configuration-BBK0rmmj.cjs');
|
|
11
|
+
var attachmentContent = require('./attachmentContent-B3AzuYqk.cjs');
|
|
12
|
+
var piRuntime = require('./piRuntime-C2uj5Ucx.cjs');
|
|
13
13
|
var node_crypto = require('node:crypto');
|
|
14
14
|
var path = require('node:path');
|
|
15
|
-
var api = require('./api-
|
|
16
|
-
var client = require('./client-
|
|
17
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
18
|
-
var persistence = require('./persistence-
|
|
19
|
-
var machineMetadata = require('./machineMetadata-
|
|
20
|
-
var createSessionMetadata = require('./createSessionMetadata-
|
|
21
|
-
var setupOfflineReconnection = require('./setupOfflineReconnection-
|
|
22
|
-
var startupSessionCreate = require('./startupSessionCreate-
|
|
23
|
-
var controlClient = require('./controlClient-
|
|
15
|
+
var api = require('./api-CBE_a88I.cjs');
|
|
16
|
+
var client = require('./client-CJr8Pjwm.cjs');
|
|
17
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-C3EDnW4F.cjs');
|
|
18
|
+
var persistence = require('./persistence-CsmAgN-C.cjs');
|
|
19
|
+
var machineMetadata = require('./machineMetadata-DhZuM0iB.cjs');
|
|
20
|
+
var createSessionMetadata = require('./createSessionMetadata-DqZ6h02H.cjs');
|
|
21
|
+
var setupOfflineReconnection = require('./setupOfflineReconnection-DxMiW7OV.cjs');
|
|
22
|
+
var startupSessionCreate = require('./startupSessionCreate-rBHd4tc1.cjs');
|
|
23
|
+
var controlClient = require('./controlClient-DwWTns3A.cjs');
|
|
24
24
|
var authRelay = require('./authRelay-Dy1qU9td.cjs');
|
|
25
|
-
var sessionLock = require('./sessionLock-
|
|
26
|
-
var acpSessionResume = require('./acpSessionResume-
|
|
25
|
+
var sessionLock = require('./sessionLock-DdDCuNUs.cjs');
|
|
26
|
+
var acpSessionResume = require('./acpSessionResume-Bk9mjXZ9.cjs');
|
|
27
27
|
var reconnectEnv = require('./reconnectEnv-B31lY4nR.cjs');
|
|
28
|
-
var streamRelay = require('./streamRelay-
|
|
28
|
+
var streamRelay = require('./streamRelay-C0G1HOOd.cjs');
|
|
29
29
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
30
|
-
var BasePermissionHandler = require('./BasePermissionHandler-
|
|
31
|
-
var titleGenerator = require('./titleGenerator-
|
|
30
|
+
var BasePermissionHandler = require('./BasePermissionHandler-5iG-cvA2.cjs');
|
|
31
|
+
var titleGenerator = require('./titleGenerator-Y1_7ceJC.cjs');
|
|
32
32
|
var editPaths = require('./editPaths-Bqp4OFPw.cjs');
|
|
33
33
|
var node_fs = require('node:fs');
|
|
34
34
|
var os = require('node:os');
|
|
35
35
|
require('node:child_process');
|
|
36
36
|
require('@agentclientprotocol/sdk');
|
|
37
|
-
require('./time-
|
|
37
|
+
require('./time-BTLcO8jp.cjs');
|
|
38
38
|
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
39
39
|
require('./processTree-CMHWlVse.cjs');
|
|
40
|
-
require('./package-
|
|
40
|
+
require('./package-uzlvxa5S.cjs');
|
|
41
41
|
require('chalk');
|
|
42
42
|
require('node:util');
|
|
43
43
|
require('@paralleldrive/cuid2');
|
|
44
44
|
require('zod');
|
|
45
45
|
require('./prompt-Bof2aQkI.cjs');
|
|
46
|
-
require('./reportProgressTool-
|
|
47
|
-
require('./client-
|
|
46
|
+
require('./reportProgressTool-Ddg1yVq2.cjs');
|
|
47
|
+
require('./client-D2GWkd-T.cjs');
|
|
48
48
|
require('./precheckCompat-CWOi5c9L.cjs');
|
|
49
49
|
require('./agentGuidance-BtBx2xxE.cjs');
|
|
50
50
|
require('./trimIdent-4gvk9Wk6.cjs');
|
|
51
51
|
require('./pi-DlsrPCTa.cjs');
|
|
52
52
|
require('./fileStore-7qhnbs6N.cjs');
|
|
53
53
|
require('node:fs/promises');
|
|
54
|
-
require('./client-
|
|
55
|
-
require('./context-
|
|
56
|
-
require('./sessionOps-
|
|
54
|
+
require('./client-DLlnmAPL.cjs');
|
|
55
|
+
require('./context-wDp0aZBK.cjs');
|
|
56
|
+
require('./sessionOps-XSEjIqNq.cjs');
|
|
57
57
|
require('axios');
|
|
58
58
|
require('socket.io-client');
|
|
59
59
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
60
60
|
require('./resources-BZ_Be0qM.cjs');
|
|
61
|
-
require('./tools-
|
|
62
|
-
require('./peerTools-
|
|
61
|
+
require('./tools-CcebYtLj.cjs');
|
|
62
|
+
require('./peerTools-D-VNNFw-.cjs');
|
|
63
63
|
require('./ids-B6ZC0HGt.cjs');
|
|
64
|
-
require('./remoteSessionClient-
|
|
64
|
+
require('./remoteSessionClient-CcSP24Zq.cjs');
|
|
65
65
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
66
66
|
require('node:http');
|
|
67
67
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
68
68
|
require('./limits-C-a7gr04.cjs');
|
|
69
|
-
require('./downloadTarget-
|
|
69
|
+
require('./downloadTarget-T1id2Gh6.cjs');
|
|
70
70
|
require('./terminals-B_bfC9c2.cjs');
|
|
71
71
|
require('./terminalTitleSuggest-DhvRFX3H.cjs');
|
|
72
72
|
require('./tmuxSocket-D-Xt6Vn-.cjs');
|
|
73
|
-
require('./bootstrap-
|
|
73
|
+
require('./bootstrap-CoJu9VnB.cjs');
|
|
74
74
|
require('./webPanels-FCgFKvVe.cjs');
|
|
75
|
-
require('./pushNotifications-
|
|
75
|
+
require('./pushNotifications-BCg7YAiu.cjs');
|
|
76
76
|
require('./previewPath-B0rBdhy1.cjs');
|
|
77
77
|
require('crypto');
|
|
78
|
-
require('./lidState-
|
|
78
|
+
require('./lidState-B_v6qgfE.cjs');
|
|
79
79
|
require('os');
|
|
80
80
|
require('child_process');
|
|
81
81
|
require('node:events');
|
|
82
|
-
require('./registerCommonHandlers-
|
|
82
|
+
require('./registerCommonHandlers-CZGmrPbT.cjs');
|
|
83
83
|
require('util');
|
|
84
84
|
require('fs/promises');
|
|
85
85
|
require('path');
|
|
86
86
|
require('cross-spawn');
|
|
87
|
-
require('./sync-
|
|
87
|
+
require('./sync-WYBwkJvG.cjs');
|
|
88
88
|
require('tweetnacl');
|
|
89
89
|
require('./types-CRS-srZK.cjs');
|
|
90
90
|
require('./detectCLI-BuYR_Qxe.cjs');
|
|
91
91
|
require('fs');
|
|
92
|
-
require('./localHappyAgentAuth-
|
|
92
|
+
require('./localHappyAgentAuth-jJH0n67S.cjs');
|
|
93
93
|
require('./fsMkdir-0K3yENml.cjs');
|
|
94
94
|
require('./cliUpdate-DsKXPFYp.cjs');
|
|
95
95
|
require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
96
96
|
require('url');
|
|
97
97
|
require('node:module');
|
|
98
98
|
require('./oneShotPrompts-CL0dip9C.cjs');
|
|
99
|
-
require('./wrapperAccount-
|
|
100
|
-
require('./claudeAccountEnv-
|
|
101
|
-
require('./store-
|
|
99
|
+
require('./wrapperAccount-D2A4DuZy.cjs');
|
|
100
|
+
require('./claudeAccountEnv-CEX_EMZr.cjs');
|
|
101
|
+
require('./store-CkNa6oj4.cjs');
|
|
102
102
|
|
|
103
103
|
function createAcpBackend(options) {
|
|
104
104
|
const backendOptions = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { statSync, readdirSync } from 'node:fs';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { l as logger } from './logger-
|
|
4
|
-
import { r as readSettings } from './persistence-
|
|
3
|
+
import { l as logger } from './logger-JV7-4Q_6.mjs';
|
|
4
|
+
import { r as readSettings } from './persistence-Cg4sfjQV.mjs';
|
|
5
5
|
import { d as describeAgentHome, C as CLAUDE_CONFIG_DIR_ENV, a as CODEX_HOME_ENV, f as findClaudeConversation, b as agentHomeCandidates, c as findCodexThread, r as resolveAgentHomes, A as AGENT_HOME_ENV_NAMES, g as agentHomeEnv, p as probeLoginShellEnv } from './loginShellEnv-Dw8M7tkI.mjs';
|
|
6
6
|
export { h as claudeConversationPath, i as claudeProjectDirName, j as codexRolloutFileMatches, e as expandHomePath } from './loginShellEnv-Dw8M7tkI.mjs';
|
|
7
7
|
import 'chalk';
|
|
8
8
|
import 'node:util';
|
|
9
|
-
import './configuration-
|
|
9
|
+
import './configuration-ThKBP_zY.mjs';
|
|
10
10
|
import 'node:path';
|
|
11
|
-
import './package-
|
|
11
|
+
import './package-Bw3H6VLn.mjs';
|
|
12
12
|
import 'node:fs/promises';
|
|
13
13
|
import 'zod';
|
|
14
14
|
import './authRelay-DhQhkBvX.mjs';
|