very-happy-cli 0.2.178 → 0.2.180
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-DCQXHRzT.mjs → AcpBackend-B8Zi30Zh.mjs} +135 -16
- package/dist/{AcpBackend-CDkAQXYf.cjs → AcpBackend-DfRDtMcG.cjs} +135 -16
- package/dist/{AcpSessionManager-DckmUZza.cjs → AcpSessionManager-CASKOnOj.cjs} +38 -4
- package/dist/{AcpSessionManager-BXrQcqwC.mjs → AcpSessionManager-i8Rab0xT.mjs} +38 -4
- package/dist/{BasePermissionHandler-BVlrEhIi.mjs → BasePermissionHandler-26fKbRCm.mjs} +5 -2
- package/dist/{BasePermissionHandler-DyLmKKtO.cjs → BasePermissionHandler-BlM_tfej.cjs} +5 -2
- package/dist/acpSessionResume-B9l54P-X.mjs +67 -0
- package/dist/acpSessionResume-CR5pmgVo.cjs +74 -0
- package/dist/{agentHome-CEp9RMyK.cjs → agentHome-C7Sb7-Tz.cjs} +4 -4
- package/dist/{agentHome-C1xi37as.mjs → agentHome-CmGy0NWv.mjs} +4 -4
- package/dist/{api-JANhFdZV.cjs → api-DM7b1OKj.cjs} +38 -262
- package/dist/{api-Dib0dmqC.mjs → api-Hov8p7CA.mjs} +32 -256
- package/dist/{apiMachine-DNTJidYH.mjs → apiMachine-CwGEhQDT.mjs} +62 -15
- package/dist/{apiMachine-QhK-sKcr.cjs → apiMachine-DkGRj-Ai.cjs} +64 -17
- package/dist/{attachmentContent-bpQTBJ0y.cjs → attachmentContent-CEm13_gF.cjs} +4 -4
- package/dist/{attachmentContent-DkkdpSSJ.mjs → attachmentContent-CIn4iPEk.mjs} +2 -2
- package/dist/{auth-BRjd2esb.mjs → auth-BG1DY0gj.mjs} +5 -5
- package/dist/{auth-DgIV0Cvt.cjs → auth-CBXnm-Mj.cjs} +5 -5
- package/dist/{auth-omWDtgR8.cjs → auth-Dawj7pP5.cjs} +8 -8
- package/dist/{auth-DNct7VUi.mjs → auth-rggxMpEE.mjs} +8 -8
- package/dist/{auto-DKGFOJBo.mjs → auto-CXXLXGeL.mjs} +19 -18
- package/dist/{auto-CI16FZmX.cjs → auto-CbYOfoPS.cjs} +19 -18
- package/dist/{backgroundTaskActivity-BVwJBl02.mjs → backgroundTaskActivity-8PdPxrvy.mjs} +1 -1
- package/dist/{bootstrap-DCQ87Aan.cjs → bootstrap-DoA7okld.cjs} +2 -2
- package/dist/{bootstrap-BUagGC_-.mjs → bootstrap-Dt5I1SOl.mjs} +2 -2
- package/dist/{browser-Dj_DYQEh.mjs → browser-DUNetFT4.mjs} +1 -1
- package/dist/{browser-CSKhc0Bl.cjs → browser-DZ6qRtfH.cjs} +1 -1
- package/dist/{claudeCliPath-U4HHmV4r.cjs → claudeCliPath-GaP3UUz1.cjs} +1 -1
- package/dist/{claudeLocal-CdIVnOZp.cjs → claudeLocal--DNyMOSv.cjs} +8 -7
- package/dist/{claudeLocal-CCCvAeMd.mjs → claudeLocal-OHWQigCl.mjs} +6 -5
- package/dist/{claudeLocalLauncher-BmrpaRYJ.mjs → claudeLocalLauncher-BStvfa7M.mjs} +11 -10
- package/dist/{claudeLocalLauncher-21-xh5gc.cjs → claudeLocalLauncher-BhvPbcyH.cjs} +13 -12
- package/dist/{claudeSessionFork-kYCP1IJB.cjs → claudeSessionFork-Be16vzGc.cjs} +1 -1
- package/dist/{claudeSessionFork-DvxMKAmY.mjs → claudeSessionFork-GAVWhiKG.mjs} +1 -1
- package/dist/{client-C4zKGjiJ.cjs → client-BWjaHKtj.cjs} +2 -2
- package/dist/client-Ca5Pcgy_.mjs +71 -0
- package/dist/{client-CnlkkrZO.mjs → client-CnB7kRCT.mjs} +2 -2
- package/dist/{client-BTX9hsbr.mjs → client-D4uPb1uu.mjs} +3 -3
- package/dist/client-DJplzPjD.cjs +76 -0
- package/dist/{client-Dnza1hgN.cjs → client-D_loZ9IK.cjs} +3 -3
- package/dist/codex/happyMcpStdioBridge.cjs +24 -15
- package/dist/codex/happyMcpStdioBridge.mjs +25 -16
- package/dist/{codexAppServerClient-DvkpQgyv.mjs → codexAppServerClient-CO4G6OS4.mjs} +3 -3
- package/dist/{codexAppServerClient-CRlBWGn3.cjs → codexAppServerClient-PE-12AsW.cjs} +3 -3
- package/dist/{codexCommand-DzxIWXIT.cjs → codexCommand-BNoD1t1C.cjs} +127 -116
- package/dist/{codexCommand-BxjogBzU.mjs → codexCommand-B_xUH79E.mjs} +77 -66
- package/dist/{codexTermination-C28FzlLb.cjs → codexTermination-BmBbizFK.cjs} +7 -2
- package/dist/{codexTermination-ySDNMEhd.mjs → codexTermination-Dx48ma6e.mjs} +7 -2
- package/dist/{config-BFB5uJ4t.cjs → config-CtwEUxUP.cjs} +26 -26
- package/dist/{config-DwfEpFr3.mjs → config-DSu0Blos.mjs} +3 -3
- package/dist/{configuration-4TGMrjul.cjs → configuration-CYO-kPOS.cjs} +1 -1
- package/dist/{configuration-DVrb61aY.mjs → configuration-PxzEJumr.mjs} +1 -1
- package/dist/{connect-C7FPY0PI.mjs → connect-BQrg3TB6.mjs} +15 -15
- package/dist/{connect-QH2VJGBG.cjs → connect-Dq7wndzR.cjs} +28 -28
- package/dist/{context-JoKu0V54.cjs → context-6TP-iz_c.cjs} +1 -1
- package/dist/{context-B3XPVJlj.mjs → context-CJGRRGWW.mjs} +1 -1
- package/dist/{controlClient-BTaZlbC6.cjs → controlClient-Bqv5v5OM.cjs} +3 -3
- package/dist/{controlClient-BYKyGyxj.mjs → controlClient-DoeYovwP.mjs} +4 -4
- package/dist/{createSessionMetadata-8Fuj2-IV.mjs → createSessionMetadata-DDIChCx8.mjs} +2 -2
- package/dist/{createSessionMetadata-B2NynaWZ.cjs → createSessionMetadata-xz767pcG.cjs} +3 -3
- package/dist/{defaultPermissionMode-BEWCqJU-.cjs → defaultPermissionMode-PkZGsQDk.cjs} +2 -2
- package/dist/{defaultPermissionMode-B8kJG9uI.mjs → defaultPermissionMode-i5KzdK09.mjs} +2 -2
- package/dist/{detectCLI-DR9ZaN6B.cjs → detectCLI-BuYR_Qxe.cjs} +4 -4
- package/dist/{deterministicJson-C5ZwZ7hu.mjs → deterministicJson-CTEJDqtS.mjs} +217 -12
- package/dist/{deterministicJson-BjNQsAjO.cjs → deterministicJson-xqA6DaOm.cjs} +222 -16
- package/dist/{doctor-BshRnjLi.cjs → doctor-BrgSlfXn.cjs} +9 -9
- package/dist/{doctor-0BiGwJXk.mjs → doctor-IctjVh9T.mjs} +8 -8
- package/dist/{doctorReadiness-BCZGcN0a.cjs → doctorReadiness-Dl6yRQCy.cjs} +1 -1
- package/dist/{downloadTarget-BN5vZt3K.cjs → downloadTarget-CEb9che-.cjs} +6 -6
- package/dist/{downloadTarget-DJPwAZlu.mjs → downloadTarget-jbOz1egC.mjs} +6 -6
- package/dist/{ensureDaemonRunning-C5QfToCe.cjs → ensureDaemonRunning-D-HyjGIX.cjs} +6 -6
- package/dist/{ensureDaemonRunning-CSmb_mqt.mjs → ensureDaemonRunning-b1e8LCSM.mjs} +5 -5
- package/dist/{handleResumeCommand-BwnUZmbo.cjs → handleResumeCommand-BvWVuRwH.cjs} +23 -7
- package/dist/{handleResumeCommand-CgjpsdDe.mjs → handleResumeCommand-DpaZvm2c.mjs} +22 -6
- package/dist/{index-piJPsTsm.cjs → index-B2p2Mut7.cjs} +259 -53
- package/dist/{index-BehVbAsA.mjs → index-BUNnpGFF.mjs} +256 -50
- package/dist/{index-Bvldtdny.mjs → index-Bsvbgh9e.mjs} +4 -4
- package/dist/{index-BYOZ_8WZ.cjs → index-C64Ufj4D.cjs} +4 -4
- package/dist/{index-Clqlu17M.mjs → index-C6Vn5Eac.mjs} +155 -34
- package/dist/index-CMf5VbzG.mjs +18 -0
- package/dist/index-DmTlDRSL.cjs +24 -0
- package/dist/{index-_l1Sdmbi.cjs → index-Dv0Q48P3.cjs} +156 -33
- package/dist/{index-BRClDe07.cjs → index-F2UejqYs.cjs} +3 -3
- package/dist/{index-BYgfern_.mjs → index-wCbtF4BK.mjs} +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-BdvKiOQw.mjs → install-BX3lv3NO.mjs} +1 -1
- package/dist/{install-Cf6AFSWC.cjs → install-BXvf2E3o.cjs} +1 -1
- package/dist/{install-TO4taKW7.cjs → install-C0ANcEAW.cjs} +7 -7
- package/dist/{install-fYWHrPcC.mjs → install-CdzSV7qO.mjs} +3 -3
- package/dist/{installPiTools-BKnXjrVu.cjs → installPiTools-CL_axh_6.cjs} +1 -1
- package/dist/{installTerminalHooks-BQZbvxsZ.cjs → installTerminalHooks-BETLKAtd.cjs} +3 -3
- package/dist/lib.cjs +14 -14
- package/dist/lib.d.cts +239 -2
- package/dist/lib.d.mts +239 -2
- package/dist/lib.mjs +14 -14
- package/dist/{lidState-BeOwj6eW.cjs → lidState-DWGnm2H4.cjs} +1 -1
- package/dist/{lidState-DNMlIhX0.mjs → lidState-bBrmaQd2.mjs} +1 -1
- package/dist/{localHappyAgentAuth-Br-mgogg.cjs → localHappyAgentAuth-DZHQnIW9.cjs} +1 -1
- package/dist/{localHappyAgentAuth-BezKSFDi.mjs → localHappyAgentAuth-Dn1jYDpt.mjs} +1 -1
- package/dist/{logger--vAVtXB_.mjs → logger-BUngm5Xg.mjs} +2 -2
- package/dist/{logger-DXTWlPzP.cjs → logger-CphW5nUE.cjs} +2 -2
- package/dist/machineMetadata-BQm9YTcI.cjs +79 -0
- package/dist/machineMetadata-BXN_bKU3.mjs +68 -0
- package/dist/{main-DoMFJ2Cl.cjs → main-B2UV51nK.cjs} +112 -132
- package/dist/{main-CshDb5-1.mjs → main-DGkdYfEq.mjs} +106 -126
- package/dist/{mcp-pNc1EbQf.cjs → mcp-BFvAEIRz.cjs} +15 -15
- package/dist/{mcp-DKT_lrvQ.mjs → mcp-CbTtbs0f.mjs} +15 -15
- package/dist/{mirrorProtocol-6IFGPpjJ.mjs → mirrorProtocol-BR4luBC0.mjs} +148 -7
- package/dist/{mirrorProtocol-qKflWTX_.cjs → mirrorProtocol-HKPivs5o.cjs} +150 -4
- package/dist/{package-B7B03ejW.mjs → package-7Ld1YMhh.mjs} +8 -7
- package/dist/{package-DY4zTbKS.cjs → package-KhLqBDX9.cjs} +8 -7
- package/dist/panels-C7IVqpJk.mjs +137 -0
- package/dist/panels-Njf6GelF.cjs +142 -0
- package/dist/{peerTools-3R9RUARX.mjs → peerTools-BOlDRyhi.mjs} +60 -10
- package/dist/{peerTools-iy3_6Yc5.cjs → peerTools-DQNlrcqM.cjs} +60 -9
- package/dist/{persistence-BfX72dne.cjs → persistence-9BMYspxG.cjs} +2 -2
- package/dist/{persistence-DTk4sNpd.mjs → persistence-BFUOHW5h.mjs} +3 -3
- package/dist/{piRunnerArgs-CRQVR9o-.cjs → piRunnerArgs-DGaq6VYM.cjs} +8 -2
- package/dist/{piRunnerArgs-AT8QJY7x.mjs → piRunnerArgs-H2pgpA5z.mjs} +7 -1
- package/dist/{piRuntime-BHRT5MKO.cjs → piRuntime-CT5xv_3h.cjs} +2 -2
- package/dist/{piRuntime-E44qTVQ4.mjs → piRuntime-CdN0JAsa.mjs} +2 -2
- package/dist/{piTerminal-hI4WFdWm.cjs → piTerminal-0FBtXTHK.cjs} +18 -18
- package/dist/{piTerminal-De8nbciM.mjs → piTerminal-C4m9YXAV.mjs} +18 -18
- package/dist/processTreeSnapshot-CuLJDNC-.mjs +101 -0
- package/dist/processTreeSnapshot-mDbnuojn.cjs +105 -0
- package/dist/projectPath-C3ioB4Bu.cjs +13 -0
- package/dist/prompt-BOouDaTM.mjs +99 -0
- package/dist/prompt-lgF9IE82.cjs +105 -0
- package/dist/{attachmentLimits-UyFn8fkQ.mjs → pushNotifications-DCiBEVeC.mjs} +307 -3
- package/dist/{attachmentLimits-SqeAHrVC.cjs → pushNotifications-DI92havG.cjs} +308 -2
- package/dist/{index-DFPT4HOO.cjs → query-BETKBrnz.cjs} +25 -5
- package/dist/{index-CEjJnq05.mjs → query-ywZbQUzR.mjs} +26 -3
- package/dist/{rateLimitWindows-XrJiiBpU.mjs → rateLimitWindows-BkfuUB1a.mjs} +1 -1
- package/dist/{rateLimitWindows-Czb7_7cK.cjs → rateLimitWindows-YRIYVdo4.cjs} +1 -1
- package/dist/{registerCommonHandlers-C0_fyBQ0.cjs → registerCommonHandlers-C7a_dUWs.cjs} +30 -30
- package/dist/{registerCommonHandlers-CvIedVRf.mjs → registerCommonHandlers-CTkCvjxt.mjs} +2 -2
- package/dist/{registerKillSessionHandler-DYl7l4Ts.cjs → registerKillSessionHandler-CIsvBrVe.cjs} +6 -6
- package/dist/{registerKillSessionHandler-gwJ5lTf0.mjs → registerKillSessionHandler-CaqqRYq6.mjs} +6 -6
- package/dist/{remoteSessionClient-BRTIOX5b.cjs → remoteSessionClient-D843fkzL.cjs} +5 -5
- package/dist/{remoteSessionClient-DRb2Jr5s.mjs → remoteSessionClient-PP-mOKmw.mjs} +5 -5
- package/dist/{reportProgressTool-B9nCzbkL.cjs → reportProgressTool-14AXr959.cjs} +84 -2
- package/dist/{reportProgressTool-D5tEoXMW.mjs → reportProgressTool-ZOCNjWHr.mjs} +82 -3
- package/dist/{resources-JDPugcDq.cjs → resources-CvIlkzpP.cjs} +30 -0
- package/dist/{resources-BdFBQi8r.mjs → resources-y9jfyO-_.mjs} +30 -0
- package/dist/{run-CKe_WeLW.cjs → run-CAOCYYfT.cjs} +2806 -110
- package/dist/{run-BQ_FGaOL.mjs → run-Dajw2E5j.mjs} +2787 -91
- package/dist/{runClaude-zrrNcQC_.mjs → runClaude-C6oxWYbp.mjs} +49 -47
- package/dist/{runClaude-MHI5IKM-.cjs → runClaude-CRRKt-tm.cjs} +50 -48
- package/dist/{runClaudeDeps-RRw-Nusc.cjs → runClaudeDeps-B1ysqTvx.cjs} +310 -237
- package/dist/{runClaudeDeps-CVBCokOS.mjs → runClaudeDeps-BcZ68cX3.mjs} +297 -226
- package/dist/{runGemini-kipag2ag.mjs → runGemini-D7yKc4wD.mjs} +61 -55
- package/dist/{runGemini-D7Lg9yCr.cjs → runGemini-DtKFXqf-.cjs} +89 -83
- package/dist/{runOpenClaw-C_lRY3Do.mjs → runOpenClaw-C8ilyLP9.mjs} +19 -19
- package/dist/{runOpenClaw-DCcQ0L2N.cjs → runOpenClaw-Cq29mryb.cjs} +20 -20
- package/dist/{sandbox-BSyXFVFp.mjs → sandbox-CbCutma4.mjs} +4 -4
- package/dist/{sandbox-dMwPTmjm.cjs → sandbox-gIj-EuF4.cjs} +4 -4
- package/dist/{selfCheck-DkzDDUsE.cjs → selfCheck-BTGBVthv.cjs} +39 -38
- package/dist/selfCheck-Smt-5Xiq.mjs +85 -0
- package/dist/{send-dxC0miIA.cjs → send-CZf5lLw_.cjs} +8 -8
- package/dist/{send-C-k9nsd3.mjs → send-YZRMQvMJ.mjs} +9 -9
- package/dist/{server-DxoTYNlw.mjs → server-BqwXRzFZ.mjs} +4 -4
- package/dist/{server-B-W6P7Qr.cjs → server-CknFq6xG.cjs} +6 -6
- package/dist/sessionExitLifecycle-CzkLIgNZ.mjs +142 -0
- package/dist/sessionExitLifecycle-DFltxXU8.cjs +148 -0
- package/dist/{sessionLock-DWX6BbiU.cjs → sessionLock-DRZUcKHT.cjs} +38 -5
- package/dist/{sessionLock-DBdtZGOL.mjs → sessionLock-nBXdJxJm.mjs} +36 -5
- package/dist/{sessionOps-BAnr7n8t.cjs → sessionOps-BrGiU9-s.cjs} +10 -5
- package/dist/{sessionOps-BVoXe12O.mjs → sessionOps-C58iDeD5.mjs} +11 -6
- package/dist/{sessionScanner-BtxoeluY.mjs → sessionScanner-Bm57LEXe.mjs} +3 -3
- package/dist/{sessionScanner-CDOYsEUD.cjs → sessionScanner-CaO8bLaG.cjs} +3 -3
- package/dist/{sessions-C3sZJkzI.mjs → sessions-BXyBHo8n.mjs} +40 -18
- package/dist/{sessions-hAitoN-m.cjs → sessions-uzqPCc37.cjs} +39 -16
- package/dist/{setupOfflineReconnection-_eD4cuUT.mjs → setupOfflineReconnection-1Qlek3wl.mjs} +2 -2
- package/dist/{setupOfflineReconnection-C2EeYTFH.cjs → setupOfflineReconnection-DvvVX3TB.cjs} +2 -2
- package/dist/{spawn-Bc9v7pIf.cjs → spawn-DBkodJEO.cjs} +49 -18
- package/dist/{spawn-qNrB2CD_.mjs → spawn-vn93PhYL.mjs} +49 -18
- package/dist/spawnAgents-CgPMWexP.mjs +79 -0
- package/dist/{spawnAgents-BVEaz35W.cjs → spawnAgents-DLNMlhWJ.cjs} +37 -1
- package/dist/{spawnHappyCLI-C2stUioM.mjs → spawnHappyCLI-BjFZc_7V.mjs} +1 -1
- package/dist/{spawnHappyCLI-fzUagkKV.cjs → spawnHappyCLI-DnUZv0X2.cjs} +2 -2
- package/dist/{specialCommands-BJ-nqY4s.cjs → specialCommands-BRufxlqe.cjs} +3 -3
- package/dist/{specialCommands-C6W-rVyh.mjs → specialCommands-D3ND9bdg.mjs} +3 -3
- package/dist/{startFileWatcher-Bqlqjt93.cjs → startFileWatcher-D9cYzZOq.cjs} +1 -1
- package/dist/{startFileWatcher-CR09Snmz.mjs → startFileWatcher-DXJ7yB5v.mjs} +1 -1
- package/dist/startupSessionCreate-kdr3m1uX.cjs +26 -0
- package/dist/startupSessionCreate-uZ6BM0ty.mjs +24 -0
- package/dist/{streamRelay-CJoMk_d2.mjs → streamRelay-DnMCMMfV.mjs} +1 -1
- package/dist/{streamRelay-9kBPpbvU.cjs → streamRelay-Dy6amlzx.cjs} +1 -1
- package/dist/{sync-Dhmtk66S.cjs → sync-Bn-idAoy.cjs} +1 -1
- package/dist/{sync-DbW07iQS.mjs → sync-BvVhDO40.mjs} +1 -1
- package/dist/{systemPrompt-CQcuUmVp.mjs → systemPrompt-CIZcJuJF.mjs} +4 -3
- package/dist/{systemPrompt-3PYi3EUY.cjs → systemPrompt-DlyEk35T.cjs} +4 -3
- package/dist/{teams-DpxLcUU_.cjs → teams-BLeRpDxv.cjs} +8 -8
- package/dist/{teams-CwF4Z2fA.mjs → teams-DLY3B5yi.mjs} +8 -8
- package/dist/{time-A6zR3Iy6.cjs → time-Cjv0zxQO.cjs} +1 -1
- package/dist/{time-BuGWTVP6.mjs → time-D3ETL7Jb.mjs} +1 -1
- package/dist/{titleGenerator-D26gvNaS.cjs → titleGenerator-Cgp5ihFb.cjs} +10 -9
- package/dist/{titleGenerator-BGEzNWC9.mjs → titleGenerator-Uzbd4utr.mjs} +9 -8
- package/dist/{todo-DrZc76H5.mjs → todo-C9Ga-oEM.mjs} +6 -6
- package/dist/{todo-73g3NCIO.cjs → todo-pOMcEECE.cjs} +6 -6
- package/dist/{tools-CxJp4T1T.cjs → tools-BL7Byl_x.cjs} +1 -1
- package/dist/{tools-BtsrQnNS.mjs → tools-Cho7iIWf.mjs} +1 -1
- package/dist/{uninstall-DWNYvewQ.cjs → uninstall-CbayEVoV.cjs} +6 -6
- package/dist/{uninstall-DOb2mTwV.mjs → uninstall-CvZHVY9C.mjs} +3 -3
- package/dist/webPanels-B2_C2-3g.mjs +49 -0
- package/dist/webPanels-FCgFKvVe.cjs +53 -0
- package/package.json +8 -7
- package/dist/machineMetadata-B1H9gNbN.mjs +0 -39
- package/dist/machineMetadata-DcUupMje.cjs +0 -42
- package/dist/messageBuffer-BWlGgR3A.mjs +0 -71
- package/dist/messageBuffer-fJMH6uY8.cjs +0 -73
- package/dist/projectPath-ChLhdOyt.cjs +0 -13
- package/dist/selfCheck-CF7XGJPb.mjs +0 -84
- package/dist/sessionModeFile-ByLbXTbg.mjs +0 -32
- package/dist/sessionModeFile-CLLdidiJ.cjs +0 -36
- package/dist/spawnAgents-Bw6j4tqz.mjs +0 -45
|
@@ -3,6 +3,7 @@ import { z as z$1 } from 'zod';
|
|
|
3
3
|
import { isCuid, createId } from '@paralleldrive/cuid2';
|
|
4
4
|
|
|
5
5
|
const CODEX_STEER_CAPABILITY = "codex-steer-v1";
|
|
6
|
+
const PI_STEER_CAPABILITY = "pi-steer-v1";
|
|
6
7
|
const sessionRoleSchema = z.enum(["user", "agent"]);
|
|
7
8
|
const sessionTextEventSchema = z.object({
|
|
8
9
|
t: z.literal("text"),
|
|
@@ -426,7 +427,7 @@ z$1.object({
|
|
|
426
427
|
events: z$1.array(ConnectionDiagnosticEventSchema).min(1).max(32)
|
|
427
428
|
}).strict();
|
|
428
429
|
const TeamPermissionModeSchema = z$1.enum(["default", "bypassPermissions"]);
|
|
429
|
-
const id$
|
|
430
|
+
const id$2 = z$1.string().min(1).max(128);
|
|
430
431
|
const text$1 = z$1.string().min(1).max(32e3);
|
|
431
432
|
const TeamAssistantSchema = z$1.enum(["claude", "codex", "pi-acp"]);
|
|
432
433
|
const TeamModelSchema = z$1.string().trim().min(1).max(256);
|
|
@@ -437,28 +438,30 @@ const TeamActionSchema = z$1.discriminatedUnion("type", [
|
|
|
437
438
|
z$1.object({ type: z$1.literal("start"), launch: TeamLaunchSchema }),
|
|
438
439
|
z$1.object({ type: z$1.literal("set-defaults"), defaults: TeamDefaultsSchema }),
|
|
439
440
|
z$1.object({ type: z$1.literal("set-permission-mode"), permissionMode: TeamPermissionModeSchema }),
|
|
440
|
-
z$1.object({ type: z$1.literal("schedule-create"), name: id$
|
|
441
|
-
z$1.object({ type: z$1.literal("schedule-pause"), scheduleId: id$
|
|
442
|
-
z$1.object({ type: z$1.literal("schedule-resume"), scheduleId: id$
|
|
443
|
-
z$1.object({ type: z$1.literal("schedule-cancel"), scheduleId: id$
|
|
444
|
-
z$1.object({ type: z$1.literal("reconcile-operation"), operationId: id$
|
|
445
|
-
|
|
446
|
-
z$1.object({ type: z$1.literal("
|
|
447
|
-
z$1.object({ type: z$1.literal("
|
|
448
|
-
z$1.object({ type: z$1.literal("
|
|
449
|
-
z$1.object({ type: z$1.literal("
|
|
450
|
-
z$1.object({ type: z$1.literal("
|
|
451
|
-
z$1.object({ type: z$1.literal("
|
|
452
|
-
z$1.object({ type: z$1.literal("
|
|
453
|
-
z$1.object({ type: z$1.literal("
|
|
454
|
-
z$1.object({ type: z$1.literal("
|
|
455
|
-
z$1.object({ type: z$1.literal("
|
|
456
|
-
z$1.object({ type: z$1.literal("
|
|
457
|
-
z$1.object({ type: z$1.literal("
|
|
441
|
+
z$1.object({ type: z$1.literal("schedule-create"), name: id$2, botId: id$2, body: text$1, runAt: z$1.number().int().positive().max(864e13), intervalMs: z$1.number().int().min(6e4).max(366 * 864e5).optional() }),
|
|
442
|
+
z$1.object({ type: z$1.literal("schedule-pause"), scheduleId: id$2, version: z$1.number().int().positive() }),
|
|
443
|
+
z$1.object({ type: z$1.literal("schedule-resume"), scheduleId: id$2, version: z$1.number().int().positive() }),
|
|
444
|
+
z$1.object({ type: z$1.literal("schedule-cancel"), scheduleId: id$2, version: z$1.number().int().positive() }),
|
|
445
|
+
z$1.object({ type: z$1.literal("reconcile-operation"), operationId: id$2, claimId: id$2, note: z$1.string().trim().min(1).max(4e3) }),
|
|
446
|
+
// B-689: owner asks the execution computer to run a failed/uncertain operation again.
|
|
447
|
+
z$1.object({ type: z$1.literal("retry-operation"), operationId: id$2, claimId: id$2 }),
|
|
448
|
+
z$1.object({ type: z$1.literal("join"), name: id$2, sessionId: id$2, botId: id$2.optional() }),
|
|
449
|
+
z$1.object({ type: z$1.literal("delegate"), goal: text$1, acceptance: z$1.array(text$1).min(1).max(32), parentTaskId: id$2.optional(), assigneeBotId: id$2.optional(), botName: id$2.optional(), directory: z$1.string().min(1).max(4096).optional(), assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional() }),
|
|
450
|
+
z$1.object({ type: z$1.literal("message"), taskId: id$2, body: text$1, recipientBotId: id$2.optional() }),
|
|
451
|
+
z$1.object({ type: z$1.literal("submit"), taskId: id$2, attemptId: id$2, goalVersion: z$1.number().int().positive(), result: text$1 }),
|
|
452
|
+
z$1.object({ type: z$1.literal("accept"), taskId: id$2, attemptId: id$2, goalVersion: z$1.number().int().positive() }),
|
|
453
|
+
z$1.object({ type: z$1.literal("return"), taskId: id$2, attemptId: id$2, goalVersion: z$1.number().int().positive(), reason: text$1 }),
|
|
454
|
+
z$1.object({ type: z$1.literal("cancel"), taskId: id$2, attemptId: id$2, goalVersion: z$1.number().int().positive(), reason: text$1 }),
|
|
455
|
+
z$1.object({ type: z$1.literal("handoff"), taskId: id$2, attemptId: id$2, goalVersion: z$1.number().int().positive(), assigneeBotId: id$2 }),
|
|
456
|
+
z$1.object({ type: z$1.literal("claim-operation"), operationId: id$2, machineId: id$2, teamLaunchVersion: z$1.literal(1).optional() }),
|
|
457
|
+
z$1.object({ type: z$1.literal("complete-operation"), operationId: id$2, machineId: id$2, claimId: id$2, sessionId: id$2.optional(), workingDirectory: z$1.string().min(1).max(4096).optional() }),
|
|
458
|
+
z$1.object({ type: z$1.literal("fail-operation"), operationId: id$2, machineId: id$2, claimId: id$2, error: text$1, unknown: z$1.boolean().optional() }),
|
|
459
|
+
z$1.object({ type: z$1.literal("session-event"), sessionId: id$2, event: z$1.enum(["idle", "blocked", "exited"]) }),
|
|
460
|
+
z$1.object({ type: z$1.literal("message-delivered"), messageId: id$2, recipientBotId: id$2, generation: z$1.number().int().positive(), sessionId: id$2 })
|
|
458
461
|
]);
|
|
459
|
-
z$1.object({ requestId: id$
|
|
460
|
-
z$1.object({ name: id$
|
|
461
|
-
const id = z$1.string().min(1).max(128);
|
|
462
|
+
z$1.object({ requestId: id$2, action: TeamActionSchema });
|
|
463
|
+
z$1.object({ name: id$2, machineId: id$2, requestId: id$2.optional(), launch: TeamLaunchSchema.optional() });
|
|
464
|
+
const id$1 = z$1.string().min(1).max(128);
|
|
462
465
|
const text = z$1.string().min(1).max(32e3);
|
|
463
466
|
const AUTOMATION_NAME_PATTERN = /^[a-z0-9][a-z0-9-_.]{0,63}$/;
|
|
464
467
|
const AutomationNameSchema = z$1.string().regex(AUTOMATION_NAME_PATTERN, "automation name must match [a-z0-9][a-z0-9-_.]{0,63}");
|
|
@@ -497,7 +500,7 @@ const AutomationActionSchema = z$1.discriminatedUnion("kind", [
|
|
|
497
500
|
worktree: z$1.boolean().optional(),
|
|
498
501
|
sticky: AutomationStickySchema.optional()
|
|
499
502
|
}),
|
|
500
|
-
z$1.object({ kind: z$1.literal("send"), sessionId: id, prompt: text }),
|
|
503
|
+
z$1.object({ kind: z$1.literal("send"), sessionId: id$1, prompt: text }),
|
|
501
504
|
z$1.object({
|
|
502
505
|
kind: z$1.literal("script"),
|
|
503
506
|
command: z$1.array(z$1.string().min(1).max(4096)).min(1).max(256),
|
|
@@ -523,41 +526,45 @@ const maxRuntimeMs = z$1.number().int().min(6e4).max(7 * 864e5);
|
|
|
523
526
|
z$1.object({
|
|
524
527
|
name: AutomationNameSchema,
|
|
525
528
|
description: z$1.string().max(4e3).nullable().optional(),
|
|
526
|
-
machineId: id,
|
|
529
|
+
machineId: id$1,
|
|
527
530
|
trigger: AutomationTriggerSchema,
|
|
528
531
|
action: AutomationActionSchema,
|
|
529
532
|
concurrency: AutomationConcurrencySchema.optional(),
|
|
530
533
|
maxRuntimeMs: maxRuntimeMs.optional(),
|
|
531
534
|
status: z$1.enum(AUTOMATION_STATUSES).optional(),
|
|
532
535
|
/** B-548. Older servers strip it silently — clients must check the response echoes `precheck`. */
|
|
533
|
-
precheck: AutomationPrecheckSchema.nullable().optional()
|
|
536
|
+
precheck: AutomationPrecheckSchema.nullable().optional(),
|
|
537
|
+
/** B-644: sessions this automation spawns join this project (quiet variant). Older servers strip it — check the echo. */
|
|
538
|
+
projectId: id$1.nullable().optional()
|
|
534
539
|
});
|
|
535
540
|
z$1.object({
|
|
536
541
|
version: z$1.number().int().positive(),
|
|
537
542
|
name: AutomationNameSchema.optional(),
|
|
538
543
|
description: z$1.string().max(4e3).nullable().optional(),
|
|
539
|
-
machineId: id.optional(),
|
|
544
|
+
machineId: id$1.optional(),
|
|
540
545
|
trigger: AutomationTriggerSchema.optional(),
|
|
541
546
|
action: AutomationActionSchema.optional(),
|
|
542
547
|
concurrency: AutomationConcurrencySchema.optional(),
|
|
543
548
|
maxRuntimeMs: maxRuntimeMs.optional(),
|
|
544
549
|
/** B-548: omitted keeps the current precheck, `null` removes it. Changing `action` alone keeps it too. */
|
|
545
|
-
precheck: AutomationPrecheckSchema.nullable().optional()
|
|
550
|
+
precheck: AutomationPrecheckSchema.nullable().optional(),
|
|
551
|
+
/** B-644: omitted keeps the current project, `null` detaches. */
|
|
552
|
+
projectId: id$1.nullable().optional()
|
|
546
553
|
});
|
|
547
554
|
const payload = z$1.string().max(AUTOMATION_PAYLOAD_MAX_BYTES).refine((v) => new TextEncoder().encode(v).length <= AUTOMATION_PAYLOAD_MAX_BYTES, "payload exceeds 64KB");
|
|
548
555
|
z$1.object({ payload: payload.optional(), dedupeKey: z$1.string().min(1).max(256).optional() });
|
|
549
556
|
z$1.object({ payload: payload.optional() });
|
|
550
557
|
z$1.object({
|
|
551
|
-
machineId: id,
|
|
558
|
+
machineId: id$1,
|
|
552
559
|
limit: z$1.number().int().min(1).max(AUTOMATION_CLAIM_MAX_RUNS).optional(),
|
|
553
560
|
leaseMs: z$1.number().int().min(5e3).max(36e5).optional(),
|
|
554
561
|
/** B-548: what this daemon can execute (e.g. `precheck`). Older daemons send nothing; older servers strip it. */
|
|
555
562
|
capabilities: z$1.array(z$1.string().min(1).max(64)).max(32).optional()
|
|
556
563
|
});
|
|
557
564
|
z$1.object({
|
|
558
|
-
claimId: id.optional(),
|
|
565
|
+
claimId: id$1.optional(),
|
|
559
566
|
status: z$1.enum(["running", "done", "failed", "skipped"]).optional(),
|
|
560
|
-
sessionId: id.nullable().optional(),
|
|
567
|
+
sessionId: id$1.nullable().optional(),
|
|
561
568
|
stickyKey: z$1.string().min(1).max(512).optional(),
|
|
562
569
|
summary: z$1.string().max(AUTOMATION_SUMMARY_MAX_CHARS).nullable().optional(),
|
|
563
570
|
error: z$1.string().max(AUTOMATION_SUMMARY_MAX_CHARS).nullable().optional(),
|
|
@@ -567,16 +574,130 @@ z$1.object({
|
|
|
567
574
|
leaseMs: z$1.number().int().min(5e3).max(36e5).optional()
|
|
568
575
|
});
|
|
569
576
|
z$1.object({ by: z$1.string().min(1).max(64).optional() });
|
|
570
|
-
z$1.object({ key: z$1.string().min(1).max(512), sessionId: id });
|
|
577
|
+
z$1.object({ key: z$1.string().min(1).max(512), sessionId: id$1 });
|
|
571
578
|
z$1.object({ key: z$1.string().min(1).max(512) });
|
|
572
579
|
z$1.object({
|
|
573
|
-
automationId: id.optional(),
|
|
580
|
+
automationId: id$1.optional(),
|
|
574
581
|
name: AutomationNameSchema.optional(),
|
|
575
582
|
status: z$1.string().min(1).max(64).optional(),
|
|
576
583
|
attention: z$1.enum(["1", "true", "0", "false"]).optional(),
|
|
577
584
|
limit: z$1.coerce.number().int().min(1).max(200).optional()
|
|
578
585
|
});
|
|
579
|
-
z$1.object({ machineId: id.optional() });
|
|
586
|
+
z$1.object({ machineId: id$1.optional() });
|
|
587
|
+
const PROJECT_SESSION_CAPABILITY = "project-v1";
|
|
588
|
+
const PROJECT_LIMITS = {
|
|
589
|
+
nameChars: 120,
|
|
590
|
+
goalChars: 2e3,
|
|
591
|
+
instructionsBytes: 8 * 1024,
|
|
592
|
+
folders: 20,
|
|
593
|
+
logTitleChars: 200,
|
|
594
|
+
logBodyBytes: 4 * 1024,
|
|
595
|
+
messageBytes: 64 * 1024,
|
|
596
|
+
presenceBatch: 200,
|
|
597
|
+
memberBatch: 200};
|
|
598
|
+
const id = z$1.string().min(1).max(128);
|
|
599
|
+
const utf8Bytes = (value) => new TextEncoder().encode(value).length;
|
|
600
|
+
const boundedText = (maxBytes) => z$1.string().max(maxBytes).refine((v) => utf8Bytes(v) <= maxBytes, `exceeds ${maxBytes} bytes`);
|
|
601
|
+
const ProjectFolderSchema = z$1.object({
|
|
602
|
+
machineId: id,
|
|
603
|
+
path: z$1.string().min(1).max(4096),
|
|
604
|
+
primary: z$1.boolean().optional()
|
|
605
|
+
});
|
|
606
|
+
const ProjectDefaultsSchema = z$1.object({
|
|
607
|
+
agent: z$1.string().max(64).nullable().optional(),
|
|
608
|
+
model: z$1.string().max(256).nullable().optional(),
|
|
609
|
+
permissionMode: z$1.string().max(64).nullable().optional(),
|
|
610
|
+
worktree: z$1.boolean().nullable().optional()
|
|
611
|
+
});
|
|
612
|
+
const PROJECT_LOG_KINDS = ["decision", "finding", "handoff"];
|
|
613
|
+
const ProjectLogKindSchema = z$1.enum(PROJECT_LOG_KINDS);
|
|
614
|
+
const ProjectMemberViaInputSchema = z$1.enum(["explicit", "lineage", "suggested-accepted", "automation"]);
|
|
615
|
+
z$1.object({
|
|
616
|
+
name: z$1.string().trim().min(1).max(PROJECT_LIMITS.nameChars),
|
|
617
|
+
goal: z$1.string().max(PROJECT_LIMITS.goalChars).nullable().optional(),
|
|
618
|
+
instructions: boundedText(PROJECT_LIMITS.instructionsBytes).optional(),
|
|
619
|
+
folders: z$1.array(ProjectFolderSchema).max(PROJECT_LIMITS.folders).optional(),
|
|
620
|
+
defaults: ProjectDefaultsSchema.optional(),
|
|
621
|
+
/** Idempotency: the same requestId returns the project it created. */
|
|
622
|
+
requestId: id.optional(),
|
|
623
|
+
/** Optional initial members (e.g. "设为项目" moves a folder's sessions in one step). */
|
|
624
|
+
sessionIds: z$1.array(id).max(PROJECT_LIMITS.memberBatch).optional()
|
|
625
|
+
});
|
|
626
|
+
z$1.object({
|
|
627
|
+
name: z$1.string().trim().min(1).max(PROJECT_LIMITS.nameChars).optional(),
|
|
628
|
+
goal: z$1.string().max(PROJECT_LIMITS.goalChars).nullable().optional(),
|
|
629
|
+
folders: z$1.array(ProjectFolderSchema).max(PROJECT_LIMITS.folders).optional(),
|
|
630
|
+
defaults: ProjectDefaultsSchema.optional(),
|
|
631
|
+
archived: z$1.boolean().optional()
|
|
632
|
+
});
|
|
633
|
+
z$1.object({
|
|
634
|
+
instructions: boundedText(PROJECT_LIMITS.instructionsBytes),
|
|
635
|
+
ifVersion: z$1.number().int().min(0),
|
|
636
|
+
/** One-line summary shown in the next-turn digest ("instructions now v8 — …"). */
|
|
637
|
+
summary: z$1.string().max(200).optional()
|
|
638
|
+
});
|
|
639
|
+
z$1.object({
|
|
640
|
+
sessionIds: z$1.array(id).min(1).max(PROJECT_LIMITS.memberBatch),
|
|
641
|
+
via: ProjectMemberViaInputSchema.optional()
|
|
642
|
+
});
|
|
643
|
+
z$1.object({
|
|
644
|
+
kind: ProjectLogKindSchema,
|
|
645
|
+
title: z$1.string().trim().min(1).max(PROJECT_LIMITS.logTitleChars),
|
|
646
|
+
body: boundedText(PROJECT_LIMITS.logBodyBytes).optional(),
|
|
647
|
+
/** Entry id (or `#seq`) this entry replaces. */
|
|
648
|
+
supersedes: z$1.string().min(1).max(128).optional(),
|
|
649
|
+
/** Stamped by the wrapper (the agent cannot fill it). Absent = written by the user. */
|
|
650
|
+
authorSessionId: id.optional()
|
|
651
|
+
});
|
|
652
|
+
z$1.object({
|
|
653
|
+
/** When set, only entries this session authored may be revoked. Absent = the owner. */
|
|
654
|
+
bySessionId: id.optional()
|
|
655
|
+
});
|
|
656
|
+
z$1.object({ teamId: id });
|
|
657
|
+
const ProjectPresenceEntrySchema = z$1.object({
|
|
658
|
+
sessionId: id,
|
|
659
|
+
title: z$1.string().max(200).nullable().optional(),
|
|
660
|
+
agent: z$1.string().max(64).nullable().optional(),
|
|
661
|
+
machine: z$1.string().max(200).nullable().optional(),
|
|
662
|
+
branch: z$1.string().max(200).nullable().optional(),
|
|
663
|
+
state: z$1.string().max(32).nullable().optional(),
|
|
664
|
+
doing: z$1.string().max(200).nullable().optional(),
|
|
665
|
+
injectedInstructionsVersion: z$1.number().int().min(0).nullable().optional(),
|
|
666
|
+
/** Session capabilities the wrapper advertised (e.g. `project-v1`); drives the "未注入" badge. */
|
|
667
|
+
capabilities: z$1.array(z$1.string().max(64)).max(32).optional()
|
|
668
|
+
});
|
|
669
|
+
z$1.object({
|
|
670
|
+
machineId: id,
|
|
671
|
+
sessions: z$1.array(ProjectPresenceEntrySchema).max(PROJECT_LIMITS.presenceBatch),
|
|
672
|
+
/** Sessions of this machine that stopped; their presence rows are marked `offline`. */
|
|
673
|
+
gone: z$1.array(id).max(PROJECT_LIMITS.presenceBatch).optional()
|
|
674
|
+
});
|
|
675
|
+
z$1.object({
|
|
676
|
+
fromSessionId: id,
|
|
677
|
+
toSessionId: id,
|
|
678
|
+
body: boundedText(PROJECT_LIMITS.messageBytes).pipe(z$1.string().min(1))
|
|
679
|
+
});
|
|
680
|
+
z$1.object({
|
|
681
|
+
sessionId: id,
|
|
682
|
+
messageIds: z$1.array(id).min(1).max(100)
|
|
683
|
+
});
|
|
684
|
+
z$1.object({
|
|
685
|
+
full: z$1.enum(["0", "1", "true", "false"]).optional(),
|
|
686
|
+
section: z$1.enum(["instructions", "log", "sessions", "messages"]).optional(),
|
|
687
|
+
/** Read without moving the "since last read" cursor (used by the first-turn prefix). */
|
|
688
|
+
peek: z$1.enum(["0", "1", "true", "false"]).optional()
|
|
689
|
+
});
|
|
690
|
+
z$1.object({
|
|
691
|
+
since: z$1.coerce.number().int().min(0)
|
|
692
|
+
});
|
|
693
|
+
const PROJECT_UX_DISPATCH_ENTRIES = ["quick", "dialog", "project", "sidebar_group", "move", "other"];
|
|
694
|
+
const ProjectUxEventSchema = z$1.discriminatedUnion("kind", [
|
|
695
|
+
/** A session was created (or moved) — where from, and whether it landed in a project. */
|
|
696
|
+
z$1.object({ kind: z$1.literal("dispatch"), entry: z$1.enum(PROJECT_UX_DISPATCH_ENTRIES), inProject: z$1.boolean() }),
|
|
697
|
+
/** The owner opened a session that was waiting for them: how long it had been waiting. */
|
|
698
|
+
z$1.object({ kind: z$1.literal("attention_open"), latencyMs: z$1.number().int().min(0).max(7 * 864e5), inProject: z$1.boolean() })
|
|
699
|
+
]);
|
|
700
|
+
z$1.object({ events: z$1.array(ProjectUxEventSchema).min(1).max(20) });
|
|
580
701
|
const BUILTIN_TODO_PREFIX = "vh.todo.v1.";
|
|
581
702
|
const TITLE_MAX_LENGTH = 500;
|
|
582
703
|
const NOTE_MAX_LENGTH = 8e3;
|
|
@@ -984,4 +1105,4 @@ const ServerMigrateNoticeSchema = z$1.object({
|
|
|
984
1105
|
issuedAt: z$1.number().int().positive()
|
|
985
1106
|
});
|
|
986
1107
|
|
|
987
|
-
export { AUTOMATION_NAME_PATTERN as A, BUILTIN_TODO_SKILL as B, ContextUsageSchema as C,
|
|
1108
|
+
export { AUTOMATION_NAME_PATTERN as A, BUILTIN_TODO_SKILL as B, ContextUsageSchema as C, AUTOMATION_CLAIM_MAX_RUNS as D, AUTOMATION_DAEMON_CAPABILITY_PRECHECK as E, AUTOMATION_DEFAULT_LEASE_MS as F, PROMPT_QUEUE_CAPABILITY as P, ReleaseDrainNoticeSchema as R, STREAM_DELTA_MAX_CHARS as S, PROJECT_SESSION_CAPABILITY as a, AUTOMATION_PRECHECK_MAX_TIMEOUT_MS as b, AutomationPrecheckSchema as c, createEnvelope as d, createBuiltinTodoClient as e, BUILTIN_TODO_DISCOVERY as f, getAgentCodeDefaults as g, isClaudeOpus55Model as h, isAutomationRunTerminal as i, supportsClaudeOpus55 as j, AutomationNameSchema as k, AutomationConcurrencySchema as l, AutomationActionSchema as m, normalizeAgentKey as n, AutomationTriggerSchema as o, AgentVersionsSchema as p, PI_STEER_CAPABILITY as q, AGENT_VERSION_SOURCES as r, streamKeyOf as s, RelayAssignmentResponseSchema as t, CODEX_STEER_CAPABILITY as u, RelayCandidatesResponseSchema as v, ServerMigrateNoticeSchema as w, AUTOMATION_SUMMARY_MAX_CHARS as x, AUTOMATION_PRECHECK_OUTPUT_MAX_CHARS as y, AUTOMATION_PRECHECK_DEFAULT_TIMEOUT_MS as z };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { q as query } from './query-ywZbQUzR.mjs';
|
|
2
|
+
export { AbortError } from '@anthropic-ai/claude-agent-sdk';
|
|
3
|
+
import './smallFastModel-BLNgMrwR.mjs';
|
|
4
|
+
import './logger-BUngm5Xg.mjs';
|
|
5
|
+
import 'chalk';
|
|
6
|
+
import 'node:util';
|
|
7
|
+
import './configuration-PxzEJumr.mjs';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:os';
|
|
10
|
+
import 'node:path';
|
|
11
|
+
import './package-7Ld1YMhh.mjs';
|
|
12
|
+
import 'node:fs/promises';
|
|
13
|
+
import './processTreeSnapshot-CuLJDNC-.mjs';
|
|
14
|
+
import 'node:child_process';
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export { query };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var query = require('./query-BETKBrnz.cjs');
|
|
4
|
+
var claudeAgentSdk = require('@anthropic-ai/claude-agent-sdk');
|
|
5
|
+
require('./smallFastModel-D_uxGMo3.cjs');
|
|
6
|
+
require('./logger-CphW5nUE.cjs');
|
|
7
|
+
require('chalk');
|
|
8
|
+
require('node:util');
|
|
9
|
+
require('./configuration-CYO-kPOS.cjs');
|
|
10
|
+
require('node:fs');
|
|
11
|
+
require('node:os');
|
|
12
|
+
require('node:path');
|
|
13
|
+
require('./package-KhLqBDX9.cjs');
|
|
14
|
+
require('node:fs/promises');
|
|
15
|
+
require('./processTreeSnapshot-mDbnuojn.cjs');
|
|
16
|
+
require('node:child_process');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.query = query.query;
|
|
21
|
+
Object.defineProperty(exports, "AbortError", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return claudeAgentSdk.AbortError; }
|
|
24
|
+
});
|
|
@@ -23,6 +23,7 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
|
|
24
24
|
|
|
25
25
|
const CODEX_STEER_CAPABILITY = "codex-steer-v1";
|
|
26
|
+
const PI_STEER_CAPABILITY = "pi-steer-v1";
|
|
26
27
|
const sessionRoleSchema = z__namespace.enum(["user", "agent"]);
|
|
27
28
|
const sessionTextEventSchema = z__namespace.object({
|
|
28
29
|
t: z__namespace.literal("text"),
|
|
@@ -446,7 +447,7 @@ z.z.object({
|
|
|
446
447
|
events: z.z.array(ConnectionDiagnosticEventSchema).min(1).max(32)
|
|
447
448
|
}).strict();
|
|
448
449
|
const TeamPermissionModeSchema = z.z.enum(["default", "bypassPermissions"]);
|
|
449
|
-
const id$
|
|
450
|
+
const id$2 = z.z.string().min(1).max(128);
|
|
450
451
|
const text$1 = z.z.string().min(1).max(32e3);
|
|
451
452
|
const TeamAssistantSchema = z.z.enum(["claude", "codex", "pi-acp"]);
|
|
452
453
|
const TeamModelSchema = z.z.string().trim().min(1).max(256);
|
|
@@ -457,28 +458,30 @@ const TeamActionSchema = z.z.discriminatedUnion("type", [
|
|
|
457
458
|
z.z.object({ type: z.z.literal("start"), launch: TeamLaunchSchema }),
|
|
458
459
|
z.z.object({ type: z.z.literal("set-defaults"), defaults: TeamDefaultsSchema }),
|
|
459
460
|
z.z.object({ type: z.z.literal("set-permission-mode"), permissionMode: TeamPermissionModeSchema }),
|
|
460
|
-
z.z.object({ type: z.z.literal("schedule-create"), name: id$
|
|
461
|
-
z.z.object({ type: z.z.literal("schedule-pause"), scheduleId: id$
|
|
462
|
-
z.z.object({ type: z.z.literal("schedule-resume"), scheduleId: id$
|
|
463
|
-
z.z.object({ type: z.z.literal("schedule-cancel"), scheduleId: id$
|
|
464
|
-
z.z.object({ type: z.z.literal("reconcile-operation"), operationId: id$
|
|
465
|
-
|
|
466
|
-
z.z.object({ type: z.z.literal("
|
|
467
|
-
z.z.object({ type: z.z.literal("
|
|
468
|
-
z.z.object({ type: z.z.literal("
|
|
469
|
-
z.z.object({ type: z.z.literal("
|
|
470
|
-
z.z.object({ type: z.z.literal("
|
|
471
|
-
z.z.object({ type: z.z.literal("
|
|
472
|
-
z.z.object({ type: z.z.literal("
|
|
473
|
-
z.z.object({ type: z.z.literal("
|
|
474
|
-
z.z.object({ type: z.z.literal("
|
|
475
|
-
z.z.object({ type: z.z.literal("
|
|
476
|
-
z.z.object({ type: z.z.literal("
|
|
477
|
-
z.z.object({ type: z.z.literal("
|
|
461
|
+
z.z.object({ type: z.z.literal("schedule-create"), name: id$2, botId: id$2, body: text$1, runAt: z.z.number().int().positive().max(864e13), intervalMs: z.z.number().int().min(6e4).max(366 * 864e5).optional() }),
|
|
462
|
+
z.z.object({ type: z.z.literal("schedule-pause"), scheduleId: id$2, version: z.z.number().int().positive() }),
|
|
463
|
+
z.z.object({ type: z.z.literal("schedule-resume"), scheduleId: id$2, version: z.z.number().int().positive() }),
|
|
464
|
+
z.z.object({ type: z.z.literal("schedule-cancel"), scheduleId: id$2, version: z.z.number().int().positive() }),
|
|
465
|
+
z.z.object({ type: z.z.literal("reconcile-operation"), operationId: id$2, claimId: id$2, note: z.z.string().trim().min(1).max(4e3) }),
|
|
466
|
+
// B-689: owner asks the execution computer to run a failed/uncertain operation again.
|
|
467
|
+
z.z.object({ type: z.z.literal("retry-operation"), operationId: id$2, claimId: id$2 }),
|
|
468
|
+
z.z.object({ type: z.z.literal("join"), name: id$2, sessionId: id$2, botId: id$2.optional() }),
|
|
469
|
+
z.z.object({ type: z.z.literal("delegate"), goal: text$1, acceptance: z.z.array(text$1).min(1).max(32), parentTaskId: id$2.optional(), assigneeBotId: id$2.optional(), botName: id$2.optional(), directory: z.z.string().min(1).max(4096).optional(), assistant: TeamAssistantSchema.optional(), model: TeamModelSchema.optional() }),
|
|
470
|
+
z.z.object({ type: z.z.literal("message"), taskId: id$2, body: text$1, recipientBotId: id$2.optional() }),
|
|
471
|
+
z.z.object({ type: z.z.literal("submit"), taskId: id$2, attemptId: id$2, goalVersion: z.z.number().int().positive(), result: text$1 }),
|
|
472
|
+
z.z.object({ type: z.z.literal("accept"), taskId: id$2, attemptId: id$2, goalVersion: z.z.number().int().positive() }),
|
|
473
|
+
z.z.object({ type: z.z.literal("return"), taskId: id$2, attemptId: id$2, goalVersion: z.z.number().int().positive(), reason: text$1 }),
|
|
474
|
+
z.z.object({ type: z.z.literal("cancel"), taskId: id$2, attemptId: id$2, goalVersion: z.z.number().int().positive(), reason: text$1 }),
|
|
475
|
+
z.z.object({ type: z.z.literal("handoff"), taskId: id$2, attemptId: id$2, goalVersion: z.z.number().int().positive(), assigneeBotId: id$2 }),
|
|
476
|
+
z.z.object({ type: z.z.literal("claim-operation"), operationId: id$2, machineId: id$2, teamLaunchVersion: z.z.literal(1).optional() }),
|
|
477
|
+
z.z.object({ type: z.z.literal("complete-operation"), operationId: id$2, machineId: id$2, claimId: id$2, sessionId: id$2.optional(), workingDirectory: z.z.string().min(1).max(4096).optional() }),
|
|
478
|
+
z.z.object({ type: z.z.literal("fail-operation"), operationId: id$2, machineId: id$2, claimId: id$2, error: text$1, unknown: z.z.boolean().optional() }),
|
|
479
|
+
z.z.object({ type: z.z.literal("session-event"), sessionId: id$2, event: z.z.enum(["idle", "blocked", "exited"]) }),
|
|
480
|
+
z.z.object({ type: z.z.literal("message-delivered"), messageId: id$2, recipientBotId: id$2, generation: z.z.number().int().positive(), sessionId: id$2 })
|
|
478
481
|
]);
|
|
479
|
-
z.z.object({ requestId: id$
|
|
480
|
-
z.z.object({ name: id$
|
|
481
|
-
const id = z.z.string().min(1).max(128);
|
|
482
|
+
z.z.object({ requestId: id$2, action: TeamActionSchema });
|
|
483
|
+
z.z.object({ name: id$2, machineId: id$2, requestId: id$2.optional(), launch: TeamLaunchSchema.optional() });
|
|
484
|
+
const id$1 = z.z.string().min(1).max(128);
|
|
482
485
|
const text = z.z.string().min(1).max(32e3);
|
|
483
486
|
const AUTOMATION_NAME_PATTERN = /^[a-z0-9][a-z0-9-_.]{0,63}$/;
|
|
484
487
|
const AutomationNameSchema = z.z.string().regex(AUTOMATION_NAME_PATTERN, "automation name must match [a-z0-9][a-z0-9-_.]{0,63}");
|
|
@@ -517,7 +520,7 @@ const AutomationActionSchema = z.z.discriminatedUnion("kind", [
|
|
|
517
520
|
worktree: z.z.boolean().optional(),
|
|
518
521
|
sticky: AutomationStickySchema.optional()
|
|
519
522
|
}),
|
|
520
|
-
z.z.object({ kind: z.z.literal("send"), sessionId: id, prompt: text }),
|
|
523
|
+
z.z.object({ kind: z.z.literal("send"), sessionId: id$1, prompt: text }),
|
|
521
524
|
z.z.object({
|
|
522
525
|
kind: z.z.literal("script"),
|
|
523
526
|
command: z.z.array(z.z.string().min(1).max(4096)).min(1).max(256),
|
|
@@ -543,41 +546,45 @@ const maxRuntimeMs = z.z.number().int().min(6e4).max(7 * 864e5);
|
|
|
543
546
|
z.z.object({
|
|
544
547
|
name: AutomationNameSchema,
|
|
545
548
|
description: z.z.string().max(4e3).nullable().optional(),
|
|
546
|
-
machineId: id,
|
|
549
|
+
machineId: id$1,
|
|
547
550
|
trigger: AutomationTriggerSchema,
|
|
548
551
|
action: AutomationActionSchema,
|
|
549
552
|
concurrency: AutomationConcurrencySchema.optional(),
|
|
550
553
|
maxRuntimeMs: maxRuntimeMs.optional(),
|
|
551
554
|
status: z.z.enum(AUTOMATION_STATUSES).optional(),
|
|
552
555
|
/** B-548. Older servers strip it silently — clients must check the response echoes `precheck`. */
|
|
553
|
-
precheck: AutomationPrecheckSchema.nullable().optional()
|
|
556
|
+
precheck: AutomationPrecheckSchema.nullable().optional(),
|
|
557
|
+
/** B-644: sessions this automation spawns join this project (quiet variant). Older servers strip it — check the echo. */
|
|
558
|
+
projectId: id$1.nullable().optional()
|
|
554
559
|
});
|
|
555
560
|
z.z.object({
|
|
556
561
|
version: z.z.number().int().positive(),
|
|
557
562
|
name: AutomationNameSchema.optional(),
|
|
558
563
|
description: z.z.string().max(4e3).nullable().optional(),
|
|
559
|
-
machineId: id.optional(),
|
|
564
|
+
machineId: id$1.optional(),
|
|
560
565
|
trigger: AutomationTriggerSchema.optional(),
|
|
561
566
|
action: AutomationActionSchema.optional(),
|
|
562
567
|
concurrency: AutomationConcurrencySchema.optional(),
|
|
563
568
|
maxRuntimeMs: maxRuntimeMs.optional(),
|
|
564
569
|
/** B-548: omitted keeps the current precheck, `null` removes it. Changing `action` alone keeps it too. */
|
|
565
|
-
precheck: AutomationPrecheckSchema.nullable().optional()
|
|
570
|
+
precheck: AutomationPrecheckSchema.nullable().optional(),
|
|
571
|
+
/** B-644: omitted keeps the current project, `null` detaches. */
|
|
572
|
+
projectId: id$1.nullable().optional()
|
|
566
573
|
});
|
|
567
574
|
const payload = z.z.string().max(AUTOMATION_PAYLOAD_MAX_BYTES).refine((v) => new TextEncoder().encode(v).length <= AUTOMATION_PAYLOAD_MAX_BYTES, "payload exceeds 64KB");
|
|
568
575
|
z.z.object({ payload: payload.optional(), dedupeKey: z.z.string().min(1).max(256).optional() });
|
|
569
576
|
z.z.object({ payload: payload.optional() });
|
|
570
577
|
z.z.object({
|
|
571
|
-
machineId: id,
|
|
578
|
+
machineId: id$1,
|
|
572
579
|
limit: z.z.number().int().min(1).max(AUTOMATION_CLAIM_MAX_RUNS).optional(),
|
|
573
580
|
leaseMs: z.z.number().int().min(5e3).max(36e5).optional(),
|
|
574
581
|
/** B-548: what this daemon can execute (e.g. `precheck`). Older daemons send nothing; older servers strip it. */
|
|
575
582
|
capabilities: z.z.array(z.z.string().min(1).max(64)).max(32).optional()
|
|
576
583
|
});
|
|
577
584
|
z.z.object({
|
|
578
|
-
claimId: id.optional(),
|
|
585
|
+
claimId: id$1.optional(),
|
|
579
586
|
status: z.z.enum(["running", "done", "failed", "skipped"]).optional(),
|
|
580
|
-
sessionId: id.nullable().optional(),
|
|
587
|
+
sessionId: id$1.nullable().optional(),
|
|
581
588
|
stickyKey: z.z.string().min(1).max(512).optional(),
|
|
582
589
|
summary: z.z.string().max(AUTOMATION_SUMMARY_MAX_CHARS).nullable().optional(),
|
|
583
590
|
error: z.z.string().max(AUTOMATION_SUMMARY_MAX_CHARS).nullable().optional(),
|
|
@@ -587,16 +594,130 @@ z.z.object({
|
|
|
587
594
|
leaseMs: z.z.number().int().min(5e3).max(36e5).optional()
|
|
588
595
|
});
|
|
589
596
|
z.z.object({ by: z.z.string().min(1).max(64).optional() });
|
|
590
|
-
z.z.object({ key: z.z.string().min(1).max(512), sessionId: id });
|
|
597
|
+
z.z.object({ key: z.z.string().min(1).max(512), sessionId: id$1 });
|
|
591
598
|
z.z.object({ key: z.z.string().min(1).max(512) });
|
|
592
599
|
z.z.object({
|
|
593
|
-
automationId: id.optional(),
|
|
600
|
+
automationId: id$1.optional(),
|
|
594
601
|
name: AutomationNameSchema.optional(),
|
|
595
602
|
status: z.z.string().min(1).max(64).optional(),
|
|
596
603
|
attention: z.z.enum(["1", "true", "0", "false"]).optional(),
|
|
597
604
|
limit: z.z.coerce.number().int().min(1).max(200).optional()
|
|
598
605
|
});
|
|
599
|
-
z.z.object({ machineId: id.optional() });
|
|
606
|
+
z.z.object({ machineId: id$1.optional() });
|
|
607
|
+
const PROJECT_SESSION_CAPABILITY = "project-v1";
|
|
608
|
+
const PROJECT_LIMITS = {
|
|
609
|
+
nameChars: 120,
|
|
610
|
+
goalChars: 2e3,
|
|
611
|
+
instructionsBytes: 8 * 1024,
|
|
612
|
+
folders: 20,
|
|
613
|
+
logTitleChars: 200,
|
|
614
|
+
logBodyBytes: 4 * 1024,
|
|
615
|
+
messageBytes: 64 * 1024,
|
|
616
|
+
presenceBatch: 200,
|
|
617
|
+
memberBatch: 200};
|
|
618
|
+
const id = z.z.string().min(1).max(128);
|
|
619
|
+
const utf8Bytes = (value) => new TextEncoder().encode(value).length;
|
|
620
|
+
const boundedText = (maxBytes) => z.z.string().max(maxBytes).refine((v) => utf8Bytes(v) <= maxBytes, `exceeds ${maxBytes} bytes`);
|
|
621
|
+
const ProjectFolderSchema = z.z.object({
|
|
622
|
+
machineId: id,
|
|
623
|
+
path: z.z.string().min(1).max(4096),
|
|
624
|
+
primary: z.z.boolean().optional()
|
|
625
|
+
});
|
|
626
|
+
const ProjectDefaultsSchema = z.z.object({
|
|
627
|
+
agent: z.z.string().max(64).nullable().optional(),
|
|
628
|
+
model: z.z.string().max(256).nullable().optional(),
|
|
629
|
+
permissionMode: z.z.string().max(64).nullable().optional(),
|
|
630
|
+
worktree: z.z.boolean().nullable().optional()
|
|
631
|
+
});
|
|
632
|
+
const PROJECT_LOG_KINDS = ["decision", "finding", "handoff"];
|
|
633
|
+
const ProjectLogKindSchema = z.z.enum(PROJECT_LOG_KINDS);
|
|
634
|
+
const ProjectMemberViaInputSchema = z.z.enum(["explicit", "lineage", "suggested-accepted", "automation"]);
|
|
635
|
+
z.z.object({
|
|
636
|
+
name: z.z.string().trim().min(1).max(PROJECT_LIMITS.nameChars),
|
|
637
|
+
goal: z.z.string().max(PROJECT_LIMITS.goalChars).nullable().optional(),
|
|
638
|
+
instructions: boundedText(PROJECT_LIMITS.instructionsBytes).optional(),
|
|
639
|
+
folders: z.z.array(ProjectFolderSchema).max(PROJECT_LIMITS.folders).optional(),
|
|
640
|
+
defaults: ProjectDefaultsSchema.optional(),
|
|
641
|
+
/** Idempotency: the same requestId returns the project it created. */
|
|
642
|
+
requestId: id.optional(),
|
|
643
|
+
/** Optional initial members (e.g. "设为项目" moves a folder's sessions in one step). */
|
|
644
|
+
sessionIds: z.z.array(id).max(PROJECT_LIMITS.memberBatch).optional()
|
|
645
|
+
});
|
|
646
|
+
z.z.object({
|
|
647
|
+
name: z.z.string().trim().min(1).max(PROJECT_LIMITS.nameChars).optional(),
|
|
648
|
+
goal: z.z.string().max(PROJECT_LIMITS.goalChars).nullable().optional(),
|
|
649
|
+
folders: z.z.array(ProjectFolderSchema).max(PROJECT_LIMITS.folders).optional(),
|
|
650
|
+
defaults: ProjectDefaultsSchema.optional(),
|
|
651
|
+
archived: z.z.boolean().optional()
|
|
652
|
+
});
|
|
653
|
+
z.z.object({
|
|
654
|
+
instructions: boundedText(PROJECT_LIMITS.instructionsBytes),
|
|
655
|
+
ifVersion: z.z.number().int().min(0),
|
|
656
|
+
/** One-line summary shown in the next-turn digest ("instructions now v8 — …"). */
|
|
657
|
+
summary: z.z.string().max(200).optional()
|
|
658
|
+
});
|
|
659
|
+
z.z.object({
|
|
660
|
+
sessionIds: z.z.array(id).min(1).max(PROJECT_LIMITS.memberBatch),
|
|
661
|
+
via: ProjectMemberViaInputSchema.optional()
|
|
662
|
+
});
|
|
663
|
+
z.z.object({
|
|
664
|
+
kind: ProjectLogKindSchema,
|
|
665
|
+
title: z.z.string().trim().min(1).max(PROJECT_LIMITS.logTitleChars),
|
|
666
|
+
body: boundedText(PROJECT_LIMITS.logBodyBytes).optional(),
|
|
667
|
+
/** Entry id (or `#seq`) this entry replaces. */
|
|
668
|
+
supersedes: z.z.string().min(1).max(128).optional(),
|
|
669
|
+
/** Stamped by the wrapper (the agent cannot fill it). Absent = written by the user. */
|
|
670
|
+
authorSessionId: id.optional()
|
|
671
|
+
});
|
|
672
|
+
z.z.object({
|
|
673
|
+
/** When set, only entries this session authored may be revoked. Absent = the owner. */
|
|
674
|
+
bySessionId: id.optional()
|
|
675
|
+
});
|
|
676
|
+
z.z.object({ teamId: id });
|
|
677
|
+
const ProjectPresenceEntrySchema = z.z.object({
|
|
678
|
+
sessionId: id,
|
|
679
|
+
title: z.z.string().max(200).nullable().optional(),
|
|
680
|
+
agent: z.z.string().max(64).nullable().optional(),
|
|
681
|
+
machine: z.z.string().max(200).nullable().optional(),
|
|
682
|
+
branch: z.z.string().max(200).nullable().optional(),
|
|
683
|
+
state: z.z.string().max(32).nullable().optional(),
|
|
684
|
+
doing: z.z.string().max(200).nullable().optional(),
|
|
685
|
+
injectedInstructionsVersion: z.z.number().int().min(0).nullable().optional(),
|
|
686
|
+
/** Session capabilities the wrapper advertised (e.g. `project-v1`); drives the "未注入" badge. */
|
|
687
|
+
capabilities: z.z.array(z.z.string().max(64)).max(32).optional()
|
|
688
|
+
});
|
|
689
|
+
z.z.object({
|
|
690
|
+
machineId: id,
|
|
691
|
+
sessions: z.z.array(ProjectPresenceEntrySchema).max(PROJECT_LIMITS.presenceBatch),
|
|
692
|
+
/** Sessions of this machine that stopped; their presence rows are marked `offline`. */
|
|
693
|
+
gone: z.z.array(id).max(PROJECT_LIMITS.presenceBatch).optional()
|
|
694
|
+
});
|
|
695
|
+
z.z.object({
|
|
696
|
+
fromSessionId: id,
|
|
697
|
+
toSessionId: id,
|
|
698
|
+
body: boundedText(PROJECT_LIMITS.messageBytes).pipe(z.z.string().min(1))
|
|
699
|
+
});
|
|
700
|
+
z.z.object({
|
|
701
|
+
sessionId: id,
|
|
702
|
+
messageIds: z.z.array(id).min(1).max(100)
|
|
703
|
+
});
|
|
704
|
+
z.z.object({
|
|
705
|
+
full: z.z.enum(["0", "1", "true", "false"]).optional(),
|
|
706
|
+
section: z.z.enum(["instructions", "log", "sessions", "messages"]).optional(),
|
|
707
|
+
/** Read without moving the "since last read" cursor (used by the first-turn prefix). */
|
|
708
|
+
peek: z.z.enum(["0", "1", "true", "false"]).optional()
|
|
709
|
+
});
|
|
710
|
+
z.z.object({
|
|
711
|
+
since: z.z.coerce.number().int().min(0)
|
|
712
|
+
});
|
|
713
|
+
const PROJECT_UX_DISPATCH_ENTRIES = ["quick", "dialog", "project", "sidebar_group", "move", "other"];
|
|
714
|
+
const ProjectUxEventSchema = z.z.discriminatedUnion("kind", [
|
|
715
|
+
/** A session was created (or moved) — where from, and whether it landed in a project. */
|
|
716
|
+
z.z.object({ kind: z.z.literal("dispatch"), entry: z.z.enum(PROJECT_UX_DISPATCH_ENTRIES), inProject: z.z.boolean() }),
|
|
717
|
+
/** The owner opened a session that was waiting for them: how long it had been waiting. */
|
|
718
|
+
z.z.object({ kind: z.z.literal("attention_open"), latencyMs: z.z.number().int().min(0).max(7 * 864e5), inProject: z.z.boolean() })
|
|
719
|
+
]);
|
|
720
|
+
z.z.object({ events: z.z.array(ProjectUxEventSchema).min(1).max(20) });
|
|
600
721
|
const BUILTIN_TODO_PREFIX = "vh.todo.v1.";
|
|
601
722
|
const TITLE_MAX_LENGTH = 500;
|
|
602
723
|
const NOTE_MAX_LENGTH = 8e3;
|
|
@@ -1023,6 +1144,8 @@ exports.BUILTIN_TODO_DISCOVERY = BUILTIN_TODO_DISCOVERY;
|
|
|
1023
1144
|
exports.BUILTIN_TODO_SKILL = BUILTIN_TODO_SKILL;
|
|
1024
1145
|
exports.CODEX_STEER_CAPABILITY = CODEX_STEER_CAPABILITY;
|
|
1025
1146
|
exports.ContextUsageSchema = ContextUsageSchema;
|
|
1147
|
+
exports.PI_STEER_CAPABILITY = PI_STEER_CAPABILITY;
|
|
1148
|
+
exports.PROJECT_SESSION_CAPABILITY = PROJECT_SESSION_CAPABILITY;
|
|
1026
1149
|
exports.PROMPT_QUEUE_CAPABILITY = PROMPT_QUEUE_CAPABILITY;
|
|
1027
1150
|
exports.RelayAssignmentResponseSchema = RelayAssignmentResponseSchema;
|
|
1028
1151
|
exports.RelayCandidatesResponseSchema = RelayCandidatesResponseSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
3
|
+
var _package = require('./package-KhLqBDX9.cjs');
|
|
4
4
|
var module$1 = require('node:module');
|
|
5
5
|
var node_fs = require('node:fs');
|
|
6
6
|
var promises = require('node:fs/promises');
|
|
@@ -59,10 +59,10 @@ async function pruneStaleCompileCaches(happyHomeDir, cliVersion) {
|
|
|
59
59
|
async function run(args) {
|
|
60
60
|
enableCompileCacheIfPossible(_package.packageJson.version);
|
|
61
61
|
if (isStandaloneVersionRequest(args) || isSelfCheckRequest(args)) {
|
|
62
|
-
const { selfCheckMain } = await Promise.resolve().then(function () { return require('./selfCheck-
|
|
62
|
+
const { selfCheckMain } = await Promise.resolve().then(function () { return require('./selfCheck-BTGBVthv.cjs'); });
|
|
63
63
|
process.exit(await selfCheckMain({ verbose: isSelfCheckRequest(args) }));
|
|
64
64
|
}
|
|
65
|
-
const { main } = await Promise.resolve().then(function () { return require('./main-
|
|
65
|
+
const { main } = await Promise.resolve().then(function () { return require('./main-B2UV51nK.cjs'); });
|
|
66
66
|
await main();
|
|
67
67
|
}
|
|
68
68
|
void run(process.argv.slice(2));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
1
|
+
import { p as packageJson } from './package-7Ld1YMhh.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-Smt-5Xiq.mjs');
|
|
61
61
|
process.exit(await selfCheckMain({ verbose: isSelfCheckRequest(args) }));
|
|
62
62
|
}
|
|
63
|
-
const { main } = await import('./main-
|
|
63
|
+
const { main } = await import('./main-DGkdYfEq.mjs');
|
|
64
64
|
await main();
|
|
65
65
|
}
|
|
66
66
|
void run(process.argv.slice(2));
|