very-happy-cli 0.2.202 → 0.2.203
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-Z51picBa.mjs → AcpBackend-CAMuhS0Z.mjs} +3 -3
- package/dist/{AcpBackend-BRcPXur6.cjs → AcpBackend-DReFgpYD.cjs} +3 -3
- package/dist/{AcpSessionManager-BckOYH3I.cjs → AcpSessionManager-BZKM-sCt.cjs} +1 -1
- package/dist/{AcpSessionManager-BCGqL1Em.mjs → AcpSessionManager-CJOxMFCF.mjs} +1 -1
- package/dist/{BasePermissionHandler-BYIY3kxs.cjs → BasePermissionHandler-BBR9Gkob.cjs} +1 -1
- package/dist/{BasePermissionHandler-BhJjr-wB.mjs → BasePermissionHandler-BgX73mQ5.mjs} +1 -1
- package/dist/{account-B0Wu7rJR.cjs → account-41PkJ9nx.cjs} +5 -5
- package/dist/{account-B-HTHZKw.mjs → account-hy0rztXY.mjs} +5 -5
- package/dist/{acpSessionResume-BKjQRT4V.mjs → acpSessionResume-5El4xksf.mjs} +1 -1
- package/dist/{acpSessionResume-C8Kd8eK6.cjs → acpSessionResume-DmOPXKpC.cjs} +1 -1
- package/dist/{agentHome-DnxSf1ox.cjs → agentHome-BXaVMqHX.cjs} +4 -4
- package/dist/{agentHome-BXiCouR4.mjs → agentHome-DUxArmak.mjs} +4 -4
- package/dist/{api-B-FB-s4z.cjs → api-ChhFBuB0.cjs} +9 -9
- package/dist/{api-Cu1OFHDM.mjs → api-D8ZDxBWw.mjs} +9 -9
- package/dist/{apiMachine-DCWgI1l_.cjs → apiMachine-MPwddFXq.cjs} +13 -13
- package/dist/{apiMachine-DYGPILVb.mjs → apiMachine-qav2pnk5.mjs} +13 -13
- package/dist/{attachmentContent-Dq8P5ODq.mjs → attachmentContent-BfSQxccA.mjs} +2 -2
- package/dist/{attachmentContent-dXwHB_3C.cjs → attachmentContent-f5gwnv9J.cjs} +2 -2
- package/dist/{auth-D11uvx2P.mjs → auth-BxNuFv_0.mjs} +8 -8
- package/dist/{auth-BVNBE4B1.cjs → auth-DkPAHXLj.cjs} +8 -8
- package/dist/{auth-DpIHm7Lb.cjs → auth-thi2T_T8.cjs} +5 -5
- package/dist/{auth-CgdE-j7z.mjs → auth-xW7SDE_7.mjs} +5 -5
- package/dist/{auto-Ba2b-il4.cjs → auto-BiRlQ4tm.cjs} +14 -14
- package/dist/{auto-WdjHKP9R.mjs → auto-DmXTwayU.mjs} +14 -14
- package/dist/{bootstrap-CsZO_jkL.cjs → bootstrap-EGhaCmXy.cjs} +2 -2
- package/dist/{bootstrap-BTYJf2w8.mjs → bootstrap-pGaFGbWO.mjs} +2 -2
- package/dist/{browser-Dx3UOVPP.mjs → browser-BYSYzXvP.mjs} +1 -1
- package/dist/{browser-DgufCq1K.cjs → browser-DSxpOnPb.cjs} +1 -1
- package/dist/{claudeLocal-Q0FgzhTu.cjs → claudeLocal-ClqHmkk6.cjs} +4 -4
- package/dist/{claudeLocal-ylDKcvX0.mjs → claudeLocal-bDarWqaU.mjs} +4 -4
- package/dist/{claudeLocalLauncher-D2rZvuaW.cjs → claudeLocalLauncher-Bxi0_eW9.cjs} +9 -9
- package/dist/{claudeLocalLauncher-CtybsaR8.mjs → claudeLocalLauncher-Ccpj2KgW.mjs} +9 -9
- package/dist/{claudeSessionFork-DRLxmv9j.mjs → claudeSessionFork-Cize0Y2T.mjs} +1 -1
- package/dist/{claudeSessionFork-BrstQPE4.cjs → claudeSessionFork-nyNFjgaf.cjs} +1 -1
- package/dist/{client-Dq7jaxb2.cjs → client-6Y6O72Uq.cjs} +2 -2
- package/dist/{client-Ch4Azlny.cjs → client-CMKgB-76.cjs} +4 -4
- package/dist/{client-Cj7D61by.mjs → client-CX8kRedW.mjs} +2 -2
- package/dist/{client-CNWx72ZT.cjs → client-Cddb1dhi.cjs} +2 -2
- package/dist/{client-D0oBXuEe.mjs → client-CgMVIP7v.mjs} +2 -2
- package/dist/{client-DfT_CRwl.mjs → client-DO8DNDC3.mjs} +2 -2
- package/dist/{client-xV99weGP.cjs → client-DP8FabOE.cjs} +2 -2
- package/dist/{client-DJsXNJWO.mjs → client-Wr_BiOon.mjs} +4 -4
- package/dist/codex/happyMcpStdioBridge.cjs +17 -17
- package/dist/codex/happyMcpStdioBridge.mjs +17 -17
- package/dist/{codexAppServerClient-DtdCZ7_b.mjs → codexAppServerClient-D-cD2Dfj.mjs} +3 -3
- package/dist/{codexAppServerClient-BwBPZonh.cjs → codexAppServerClient-EzrHWYhX.cjs} +3 -3
- package/dist/{codexCommand-CsY9YFiG.cjs → codexCommand-BMcXtvU3.cjs} +42 -42
- package/dist/{codexCommand-D92AQCLU.mjs → codexCommand-D79GnRhB.mjs} +42 -42
- package/dist/{codexTermination-BbXG2oFT.cjs → codexTermination-CF6xiFbb.cjs} +1 -1
- package/dist/{codexTermination-rhIxjRMJ.mjs → codexTermination-CK1MYJT7.mjs} +1 -1
- package/dist/{config-BnN1yFyi.mjs → config-Crn1mNgr.mjs} +3 -3
- package/dist/{config-Zhkmfb3O.cjs → config-F6zSRyk2.cjs} +3 -3
- package/dist/{configuration-DZUnfWp2.cjs → configuration-Cl9kOv09.cjs} +1 -1
- package/dist/{configuration-CQaLZMa-.mjs → configuration-i9MVy0a5.mjs} +1 -1
- package/dist/{connect-DY5QLfbI.mjs → connect-CiA13Xm4.mjs} +12 -12
- package/dist/{connect-BToTf3Gy.cjs → connect-ClklWmnI.cjs} +12 -12
- package/dist/{context-BHydzPZw.cjs → context-BxODP3mG.cjs} +1 -1
- package/dist/{context-ByTvtMXZ.mjs → context-DvdZsGgl.mjs} +1 -1
- package/dist/{controlClient-Cqhd8ynk.mjs → controlClient-D6vqMUfi.mjs} +3 -3
- package/dist/{controlClient-Bfwe0Xpt.cjs → controlClient-DxCQKfqe.cjs} +3 -3
- package/dist/{createSessionMetadata-D_qa01wq.cjs → createSessionMetadata-B_NZvmhm.cjs} +2 -2
- package/dist/{createSessionMetadata-tmhDzhJZ.mjs → createSessionMetadata-BuAVB-xI.mjs} +2 -2
- package/dist/{deterministicJson-DRL1Gs_c.mjs → deterministicJson-B9XrEawW.mjs} +13 -13
- package/dist/{deterministicJson-CbUdClvO.cjs → deterministicJson-kM2OdGZu.cjs} +13 -13
- package/dist/{doctor-DHCmWcwR.cjs → doctor-DiPRqsqg.cjs} +7 -7
- package/dist/{doctor-Wu0yZ80l.mjs → doctor-HHS4YegX.mjs} +7 -7
- package/dist/{downloadTarget-G72yKQcM.mjs → downloadTarget-Cd8hx54t.mjs} +6 -6
- package/dist/{downloadTarget-BoJrjpEe.cjs → downloadTarget-osB-mGh0.cjs} +6 -6
- package/dist/{ensureDaemonRunning-BKGybp3s.mjs → ensureDaemonRunning-C0iDtuL7.mjs} +5 -5
- package/dist/{ensureDaemonRunning-CnkyGd9x.cjs → ensureDaemonRunning-CtBvPHVB.cjs} +5 -5
- package/dist/{format-DePME4uu.cjs → format-B5V7ie8N.cjs} +1 -1
- package/dist/{format-BSx-Nv2p.mjs → format-Dc5zMslz.mjs} +1 -1
- package/dist/{handleResumeCommand-uKzhaOVC.cjs → handleResumeCommand-vcD2qcAM.cjs} +5 -5
- package/dist/{handleResumeCommand-DrJdhjLD.mjs → handleResumeCommand-xrOAA1qI.mjs} +5 -5
- package/dist/{index-Bi7Lmykl.cjs → index-AyDwQ6FG.cjs} +39 -39
- package/dist/{index-CowtCbZ_.mjs → index-B7CXMlrz.mjs} +40 -40
- package/dist/{index-BcYJJV-f.mjs → index-B7pKBIcn.mjs} +3 -3
- package/dist/{index-CoBaGAA4.cjs → index-C_ePuQwB.cjs} +3 -3
- package/dist/{index-DDOCSeEj.cjs → index-Cl-WkB_6.cjs} +4 -4
- package/dist/{index-BKXqaux4.cjs → index-D0rCXp-e.cjs} +4 -4
- package/dist/{index-fNsf-8K-.mjs → index-DIKJMfs2.mjs} +4 -4
- package/dist/{index-C-eSUhXW.mjs → index-iFVMrlPo.mjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-Ddc8TlWE.cjs → install-BgBgsOlS.cjs} +3 -3
- package/dist/{install-0TkucJrC.mjs → install-yqS4y1cm.mjs} +3 -3
- package/dist/{issue-CIfzJuaS.cjs → issue-D7liK6bR.cjs} +7 -7
- package/dist/{issue-CML2xa46.mjs → issue-aKZd7J55.mjs} +7 -7
- package/dist/lib.cjs +11 -11
- package/dist/lib.mjs +11 -11
- package/dist/{localHappyAgentAuth-BUX4E1ug.mjs → localHappyAgentAuth-B2JJxlE9.mjs} +1 -1
- package/dist/{localHappyAgentAuth-WLqXQbc6.cjs → localHappyAgentAuth-Dm9obisi.cjs} +1 -1
- package/dist/{logger-BEVIGYKL.mjs → logger-BiKmiREe.mjs} +2 -2
- package/dist/{logger-Dhc0l3xH.cjs → logger-BtWBoP60.cjs} +2 -2
- package/dist/{machineMetadata-ixKckJ7k.cjs → machineMetadata-C0-LyMsb.cjs} +3 -3
- package/dist/{machineMetadata-BQdp_ihk.mjs → machineMetadata-CiyO9wm-.mjs} +3 -3
- package/dist/{main-BzQSe4Zu.mjs → main-BP2TBnp5.mjs} +48 -48
- package/dist/{main-BNBYOcQb.cjs → main-C7hKf5hG.cjs} +48 -48
- package/dist/{mcp-BueI4Bel.mjs → mcp-Cn4k-PXb.mjs} +14 -14
- package/dist/{mcp-BwskAxOK.cjs → mcp-DO00rr9n.cjs} +14 -14
- package/dist/{mirrorProtocol-5aFYsCCe.mjs → mirrorProtocol-DDtEN49F.mjs} +2 -2
- package/dist/{mirrorProtocol-DGMmhArw.cjs → mirrorProtocol-DwO8QgLM.cjs} +2 -2
- package/dist/{package-aOUtHYRZ.mjs → package-CIW5lwaN.mjs} +7 -7
- package/dist/{package-CAmlKYcH.cjs → package-Djdgx8nb.cjs} +7 -7
- package/dist/{panels-BeVMgmRW.mjs → panels-BpfVEvwF.mjs} +5 -5
- package/dist/{panels-By2IDfXv.cjs → panels-DMLtEOtJ.cjs} +5 -5
- package/dist/{peerTools-BkRgJomj.mjs → peerTools-CQ60fUPp.mjs} +5 -5
- package/dist/{peerTools-dgllF1wT.cjs → peerTools-fYuKq3ev.cjs} +5 -5
- package/dist/{persistence-05BAS4Ou.cjs → persistence-BOEZtiKb.cjs} +2 -2
- package/dist/{persistence-EuUaQKL7.mjs → persistence-D_zVC4Xz.mjs} +2 -2
- package/dist/{piRunnerArgs-CygWrAwY.mjs → piRunnerArgs-DE_YXvS1.mjs} +1 -1
- package/dist/{piRunnerArgs-DkjCRPYn.cjs → piRunnerArgs-Dz9P62db.cjs} +1 -1
- package/dist/{piRuntime-LRW_t6ME.mjs → piRuntime-8SbpRmNA.mjs} +1 -1
- package/dist/{piRuntime-zY2jIQod.cjs → piRuntime-Du62fjeU.cjs} +1 -1
- package/dist/{piTerminal-BfZshXGh.cjs → piTerminal-CGAw7WDW.cjs} +16 -16
- package/dist/{piTerminal-BhlPA1HR.mjs → piTerminal-Cl45kac0.mjs} +16 -16
- package/dist/{pushNotifications-DaVlLe7N.cjs → pushNotifications-B19lT5mY.cjs} +2 -2
- package/dist/{pushNotifications-B7Ga8Zyf.mjs → pushNotifications-RVpbqrxR.mjs} +2 -2
- package/dist/{query-CX0Of89i.cjs → query-CNWdX2r5.cjs} +1 -1
- package/dist/{query-BQLtwpr9.mjs → query-DBRR3TOO.mjs} +1 -1
- package/dist/{rateLimitWindows-hv2zLYid.mjs → rateLimitWindows-DX5y23x_.mjs} +1 -1
- package/dist/{rateLimitWindows-CpSOlXBt.cjs → rateLimitWindows-mfdokrkQ.cjs} +1 -1
- package/dist/{reconnectGate-B_aJrehH.cjs → reconnectGate-B8ltzSJD.cjs} +1 -1
- package/dist/{reconnectGate-DO_ZQmJE.mjs → reconnectGate-DSxYUCWy.mjs} +1 -1
- package/dist/{registerCommonHandlers-BEpK4WD2.mjs → registerCommonHandlers-CQDRKlkG.mjs} +2 -2
- package/dist/{registerCommonHandlers-em2elV3l.cjs → registerCommonHandlers-Y2siJGwL.cjs} +2 -2
- package/dist/{registerKillSessionHandler-D4ZQvsH2.cjs → registerKillSessionHandler-B0pMZOdH.cjs} +5 -5
- package/dist/{registerKillSessionHandler-D-dDzI2n.mjs → registerKillSessionHandler-U4Dxtohy.mjs} +5 -5
- package/dist/{registerSideQuestionHandler-BIOLUe2U.cjs → registerSideQuestionHandler--ruKhCdY.cjs} +4 -4
- package/dist/{registerSideQuestionHandler-okUy9Q_-.mjs → registerSideQuestionHandler-DM1QqTxf.mjs} +4 -4
- package/dist/{remoteSessionClient-BLWFXMBo.cjs → remoteSessionClient-CjINaEs_.cjs} +5 -5
- package/dist/{remoteSessionClient-CzjLyL9c.mjs → remoteSessionClient-T-Raoiy6.mjs} +5 -5
- package/dist/{reportProgressTool-DcNBXBw8.cjs → reportProgressTool-DDfL1OY7.cjs} +4 -4
- package/dist/{reportProgressTool-CNi0Vqqm.mjs → reportProgressTool-Stg0xrjF.mjs} +4 -4
- package/dist/{run-bzlz4DI1.cjs → run-BoSVfVCZ.cjs} +33 -33
- package/dist/{run-D59Gb4SQ.mjs → run-Dq48xBtw.mjs} +33 -33
- package/dist/{runClaude-DZtdmcXK.mjs → runClaude-CJe5atrS.mjs} +20 -20
- package/dist/{runClaude-kVp1PKab.cjs → runClaude-D8ScJdJU.cjs} +20 -20
- package/dist/{runClaudeDeps-BHv9FkVz.cjs → runClaudeDeps-4RFRR4cY.cjs} +37 -37
- package/dist/{runClaudeDeps-D83tR1KP.mjs → runClaudeDeps-CL3goCXG.mjs} +43 -43
- package/dist/{runGemini-W-0t7skM.cjs → runGemini-BcbNxgsA.cjs} +34 -34
- package/dist/{runGemini-DLc_bL4E.mjs → runGemini-DZv6jPxV.mjs} +34 -34
- package/dist/{runOpenClaw-BsqbOw8R.cjs → runOpenClaw-BeSivE0X.cjs} +17 -17
- package/dist/{runOpenClaw-mm-hKxMC.mjs → runOpenClaw-CRqCoj-_.mjs} +17 -17
- package/dist/{sandbox-DXbKl-Os.mjs → sandbox-DAvJJZcV.mjs} +4 -4
- package/dist/{sandbox-DrWJss7J.cjs → sandbox-xflHChws.cjs} +4 -4
- package/dist/selfCheck-BKOIROoJ.mjs +89 -0
- package/dist/{selfCheck-CVXucSXR.cjs → selfCheck-DZwdgBg0.cjs} +39 -39
- package/dist/{send-Cdda78Iw.mjs → send-Co_l_Nmg.mjs} +8 -8
- package/dist/{send-D7pRBaht.cjs → send-ConAuYqL.cjs} +8 -8
- package/dist/{server-CNilQcJK.mjs → server-D1Qrmxl7.mjs} +4 -4
- package/dist/{server-BI6defPs.cjs → server-by6kezmM.cjs} +6 -6
- package/dist/{sessionLock-CVjlaRSL.mjs → sessionLock-DFrwAnwR.mjs} +3 -3
- package/dist/{sessionLock-Bjsy90aM.cjs → sessionLock-Db_uQcUP.cjs} +3 -3
- package/dist/{sessionOps-CV5RUpwG.mjs → sessionOps-C7nps7qG.mjs} +4 -4
- package/dist/{sessionOps-CvmOHwGP.cjs → sessionOps-CptDjoZi.cjs} +4 -4
- package/dist/{sessionProvider-BmO4ahnt.mjs → sessionProvider-BaJq1AnY.mjs} +5 -5
- package/dist/{sessionProvider-4sWr0Myr.cjs → sessionProvider-D9nsAE14.cjs} +5 -5
- package/dist/{sessionScanner-34Q0vTR3.mjs → sessionScanner-BOb33NVJ.mjs} +3 -3
- package/dist/{sessionScanner-DZBiEOyb.cjs → sessionScanner-C6OVO0Ne.cjs} +3 -3
- package/dist/{sessions-Cl435KQT.mjs → sessions-GCql_3Dl.mjs} +10 -10
- package/dist/{sessions-DjAXZWTX.cjs → sessions-qVHDXJa6.cjs} +10 -10
- package/dist/{setupOfflineReconnection-zebrb6U_.cjs → setupOfflineReconnection-B8QKqc9a.cjs} +2 -2
- package/dist/{setupOfflineReconnection-BC5FJTkc.mjs → setupOfflineReconnection-lu0YbS7m.mjs} +2 -2
- package/dist/{spawn-DqWdgMt_.mjs → spawn-C9NSlg99.mjs} +12 -12
- package/dist/{spawn-C8cJK9-m.cjs → spawn-tL-724RS.cjs} +12 -12
- package/dist/{spawnHappyCLI-CeWgULMt.cjs → spawnHappyCLI-D7EO8s4E.cjs} +1 -1
- package/dist/{spawnHappyCLI-BckHSjR0.mjs → spawnHappyCLI-jXUKLUT5.mjs} +1 -1
- package/dist/{startFileWatcher-CXZYt0y9.cjs → startFileWatcher-6NpLGxg5.cjs} +1 -1
- package/dist/{startFileWatcher-BXiBlfVr.mjs → startFileWatcher-C7eFs4hA.mjs} +1 -1
- package/dist/{startupSessionCreate-CycB-kwu.cjs → startupSessionCreate-C5wdvraY.cjs} +3 -3
- package/dist/{startupSessionCreate-D8hODW7I.mjs → startupSessionCreate-D3ph1DtL.mjs} +3 -3
- package/dist/{sync-BfM5OKSS.mjs → sync-BIXH8ijr.mjs} +1 -1
- package/dist/{sync-CyUWevwD.cjs → sync-ni64k2OI.cjs} +1 -1
- package/dist/{systemPrompt-Tu_2ixE3.mjs → systemPrompt-B_vnlIr1.mjs} +1 -1
- package/dist/{systemPrompt-BUZQDf4k.cjs → systemPrompt-DuoULaqr.cjs} +1 -1
- package/dist/{teams-Cpdqvfe3.mjs → teams-CsR_8p3Q.mjs} +6 -6
- package/dist/{teams-KjHee0Vg.cjs → teams-DLfcbOMh.cjs} +6 -6
- package/dist/{time-CbOTVtAt.cjs → time-BMCY7zJL.cjs} +1 -1
- package/dist/{time-BQWf06hA.mjs → time-Che8GhII.mjs} +1 -1
- package/dist/{titleGenerator-DYnqd0oI.mjs → titleGenerator-B9LckLDq.mjs} +1 -1
- package/dist/{titleGenerator-CpiQkf_r.cjs → titleGenerator-HVEN1e7o.cjs} +2 -2
- package/dist/{todo-Cp6bRp62.cjs → todo-B8byb_cy.cjs} +7 -7
- package/dist/{todo-DVrsXyKn.mjs → todo-bc7db5NN.mjs} +7 -7
- package/dist/{tools-BFQm7xny.cjs → tools--RN1SFkD.cjs} +47 -27
- package/dist/{tools-XGAJepvT.mjs → tools-BAMaBbbP.mjs} +47 -27
- package/dist/{uninstall-C2LF0vtR.mjs → uninstall-Dv4C-W9z.mjs} +3 -3
- package/dist/{uninstall-Cyqq90JW.cjs → uninstall-UC0Q8YTj.cjs} +3 -3
- package/package.json +7 -7
- package/dist/selfCheck-B1XdrEbN.mjs +0 -89
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var exitAfterFlush = require('./exitAfterFlush-DIT_sIxR.cjs');
|
|
5
|
-
var sessionOps = require('./sessionOps-
|
|
5
|
+
var sessionOps = require('./sessionOps-CptDjoZi.cjs');
|
|
6
6
|
var ids = require('./ids-B6ZC0HGt.cjs');
|
|
7
|
-
var peerTools = require('./peerTools-
|
|
8
|
-
var persistence = require('./persistence-
|
|
7
|
+
var peerTools = require('./peerTools-fYuKq3ev.cjs');
|
|
8
|
+
var persistence = require('./persistence-BOEZtiKb.cjs');
|
|
9
9
|
var path = require('node:path');
|
|
10
|
-
var remoteSessionClient = require('./remoteSessionClient-
|
|
10
|
+
var remoteSessionClient = require('./remoteSessionClient-CjINaEs_.cjs');
|
|
11
11
|
require('axios');
|
|
12
|
-
require('./configuration-
|
|
12
|
+
require('./configuration-Cl9kOv09.cjs');
|
|
13
13
|
require('node:fs');
|
|
14
14
|
require('node:os');
|
|
15
|
-
require('./package-
|
|
15
|
+
require('./package-Djdgx8nb.cjs');
|
|
16
16
|
require('node:fs/promises');
|
|
17
17
|
require('./authRelay-Dy1qU9td.cjs');
|
|
18
18
|
require('node:crypto');
|
|
19
19
|
require('tweetnacl');
|
|
20
|
-
require('./controlClient-
|
|
21
|
-
require('./logger-
|
|
20
|
+
require('./controlClient-DxCQKfqe.cjs');
|
|
21
|
+
require('./logger-BtWBoP60.cjs');
|
|
22
22
|
require('node:util');
|
|
23
|
-
require('./time-
|
|
23
|
+
require('./time-BMCY7zJL.cjs');
|
|
24
24
|
require('./specialCommands-J3JFOq0J.cjs');
|
|
25
25
|
require('socket.io-client');
|
|
26
26
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
27
27
|
require('zod');
|
|
28
|
-
require('./client-
|
|
28
|
+
require('./client-Cddb1dhi.cjs');
|
|
29
29
|
|
|
30
30
|
const MACHINE_ID_RE = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
31
31
|
const ACTIONS = ["list", "read", "stop", "archive", "approve", "deny", "peers", "message"];
|
package/dist/{setupOfflineReconnection-zebrb6U_.cjs → setupOfflineReconnection-B8QKqc9a.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
4
|
-
var api = require('./api-
|
|
3
|
+
var configuration = require('./configuration-Cl9kOv09.cjs');
|
|
4
|
+
var api = require('./api-ChhFBuB0.cjs');
|
|
5
5
|
|
|
6
6
|
function createOfflineSessionStub(sessionTag) {
|
|
7
7
|
return {
|
package/dist/{setupOfflineReconnection-BC5FJTkc.mjs → setupOfflineReconnection-lu0YbS7m.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
2
|
-
import { s as startOfflineReconnection } from './api-
|
|
1
|
+
import { c as configuration } from './configuration-i9MVy0a5.mjs';
|
|
2
|
+
import { s as startOfflineReconnection } from './api-D8ZDxBWw.mjs';
|
|
3
3
|
|
|
4
4
|
function createOfflineSessionStub(sessionTag) {
|
|
5
5
|
return {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as resolveSpawnPermissionMode, c as chooseProject, j as joinProject, a as resolveFirstMessageMeta, w as waitsForModelCatalog, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES, S as SPAWN_AGENTS } from './spawnAgents-BclZYkov.mjs';
|
|
2
|
-
import { s as sharedProjectsClient } from './client-
|
|
2
|
+
import { s as sharedProjectsClient } from './client-DO8DNDC3.mjs';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import { readFileSync, statSync } from 'node:fs';
|
|
5
5
|
import { resolve } from 'node:path';
|
|
6
|
-
import { a as checkIfDaemonRunningAndCleanupStaleState, e as spawnDaemonSession, f as stopDaemonSession } from './controlClient-
|
|
7
|
-
import { c as readPersistedSessions, r as readSettings } from './persistence-
|
|
6
|
+
import { a as checkIfDaemonRunningAndCleanupStaleState, e as spawnDaemonSession, f as stopDaemonSession } from './controlClient-D6vqMUfi.mjs';
|
|
7
|
+
import { c as readPersistedSessions, r as readSettings } from './persistence-D_zVC4Xz.mjs';
|
|
8
8
|
import { B as parseLatestModelTable, D as resolveLaunchAgentProfile } from './index-CiRMvS73.mjs';
|
|
9
|
-
import { c as configuration } from './configuration-
|
|
9
|
+
import { c as configuration } from './configuration-i9MVy0a5.mjs';
|
|
10
10
|
import { g as getProjectPath } from './path-D2wdaNSk.mjs';
|
|
11
|
-
import { f as forkSession, a as forkCompletedTurns, F as ForkSourceMissingError } from './claudeSessionFork-
|
|
12
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
11
|
+
import { f as forkSession, a as forkCompletedTurns, F as ForkSourceMissingError } from './claudeSessionFork-Cize0Y2T.mjs';
|
|
12
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-D-cD2Dfj.mjs';
|
|
13
13
|
import { f as forkCodexThread, a as forkCodexCompletedTurns } from './codexThreadFork-CVzAqELg.mjs';
|
|
14
|
-
import { e as sendUserMessage, f as readSessionMetadata, g as waitForSessionKey, s as sessionWebUrl, h as analyzeLatestTurn, i as readSessionLog, j as TURN_WINDOW } from './sessionOps-
|
|
15
|
-
import { i as isValidSpawnOrigin } from './createSessionMetadata-
|
|
16
|
-
import { l as logger } from './logger-
|
|
14
|
+
import { e as sendUserMessage, f as readSessionMetadata, g as waitForSessionKey, s as sessionWebUrl, h as analyzeLatestTurn, i as readSessionLog, j as TURN_WINDOW } from './sessionOps-C7nps7qG.mjs';
|
|
15
|
+
import { i as isValidSpawnOrigin } from './createSessionMetadata-BuAVB-xI.mjs';
|
|
16
|
+
import { l as logger } from './logger-BiKmiREe.mjs';
|
|
17
17
|
import { w as waitForForkBackfill } from './forkBackfill-DYIjlN1Z.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'zod';
|
|
@@ -22,17 +22,17 @@ import 'node:crypto';
|
|
|
22
22
|
import 'tweetnacl';
|
|
23
23
|
import '@paralleldrive/cuid2';
|
|
24
24
|
import 'node:os';
|
|
25
|
-
import './package-
|
|
25
|
+
import './package-CIW5lwaN.mjs';
|
|
26
26
|
import 'node:readline';
|
|
27
27
|
import 'node:child_process';
|
|
28
28
|
import 'cross-spawn';
|
|
29
29
|
import './contentLogMetadata-BlWI0egu.mjs';
|
|
30
30
|
import './manager-BEsI4qt3.mjs';
|
|
31
31
|
import '@anthropic-ai/sandbox-runtime';
|
|
32
|
-
import './rateLimitWindows-
|
|
32
|
+
import './rateLimitWindows-DX5y23x_.mjs';
|
|
33
33
|
import './processTree-CP5IvQ2Z.mjs';
|
|
34
34
|
import 'axios';
|
|
35
|
-
import './time-
|
|
35
|
+
import './time-Che8GhII.mjs';
|
|
36
36
|
import './specialCommands-MXUN0wfI.mjs';
|
|
37
37
|
import 'socket.io-client';
|
|
38
38
|
import './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var spawnAgents = require('./spawnAgents-DvbEDCIq.cjs');
|
|
4
|
-
var client = require('./client-
|
|
4
|
+
var client = require('./client-Cddb1dhi.cjs');
|
|
5
5
|
var chalk = require('chalk');
|
|
6
6
|
var node_fs = require('node:fs');
|
|
7
7
|
var path$1 = require('node:path');
|
|
8
|
-
var controlClient = require('./controlClient-
|
|
9
|
-
var persistence = require('./persistence-
|
|
8
|
+
var controlClient = require('./controlClient-DxCQKfqe.cjs');
|
|
9
|
+
var persistence = require('./persistence-BOEZtiKb.cjs');
|
|
10
10
|
var index = require('./index-44o_qMvE.cjs');
|
|
11
|
-
var configuration = require('./configuration-
|
|
11
|
+
var configuration = require('./configuration-Cl9kOv09.cjs');
|
|
12
12
|
var path = require('./path-B7zW-WwE.cjs');
|
|
13
|
-
var claudeSessionFork = require('./claudeSessionFork-
|
|
14
|
-
var codexAppServerClient = require('./codexAppServerClient-
|
|
13
|
+
var claudeSessionFork = require('./claudeSessionFork-nyNFjgaf.cjs');
|
|
14
|
+
var codexAppServerClient = require('./codexAppServerClient-EzrHWYhX.cjs');
|
|
15
15
|
var codexThreadFork = require('./codexThreadFork-C6ZmcT2z.cjs');
|
|
16
|
-
var sessionOps = require('./sessionOps-
|
|
17
|
-
var createSessionMetadata = require('./createSessionMetadata-
|
|
18
|
-
var logger = require('./logger-
|
|
16
|
+
var sessionOps = require('./sessionOps-CptDjoZi.cjs');
|
|
17
|
+
var createSessionMetadata = require('./createSessionMetadata-B_NZvmhm.cjs');
|
|
18
|
+
var logger = require('./logger-BtWBoP60.cjs');
|
|
19
19
|
var forkBackfill = require('./forkBackfill-8eLDeS73.cjs');
|
|
20
20
|
require('node:fs/promises');
|
|
21
21
|
require('zod');
|
|
@@ -24,17 +24,17 @@ require('node:crypto');
|
|
|
24
24
|
require('tweetnacl');
|
|
25
25
|
require('@paralleldrive/cuid2');
|
|
26
26
|
require('node:os');
|
|
27
|
-
require('./package-
|
|
27
|
+
require('./package-Djdgx8nb.cjs');
|
|
28
28
|
require('node:readline');
|
|
29
29
|
require('node:child_process');
|
|
30
30
|
require('cross-spawn');
|
|
31
31
|
require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
32
32
|
require('./manager-HrEj442o.cjs');
|
|
33
33
|
require('@anthropic-ai/sandbox-runtime');
|
|
34
|
-
require('./rateLimitWindows-
|
|
34
|
+
require('./rateLimitWindows-mfdokrkQ.cjs');
|
|
35
35
|
require('./processTree-CMHWlVse.cjs');
|
|
36
36
|
require('axios');
|
|
37
|
-
require('./time-
|
|
37
|
+
require('./time-BMCY7zJL.cjs');
|
|
38
38
|
require('./specialCommands-J3JFOq0J.cjs');
|
|
39
39
|
require('socket.io-client');
|
|
40
40
|
require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var spawn = require('cross-spawn');
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
6
|
-
var logger = require('./logger-
|
|
6
|
+
var logger = require('./logger-BtWBoP60.cjs');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
|
|
9
9
|
let cachedRuntime = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { spawn } from 'cross-spawn';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
4
|
-
import { l as logger } from './logger-
|
|
4
|
+
import { l as logger } from './logger-BiKmiREe.mjs';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
|
|
7
7
|
let cachedRuntime = null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
4
|
-
var persistence = require('./persistence-
|
|
5
|
-
var api = require('./api-
|
|
3
|
+
var logger = require('./logger-BtWBoP60.cjs');
|
|
4
|
+
var persistence = require('./persistence-BOEZtiKb.cjs');
|
|
5
|
+
var api = require('./api-ChhFBuB0.cjs');
|
|
6
6
|
|
|
7
7
|
const PRESENCE_SETTLE_MS = 6e3;
|
|
8
8
|
async function commitHibernation(deps) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as logger } from './logger-
|
|
2
|
-
import { e as evaluateWrapperIdle, j as isQuiescent, k as HIBERNATION_UNSUPPORTED_BACKOFF_MS } from './persistence-
|
|
3
|
-
import { c as connectionState } from './api-
|
|
1
|
+
import { l as logger } from './logger-BiKmiREe.mjs';
|
|
2
|
+
import { e as evaluateWrapperIdle, j as isQuiescent, k as HIBERNATION_UNSUPPORTED_BACKOFF_MS } from './persistence-D_zVC4Xz.mjs';
|
|
3
|
+
import { c as connectionState } from './api-D8ZDxBWw.mjs';
|
|
4
4
|
|
|
5
5
|
const PRESENCE_SETTLE_MS = 6e3;
|
|
6
6
|
async function commitHibernation(deps) {
|
|
@@ -2,21 +2,21 @@ import { homedir } from 'node:os';
|
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
|
-
import { t as teamRequest, c as createTeamsClient } from './client-
|
|
6
|
-
import { b as readCredentialsForConfiguredRelay } from './persistence-
|
|
5
|
+
import { t as teamRequest, c as createTeamsClient } from './client-Wr_BiOon.mjs';
|
|
6
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-D_zVC4Xz.mjs';
|
|
7
7
|
import { a as installTeamSkill, i as installAutomationSkill } from './install-B8O1JpJH.mjs';
|
|
8
8
|
import 'node:child_process';
|
|
9
9
|
import 'node:util';
|
|
10
10
|
import 'node:path';
|
|
11
11
|
import './index-CiRMvS73.mjs';
|
|
12
12
|
import '@paralleldrive/cuid2';
|
|
13
|
-
import './configuration-
|
|
13
|
+
import './configuration-i9MVy0a5.mjs';
|
|
14
14
|
import 'node:fs';
|
|
15
|
-
import './package-
|
|
16
|
-
import './context-
|
|
15
|
+
import './package-CIW5lwaN.mjs';
|
|
16
|
+
import './context-DvdZsGgl.mjs';
|
|
17
17
|
import './authRelay-DhQhkBvX.mjs';
|
|
18
18
|
import 'tweetnacl';
|
|
19
|
-
import './logger-
|
|
19
|
+
import './logger-BiKmiREe.mjs';
|
|
20
20
|
import 'chalk';
|
|
21
21
|
import './resources-CLP_MpK4.mjs';
|
|
22
22
|
|
|
@@ -4,21 +4,21 @@ 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-CMKgB-76.cjs');
|
|
8
|
+
var persistence = require('./persistence-BOEZtiKb.cjs');
|
|
9
9
|
var install = require('./install-BOHlqewf.cjs');
|
|
10
10
|
require('node:child_process');
|
|
11
11
|
require('node:util');
|
|
12
12
|
require('node:path');
|
|
13
13
|
require('./index-44o_qMvE.cjs');
|
|
14
14
|
require('@paralleldrive/cuid2');
|
|
15
|
-
require('./configuration-
|
|
15
|
+
require('./configuration-Cl9kOv09.cjs');
|
|
16
16
|
require('node:fs');
|
|
17
|
-
require('./package-
|
|
18
|
-
require('./context-
|
|
17
|
+
require('./package-Djdgx8nb.cjs');
|
|
18
|
+
require('./context-BxODP3mG.cjs');
|
|
19
19
|
require('./authRelay-Dy1qU9td.cjs');
|
|
20
20
|
require('tweetnacl');
|
|
21
|
-
require('./logger-
|
|
21
|
+
require('./logger-BtWBoP60.cjs');
|
|
22
22
|
require('chalk');
|
|
23
23
|
require('./resources-BZ_Be0qM.cjs');
|
|
24
24
|
|
|
@@ -3,7 +3,7 @@ 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-BiKmiREe.mjs';
|
|
7
7
|
import { p as projectPath } from './projectPath-BTBIMB57.mjs';
|
|
8
8
|
import { a as accountClaudeSettings } from './wrapperAccount-z8Swrd08.mjs';
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ 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-BtWBoP60.cjs');
|
|
9
9
|
var projectPath = require('./projectPath-C3ioB4Bu.cjs');
|
|
10
10
|
var wrapperAccount = require('./wrapperAccount-nGGMJDBF.cjs');
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ 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-HVEN1e7o.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) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var configuration = require('./configuration-
|
|
3
|
+
var configuration = require('./configuration-Cl9kOv09.cjs');
|
|
4
4
|
var index = require('./index-44o_qMvE.cjs');
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var context = require('./context-
|
|
7
|
-
var client = require('./client-
|
|
8
|
-
var format = require('./format-
|
|
5
|
+
var persistence = require('./persistence-BOEZtiKb.cjs');
|
|
6
|
+
var context = require('./context-BxODP3mG.cjs');
|
|
7
|
+
var client = require('./client-DP8FabOE.cjs');
|
|
8
|
+
var format = require('./format-B5V7ie8N.cjs');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:os');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-Djdgx8nb.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-BtWBoP60.cjs');
|
|
20
20
|
require('chalk');
|
|
21
21
|
require('node:util');
|
|
22
22
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as configuration } from './configuration-
|
|
1
|
+
import { c as configuration } from './configuration-i9MVy0a5.mjs';
|
|
2
2
|
import { E as createBuiltinTodoClient, F as ISSUE_LIMITS, G as sortBuiltinTodos, H as isIssueClosed, J as BUILTIN_TODO_SKILL } from './index-CiRMvS73.mjs';
|
|
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-
|
|
3
|
+
import { b as readCredentialsForConfiguredRelay } from './persistence-D_zVC4Xz.mjs';
|
|
4
|
+
import { r as readTeamScope, t as teamScopePath } from './context-DvdZsGgl.mjs';
|
|
5
|
+
import { a as IssueRequestError, s as sharedIssuesClient, i as importLegacyTodosOnce, I as IssuesUnsupportedError } from './client-CX8kRedW.mjs';
|
|
6
|
+
import { d as describeIssueError } from './format-Dc5zMslz.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-CIW5lwaN.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-BiKmiREe.mjs';
|
|
18
18
|
import 'chalk';
|
|
19
19
|
import 'node:util';
|
|
20
20
|
|
|
@@ -1,38 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var z = require('zod');
|
|
4
|
-
var client = require('./client-
|
|
4
|
+
var client = require('./client-CMKgB-76.cjs');
|
|
5
5
|
|
|
6
|
+
const TEAM_VIEW_RECENT_MESSAGES = 20;
|
|
6
7
|
const CLOSED_GOAL_CHARS = 200;
|
|
8
|
+
const MESSAGE_BODY_CHARS = 500;
|
|
7
9
|
const closed = (task) => task.status === "done" || task.status === "cancelled";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
const undelivered = (m) => m.deliveredAt === null && m.cancelledAt === void 0;
|
|
11
|
+
function teamToolView(team, options = {}) {
|
|
12
|
+
const { tasks = [], messages = [], operations = [], bots = [], schedules, creationLaunch: _launch, capacityWarned: _warned, ...rest } = team;
|
|
13
|
+
const limit = options.messagesLimit ?? TEAM_VIEW_RECENT_MESSAGES;
|
|
14
|
+
const mine = options.botId ? messages.filter((m) => m.senderBotId === options.botId || m.recipientBotId === options.botId) : messages;
|
|
15
|
+
const pinned = (m) => undelivered(m) && (!options.botId || m.recipientBotId === options.botId);
|
|
16
|
+
const recent = new Set(mine.filter((m) => !pinned(m)).slice(limit > 0 ? -limit : mine.length).map((m) => m.id));
|
|
17
|
+
const shown = mine.filter((m) => recent.has(m.id) || pinned(m));
|
|
18
|
+
const closedTasks = tasks.filter(closed);
|
|
19
|
+
const closedCounts = { done: closedTasks.filter((t) => t.status === "done").length, cancelled: closedTasks.filter((t) => t.status === "cancelled").length };
|
|
14
20
|
return {
|
|
15
21
|
...rest,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
...options.botId ? { selfBotId: options.botId } : {},
|
|
23
|
+
bots: bots.map((bot) => ({ id: bot.id, name: bot.name, root: bot.root, activity: bot.activity, lastEvent: bot.lastEvent })),
|
|
24
|
+
tasks: tasks.filter((t) => !closed(t)).map(openTaskView),
|
|
25
|
+
closedTasks: options.includeClosed ? closedTasks.map(closedTaskSummary) : closedCounts,
|
|
26
|
+
messages: shown.map(messageView),
|
|
27
|
+
...schedules?.length ? { schedules: schedules.map((s) => ({ ...s, body: clip(s.body, CLOSED_GOAL_CHARS) })) } : {},
|
|
20
28
|
omitted: {
|
|
21
|
-
closedTaskDetails: closedTasks,
|
|
22
|
-
olderMessages:
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
closedTaskDetails: options.includeClosed ? 0 : closedTasks.length,
|
|
30
|
+
olderMessages: mine.length - shown.length,
|
|
31
|
+
...options.botId ? { otherMembersMessages: messages.length - mine.length } : {},
|
|
32
|
+
operations: operations.length,
|
|
33
|
+
unfinishedOperations: operations.filter((o) => o.status !== "completed").length,
|
|
34
|
+
hint: "Compact view: goals and message bodies are clipped, closed tasks are counted, operations are left out. \u9700\u8981\u5B8C\u6574\u5185\u5BB9\u65F6\u7528 taskId \u8C03 team_inspect (one task: full goal, acceptance, attempts with results, its messages and operations); includeClosed=true lists closed tasks, messagesLimit sets how many recent messages, full=true returns the whole team (very large)."
|
|
25
35
|
}
|
|
26
36
|
};
|
|
27
37
|
}
|
|
38
|
+
function openTaskView(task) {
|
|
39
|
+
const current = task.attempts.find((a) => a.id === task.currentAttemptId);
|
|
40
|
+
return { id: task.id, parentTaskId: task.parentTaskId, status: task.status, goal: clip(task.goal, CLOSED_GOAL_CHARS), assigneeBotId: task.assigneeBotId, ownerBotId: task.ownerBotId, currentAttemptId: task.currentAttemptId, ...current ? { currentAttemptStatus: current.status } : {}, goalVersion: task.goalVersion, cleanup: task.cleanup, attempts: task.attempts.length };
|
|
41
|
+
}
|
|
42
|
+
function messageView({ id: _id, deliveredAt, body, ...m }) {
|
|
43
|
+
return { ...m, body: clip(body, MESSAGE_BODY_CHARS), ...body.length > MESSAGE_BODY_CHARS ? { bodyChars: body.length } : {}, ...deliveredAt === null ? { undelivered: true } : {} };
|
|
44
|
+
}
|
|
28
45
|
function teamTaskToolView(team, taskId) {
|
|
29
46
|
const task = team.tasks.find((t) => t.id === taskId);
|
|
30
47
|
if (!task) return { taskId, error: "Task not visible: it does not exist, is outside your scope, or was archived after it closed." };
|
|
31
48
|
return { task, messages: team.messages.filter((m) => m.taskId === taskId), operations: team.operations.filter((o) => o.taskId === taskId), capacity: team.capacity };
|
|
32
49
|
}
|
|
33
|
-
function openTask(task) {
|
|
34
|
-
return { ...task, attempts: task.attempts.map((a) => a.id === task.currentAttemptId ? a : { id: a.id, botId: a.botId, status: a.status, goalVersion: a.goalVersion }) };
|
|
35
|
-
}
|
|
36
50
|
function closedTaskSummary(task) {
|
|
37
51
|
const accepted = task.attempts.find((a) => a.id === task.currentAttemptId);
|
|
38
52
|
return { id: task.id, parentTaskId: task.parentTaskId, status: task.status, goal: clip(task.goal, CLOSED_GOAL_CHARS), assigneeBotId: task.assigneeBotId, ownerBotId: task.ownerBotId, currentAttemptId: task.currentAttemptId, goalVersion: task.goalVersion, cleanup: task.cleanup, attempts: task.attempts.length, ...accepted?.result ? { result: clip(accepted.result, CLOSED_GOAL_CHARS) } : {}, ...task.closedAt ? { closedAt: task.closedAt } : {} };
|
|
@@ -47,11 +61,12 @@ function teamActionReceipt(result, actedTaskId) {
|
|
|
47
61
|
const schedule = typeof rest.scheduleId === "string" ? schedules.find((s) => s.id === rest.scheduleId) : void 0;
|
|
48
62
|
const taskOperations = taskId ? operations.filter((o) => o.taskId === taskId && o.status !== "completed") : [];
|
|
49
63
|
return {
|
|
64
|
+
ok: true,
|
|
50
65
|
...rest,
|
|
51
66
|
...taskId ? { taskId } : {},
|
|
52
67
|
...task ? { task: taskReceipt(task) } : {},
|
|
53
|
-
...operation ? { operation:
|
|
54
|
-
...taskOperations.length ? { taskOperations: taskOperations.map(
|
|
68
|
+
...operation ? { operation: operationReceipt(operation) } : {},
|
|
69
|
+
...taskOperations.length ? { taskOperations: taskOperations.map(operationReceipt) } : {},
|
|
55
70
|
...schedule ? { schedule } : {},
|
|
56
71
|
team: {
|
|
57
72
|
id: team.id,
|
|
@@ -69,7 +84,7 @@ function taskReceipt(task) {
|
|
|
69
84
|
const current = task.attempts.find((a) => a.id === task.currentAttemptId);
|
|
70
85
|
return { id: task.id, parentTaskId: task.parentTaskId, status: task.status, goal: clip(task.goal, CLOSED_GOAL_CHARS), assigneeBotId: task.assigneeBotId, ownerBotId: task.ownerBotId, currentAttemptId: task.currentAttemptId, goalVersion: task.goalVersion, cleanup: task.cleanup, attempts: task.attempts.length, ...current ? { currentAttempt: { id: current.id, botId: current.botId, status: current.status, goalVersion: current.goalVersion, generation: current.generation } } : {} };
|
|
71
86
|
}
|
|
72
|
-
const
|
|
87
|
+
const operationReceipt = (op) => ({ id: op.id, type: op.type, botId: op.botId, status: op.status, error: op.error });
|
|
73
88
|
|
|
74
89
|
const TEAM_TOOL_NAMES = ["team_create", "team_join", "team_inspect", "team_delegate", "team_message", "team_submit", "team_accept", "team_return", "team_cancel", "team_handoff", "team_schedule_create", "team_schedule_pause", "team_schedule_resume", "team_schedule_cancel"];
|
|
75
90
|
const id = z.z.string().min(1).max(128);
|
|
@@ -85,26 +100,31 @@ function registerTeamsTools(server, sessionId, client$1 = client.createTeamsClie
|
|
|
85
100
|
}
|
|
86
101
|
});
|
|
87
102
|
};
|
|
103
|
+
const compact = (result, options = {}) => Array.isArray(result?.team?.tasks) && !result.team.omitted ? { ...result, team: teamToolView(result.team, { botId: typeof result.botId === "string" ? result.botId : void 0, ...options }) } : result;
|
|
88
104
|
register(
|
|
89
105
|
"team_create",
|
|
90
106
|
"Create an official Very Happy team and join this session as its root bot. Does not grant access outside this account. The team joins this session's project, or a new project with the team's name; its members share that project's context.",
|
|
91
107
|
{ name: id, machineId: id.optional(), requestId, projectId: id.optional().describe("Existing project to put the team in"), noProject: z.z.boolean().optional().describe("Create the team without a project") },
|
|
92
|
-
(args) => client$1.initialize(args)
|
|
108
|
+
async (args) => compact(await client$1.initialize(args))
|
|
93
109
|
);
|
|
94
110
|
register(
|
|
95
111
|
"team_join",
|
|
96
112
|
"Join an existing team as a root bot using this session owner\u2019s account. Scoped workers cannot elevate their role.",
|
|
97
113
|
{ teamId: id, name: id, botId: id.optional().describe("Existing root bot to reconnect; preserves its identity"), requestId },
|
|
98
|
-
(args) => client$1.initialize(args)
|
|
114
|
+
async (args) => compact(await client$1.initialize(args))
|
|
99
115
|
);
|
|
100
|
-
const compact = (result) => result?.team && !result.team.omitted ? { ...result, team: teamToolView(result.team) } : result;
|
|
101
116
|
register(
|
|
102
117
|
"team_inspect",
|
|
103
|
-
"Read your visible team tasks, attempts and messages. Inspect before decisions; submission is not acceptance. Returns a compact view (
|
|
104
|
-
{
|
|
118
|
+
"Read your visible team tasks, attempts and messages. Inspect before decisions; submission is not acceptance. Returns a compact view (members, open tasks with clipped goals, closed-task counts, your recent messages clipped, capacity); pass taskId for one task in full (goal, acceptance, attempts and results, its messages), includeClosed / messagesLimit to widen the view, or full=true for the whole team.",
|
|
119
|
+
{
|
|
120
|
+
taskId: id.optional().describe("Return this task in full: goal, acceptance, all attempts with results, its messages and operations"),
|
|
121
|
+
includeClosed: z.z.boolean().optional().describe("List closed (done / cancelled) tasks with clipped goals instead of counting them"),
|
|
122
|
+
messagesLimit: z.z.number().int().min(0).max(500).optional().describe("How many of your most recent messages to list (default 20); undelivered ones are always listed"),
|
|
123
|
+
full: z.z.boolean().optional().describe("Return the whole team view (can be very large)")
|
|
124
|
+
},
|
|
105
125
|
async (args) => {
|
|
106
126
|
const result = await client$1.inspect();
|
|
107
|
-
return args.full ? result : args.taskId ? teamTaskToolView(result.team, args.taskId) : compact(result);
|
|
127
|
+
return args.full ? result : args.taskId ? teamTaskToolView(result.team, args.taskId) : compact(result, { includeClosed: args.includeClosed, messagesLimit: args.messagesLimit });
|
|
108
128
|
}
|
|
109
129
|
);
|
|
110
130
|
const action = (name, description, fields) => register(
|