very-happy-cli 0.2.203 → 0.2.205
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-CAMuhS0Z.mjs → AcpBackend-BqkDMgcN.mjs} +3 -3
- package/dist/{AcpBackend-DReFgpYD.cjs → AcpBackend-Do37yiZg.cjs} +3 -3
- package/dist/{AcpSessionManager-BZKM-sCt.cjs → AcpSessionManager-BpQKu2_m.cjs} +2 -2
- package/dist/{AcpSessionManager-CJOxMFCF.mjs → AcpSessionManager-CvEO7Yex.mjs} +2 -2
- package/dist/{BasePermissionHandler-BgX73mQ5.mjs → BasePermissionHandler-BpaIn9ko.mjs} +1 -1
- package/dist/{BasePermissionHandler-BBR9Gkob.cjs → BasePermissionHandler-CUXi-tq4.cjs} +1 -1
- package/dist/{account-hy0rztXY.mjs → account-C1nsl3ij.mjs} +11 -11
- package/dist/{account-41PkJ9nx.cjs → account-SwG5Yefp.cjs} +11 -11
- package/dist/{accountService-DEpIq6CF.mjs → accountService-CqrWNH8K.mjs} +4 -4
- package/dist/{accountService-Cns8UYGI.cjs → accountService-SOeB_21A.cjs} +4 -4
- package/dist/{acpSessionResume-DmOPXKpC.cjs → acpSessionResume-BCEol11N.cjs} +1 -1
- package/dist/{acpSessionResume-5El4xksf.mjs → acpSessionResume-DvDKsJTV.mjs} +1 -1
- package/dist/{agentHome-BXaVMqHX.cjs → agentHome-8wzmbm0H.cjs} +4 -4
- package/dist/{agentHome-DUxArmak.mjs → agentHome-BuFxooEg.mjs} +4 -4
- package/dist/{api-D8ZDxBWw.mjs → api-20GbdpxY.mjs} +107 -18
- package/dist/{api-ChhFBuB0.cjs → api-BnTF8fkj.cjs} +107 -18
- package/dist/{apiMachine-qav2pnk5.mjs → apiMachine-C8NGJHHd.mjs} +105 -21
- package/dist/{apiMachine-MPwddFXq.cjs → apiMachine-cyDRM_S-.cjs} +105 -21
- package/dist/{attachmentContent-f5gwnv9J.cjs → attachmentContent-B7zz_LPF.cjs} +2 -2
- package/dist/{attachmentContent-BfSQxccA.mjs → attachmentContent-Coo9lUxK.mjs} +2 -2
- package/dist/{auth-BxNuFv_0.mjs → auth-75rP3vc0.mjs} +8 -8
- package/dist/{auth-xW7SDE_7.mjs → auth-BX6xrdHv.mjs} +5 -5
- package/dist/{auth-thi2T_T8.cjs → auth-By6u_iKB.cjs} +5 -5
- package/dist/{auth-DkPAHXLj.cjs → auth-w4UTRbIf.cjs} +8 -8
- package/dist/{auto-DmXTwayU.mjs → auto-BhmWtRvv.mjs} +18 -18
- package/dist/{auto-BiRlQ4tm.cjs → auto-xr_gqUoy.cjs} +18 -18
- package/dist/{bootstrap-EGhaCmXy.cjs → bootstrap-3ti7LXMz.cjs} +2 -2
- package/dist/{bootstrap-pGaFGbWO.mjs → bootstrap-Dn_VvHSt.mjs} +2 -2
- package/dist/{browser-DSxpOnPb.cjs → browser-C4PVyjGe.cjs} +1 -1
- package/dist/{browser-BYSYzXvP.mjs → browser-C4wWGXH7.mjs} +1 -1
- package/dist/{claudeAccountEnv-Btp39mfa.cjs → claudeAccountEnv-BTZjHTpF.cjs} +1 -1
- package/dist/{claudeAccountEnv-DowsOlDB.mjs → claudeAccountEnv-C6Wl-ZbT.mjs} +1 -1
- package/dist/{claudeLocal-bDarWqaU.mjs → claudeLocal-B8rOA-EB.mjs} +5 -5
- package/dist/{claudeLocal-ClqHmkk6.cjs → claudeLocal-DZALKVVc.cjs} +5 -5
- package/dist/{claudeLocalLauncher-Bxi0_eW9.cjs → claudeLocalLauncher-Bf5uj0EA.cjs} +10 -10
- package/dist/{claudeLocalLauncher-Ccpj2KgW.mjs → claudeLocalLauncher-CJPRSv3z.mjs} +10 -10
- package/dist/claudeLongContext-BR_zdjUp.cjs +239 -0
- package/dist/claudeLongContext-CZ60xo5p.mjs +219 -0
- package/dist/{claudeSessionFork-Cize0Y2T.mjs → claudeSessionFork-BK4U655i.mjs} +1 -1
- package/dist/{claudeSessionFork-nyNFjgaf.cjs → claudeSessionFork-unEBLW0t.cjs} +1 -1
- package/dist/{client-Cddb1dhi.cjs → client-BKjBr6pc.cjs} +2 -2
- package/dist/{client-Wr_BiOon.mjs → client-BbYds4AV.mjs} +16 -7
- package/dist/{client-CMKgB-76.cjs → client-Bh-y6cVc.cjs} +16 -7
- package/dist/{client-DO8DNDC3.mjs → client-BxtaglBR.mjs} +2 -2
- package/dist/{client-CgMVIP7v.mjs → client-CvLm25Wq.mjs} +2 -2
- package/dist/{client-6Y6O72Uq.cjs → client-DGsdLx8L.cjs} +2 -2
- package/dist/{client-CX8kRedW.mjs → client-m-K1b6Qa.mjs} +3 -3
- package/dist/{client-DP8FabOE.cjs → client-wMlUPnrV.cjs} +3 -3
- package/dist/codex/happyMcpStdioBridge.cjs +20 -19
- package/dist/codex/happyMcpStdioBridge.mjs +20 -19
- package/dist/{codexAccount-CieIQLOX.mjs → codexAccount-BPQ-lPhH.mjs} +1 -1
- package/dist/{codexAccount-D-OBY29W.cjs → codexAccount-BjaHvmKH.cjs} +1 -1
- package/dist/{codexAppServerClient-EzrHWYhX.cjs → codexAppServerClient-6aQelpRl.cjs} +3 -3
- package/dist/{codexAppServerClient-D-cD2Dfj.mjs → codexAppServerClient-BeRimnu9.mjs} +3 -3
- package/dist/{codexCommand-BMcXtvU3.cjs → codexCommand-CYVaGmhh.cjs} +67 -56
- package/dist/{codexCommand-D79GnRhB.mjs → codexCommand-CmGNDs45.mjs} +67 -56
- package/dist/{codexTermination-CF6xiFbb.cjs → codexTermination-B09HyYIB.cjs} +1 -1
- package/dist/{codexTermination-CK1MYJT7.mjs → codexTermination-Z18pGkkl.mjs} +1 -1
- package/dist/{config-Crn1mNgr.mjs → config-4b-sF37g.mjs} +3 -3
- package/dist/{config-F6zSRyk2.cjs → config-Dq_N615Z.cjs} +3 -3
- package/dist/{configuration-Cl9kOv09.cjs → configuration-Fx61b4MJ.cjs} +1 -1
- package/dist/{configuration-i9MVy0a5.mjs → configuration-H8q1sMwk.mjs} +1 -1
- package/dist/{connect-CiA13Xm4.mjs → connect-BwSwKPzI.mjs} +13 -13
- package/dist/{connect-ClklWmnI.cjs → connect-D54AnDIT.cjs} +13 -13
- package/dist/{context-DvdZsGgl.mjs → context-CM1Xd_HO.mjs} +1 -1
- package/dist/{context-BxODP3mG.cjs → context-D-QOcYuX.cjs} +1 -1
- package/dist/{controlClient-DxCQKfqe.cjs → controlClient-D04wXKoQ.cjs} +12 -3
- package/dist/{controlClient-D6vqMUfi.mjs → controlClient-D9DYqW02.mjs} +12 -4
- package/dist/{createSessionMetadata-BuAVB-xI.mjs → createSessionMetadata-CHa4pufa.mjs} +2 -2
- package/dist/{createSessionMetadata-B_NZvmhm.cjs → createSessionMetadata-Ce539QXK.cjs} +2 -2
- package/dist/{daemonAccounts-ciidbU2h.cjs → daemonAccounts-BOoI7-sw.cjs} +2 -2
- package/dist/{daemonAccounts-D5shoCLt.mjs → daemonAccounts-BtkmoJmC.mjs} +3 -3
- package/dist/{defaultPermissionMode-DgeiMMqy.mjs → defaultPermissionMode-CYQi7vqJ.mjs} +1 -1
- package/dist/{defaultPermissionMode-Cs_Tv83b.cjs → defaultPermissionMode-DmLYaaL8.cjs} +1 -1
- package/dist/{deterministicJson-B9XrEawW.mjs → deterministicJson-BEeXnWCF.mjs} +62 -20
- package/dist/{deterministicJson-kM2OdGZu.cjs → deterministicJson-D34CnNHO.cjs} +61 -19
- package/dist/{doctor-HHS4YegX.mjs → doctor-BI0Iywt_.mjs} +7 -7
- package/dist/{doctor-DiPRqsqg.cjs → doctor-BX8oWKZq.cjs} +7 -7
- package/dist/{downloadTarget-Cd8hx54t.mjs → downloadTarget-DX3m00OE.mjs} +6 -6
- package/dist/{downloadTarget-osB-mGh0.cjs → downloadTarget-TzXJEh6W.cjs} +6 -6
- package/dist/{ensureDaemonRunning-C0iDtuL7.mjs → ensureDaemonRunning-BBBqZ6vQ.mjs} +5 -5
- package/dist/{ensureDaemonRunning-CtBvPHVB.cjs → ensureDaemonRunning-Bvu-yyFn.cjs} +5 -5
- package/dist/exitNotice-M4UjtWkr.cjs +95 -0
- package/dist/exitNotice-gOAdDcL3.mjs +84 -0
- package/dist/{forkBackfill-DYIjlN1Z.mjs → forkBackfill-C9EfJ64O.mjs} +28 -2
- package/dist/{forkBackfill-8eLDeS73.cjs → forkBackfill-D2WW91fz.cjs} +28 -1
- package/dist/{format-B5V7ie8N.cjs → format-BEktLc45.cjs} +1 -1
- package/dist/{format-Dc5zMslz.mjs → format-BPAREVhi.mjs} +1 -1
- package/dist/{handleResumeCommand-vcD2qcAM.cjs → handleResumeCommand-6dYW_WOi.cjs} +5 -5
- package/dist/{handleResumeCommand-xrOAA1qI.mjs → handleResumeCommand-DziiqogX.mjs} +5 -5
- package/dist/{index-iFVMrlPo.mjs → index-BRq5iitn.mjs} +4 -4
- package/dist/{index-44o_qMvE.cjs → index-BYL_X3gP.cjs} +27 -6
- package/dist/{index-AyDwQ6FG.cjs → index-BmacwzcK.cjs} +45 -44
- package/dist/{index-D0rCXp-e.cjs → index-Cawt-fgZ.cjs} +4 -4
- package/dist/{index-C_ePuQwB.cjs → index-CoW4RNEb.cjs} +3 -3
- package/dist/{index-B7pKBIcn.mjs → index-CzBvl9py.mjs} +3 -3
- package/dist/{index-DIKJMfs2.mjs → index-DCvq8Cfw.mjs} +4 -4
- package/dist/{index-CiRMvS73.mjs → index-DWk-WTU-.mjs} +24 -7
- package/dist/{index-B7CXMlrz.mjs → index-UuWDafdi.mjs} +46 -45
- package/dist/{index-Cl-WkB_6.cjs → index-bVMcFi7v.cjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-yqS4y1cm.mjs → install-B4OVUIw5.mjs} +3 -3
- package/dist/{install-BgBgsOlS.cjs → install-BQc4Hwuo.cjs} +3 -3
- package/dist/{issue-D7liK6bR.cjs → issue-WpLZYxUQ.cjs} +8 -8
- package/dist/{issue-aKZd7J55.mjs → issue-h_BIrzLs.mjs} +8 -8
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +42 -1
- package/dist/lib.d.mts +42 -1
- package/dist/lib.mjs +12 -12
- package/dist/{localHappyAgentAuth-Dm9obisi.cjs → localHappyAgentAuth-DQRWBUxQ.cjs} +1 -1
- package/dist/{localHappyAgentAuth-B2JJxlE9.mjs → localHappyAgentAuth-DgLh3xzW.mjs} +1 -1
- package/dist/{logger-BiKmiREe.mjs → logger-BKAKIZdy.mjs} +2 -2
- package/dist/{logger-BtWBoP60.cjs → logger-DP35yx-C.cjs} +2 -2
- package/dist/{machineMetadata-C0-LyMsb.cjs → machineMetadata-CZj0XwM_.cjs} +3 -3
- package/dist/{machineMetadata-CiyO9wm-.mjs → machineMetadata-DTlMMhj_.mjs} +3 -3
- package/dist/{main-BP2TBnp5.mjs → main-BIE1zeaH.mjs} +48 -48
- package/dist/{main-C7hKf5hG.cjs → main-l_nP9IQq.cjs} +48 -48
- package/dist/{mcp-Cn4k-PXb.mjs → mcp-B5F6-_7o.mjs} +20 -18
- package/dist/{mcp-DO00rr9n.cjs → mcp-KQHODyR3.cjs} +20 -18
- package/dist/{mirrorProtocol-DDtEN49F.mjs → mirrorProtocol-DDOUSWqL.mjs} +3 -3
- package/dist/{mirrorProtocol-DwO8QgLM.cjs → mirrorProtocol-duXHJeBW.cjs} +3 -3
- package/dist/{package-Djdgx8nb.cjs → package-BCJfNMlt.cjs} +7 -7
- package/dist/{package-CIW5lwaN.mjs → package-CMmhJwSf.mjs} +7 -7
- package/dist/{panels-BpfVEvwF.mjs → panels-BWxZMb_x.mjs} +5 -5
- package/dist/{panels-DMLtEOtJ.cjs → panels-CBlIJIu8.cjs} +5 -5
- package/dist/{peerTools-fYuKq3ev.cjs → peerTools-C6Y28jqG.cjs} +5 -5
- package/dist/{peerTools-CQ60fUPp.mjs → peerTools-ZJzoM48N.mjs} +5 -5
- package/dist/{persistence-D_zVC4Xz.mjs → persistence-dLgWDclq.mjs} +2 -2
- package/dist/{persistence-BOEZtiKb.cjs → persistence-iiVFxhbt.cjs} +2 -2
- package/dist/{piRunnerArgs-DE_YXvS1.mjs → piRunnerArgs-DuWYye4f.mjs} +1 -1
- package/dist/{piRunnerArgs-Dz9P62db.cjs → piRunnerArgs-DxWxgOSZ.cjs} +1 -1
- package/dist/{piRuntime-Du62fjeU.cjs → piRuntime-6UnkPaS1.cjs} +1 -1
- package/dist/{piRuntime-8SbpRmNA.mjs → piRuntime-Cbwk6bN0.mjs} +1 -1
- package/dist/{piTerminal-CGAw7WDW.cjs → piTerminal-BaoUqlM0.cjs} +22 -20
- package/dist/{piTerminal-Cl45kac0.mjs → piTerminal-Dn0qN9nb.mjs} +22 -20
- package/dist/{pushNotifications-RVpbqrxR.mjs → pushNotifications-DD9Z0CoN.mjs} +17 -3
- package/dist/{pushNotifications-B19lT5mY.cjs → pushNotifications-gcQv61e6.cjs} +17 -3
- package/dist/{query-CNWdX2r5.cjs → query-12momZSq.cjs} +1 -1
- package/dist/{query-DBRR3TOO.mjs → query-CFdlRD7b.mjs} +1 -1
- package/dist/{rateLimitWindows-DX5y23x_.mjs → rateLimitWindows-CVS-btq-.mjs} +1 -1
- package/dist/{rateLimitWindows-mfdokrkQ.cjs → rateLimitWindows-D2Gmg7jU.cjs} +1 -1
- package/dist/{reconnectGate-B8ltzSJD.cjs → reconnectGate-BkSaZdIx.cjs} +1 -1
- package/dist/{reconnectGate-DSxYUCWy.mjs → reconnectGate-m81ySKhh.mjs} +1 -1
- package/dist/{registerCommonHandlers-Y2siJGwL.cjs → registerCommonHandlers-B5p3ZZmp.cjs} +2 -2
- package/dist/{registerCommonHandlers-CQDRKlkG.mjs → registerCommonHandlers-CqLHkmG2.mjs} +2 -2
- package/dist/{registerKillSessionHandler-B0pMZOdH.cjs → registerKillSessionHandler-Bf_Q9yii.cjs} +6 -6
- package/dist/{registerKillSessionHandler-U4Dxtohy.mjs → registerKillSessionHandler-jYSuGIP1.mjs} +6 -6
- package/dist/{registerSideQuestionHandler-DM1QqTxf.mjs → registerSideQuestionHandler-CPR29B9d.mjs} +4 -4
- package/dist/{registerSideQuestionHandler--ruKhCdY.cjs → registerSideQuestionHandler-DSIw3xPW.cjs} +4 -4
- package/dist/{remoteSessionClient-T-Raoiy6.mjs → remoteSessionClient-CLuxs0_y.mjs} +5 -5
- package/dist/{remoteSessionClient-CjINaEs_.cjs → remoteSessionClient-DX-60nto.cjs} +5 -5
- package/dist/{reportProgressTool-DDfL1OY7.cjs → reportProgressTool-D1XAxeY1.cjs} +5 -5
- package/dist/{reportProgressTool-Stg0xrjF.mjs → reportProgressTool-k3g3D6cX.mjs} +5 -5
- package/dist/{run-Dq48xBtw.mjs → run-BBJqaIoY.mjs} +200 -55
- package/dist/{run-BoSVfVCZ.cjs → run-DOb_agpA.cjs} +200 -55
- package/dist/{runClaude-D8ScJdJU.cjs → runClaude-BU3Lrd5o.cjs} +53 -38
- package/dist/{runClaude-CJe5atrS.mjs → runClaude-NTvReMNp.mjs} +44 -29
- package/dist/{runClaudeDeps-4RFRR4cY.cjs → runClaudeDeps-DQV-QdDi.cjs} +129 -61
- package/dist/{runClaudeDeps-CL3goCXG.mjs → runClaudeDeps-Dh2LVY2w.mjs} +125 -57
- package/dist/{runGemini-DZv6jPxV.mjs → runGemini-CGD4bqQ3.mjs} +36 -35
- package/dist/{runGemini-BcbNxgsA.cjs → runGemini-dk877ztP.cjs} +36 -35
- package/dist/{runOpenClaw-CRqCoj-_.mjs → runOpenClaw-6MAJ_tHi.mjs} +18 -18
- package/dist/{runOpenClaw-BeSivE0X.cjs → runOpenClaw-CQakHPPq.cjs} +18 -18
- package/dist/{sandbox-xflHChws.cjs → sandbox-8DeDre0R.cjs} +4 -4
- package/dist/{sandbox-DAvJJZcV.mjs → sandbox-B3YMD9I6.mjs} +4 -4
- package/dist/selfCheck-BCKIF6ST.mjs +89 -0
- package/dist/{selfCheck-DZwdgBg0.cjs → selfCheck-BpvUNBmv.cjs} +40 -40
- package/dist/{send-ConAuYqL.cjs → send-Bym_IU4n.cjs} +8 -8
- package/dist/{send-Co_l_Nmg.mjs → send-DgrbVZzC.mjs} +8 -8
- package/dist/{server-by6kezmM.cjs → server-BY-FubRe.cjs} +6 -6
- package/dist/{server-D1Qrmxl7.mjs → server-CmAgeEhS.mjs} +4 -4
- package/dist/{sessionLock-DFrwAnwR.mjs → sessionLock-BMtAQ4bW.mjs} +21 -4
- package/dist/{sessionLock-Db_uQcUP.cjs → sessionLock-WXtjQC9q.cjs} +22 -3
- package/dist/{sessionOps-CptDjoZi.cjs → sessionOps-BEVzE38e.cjs} +4 -4
- package/dist/{sessionOps-C7nps7qG.mjs → sessionOps-BxLhHEhM.mjs} +4 -4
- package/dist/{sessionProvider-BaJq1AnY.mjs → sessionProvider-B1tL5K5f.mjs} +10 -10
- package/dist/{sessionProvider-D9nsAE14.cjs → sessionProvider-DCnZFxwe.cjs} +10 -10
- package/dist/{sessionScanner-BOb33NVJ.mjs → sessionScanner-Ctm9w-AJ.mjs} +3 -3
- package/dist/{sessionScanner-C6OVO0Ne.cjs → sessionScanner-eX2f-j0u.cjs} +3 -3
- package/dist/{sessions-qVHDXJa6.cjs → sessions-BG8r7uht.cjs} +10 -10
- package/dist/{sessions-GCql_3Dl.mjs → sessions-BuxOqRcc.mjs} +10 -10
- package/dist/{setupOfflineReconnection-B8QKqc9a.cjs → setupOfflineReconnection-65k1yEFn.cjs} +2 -2
- package/dist/{setupOfflineReconnection-lu0YbS7m.mjs → setupOfflineReconnection-Dd4NCN9i.mjs} +2 -2
- package/dist/{spawn-tL-724RS.cjs → spawn-0YaC-DQg.cjs} +15 -15
- package/dist/{spawn-C9NSlg99.mjs → spawn-wys_MPgK.mjs} +15 -15
- package/dist/{spawnAgents-BclZYkov.mjs → spawnAgents-CcFKtKdX.mjs} +2 -1
- package/dist/{spawnAgents-DvbEDCIq.cjs → spawnAgents-D4lR468W.cjs} +2 -1
- package/dist/{spawnHappyCLI-D7EO8s4E.cjs → spawnHappyCLI-Bf_N42fi.cjs} +1 -1
- package/dist/{spawnHappyCLI-jXUKLUT5.mjs → spawnHappyCLI-EvPb0jB3.mjs} +1 -1
- package/dist/{startFileWatcher-C7eFs4hA.mjs → startFileWatcher-GF4BNFA1.mjs} +1 -1
- package/dist/{startFileWatcher-6NpLGxg5.cjs → startFileWatcher-ikipjpDk.cjs} +1 -1
- package/dist/{startupSessionCreate-C5wdvraY.cjs → startupSessionCreate-CHU23k6u.cjs} +3 -3
- package/dist/{startupSessionCreate-D3ph1DtL.mjs → startupSessionCreate-Dp3_kvi_.mjs} +3 -3
- package/dist/{store-Cpb1LMNW.cjs → store-DGMILdMn.cjs} +1 -1
- package/dist/{store-DWmjM4Ex.mjs → store-Fge1h9wy.mjs} +1 -1
- package/dist/{streamRelay-DdGOsW8v.mjs → streamRelay-MaaYNNuh.mjs} +1 -1
- package/dist/{streamRelay-4XiiNB3N.cjs → streamRelay-keuifCPQ.cjs} +1 -1
- package/dist/{sync-BIXH8ijr.mjs → sync-Co0wRhGu.mjs} +1 -1
- package/dist/{sync-ni64k2OI.cjs → sync-Dm6GaS8P.cjs} +1 -1
- package/dist/{systemPrompt-B_vnlIr1.mjs → systemPrompt-5cZbY0sf.mjs} +2 -2
- package/dist/{systemPrompt-DuoULaqr.cjs → systemPrompt-Ds7HcfDZ.cjs} +2 -2
- package/dist/{teams-CsR_8p3Q.mjs → teams-DBWFUOC3.mjs} +20 -9
- package/dist/{teams-DLfcbOMh.cjs → teams-nrcZL-1X.cjs} +20 -9
- package/dist/{template-3fV9bi0X.cjs → template-ChUotPTL.cjs} +1 -1
- package/dist/{template-CtRLg2PG.mjs → template-D8fzlO58.mjs} +1 -1
- package/dist/{time-Che8GhII.mjs → time-Cn0mV-di.mjs} +1 -1
- package/dist/{time-BMCY7zJL.cjs → time-NSglRbyr.cjs} +1 -1
- package/dist/{titleGenerator-HVEN1e7o.cjs → titleGenerator-CMIUB04_.cjs} +3 -3
- package/dist/{titleGenerator-B9LckLDq.mjs → titleGenerator-hmxUR3rU.mjs} +2 -2
- package/dist/{todo-bc7db5NN.mjs → todo-CDdBityL.mjs} +8 -8
- package/dist/{todo-B8byb_cy.cjs → todo-D5BoNMb7.cjs} +8 -8
- package/dist/{tools-BAMaBbbP.mjs → tools-BmQbzAfY.mjs} +1 -1
- package/dist/{tools--RN1SFkD.cjs → tools-CLkNfafW.cjs} +1 -1
- package/dist/{uninstall-UC0Q8YTj.cjs → uninstall-DCx_qNMZ.cjs} +3 -3
- package/dist/{uninstall-Dv4C-W9z.mjs → uninstall-DE0SH2qs.mjs} +3 -3
- package/dist/{wrapperAccount-nGGMJDBF.cjs → wrapperAccount-BHMM9I6g.cjs} +2 -2
- package/dist/{wrapperAccount-z8Swrd08.mjs → wrapperAccount-CwaA-n1S.mjs} +2 -2
- package/package.json +7 -7
- package/dist/permissionMode-CH4FoZfU.mjs +0 -80
- package/dist/permissionMode-CrV-XuMs.cjs +0 -87
- package/dist/selfCheck-BKOIROoJ.mjs +0 -89
|
@@ -4,22 +4,25 @@ var os = require('node:os');
|
|
|
4
4
|
var promises = require('node:fs/promises');
|
|
5
5
|
var z = require('zod');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
|
-
var client = require('./client-
|
|
8
|
-
var persistence = require('./persistence-
|
|
7
|
+
var client = require('./client-Bh-y6cVc.cjs');
|
|
8
|
+
var persistence = require('./persistence-iiVFxhbt.cjs');
|
|
9
9
|
var install = require('./install-BOHlqewf.cjs');
|
|
10
|
+
var controlClient = require('./controlClient-D04wXKoQ.cjs');
|
|
10
11
|
require('node:child_process');
|
|
11
12
|
require('node:util');
|
|
12
13
|
require('node:path');
|
|
13
|
-
require('./index-
|
|
14
|
+
require('./index-BYL_X3gP.cjs');
|
|
14
15
|
require('@paralleldrive/cuid2');
|
|
15
|
-
require('./configuration-
|
|
16
|
+
require('./configuration-Fx61b4MJ.cjs');
|
|
16
17
|
require('node:fs');
|
|
17
|
-
require('./package-
|
|
18
|
-
require('./context-
|
|
18
|
+
require('./package-BCJfNMlt.cjs');
|
|
19
|
+
require('./context-D-QOcYuX.cjs');
|
|
20
|
+
require('./exitNotice-M4UjtWkr.cjs');
|
|
21
|
+
require('./logger-DP35yx-C.cjs');
|
|
22
|
+
require('chalk');
|
|
23
|
+
require('./prompt-Bof2aQkI.cjs');
|
|
19
24
|
require('./authRelay-Dy1qU9td.cjs');
|
|
20
25
|
require('tweetnacl');
|
|
21
|
-
require('./logger-BtWBoP60.cjs');
|
|
22
|
-
require('chalk');
|
|
23
26
|
require('./resources-BZ_Be0qM.cjs');
|
|
24
27
|
|
|
25
28
|
const legacyTask = z.z.object({
|
|
@@ -80,7 +83,7 @@ async function handleTeamsCommand(args) {
|
|
|
80
83
|
return index < 0 ? void 0 : args[index + 1];
|
|
81
84
|
};
|
|
82
85
|
if (!command || command === "--help") {
|
|
83
|
-
console.log("very-happy teams install|uninstall --host claude|codex|pi [--home PATH] [--apply]\nvery-happy teams doctor --host pi\nvery-happy teams migration-preview --file LEDGER_JSON\nvery-happy teams inspect\nvery-happy teams permissions --team-id ID --mode default|bypassPermissions --request-id ID\nvery-happy teams create|join --name NAME [--machine-id ID | --team-id ID] [--session-id ID] [--request-id ID]\nvery-happy teams action --json ACTION_JSON --request-id ID\nInstallation previews changes unless --apply is supplied. Managed sessions receive tools automatically.");
|
|
86
|
+
console.log("very-happy teams install|uninstall --host claude|codex|pi [--home PATH] [--apply]\nvery-happy teams doctor --host pi\nvery-happy teams migration-preview --file LEDGER_JSON\nvery-happy teams inspect\nvery-happy teams permissions --team-id ID --mode default|bypassPermissions --request-id ID\nvery-happy teams create|join --name NAME [--machine-id ID | --team-id ID] [--session-id ID] [--request-id ID]\nvery-happy teams action --json ACTION_JSON --request-id ID\nvery-happy teams exit --session-id ID (team lead only: archive the team, keep this session as an ordinary one)\nInstallation previews changes unless --apply is supplied. Managed sessions receive tools automatically.");
|
|
84
87
|
return;
|
|
85
88
|
}
|
|
86
89
|
if (command === "install" || command === "uninstall") {
|
|
@@ -120,6 +123,14 @@ async function handleTeamsCommand(args) {
|
|
|
120
123
|
console.log(JSON.stringify(await setTeamPermissionMode(teamId, mode, requestId)));
|
|
121
124
|
return;
|
|
122
125
|
}
|
|
126
|
+
if (command === "exit") {
|
|
127
|
+
const sessionId = value("--session-id") ?? process.env.HAPPY_SESSION_ID;
|
|
128
|
+
if (!sessionId) throw new Error("--session-id is required");
|
|
129
|
+
const result2 = await controlClient.exitDaemonTeamMode(sessionId);
|
|
130
|
+
if (!result2.success) throw new Error(result2.error ?? "Exit team mode failed");
|
|
131
|
+
console.log(JSON.stringify(result2));
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
123
134
|
const client$1 = client.createTeamsClient(value("--session-id"));
|
|
124
135
|
let result;
|
|
125
136
|
if (command === "inspect") result = await client$1.inspect();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as AUTOMATION_ATTENTION_REASON_MAX_CHARS, q as AUTOMATION_SUMMARY_MAX_CHARS } from './index-
|
|
1
|
+
import { o as AUTOMATION_ATTENTION_REASON_MAX_CHARS, q as AUTOMATION_SUMMARY_MAX_CHARS } from './index-DWk-WTU-.mjs';
|
|
2
2
|
|
|
3
3
|
function payloadJson(payload) {
|
|
4
4
|
if (!payload) return void 0;
|
|
@@ -5,16 +5,16 @@ var module$1 = require('node:module');
|
|
|
5
5
|
var oneShotPrompts = require('./oneShotPrompts-CL0dip9C.cjs');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
7
|
var path = require('node:path');
|
|
8
|
-
var logger = require('./logger-
|
|
8
|
+
var logger = require('./logger-DP35yx-C.cjs');
|
|
9
9
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
10
|
-
var wrapperAccount = require('./wrapperAccount-
|
|
10
|
+
var wrapperAccount = require('./wrapperAccount-BHMM9I6g.cjs');
|
|
11
11
|
|
|
12
12
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
13
13
|
const MAX_PROMPT_SAMPLE_CHARS = 500;
|
|
14
14
|
const MAX_TITLE_CHARS = 60;
|
|
15
15
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
16
16
|
function loadClaudeVersionUtils() {
|
|
17
|
-
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('titleGenerator-
|
|
17
|
+
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('titleGenerator-CMIUB04_.cjs', document.baseURI).href)));
|
|
18
18
|
return require$1(path.resolve(path.join(projectPath.projectPath(), "scripts", "claude_version_utils.cjs")));
|
|
19
19
|
}
|
|
20
20
|
function resolveClaudeBinary(loadUtils = loadClaudeVersionUtils) {
|
|
@@ -3,9 +3,9 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { T as TITLE_PROMPT_PREFIX } from './oneShotPrompts-DT4p6RNd.mjs';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
5
|
import { resolve, join } from 'node:path';
|
|
6
|
-
import { l as logger } from './logger-
|
|
6
|
+
import { l as logger } from './logger-BKAKIZdy.mjs';
|
|
7
7
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
8
|
-
import { a as accountClaudeSettings } from './wrapperAccount-
|
|
8
|
+
import { a as accountClaudeSettings } from './wrapperAccount-CwaA-n1S.mjs';
|
|
9
9
|
|
|
10
10
|
const MAX_PROMPT_SAMPLE_CHARS = 500;
|
|
11
11
|
const MAX_TITLE_CHARS = 60;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { E as createBuiltinTodoClient, F as ISSUE_LIMITS, G as sortBuiltinTodos, H as isIssueClosed, J as BUILTIN_TODO_SKILL } from './index-
|
|
3
|
-
import { b as readCredentialsForConfiguredRelay } from './persistence-
|
|
4
|
-
import { r as readTeamScope, t as teamScopePath } from './context-
|
|
5
|
-
import { a as IssueRequestError, s as sharedIssuesClient, i as importLegacyTodosOnce, I as IssuesUnsupportedError } from './client-
|
|
6
|
-
import { d as describeIssueError } from './format-
|
|
1
|
+
import { c as configuration } from './configuration-H8q1sMwk.mjs';
|
|
2
|
+
import { E as createBuiltinTodoClient, F as ISSUE_LIMITS, G as sortBuiltinTodos, H as isIssueClosed, J as BUILTIN_TODO_SKILL } from './index-DWk-WTU-.mjs';
|
|
3
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-dLgWDclq.mjs';
|
|
4
|
+
import { r as readTeamScope, t as teamScopePath } from './context-CM1Xd_HO.mjs';
|
|
5
|
+
import { a as IssueRequestError, s as sharedIssuesClient, i as importLegacyTodosOnce, I as IssuesUnsupportedError } from './client-m-K1b6Qa.mjs';
|
|
6
|
+
import { d as describeIssueError } from './format-BPAREVhi.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-CMmhJwSf.mjs';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '@paralleldrive/cuid2';
|
|
14
14
|
import './authRelay-DhQhkBvX.mjs';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'tweetnacl';
|
|
17
|
-
import './logger-
|
|
17
|
+
import './logger-BKAKIZdy.mjs';
|
|
18
18
|
import 'chalk';
|
|
19
19
|
import 'node:util';
|
|
20
20
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var context = require('./context-
|
|
7
|
-
var client = require('./client-
|
|
8
|
-
var format = require('./format-
|
|
3
|
+
var configuration = require('./configuration-Fx61b4MJ.cjs');
|
|
4
|
+
var index = require('./index-BYL_X3gP.cjs');
|
|
5
|
+
var persistence = require('./persistence-iiVFxhbt.cjs');
|
|
6
|
+
var context = require('./context-D-QOcYuX.cjs');
|
|
7
|
+
var client = require('./client-wMlUPnrV.cjs');
|
|
8
|
+
var format = require('./format-BEktLc45.cjs');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:os');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-BCJfNMlt.cjs');
|
|
13
13
|
require('node:fs/promises');
|
|
14
14
|
require('zod');
|
|
15
15
|
require('@paralleldrive/cuid2');
|
|
16
16
|
require('./authRelay-Dy1qU9td.cjs');
|
|
17
17
|
require('node:crypto');
|
|
18
18
|
require('tweetnacl');
|
|
19
|
-
require('./logger-
|
|
19
|
+
require('./logger-DP35yx-C.cjs');
|
|
20
20
|
require('chalk');
|
|
21
21
|
require('node:util');
|
|
22
22
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-DP35yx-C.cjs');
|
|
4
4
|
var require$$0 = require('fs');
|
|
5
5
|
var child_process = require('child_process');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('node:util');
|
|
8
|
-
require('./configuration-
|
|
8
|
+
require('./configuration-Fx61b4MJ.cjs');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:os');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-BCJfNMlt.cjs');
|
|
13
13
|
require('node:fs/promises');
|
|
14
14
|
|
|
15
15
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
1
|
+
import { l as logger } from './logger-BKAKIZdy.mjs';
|
|
2
2
|
import { existsSync, unlinkSync } from 'fs';
|
|
3
3
|
import { execSync } from 'child_process';
|
|
4
4
|
import 'chalk';
|
|
5
5
|
import 'node:util';
|
|
6
|
-
import './configuration-
|
|
6
|
+
import './configuration-H8q1sMwk.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-CMmhJwSf.mjs';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
12
|
|
|
13
13
|
const PLIST_LABEL = "com.happy-cli.daemon";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var node_fs = require('node:fs');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var claudeAccountEnv = require('./claudeAccountEnv-
|
|
7
|
-
var store = require('./store-
|
|
6
|
+
var claudeAccountEnv = require('./claudeAccountEnv-BTZjHTpF.cjs');
|
|
7
|
+
var store = require('./store-DGMILdMn.cjs');
|
|
8
8
|
|
|
9
9
|
let current = null;
|
|
10
10
|
let home = null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdirSync, writeFileSync, chmodSync, readFileSync, rmSync } from 'node:fs';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import { dirname, join } from 'node:path';
|
|
4
|
-
import { r as resolveClaudeAccount, a as applyAccountEnv, o as overridingUserSettings } from './claudeAccountEnv-
|
|
5
|
-
import { r as readSessionBindings, w as writeSessionBinding, d as defaultSecretProbe, a as readAccounts, c as readAccountsFileV2, f as writeAccountsFile } from './store-
|
|
4
|
+
import { r as resolveClaudeAccount, a as applyAccountEnv, o as overridingUserSettings } from './claudeAccountEnv-C6Wl-ZbT.mjs';
|
|
5
|
+
import { r as readSessionBindings, w as writeSessionBinding, d as defaultSecretProbe, a as readAccounts, c as readAccountsFileV2, f as writeAccountsFile } from './store-Fge1h9wy.mjs';
|
|
6
6
|
|
|
7
7
|
let current = null;
|
|
8
8
|
let home = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "very-happy-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.205",
|
|
4
4
|
"description": "Remote multi-agent workspace CLI with deep Claude integration, native terminal streaming, and self-hosting.",
|
|
5
5
|
"author": "Kirill Dubovitskiy",
|
|
6
6
|
"contributors": [
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"zod": "^4.6.7"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
|
-
"very-happy-tools-arm64-darwin": "0.2.
|
|
121
|
-
"very-happy-tools-x64-darwin": "0.2.
|
|
122
|
-
"very-happy-tools-arm64-linux": "0.2.
|
|
123
|
-
"very-happy-tools-x64-linux": "0.2.
|
|
124
|
-
"very-happy-tools-arm64-win32": "0.2.
|
|
125
|
-
"very-happy-tools-x64-win32": "0.2.
|
|
120
|
+
"very-happy-tools-arm64-darwin": "0.2.205",
|
|
121
|
+
"very-happy-tools-x64-darwin": "0.2.205",
|
|
122
|
+
"very-happy-tools-arm64-linux": "0.2.205",
|
|
123
|
+
"very-happy-tools-x64-linux": "0.2.205",
|
|
124
|
+
"very-happy-tools-arm64-win32": "0.2.205",
|
|
125
|
+
"very-happy-tools-x64-win32": "0.2.205"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@slopus/happy-wire": "workspace:*",
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
function mapToClaudeMode(mode) {
|
|
2
|
-
const codexToClaudeMap = {
|
|
3
|
-
"yolo": "bypassPermissions",
|
|
4
|
-
"safe-yolo": "default",
|
|
5
|
-
"read-only": "default"
|
|
6
|
-
};
|
|
7
|
-
return codexToClaudeMap[mode] ?? mode;
|
|
8
|
-
}
|
|
9
|
-
const VALID_PERMISSION_MODES = [
|
|
10
|
-
"default",
|
|
11
|
-
"acceptEdits",
|
|
12
|
-
"bypassPermissions",
|
|
13
|
-
"plan",
|
|
14
|
-
"read-only",
|
|
15
|
-
"safe-yolo",
|
|
16
|
-
"yolo"
|
|
17
|
-
];
|
|
18
|
-
function isPermissionMode(value) {
|
|
19
|
-
return !!value && VALID_PERMISSION_MODES.includes(value);
|
|
20
|
-
}
|
|
21
|
-
function parseClaudePermissionMode(value) {
|
|
22
|
-
return typeof value === "string" && isPermissionMode(value) ? mapToClaudeMode(value) : null;
|
|
23
|
-
}
|
|
24
|
-
function extractPermissionModeFromClaudeArgs(claudeArgs) {
|
|
25
|
-
if (!claudeArgs || claudeArgs.length === 0) {
|
|
26
|
-
return void 0;
|
|
27
|
-
}
|
|
28
|
-
let found = void 0;
|
|
29
|
-
for (let i = 0; i < claudeArgs.length; i++) {
|
|
30
|
-
const arg = claudeArgs[i];
|
|
31
|
-
if (arg === "--permission-mode") {
|
|
32
|
-
const next = claudeArgs[i + 1];
|
|
33
|
-
if (isPermissionMode(next)) {
|
|
34
|
-
found = next;
|
|
35
|
-
}
|
|
36
|
-
i += 1;
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if (arg.startsWith("--permission-mode=")) {
|
|
40
|
-
const value = arg.slice("--permission-mode=".length);
|
|
41
|
-
if (isPermissionMode(value)) {
|
|
42
|
-
found = value;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return found;
|
|
47
|
-
}
|
|
48
|
-
function resolveInitialClaudePermissionMode(optionMode, claudeArgs) {
|
|
49
|
-
if (claudeArgs?.includes("--dangerously-skip-permissions")) {
|
|
50
|
-
return "bypassPermissions";
|
|
51
|
-
}
|
|
52
|
-
return extractPermissionModeFromClaudeArgs(claudeArgs) ?? optionMode;
|
|
53
|
-
}
|
|
54
|
-
function applySandboxPermissionPolicy(mode, sandboxEnabled) {
|
|
55
|
-
if (!sandboxEnabled) {
|
|
56
|
-
return mode;
|
|
57
|
-
}
|
|
58
|
-
return "bypassPermissions";
|
|
59
|
-
}
|
|
60
|
-
function isClaudeBypassEquivalent(mode) {
|
|
61
|
-
return mode === "bypassPermissions" || mode === "yolo";
|
|
62
|
-
}
|
|
63
|
-
function resolveRemoteClaudePermissionMode(currentMode, incomingMode, sandboxEnabled) {
|
|
64
|
-
if (!incomingMode) {
|
|
65
|
-
return currentMode;
|
|
66
|
-
}
|
|
67
|
-
const nextMode = applySandboxPermissionPolicy(incomingMode, sandboxEnabled);
|
|
68
|
-
if (isClaudeBypassEquivalent(currentMode) && nextMode === "default") {
|
|
69
|
-
return currentMode;
|
|
70
|
-
}
|
|
71
|
-
return nextMode;
|
|
72
|
-
}
|
|
73
|
-
function reconcilePublishedPermissionMode(input) {
|
|
74
|
-
if (!input.effective) return null;
|
|
75
|
-
const mismatch = input.effective !== input.intent;
|
|
76
|
-
if (input.effective === input.published) return mismatch ? { publish: input.effective, mismatch } : null;
|
|
77
|
-
return { publish: input.effective, mismatch };
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export { applySandboxPermissionPolicy as a, reconcilePublishedPermissionMode as b, resolveRemoteClaudePermissionMode as c, mapToClaudeMode as m, parseClaudePermissionMode as p, resolveInitialClaudePermissionMode as r };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function mapToClaudeMode(mode) {
|
|
4
|
-
const codexToClaudeMap = {
|
|
5
|
-
"yolo": "bypassPermissions",
|
|
6
|
-
"safe-yolo": "default",
|
|
7
|
-
"read-only": "default"
|
|
8
|
-
};
|
|
9
|
-
return codexToClaudeMap[mode] ?? mode;
|
|
10
|
-
}
|
|
11
|
-
const VALID_PERMISSION_MODES = [
|
|
12
|
-
"default",
|
|
13
|
-
"acceptEdits",
|
|
14
|
-
"bypassPermissions",
|
|
15
|
-
"plan",
|
|
16
|
-
"read-only",
|
|
17
|
-
"safe-yolo",
|
|
18
|
-
"yolo"
|
|
19
|
-
];
|
|
20
|
-
function isPermissionMode(value) {
|
|
21
|
-
return !!value && VALID_PERMISSION_MODES.includes(value);
|
|
22
|
-
}
|
|
23
|
-
function parseClaudePermissionMode(value) {
|
|
24
|
-
return typeof value === "string" && isPermissionMode(value) ? mapToClaudeMode(value) : null;
|
|
25
|
-
}
|
|
26
|
-
function extractPermissionModeFromClaudeArgs(claudeArgs) {
|
|
27
|
-
if (!claudeArgs || claudeArgs.length === 0) {
|
|
28
|
-
return void 0;
|
|
29
|
-
}
|
|
30
|
-
let found = void 0;
|
|
31
|
-
for (let i = 0; i < claudeArgs.length; i++) {
|
|
32
|
-
const arg = claudeArgs[i];
|
|
33
|
-
if (arg === "--permission-mode") {
|
|
34
|
-
const next = claudeArgs[i + 1];
|
|
35
|
-
if (isPermissionMode(next)) {
|
|
36
|
-
found = next;
|
|
37
|
-
}
|
|
38
|
-
i += 1;
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (arg.startsWith("--permission-mode=")) {
|
|
42
|
-
const value = arg.slice("--permission-mode=".length);
|
|
43
|
-
if (isPermissionMode(value)) {
|
|
44
|
-
found = value;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return found;
|
|
49
|
-
}
|
|
50
|
-
function resolveInitialClaudePermissionMode(optionMode, claudeArgs) {
|
|
51
|
-
if (claudeArgs?.includes("--dangerously-skip-permissions")) {
|
|
52
|
-
return "bypassPermissions";
|
|
53
|
-
}
|
|
54
|
-
return extractPermissionModeFromClaudeArgs(claudeArgs) ?? optionMode;
|
|
55
|
-
}
|
|
56
|
-
function applySandboxPermissionPolicy(mode, sandboxEnabled) {
|
|
57
|
-
if (!sandboxEnabled) {
|
|
58
|
-
return mode;
|
|
59
|
-
}
|
|
60
|
-
return "bypassPermissions";
|
|
61
|
-
}
|
|
62
|
-
function isClaudeBypassEquivalent(mode) {
|
|
63
|
-
return mode === "bypassPermissions" || mode === "yolo";
|
|
64
|
-
}
|
|
65
|
-
function resolveRemoteClaudePermissionMode(currentMode, incomingMode, sandboxEnabled) {
|
|
66
|
-
if (!incomingMode) {
|
|
67
|
-
return currentMode;
|
|
68
|
-
}
|
|
69
|
-
const nextMode = applySandboxPermissionPolicy(incomingMode, sandboxEnabled);
|
|
70
|
-
if (isClaudeBypassEquivalent(currentMode) && nextMode === "default") {
|
|
71
|
-
return currentMode;
|
|
72
|
-
}
|
|
73
|
-
return nextMode;
|
|
74
|
-
}
|
|
75
|
-
function reconcilePublishedPermissionMode(input) {
|
|
76
|
-
if (!input.effective) return null;
|
|
77
|
-
const mismatch = input.effective !== input.intent;
|
|
78
|
-
if (input.effective === input.published) return mismatch ? { publish: input.effective, mismatch } : null;
|
|
79
|
-
return { publish: input.effective, mismatch };
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
exports.applySandboxPermissionPolicy = applySandboxPermissionPolicy;
|
|
83
|
-
exports.mapToClaudeMode = mapToClaudeMode;
|
|
84
|
-
exports.parseClaudePermissionMode = parseClaudePermissionMode;
|
|
85
|
-
exports.reconcilePublishedPermissionMode = reconcilePublishedPermissionMode;
|
|
86
|
-
exports.resolveInitialClaudePermissionMode = resolveInitialClaudePermissionMode;
|
|
87
|
-
exports.resolveRemoteClaudePermissionMode = resolveRemoteClaudePermissionMode;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { p as packageJson } from './package-CIW5lwaN.mjs';
|
|
2
|
-
|
|
3
|
-
const LAZY_MODULES = [
|
|
4
|
-
// Entry
|
|
5
|
-
["main", () => import('./main-BP2TBnp5.mjs')],
|
|
6
|
-
["selfCheck", () => Promise.resolve().then(function () { return selfCheck; })],
|
|
7
|
-
// Subcommands (main.ts)
|
|
8
|
-
["api/api", () => import('./api-D8ZDxBWw.mjs').then(function (n) { return n.e; })],
|
|
9
|
-
["claude/claudeCliPath", () => import('./claudeCliPath-BqkaH2oR.mjs')],
|
|
10
|
-
["claude/runClaude", () => import('./runClaude-CJe5atrS.mjs')],
|
|
11
|
-
["commands/agentHome", () => import('./agentHome-DUxArmak.mjs')],
|
|
12
|
-
["commands/auth", () => import('./auth-BxNuFv_0.mjs')],
|
|
13
|
-
["commands/auto", () => import('./auto-DmXTwayU.mjs')],
|
|
14
|
-
["commands/codexCommand", () => import('./codexCommand-D79GnRhB.mjs')],
|
|
15
|
-
["commands/connect", () => import('./connect-CiA13Xm4.mjs')],
|
|
16
|
-
["commands/installPiTools", () => import('./installPiTools-B_CdM5_2.mjs')],
|
|
17
|
-
["commands/installTerminalHooks", () => import('./installTerminalHooks-By7gBMEF.mjs')],
|
|
18
|
-
["commands/mcp", () => import('./mcp-Cn4k-PXb.mjs')],
|
|
19
|
-
["commands/panels", () => import('./panels-BpfVEvwF.mjs')],
|
|
20
|
-
["commands/piTerminal", () => import('./piTerminal-Cl45kac0.mjs')],
|
|
21
|
-
["commands/sandbox", () => import('./sandbox-DAvJJZcV.mjs')],
|
|
22
|
-
["commands/send", () => import('./send-Co_l_Nmg.mjs')],
|
|
23
|
-
["commands/server", () => import('./server-D1Qrmxl7.mjs')],
|
|
24
|
-
["commands/sessions", () => import('./sessions-GCql_3Dl.mjs')],
|
|
25
|
-
["commands/sessionProvider", () => import('./sessionProvider-BaJq1AnY.mjs')],
|
|
26
|
-
["commands/account", () => import('./account-hy0rztXY.mjs')],
|
|
27
|
-
["agentProfiles/daemonAccounts", () => import('./daemonAccounts-D5shoCLt.mjs')],
|
|
28
|
-
["commands/spawn", () => import('./spawn-C9NSlg99.mjs')],
|
|
29
|
-
["commands/teams", () => import('./teams-CsR_8p3Q.mjs')],
|
|
30
|
-
["commands/todo", () => import('./todo-bc7db5NN.mjs')],
|
|
31
|
-
["commands/issue", () => import('./issue-aKZd7J55.mjs')],
|
|
32
|
-
["daemon/doctor", () => import('./doctor-GN5mPOn5.mjs')],
|
|
33
|
-
["daemon/install", () => import('./install-yqS4y1cm.mjs')],
|
|
34
|
-
["daemon/run", () => import('./run-Dq48xBtw.mjs')],
|
|
35
|
-
["daemon/uninstall", () => import('./uninstall-Dv4C-W9z.mjs')],
|
|
36
|
-
["resume/handleResumeCommand", () => import('./handleResumeCommand-xrOAA1qI.mjs')],
|
|
37
|
-
["ui/doctor", () => import('./doctor-HHS4YegX.mjs').then(function (n) { return n.d; })],
|
|
38
|
-
["agent/acp", () => import('./index-B7CXMlrz.mjs')],
|
|
39
|
-
["gemini/runGemini", () => import('./runGemini-DZv6jPxV.mjs')],
|
|
40
|
-
["gemini/utils/config", () => import('./config-Crn1mNgr.mjs')],
|
|
41
|
-
["openclaw/runOpenClaw", () => import('./runOpenClaw-CRqCoj-_.mjs')],
|
|
42
|
-
["persistence", () => import('./persistence-D_zVC4Xz.mjs').then(function (n) { return n.I; })],
|
|
43
|
-
// Deferred halves of the runners and clients
|
|
44
|
-
["api/apiMachine", () => import('./apiMachine-qav2pnk5.mjs')],
|
|
45
|
-
["claude/runClaudeDeps", () => import('./runClaudeDeps-CL3goCXG.mjs')],
|
|
46
|
-
["claude/claudeLocal", () => import('./claudeLocal-bDarWqaU.mjs')],
|
|
47
|
-
["claude/claudeLocalLauncher", () => import('./claudeLocalLauncher-Ccpj2KgW.mjs')],
|
|
48
|
-
["claude/sdk", () => import('./index-iFVMrlPo.mjs')],
|
|
49
|
-
["assistant/bootstrap", () => import('./bootstrap-pGaFGbWO.mjs')],
|
|
50
|
-
["agentHome", () => import('./index-DIKJMfs2.mjs')],
|
|
51
|
-
["ui/ink/RemoteModeDisplay", () => import('./RemoteModeDisplay-D-HewyXg.mjs')],
|
|
52
|
-
// External packages imported on demand
|
|
53
|
-
["expo-server-sdk", () => import('expo-server-sdk')],
|
|
54
|
-
["ink", () => import('ink')],
|
|
55
|
-
["react", () => import('react')]
|
|
56
|
-
];
|
|
57
|
-
|
|
58
|
-
async function runSelfCheck(modules = LAZY_MODULES) {
|
|
59
|
-
const failures = [];
|
|
60
|
-
for (const [name, load] of modules) {
|
|
61
|
-
try {
|
|
62
|
-
await load();
|
|
63
|
-
} catch (error) {
|
|
64
|
-
failures.push({ name, error: error instanceof Error ? error.message : String(error) });
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return failures;
|
|
68
|
-
}
|
|
69
|
-
async function selfCheckMain(opts = {}) {
|
|
70
|
-
const started = Date.now();
|
|
71
|
-
const failures = await runSelfCheck();
|
|
72
|
-
if (failures.length > 0) {
|
|
73
|
-
for (const failure of failures) {
|
|
74
|
-
console.error(`very-happy: failed to load ${failure.name}: ${failure.error}`);
|
|
75
|
-
}
|
|
76
|
-
return 1;
|
|
77
|
-
}
|
|
78
|
-
if (opts.verbose) console.log(`self-check: ${LAZY_MODULES.length} modules loaded in ${Date.now() - started}ms`);
|
|
79
|
-
console.log(`very-happy version: ${packageJson.version}`);
|
|
80
|
-
return 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
var selfCheck = /*#__PURE__*/Object.freeze({
|
|
84
|
-
__proto__: null,
|
|
85
|
-
runSelfCheck: runSelfCheck,
|
|
86
|
-
selfCheckMain: selfCheckMain
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
export { runSelfCheck, selfCheckMain };
|