@cleocode/cleo 2026.10.27 → 2026.11.1-canary.11
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/README.md +28 -365
- package/dist/.source-stamp.json +4 -0
- package/dist/cli/{adapter-ZIB3OAPD.js → adapter-JZET3CDA.js} +5 -5
- package/dist/cli/{add-TBJUMJW7.js → add-W23ZQJ2U.js} +5 -5
- package/dist/cli/{add-batch-GGKVPTS5.js → add-batch-MNLEUT24.js} +5 -5
- package/dist/cli/{admin-NGPG2LSO.js → admin-3NN6QIJE.js} +5 -5
- package/dist/cli/{admin-PEYBYMZN.js → admin-LOGL2TBY.js} +16 -6
- package/dist/cli/{adr-2XVNDYZ7.js → adr-QYUJRVHW.js} +5 -5
- package/dist/cli/{agent-B23GPWYM.js → agent-KKMNGKR2.js} +3 -548
- package/dist/cli/{agent-outputs-SZ45UZVC.js → agent-outputs-ZEKMONK2.js} +2 -2
- package/dist/cli/{analyze-A44RDCSX.js → analyze-VUEJUV24.js} +5 -5
- package/dist/cli/{archive-QQB6M2RF.js → archive-I2XT6DGU.js} +5 -5
- package/dist/cli/{archive-stats-K4YKKYQV.js → archive-stats-J5AMTF7W.js} +5 -5
- package/dist/cli/{attention-KAHDF6KD.js → attention-736TGLSO.js} +5 -5
- package/dist/cli/{audit-ALSFSHEI.js → audit-JTEHB556.js} +2 -2
- package/dist/cli/{auth-5L3XPCXL.js → auth-QNFL6SIX.js} +5 -5
- package/dist/cli/{backfill-5B2FWBIB.js → backfill-QCEV5ZJR.js} +2 -2
- package/dist/cli/{backup-IYFULQTM.js → backup-6D6Y7S4X.js} +39 -10
- package/dist/cli/{backup-inspect-SYI6JWYI.js → backup-inspect-YS4HJUFF.js} +3 -3
- package/dist/cli/{backup-recover-I64KKABA.js → backup-recover-6RRWTZUF.js} +3 -3
- package/dist/cli/{blockers-KYNJJKZQ.js → blockers-TXOHUIQZ.js} +5 -5
- package/dist/cli/{brain-3E6GWG33.js → brain-MPZZ73RR.js} +2 -2
- package/dist/cli/{briefing-J6PDDZ2C.js → briefing-HR7WKAP7.js} +5 -5
- package/dist/cli/{caamp-4GLHZPAB.js → caamp-6BHIZIRC.js} +2 -2
- package/dist/cli/{cancel-A4OCUVDI.js → cancel-RPBL7XNS.js} +16 -6
- package/dist/cli/{canon-NPF5RODM.js → canon-UQKCAL3J.js} +13 -8
- package/dist/cli/{chunk-SXXOC6KZ.js → canon-docs-ZXWC4AFI.js} +51 -4
- package/dist/cli/{cant-JZXHRLE2.js → cant-7YDYKDCE.js} +2 -2
- package/dist/cli/{changeset-WTR2KKML.js → changeset-XDMWUH4W.js} +2 -2
- package/dist/cli/{check-HHT4J5ZM.js → check-ALYB2DED.js} +43 -5
- package/dist/cli/{check-ZT6O5JDS.js → check-BNV2Z7NL.js} +45 -23
- package/dist/cli/{checkpoint-THR2KML7.js → checkpoint-WGT5Q4IV.js} +2 -2
- package/dist/cli/{chunk-6G43T2BO.js → chunk-2DRYEF4Q.js} +2 -2
- package/dist/cli/{chunk-4FO2MCCU.js → chunk-2EBQ2UPV.js} +2 -2
- package/dist/cli/{chunk-G63BB37P.js → chunk-2FVSEFH6.js} +3 -3
- package/dist/cli/{chunk-6N6WGLXE.js → chunk-2NXQCE4N.js} +10 -2
- package/dist/cli/{chunk-BXEMLY6P.js → chunk-367CXLZW.js} +2 -2
- package/dist/cli/{chunk-DNR7ZPOW.js → chunk-3C4ABVIM.js} +2 -2
- package/dist/cli/{chunk-YJQL26VS.js → chunk-3FLFKMKA.js} +3 -3
- package/dist/cli/{chunk-FBR2NQW4.js → chunk-4C4NJVR3.js} +2 -2
- package/dist/cli/{chunk-QITYNI2H.js → chunk-57YMZSNI.js} +2 -2
- package/dist/cli/{chunk-HQG5YZCJ.js → chunk-5D5EFJTJ.js} +2 -2
- package/dist/cli/{chunk-2LFWGSPE.js → chunk-5OFSGZLM.js} +2 -2
- package/dist/cli/{chunk-Y6FHWDNX.js → chunk-6KWKDXMT.js} +2 -2
- package/dist/cli/{chunk-RX5F2FUP.js → chunk-6VT7QNQH.js} +2 -2
- package/dist/cli/{chunk-D7QZ4WSJ.js → chunk-6ZCDCJB4.js} +2 -2
- package/dist/cli/{chunk-4QI7JOPI.js → chunk-762STE53.js} +2 -2
- package/dist/cli/{chunk-SP66YNWA.js → chunk-76QLAP54.js} +2 -2
- package/dist/cli/{chunk-7VRIP4MD.js → chunk-7AEZ35UT.js} +2 -2
- package/dist/cli/{chunk-64OLQ6OH.js → chunk-7VAYYOTQ.js} +2 -2
- package/dist/cli/{chunk-YM7QMFFW.js → chunk-AXFIVWJZ.js} +2 -2
- package/dist/cli/{chunk-AI4BE3MJ.js → chunk-B3NZQ2Y4.js} +2 -2
- package/dist/cli/{chunk-MLUCI3JC.js → chunk-BELA5D4T.js} +15 -6
- package/dist/cli/{chunk-2UQB3DWD.js → chunk-BJL3MZUI.js} +2 -2
- package/dist/cli/{chunk-UPFW3DRJ.js → chunk-BSIPR5S5.js} +2 -2
- package/dist/cli/{chunk-JRDAITPC.js → chunk-D75KPNMP.js} +18 -19
- package/dist/cli/{chunk-NBFD6HZX.js → chunk-DA7LGEOB.js} +2 -2
- package/dist/cli/{chunk-ESI6Q4OS.js → chunk-FD6EQLV7.js} +1 -2
- package/dist/cli/{chunk-5IFMSDWF.js → chunk-FJ5CWNTM.js} +2 -2
- package/dist/cli/{chunk-XSURVN6Y.js → chunk-FYS4D5VL.js} +2 -2
- package/dist/cli/chunk-HACZVXOL.js +92 -0
- package/dist/cli/{chunk-JBLHNKSK.js → chunk-HPRGQCRR.js} +2 -2
- package/dist/cli/{chunk-362WHUCT.js → chunk-IC33OPZA.js} +2 -2
- package/dist/cli/{chunk-TVNXFYOJ.js → chunk-ICFMF56Q.js} +4 -4
- package/dist/cli/{chunk-Y7ZNHNVQ.js → chunk-IDFVCC6T.js} +2 -2
- package/dist/cli/{chunk-NDN5LU2T.js → chunk-IDZSVRTW.js} +2 -2
- package/dist/cli/{chunk-SLNCIDY5.js → chunk-K3VVRO75.js} +2 -2
- package/dist/cli/{owner-override-cap-53HYZHIL.js → chunk-KA636FBJ.js} +45 -5
- package/dist/cli/{chunk-GNASLIE2.js → chunk-KNHQAYMR.js} +2 -2
- package/dist/cli/{chunk-THHPBHFL.js → chunk-LVPOIHUW.js} +2 -2
- package/dist/cli/{chunk-IYP3ACPP.js → chunk-M7L5XJYS.js} +2 -2
- package/dist/cli/{chunk-PGR4RWQL.js → chunk-MYBFLQT4.js} +8 -5
- package/dist/cli/{chunk-W56TDRLF.js → chunk-OMLSVE5U.js} +2 -2
- package/dist/cli/{chunk-TNLB7XJO.js → chunk-QZKOWHXO.js} +2 -2
- package/dist/cli/{chunk-5KN6IF7F.js → chunk-SKQG2E6A.js} +2 -2
- package/dist/cli/{chunk-J4ZSHCUO.js → chunk-TBIXOLSO.js} +2 -2
- package/dist/cli/{chunk-QWNKLLLG.js → chunk-TM72T27J.js} +2 -20
- package/dist/cli/{chunk-SHRGWWE2.js → chunk-TRUE5NCE.js} +12 -5
- package/dist/cli/{chunk-T2TE45UH.js → chunk-UAHZXF7P.js} +2 -2
- package/dist/cli/{chunk-3SWQFMWN.js → chunk-UGEJXSUY.js} +2 -2
- package/dist/cli/{chunk-NPEWU2LO.js → chunk-UYNMYQIG.js} +2 -2
- package/dist/cli/{chunk-S2IS4DXJ.js → chunk-VR6TPIRF.js} +2 -2
- package/dist/cli/{chunk-GL5GCK7T.js → chunk-VV65VS2B.js} +2 -2
- package/dist/cli/{chunk-OIS3BDSL.js → chunk-YNBEP6TJ.js} +23 -11
- package/dist/cli/{chunk-TUUKU4H7.js → chunk-YQQXHUUN.js} +15 -5
- package/dist/cli/{chunk-RBI6IBDF.js → chunk-Z24VFMRA.js} +2 -2
- package/dist/cli/{claim-MFFSWD64.js → claim-NJMCYE4S.js} +5 -5
- package/dist/cli/{classify-H3W4U76E.js → classify-KWJ3TFEC.js} +2 -2
- package/dist/cli/{cli-5PJ2B6ZH.js → cli-FIW3KVGU.js} +5 -5
- package/dist/cli/{cloud-IEDKFMLI.js → cloud-2H332MHX.js} +4 -4
- package/dist/cli/{code-IUDQNALE.js → code-NB4L5SQS.js} +2 -2
- package/dist/cli/{complete-2IN4YEWL.js → complete-ZVXR5WFT.js} +6 -6
- package/dist/cli/{complexity-JVEIZE5M.js → complexity-J7QTUVEQ.js} +5 -5
- package/dist/cli/{compliance-MC3X2M34.js → compliance-JA6VK45M.js} +5 -5
- package/dist/cli/{config-Z5BXGRZB.js → config-G7L2NAIX.js} +12 -7
- package/dist/cli/{consensus-T6UARQTD.js → consensus-TMDIZHXI.js} +5 -5
- package/dist/cli/{context-M4F3YXZE.js → context-6GLTMU2N.js} +5 -5
- package/dist/cli/{contribution-76FJYJKR.js → contribution-HPVDMKN6.js} +5 -5
- package/dist/cli/{curator-3YXUY4N7.js → curator-O2FXIQFI.js} +2 -2
- package/dist/cli/{current-EFRCVSWL.js → current-QFANPTZ4.js} +5 -5
- package/dist/cli/{daemon-UAAMDN6C.js → daemon-XTMW67JG.js} +5 -5
- package/dist/cli/{dash-ZEBYLYPV.js → dash-K25EK3MM.js} +5 -5
- package/dist/cli/{decide-GQTJOC55.js → decide-7JM6V3MS.js} +2 -2
- package/dist/cli/{decompose-XTK2DXSM.js → decompose-D2CI6H4Z.js} +5 -5
- package/dist/cli/{decomposition-ZDACSPOU.js → decomposition-HM2POZII.js} +5 -5
- package/dist/cli/{delete-6YZADILS.js → delete-WKIEMXKN.js} +5 -5
- package/dist/cli/{deps-WTASB2GB.js → deps-2X5EWRGY.js} +5 -5
- package/dist/cli/{detect-IITE5EBW.js → detect-SWEMXU4U.js} +5 -5
- package/dist/cli/{detect-drift-PVC7IPHL.js → detect-drift-M5C4RFJ5.js} +15 -12
- package/dist/cli/{diagnostics-MFUOSLSQ.js → diagnostics-6STQBKON.js} +5 -5
- package/dist/cli/{docs-AIZLN3ZE.js → docs-O5A34WJY.js} +172 -101
- package/dist/cli/{docs-NF5COLOB.js → docs-SI2YNPSG.js} +216 -30
- package/dist/cli/{doctor-4DWCNDOP.js → doctor-45UUXTVQ.js} +57 -52
- package/dist/cli/{doctor-ac-bindings-HPTG3DDJ.js → doctor-ac-bindings-PBJQ5AS6.js} +3 -3
- package/dist/cli/{doctor-acceptance-drift-P7DOAY54.js → doctor-acceptance-drift-FIV25NRE.js} +3 -3
- package/dist/cli/{doctor-credentials-TBRT7RAV.js → doctor-credentials-W7EGOG54.js} +3 -3
- package/dist/cli/{doctor-db-substrate-ZMLTPGQF.js → doctor-db-substrate-DQJDPL4K.js} +3 -3
- package/dist/cli/{doctor-dep-cycles-QWFYH2JK.js → doctor-dep-cycles-2RK2MAHL.js} +3 -3
- package/dist/cli/{doctor-exodus-FYBTDXNQ.js → doctor-exodus-SCIA5CZ5.js} +3 -3
- package/dist/cli/{doctor-exodus-residue-S7EKSTZS.js → doctor-exodus-residue-N7R3FRC5.js} +3 -3
- package/dist/cli/{doctor-fk-check-CNZCA74C.js → doctor-fk-check-5TND2DZH.js} +3 -3
- package/dist/cli/{doctor-global-delivery-FICIWVP6.js → doctor-global-delivery-ENAHOZF7.js} +3 -3
- package/dist/cli/{doctor-goal-runtime-UIPZRP5Y.js → doctor-goal-runtime-PN6LJFPN.js} +3 -3
- package/dist/cli/{doctor-heavy-command-hook-SJHLYWEI.js → doctor-heavy-command-hook-UK3PLJRM.js} +3 -3
- package/dist/cli/{doctor-hooks-GHQIAFOY.js → doctor-hooks-ABHXHN2C.js} +3 -3
- package/dist/cli/{doctor-legacy-backups-USISQQ5C.js → doctor-legacy-backups-6NXVR43I.js} +3 -3
- package/dist/cli/{doctor-legacy-reaper-54BUE5RK.js → doctor-legacy-reaper-SWQOAPNV.js} +3 -3
- package/dist/cli/{doctor-malformed-ids-LZNVED2E.js → doctor-malformed-ids-VPZE6A4O.js} +3 -3
- package/dist/cli/{doctor-manifest-rows-3L6RUH3C.js → doctor-manifest-rows-GHPAYQ6I.js} +3 -3
- package/dist/cli/{doctor-memory-guard-Z62J6U3O.js → doctor-memory-guard-Z6IMLQ5C.js} +3 -3
- package/dist/cli/{doctor-migrations-EYB6XSZ2.js → doctor-migrations-6HICMUH5.js} +3 -3
- package/dist/cli/{doctor-nexus-residency-GFS37HCL.js → doctor-nexus-residency-VEOZBSYZ.js} +3 -3
- package/dist/cli/{doctor-project-identity-A3C6ZWUQ.js → doctor-project-identity-UPRBKXXU.js} +3 -3
- package/dist/cli/{doctor-projects-73UHVECZ.js → doctor-projects-3BKEL6SE.js} +3 -3
- package/dist/cli/{doctor-projects-registry-5RGRJMCE.js → doctor-projects-registry-JQRWKMRP.js} +3 -3
- package/dist/cli/{doctor-release-readiness-7G3OGH2R.js → doctor-release-readiness-ZAK5RKP7.js} +3 -3
- package/dist/cli/{doctor-repair-IK6OSUHA.js → doctor-repair-KP66YRVA.js} +3 -3
- package/dist/cli/{doctor-row-identity-2CULRXQ2.js → doctor-row-identity-7BDE6BMR.js} +3 -3
- package/dist/cli/{doctor-skill-fixtures-OQ2RMIR6.js → doctor-skill-fixtures-MJQ7BJRE.js} +3 -3
- package/dist/cli/{doctor-split-brain-5YQGDVTY.js → doctor-split-brain-FFQ7U2FI.js} +3 -3
- package/dist/cli/{doctor-superseded-store-JLATIXXP.js → doctor-superseded-store-FQSFKMEX.js} +3 -3
- package/dist/cli/{doctor-sync-journal-MZM3WUIT.js → doctor-sync-journal-AM5M5RGO.js} +3 -3
- package/dist/cli/{doctor-sync-triggers-IZFC62D7.js → doctor-sync-triggers-4GSCFCL7.js} +3 -3
- package/dist/cli/{doctor-system-TJINX2M3.js → doctor-system-S7KYSUXW.js} +3 -3
- package/dist/cli/{doctor-tool-locks-VXKJZKAY.js → doctor-tool-locks-XRRQJ3MK.js} +3 -3
- package/dist/cli/{doctor-twin-collapse-C5GLUSAO.js → doctor-twin-collapse-SJM5LNAO.js} +3 -3
- package/dist/cli/doctor-type-matrix-6MJXOZI2.js +26 -0
- package/dist/cli/{doctor-worktree-stores-WZMB4ZHG.js → doctor-worktree-stores-TIR5ZDJ4.js} +3 -3
- package/dist/cli/{done-A7ITQSJT.js → done-TXCQGNT7.js} +91 -8
- package/dist/cli/{event-RD4EI52P.js → event-J2A7PIDI.js} +2 -2
- package/dist/cli/{exists-U33AFKXF.js → exists-NN5QNXFW.js} +2 -2
- package/dist/cli/{exodus-QHAQC5SH.js → exodus-VIV4AX54.js} +2 -2
- package/dist/cli/{export-OTDQUAQQ.js → export-T4YD6Q3U.js} +5 -5
- package/dist/cli/{export-tasks-BKVXMFLD.js → export-tasks-VB5U3YMC.js} +5 -5
- package/dist/cli/{federation-GZCJIYMK.js → federation-7WZTYIX7.js} +2 -2
- package/dist/cli/{find-BWKYKZEN.js → find-KMTKZ7FY.js} +5 -5
- package/dist/cli/{focus-772SYK7Z.js → focus-3BLWBLBG.js} +5 -5
- package/dist/cli/{focus-H5CBCFFV.js → focus-6ZYKBB3X.js} +2 -2
- package/dist/cli/{gateway-PJ2A6TNM.js → gateway-WVQ3QQFW.js} +2 -2
- package/dist/cli/{gc-KG3D2PSR.js → gc-PZGIBTWQ.js} +3 -3
- package/dist/cli/{go-AEDN2TNP.js → go-LK5WEP3M.js} +2 -2
- package/dist/cli/{goal-TG74GKBK.js → goal-IRTYU7XD.js} +3 -3
- package/dist/cli/{grade-BZYBWDA7.js → grade-GIXFAUVP.js} +5 -5
- package/dist/cli/{graph-LB2TBRH6.js → graph-SVPHG4VG.js} +8 -33
- package/dist/cli/{history-XIYAXOUF.js → history-LPGGTRI7.js} +5 -5
- package/dist/cli/{hook-GS5ZZX46.js → hook-VMFPDWVJ.js} +2 -2
- package/dist/cli/hook-entry.js +105 -7
- package/dist/cli/hygiene-NJD3GR56.js +142 -0
- package/dist/cli/{import-C2QISQC7.js → import-55RUOSXO.js} +5 -5
- package/dist/cli/{import-tasks-P6FYXAAS.js → import-tasks-RXPNEFPW.js} +5 -5
- package/dist/cli/index.js +256 -204
- package/dist/cli/{init-XLIT5JVO.js → init-KNRJ22RZ.js} +5 -5
- package/dist/cli/{inject-EDZVSPTW.js → inject-43VJCL2Y.js} +5 -5
- package/dist/cli/{install-global-FFNYQ366.js → install-global-GU4F2KKV.js} +2 -2
- package/dist/cli/{intelligence-OE7SIVR5.js → intelligence-36SGMEHH.js} +5 -5
- package/dist/cli/{issue-S67EZXN7.js → issue-VYWZG6BR.js} +5 -5
- package/dist/cli/{janitor-GMTGHNOZ.js → janitor-LU6EA55M.js} +2 -2
- package/dist/cli/{labels-M7GIBYAQ.js → labels-X6BEE5ZZ.js} +5 -5
- package/dist/cli/{lean-FNQ3D4VT.js → lean-GXLAUNNG.js} +2 -2
- package/dist/cli/{lifecycle-NO5QDJ2J.js → lifecycle-5P7AVPSI.js} +6 -6
- package/dist/cli/{list-VH6DPZ4V.js → list-5N73FV7H.js} +5 -5
- package/dist/cli/{llm-P35U52I5.js → llm-IO53XETC.js} +9 -9
- package/dist/cli/{llm-YVC5HL7D.js → llm-J3SYJEGB.js} +2 -2
- package/dist/cli/{llm-cost-CRIA3VMB.js → llm-cost-DYY7IC4W.js} +3 -3
- package/dist/cli/{llm-stream-YBT4FNWZ.js → llm-stream-G35ANQKL.js} +3 -3
- package/dist/cli/{log-XIPOX6UM.js → log-E7XZBG7W.js} +5 -5
- package/dist/cli/{login-SYEMTZXY.js → login-IRTRPQTX.js} +4 -4
- package/dist/cli/{logout-FVWR2AXZ.js → logout-XEL6AVVB.js} +4 -4
- package/dist/cli/{manifest-A5F2YD35.js → manifest-UZDHLWAN.js} +5 -5
- package/dist/cli/{map-AOMU72RY.js → map-6J27ZMSH.js} +5 -5
- package/dist/cli/{memory-4WNZWJG7.js → memory-CFG7P3MM.js} +65 -18
- package/dist/cli/{memory-GK5WDYWT.js → memory-Y2C7HYDJ.js} +4 -3
- package/dist/cli/merge-JCDDPQIX.js +65 -0
- package/dist/cli/{migrate-agents-v2-IX3IBBIT.js → migrate-agents-v2-4W4ZSHZM.js} +3 -3
- package/dist/cli/{migrate-claude-mem-OTSYHYBZ.js → migrate-claude-mem-MDBLLJ22.js} +6 -6
- package/dist/cli/{next-YUZ4X7NB.js → next-MSGFEI7M.js} +5 -5
- package/dist/cli/{nexus-RYH4IAG3.js → nexus-IK7QLEDF.js} +3 -11
- package/dist/cli/{nexus-YHPP3RZU.js → nexus-XULYITP6.js} +98 -63
- package/dist/cli/{nexus-vault-cli-2R6ALKUP.js → nexus-vault-cli-G7QY446L.js} +4 -4
- package/dist/cli/{ops-XPJK3WBN.js → ops-2XDAGO4L.js} +5 -5
- package/dist/cli/{orchestrate-AYBDAVOQ.js → orchestrate-BDU4ZLDN.js} +77 -346
- package/dist/cli/{orchestrate-TWV43SAR.js → orchestrate-SUOWHPIU.js} +147 -140
- package/dist/cli/{otel-TR54MLYU.js → otel-4AS22352.js} +2 -2
- package/dist/cli/owner-override-cap-5XAZD23U.js +31 -0
- package/dist/cli/{owner-password-GQO37FBV.js → owner-password-VBK5RHKP.js} +3 -3
- package/dist/cli/{phase-CFH2NZU5.js → phase-FF6OMRTY.js} +5 -5
- package/dist/cli/{pipeline-LW5HWLBI.js → pipeline-4ATMN26D.js} +3 -3
- package/dist/cli/{pivot-LEBKDG22.js → pivot-S6JDBRK4.js} +5 -5
- package/dist/cli/{plan-6VK5I4BT.js → plan-AY6CF5VB.js} +5 -5
- package/dist/cli/{playbook-YPGSNILZ.js → playbook-JDDX5F3H.js} +3 -3
- package/dist/cli/{playbook-4GKDYZYW.js → playbook-LJOLT6MX.js} +5 -5
- package/dist/cli/{project-QJM7P2HG.js → project-RCRORK6A.js} +3 -3
- package/dist/cli/project-hook-entry.js +1 -1
- package/dist/cli/{promote-4V4ZLAL3.js → promote-YAFPAZEH.js} +5 -5
- package/dist/cli/{provenance-2SFRY42O.js → provenance-2WVSVXNS.js} +5 -5
- package/dist/cli/{provider-G6MBFVHR.js → provider-GJD2MZOF.js} +5 -5
- package/dist/cli/{reason-2AYZ6SGZ.js → reason-QJZGRMSL.js} +5 -5
- package/dist/cli/{reconcile-7CBD7AHH.js → reconcile-JMYN3BON.js} +6 -5
- package/dist/cli/{refresh-memory-JTQYFIC7.js → refresh-memory-XVQE7B7L.js} +2 -2
- package/dist/cli/{relates-FP43JAOK.js → relates-NNOSVBIM.js} +5 -5
- package/dist/cli/{release-NW7XHRVB.js → release-DB23AFID.js} +136 -6
- package/dist/cli/{release-OWPFPUQG.js → release-EI72GMAM.js} +79 -96
- package/dist/cli/release-authorize-OPL262T6.js +84 -0
- package/dist/cli/{remote-ZCCQGM5A.js → remote-XJGF5MGU.js} +2 -2
- package/dist/cli/{renderers-37XPXD3K.js → renderers-AMSXAXLY.js} +2 -2
- package/dist/cli/{reorder-M457CQRR.js → reorder-HFTIHYBZ.js} +5 -5
- package/dist/cli/{reparent-53T6IUUS.js → reparent-JOBADCH5.js} +5 -5
- package/dist/cli/{req-ORMMU5PV.js → req-6JXMXBNA.js} +38 -5
- package/dist/cli/{research-LFGCGIEP.js → research-5GRWQLHM.js} +6 -6
- package/dist/cli/{restore-ZYRIZQUJ.js → restore-ZZH5EUTG.js} +12 -6
- package/dist/cli/{revert-XB7K5DR7.js → revert-2F3RPBGW.js} +2 -2
- package/dist/cli/review-LTRABBAL.js +162 -0
- package/dist/cli/{roadmap-EK6LXBQ4.js → roadmap-THEKOZ3A.js} +5 -5
- package/dist/cli/{run-PZJCIRFD.js → run-LH2KI2BV.js} +57 -4
- package/dist/cli/{safestop-NO57J3RK.js → safestop-3BH4GLOW.js} +5 -5
- package/dist/cli/{saga-NIJMIJE5.js → saga-SMAWF37G.js} +5 -5
- package/dist/cli/{schema-5SBTATBP.js → schema-J4UNFL5K.js} +2 -2
- package/dist/cli/{self-update-7747XBHR.js → self-update-OP7X4SV5.js} +2 -2
- package/dist/cli/{selfimprove-6HSEV3RG.js → selfimprove-MJXG7BIB.js} +5 -5
- package/dist/cli/{selfimprove-IYKG5PF4.js → selfimprove-MQ5WGGVO.js} +2 -2
- package/dist/cli/{sentient-U56VMS6D.js → sentient-B7TXJ2XI.js} +2 -2
- package/dist/cli/{sentient-Z7W7WO74.js → sentient-W3D6ATW5.js} +2 -2
- package/dist/cli/{sequence-T42KPEEQ.js → sequence-VUPNLIB3.js} +5 -5
- package/dist/cli/{service-CBEZWGHC.js → service-ZBMCSGAO.js} +5 -5
- package/dist/cli/{session-XDADM7O4.js → session-5JTABSZR.js} +6 -6
- package/dist/cli/{session-TFVW42XK.js → session-NN655K5R.js} +3 -3
- package/dist/cli/{setup-WZVYP7QA.js → setup-JQ3DFC5Q.js} +4 -4
- package/dist/cli/{show-I2TEU6MP.js → show-OKAPY3KE.js} +5 -6
- package/dist/cli/{skill-YUWT2LC6.js → skill-HOUTOSDX.js} +2 -2
- package/dist/cli/{skills-ZBYRPFRL.js → skills-CJ4UY4VG.js} +7 -7
- package/dist/cli/{snapshot-GMN7LZ4A.js → snapshot-5AUXE72Q.js} +5 -5
- package/dist/cli/{start-FQWDRGJE.js → start-ZB263BD4.js} +5 -5
- package/dist/cli/{stats-D2AU77GH.js → stats-QKNT3RCZ.js} +5 -5
- package/dist/cli/{status-TNLDBR7K.js → status-7BIMUOCS.js} +2 -2
- package/dist/cli/{sticky-FKZFQYNV.js → sticky-IDNWN3F6.js} +5 -5
- package/dist/cli/{sticky-EKL5FD2D.js → sticky-Z2BMRSAB.js} +2 -2
- package/dist/cli/{stop-ZCL7RZPH.js → stop-OCEFE7PM.js} +5 -5
- package/dist/cli/{sync-WM4JLGXF.js → sync-6DQ2OAMG.js} +6 -6
- package/dist/cli/{tasks-RU6AAJKD.js → tasks-BIZI4QJF.js} +30 -5
- package/dist/cli/{tasks-54WNYQZS.js → tasks-Q2XYKLX6.js} +5 -5
- package/dist/cli/{telemetry-RQFRJRBZ.js → telemetry-DCWQTH2I.js} +2 -2
- package/dist/cli/{templates-6H4CTUCW.js → templates-Q3QZQZ62.js} +2 -2
- package/dist/cli/{testing-S7FCPHW5.js → testing-PTDKLHX3.js} +5 -5
- package/dist/cli/{token-BDRGEO3E.js → token-BZEEYQHF.js} +5 -5
- package/dist/cli/{transcript-DVV4EFPG.js → transcript-ZY6UF3TU.js} +2 -2
- package/dist/cli/{update-BD77ORMO.js → update-E5PECNWK.js} +5 -5
- package/dist/cli/{upgrade-EDQ7F6OX.js → upgrade-E6M4ERKP.js} +5 -5
- package/dist/cli/{verify-VOJRQQE2.js → verify-474GA75M.js} +12 -7
- package/dist/cli/{web-BPCE3X2V.js → web-R7LXSDEG.js} +2 -2
- package/dist/cli/{workgraph-ZKOFWUUE.js → workgraph-LWSTY3JY.js} +6 -6
- package/dist/cli/{worktree-2UEPNBJC.js → worktree-3B5JR6N7.js} +4 -5
- package/dist/cli/{worktree-2HHJT5BS.js → worktree-ZCJAH23Z.js} +12 -14
- package/package.json +16 -14
- package/studio-dist/client/_app/immutable/chunks/{CwQ8nAoh.js → 6tOJRYtC.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{C87Q3uxm.js → Bb5_AOYB.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/C2a5FdIt.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{Dv66614U.js → DdIqZ0F-.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Js_lZuOv.js → DtBpLaMM.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{EZwHPWle.js → h4IOtB0S.js} +1 -1
- package/studio-dist/client/_app/immutable/entry/{app.C2oQiIiz.js → app.Bu2fyKEV.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.CBBzjkal.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DaE6eVaG.js → 0.D0Q67wN6.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.D0Mb3i_7.js → 1.Cx9rAK7i.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.ChRO-4dz.js → 15.DnOsli29.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.fltF2wse.js → 16.CrxwCKGy.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DnYjMhyj.js → 17.Cdh0_9mm.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.DYVIAC9a.js → 18.8GsoNI5O.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.CVBcbjBW.js → 20.BJG6Nl3w.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.Bfswm8Y5.js → 24.j8WC-gjA.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/25.BlW7cJd4.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/{26.D3RoTHoD.js → 26.C5RluMQM.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{28.D64RBcfs.js → 28.B9m_UNTl.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{29.yfuBeH1x.js → 29.BLFaoK4P.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.ezhkaJvt.js → 3.BhtcETod.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BKQLYEeE.js → 0-3ISI_Jd4.js} +3 -3
- package/studio-dist/server/chunks/1-CM2aVyEP.js +9 -0
- package/studio-dist/server/chunks/{15-DuSvkmiZ.js → 15-3X9-99yQ.js} +3 -3
- package/studio-dist/server/chunks/{16-DJVePzvS.js → 16-CpB7uymk.js} +3 -3
- package/studio-dist/server/chunks/{17-D8K9-EPJ.js → 17-BwPBOkXY.js} +3 -3
- package/studio-dist/server/chunks/{18-D5FUPGnv.js → 18-4rPYGgn2.js} +3 -3
- package/studio-dist/server/chunks/{2-DQaIET_o.js → 2-q7c9jKfs.js} +6 -6
- package/studio-dist/server/chunks/{20-CmHgNZFV.js → 20-BRURJXYm.js} +3 -3
- package/studio-dist/server/chunks/{23-D194DGVi.js → 23-DEuC4HS6.js} +3 -2
- package/studio-dist/server/chunks/{24-CfuHWHgd.js → 24-guuvcnQd.js} +5 -4
- package/studio-dist/server/chunks/{25-bm3BDSum.js → 25-Cu45aO6X.js} +618 -36
- package/studio-dist/server/chunks/{26-DRlhAbrf.js → 26-CbjqXxSv.js} +15 -14
- package/studio-dist/server/chunks/{28-DeYe2rpm.js → 28-CiVv4jji.js} +3 -3
- package/studio-dist/server/chunks/{29-d_lZvJg3.js → 29-CHrYKy9L.js} +6 -5
- package/studio-dist/server/chunks/{3-BrE1-gTA.js → 3-dGuWwuGL.js} +4 -4
- package/studio-dist/server/chunks/30-CZYg7-qi.js +94 -0
- package/studio-dist/server/chunks/{_layout.svelte-BeqNMCvk.js → _layout.svelte-BtFiGIEp.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-Dm8y5a8S.js → _page.svelte-Bazc0M-R.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-V7BTZinR.js → _page.svelte-C3zGtsso.js} +9 -8
- package/studio-dist/server/chunks/{_page.svelte-CJVF_ySt.js → _page.svelte-C7HQSp26.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Bchzzf-O.js → _page.svelte-CGmJXo2R.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-CkXCx1iz.js → _page.svelte-CQVvPMmQ.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DIx7Hcw-.js → _page.svelte-CndKFWTU.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Ds0GMs_q.js → _page.svelte-CpWAUdOW.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-DM-MP-Vl.js → _page.svelte-DWXNbjU9.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-B7xxx6BP.js → _page.svelte-DciYSvHg.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-DnmZYECG.js → _page.svelte-FsmVvOW2.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Cx9Ptecp.js → _page.svelte-_ePwQLv-.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-B5vYKkI6.js → _server.ts--7OuOtTn.js} +1 -2
- package/studio-dist/server/chunks/{_server.ts-Cd_KHxRr.js → _server.ts-BDyyTu-K.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-YtGAClvW.js → _server.ts-Bqqug0HB.js} +10 -8
- package/studio-dist/server/chunks/{_server.ts-CcQ0AQoo.js → _server.ts-C_2-lCv8.js} +6 -5
- package/studio-dist/server/chunks/{_server.ts-6A72NyG7.js → _server.ts-Cr0M7RVU.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-BKZlM7rp.js → _server.ts-Csp0H96s.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-DdCviCsN.js → _server.ts-CyTTBEcl.js} +4 -4
- package/studio-dist/server/chunks/{_server.ts-Ck-oreiA.js → _server.ts-D6VzZhEs.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-b2YIpIsi.js → _server.ts-D9u8o_fg.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-XLV5SvjH.js → _server.ts-NPYD7LXS.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-CqO357sV.js → _server.ts-Te-2tjen.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-OPrTc7WI.js → _server.ts-ZJufMUl-.js} +2 -2
- package/studio-dist/server/chunks/{client-DR3j81J8.js → client-DKCgIuPq.js} +2 -2
- package/studio-dist/server/chunks/{error.svelte-NY-X_Qdt.js → error.svelte-gYXatkJM.js} +3 -3
- package/studio-dist/server/chunks/{explorer-loader-CP09K03H.js → explorer-loader-fHkiu8Z4.js} +8 -6
- package/studio-dist/server/chunks/{http-Dz72j56i.js → http-elrAoEmj.js} +2 -2
- package/studio-dist/server/chunks/{internal-y7btLoII.js → internal-C4t8_O0Q.js} +2 -2
- package/studio-dist/server/chunks/{lane-transition-lM2ngbbc.js → lane-transition-tca216Ny.js} +10 -3
- package/studio-dist/server/chunks/{operations-registry-DKEHmggR.js → operations-registry-C9N47F53.js} +350 -471
- package/studio-dist/server/chunks/{stores-Cm-Qj76R.js → stores-CLlSxFBW.js} +2 -2
- package/studio-dist/server/chunks/{tasks-sWuEmiGW.js → tasks-Ch-fdBjA.js} +2 -2
- package/studio-dist/server/index.js +1 -1
- package/studio-dist/server/manifest.js +29 -29
- package/dist/cli/canon-docs-2GTOLF7Y.js +0 -26
- package/dist/cli/chunk-IGM44F43.js +0 -33
- package/dist/cli/conduit-STEBYJTU.js +0 -535
- package/dist/cli/conduit-XYYPJYUF.js +0 -319
- package/dist/cli/hygiene-QVIG57RZ.js +0 -55
- package/studio-dist/client/_app/immutable/chunks/BXnpxR_0.js +0 -1
- package/studio-dist/client/_app/immutable/entry/start.BolRa540.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/25.B_7VqHJ6.js +0 -39
- package/studio-dist/server/chunks/1-ClOr3JN3.js +0 -9
- package/studio-dist/server/chunks/30-BHsj4oeh.js +0 -105
|
@@ -1,535 +0,0 @@
|
|
|
1
|
-
(() => {
|
|
2
|
-
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
-
if (globalThis[_installed]) return;
|
|
4
|
-
globalThis[_installed] = true;
|
|
5
|
-
const _origEmitWarning = process.emitWarning;
|
|
6
|
-
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
-
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import {
|
|
17
|
-
defineTypedHandler,
|
|
18
|
-
typedDispatch,
|
|
19
|
-
wrapConduitImpl
|
|
20
|
-
} from "./chunk-QWNKLLLG.js";
|
|
21
|
-
import {
|
|
22
|
-
envelopeToEngineResult,
|
|
23
|
-
handleErrorResult,
|
|
24
|
-
unsupportedOp,
|
|
25
|
-
wrapResult
|
|
26
|
-
} from "./chunk-XD25OCUE.js";
|
|
27
|
-
|
|
28
|
-
// packages/cleo/src/dispatch/domains/conduit.ts
|
|
29
|
-
import { getProjectRoot } from "@cleocode/core";
|
|
30
|
-
var activePoller = null;
|
|
31
|
-
var activeAgentId = null;
|
|
32
|
-
var _conduitTypedHandler = defineTypedHandler("conduit", {
|
|
33
|
-
// -------------------------------------------------------------------------
|
|
34
|
-
// Query ops
|
|
35
|
-
// -------------------------------------------------------------------------
|
|
36
|
-
status: async (params) => wrapConduitImpl(() => getStatusImpl(params.agentId), "status"),
|
|
37
|
-
peek: async (params) => wrapConduitImpl(() => peekImpl(params.agentId, params.limit), "peek"),
|
|
38
|
-
listen: async (params) => wrapConduitImpl(
|
|
39
|
-
() => listenTopicImpl(params.topicName, params.agentId, params.limit, params.since),
|
|
40
|
-
"listen"
|
|
41
|
-
),
|
|
42
|
-
// -------------------------------------------------------------------------
|
|
43
|
-
// Mutate ops
|
|
44
|
-
// -------------------------------------------------------------------------
|
|
45
|
-
start: async (params) => wrapConduitImpl(
|
|
46
|
-
() => startPollingImpl(params.agentId, params.pollIntervalMs, params.groupConversationIds),
|
|
47
|
-
"start"
|
|
48
|
-
),
|
|
49
|
-
stop: async (_params) => wrapConduitImpl(() => Promise.resolve(stopPollingImpl()), "stop"),
|
|
50
|
-
send: async (params) => wrapConduitImpl(
|
|
51
|
-
() => sendMessageImpl(params.content, params.to, params.conversationId, params.agentId),
|
|
52
|
-
"send"
|
|
53
|
-
),
|
|
54
|
-
subscribe: async (params) => wrapConduitImpl(
|
|
55
|
-
() => subscribeTopicImpl(params.topicName, params.agentId, params.filter),
|
|
56
|
-
"subscribe"
|
|
57
|
-
),
|
|
58
|
-
publish: async (params) => wrapConduitImpl(
|
|
59
|
-
() => publishToTopicImpl(
|
|
60
|
-
params.topicName,
|
|
61
|
-
params.content,
|
|
62
|
-
params.kind,
|
|
63
|
-
params.payload,
|
|
64
|
-
params.agentId
|
|
65
|
-
),
|
|
66
|
-
"publish"
|
|
67
|
-
)
|
|
68
|
-
});
|
|
69
|
-
var QUERY_OPS = /* @__PURE__ */ new Set(["status", "peek", "listen"]);
|
|
70
|
-
var MUTATE_OPS = /* @__PURE__ */ new Set(["start", "stop", "send", "subscribe", "publish"]);
|
|
71
|
-
var ConduitHandler = class {
|
|
72
|
-
/**
|
|
73
|
-
* Execute a read-only conduit query operation.
|
|
74
|
-
*
|
|
75
|
-
* @param operation - The conduit query op name (e.g. 'status', 'peek', 'listen').
|
|
76
|
-
* @param params - Raw params from the dispatcher (narrowed internally).
|
|
77
|
-
*/
|
|
78
|
-
async query(operation, params) {
|
|
79
|
-
const startTime = Date.now();
|
|
80
|
-
if (!QUERY_OPS.has(operation)) {
|
|
81
|
-
return unsupportedOp("query", "conduit", operation, startTime);
|
|
82
|
-
}
|
|
83
|
-
try {
|
|
84
|
-
const envelope = await typedDispatch(
|
|
85
|
-
_conduitTypedHandler,
|
|
86
|
-
operation,
|
|
87
|
-
params ?? {}
|
|
88
|
-
);
|
|
89
|
-
return wrapResult(envelopeToEngineResult(envelope), "query", "conduit", operation, startTime);
|
|
90
|
-
} catch (error) {
|
|
91
|
-
return handleErrorResult("query", "conduit", operation, error, startTime);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Execute a state-modifying conduit mutation operation.
|
|
96
|
-
*
|
|
97
|
-
* @param operation - The conduit mutate op name (e.g. 'start', 'send', 'publish').
|
|
98
|
-
* @param params - Raw params from the dispatcher (narrowed internally).
|
|
99
|
-
*/
|
|
100
|
-
async mutate(operation, params) {
|
|
101
|
-
const startTime = Date.now();
|
|
102
|
-
if (!MUTATE_OPS.has(operation)) {
|
|
103
|
-
return unsupportedOp("mutate", "conduit", operation, startTime);
|
|
104
|
-
}
|
|
105
|
-
try {
|
|
106
|
-
const envelope = await typedDispatch(
|
|
107
|
-
_conduitTypedHandler,
|
|
108
|
-
operation,
|
|
109
|
-
params ?? {}
|
|
110
|
-
);
|
|
111
|
-
return wrapResult(
|
|
112
|
-
envelopeToEngineResult(envelope),
|
|
113
|
-
"mutate",
|
|
114
|
-
"conduit",
|
|
115
|
-
operation,
|
|
116
|
-
startTime
|
|
117
|
-
);
|
|
118
|
-
} catch (error) {
|
|
119
|
-
return handleErrorResult("mutate", "conduit", operation, error, startTime);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
getSupportedOperations() {
|
|
123
|
-
return {
|
|
124
|
-
query: ["status", "peek", "listen"],
|
|
125
|
-
mutate: ["start", "stop", "send", "subscribe", "publish"]
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
async function _resolveCredential(agentId) {
|
|
130
|
-
const { AgentRegistryAccessor, getDb } = await import("@cleocode/core/internal");
|
|
131
|
-
await getDb();
|
|
132
|
-
const registry = new AgentRegistryAccessor(getProjectRoot());
|
|
133
|
-
const credential = agentId ? await registry.get(agentId) : await registry.getActive();
|
|
134
|
-
if (!credential) {
|
|
135
|
-
throw new Error(
|
|
136
|
-
"No agent credential found. Run: cleo agent register --id <id> --api-key <key>"
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
return credential;
|
|
140
|
-
}
|
|
141
|
-
async function getStatusImpl(agentId) {
|
|
142
|
-
const credential = await _resolveCredential(agentId);
|
|
143
|
-
const pollerRunning = activePoller !== null && activeAgentId === credential.agentId;
|
|
144
|
-
const { LocalTransport, SignalDockRetiredError, conduitFetch, retiredCloudHost } = await import("@cleocode/core/conduit");
|
|
145
|
-
if (LocalTransport.isAvailable(getProjectRoot())) {
|
|
146
|
-
const transport = new LocalTransport();
|
|
147
|
-
await transport.connect({
|
|
148
|
-
agentId: credential.agentId,
|
|
149
|
-
apiKey: credential.apiKey,
|
|
150
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
151
|
-
});
|
|
152
|
-
try {
|
|
153
|
-
const pending = await transport.poll({ limit: 1e3 });
|
|
154
|
-
return {
|
|
155
|
-
success: true,
|
|
156
|
-
data: {
|
|
157
|
-
agentId: credential.agentId,
|
|
158
|
-
connected: true,
|
|
159
|
-
transport: "local",
|
|
160
|
-
pollerRunning,
|
|
161
|
-
unreadTotal: pending.length,
|
|
162
|
-
actionItems: 0
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
} finally {
|
|
166
|
-
await transport.disconnect();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
const retiredHost = retiredCloudHost(credential.apiBaseUrl);
|
|
170
|
-
if (retiredHost !== null) {
|
|
171
|
-
return {
|
|
172
|
-
success: true,
|
|
173
|
-
data: {
|
|
174
|
-
agentId: credential.agentId,
|
|
175
|
-
connected: false,
|
|
176
|
-
transport: "http",
|
|
177
|
-
pollerRunning,
|
|
178
|
-
error: new SignalDockRetiredError(retiredHost).message
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
const response = await conduitFetch(
|
|
183
|
-
`${credential.apiBaseUrl}/agents/${credential.agentId}/inbox`,
|
|
184
|
-
{
|
|
185
|
-
headers: {
|
|
186
|
-
Authorization: `Bearer ${credential.apiKey}`,
|
|
187
|
-
"X-Agent-Id": credential.agentId
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
);
|
|
191
|
-
if (!response.ok) {
|
|
192
|
-
return {
|
|
193
|
-
success: true,
|
|
194
|
-
data: {
|
|
195
|
-
agentId: credential.agentId,
|
|
196
|
-
connected: false,
|
|
197
|
-
transport: "http",
|
|
198
|
-
pollerRunning,
|
|
199
|
-
error: `API returned ${response.status}`
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
const body = await response.json();
|
|
204
|
-
return {
|
|
205
|
-
success: true,
|
|
206
|
-
data: {
|
|
207
|
-
agentId: credential.agentId,
|
|
208
|
-
connected: true,
|
|
209
|
-
transport: "http",
|
|
210
|
-
pollerRunning,
|
|
211
|
-
unreadTotal: body.data?.unreadTotal ?? 0,
|
|
212
|
-
actionItems: body.data?.actionItems?.length ?? 0
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
async function peekImpl(agentId, limit) {
|
|
217
|
-
const credential = await _resolveCredential(agentId);
|
|
218
|
-
const { LocalTransport, conduitFetch } = await import("@cleocode/core/conduit");
|
|
219
|
-
if (LocalTransport.isAvailable(getProjectRoot())) {
|
|
220
|
-
const transport = new LocalTransport();
|
|
221
|
-
await transport.connect({
|
|
222
|
-
agentId: credential.agentId,
|
|
223
|
-
apiKey: credential.apiKey,
|
|
224
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
225
|
-
});
|
|
226
|
-
try {
|
|
227
|
-
const messages = await transport.poll({ limit: limit ?? 20 });
|
|
228
|
-
return {
|
|
229
|
-
success: true,
|
|
230
|
-
data: {
|
|
231
|
-
agentId: credential.agentId,
|
|
232
|
-
messages: messages.map((m) => ({
|
|
233
|
-
id: m.id,
|
|
234
|
-
from: m.from,
|
|
235
|
-
content: m.content,
|
|
236
|
-
conversationId: m.threadId,
|
|
237
|
-
timestamp: m.timestamp
|
|
238
|
-
}))
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
} finally {
|
|
242
|
-
await transport.disconnect();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
const params = new URLSearchParams();
|
|
246
|
-
params.set("mentioned", credential.agentId);
|
|
247
|
-
params.set("limit", String(limit ?? 20));
|
|
248
|
-
const response = await conduitFetch(`${credential.apiBaseUrl}/messages/peek?${params}`, {
|
|
249
|
-
headers: {
|
|
250
|
-
Authorization: `Bearer ${credential.apiKey}`,
|
|
251
|
-
"X-Agent-Id": credential.agentId
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
if (!response.ok) {
|
|
255
|
-
return { success: true, data: { agentId: credential.agentId, messages: [] } };
|
|
256
|
-
}
|
|
257
|
-
const body = await response.json();
|
|
258
|
-
return {
|
|
259
|
-
success: true,
|
|
260
|
-
data: {
|
|
261
|
-
agentId: credential.agentId,
|
|
262
|
-
messages: (body.data?.messages ?? []).map((m) => ({
|
|
263
|
-
id: m.id,
|
|
264
|
-
from: m.senderAgentId ?? "unknown",
|
|
265
|
-
content: m.content ?? "",
|
|
266
|
-
conversationId: m.conversationId,
|
|
267
|
-
timestamp: m.createdAt
|
|
268
|
-
}))
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
async function startPollingImpl(agentId, pollIntervalMs, groupConversationIds) {
|
|
273
|
-
if (activePoller) {
|
|
274
|
-
return {
|
|
275
|
-
success: true,
|
|
276
|
-
data: {
|
|
277
|
-
agentId: activeAgentId,
|
|
278
|
-
message: "Poller already running. Use conduit.stop first.",
|
|
279
|
-
alreadyRunning: true
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
const credential = await _resolveCredential(agentId);
|
|
284
|
-
const { AgentPoller } = await import("@cleocode/runtime");
|
|
285
|
-
const { LocalTransport } = await import("@cleocode/core/conduit");
|
|
286
|
-
let transport;
|
|
287
|
-
let transportName = "http";
|
|
288
|
-
if (LocalTransport.isAvailable(getProjectRoot())) {
|
|
289
|
-
const local = new LocalTransport();
|
|
290
|
-
await local.connect({
|
|
291
|
-
agentId: credential.agentId,
|
|
292
|
-
apiKey: credential.apiKey,
|
|
293
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
294
|
-
});
|
|
295
|
-
transport = local;
|
|
296
|
-
transportName = "local";
|
|
297
|
-
}
|
|
298
|
-
activePoller = new AgentPoller({
|
|
299
|
-
agentId: credential.agentId,
|
|
300
|
-
apiKey: credential.apiKey,
|
|
301
|
-
apiBaseUrl: credential.apiBaseUrl,
|
|
302
|
-
pollIntervalMs: pollIntervalMs ?? 5e3,
|
|
303
|
-
groupConversationIds,
|
|
304
|
-
transport
|
|
305
|
-
});
|
|
306
|
-
activeAgentId = credential.agentId;
|
|
307
|
-
activePoller.start();
|
|
308
|
-
return {
|
|
309
|
-
success: true,
|
|
310
|
-
data: {
|
|
311
|
-
agentId: credential.agentId,
|
|
312
|
-
pollIntervalMs: pollIntervalMs ?? 5e3,
|
|
313
|
-
groupConversationIds: groupConversationIds ?? [],
|
|
314
|
-
transport: transportName,
|
|
315
|
-
message: "Polling started."
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
function stopPollingImpl() {
|
|
320
|
-
if (!activePoller) {
|
|
321
|
-
return {
|
|
322
|
-
success: true,
|
|
323
|
-
data: { message: "No active poller to stop." }
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
const stoppedAgent = activeAgentId;
|
|
327
|
-
activePoller.stop();
|
|
328
|
-
activePoller = null;
|
|
329
|
-
activeAgentId = null;
|
|
330
|
-
return {
|
|
331
|
-
success: true,
|
|
332
|
-
data: {
|
|
333
|
-
agentId: stoppedAgent,
|
|
334
|
-
message: "Polling stopped."
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
async function subscribeTopicImpl(topicName, agentId, _filter) {
|
|
339
|
-
if (!topicName) {
|
|
340
|
-
return {
|
|
341
|
-
success: false,
|
|
342
|
-
error: { code: "E_ARGS", message: 'Must specify "topicName"' }
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
const credential = await _resolveCredential(agentId);
|
|
346
|
-
const { LocalTransport } = await import("@cleocode/core/conduit");
|
|
347
|
-
if (!LocalTransport.isAvailable(getProjectRoot())) {
|
|
348
|
-
return {
|
|
349
|
-
success: false,
|
|
350
|
-
error: { code: "E_CONDUIT", message: "conduit.db not found \u2014 run: cleo init" }
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
const transport = new LocalTransport();
|
|
354
|
-
await transport.connect({
|
|
355
|
-
agentId: credential.agentId,
|
|
356
|
-
apiKey: credential.apiKey,
|
|
357
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
358
|
-
});
|
|
359
|
-
try {
|
|
360
|
-
await transport.subscribeTopic(topicName);
|
|
361
|
-
return {
|
|
362
|
-
success: true,
|
|
363
|
-
data: {
|
|
364
|
-
agentId: credential.agentId,
|
|
365
|
-
topicName,
|
|
366
|
-
message: `Subscribed to topic: ${topicName}`
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
} finally {
|
|
370
|
-
await transport.disconnect();
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
async function publishToTopicImpl(topicName, content, kind, payload, agentId) {
|
|
374
|
-
if (!topicName) {
|
|
375
|
-
return {
|
|
376
|
-
success: false,
|
|
377
|
-
error: { code: "E_ARGS", message: 'Must specify "topicName"' }
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
if (!content) {
|
|
381
|
-
return {
|
|
382
|
-
success: false,
|
|
383
|
-
error: { code: "E_ARGS", message: 'Must specify "content"' }
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
const credential = await _resolveCredential(agentId);
|
|
387
|
-
const { LocalTransport } = await import("@cleocode/core/conduit");
|
|
388
|
-
if (!LocalTransport.isAvailable(getProjectRoot())) {
|
|
389
|
-
return {
|
|
390
|
-
success: false,
|
|
391
|
-
error: { code: "E_CONDUIT", message: "conduit.db not found \u2014 run: cleo init" }
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
const transport = new LocalTransport();
|
|
395
|
-
await transport.connect({
|
|
396
|
-
agentId: credential.agentId,
|
|
397
|
-
apiKey: credential.apiKey,
|
|
398
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
399
|
-
});
|
|
400
|
-
try {
|
|
401
|
-
const result = await transport.publishToTopic(topicName, content, { kind, payload });
|
|
402
|
-
return {
|
|
403
|
-
success: true,
|
|
404
|
-
data: {
|
|
405
|
-
messageId: result.messageId,
|
|
406
|
-
from: credential.agentId,
|
|
407
|
-
topicName,
|
|
408
|
-
transport: "local",
|
|
409
|
-
publishedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
} finally {
|
|
413
|
-
await transport.disconnect();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
async function listenTopicImpl(topicName, agentId, limit, since) {
|
|
417
|
-
if (!topicName) {
|
|
418
|
-
return {
|
|
419
|
-
success: false,
|
|
420
|
-
error: { code: "E_ARGS", message: 'Must specify "topicName"' }
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
const startMs = Date.now();
|
|
424
|
-
const credential = await _resolveCredential(agentId);
|
|
425
|
-
const { LocalTransport } = await import("@cleocode/core/conduit");
|
|
426
|
-
if (!LocalTransport.isAvailable(getProjectRoot())) {
|
|
427
|
-
return {
|
|
428
|
-
success: false,
|
|
429
|
-
error: { code: "E_CONDUIT", message: "conduit.db not found \u2014 run: cleo init" }
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
const transport = new LocalTransport();
|
|
433
|
-
await transport.connect({
|
|
434
|
-
agentId: credential.agentId,
|
|
435
|
-
apiKey: credential.apiKey,
|
|
436
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
437
|
-
});
|
|
438
|
-
try {
|
|
439
|
-
const messages = await transport.pollTopic(topicName, {
|
|
440
|
-
limit: limit ?? 50,
|
|
441
|
-
since: since ?? ""
|
|
442
|
-
});
|
|
443
|
-
return {
|
|
444
|
-
success: true,
|
|
445
|
-
data: {
|
|
446
|
-
topicName,
|
|
447
|
-
messages: messages.map((m) => ({
|
|
448
|
-
id: m.id,
|
|
449
|
-
from: m.from,
|
|
450
|
-
content: m.content,
|
|
451
|
-
conversationId: m.threadId,
|
|
452
|
-
timestamp: m.timestamp
|
|
453
|
-
})),
|
|
454
|
-
listenedForMs: Date.now() - startMs
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
} finally {
|
|
458
|
-
await transport.disconnect();
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
async function sendMessageImpl(content, to, conversationId, agentId) {
|
|
462
|
-
if (!to && !conversationId) {
|
|
463
|
-
return {
|
|
464
|
-
success: false,
|
|
465
|
-
error: { code: "E_ARGS", message: 'Must specify "to" (agent ID) or "conversationId"' }
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
const credential = await _resolveCredential(agentId);
|
|
469
|
-
const { LocalTransport, conduitFetch } = await import("@cleocode/core/conduit");
|
|
470
|
-
if (LocalTransport.isAvailable(getProjectRoot())) {
|
|
471
|
-
const transport = new LocalTransport();
|
|
472
|
-
await transport.connect({
|
|
473
|
-
agentId: credential.agentId,
|
|
474
|
-
apiKey: credential.apiKey,
|
|
475
|
-
apiBaseUrl: credential.apiBaseUrl
|
|
476
|
-
});
|
|
477
|
-
try {
|
|
478
|
-
const recipient = to ?? conversationId ?? "";
|
|
479
|
-
const result = await transport.push(recipient, content, {
|
|
480
|
-
conversationId
|
|
481
|
-
});
|
|
482
|
-
return {
|
|
483
|
-
success: true,
|
|
484
|
-
data: {
|
|
485
|
-
messageId: result.messageId,
|
|
486
|
-
from: credential.agentId,
|
|
487
|
-
to: recipient,
|
|
488
|
-
transport: "local",
|
|
489
|
-
sentAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
} finally {
|
|
493
|
-
await transport.disconnect();
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
let url;
|
|
497
|
-
const body = { content };
|
|
498
|
-
if (conversationId) {
|
|
499
|
-
url = `${credential.apiBaseUrl}/conversations/${conversationId}/messages`;
|
|
500
|
-
} else {
|
|
501
|
-
url = `${credential.apiBaseUrl}/messages`;
|
|
502
|
-
body["toAgentId"] = to;
|
|
503
|
-
}
|
|
504
|
-
const response = await conduitFetch(url, {
|
|
505
|
-
method: "POST",
|
|
506
|
-
headers: {
|
|
507
|
-
"Content-Type": "application/json",
|
|
508
|
-
Authorization: `Bearer ${credential.apiKey}`,
|
|
509
|
-
"X-Agent-Id": credential.agentId
|
|
510
|
-
},
|
|
511
|
-
body: JSON.stringify(body)
|
|
512
|
-
});
|
|
513
|
-
if (!response.ok) {
|
|
514
|
-
const text = await response.text().catch(() => "");
|
|
515
|
-
return {
|
|
516
|
-
success: false,
|
|
517
|
-
error: { code: "E_SEND", message: `Send failed: ${response.status} ${text}` }
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
const data = await response.json();
|
|
521
|
-
return {
|
|
522
|
-
success: true,
|
|
523
|
-
data: {
|
|
524
|
-
messageId: data.data?.message?.id ?? "unknown",
|
|
525
|
-
from: credential.agentId,
|
|
526
|
-
to: to ?? conversationId,
|
|
527
|
-
transport: "http",
|
|
528
|
-
sentAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
export {
|
|
533
|
-
ConduitHandler
|
|
534
|
-
};
|
|
535
|
-
//# sourceMappingURL=conduit-STEBYJTU.js.map
|