@cleocode/cleo 2026.10.27 → 2026.11.1-canary.10
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-TIPSGB5Z.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-TWV43SAR.js → orchestrate-6C5LX5OB.js} +147 -140
- package/dist/cli/{orchestrate-AYBDAVOQ.js → orchestrate-BDU4ZLDN.js} +77 -346
- 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/BMYXiaXc.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{C87Q3uxm.js → Bb5_AOYB.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Js_lZuOv.js → Ca1XI59z.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Dv66614U.js → CooIpOCR.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{CwQ8nAoh.js → DxTiS5Wt.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.DQQfTtuv.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.DcQGSVlg.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DaE6eVaG.js → 0.DXINgyxG.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.D0Mb3i_7.js → 1.P5c9_oUs.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.ChRO-4dz.js → 15.oJQ3H5YB.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.fltF2wse.js → 16.BRC3XTxx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DnYjMhyj.js → 17.C7IPaPHY.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.DYVIAC9a.js → 18.GuJJ5u0-.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.CVBcbjBW.js → 20.CBrL9cmS.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.Bfswm8Y5.js → 24.Bu8K9vo4.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/25.C4Z8ST2P.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/{26.D3RoTHoD.js → 26.Cl0r6X28.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.Df4QKv4B.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BKQLYEeE.js → 0-erfbnGfB.js} +3 -3
- package/studio-dist/server/chunks/1-DyJwvMic.js +9 -0
- package/studio-dist/server/chunks/{15-DuSvkmiZ.js → 15-C_k5zB2B.js} +3 -3
- package/studio-dist/server/chunks/{16-DJVePzvS.js → 16-DdCcSi9_.js} +3 -3
- package/studio-dist/server/chunks/{17-D8K9-EPJ.js → 17-MWpaGpvn.js} +3 -3
- package/studio-dist/server/chunks/{18-D5FUPGnv.js → 18-CT1N6VAd.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-BbSeQ5lg.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-u_80ZFkT.js} +5 -4
- package/studio-dist/server/chunks/{25-bm3BDSum.js → 25-B0MzmbT2.js} +597 -36
- package/studio-dist/server/chunks/{26-DRlhAbrf.js → 26-DkX1dBYo.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-BL6iNxCo.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-CiG8h_Xi.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-B7xxx6BP.js → _page.svelte-BT4gDwkk.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-DIx7Hcw-.js → _page.svelte-BjFnbfQt.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Bchzzf-O.js → _page.svelte-C-o8xIk8.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DM-MP-Vl.js → _page.svelte-CE3Kv7wi.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-CJVF_ySt.js → _page.svelte-CPnLXqOq.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Ds0GMs_q.js → _page.svelte-CYrenIqL.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-CkXCx1iz.js → _page.svelte-CjzS2lxN.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-V7BTZinR.js → _page.svelte-D0p8ZZo_.js} +9 -8
- package/studio-dist/server/chunks/{_page.svelte-Cx9Ptecp.js → _page.svelte-_ePwQLv-.js} +2 -2
- package/studio-dist/server/chunks/{_page.svelte-DnmZYECG.js → _page.svelte-nJP-Y__9.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-B5vYKkI6.js → _server.ts--7OuOtTn.js} +1 -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-Cd_KHxRr.js → _server.ts-DV9iGtB5.js} +2 -2
- 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-i9NqPizR.js} +2 -2
- package/studio-dist/server/chunks/{error.svelte-NY-X_Qdt.js → error.svelte-CMmHEjz7.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-2NYARwFD.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-DPwmfR_V.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
|
@@ -25,14 +25,11 @@ import {
|
|
|
25
25
|
dispatchFromCli,
|
|
26
26
|
dispatchRaw,
|
|
27
27
|
handleRawError
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-6N6WGLXE.js";
|
|
28
|
+
} from "./chunk-YNBEP6TJ.js";
|
|
30
29
|
import {
|
|
31
30
|
resolve
|
|
32
31
|
} from "./chunk-4VASFLUW.js";
|
|
33
|
-
import
|
|
34
|
-
loadCanonRegistry
|
|
35
|
-
} from "./chunk-SXXOC6KZ.js";
|
|
32
|
+
import "./chunk-2NXQCE4N.js";
|
|
36
33
|
import {
|
|
37
34
|
UnknownFlagError,
|
|
38
35
|
assertKnownFlags
|
|
@@ -46,14 +43,14 @@ import {
|
|
|
46
43
|
cliError,
|
|
47
44
|
cliOutput,
|
|
48
45
|
humanInfo
|
|
49
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FD6EQLV7.js";
|
|
50
47
|
import "./chunk-6JSJNYH2.js";
|
|
51
48
|
import "./chunk-D7BAQNV2.js";
|
|
52
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-D75KPNMP.js";
|
|
53
50
|
|
|
54
51
|
// packages/cleo/src/cli/commands/docs.ts
|
|
55
52
|
import { existsSync } from "node:fs";
|
|
56
|
-
import {
|
|
53
|
+
import { mkdir as mkdir3, readdir, readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
57
54
|
import { dirname as dirname3, isAbsolute, join as join4, resolve as resolve3 } from "node:path";
|
|
58
55
|
import {
|
|
59
56
|
DocKindConfigError,
|
|
@@ -67,11 +64,6 @@ import {
|
|
|
67
64
|
resolveWorktreeRouting
|
|
68
65
|
} from "@cleocode/core/core-paths";
|
|
69
66
|
import { createDocsReadModel } from "@cleocode/core/docs/docs-read-model";
|
|
70
|
-
import {
|
|
71
|
-
checkSlugSimilarity,
|
|
72
|
-
DEFAULT_SIMILARITY_MODE,
|
|
73
|
-
DEFAULT_SIMILARITY_THRESHOLD
|
|
74
|
-
} from "@cleocode/core/docs/similarity-check";
|
|
75
67
|
import { CleoError as CleoError2 } from "@cleocode/core/errors";
|
|
76
68
|
import { pushWarning } from "@cleocode/core/output";
|
|
77
69
|
import { getProjectRoot as getProjectRoot3 } from "@cleocode/core/project-scope";
|
|
@@ -285,9 +277,134 @@ var migrateCommand = defineCommand({
|
|
|
285
277
|
name: "migrate",
|
|
286
278
|
description: "Migrate legacy docs + history into the re-keyed store (T13360, spec \xA75): runs inside the migration safety harness (backup \u2192 verify \u2192 commit/rollback), labels imported rows origin:migrated, content-captures or records dangling docs, and is idempotent (re-runs are verified no-ops)."
|
|
287
279
|
},
|
|
288
|
-
args: {
|
|
289
|
-
|
|
290
|
-
|
|
280
|
+
args: {
|
|
281
|
+
limit: {
|
|
282
|
+
type: "string",
|
|
283
|
+
description: "At most this many docs per run, oldest first (default: all, T14329). Each run is one transaction with its own backup; run again to continue until nothing is left."
|
|
284
|
+
},
|
|
285
|
+
"dry-run": {
|
|
286
|
+
type: "boolean",
|
|
287
|
+
description: "Print the plan counts (what a run would capture) and write nothing (T14331)"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
async run({ args }) {
|
|
291
|
+
const params = {
|
|
292
|
+
...args.limit !== void 0 ? { limit: Number(args.limit) } : {},
|
|
293
|
+
...args["dry-run"] === true ? { dryRun: true } : {}
|
|
294
|
+
};
|
|
295
|
+
await dispatchFromCli("mutate", "docs", "migrate", params, { command: "docs migrate" });
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
// packages/cleo/src/cli/commands/docs/modernize.ts
|
|
300
|
+
var modernizeCommand = defineCommand({
|
|
301
|
+
meta: {
|
|
302
|
+
name: "modernize",
|
|
303
|
+
description: "Turn a messy docs folder into clean, linked CleoDocs (T14113). Dry run by default: per file a kind, a stable slug (no task, session or date tokens) and keep/rename/merge-into/delete with reasons; ambiguous classify and merge calls go to System One (cleo decide) with a rule fallback. --apply stores docs, merges duplicates, records supersession, moves files and writes wikilink edges, with a receipt under .cleo/modernize/; --rollback <runId> reverses a run."
|
|
304
|
+
},
|
|
305
|
+
args: {
|
|
306
|
+
path: {
|
|
307
|
+
type: "positional",
|
|
308
|
+
description: "Folder to modernize (required unless --rollback or --plan)",
|
|
309
|
+
required: false
|
|
310
|
+
},
|
|
311
|
+
apply: {
|
|
312
|
+
type: "boolean",
|
|
313
|
+
description: "Execute the plan (default: dry run, nothing written)"
|
|
314
|
+
},
|
|
315
|
+
plan: {
|
|
316
|
+
type: "string",
|
|
317
|
+
description: "Apply this saved plan JSON verbatim (with --apply)"
|
|
318
|
+
},
|
|
319
|
+
out: {
|
|
320
|
+
type: "string",
|
|
321
|
+
description: "Save the plan JSON to this path for review"
|
|
322
|
+
},
|
|
323
|
+
rollback: {
|
|
324
|
+
type: "string",
|
|
325
|
+
description: "Roll back the apply run with this id (from the receipt)"
|
|
326
|
+
},
|
|
327
|
+
exclude: {
|
|
328
|
+
type: "string",
|
|
329
|
+
description: "Extra folder names to skip, comma-separated"
|
|
330
|
+
},
|
|
331
|
+
overrides: {
|
|
332
|
+
type: "string",
|
|
333
|
+
description: "Reviewer decisions JSON keyed by path; they win over rules and System One"
|
|
334
|
+
},
|
|
335
|
+
kind: {
|
|
336
|
+
type: "string",
|
|
337
|
+
description: "Use this kind for every file instead of classifying (bulk ingest)"
|
|
338
|
+
},
|
|
339
|
+
wikilinks: {
|
|
340
|
+
type: "boolean",
|
|
341
|
+
description: "Rewrite relative links to planned docs as [[slug]] wikilinks (default: keep markdown links that render on GitHub, re-pointed at the new paths)"
|
|
342
|
+
},
|
|
343
|
+
"allow-dirty": {
|
|
344
|
+
type: "boolean",
|
|
345
|
+
description: "Apply even when the root is not a clean git checkout (default: refuse)"
|
|
346
|
+
},
|
|
347
|
+
store: {
|
|
348
|
+
type: "boolean",
|
|
349
|
+
description: "Modernize the docs already in the store: re-kind, re-slug (old slugs stay as aliases), renumber colliding ADRs"
|
|
350
|
+
},
|
|
351
|
+
"store-only": {
|
|
352
|
+
type: "boolean",
|
|
353
|
+
description: "Ingest every file into the store (task-owned) and leave the folder untouched"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
async run({ args }) {
|
|
357
|
+
await dispatchFromCli(
|
|
358
|
+
"mutate",
|
|
359
|
+
"docs",
|
|
360
|
+
"modernize",
|
|
361
|
+
{
|
|
362
|
+
...typeof args.path === "string" ? { path: args.path } : {},
|
|
363
|
+
apply: args.apply === true,
|
|
364
|
+
...typeof args.plan === "string" ? { planFile: args.plan } : {},
|
|
365
|
+
...typeof args.out === "string" ? { out: args.out } : {},
|
|
366
|
+
...typeof args.rollback === "string" ? { rollback: args.rollback } : {},
|
|
367
|
+
...typeof args.exclude === "string" ? { exclude: args.exclude } : {},
|
|
368
|
+
...typeof args.overrides === "string" ? { overrides: args.overrides } : {},
|
|
369
|
+
...typeof args.kind === "string" ? { kind: args.kind } : {},
|
|
370
|
+
storeOnly: args["store-only"] === true,
|
|
371
|
+
allowDirty: args["allow-dirty"] === true,
|
|
372
|
+
wikilinks: args.wikilinks === true,
|
|
373
|
+
store: args.store === true
|
|
374
|
+
},
|
|
375
|
+
{ command: "docs modernize" }
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
// packages/cleo/src/cli/commands/docs/rot.ts
|
|
381
|
+
var rotCommand = defineCommand({
|
|
382
|
+
meta: {
|
|
383
|
+
name: "rot",
|
|
384
|
+
description: "Docs-rot report from git alone (T14111): docs whose covers: code changed after them (stale), duplicate docs, and orphaned docs (dead covers globs, unreferenced docs/ files). --changed <base>..<head> also lists the docs a merged change left stale; --strict exits 2 on any finding."
|
|
385
|
+
},
|
|
386
|
+
args: {
|
|
387
|
+
changed: {
|
|
388
|
+
type: "string",
|
|
389
|
+
description: "Git range <base>..<head> of a merged change to flag docs for"
|
|
390
|
+
},
|
|
391
|
+
strict: {
|
|
392
|
+
type: "boolean",
|
|
393
|
+
description: "Exit 2 when the report finds stale, duplicate, orphaned or flagged docs"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
async run({ args }) {
|
|
397
|
+
const params = typeof args.changed === "string" ? { changed: args.changed } : {};
|
|
398
|
+
if (args.strict !== true) {
|
|
399
|
+
await dispatchFromCli("query", "docs", "rot", params, { command: "docs rot" });
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
const response = await dispatchRaw("query", "docs", "rot", params);
|
|
403
|
+
handleRawError(response, { command: "docs rot", operation: "docs.rot" });
|
|
404
|
+
const report = response.data;
|
|
405
|
+
cliOutput(report, { command: "docs rot", message: report.summary });
|
|
406
|
+
const findings = report.stale.length + report.duplicates.length + report.orphans.length + report.flagged.length;
|
|
407
|
+
if (findings > 0) process.exit(2);
|
|
291
408
|
}
|
|
292
409
|
});
|
|
293
410
|
|
|
@@ -691,7 +808,8 @@ function buildViewerHandler(opts = {}) {
|
|
|
691
808
|
const apiDocMatch = pathname.match(/^\/api\/docs\/([^/]+)$/);
|
|
692
809
|
if (apiDocMatch) {
|
|
693
810
|
const slug = decodeURIComponent(apiDocMatch[1]);
|
|
694
|
-
const
|
|
811
|
+
const { resolveDocRef } = await import("@cleocode/core/docs/slug-rename");
|
|
812
|
+
const bySlug = await resolveDocRef(projectRoot, slug);
|
|
695
813
|
if (!bySlug) {
|
|
696
814
|
send(
|
|
697
815
|
res,
|
|
@@ -701,7 +819,7 @@ function buildViewerHandler(opts = {}) {
|
|
|
701
819
|
);
|
|
702
820
|
return;
|
|
703
821
|
}
|
|
704
|
-
const fetched = await store.get(bySlug.
|
|
822
|
+
const fetched = await store.get(bySlug.sha256, projectRoot);
|
|
705
823
|
if (!fetched) {
|
|
706
824
|
send(
|
|
707
825
|
res,
|
|
@@ -725,7 +843,7 @@ function buildViewerHandler(opts = {}) {
|
|
|
725
843
|
lafsSuccessJson({
|
|
726
844
|
id: fetched.metadata.id,
|
|
727
845
|
slug: bySlug.slug,
|
|
728
|
-
type: bySlug.
|
|
846
|
+
type: bySlug.meta.docType,
|
|
729
847
|
title,
|
|
730
848
|
mime,
|
|
731
849
|
sha256: fetched.metadata.sha256,
|
|
@@ -1272,7 +1390,7 @@ async function runGapCheck(_projectRoot, filterId) {
|
|
|
1272
1390
|
var addCommand = defineCommand({
|
|
1273
1391
|
meta: {
|
|
1274
1392
|
name: "add",
|
|
1275
|
-
description: 'Usage: cleo docs add <OWNER-ID> [<file>] [--content <text> | --url <url>] [--slug <kebab>] [--type <kind>]\n OWNER-ID is the FIRST positional; the file is the SECOND. Examples:\n cleo docs add T123 ./docs/rfc.md --slug my-rfc --type spec\n cleo docs add T123 --content "# Note" --slug my-note\n\nAttach a local file or remote URL to a CLEO entity (task, session, observation). Owner type is inferred from the ID prefix: T### \u2192 task, ses_* \u2192 session, O-* \u2192 observation. Use --slug to set a human-friendly alias (unique per project) (T9636).\n\nPositional arguments:\n <owner-id> Owner entity ID (T###, ses_*, O-*) \u2014 required\n [file] Local file path to attach \u2014 optional when --url/--content is set\n\nNamed arguments:\n --url <url> Remote URL to attach (instead of a local file)\n --content <text> Inline document body \u2014 author without a file (T10965); \'-\' reads stdin\n --desc <text> Free-text description of this attachment\n --labels <csv> Comma-separated labels (e.g. rfc,spec)\n --attached-by <name> Agent identity that created the attachment (default: "human")\n --slug <kebab> Human-friendly alias, unique per project (T9636)\n --title <text> Human-readable title \u2014 REQUIRED for --type adr when --slug is omitted (T10360)\n --type <kind> Taxonomy classification \u2014 run `cleo docs schema` for kinds\n --
|
|
1393
|
+
description: 'Usage: cleo docs add <OWNER-ID> [<file>] [--content <text> | --url <url>] [--slug <kebab>] [--type <kind>]\n OWNER-ID is the FIRST positional; the file is the SECOND. Examples:\n cleo docs add T123 ./docs/rfc.md --slug my-rfc --type spec\n cleo docs add T123 --content "# Note" --slug my-note\n\nAttach a local file or remote URL to a CLEO entity (task, session, observation). Owner type is inferred from the ID prefix: T### \u2192 task, ses_* \u2192 session, O-* \u2192 observation. Use --slug to set a human-friendly alias (unique per project) (T9636).\n\nPositional arguments:\n <owner-id> Owner entity ID (T###, ses_*, O-*) \u2014 required\n [file] Local file path to attach \u2014 optional when --url/--content is set\n\nNamed arguments:\n --url <url> Remote URL to attach (instead of a local file)\n --content <text> Inline document body \u2014 author without a file (T10965); \'-\' reads stdin\n --desc <text> Free-text description of this attachment\n --labels <csv> Comma-separated labels (e.g. rfc,spec)\n --attached-by <name> Agent identity that created the attachment (default: "human")\n --slug <kebab> Human-friendly alias, unique per project (T9636)\n --title <text> Human-readable title \u2014 REQUIRED for --type adr when --slug is omitted (T10360)\n --type <kind> Taxonomy classification \u2014 run `cleo docs schema` for kinds\n --new-because <why> Add a doc that resembles an existing one; the reason is\n recorded in .cleo/audit/docs-new-because.jsonl (T14109)\n --strict Enforce body-schema (requiredSections) \u2014 fail with\n E_DOC_SCHEMA_MISMATCH instead of warning (T10160)\n' + docsOutputFlagHelp + "\n\nValidation behaviors:\n \u2022 Unknown flags \u2192 E_UNKNOWN_FLAG with did-you-mean suggestions (T10359)\n \u2022 Slug collision \u2192 E_SLUG_RESERVED + 3 alternative slugs (T10386)\n \u2022 Likely duplicate (same content, or similar slug, title or text) \u2192 E_DOC_DUPLICATE,\n naming the existing doc, `cleo docs fetch <slug>` and `cleo docs update <slug>`,\n unless --new-because <why> (T14109)\n \u2022 For --type adr without --slug, slug auto-allocates as `adr-NNN-<kebab-title>` via the\n central allocator (T10360 \u2014 closes T10153). --title is required in this case."
|
|
1276
1394
|
},
|
|
1277
1395
|
args: {
|
|
1278
1396
|
"owner-id": {
|
|
@@ -1317,9 +1435,13 @@ var addCommand = defineCommand({
|
|
|
1317
1435
|
type: "string",
|
|
1318
1436
|
description: "Taxonomy classification \u2014 run `cleo docs schema` to enumerate registered kinds (T9637 / T9788 / T11142)"
|
|
1319
1437
|
},
|
|
1438
|
+
"new-because": {
|
|
1439
|
+
type: "string",
|
|
1440
|
+
description: "Why this doc is new although it resembles an existing one (T14109). A likely duplicate (same content, or a similar slug, title or text) is refused with E_DOC_DUPLICATE and routed to `cleo docs update <slug>` unless this states the reason (15+ characters); the reason is recorded in .cleo/audit/docs-new-because.jsonl."
|
|
1441
|
+
},
|
|
1320
1442
|
"allow-similar": {
|
|
1321
1443
|
type: "boolean",
|
|
1322
|
-
description: "
|
|
1444
|
+
description: "Deprecated (T14109): needs --new-because <reason>, which is what lets a likely duplicate through."
|
|
1323
1445
|
},
|
|
1324
1446
|
strict: {
|
|
1325
1447
|
type: "boolean",
|
|
@@ -1399,83 +1521,17 @@ var addCommand = defineCommand({
|
|
|
1399
1521
|
process.exit(ExitCode6.FILE_ERROR);
|
|
1400
1522
|
}
|
|
1401
1523
|
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
mode = canon.similarity.mode;
|
|
1411
|
-
}
|
|
1412
|
-
} catch {
|
|
1413
|
-
}
|
|
1414
|
-
try {
|
|
1415
|
-
const sim = await checkSlugSimilarity({
|
|
1416
|
-
slug: args.slug,
|
|
1417
|
-
type: args.type,
|
|
1418
|
-
projectRoot,
|
|
1419
|
-
threshold: warnThreshold
|
|
1420
|
-
});
|
|
1421
|
-
if (sim.mostSimilarSlug !== null) {
|
|
1422
|
-
const scoreFixed = sim.score.toFixed(2);
|
|
1423
|
-
const hint = `Similar to '${sim.mostSimilarSlug}' (score ${scoreFixed}) \u2014 did you mean: cleo docs update ${sim.mostSimilarSlug}? Pass --allow-similar to bypass.`;
|
|
1424
|
-
if (mode === "block" && !allowSimilar) {
|
|
1425
|
-
cliError(hint, ExitCode6.VALIDATION_ERROR, {
|
|
1426
|
-
name: "E_SLUG_SIMILARITY",
|
|
1427
|
-
fix: `Use \`cleo docs update ${sim.mostSimilarSlug}\` if updating, or pass --allow-similar to add as a new doc.`,
|
|
1428
|
-
alternatives: [
|
|
1429
|
-
{
|
|
1430
|
-
action: `update '${sim.mostSimilarSlug}' instead`,
|
|
1431
|
-
command: `cleo docs update ${sim.mostSimilarSlug}`
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
action: "bypass the similarity check",
|
|
1435
|
-
command: `cleo docs add ${ownerId} ${fileArg ?? `--url ${url}`} --slug ${args.slug} --type ${args.type} --allow-similar`
|
|
1436
|
-
}
|
|
1437
|
-
],
|
|
1438
|
-
details: {
|
|
1439
|
-
proposedSlug: args.slug,
|
|
1440
|
-
mostSimilarSlug: sim.mostSimilarSlug,
|
|
1441
|
-
score: sim.score,
|
|
1442
|
-
threshold: warnThreshold,
|
|
1443
|
-
kind: args.type
|
|
1444
|
-
}
|
|
1445
|
-
});
|
|
1446
|
-
process.exit(ExitCode6.VALIDATION_ERROR);
|
|
1447
|
-
}
|
|
1448
|
-
humanInfo(hint);
|
|
1449
|
-
if (allowSimilar) {
|
|
1450
|
-
const auditLine = `${JSON.stringify({
|
|
1451
|
-
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1452
|
-
reason: "allow-similar-bypass",
|
|
1453
|
-
proposedSlug: args.slug,
|
|
1454
|
-
mostSimilarSlug: sim.mostSimilarSlug,
|
|
1455
|
-
score: sim.score,
|
|
1456
|
-
threshold: warnThreshold,
|
|
1457
|
-
kind: args.type,
|
|
1458
|
-
ownerId
|
|
1459
|
-
})}
|
|
1460
|
-
`;
|
|
1461
|
-
try {
|
|
1462
|
-
await mkdir3(join4(projectRoot, ".cleo", "audit"), { recursive: true });
|
|
1463
|
-
await appendFile(
|
|
1464
|
-
join4(projectRoot, ".cleo", "audit", "similar-bypass.jsonl"),
|
|
1465
|
-
auditLine,
|
|
1466
|
-
"utf-8"
|
|
1467
|
-
);
|
|
1468
|
-
} catch {
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
} catch (err) {
|
|
1473
|
-
if (process.env["CLEO_DEBUG"]) {
|
|
1474
|
-
humanInfo(
|
|
1475
|
-
`similarity check skipped: ${err instanceof Error ? err.message : String(err)}`
|
|
1476
|
-
);
|
|
1524
|
+
const newBecause = args["new-because"];
|
|
1525
|
+
if (allowSimilar && typeof newBecause !== "string") {
|
|
1526
|
+
cliError(
|
|
1527
|
+
"--allow-similar no longer bypasses the duplicate check on its own; say why this doc is new",
|
|
1528
|
+
6,
|
|
1529
|
+
{
|
|
1530
|
+
name: "E_VALIDATION",
|
|
1531
|
+
fix: 'Pass --new-because "<why this is not the existing doc>" (recorded in .cleo/audit/docs-new-because.jsonl), or update the existing doc with cleo docs update <slug>.'
|
|
1477
1532
|
}
|
|
1478
|
-
|
|
1533
|
+
);
|
|
1534
|
+
process.exit(6);
|
|
1479
1535
|
}
|
|
1480
1536
|
await dispatchFromCli(
|
|
1481
1537
|
"mutate",
|
|
@@ -1492,7 +1548,8 @@ var addCommand = defineCommand({
|
|
|
1492
1548
|
...args.slug ? { slug: args.slug } : {},
|
|
1493
1549
|
...args.title ? { title: args.title } : {},
|
|
1494
1550
|
...args.type ? { type: args.type } : {},
|
|
1495
|
-
...args.strict === true ? { strict: true } : {}
|
|
1551
|
+
...args.strict === true ? { strict: true } : {},
|
|
1552
|
+
...typeof newBecause === "string" ? { newBecause } : {}
|
|
1496
1553
|
},
|
|
1497
1554
|
{ command: "docs add" }
|
|
1498
1555
|
);
|
|
@@ -2562,7 +2619,7 @@ function parseOlderThanDays(raw) {
|
|
|
2562
2619
|
var doctorCommand = defineCommand({
|
|
2563
2620
|
meta: {
|
|
2564
2621
|
name: "doctor",
|
|
2565
|
-
description: "Docs store health diagnostics + safe repairs: dangling local-file pointers, docVersion skew vs the audit log, empty topics/related_tasks provenance, docs_wikilinks drift, legacy store surfaces, blob-store coverage, stale drafts. Dry-run by default; --apply executes repairs (a fresh backup is created automatically first); --repair runs only the hash-verified legacy-bytes \u2192 blob-store backfill (T13653)."
|
|
2622
|
+
description: "Docs store health diagnostics + safe repairs: dangling local-file pointers, docVersion skew vs the audit log, empty topics/related_tasks provenance, docs_wikilinks drift, legacy store surfaces, blob-store coverage, stale drafts, publication-ledger drift (rows whose mirror is gone or stale; T14117). Dry-run by default; --apply executes repairs (a fresh backup is created automatically first); --repair runs only the hash-verified legacy-bytes \u2192 blob-store backfill (T13653); --only <class,\u2026> scopes the plan and --apply to those repair classes (T14174)."
|
|
2566
2623
|
},
|
|
2567
2624
|
args: {
|
|
2568
2625
|
apply: {
|
|
@@ -2577,17 +2634,27 @@ var doctorCommand = defineCommand({
|
|
|
2577
2634
|
type: "string",
|
|
2578
2635
|
description: "Age threshold in days for the stale-drafts check (default 30)"
|
|
2579
2636
|
},
|
|
2637
|
+
only: {
|
|
2638
|
+
type: "string",
|
|
2639
|
+
description: "Comma-separated repair classes to plan and apply (T14174): dangling-pointers, doc-version-skew, empty-provenance, wikilinks-drift, legacy-blob-coverage, conduit-history-gaps, publication-ledger-drift. Other classes are left untouched."
|
|
2640
|
+
},
|
|
2580
2641
|
...docsOutputArgs
|
|
2581
2642
|
},
|
|
2582
2643
|
async run({ args }) {
|
|
2583
2644
|
const apply = args.apply === true;
|
|
2584
2645
|
const repair = args.repair === true;
|
|
2585
2646
|
const olderThanDays = parseOlderThanDays(args["older-than-days"]);
|
|
2647
|
+
const only = typeof args.only === "string" ? args.only : void 0;
|
|
2586
2648
|
await dispatchFromCli(
|
|
2587
2649
|
apply || repair ? "mutate" : "query",
|
|
2588
2650
|
"docs",
|
|
2589
2651
|
"doctor",
|
|
2590
|
-
{
|
|
2652
|
+
{
|
|
2653
|
+
apply,
|
|
2654
|
+
repair,
|
|
2655
|
+
...olderThanDays !== void 0 ? { olderThanDays } : {},
|
|
2656
|
+
...only !== void 0 ? { only } : {}
|
|
2657
|
+
},
|
|
2591
2658
|
{ command: "docs doctor" }
|
|
2592
2659
|
);
|
|
2593
2660
|
}
|
|
@@ -2875,8 +2942,12 @@ var docsCommand = defineCommand({
|
|
|
2875
2942
|
triage: triageCommand,
|
|
2876
2943
|
// T13363 — docs.stats adoption metrics (read-only)
|
|
2877
2944
|
stats: statsCommand,
|
|
2945
|
+
// T14111 — docs.rot stale/duplicate/orphaned report (read-only, git only)
|
|
2946
|
+
rot: rotCommand,
|
|
2878
2947
|
// T13360 — docs.migrate legacy docs import (harness-bracketed, idempotent)
|
|
2879
2948
|
migrate: migrateCommand,
|
|
2949
|
+
// T14113 — docs.modernize (dry run / apply / rollback)
|
|
2950
|
+
modernize: modernizeCommand,
|
|
2880
2951
|
// Drift status — agent-facing, kept per cleodocs-rearch-design §6 (T13361 retired gap-check only)
|
|
2881
2952
|
status: statusCommand,
|
|
2882
2953
|
// T9645 reingest — retained: the docs-reingest workflow invokes `docs sync --from/--for/--name`
|
|
@@ -2897,4 +2968,4 @@ export {
|
|
|
2897
2968
|
_llmOutputCommand,
|
|
2898
2969
|
docsCommand
|
|
2899
2970
|
};
|
|
2900
|
-
//# sourceMappingURL=docs-
|
|
2971
|
+
//# sourceMappingURL=docs-O5A34WJY.js.map
|