agentic-qe 3.15.9 → 3.15.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/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +251 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/adapters/a2ui/catalog/component-schemas.js +2 -1
- package/dist/adapters/a2ui/data/json-pointer-resolver.js +10 -5
- package/dist/adapters/a2ui/integration/agui-sync.js +10 -6
- package/dist/adapters/a2ui/integration/surface-state-bridge.js +9 -5
- package/dist/adapters/ag-ui/json-patch.js +10 -6
- package/dist/audit/witness-chain.d.ts +1 -1
- package/dist/cli/bundle.js +6 -6
- package/dist/cli/chunks/adapter-TR5SLAZC.js +2 -0
- package/dist/cli/chunks/agent-booster-wasm-H7ANGXW4.js +2 -0
- package/dist/cli/chunks/{agent-handler-RIYHTHVZ.js → agent-handler-SVXSHEET.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-WSUCUHOO.js → agent-memory-branch-WKQH36XL.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-DXWKCHY2.js +2 -0
- package/dist/cli/chunks/{arena-KRIBMIXX.js → arena-EKOOFVST.js} +2 -2
- package/dist/cli/chunks/{arena-YAJZX6MC.js → arena-OPS36NFZ.js} +4 -4
- package/dist/cli/chunks/{audit-7ZNOXWP3.js → audit-AO5NDZRI.js} +3 -3
- package/dist/cli/chunks/base-GTB6POYE.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-ZQAT4I6H.js → better-sqlite3-TFLVEMMY.js} +2 -2
- package/dist/cli/chunks/{brain-handler-452WCPZC.js → brain-handler-ADBBJPYW.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-IJFXJRPN.js → branch-enumerator-HGHUYYL5.js} +2 -2
- package/dist/cli/chunks/browser-5LU6P4SZ.js +4 -0
- package/dist/cli/chunks/browser-workflow-MSBOLYUY.js +2 -0
- package/dist/cli/chunks/{chunk-UOJBR4J3.js → chunk-2SXBBUM6.js} +2 -2
- package/dist/cli/chunks/{chunk-7JKB3Q7O.js → chunk-2T7RRL6G.js} +1 -1
- package/dist/cli/chunks/{chunk-HCYQHWI2.js → chunk-2XGVTYVX.js} +2 -2
- package/dist/cli/chunks/{chunk-3LYU7BLY.js → chunk-2ZI5FKSF.js} +2 -2
- package/dist/cli/chunks/chunk-2ZMF4NCF.js +4 -0
- package/dist/cli/chunks/{chunk-F3PQZX44.js → chunk-37OWRCUN.js} +1 -1
- package/dist/cli/chunks/{chunk-YRBBBUJX.js → chunk-3P34JFQH.js} +4 -4
- package/dist/cli/chunks/{chunk-ICP2ORGI.js → chunk-3Y7SPD72.js} +2 -2
- package/dist/cli/chunks/{chunk-WGDR2KIR.js → chunk-4G63WT4F.js} +2 -2
- package/dist/cli/chunks/chunk-4SJYIX54.js +3 -0
- package/dist/cli/chunks/chunk-5E6GHSTY.js +3 -0
- package/dist/cli/chunks/{chunk-OXTFSIGN.js → chunk-5LPYV3TK.js} +1 -1
- package/dist/cli/chunks/{chunk-XWIUFYM3.js → chunk-62OAY5KJ.js} +1 -1
- package/dist/cli/chunks/{chunk-VCMINU7K.js → chunk-6C3II5OM.js} +2 -2
- package/dist/cli/chunks/{chunk-EFBLP43U.js → chunk-6GP6W46M.js} +2 -2
- package/dist/cli/chunks/{chunk-4JCY45KV.js → chunk-6KIL6CMD.js} +2 -2
- package/dist/cli/chunks/{chunk-CTZJUV5I.js → chunk-6MVVSSID.js} +1 -1
- package/dist/cli/chunks/{chunk-JEP4ULR6.js → chunk-6P7424AO.js} +2 -2
- package/dist/cli/chunks/{chunk-SVHUYVUR.js → chunk-6PX4OXQO.js} +2 -2
- package/dist/cli/chunks/{chunk-LEAKYZ37.js → chunk-6S3WJGUV.js} +2 -2
- package/dist/cli/chunks/{chunk-7X2Y727E.js → chunk-6TB6YOCZ.js} +1 -1
- package/dist/cli/chunks/{chunk-VU2EL424.js → chunk-6X5DHU6Q.js} +1 -1
- package/dist/cli/chunks/{chunk-DDPPSSHW.js → chunk-6XCMKIZN.js} +1 -1
- package/dist/cli/chunks/{chunk-ZANDSVCK.js → chunk-7LFZ4CHM.js} +2 -2
- package/dist/cli/chunks/{chunk-UYLYMWV5.js → chunk-7OZVZIBE.js} +2 -2
- package/dist/cli/chunks/{chunk-32UTLDNY.js → chunk-7PJIR4ST.js} +2 -2
- package/dist/cli/chunks/{chunk-DINZR5CF.js → chunk-7TB6FK4B.js} +1 -1
- package/dist/cli/chunks/{chunk-KVBEGOJE.js → chunk-7ZCDZHDB.js} +2 -2
- package/dist/cli/chunks/{chunk-55HRSNGN.js → chunk-A55QKKT2.js} +2 -2
- package/dist/cli/chunks/{chunk-LCJTEUDC.js → chunk-ABFFWZPC.js} +428 -433
- package/dist/cli/chunks/{chunk-PVIA2FPD.js → chunk-ACWFKES2.js} +2 -2
- package/dist/cli/chunks/{chunk-2BA45H64.js → chunk-AH3ZD3NJ.js} +2 -2
- package/dist/cli/chunks/{chunk-OG2UI6A3.js → chunk-AI4VYSFS.js} +2 -2
- package/dist/cli/chunks/chunk-APSRPR4W.js +2 -0
- package/dist/cli/chunks/chunk-ATHWDAXB.js +3 -0
- package/dist/cli/chunks/{chunk-TSYQDRNK.js → chunk-B6LTH6YV.js} +2 -2
- package/dist/cli/chunks/chunk-BQUAE3CP.js +3 -0
- package/dist/cli/chunks/{chunk-OCESWNAZ.js → chunk-C522H7XR.js} +54 -33
- package/dist/cli/chunks/{chunk-TUYJ53V4.js → chunk-CESIR27V.js} +2 -2
- package/dist/cli/chunks/{chunk-PBZI2ZPV.js → chunk-CFBEBXLO.js} +3 -3
- package/dist/cli/chunks/{chunk-FJ4VTLLK.js → chunk-CMBLM26R.js} +2 -2
- package/dist/cli/chunks/{chunk-YZYDTABJ.js → chunk-CZ2IF6MC.js} +1 -1
- package/dist/cli/chunks/{chunk-GKPQ2GRR.js → chunk-CZGOSJQ4.js} +2 -2
- package/dist/cli/chunks/{chunk-FL3OYGCS.js → chunk-D6DA2KFD.js} +2 -2
- package/dist/cli/chunks/{chunk-37BIGMJI.js → chunk-DBMNJSBV.js} +1 -1
- package/dist/cli/chunks/{chunk-BHKXMIWX.js → chunk-DE4YJQJF.js} +2 -2
- package/dist/cli/chunks/{chunk-3CJCROMW.js → chunk-DEF34AFL.js} +2 -2
- package/dist/cli/chunks/chunk-DKAC3E3B.js +3 -0
- package/dist/cli/chunks/{chunk-AOFO4N32.js → chunk-DMFTELBS.js} +2 -2
- package/dist/cli/chunks/{chunk-KLGYIEJK.js → chunk-DNRWGATA.js} +10 -10
- package/dist/cli/chunks/{chunk-JWGRWMZP.js → chunk-DT7SIJOA.js} +2 -2
- package/dist/cli/chunks/{chunk-6PXA2BQJ.js → chunk-DURHK377.js} +67 -67
- package/dist/cli/chunks/{chunk-HAROIAJE.js → chunk-EAU5KDFO.js} +1 -1
- package/dist/cli/chunks/{chunk-L42JPFCC.js → chunk-EDLFX4ZB.js} +2 -2
- package/dist/cli/chunks/{chunk-6OOYIO3W.js → chunk-EN2QSKFF.js} +2 -2
- package/dist/cli/chunks/{chunk-UNUTC6TX.js → chunk-ERQKYIP7.js} +2 -2
- package/dist/cli/chunks/{chunk-KFUUIAR4.js → chunk-ESUO3GTJ.js} +2 -2
- package/dist/cli/chunks/{chunk-4V27J6YN.js → chunk-EWFECZ2U.js} +2 -2
- package/dist/cli/chunks/{chunk-4W4DYVSH.js → chunk-FAUCT5KR.js} +3 -3
- package/dist/cli/chunks/{chunk-IFEIY3NQ.js → chunk-FB6TI3BH.js} +2 -2
- package/dist/cli/chunks/{chunk-2TDIS6YK.js → chunk-FBXTQNRH.js} +2 -2
- package/dist/cli/chunks/{chunk-XOLDMK23.js → chunk-FESZBPUB.js} +2 -2
- package/dist/cli/chunks/chunk-FFTPAWM6.js +141 -0
- package/dist/cli/chunks/{chunk-A6YIH4C4.js → chunk-FKL3R5JQ.js} +2 -2
- package/dist/cli/chunks/{chunk-N5PDFGCQ.js → chunk-FPUDRSFJ.js} +2 -2
- package/dist/cli/chunks/{chunk-7QGYJ5OY.js → chunk-FZOWULMH.js} +1 -1
- package/dist/cli/chunks/{chunk-AVB5QY2Q.js → chunk-G3CZCUPM.js} +2 -2
- package/dist/cli/chunks/{chunk-FV3NHVC7.js → chunk-G5I6KGMW.js} +3 -3
- package/dist/cli/chunks/{chunk-N3KEY4XJ.js → chunk-GHBNRMSJ.js} +2 -2
- package/dist/cli/chunks/{chunk-2YH62JCN.js → chunk-GJHWY3ZX.js} +2 -2
- package/dist/cli/chunks/{chunk-ZXBCCO2H.js → chunk-GJMLK5UT.js} +2 -2
- package/dist/cli/chunks/{chunk-NHZIWIQZ.js → chunk-GRCIBCJ2.js} +2 -2
- package/dist/cli/chunks/{chunk-J3DTDJDT.js → chunk-GWZZ7DAO.js} +2 -2
- package/dist/cli/chunks/{chunk-4SUOVLJ6.js → chunk-GZLZCZ42.js} +2 -2
- package/dist/cli/chunks/{chunk-MZS32SYS.js → chunk-H2PYU7MN.js} +1 -1
- package/dist/cli/chunks/{chunk-ABFDB4X3.js → chunk-H32EPIR2.js} +1 -1
- package/dist/cli/chunks/{chunk-KIXYKUCI.js → chunk-H74Q7TJN.js} +1 -1
- package/dist/cli/chunks/chunk-HOZUDE4C.js +2 -0
- package/dist/cli/chunks/{chunk-PMCRCEW5.js → chunk-I33O4BRQ.js} +2 -2
- package/dist/cli/chunks/{chunk-N3NP6PTT.js → chunk-IKISCIGH.js} +2 -2
- package/dist/cli/chunks/{chunk-Q3JVJRVJ.js → chunk-IPJ7Q3AJ.js} +1 -1
- package/dist/cli/chunks/{chunk-WRRCQ2UE.js → chunk-IU2IV4NE.js} +1 -1
- package/dist/cli/chunks/{chunk-QQ5SZH4D.js → chunk-JHIY4VCC.js} +2 -2
- package/dist/cli/chunks/{chunk-W32YU3VI.js → chunk-KG336OV3.js} +2 -2
- package/dist/cli/chunks/{chunk-W5VJRDDG.js → chunk-KI73QCR5.js} +2 -2
- package/dist/cli/chunks/{chunk-HGTWAZWU.js → chunk-KNQ2ERFX.js} +2 -2
- package/dist/cli/chunks/{chunk-SNBYYO6F.js → chunk-KOBVYY6H.js} +2 -2
- package/dist/cli/chunks/{chunk-VQHVHVSF.js → chunk-KSIWGGJI.js} +8 -8
- package/dist/cli/chunks/{chunk-REUFWGMA.js → chunk-LMS3Y7JD.js} +2 -2
- package/dist/cli/chunks/{chunk-LMU5DUDK.js → chunk-LQEURY7C.js} +1 -1
- package/dist/cli/chunks/{chunk-AJ4YDSOI.js → chunk-LRZY4KS2.js} +2 -2
- package/dist/cli/chunks/{chunk-KIKWJM6J.js → chunk-M2QV7PT7.js} +2 -2
- package/dist/cli/chunks/{chunk-TNMQVG4A.js → chunk-MA7JIQ6U.js} +2 -2
- package/dist/cli/chunks/{chunk-I6S35FRO.js → chunk-MG27QY4D.js} +2 -2
- package/dist/cli/chunks/chunk-MNN5J4GU.js +12 -0
- package/dist/cli/chunks/chunk-N6PIIK6G.js +3 -0
- package/dist/cli/chunks/chunk-NAXGWDVM.js +12 -0
- package/dist/cli/chunks/{chunk-XOVNZT7F.js → chunk-NGKNYIQZ.js} +1 -1
- package/dist/cli/chunks/chunk-NNFZUTDH.js +2 -0
- package/dist/cli/chunks/{chunk-ZVSLCEVC.js → chunk-NPPHWFA2.js} +3 -3
- package/dist/cli/chunks/{chunk-JNNZK7KH.js → chunk-NSHU347M.js} +1 -1
- package/dist/cli/chunks/{chunk-PX2B5TS2.js → chunk-NVYIZCSR.js} +2 -2
- package/dist/cli/chunks/{chunk-5NS3USRW.js → chunk-NW5JUCCG.js} +1 -1
- package/dist/cli/chunks/{chunk-KR3M44CF.js → chunk-NZYLNXT6.js} +3 -3
- package/dist/cli/chunks/{chunk-5D2I7JUP.js → chunk-OBAREPDC.js} +2 -2
- package/dist/cli/chunks/{chunk-F4JYIRW2.js → chunk-ODJNUMV3.js} +2 -2
- package/dist/cli/chunks/{chunk-K5DJXMAA.js → chunk-OEKP73MC.js} +2 -2
- package/dist/cli/chunks/{chunk-2URBI52G.js → chunk-OPFGRS5S.js} +2 -2
- package/dist/cli/chunks/{chunk-HZ5NC6U5.js → chunk-OY2AHLSF.js} +1 -1
- package/dist/cli/chunks/{chunk-GII5WVAK.js → chunk-OY3NJNP2.js} +1 -1
- package/dist/cli/chunks/{chunk-P73W2K7T.js → chunk-PCEW6Q2C.js} +1 -1
- package/dist/cli/chunks/{chunk-7QTB5VJZ.js → chunk-PFG6VQ5Z.js} +2 -2
- package/dist/cli/chunks/{chunk-7KII4CQG.js → chunk-PGYMKGOE.js} +2 -2
- package/dist/cli/chunks/{chunk-BXO536GT.js → chunk-PPSAMXYN.js} +3 -3
- package/dist/cli/chunks/chunk-RK73HB2F.js +2 -0
- package/dist/cli/chunks/{chunk-ZBDRLF43.js → chunk-RPHY2DU6.js} +2 -2
- package/dist/cli/chunks/{chunk-XDBD4GXO.js → chunk-RWWOHCMG.js} +25 -20
- package/dist/cli/chunks/{chunk-J5KNRVXR.js → chunk-S75EYIJG.js} +1 -1
- package/dist/cli/chunks/{chunk-ETG7O5E5.js → chunk-SKQUUE4F.js} +5 -5
- package/dist/cli/chunks/chunk-SO45NA4D.js +180 -0
- package/dist/cli/chunks/{chunk-47V7FQGX.js → chunk-SU5H66SD.js} +2 -2
- package/dist/cli/chunks/{chunk-NTAD5UX4.js → chunk-SY2IB442.js} +2 -2
- package/dist/cli/chunks/{chunk-D6XVGFTI.js → chunk-TBLI254A.js} +2 -2
- package/dist/cli/chunks/{chunk-47TYABPD.js → chunk-TNMBRDCA.js} +3 -3
- package/dist/cli/chunks/{chunk-P2CXVNKK.js → chunk-TYFZXDGZ.js} +2 -2
- package/dist/cli/chunks/{chunk-2XITOPYV.js → chunk-U4OICXV2.js} +2 -2
- package/dist/cli/chunks/{chunk-JAV5WPSY.js → chunk-U53ZB4IX.js} +2 -2
- package/dist/cli/chunks/chunk-UARKIZAS.js +2 -0
- package/dist/cli/chunks/{chunk-2HL3UM5P.js → chunk-UCJMVXO4.js} +2 -2
- package/dist/cli/chunks/{chunk-HWK5L7IJ.js → chunk-UHTTW3IT.js} +2 -2
- package/dist/cli/chunks/{chunk-OXZLKP6C.js → chunk-V2M2XCR5.js} +1 -1
- package/dist/cli/chunks/{chunk-YZGSJG34.js → chunk-V2RSNVMW.js} +1 -1
- package/dist/cli/chunks/{chunk-5JWGCIQW.js → chunk-V6JBOIMX.js} +1 -1
- package/dist/cli/chunks/{chunk-JUVHZG7I.js → chunk-VFKF2XO7.js} +1 -1
- package/dist/cli/chunks/{chunk-XQ3DDY7X.js → chunk-VFSYMOAL.js} +2 -2
- package/dist/cli/chunks/{chunk-V5PXQSFS.js → chunk-VJQYDYAJ.js} +2 -2
- package/dist/cli/chunks/{chunk-A4RU67VX.js → chunk-VKRTTFB6.js} +2 -2
- package/dist/cli/chunks/{chunk-H3KBIWTO.js → chunk-VWNFAW2M.js} +2 -2
- package/dist/cli/chunks/{chunk-72AMFDC7.js → chunk-WBM6N6IM.js} +1 -1
- package/dist/cli/chunks/{chunk-XUIA5KMS.js → chunk-WDQ7IEZY.js} +2 -2
- package/dist/cli/chunks/{chunk-FLASM2XB.js → chunk-WDVRE6GN.js} +2 -2
- package/dist/cli/chunks/{chunk-FV7VAG74.js → chunk-WQ4PYWSW.js} +1 -1
- package/dist/cli/chunks/{chunk-DGTLJNJH.js → chunk-WSF24I3D.js} +2 -2
- package/dist/cli/chunks/{chunk-6YL6JOQB.js → chunk-XBVUVFJK.js} +2 -2
- package/dist/cli/chunks/{chunk-VRGCKBF7.js → chunk-XEB3NLJR.js} +2 -2
- package/dist/cli/chunks/{chunk-XYCKHYBM.js → chunk-XFVTGAAJ.js} +2 -2
- package/dist/cli/chunks/{chunk-2I2UPJS7.js → chunk-XLZYRTNO.js} +2 -2
- package/dist/cli/chunks/{chunk-AR2E4B7K.js → chunk-XUZDBQ5X.js} +5 -5
- package/dist/cli/chunks/{chunk-AQTVVLNP.js → chunk-Y76IAYQD.js} +1 -1
- package/dist/cli/chunks/{chunk-UOWHE77F.js → chunk-YAKGBHO4.js} +2 -2
- package/dist/cli/chunks/{chunk-JK2ME6IT.js → chunk-YBSBABOS.js} +2 -2
- package/dist/cli/chunks/{chunk-NDKLQW6N.js → chunk-YCGP5VFP.js} +2 -2
- package/dist/cli/chunks/{chunk-GBUIG3FS.js → chunk-YDAQK5UF.js} +1 -1
- package/dist/cli/chunks/{chunk-HTZJSQ3C.js → chunk-YK3BVZY6.js} +2 -2
- package/dist/cli/chunks/{chunk-GCWSX2NY.js → chunk-YK7JN5N7.js} +4 -4
- package/dist/cli/chunks/{chunk-C6RTMTEH.js → chunk-YKMU4LBV.js} +1 -1
- package/dist/cli/chunks/{chunk-JP4P3P3D.js → chunk-YYTGXD3R.js} +2 -2
- package/dist/cli/chunks/{chunk-763SUL4B.js → chunk-Z2O2YJAF.js} +2 -2
- package/dist/cli/chunks/{chunk-QTVWUQTB.js → chunk-Z7IYW5U7.js} +1 -1
- package/dist/cli/chunks/{chunk-XZJ2O3VC.js → chunk-ZG5666GJ.js} +1 -1
- package/dist/cli/chunks/{chunk-6EPHNJTL.js → chunk-ZXPY654C.js} +1 -1
- package/dist/cli/chunks/{ci-7SGRCFPS.js → ci-MSKMVH5X.js} +2 -2
- package/dist/cli/chunks/{ci-config-MX3URPZA.js → ci-config-7ODMNAUM.js} +2 -2
- package/dist/cli/chunks/{ci-output-M47NJY6D.js → ci-output-FXZ7ZZW3.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-5GAK45SW.js → circuit-breaker-4VOUEPOX.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-YXYSRH4Y.js → claude-flow-setup-7D4SGLM4.js} +2 -2
- package/dist/cli/chunks/client-POSVREVS.js +2 -0
- package/dist/cli/chunks/{cline-installer-DLJ5QD5N.js → cline-installer-WRRT7BGQ.js} +2 -2
- package/dist/cli/chunks/{code-ONKLMVQ2.js → code-ZDJRIL3S.js} +3 -3
- package/dist/cli/chunks/{code-index-extractor-2232LGZN.js → code-index-extractor-4S4SHM56.js} +2 -2
- package/dist/cli/chunks/{codex-installer-UOWLYCMH.js → codex-installer-YTRHNDWR.js} +2 -2
- package/dist/cli/chunks/{completions-MHX7GCC7.js → completions-6N64JUXJ.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-43ZUJKZU.js → complexity-analyzer-I4A26VCJ.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-6Q5JR4FF.js → continuedev-installer-IIDR66LB.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-CZUMVHSI.js → copilot-installer-SVVFY3S2.js} +2 -2
- package/dist/cli/chunks/core-handlers-V243GY7X.js +2 -0
- package/dist/cli/chunks/{cost-tracker-VS5ZW3XN.js → cost-tracker-VGFS6IBX.js} +2 -2
- package/dist/cli/chunks/{coverage-VWKTWZ6D.js → coverage-B7MCGNTE.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-N3AIEM3B.js +2 -0
- package/dist/cli/chunks/{cursor-installer-YIFEMORH.js → cursor-installer-UPETT57E.js} +2 -2
- package/dist/cli/chunks/daemon-7BDJHEIJ.js +18 -0
- package/dist/cli/chunks/{daemon-SHWJSJW5.js → daemon-CQFNZLXU.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-TCC2WM46.js → dag-attention-scheduler-PJVABHON.js} +2 -2
- package/dist/cli/chunks/{detect-IGTWSQMA.js → detect-56SKAGWX.js} +2 -2
- package/dist/cli/chunks/{dist-node-TCOTJVQX.js → dist-node-UYTYUMLN.js} +2 -2
- package/dist/cli/chunks/{domain-handler-55ZVYODR.js → domain-handler-YOYLBYJE.js} +2 -2
- package/dist/cli/chunks/{domain-plugins-GJRWOHQP.js → domain-plugins-7TARX2XF.js} +2 -2
- package/dist/cli/chunks/domain-transfer-AKVSBD6E.js +2 -0
- package/dist/cli/chunks/dream-UA7MKOPQ.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-XAMNIKQL.js → embed-and-insert-pattern-IS6HSR66.js} +2 -2
- package/dist/cli/chunks/{eval-GO22R4OZ.js → eval-GNB574IM.js} +2 -2
- package/dist/cli/chunks/{experience-capture-middleware-F2BRMJ3Y.js → experience-capture-middleware-RCAOCKM7.js} +3 -3
- package/dist/cli/chunks/{fast-paths-6RGPYALD.js → fast-paths-KTZ5SF54.js} +2 -2
- package/dist/cli/chunks/{feature-flags-ZGS3KLPH.js → feature-flags-ITX5LQ57.js} +2 -2
- package/dist/cli/chunks/{feature-flags-MIWQIOHU.js → feature-flags-KFHSR5YF.js} +2 -2
- package/dist/cli/chunks/file-discovery-YCMNKZAK.js +2 -0
- package/dist/cli/chunks/fleet-2Y3ZE6CE.js +46 -0
- package/dist/cli/chunks/{gnn-wrapper-ALBJVW6T.js → gnn-wrapper-RLFW3GSX.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-ZMM53NDY.js → heartbeat-handler-EM2URCYZ.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-QH5V6G2P.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-OJNFAGJS.js +2 -0
- package/dist/cli/chunks/hnsw-index-DFUNARVD.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-RYUJPA7B.js → hnsw-legacy-bridge-JMHEOIBH.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-XM6XF3YV.js → hnswlib-node-CBP73QHY.js} +2 -2
- package/dist/cli/chunks/{hooks-X62O7TJO.js → hooks-IP7XE34Z.js} +34 -34
- package/dist/cli/chunks/hybrid-backend-SSGQQEQ2.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-ZBWUPTVD.js → hypergraph-engine-ONAYHU25.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-DUMF6SJV.js → hypergraph-handler-VINJRAID.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-CRGCA7ZD.js +2 -0
- package/dist/cli/chunks/{init-guard-S4I2R46S.js → init-guard-RYVV5R3Z.js} +2 -2
- package/dist/cli/chunks/{init-handler-L4KJHVWS.js → init-handler-MPRGWMOE.js} +6 -6
- package/dist/cli/chunks/init-wizard-NIMZ4J55.js +2 -0
- package/dist/cli/chunks/kernel-JQK7PRAI.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-GNNB5FCZ.js → kilocode-installer-OPD7JBRL.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-HR6ZAH7T.js → kiro-installer-M4OPUNK2.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-YPVVIKEU.js +2 -0
- package/dist/cli/chunks/{learning-4IEEOHJS.js → learning-4UWTQLMF.js} +24 -24
- package/dist/cli/chunks/{llm-router-ZFMORP36.js → llm-router-SQ56FF6Z.js} +4 -4
- package/dist/cli/chunks/llm-router-service-5OGAUOXF.js +2 -0
- package/dist/cli/chunks/{load-ZM43WGDO.js → load-HPHKDGGL.js} +2 -2
- package/dist/cli/chunks/load-test-UKNV5MWW.js +2 -0
- package/dist/cli/chunks/mcp-TELMAC7Z.js +2 -0
- package/dist/cli/chunks/{memory-W5FZGVAD.js → memory-PFQ3KPVJ.js} +5 -5
- package/dist/cli/chunks/memory-backend-ZW4BTRNK.js +2 -0
- package/dist/cli/chunks/memory-handlers-FCXN437E.js +2 -0
- package/dist/cli/chunks/{multi-model-executor-SXXGAQ2G.js → multi-model-executor-3VDRX6TZ.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-PIRBUAB5.js → opencode-installer-PJ576R63.js} +2 -2
- package/dist/cli/chunks/{orchestrator-H5SQCQTB.js → orchestrator-72QP4UU7.js} +63 -19
- package/dist/cli/chunks/pattern-null-store-4DUV6MQC.js +2 -0
- package/dist/cli/chunks/{pattern-usage-recorder-XZTWDI2T.js → pattern-usage-recorder-754YQW7C.js} +2 -2
- package/dist/cli/chunks/pipeline-AVXY4MVB.js +19 -0
- package/dist/cli/chunks/{platform-KJDABL5C.js → platform-3E3DXLYB.js} +2 -2
- package/dist/cli/chunks/{plugin-V4KSBVVM.js → plugin-7FUQAKRE.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-JDHTKQAT.js → prime-radiant-advanced-wasm-NIB4F5NV.js} +2 -2
- package/dist/cli/chunks/project-root-JCAUNL6O.js +2 -0
- package/dist/cli/chunks/protocol-executor-RNZNZP3A.js +2 -0
- package/dist/cli/chunks/{protocol-handler-BNRONTQV.js → protocol-handler-BQRYMUTG.js} +2 -2
- package/dist/cli/chunks/{prove-ELLL6XMX.js → prove-H52QGC6B.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-WK6TQOG2.js +2 -0
- package/dist/cli/chunks/{quality-NH2QA4D4.js → quality-QO4XPAUM.js} +2 -2
- package/dist/cli/chunks/{quality-gate-JTKLF7GW.js → quality-gate-FBKE5E6F.js} +3 -3
- package/dist/cli/chunks/queen-coordinator-4452SXZQ.js +2 -0
- package/dist/cli/chunks/{real-embeddings-J3KCKLPB.js → real-embeddings-RWGOVOXO.js} +2 -2
- package/dist/cli/chunks/{ref-validation-HNXQRP4F.js → ref-validation-LF76ZOBD.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-COJ6CX6S.js → roocode-installer-3BYEBTQ7.js} +2 -2
- package/dist/cli/chunks/router-3DIS5X4R.js +2 -0
- package/dist/cli/chunks/routing-feedback-OPXRCXM7.js +2 -0
- package/dist/cli/chunks/{routing-handler-WM33ZILE.js → routing-handler-DST7BVCU.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-BBLXEA7A.js → ruvector-commands-XE32PGKC.js} +2 -2
- package/dist/cli/chunks/rvf-dual-writer-JL6T727I.js +2 -0
- package/dist/cli/chunks/rvf-migration-adapter-V7IBDUCS.js +2 -0
- package/dist/cli/chunks/{rvf-migration-coordinator-P7H6HCAG.js → rvf-migration-coordinator-VP32XC75.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-O3UQTEBK.js +2 -0
- package/dist/cli/chunks/{rvf-store-integrity-R5SPVRFP.js → rvf-store-integrity-SH2AMVI7.js} +2 -2
- package/dist/cli/chunks/safe-db-EVB4ZC7T.js +2 -0
- package/dist/cli/chunks/schedule-ORDDXXY4.js +2 -0
- package/dist/cli/chunks/scheduler-XFLJSFIU.js +2 -0
- package/dist/cli/chunks/{security-AUDTRX3I.js → security-VSPNKCDS.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-PVDGBGI2.js → shared-rvf-adapter-HX6AHL3P.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-LZ2GMSS2.js → shared-rvf-dual-writer-MX4FC2JE.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-Y7B42CJ3.js +2 -0
- package/dist/cli/chunks/{standalone-memory-XNOAI4G4.js → standalone-memory-O4QUTK6L.js} +2 -2
- package/dist/cli/chunks/{status-handler-K72XZE4T.js → status-handler-Z2BP6EOG.js} +2 -2
- package/dist/cli/chunks/{structural-health-NF3YY7U5.js → structural-health-R36WNLQG.js} +2 -2
- package/dist/cli/chunks/sync-2ELWUFQU.js +2 -0
- package/dist/cli/chunks/{sync-VBD5Y3E2.js → sync-QF5Y3EMZ.js} +2 -2
- package/dist/cli/chunks/{task-handler-24S3WFVJ.js → task-handler-43PYE75J.js} +2 -2
- package/dist/cli/chunks/task-handlers-KPWAEMKH.js +9 -0
- package/dist/cli/chunks/{test-XFSGQELD.js → test-UWA377D4.js} +16 -16
- package/dist/cli/chunks/test-runner-process-3XZUYST2.js +2 -0
- package/dist/cli/chunks/{test-scheduling-VYUQ4CDE.js → test-scheduling-YQZPJRRN.js} +3 -3
- package/dist/cli/chunks/token-bootstrap-F7C6UKTC.js +2 -0
- package/dist/cli/chunks/{token-usage-VLQ6WO2L.js → token-usage-DO6WLMXP.js} +2 -2
- package/dist/cli/chunks/{transformers-TOFMWWNM.js → transformers-H5RGFKVO.js} +2 -2
- package/dist/cli/chunks/tree-sitter-wasm-parser-YTBCBHUO.js +2 -0
- package/dist/cli/chunks/{types-JTWLBAZJ.js → types-PJS2FGPF.js} +2 -2
- package/dist/cli/chunks/unified-memory-EHD4VNFW.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-ZODGM4UK.js +2 -0
- package/dist/cli/chunks/unified-persistence-MHSI7ABK.js +2 -0
- package/dist/cli/chunks/{upgrade-4ABM72T4.js → upgrade-4IC4F6AB.js} +2 -2
- package/dist/cli/chunks/{validate-UDJCWKXI.js → validate-DHUWW7PF.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-TODOUWNN.js → validate-swarm-OERQNOX5.js} +2 -2
- package/dist/cli/chunks/visual-security-54MLFKWY.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-WBMAJPM5.js → web-tree-sitter-TV7DMKES.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-BTT53TUL.js → windsurf-installer-QZPWSH37.js} +2 -2
- package/dist/cli/chunks/witness-chain-LC6Q2W27.js +2 -0
- package/dist/cli/chunks/witness-chain-QUIBAF3W.js +2 -0
- package/dist/cli/chunks/witness-chain-repair-RUXIOE7F.js +2 -0
- package/dist/cli/chunks/{witness-chain-verifier-FRY3LMGH.js → witness-chain-verifier-YXENHB42.js} +2 -2
- package/dist/cli/chunks/{witness-key-manager-X7QHQQWL.js → witness-key-manager-HL26AGFO.js} +2 -2
- package/dist/cli/chunks/{workflow-QMZPAWQW.js → workflow-EOVVCN2E.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-UKHEJVSK.js +2 -0
- package/dist/cli/chunks/wrappers-AGODHBOO.js +2 -0
- package/dist/cli/commands/fleet.js +19 -12
- package/dist/cli/commands/hooks-handlers/hooks-dream-learning.js +9 -2
- package/dist/cli/commands/hooks-handlers/session-hooks.js +2 -2
- package/dist/cli/commands/hooks-handlers/stats-hooks.js +3 -2
- package/dist/cli/commands/learning.js +5 -3
- package/dist/cli/commands/ruvector-commands.js +2 -1
- package/dist/cli/commands/test.js +6 -0
- package/dist/cli/utils/ci-output.d.ts +9 -0
- package/dist/cli/utils/fleet-operation.d.ts +32 -0
- package/dist/cli/utils/fleet-operation.js +71 -0
- package/dist/cli/utils/fleet-result.d.ts +31 -0
- package/dist/cli/utils/fleet-result.js +124 -0
- package/dist/context/sources/git-source.js +6 -2
- package/dist/coordination/handlers/code-intelligence-handlers.js +60 -5
- package/dist/coordination/handlers/coverage-handlers.js +10 -1
- package/dist/coordination/handlers/requirements-handlers.js +16 -2
- package/dist/coordination/handlers/security-handlers.js +11 -1
- package/dist/coordination/handlers/test-execution-handlers.js +25 -7
- package/dist/coordination/mincut/queen-integration.d.ts +39 -1
- package/dist/coordination/mincut/queen-integration.js +83 -6
- package/dist/coordination/protocols/learning-consolidation-archive.d.ts +2 -6
- package/dist/coordination/protocols/learning-consolidation-archive.js +4 -27
- package/dist/coordination/protocols/learning-consolidation.d.ts +24 -0
- package/dist/coordination/protocols/learning-consolidation.js +71 -22
- package/dist/coordination/queen-coordinator.d.ts +1 -1
- package/dist/coordination/queen-coordinator.js +19 -7
- package/dist/coordination/queen-event-handlers.js +13 -0
- package/dist/coordination/queen-task-management.d.ts +18 -24
- package/dist/coordination/queen-task-management.js +62 -168
- package/dist/coordination/queen-task-queue.d.ts +41 -0
- package/dist/coordination/queen-task-queue.js +194 -0
- package/dist/coordination/queen-types.d.ts +1 -1
- package/dist/coordination/queen-work-stealing.d.ts +6 -1
- package/dist/coordination/queen-work-stealing.js +7 -4
- package/dist/coordination/result-saver-adapters.d.ts +15 -0
- package/dist/coordination/result-saver-adapters.js +57 -0
- package/dist/coordination/result-saver.d.ts +1 -1
- package/dist/coordination/result-saver.js +8 -5
- package/dist/coordination/yaml-pipeline-loader.js +5 -2
- package/dist/domains/code-intelligence/index-path-guard.d.ts +5 -2
- package/dist/domains/code-intelligence/index-path-guard.js +20 -50
- package/dist/domains/code-intelligence/plugin.js +5 -1
- package/dist/domains/code-intelligence/services/metric-collector/index.d.ts +2 -2
- package/dist/domains/code-intelligence/services/metric-collector/index.js +2 -3
- package/dist/domains/code-intelligence/services/metric-collector/loc-counter.d.ts +1 -1
- package/dist/domains/code-intelligence/services/metric-collector/loc-counter.js +11 -36
- package/dist/domains/code-intelligence/services/metric-collector/test-counter.d.ts +1 -1
- package/dist/domains/code-intelligence/services/metric-collector/test-counter.js +45 -103
- package/dist/domains/contract-testing/services/api-compatibility.js +7 -6
- package/dist/domains/contract-testing/services/contract-validator.js +6 -4
- package/dist/domains/contract-testing/services/schema-validator.js +8 -5
- package/dist/domains/defect-intelligence/interfaces.d.ts +2 -0
- package/dist/domains/defect-intelligence/plugin.js +11 -2
- package/dist/domains/defect-intelligence/prediction-history.d.ts +27 -0
- package/dist/domains/defect-intelligence/prediction-history.js +68 -0
- package/dist/domains/defect-intelligence/services/defect-predictor.js +25 -10
- package/dist/domains/enterprise-integration/services/message-broker-service.js +3 -2
- package/dist/domains/enterprise-integration/services/odata-service.js +2 -1
- package/dist/domains/enterprise-integration/services/sap-integration-service.js +3 -2
- package/dist/domains/learning-optimization/active-patterns.d.ts +2 -2
- package/dist/domains/learning-optimization/active-patterns.js +2 -2
- package/dist/domains/learning-optimization/coordinator.js +9 -5
- package/dist/domains/learning-optimization/interfaces.d.ts +6 -2
- package/dist/domains/learning-optimization/pattern-archive.d.ts +31 -0
- package/dist/domains/learning-optimization/pattern-archive.js +56 -0
- package/dist/domains/learning-optimization/pattern-consolidation.d.ts +12 -0
- package/dist/domains/learning-optimization/pattern-consolidation.js +41 -0
- package/dist/domains/learning-optimization/reward-source.d.ts +13 -0
- package/dist/domains/learning-optimization/reward-source.js +8 -1
- package/dist/domains/learning-optimization/services/learning-coordinator.d.ts +5 -3
- package/dist/domains/learning-optimization/services/learning-coordinator.js +45 -58
- package/dist/domains/security-compliance/plugin.js +17 -3
- package/dist/domains/security-compliance/sast-path-guard.d.ts +9 -0
- package/dist/domains/security-compliance/sast-path-guard.js +17 -0
- package/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +46 -56
- package/dist/domains/security-compliance/services/scanners/dast-helpers.js +76 -91
- package/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +52 -62
- package/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +21 -1
- package/dist/domains/security-compliance/services/scanners/dast-scanner.js +29 -24
- package/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +4 -1
- package/dist/domains/test-execution/coordinator.d.ts +5 -0
- package/dist/domains/test-execution/coordinator.js +35 -20
- package/dist/domains/test-execution/interfaces.d.ts +25 -0
- package/dist/domains/test-execution/plugin.js +19 -4
- package/dist/domains/test-execution/services/flaky-detector.js +9 -7
- package/dist/domains/test-execution/services/retry-handler.js +46 -7
- package/dist/domains/test-execution/services/runner-test-cases.d.ts +11 -0
- package/dist/domains/test-execution/services/runner-test-cases.js +20 -2
- package/dist/domains/test-execution/services/test-executor.js +8 -8
- package/dist/domains/test-generation/plugin.js +7 -2
- package/dist/domains/test-generation/services/test-data-generator.js +3 -1
- package/dist/domains/visual-accessibility/services/axe-core-audit.js +1 -1
- package/dist/hooks/cross-phase-hooks.js +2 -1
- package/dist/init/phases/10-workers.js +50 -6
- package/dist/integrations/browser/agent-browser/client.js +37 -52
- package/dist/integrations/browser/agent-browser/command-executor.d.ts +33 -27
- package/dist/integrations/browser/agent-browser/command-executor.js +53 -54
- package/dist/integrations/browser/agent-browser/session-manager.d.ts +1 -1
- package/dist/integrations/browser/agent-browser/session-manager.js +8 -9
- package/dist/integrations/browser/web-content-fetcher.js +9 -3
- package/dist/integrations/vibium/client.js +2 -2
- package/dist/integrations/vibium/runtime.d.ts +1 -1
- package/dist/integrations/vibium/runtime.js +14 -11
- package/dist/kernel/unified-memory-schemas.d.ts +3 -2
- package/dist/kernel/unified-memory-schemas.js +3 -2
- package/dist/kernel/unified-memory.js +25 -6
- package/dist/learning/dream/dream-commit.d.ts +65 -0
- package/dist/learning/dream/dream-commit.js +104 -0
- package/dist/learning/dream/dream-engine.d.ts +81 -31
- package/dist/learning/dream/dream-engine.js +225 -168
- package/dist/learning/dream/dream-insights-pruner.d.ts +9 -3
- package/dist/learning/dream/dream-insights-pruner.js +16 -30
- package/dist/learning/dream/index.d.ts +3 -2
- package/dist/learning/dream/index.js +3 -1
- package/dist/learning/dream/rvcow-branch-manager.d.ts +8 -1
- package/dist/learning/dream/rvcow-branch-manager.js +8 -1
- package/dist/learning/dream/speculative-dreamer.d.ts +50 -74
- package/dist/learning/dream/speculative-dreamer.js +64 -111
- package/dist/learning/dream/spreading-activation.d.ts +2 -1
- package/dist/learning/dream/spreading-activation.js +15 -6
- package/dist/learning/experience-capture.d.ts +9 -0
- package/dist/learning/experience-capture.js +18 -4
- package/dist/learning/qe-reasoning-bank-types.d.ts +17 -2
- package/dist/learning/qe-reasoning-bank.js +22 -11
- package/dist/learning/sqlite-persistence.d.ts +6 -0
- package/dist/learning/sqlite-persistence.js +16 -2
- package/dist/learning/usage-outcome.d.ts +68 -0
- package/dist/learning/usage-outcome.js +84 -0
- package/dist/mcp/background-workers.d.ts +13 -1
- package/dist/mcp/background-workers.js +17 -3
- package/dist/mcp/bundle.js +607 -580
- package/dist/mcp/handlers/core-handlers.js +11 -0
- package/dist/mcp/handlers/domain-handler-configs.d.ts +5 -0
- package/dist/mcp/handlers/domain-handler-configs.js +11 -3
- package/dist/mcp/handlers/handler-factory.d.ts +2 -1
- package/dist/mcp/handlers/handler-factory.js +36 -15
- package/dist/mcp/handlers/orchestrate-routes.d.ts +36 -0
- package/dist/mcp/handlers/orchestrate-routes.js +88 -0
- package/dist/mcp/handlers/task-handlers.d.ts +3 -0
- package/dist/mcp/handlers/task-handlers.js +35 -8
- package/dist/mcp/handlers/validation-pipeline-handler.js +6 -2
- package/dist/mcp/protocol-server.js +2 -0
- package/dist/mcp/security/schema-validator.js +3 -2
- package/dist/mcp/tools/code-intelligence/c4.js +11 -1
- package/dist/mcp/tools/coverage-analysis/index.js +31 -2
- package/dist/mcp/tools/learning-optimization/dream.d.ts +8 -8
- package/dist/mcp/tools/learning-optimization/dream.js +38 -34
- package/dist/mcp/tools/learning-optimization/optimize.d.ts +18 -2
- package/dist/mcp/tools/learning-optimization/optimize.js +58 -10
- package/dist/mcp/tools/quality-assessment/gate.js +12 -1
- package/dist/mcp/tools/requirements-validation/quality-criteria.js +9 -2
- package/dist/migration/agent-compat.js +7 -5
- package/dist/migrations/20261018_add_dream_insights_archive.d.ts +27 -0
- package/dist/migrations/20261018_add_dream_insights_archive.js +57 -0
- package/dist/shared/git/git-analyzer.d.ts +49 -0
- package/dist/shared/git/git-analyzer.js +159 -319
- package/dist/shared/git/git-process.d.ts +22 -0
- package/dist/shared/git/git-process.js +37 -0
- package/dist/shared/git/index.d.ts +1 -0
- package/dist/shared/git/index.js +1 -0
- package/dist/shared/io/payload-path-guard.d.ts +75 -0
- package/dist/shared/io/payload-path-guard.js +190 -0
- package/dist/shared/llm/router/agent-router-config.js +2 -1
- package/dist/shared/llm/translation/tool-translator.js +2 -1
- package/dist/shared/test-runner-args.d.ts +5 -0
- package/dist/shared/test-runner-args.js +6 -1
- package/dist/shared/test-runner-process.d.ts +6 -0
- package/dist/shared/test-runner-process.js +14 -0
- package/dist/shared/test-runner-verdict.d.ts +9 -1
- package/dist/shared/test-runner-verdict.js +15 -4
- package/dist/shared/utils/namespaced-search.d.ts +14 -0
- package/dist/shared/utils/namespaced-search.js +19 -1
- package/dist/shared/utils/safe-expression-evaluator.js +4 -3
- package/dist/strange-loop/infra-healing/recovery-playbook.js +13 -3
- package/dist/validation/gate-reexecute.js +7 -4
- package/dist/workers/daemon.js +13 -1
- package/dist/workers/quality-daemon/git-watcher.js +9 -9
- package/dist/workers/workers/defect-predictor.d.ts +8 -3
- package/dist/workers/workers/defect-predictor.js +48 -49
- package/dist/workers/workers/learning-consolidation.d.ts +2 -0
- package/dist/workers/workers/learning-consolidation.js +12 -1
- package/dist/workflows/browser/workflow-loader.js +8 -5
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-R2Q4QGXQ.js +0 -2
- package/dist/cli/chunks/agent-booster-wasm-427FRKWG.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-3RENLQWP.js +0 -2
- package/dist/cli/chunks/base-67DXSAYM.js +0 -2
- package/dist/cli/chunks/browser-CT3MTV6G.js +0 -4
- package/dist/cli/chunks/browser-workflow-NDXRROWZ.js +0 -2
- package/dist/cli/chunks/chunk-4URT6JO2.js +0 -2
- package/dist/cli/chunks/chunk-5LAAZLUC.js +0 -4
- package/dist/cli/chunks/chunk-7DMA5NYL.js +0 -4
- package/dist/cli/chunks/chunk-F2SQPP6U.js +0 -4
- package/dist/cli/chunks/chunk-G3BKZNFL.js +0 -120
- package/dist/cli/chunks/chunk-GR3JYE5A.js +0 -2
- package/dist/cli/chunks/chunk-J3WGK22W.js +0 -2
- package/dist/cli/chunks/chunk-KHSRIPBP.js +0 -180
- package/dist/cli/chunks/chunk-KTSLTZSG.js +0 -2
- package/dist/cli/chunks/chunk-O3JLOVZX.js +0 -4
- package/dist/cli/chunks/chunk-THAY7WHO.js +0 -12
- package/dist/cli/chunks/chunk-VXZJOKOX.js +0 -2
- package/dist/cli/chunks/chunk-VYLM2YV5.js +0 -12
- package/dist/cli/chunks/client-ZP3CTVRF.js +0 -2
- package/dist/cli/chunks/core-handlers-JSRXQWPE.js +0 -2
- package/dist/cli/chunks/cross-domain-router-7UKODQWG.js +0 -2
- package/dist/cli/chunks/daemon-YIFT46FH.js +0 -34
- package/dist/cli/chunks/domain-transfer-6EF75EKU.js +0 -2
- package/dist/cli/chunks/dream-UDLM6M55.js +0 -2
- package/dist/cli/chunks/file-discovery-THWOUQ7Z.js +0 -2
- package/dist/cli/chunks/fleet-ADL57COA.js +0 -44
- package/dist/cli/chunks/heartbeat-scheduler-HGOC5KH3.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-EPSA6AP7.js +0 -2
- package/dist/cli/chunks/hnsw-index-RMFOPYGY.js +0 -2
- package/dist/cli/chunks/hybrid-backend-NZ3G4WBX.js +0 -2
- package/dist/cli/chunks/impact-analyzer-WZC6NHFP.js +0 -2
- package/dist/cli/chunks/init-wizard-422UZYQ5.js +0 -2
- package/dist/cli/chunks/kernel-N7PJ6FCE.js +0 -2
- package/dist/cli/chunks/knowledge-graph-SZCVQF37.js +0 -2
- package/dist/cli/chunks/llm-router-service-4DE5WDUZ.js +0 -2
- package/dist/cli/chunks/load-test-POMIF4Q4.js +0 -2
- package/dist/cli/chunks/mcp-CRZKZE37.js +0 -2
- package/dist/cli/chunks/memory-backend-4P6AHSOY.js +0 -2
- package/dist/cli/chunks/memory-handlers-NK6NV3GE.js +0 -2
- package/dist/cli/chunks/pattern-null-store-CCHQHGQG.js +0 -2
- package/dist/cli/chunks/pipeline-5LMLBIJ7.js +0 -19
- package/dist/cli/chunks/project-root-X72FSM2F.js +0 -2
- package/dist/cli/chunks/protocol-executor-QW6XN6QN.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-ZD3WF647.js +0 -2
- package/dist/cli/chunks/queen-coordinator-S4U4MKK2.js +0 -2
- package/dist/cli/chunks/router-CXZKOOTR.js +0 -2
- package/dist/cli/chunks/routing-feedback-IYFANYY5.js +0 -2
- package/dist/cli/chunks/rvf-dual-writer-HCLQ5WUQ.js +0 -2
- package/dist/cli/chunks/rvf-migration-adapter-XCLUWOO3.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-MRT5H3IP.js +0 -2
- package/dist/cli/chunks/safe-db-WFODRGVZ.js +0 -2
- package/dist/cli/chunks/schedule-RO55OQXG.js +0 -2
- package/dist/cli/chunks/scheduler-XXMJCH24.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-AWRIS4MK.js +0 -2
- package/dist/cli/chunks/sync-UVXA6CT2.js +0 -2
- package/dist/cli/chunks/task-handlers-GUYW2EPJ.js +0 -9
- package/dist/cli/chunks/token-bootstrap-EDK6FNQ3.js +0 -2
- package/dist/cli/chunks/tree-sitter-wasm-parser-MI3NZKUD.js +0 -2
- package/dist/cli/chunks/unified-memory-6JWHV6EF.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-4UANU6NU.js +0 -2
- package/dist/cli/chunks/unified-persistence-KGGNA46H.js +0 -2
- package/dist/cli/chunks/visual-security-6VZNQLH7.js +0 -2
- package/dist/cli/chunks/witness-chain-AKKHWEWU.js +0 -2
- package/dist/cli/chunks/witness-chain-TATPXQRK.js +0 -2
- package/dist/cli/chunks/witness-chain-repair-2HGJGE7O.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-4GAW7HNZ.js +0 -2
- package/dist/cli/chunks/wrappers-ZD5NBHYI.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.
|
|
2
|
-
import{a as Ne}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import{a as Ne}from"./chunk-GRCIBCJ2.js";import{a as ue,b as ve,c as Te,d as Oe,e as Le,f as Be,g as Qe,h as We,i as Ve,j as He,k as Ge,l as Ue,m as Ke,n as ke,o as Je,p as Ye}from"./chunk-FPUDRSFJ.js";import{a as Q,b as pe,c as Me,e as Fe,f as W}from"./chunk-7LFZ4CHM.js";import{a as ze}from"./chunk-6MVVSSID.js";import"./chunk-Z7IYW5U7.js";import{c as je}from"./chunk-SU5H66SD.js";import"./chunk-6X5DHU6Q.js";import"./chunk-37OWRCUN.js";import"./chunk-FB6TI3BH.js";import"./chunk-DEF34AFL.js";import"./chunk-C522H7XR.js";import"./chunk-3Y7SPD72.js";import{b as x,d as de}from"./chunk-ACWFKES2.js";import"./chunk-AI4VYSFS.js";import"./chunk-VJQYDYAJ.js";import"./chunk-OBAREPDC.js";import"./chunk-6GP6W46M.js";import"./chunk-PGYMKGOE.js";import"./chunk-GZLZCZ42.js";import"./chunk-GJMLK5UT.js";import"./chunk-6PX4OXQO.js";import"./chunk-NSHU347M.js";import"./chunk-AH3ZD3NJ.js";import"./chunk-HOZUDE4C.js";import"./chunk-ATHWDAXB.js";import"./chunk-N6PIIK6G.js";import"./chunk-WSF24I3D.js";import{a as I,b as qe,e as ce}from"./chunk-GHBNRMSJ.js";import"./chunk-XLZYRTNO.js";import"./chunk-EWFECZ2U.js";import"./chunk-VWNFAW2M.js";import{a as D,b as ye}from"./chunk-XBVUVFJK.js";import"./chunk-EN2QSKFF.js";import{a as Pt}from"./chunk-OY2AHLSF.js";ce();ce();var v=class{requiresPhases;requiresEnhancements;async shouldRun(e){return!0}async execute(e){let t=Date.now();try{return{success:!0,data:await this.run(e),durationMs:Date.now()-t,message:`${this.description} completed`}}catch(s){return{success:!1,error:qe(s),durationMs:Date.now()-t,message:`${this.description} failed: ${I(s)}`}}}checkDependencies(e){if(!this.requiresPhases?.length)return!0;for(let t of this.requiresPhases)if(!e.results.get(t)?.success)return e.services.warn(`Phase ${this.name} requires ${t} which has not completed`),!1;return!0}checkEnhancements(e){if(!this.requiresEnhancements?.length)return!0;for(let t of this.requiresEnhancements)if(!(t==="claudeFlow"?e.enhancements.claudeFlow:t==="ruvector"?e.enhancements.ruvector:!1))return e.services.warn(`Phase ${this.name} requires ${t} which is not available`),!1;return!0}};de();ye();import{existsSync as T}from"fs";import{join as O}from"path";var V=class extends v{name="detection";description="Detect existing installations";order=10;critical=!0;async run(e){let{projectRoot:t}=e,s=await this.detectV2Installation(t),n=T(O(t,".agentic-qe","config.yaml")),o=s.version?.startsWith("3."),r=s.detected,i=n||o||!1,d=!r&&!i;return e.v2Detection=s,{v2Detected:r,v3Detected:i,freshInstall:d,v2Detection:s}}async detectV2Installation(e){let t=O(e,".agentic-qe","memory.db"),s=O(e,".agentic-qe","config"),n=O(e,".claude","agents"),o=O(e,".agentic-qe","config","learning.json"),r=T(t),i=T(s),d=T(n),p=T(o),l=T(O(e,".agentic-qe","config.yaml")),u,m=!1;return r&&(u=this.readVersionFromDb(t),u?m=u.startsWith("3."):u="2.x.x"),{detected:!m&&r&&(!u?.startsWith("3.")||p&&!l),memoryDbPath:r?t:void 0,configPath:i?s:void 0,agentsPath:d?n:void 0,hasMemoryDb:r,hasConfig:i,hasAgents:d,version:u}}readVersionFromDb(e){try{let t=D(e,{readonly:!0,fileMustExist:!0});try{if(!t.prepare(`
|
|
3
3
|
SELECT name FROM sqlite_master
|
|
4
4
|
WHERE type='table' AND name='kv_store'
|
|
5
5
|
`).get()){t.close();return}let n=t.prepare(`
|
|
@@ -8,21 +8,21 @@ import{a as Ne}from"./chunk-NHZIWIQZ.js";import{a as ue,b as ve,c as Te,d as Oe,
|
|
|
8
8
|
`).get();return t.close(),n?x(n.value):void 0}catch{t.close();return}}catch{return}}};var H=class extends v{name="analysis";description="Analyze project structure";order=20;critical=!0;requiresPhases=["detection"];async run(e){let s=await Te(e.projectRoot).analyze();return e.analysis=s,e.services.log(` Project: ${s.projectName}`),e.services.log(` Languages: ${s.languages.map(n=>n.name).join(", ")}`),e.services.log(` Frameworks: ${s.frameworks.map(n=>n.name).join(", ")}`),s}};var G=class extends v{name="configuration";description="Generate configuration";order=30;critical=!0;requiresPhases=["analysis"];async run(e){if(!e.analysis)throw new Error("Analysis phase must complete before configuration");let s=Oe({minimal:e.options.minimal}).recommend(e.analysis);return s=this.applyOptions(s,e),e.config=s,e.services.log(` Version: ${s.version}`),e.services.log(` Learning: ${s.learning.enabled?"enabled":"disabled"}`),e.services.log(` Workers: ${s.workers.enabled.length}`),s}applyOptions(e,t){let{options:s}=t;return s.minimal&&(e.skills.install=!1,e.learning.pretrainedPatterns=!1,e.workers.enabled=[],e.workers.daemonAutoStart=!1),s.skipPatterns&&(e.learning.pretrainedPatterns=!1),s.wizardAnswers&&(e=this.applyWizardAnswers(e,s.wizardAnswers)),e}applyWizardAnswers(e,t){switch(t["project-type"]&&t["project-type"]!=="auto"&&(e.project.type=t["project-type"]),t["learning-mode"]){case"full":e.learning.enabled=!0,e.learning.embeddingModel="transformer";break;case"basic":e.learning.enabled=!0,e.learning.embeddingModel="hash";break;case"disabled":e.learning.enabled=!1;break}return t["load-patterns"]===!1&&(e.learning.pretrainedPatterns=!1),t.hooks===!1&&(e.hooks.claudeCode=!1),t.workers===!1&&(e.workers.daemonAutoStart=!1),t.skills===!1&&(e.skills.install=!1),e}};import{existsSync as U,mkdirSync as be}from"fs";import{join as K}from"path";var z=class extends v{name="database";description="Initialize persistence database";order=40;critical=!0;requiresPhases=["configuration"];async shouldRun(e){return e.options.memoryBackend!=="memory"}async run(e){let{projectRoot:t}=e,s=K(t,"vectors.db");U(s)&&e.services.log(` \u26A0 Stale vectors.db detected at ${s}
|
|
9
9
|
This file is left over from @ruvector/router (pre-v3.9.6).
|
|
10
10
|
It is no longer read or written by AQE. Safe to delete:
|
|
11
|
-
rm "${s}"`);let n=K(t,".agentic-qe");U(n)||be(n,{recursive:!0});let o=K(n,"workers");U(o)||be(o,{recursive:!0});let r=K(n,"data");U(r)||be(r,{recursive:!0});let i=K(n,"memory.db"),d=!U(i);try{let{initializeUnifiedMemory:p,resetUnifiedMemory:l}=await import("./unified-memory-
|
|
11
|
+
rm "${s}"`);let n=K(t,".agentic-qe");U(n)||be(n,{recursive:!0});let o=K(n,"workers");U(o)||be(o,{recursive:!0});let r=K(n,"data");U(r)||be(r,{recursive:!0});let i=K(n,"memory.db"),d=!U(i);try{let{initializeUnifiedMemory:p,resetUnifiedMemory:l}=await import("./unified-memory-EHD4VNFW.js"),u=await p({dbPath:i,walMode:!0,busyTimeout:5e3}),y=u.getStats().tables.map(B=>B.name);await u.kvSet("_init_marker",{initialized:new Date().toISOString(),projectRoot:t,version:ue()},"_system");let P=u.getDatabase().prepare("SELECT version FROM schema_version WHERE id = 1").get()?.version??0;return l(),e.services.log(` Database: ${i}`),e.services.log(` Schema version: v${P}`),e.services.log(` Tables: ${y.length} (v3 full schema)`),{dbPath:i,created:d,tablesCreated:y,schemaVersion:P}}catch(p){throw new Error(`SQLite persistence initialization FAILED: ${p}
|
|
12
12
|
Database path: ${i}
|
|
13
|
-
Ensure the directory is writable and has sufficient disk space.`)}}};import{existsSync as me,mkdirSync as we,writeFileSync as
|
|
13
|
+
Ensure the directory is writable and has sufficient disk space.`)}}};import{existsSync as me,mkdirSync as we,writeFileSync as Et}from"fs";import{join as $}from"path";var J=class extends v{name="learning";description="Initialize learning system";order=50;critical=!1;requiresPhases=["database","configuration"];async shouldRun(e){return e.options.memoryBackend==="memory"?!1:e.config?.learning?.enabled??!0}async run(e){let t=e.config,{projectRoot:s,options:n}=e;if(!t.learning.enabled)return{enabled:!1,dataDir:"",hnswDir:"",patternsLoaded:0};let o=$(s,".agentic-qe","data");me(o)||we(o,{recursive:!0});let r=$(o,"hnsw");me(r)||we(r,{recursive:!0});let i=$(o,"learning-config.json"),d={embeddingModel:t.learning.embeddingModel,hnswConfig:t.learning.hnswConfig,qualityThreshold:t.learning.qualityThreshold,promotionThreshold:t.learning.promotionThreshold,databasePath:$(o,"memory.db"),hnswIndexPath:$(r,"index.bin"),initialized:new Date().toISOString()};W(i,d,[["initialized"]]);let p=0;return t.learning.pretrainedPatterns&&!n.skipPatterns&&(p=await this.loadPretrainedPatterns(o,e)),e.services.log(` Data dir: ${o}`),e.services.log(` HNSW dir: ${r}`),e.services.log(` Patterns loaded: ${p}`),{enabled:!0,dataDir:o,hnswDir:r,patternsLoaded:p}}async loadPretrainedPatterns(e,t){try{let s=$(e,"patterns");me(s)||we(s,{recursive:!0});let n=$(s,"index.json");return me(n)||Et(n,JSON.stringify({version:ue(),domains:[],loadedAt:new Date().toISOString()},null,2),"utf-8"),0}catch(s){return t.services.warn(`Could not load pre-trained patterns: ${s}`),0}}};de();ye();import{existsSync as St,statSync as It}from"fs";import{join as ge}from"path";var Xe=3e4,Ze=18e4,et=["**/node_modules/**","**/dist/**","**/build/**","**/out/**","**/coverage/**","**/.agentic-qe/**","**/.git/**","**/.next/**","**/.nuxt/**","**/.output/**","**/__pycache__/**","**/.pytest_cache/**","**/target/**","**/vendor/**","**/.venv/**","**/venv/**","**/.tox/**","**/*.min.js","**/*.min.css","**/*.bundle.js","**/*.map","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/Pipfile.lock","**/poetry.lock","**/.env","**/.env.*"],Y=class extends v{name="code-intelligence";description="Code intelligence pre-scan";order=60;critical=!1;requiresPhases=["database"];async shouldRun(e){if(e.options.memoryBackend==="memory")return e.services.log(" Code intelligence skipped (database-free mode)"),!1;let t=process.env.AQE_SKIP_CODE_INDEX;return t==="1"||t==="true"?(e.services.log(" Code intelligence skipped (AQE_SKIP_CODE_INDEX=1)"),e.services.log(" Run `aqe code index` later to build the KG on demand."),!1):e.options.skipCodeIndex?(e.services.log(" Code intelligence skipped (--skip-code-index)"),e.services.log(" Run `aqe code index` later to build the KG on demand."),!1):!0}async run(e){let{projectRoot:t}=e,s=ge(t,".agentic-qe","memory.db");if(!St(s))return e.services.log(" Building knowledge graph..."),await this.runCodeIntelligenceScan(t,e,!1);let n=D(s);try{if(!this.checkCodeIntelligenceIndex(n))return n.close(),e.services.log(" Building knowledge graph..."),await this.runCodeIntelligenceScan(t,e,!1);let r=this.getLastIndexedAt(n);if(!r){let p=this.getKGEntryCount(n);return n.close(),e.services.log(` Using existing index (${p} entries)`),{status:"existing",entries:p}}let i=this.getKGEntryCount(n);n.close();let d=await this.findChangedFiles(t,r);return d.length===0?(e.services.log(` Index up to date (${i} entries)`),{status:"existing",entries:i}):(e.services.log(` Delta scan: ${d.length} files changed since last index...`),await this.runCodeIntelligenceScan(t,e,!0,d))}catch(o){try{n.close()}catch{}throw o}}checkCodeIntelligenceIndex(e){try{return e.prepare(`
|
|
14
14
|
SELECT COUNT(*) as count FROM kv_store
|
|
15
15
|
WHERE namespace = 'code-intelligence:kg'
|
|
16
16
|
`).get().count>0}catch{return!1}}getKGEntryCount(e){try{return e.prepare(`
|
|
17
17
|
SELECT COUNT(*) as count FROM kv_store
|
|
18
18
|
WHERE namespace LIKE 'code-intelligence:kg%'
|
|
19
|
-
`).get().count}catch{return 0}}async runCodeIntelligenceScan(e,t,s,n){let{KnowledgeGraphService:o}=await import("./knowledge-graph-
|
|
19
|
+
`).get().count}catch{return 0}}async runCodeIntelligenceScan(e,t,s,n){let{KnowledgeGraphService:o}=await import("./knowledge-graph-YPVVIKEU.js"),r=ge(e,".agentic-qe","memory.db"),i={type:"sqlite",sqlite:{path:r,walMode:!0}},{backend:d}=await Ne(i,!0),p=new o(d,{namespace:"code-intelligence:kg",enableVectorEmbeddings:!0,projectRoot:e});try{let l;if(n)l=n;else{let{glob:m}=await import("tinyglobby");l=(await m(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:e,ignore:et,expandDirectories:!1})).map(f=>ge(e,f))}t.services.log(` Scanning ${l.length} source files...`);let u=await this.runBoundedScan(p,l,s,t);if(u.status==="timeout")return t.services.warn(` \u26A0 Code intelligence pre-scan exceeded ${Ze/1e3}s phase cap. Indexed ${u.entries} entries before timeout. Last file: ${u.timeoutFile??"(unknown)"}. Init is continuing \u2014 re-run 'aqe code index' later, or report this file to https://github.com/proffesor-for-testing/agentic-qe/issues.`),u;if(u.status==="indexed"){let m=s?"Delta indexed":"Indexed";t.services.log(` ${m} ${u.entries} entries to ${r}`),await this.buildHypergraph(r,l,t)}return u}finally{try{p.destroy()}catch{}try{await d.dispose()}catch{}}}async runBoundedScan(e,t,s,n){let o=0,r=0,i=0,d="",p=Date.now(),l=!1;s||await e.clear();let u=n.projectRoot,m=f=>f.startsWith(u)?f.slice(u.length+1):f;for(let f of t){if(Date.now()-p>Ze){l=!0;break}d=f,n.services.log(` [${i+1}/${t.length}] ${m(f)}`);try{let b=await this.withTimeout(e.index({paths:[f],incremental:!0,includeTests:!0}),Xe,f);b.success&&(o+=b.value.nodesCreated,r+=b.value.edgesCreated)}catch(b){let P=b instanceof Error?b.message:String(b);P.startsWith("AQE_PER_FILE_TIMEOUT")?n.services.warn(` \u26A0 Skipped ${m(f)} \u2014 indexing exceeded ${Xe/1e3}s`):n.services.warn(` \u26A0 Failed to index ${m(f)}: ${P}`)}i++}let y=o+r;return l?{status:"timeout",entries:y,timeoutFile:d}:{status:"indexed",entries:y}}withTimeout(e,t,s){return new Promise((n,o)=>{let r=setTimeout(()=>{o(new Error(`AQE_PER_FILE_TIMEOUT: ${s}`))},t);typeof r.unref=="function"&&r.unref(),e.then(i=>{clearTimeout(r),n(i)},i=>{clearTimeout(r),o(i)})})}async buildHypergraph(e,t,s){try{let{extractCodeIndex:n}=await import("./code-index-extractor-4S4SHM56.js"),{createHypergraphEngine:o}=await import("./hypergraph-engine-ONAYHU25.js"),r=D(e),i=await o({db:r,maxTraversalDepth:10,maxQueryResults:1e3,enableVectorSearch:!1}),d=await n(t),p=await i.buildFromIndexResult(d);r.close(),p.nodesCreated+p.edgesCreated>0&&s.services.log(` Hypergraph: ${p.nodesCreated} nodes, ${p.edgesCreated} edges`)}catch(n){s.services.warn?.(` Hypergraph build skipped: ${n}`)}}getLastIndexedAt(e){try{let t=e.prepare(`
|
|
20
20
|
SELECT value FROM kv_store
|
|
21
21
|
WHERE namespace = 'code-intelligence:kg'
|
|
22
22
|
AND key = 'metadata:index'
|
|
23
|
-
`).get();if(!t)return null;let s=x(t.value);if(!s.indexedAt)return null;let n=new Date(s.indexedAt);return isNaN(n.getTime())?null:n}catch{return null}}async findChangedFiles(e,t){let{glob:s}=await import("tinyglobby"),n=await s(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:e,ignore:et,expandDirectories:!1}),o=t.getTime(),r=[];for(let i of n){let d=ge(e,i);try{
|
|
23
|
+
`).get();if(!t)return null;let s=x(t.value);if(!s.indexedAt)return null;let n=new Date(s.indexedAt);return isNaN(n.getTime())?null:n}catch{return null}}async findChangedFiles(e,t){let{glob:s}=await import("tinyglobby"),n=await s(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:e,ignore:et,expandDirectories:!1}),o=t.getTime(),r=[];for(let i of n){let d=ge(e,i);try{It(d).mtimeMs>o&&r.push(d)}catch{}}return r}};de();import{existsSync as w,mkdirSync as X,readFileSync as tt,writeFileSync as M}from"fs";import{join as k,dirname as Rt}from"path";import{fileURLToPath as At}from"url";var _t=At(import.meta.url),nt=Rt(_t),xt=[["aqe","initialized"]],Z=class extends v{name="hooks";description="Configure Claude Code hooks";order=70;critical=!1;requiresPhases=["configuration"];async shouldRun(e){return e.options.noClaude?(e.services.log(" Hooks skipped (--no-claude)"),!1):e.config?.hooks?.claudeCode??!0}async run(e){let t=e.config,{projectRoot:s}=e;if(!t.hooks.claudeCode)return{configured:!1,settingsPath:"",hookTypes:[],existingAqeDetected:!1};let n=k(s,".claude");w(n)||X(n,{recursive:!0});let o=k(n,"hooks");w(o)||X(o,{recursive:!0});let r=k(n,"settings.json"),i={},d;if(w(r))try{let S=tt(r,"utf-8");i=x(S),d=x(S)}catch{i={}}let p=this.generateHooksConfig(t,s),l=Object.keys(p),u=i.hooks||{},m=this.hasExistingAqeHooks(u);m&&e.services.log(" Detected existing AQE hooks \u2014 replacing with updated config"),i.hooks=Qe(u,p);let y=i.env,f={memoryBackend:e.options.memoryBackend};i.env=We(y,Ve(t,f),f);let b=Ge(t,s,f);He(i,b,{statusLine:!e.options.noStatusLine,...f});let P=i.enabledMcpjsonServers||[];if(P=P.filter(S=>S!=="aqe"),P.includes("agentic-qe")||P.push("agentic-qe"),i.enabledMcpjsonServers=P,Fe(d,i,xt)){let S=Le(r);S&&e.services.log(` Backup created: ${S}`),M(r,JSON.stringify(i,null,2),"utf-8")}else e.services.log(" Settings unchanged \u2014 .claude/settings.json left as-is");this.writeHooksReadme(o,l),this.installHookAssets(o,e);try{let S=tt(r,"utf-8"),E=x(S).hooks;(!E||!this.hasExistingAqeHooks(E))&&e.services.log(" WARNING: settings.json written but AQE hooks not detected \u2014 check settings-merge logic")}catch{e.services.log(" WARNING: Could not verify settings.json after write")}return e.services.log(` Settings: ${r}`),e.services.log(` Hooks dir: ${o}`),e.services.log(` Hook types: ${l.join(", ")}`),{configured:!0,settingsPath:r,hookTypes:l,existingAqeDetected:m}}writeHooksReadme(e,t){let s=k(e,"README.txt");if(w(s))return;let n=["AQE Hooks Directory","====================","","Claude Code hooks are configured in .claude/settings.json (not as files here).","This directory contains supporting infrastructure for the learning system.","","Configured hook types: "+t.join(", "),"","Files:"," settings.json \u2014 Hook definitions (in parent .claude/ directory)"," helpers/brain-checkpoint.cjs \u2014 Auto-exports brain to aqe.rvf on session end"," cross-phase-memory.yaml \u2014 QCSD feedback loop configuration","","Manual testing:"," npx agentic-qe hooks session-start --session-id test --json",' npx agentic-qe hooks route --task "generate tests" --json'," npx agentic-qe hooks post-edit --file src/example.ts --success --json",""].join(`
|
|
24
24
|
`);M(s,n,"utf-8")}installHookAssets(e,t){let{projectRoot:s}=t;this.installBrainCheckpoint(s,t),this.installStatusline(s,t),this.installHookShim(s,t);let n=k(e,"cross-phase-memory.yaml");if(!w(n)){let r=[k(s,"v3","assets","hooks","cross-phase-memory.yaml"),k(s,"assets","hooks","cross-phase-memory.yaml"),k(s,"node_modules","agentic-qe","v3","assets","hooks","cross-phase-memory.yaml")],i=!1;for(let d of r)if(w(d)){let{copyFileSync:p}=Pt("fs");p(d,n),t.services.log(" Installed cross-phase memory config"),i=!0;break}i||M(n,["# Cross-Phase Memory Hooks Configuration","# Generated by aqe init",'version: "1.0"',"enabled: true",""].join(`
|
|
25
|
-
`),"utf-8")}let o=k(e,"v3-domain-workers.json");w(o)||M(o,JSON.stringify({version:"3.0",workers:[{name:"pattern-consolidator",interval:"5m",enabled:!0},{name:"routing-accuracy-monitor",interval:"10m",enabled:!0},{name:"coverage-gap-scanner",interval:"15m",enabled:!0},{name:"flaky-test-detector",interval:"30m",enabled:!0}]},null,2),"utf-8")}hasExistingAqeHooks(e){for(let t of Object.values(e))if(Array.isArray(t)){for(let s of t)if(
|
|
25
|
+
`),"utf-8")}let o=k(e,"v3-domain-workers.json");w(o)||M(o,JSON.stringify({version:"3.0",workers:[{name:"pattern-consolidator",interval:"5m",enabled:!0},{name:"routing-accuracy-monitor",interval:"10m",enabled:!0},{name:"coverage-gap-scanner",interval:"15m",enabled:!0},{name:"flaky-test-detector",interval:"30m",enabled:!0}]},null,2),"utf-8")}hasExistingAqeHooks(e){for(let t of Object.values(e))if(Array.isArray(t)){for(let s of t)if(Be(s))return!0}return!1}installBrainCheckpoint(e,t){let s=k(e,".claude","helpers");w(s)||X(s,{recursive:!0});let n=k(s,"brain-checkpoint.cjs"),o=[k(e,".claude","helpers","brain-checkpoint.cjs"),k(e,"node_modules","agentic-qe",".claude","helpers","brain-checkpoint.cjs"),k(nt,"..","..","..",".claude","helpers","brain-checkpoint.cjs")];for(let r of o)if(w(r)&&r!==n){pe(r,n)&&t.services.log(" Installed brain-checkpoint.cjs (copied)");return}w(n)||(M(n,this.generateBrainCheckpointScript(),"utf-8"),t.services.log(" Installed brain-checkpoint.cjs (generated)"))}installStatusline(e,t){let s=k(e,".claude","helpers");w(s)||X(s,{recursive:!0});let n=k(s,"statusline-v3.cjs"),o=[k(e,"node_modules","agentic-qe","assets","helpers","statusline-v3.cjs"),k(e,"assets","helpers","statusline-v3.cjs")];for(let r of o)if(w(r)&&r!==n){pe(r,n)&&t.services.log(" Installed statusline-v3.cjs (copied)");return}w(n)||(M(n,this.generateMinimalStatuslineScript(),"utf-8"),t.services.log(" Installed statusline-v3.cjs (generated)"))}installHookShim(e,t){let s=k(e,".claude","hooks");w(s)||X(s,{recursive:!0});let n=k(s,"aqe-hook.cjs"),o=[k(e,"node_modules","agentic-qe",".claude","hooks","aqe-hook.cjs"),k(nt,"..","..","..",".claude","hooks","aqe-hook.cjs")];for(let r of o)if(w(r)&&r!==n){pe(r,n)&&t.services.log(" Installed aqe-hook.cjs (copied)");return}w(n)||t.services.log(" \u26A0 aqe-hook.cjs source not found \u2014 lifecycle hooks cannot run until AQE is reinstalled")}generateMinimalStatuslineScript(){return`#!/usr/bin/env node
|
|
26
26
|
/**
|
|
27
27
|
* Agentic QE v3 Statusline (minimal fallback, generated by aqe init)
|
|
28
28
|
* For the full statusline, reinstall: npx agentic-qe init --auto
|
|
@@ -128,10 +128,10 @@ function verifyBrain() {
|
|
|
128
128
|
const cmd = process.argv[2] || 'verify';
|
|
129
129
|
const result = cmd === 'export' ? exportBrain() : verifyBrain();
|
|
130
130
|
if (process.argv.includes('--json')) process.stdout.write(JSON.stringify(result));
|
|
131
|
-
`}generateHooksConfig(e,t){return{PreToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" guard --file "$TOOL_INPUT_file_path" --json',timeout:3,continueOnError:!0}]},{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" pre-edit --file "$TOOL_INPUT_file_path" --json',timeout:5,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" pre-command --command "$TOOL_INPUT_command" --json',timeout:3,continueOnError:!0}]},{matcher:"^(Task|Agent)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" pre-task --description "$TOOL_INPUT_prompt" --json',timeout:5,continueOnError:!0}]}],PostToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-edit --file "$TOOL_INPUT_file_path" --success --json',timeout:5,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-command --command "$TOOL_INPUT_command" --success true --json',timeout:5,continueOnError:!0}]},{matcher:"^(Task|Agent)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-task --task-id "$TOOL_RESULT_agent_id" --agent "$TOOL_INPUT_subagent_type" --success true --description "$TOOL_INPUT_prompt" --json',timeout:5,continueOnError:!0}]}],UserPromptSubmit:[{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" route --json',timeout:5,continueOnError:!0}]}],SessionStart:[{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" session-start --session-id "$SESSION_ID" --json',timeout:10,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" verify --json'`,timeout:5,continueOnError:!0}]}],Stop:[{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" session-end --save-state --json',timeout:5,continueOnError:!0}]},{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-route --success true --json',timeout:5,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" export --json'`,timeout:60,continueOnError:!0}]}]}}};import{existsSync as Dt,readFileSync as $t}from"fs";de();import{join as qt}from"path";var ee=class extends v{constructor(t=s=>Ue(s)){super();this.detectPlugin=t}detectPlugin;name="mcp";description="Configure MCP server";order=80;critical=!1;requiresPhases=["configuration","database"];async run(t){let{projectRoot:s}=t;if(t.options.noClaude)return t.services.log(" MCP: skipped (--no-claude \u2014 .mcp.json is the Claude Code surface)"),{configured:!1,mcpPath:"",serverName:""};if(t.options.noMcp)return t.services.log(" MCP: skipped (--no-mcp)"),t.services.log(" CLI commands available: aqe memory, aqe test, aqe coverage, etc."),{configured:!1,mcpPath:"",serverName:""};if(!t.options.withMcp){let l=this.detectPlugin(s);if(l.enabled)return t.services.log(Ke(s)),{configured:!1,mcpPath:"",serverName:"",skippedForPlugin:l.pluginKey}}let n=t.options.memoryBackend==="memory",r={command:"aqe-mcp",args:[],env:n?{AQE_MEMORY_BACKEND:"memory",AQE_LEARNING_ENABLED:"false",AQE_WORKERS_ENABLED:"false",NODE_ENV:"production"}:{AQE_LEARNING_ENABLED:"true",AQE_WORKERS_ENABLED:"true",NODE_ENV:"production"}},i=qt(s,".mcp.json"),d={};if(Dt(i))try{let l=$t(i,"utf-8");d=x(l)}catch{d={}}d.mcpServers||(d.mcpServers={});let p=d.mcpServers;return p["agentic-qe"]=r,Q(i,JSON.stringify(d,null,2)),t.services.log(` MCP config: ${i}`),t.services.log(" Server: agentic-qe"),n?(t.services.log(" Memory backend: in-memory (database-free)"),t.services.log(" Learning: disabled (db-free)"),t.services.log(" Workers: disabled (db-free)")):(t.services.log(" Learning: enabled"),t.services.log(" Workers: enabled")),{configured:!0,mcpPath:i,serverName:"agentic-qe"}}};import{existsSync as A,readFileSync as Wt,readdirSync as Vt}from"fs";import{join as _}from"path";import{createHash as jt}from"crypto";import{constants as Tt,copyFileSync as st,existsSync as Ce,lstatSync as Re,readFileSync as ot,realpathSync as it,unlinkSync as Ot}from"fs";import{dirname as at,join as Pe,sep as Mt}from"path";var te=".claude/skills/qe-court/evals/fixtures/seeded-mutant-delivery",Ie="qe-court/evals/fixtures/seeded-mutant-delivery",rt=".claude/skills/testability-scoring/resources/templates",Ft="testability-scoring/resources/templates",Nt=Object.freeze([{id:"qe-court-seeded-mutant",retired:[{relPath:`${te}/budget.test.ts`,shippedSha256:["add1ff4cb05978c136f8c2c5cc50059d920f06f409e5f6f304239b7dad3cf65d"]},{relPath:`${te}/budget.ts`,shippedSha256:["11fc97cad19bb4fc0d31151a6d216ab99d0df0521b60be8fb19581d412147ef6"]}],replacements:[{relPath:`${te}/budget-tests.ts.fixture`,source:`${Ie}/budget-tests.ts.fixture`},{relPath:`${te}/budget.ts.fixture`,source:`${Ie}/budget.ts.fixture`}],refresh:[{relPath:`${te}/README.md`,source:`${Ie}/README.md`,previousSha256:["d3988b92856d0023a7ae210dce3e0bdf76204f41d635fd29f7e243c168ff6109"]},{relPath:".claude/skills/qe-court/evals/qe-court.yaml",source:"qe-court/evals/qe-court.yaml",previousSha256:["412899013a51a099224bad04491d49dca19f2c567c5599adedabd0e1d58556c7","27c8be547dc032e2dbe488156dd7a30f79b1cc921fe92efec5b9bb0a151f0e9b"]}],advice:"3.15.6 renamed the qe-court seeded-mutant fixture to budget.ts.fixture / budget-tests.ts.fixture because budget.test.ts matches test-runner globs, so your vitest/jest collects it (#1017). The pair was left as is; delete or rename both files if you do not want your test runner to collect it"},{id:"testability-scoring-spec-template",retired:[{relPath:`${rt}/testability-scoring.spec.template.js`,shippedSha256:["e85a3e25bb458f3d090834e121b02e8db83cdc589149b5cf7549853e1a067edf"]}],replacements:[{relPath:`${rt}/testability-scoring-spec.template.js`,source:`${Ft}/testability-scoring-spec.template.js`}],refresh:[],advice:"3.15.6 renamed it to testability-scoring-spec.template.js because its name matches the `*.spec.*` test glob (#1017); delete or rename it if your test runner should not collect it"}]);function lt(c){return jt("sha256").update(c).digest("hex")}function Se(c,e){let t;try{t=it(at(e))}catch{return!1}return t===c||t.startsWith(c+Mt)}function Bt(c,e,t,s){let n;try{n=Re(e)}catch{return{state:"absent"}}if(!Se(c,e))return{state:"blocked",why:`${t} resolves outside the project (symlinked directory)`};if(!n.isFile())return{state:"blocked",why:`${t} is not a regular file`};try{if(!s.includes(lt(ot(e))))return{state:"blocked",why:`${t} was modified since AQE installed it`}}catch(o){return{state:"blocked",why:`${t} is unreadable (${o instanceof Error?o.message:String(o)})`}}return{state:"removable"}}function ct(c,e={}){let t=e.groups??Nt,s={removed:[],installed:[],refreshed:[],kept:[],missingReplacements:[],replacementWarnings:[]},n;try{n=it(c)}catch{return s}let o=r=>Pe(c,...r.split("/"));for(let r of t){let d=r.retired.map(l=>({file:l,probe:Bt(n,o(l.relPath),l.relPath.split("/").pop(),l.shippedSha256)})).filter(l=>l.probe.state!=="absent");if(d.length===0)continue;let p=d.filter(l=>l.probe.state==="blocked");if(p.length>0){s.kept.push({group:r.id,files:d.map(l=>l.file.relPath),why:p.map(l=>l.probe.why).join("; "),advice:r.advice});continue}for(let{file:l}of d)try{Ot(o(l.relPath)),s.removed.push(l.relPath)}catch(u){s.kept.push({group:r.id,files:[l.relPath],why:`could not remove (${u instanceof Error?u.message:String(u)})`,advice:r.advice})}for(let l of r.replacements){let u=o(l.relPath),m=e.sourceSkillsDir?Pe(e.sourceSkillsDir,...l.source.split("/")):void 0,y;try{y=Re(u)}catch{y=void 0}if(!y?.isFile()){if(y){s.missingReplacements.push(l.relPath),s.replacementWarnings.push(`${l.relPath} exists and is not a regular file (e.g. a symlink); not replaced`);continue}if(!m||!Ce(m)){s.missingReplacements.push(l.relPath);continue}try{if(!Ce(at(u))||!Se(n,u)){s.missingReplacements.push(l.relPath);continue}st(m,u,Tt.COPYFILE_EXCL),s.installed.push(l.relPath)}catch(f){s.missingReplacements.push(l.relPath),f?.code==="EEXIST"&&s.replacementWarnings.push(`${l.relPath} appeared during install; not replaced`)}}}for(let l of r.refresh){let u=o(l.relPath),m=e.sourceSkillsDir?Pe(e.sourceSkillsDir,...l.source.split("/")):void 0;if(!(!m||!Ce(m)))try{if(!Re(u).isFile()||!Se(n,u)||!l.previousSha256.includes(lt(ot(u))))continue;st(m,u),s.refreshed.push(l.relPath)}catch{}}}return s}ce();import{spawnSync as Lt}from"node:child_process";import*as fe from"node:os";import*as ut from"node:fs";var F="vibium@^26.8.21",pt={platform:()=>fe.platform(),arch:()=>fe.arch(),existsSync:c=>ut.existsSync(c)},dt=["/usr/bin/chromium","/usr/bin/chromium-browser","/usr/bin/google-chrome","/usr/bin/google-chrome-stable","/snap/bin/chromium"];function Ee(c=pt){if(c.platform()!=="linux"||c.arch()!=="arm64")return;let e=dt.find(t=>c.existsSync(t));return e?{code:"linux-arm64-system-chromium-found",browserPath:e,message:`Linux aarch64 detected. Vibium v26.3.x does not auto-download Chrome for Testing on ARM64. Found system browser at ${e}. Export VIBIUM_BROWSER_PATH=${e} before running vibium.`}:{code:"linux-arm64-no-system-chromium",message:`Linux aarch64 detected. Vibium v26.3.x does not auto-download Chrome for Testing on ARM64, and no system chromium was found on PATH (checked: ${dt.join(", ")}). Install via \`apt-get install chromium\` (or your distro's equivalent), then export VIBIUM_BROWSER_PATH=/usr/bin/chromium before running vibium.`}}function ne(c,e,t,s){return c(e,t,{encoding:"utf8",timeout:s,maxBuffer:8*1024*1024})}var Ae=(c,e,t)=>Lt(c,e,t);function Qt(c=Ae,e=5e3){let t=ne(c,"vibium",["--version"],e);if(t.status!==0)return null;let s=(t.stdout||"").trim(),n=(t.stderr||"").trim(),o=s||n;if(!o)return"unknown";let r=o.match(/v?(\d+\.\d+\.\d+(?:[-+][\w.]+)?)/);return r?r[1]:o.split(/\s+/)[0]||"unknown"}function se(c=Ae,e=5e3){let t=Qt(c,e);if(!t)return{status:"cli-missing"};let s=/^(\d+)\.(\d+)\.(\d+)(?:\+[\w.]+)?$/.exec(t);if(!s||Number(s[1])!==26||Number(s[2])<8||Number(s[2])===8&&Number(s[3])<21)return{status:"unsupported-version",version:t,message:`Vibium ${t} is unsupported; install ${F} for the browser.start() API`};let n=ne(c,"vibium",["is-installed"],e);return n.status===0?{status:"ready",version:t}:{status:"payload-missing",version:t,message:n.stderr?.trim()||n.stdout?.trim()||S(n.error)||"Vibium Chrome/chromedriver payload is missing or incomplete"}}function mt(c={}){let e=c.packageSpec||F;if(c.skip)return{status:"skipped",packageSpec:e,message:"install skipped by options"};let t=c.spawner||Ae,s=c.platformProbe||pt,n=Ee(s),o=se(t);if(o.status==="ready")return{status:"already-installed",version:o.version,packageSpec:e,platformHint:n};let r=c.npmBin||"npm",i=ne(t,r,["--version"],5e3);if(i.error||i.status!==0)return{status:"npm-unavailable",packageSpec:e,message:`npm is not available on PATH. Install Node.js + npm, then run \`npm install -g ${e}\`.`};let d=c.timeoutMs||18e4,p=ne(t,r,["install","-g",e],d);if(p.status!==0)return{status:"install-failed",packageSpec:e,message:p.stderr?.trim()||p.stdout?.trim()||S(p.error)||"unknown npm install failure"};let l=se(t);if(l.status==="payload-missing"){let u=ne(t,"vibium",["install"],d);if(u.status!==0)return{status:"install-failed",packageSpec:e,platformHint:n,message:`Browser payload installation failed: ${u.stderr?.trim()||u.stdout?.trim()||"vibium install failed"}. Run \`vibium install\` and verify with \`vibium is-installed\`.`};l=se(t)}if(l.status!=="ready"){let u=l.message?`: ${l.message}`:"";return{status:"install-failed",packageSpec:e,platformHint:n,message:`npm completed, but Vibium readiness verification failed (${l.status})${u}. Run \`npm install -g ${e}\`, then verify with \`vibium is-installed\`.`}}return{status:"installed",version:l.version,packageSpec:e,platformHint:n}}var re=class extends v{name="assets";description="Install skills and agents";order=90;critical=!1;requiresPhases=["configuration"];async run(e){let t=e.config,{projectRoot:s,options:n}=e,o=this.detectVersionUpgrade(e),r=n.upgrade||t.skills.overwrite||n.autoMode&&o,i=0,d=0,p=0,l=0,u=0,m=0,y=0,f=0,b=0,P,L,R=[],he=[];if(n.upgrade?e.services.log(" Upgrade mode: overwriting existing files"):n.autoMode&&o&&e.services.log(" Version upgrade detected: updating skills and agents"),!n.noClaude&&t.skills.install){let h=await ke({projectRoot:s,installV2Skills:t.skills.installV2,installV3Skills:t.skills.installV3,overwrite:r}).install();i=h.installed.length,h.errors.length>0&&e.services.warn(`Skills warnings: ${h.errors.join(", ")}`)}if(!n.noClaude){let g=ct(s,{sourceSkillsDir:ke({projectRoot:s}).getSourceSkillsDir()});R=g.removed,he=g.kept.flatMap(h=>h.files);for(let h of g.removed)e.services.log(` Removed retired asset: ${h}`);for(let h of[...g.installed,...g.refreshed])e.services.log(` Updated skill file: ${h}`);for(let h of g.kept)e.services.warn(`Kept ${h.files.join(", ")}: ${h.why}. ${h.advice}.`);for(let h of g.replacementWarnings)e.services.warn(`Skill file kept: ${h}.`);g.missingReplacements.length>0&&e.services.warn(`Could not install ${g.missingReplacements.join(", ")}; run "aqe init --upgrade" to refresh the skills.`)}if(!n.noClaude){try{let h=await Je({projectRoot:s,installQEAgents:!0,installSubagents:!0,overwrite:r}).install();d=h.installed.length,h.errors.length>0&&e.services.warn(`Agents warnings: ${h.errors.join(", ")}`)}catch(g){e.services.warn(`Agents install error: ${g instanceof Error?g.message:g}`)}je(s)}let I;if(n.browserEngine===!0&&!n.minimal)try{let g=se();if(g.status==="ready")I={status:"already-installed",version:g.version,packageSpec:F,platformHint:Ee()},e.services.log(` Browser engine: vibium ${I.version} (already installed)`);else switch(e.services.log(" Browser engine: installing vibium via npm (this can take 1\u20133 minutes on first run; downloads Chrome for Testing)\u2026"),I=mt({skip:!1}),I.status){case"installed":e.services.log(` Browser engine: vibium ${I.version} installed`);break;case"skipped":e.services.log(" Browser engine: skipped");break;case"install-failed":e.services.warn(`Browser engine install failed (qe-browser skill will be unavailable until you run \`aqe init --browser-engine\`): ${I.message||"unknown"}`);break;case"npm-unavailable":e.services.warn("Browser engine: npm not on PATH \u2014 install Node.js + npm, then `aqe init --browser-engine` to enable qe-browser");break}I?.platformHint&&e.services.warn(` Browser engine platform hint: ${I.platformHint.message}`)}catch(g){let h=g instanceof Error?g.message:String(g);e.services.warn(`Browser engine install error: ${h}
|
|
131
|
+
`}generateHooksConfig(e,t){return{PreToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" guard --file "$TOOL_INPUT_file_path" --json',timeout:3,continueOnError:!0}]},{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" pre-edit --file "$TOOL_INPUT_file_path" --json',timeout:5,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" pre-command --command "$TOOL_INPUT_command" --json',timeout:3,continueOnError:!0}]},{matcher:"^(Task|Agent)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" pre-task --description "$TOOL_INPUT_prompt" --json',timeout:5,continueOnError:!0}]}],PostToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-edit --file "$TOOL_INPUT_file_path" --success --json',timeout:5,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-command --command "$TOOL_INPUT_command" --success true --json',timeout:5,continueOnError:!0}]},{matcher:"^(Task|Agent)$",hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-task --task-id "$TOOL_RESULT_agent_id" --agent "$TOOL_INPUT_subagent_type" --success true --description "$TOOL_INPUT_prompt" --json',timeout:5,continueOnError:!0}]}],UserPromptSubmit:[{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" route --json',timeout:5,continueOnError:!0}]}],SessionStart:[{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" session-start --session-id "$SESSION_ID" --json',timeout:10,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" verify --json'`,timeout:5,continueOnError:!0}]}],Stop:[{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" session-end --save-state --json',timeout:5,continueOnError:!0}]},{hooks:[{type:"command",command:'node "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/aqe-hook.cjs" post-route --success true --json',timeout:5,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" export --json'`,timeout:60,continueOnError:!0}]}]}}};import{existsSync as Dt,readFileSync as $t}from"fs";de();import{join as qt}from"path";var ee=class extends v{constructor(t=s=>Ue(s)){super();this.detectPlugin=t}detectPlugin;name="mcp";description="Configure MCP server";order=80;critical=!1;requiresPhases=["configuration","database"];async run(t){let{projectRoot:s}=t;if(t.options.noClaude)return t.services.log(" MCP: skipped (--no-claude \u2014 .mcp.json is the Claude Code surface)"),{configured:!1,mcpPath:"",serverName:""};if(t.options.noMcp)return t.services.log(" MCP: skipped (--no-mcp)"),t.services.log(" CLI commands available: aqe memory, aqe test, aqe coverage, etc."),{configured:!1,mcpPath:"",serverName:""};if(!t.options.withMcp){let l=this.detectPlugin(s);if(l.enabled)return t.services.log(Ke(s)),{configured:!1,mcpPath:"",serverName:"",skippedForPlugin:l.pluginKey}}let n=t.options.memoryBackend==="memory",r={command:"aqe-mcp",args:[],env:n?{AQE_MEMORY_BACKEND:"memory",AQE_LEARNING_ENABLED:"false",AQE_WORKERS_ENABLED:"false",NODE_ENV:"production"}:{AQE_LEARNING_ENABLED:"true",AQE_WORKERS_ENABLED:"true",NODE_ENV:"production"}},i=qt(s,".mcp.json"),d={};if(Dt(i))try{let l=$t(i,"utf-8");d=x(l)}catch{d={}}d.mcpServers||(d.mcpServers={});let p=d.mcpServers;return p["agentic-qe"]=r,Q(i,JSON.stringify(d,null,2)),t.services.log(` MCP config: ${i}`),t.services.log(" Server: agentic-qe"),n?(t.services.log(" Memory backend: in-memory (database-free)"),t.services.log(" Learning: disabled (db-free)"),t.services.log(" Workers: disabled (db-free)")):(t.services.log(" Learning: enabled"),t.services.log(" Workers: enabled")),{configured:!0,mcpPath:i,serverName:"agentic-qe"}}};import{existsSync as A,readFileSync as Wt,readdirSync as Vt}from"fs";import{join as _}from"path";import{createHash as jt}from"crypto";import{constants as Tt,copyFileSync as st,existsSync as Ce,lstatSync as Se,readFileSync as ot,realpathSync as it,unlinkSync as Ot}from"fs";import{dirname as at,join as Pe,sep as Mt}from"path";var te=".claude/skills/qe-court/evals/fixtures/seeded-mutant-delivery",Ee="qe-court/evals/fixtures/seeded-mutant-delivery",rt=".claude/skills/testability-scoring/resources/templates",Ft="testability-scoring/resources/templates",Nt=Object.freeze([{id:"qe-court-seeded-mutant",retired:[{relPath:`${te}/budget.test.ts`,shippedSha256:["add1ff4cb05978c136f8c2c5cc50059d920f06f409e5f6f304239b7dad3cf65d"]},{relPath:`${te}/budget.ts`,shippedSha256:["11fc97cad19bb4fc0d31151a6d216ab99d0df0521b60be8fb19581d412147ef6"]}],replacements:[{relPath:`${te}/budget-tests.ts.fixture`,source:`${Ee}/budget-tests.ts.fixture`},{relPath:`${te}/budget.ts.fixture`,source:`${Ee}/budget.ts.fixture`}],refresh:[{relPath:`${te}/README.md`,source:`${Ee}/README.md`,previousSha256:["d3988b92856d0023a7ae210dce3e0bdf76204f41d635fd29f7e243c168ff6109"]},{relPath:".claude/skills/qe-court/evals/qe-court.yaml",source:"qe-court/evals/qe-court.yaml",previousSha256:["412899013a51a099224bad04491d49dca19f2c567c5599adedabd0e1d58556c7","27c8be547dc032e2dbe488156dd7a30f79b1cc921fe92efec5b9bb0a151f0e9b"]}],advice:"3.15.6 renamed the qe-court seeded-mutant fixture to budget.ts.fixture / budget-tests.ts.fixture because budget.test.ts matches test-runner globs, so your vitest/jest collects it (#1017). The pair was left as is; delete or rename both files if you do not want your test runner to collect it"},{id:"testability-scoring-spec-template",retired:[{relPath:`${rt}/testability-scoring.spec.template.js`,shippedSha256:["e85a3e25bb458f3d090834e121b02e8db83cdc589149b5cf7549853e1a067edf"]}],replacements:[{relPath:`${rt}/testability-scoring-spec.template.js`,source:`${Ft}/testability-scoring-spec.template.js`}],refresh:[],advice:"3.15.6 renamed it to testability-scoring-spec.template.js because its name matches the `*.spec.*` test glob (#1017); delete or rename it if your test runner should not collect it"}]);function lt(c){return jt("sha256").update(c).digest("hex")}function Ie(c,e){let t;try{t=it(at(e))}catch{return!1}return t===c||t.startsWith(c+Mt)}function Lt(c,e,t,s){let n;try{n=Se(e)}catch{return{state:"absent"}}if(!Ie(c,e))return{state:"blocked",why:`${t} resolves outside the project (symlinked directory)`};if(!n.isFile())return{state:"blocked",why:`${t} is not a regular file`};try{if(!s.includes(lt(ot(e))))return{state:"blocked",why:`${t} was modified since AQE installed it`}}catch(o){return{state:"blocked",why:`${t} is unreadable (${o instanceof Error?o.message:String(o)})`}}return{state:"removable"}}function ct(c,e={}){let t=e.groups??Nt,s={removed:[],installed:[],refreshed:[],kept:[],missingReplacements:[],replacementWarnings:[]},n;try{n=it(c)}catch{return s}let o=r=>Pe(c,...r.split("/"));for(let r of t){let d=r.retired.map(l=>({file:l,probe:Lt(n,o(l.relPath),l.relPath.split("/").pop(),l.shippedSha256)})).filter(l=>l.probe.state!=="absent");if(d.length===0)continue;let p=d.filter(l=>l.probe.state==="blocked");if(p.length>0){s.kept.push({group:r.id,files:d.map(l=>l.file.relPath),why:p.map(l=>l.probe.why).join("; "),advice:r.advice});continue}for(let{file:l}of d)try{Ot(o(l.relPath)),s.removed.push(l.relPath)}catch(u){s.kept.push({group:r.id,files:[l.relPath],why:`could not remove (${u instanceof Error?u.message:String(u)})`,advice:r.advice})}for(let l of r.replacements){let u=o(l.relPath),m=e.sourceSkillsDir?Pe(e.sourceSkillsDir,...l.source.split("/")):void 0,y;try{y=Se(u)}catch{y=void 0}if(!y?.isFile()){if(y){s.missingReplacements.push(l.relPath),s.replacementWarnings.push(`${l.relPath} exists and is not a regular file (e.g. a symlink); not replaced`);continue}if(!m||!Ce(m)){s.missingReplacements.push(l.relPath);continue}try{if(!Ce(at(u))||!Ie(n,u)){s.missingReplacements.push(l.relPath);continue}st(m,u,Tt.COPYFILE_EXCL),s.installed.push(l.relPath)}catch(f){s.missingReplacements.push(l.relPath),f?.code==="EEXIST"&&s.replacementWarnings.push(`${l.relPath} appeared during install; not replaced`)}}}for(let l of r.refresh){let u=o(l.relPath),m=e.sourceSkillsDir?Pe(e.sourceSkillsDir,...l.source.split("/")):void 0;if(!(!m||!Ce(m)))try{if(!Se(u).isFile()||!Ie(n,u)||!l.previousSha256.includes(lt(ot(u))))continue;st(m,u),s.refreshed.push(l.relPath)}catch{}}}return s}ce();import{spawnSync as Bt}from"node:child_process";import*as fe from"node:os";import*as ut from"node:fs";var F="vibium@^26.8.21",pt={platform:()=>fe.platform(),arch:()=>fe.arch(),existsSync:c=>ut.existsSync(c)},dt=["/usr/bin/chromium","/usr/bin/chromium-browser","/usr/bin/google-chrome","/usr/bin/google-chrome-stable","/snap/bin/chromium"];function Re(c=pt){if(c.platform()!=="linux"||c.arch()!=="arm64")return;let e=dt.find(t=>c.existsSync(t));return e?{code:"linux-arm64-system-chromium-found",browserPath:e,message:`Linux aarch64 detected. Vibium v26.3.x does not auto-download Chrome for Testing on ARM64. Found system browser at ${e}. Export VIBIUM_BROWSER_PATH=${e} before running vibium.`}:{code:"linux-arm64-no-system-chromium",message:`Linux aarch64 detected. Vibium v26.3.x does not auto-download Chrome for Testing on ARM64, and no system chromium was found on PATH (checked: ${dt.join(", ")}). Install via \`apt-get install chromium\` (or your distro's equivalent), then export VIBIUM_BROWSER_PATH=/usr/bin/chromium before running vibium.`}}function ne(c,e,t,s){return c(e,t,{encoding:"utf8",timeout:s,maxBuffer:8*1024*1024})}var Ae=(c,e,t)=>Bt(c,e,t);function Qt(c=Ae,e=5e3){let t=ne(c,"vibium",["--version"],e);if(t.status!==0)return null;let s=(t.stdout||"").trim(),n=(t.stderr||"").trim(),o=s||n;if(!o)return"unknown";let r=o.match(/v?(\d+\.\d+\.\d+(?:[-+][\w.]+)?)/);return r?r[1]:o.split(/\s+/)[0]||"unknown"}function se(c=Ae,e=5e3){let t=Qt(c,e);if(!t)return{status:"cli-missing"};let s=/^(\d+)\.(\d+)\.(\d+)(?:\+[\w.]+)?$/.exec(t);if(!s||Number(s[1])!==26||Number(s[2])<8||Number(s[2])===8&&Number(s[3])<21)return{status:"unsupported-version",version:t,message:`Vibium ${t} is unsupported; install ${F} for the browser.start() API`};let n=ne(c,"vibium",["is-installed"],e);return n.status===0?{status:"ready",version:t}:{status:"payload-missing",version:t,message:n.stderr?.trim()||n.stdout?.trim()||I(n.error)||"Vibium Chrome/chromedriver payload is missing or incomplete"}}function mt(c={}){let e=c.packageSpec||F;if(c.skip)return{status:"skipped",packageSpec:e,message:"install skipped by options"};let t=c.spawner||Ae,s=c.platformProbe||pt,n=Re(s),o=se(t);if(o.status==="ready")return{status:"already-installed",version:o.version,packageSpec:e,platformHint:n};let r=c.npmBin||"npm",i=ne(t,r,["--version"],5e3);if(i.error||i.status!==0)return{status:"npm-unavailable",packageSpec:e,message:`npm is not available on PATH. Install Node.js + npm, then run \`npm install -g ${e}\`.`};let d=c.timeoutMs||18e4,p=ne(t,r,["install","-g",e],d);if(p.status!==0)return{status:"install-failed",packageSpec:e,message:p.stderr?.trim()||p.stdout?.trim()||I(p.error)||"unknown npm install failure"};let l=se(t);if(l.status==="payload-missing"){let u=ne(t,"vibium",["install"],d);if(u.status!==0)return{status:"install-failed",packageSpec:e,platformHint:n,message:`Browser payload installation failed: ${u.stderr?.trim()||u.stdout?.trim()||"vibium install failed"}. Run \`vibium install\` and verify with \`vibium is-installed\`.`};l=se(t)}if(l.status!=="ready"){let u=l.message?`: ${l.message}`:"";return{status:"install-failed",packageSpec:e,platformHint:n,message:`npm completed, but Vibium readiness verification failed (${l.status})${u}. Run \`npm install -g ${e}\`, then verify with \`vibium is-installed\`.`}}return{status:"installed",version:l.version,packageSpec:e,platformHint:n}}var re=class extends v{name="assets";description="Install skills and agents";order=90;critical=!1;requiresPhases=["configuration"];async run(e){let t=e.config,{projectRoot:s,options:n}=e,o=this.detectVersionUpgrade(e),r=n.upgrade||t.skills.overwrite||n.autoMode&&o,i=0,d=0,p=0,l=0,u=0,m=0,y=0,f=0,b=0,P,B,S=[],he=[];if(n.upgrade?e.services.log(" Upgrade mode: overwriting existing files"):n.autoMode&&o&&e.services.log(" Version upgrade detected: updating skills and agents"),!n.noClaude&&t.skills.install){let h=await ke({projectRoot:s,installV2Skills:t.skills.installV2,installV3Skills:t.skills.installV3,overwrite:r}).install();i=h.installed.length,h.errors.length>0&&e.services.warn(`Skills warnings: ${h.errors.join(", ")}`)}if(!n.noClaude){let g=ct(s,{sourceSkillsDir:ke({projectRoot:s}).getSourceSkillsDir()});S=g.removed,he=g.kept.flatMap(h=>h.files);for(let h of g.removed)e.services.log(` Removed retired asset: ${h}`);for(let h of[...g.installed,...g.refreshed])e.services.log(` Updated skill file: ${h}`);for(let h of g.kept)e.services.warn(`Kept ${h.files.join(", ")}: ${h.why}. ${h.advice}.`);for(let h of g.replacementWarnings)e.services.warn(`Skill file kept: ${h}.`);g.missingReplacements.length>0&&e.services.warn(`Could not install ${g.missingReplacements.join(", ")}; run "aqe init --upgrade" to refresh the skills.`)}if(!n.noClaude){try{let h=await Je({projectRoot:s,installQEAgents:!0,installSubagents:!0,overwrite:r}).install();d=h.installed.length,h.errors.length>0&&e.services.warn(`Agents warnings: ${h.errors.join(", ")}`)}catch(g){e.services.warn(`Agents install error: ${g instanceof Error?g.message:g}`)}je(s)}let E;if(n.browserEngine===!0&&!n.minimal)try{let g=se();if(g.status==="ready")E={status:"already-installed",version:g.version,packageSpec:F,platformHint:Re()},e.services.log(` Browser engine: vibium ${E.version} (already installed)`);else switch(e.services.log(" Browser engine: installing vibium via npm (this can take 1\u20133 minutes on first run; downloads Chrome for Testing)\u2026"),E=mt({skip:!1}),E.status){case"installed":e.services.log(` Browser engine: vibium ${E.version} installed`);break;case"skipped":e.services.log(" Browser engine: skipped");break;case"install-failed":e.services.warn(`Browser engine install failed (qe-browser skill will be unavailable until you run \`aqe init --browser-engine\`): ${E.message||"unknown"}`);break;case"npm-unavailable":e.services.warn("Browser engine: npm not on PATH \u2014 install Node.js + npm, then `aqe init --browser-engine` to enable qe-browser");break}E?.platformHint&&e.services.warn(` Browser engine platform hint: ${E.platformHint.message}`)}catch(g){let h=g instanceof Error?g.message:String(g);e.services.warn(`Browser engine install error: ${h}
|
|
132
132
|
qe-browser fleet skill will be unavailable until you run:
|
|
133
133
|
npm install -g ${F}
|
|
134
|
-
Then re-run \`aqe init --browser-engine\` to verify. The rest of the AQE install will continue.`)}else
|
|
134
|
+
Then re-run \`aqe init --browser-engine\` to verify. The rest of the AQE install will continue.`)}else E={status:"skipped",packageSpec:F,message:n.minimal?"minimal mode":"browser setup not requested; run aqe init --browser-engine"};if(n.withN8n){let h=await Ye({projectRoot:s,installAgents:!0,installSkills:!0,overwrite:r,n8nApiConfig:n.n8nApiConfig}).install();p=h.agentsInstalled.length,l=h.skillsInstalled.length,h.errors.length>0&&e.services.warn(`N8n warnings: ${h.errors.join(", ")}`)}let $e=n.autoMode&&A(_(s,"opencode.json"));if(n.withOpenCode||$e){let{createOpenCodeInstaller:g}=await import("./opencode-installer-PJ576R63.js"),a=await g({projectRoot:s,installAgents:!0,installSkills:!0,installTools:!1,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();u=a.agentsInstalled.length,m=a.skillsInstalled.length,a.errors.length>0&&e.services.warn(`OpenCode warnings: ${a.errors.join(", ")}`)}e.services.log(` Skills: ${i}`),e.services.log(` Agents: ${d}`),n.withN8n&&(e.services.log(` N8n agents: ${p}`),e.services.log(` N8n skills: ${l}`)),(n.withOpenCode||$e)&&(e.services.log(` OpenCode agents: ${u}`),e.services.log(` OpenCode skills: ${m}`));let Ct=n.autoMode&&A(_(s,".kiro"));if(n.withKiro||Ct){let{createKiroInstaller:g}=await import("./kiro-installer-M4OPUNK2.js"),a=await g({projectRoot:s,installAgents:!0,installSkills:!0,installHooks:!0,installSteering:!0,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();y=a.agentsInstalled.length,f=a.skillsInstalled.length,b=a.hooksInstalled.length,a.errors.length>0&&e.services.warn(`Kiro warnings: ${a.errors.join(", ")}`),e.services.log(` Kiro agents: ${y}`),e.services.log(` Kiro skills: ${f}`),e.services.log(` Kiro hooks: ${b}`),e.services.log(` Kiro steering: ${a.steeringInstalled.length}`),a.mcpConfigured&&e.services.log(" Kiro MCP: .kiro/settings/mcp.json")}let R=[];if(n.withCopilot||n.autoMode&&A(_(s,".vscode"))){let{createCopilotInstaller:g}=await import("./copilot-installer-SVVFY3S2.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("copilot"),a.errors.length>0&&e.services.warn(`Copilot warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Copilot MCP: ${a.configPath}`),a.rulesInstalled&&e.services.log(` Copilot rules: ${a.rulesPath}`)}if(n.withCursor||n.autoMode&&A(_(s,".cursor"))){let{createCursorInstaller:g}=await import("./cursor-installer-UPETT57E.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("cursor"),a.errors.length>0&&e.services.warn(`Cursor warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Cursor MCP: ${a.configPath}`),a.rulesInstalled&&e.services.log(` Cursor rules: ${a.rulesPath}`)}if(n.withCline){let{createClineInstaller:g}=await import("./cline-installer-WRRT7BGQ.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("cline"),a.errors.length>0&&e.services.warn(`Cline warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Cline MCP: ${a.configPath}`),a.modeInstalled&&e.services.log(` Cline mode: ${a.modePath}`)}if(n.withKiloCode||n.autoMode&&A(_(s,".kilocode"))){let{createKiloCodeInstaller:g}=await import("./kilocode-installer-OPD7JBRL.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("kilocode"),a.errors.length>0&&e.services.warn(`Kilo Code warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Kilo Code MCP: ${a.configPath}`),a.modeInstalled&&e.services.log(` Kilo Code mode: ${a.modePath}`)}if(n.withRooCode||n.autoMode&&A(_(s,".roo"))){let{createRooCodeInstaller:g}=await import("./roocode-installer-3BYEBTQ7.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("roocode"),a.errors.length>0&&e.services.warn(`Roo Code warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Roo Code MCP: ${a.configPath}`),a.modeInstalled&&e.services.log(` Roo Code mode: ${a.modePath}`)}if(n.withCodex||n.autoMode&&A(_(s,".codex"))){let{createCodexInstaller:g}=await import("./codex-installer-YTRHNDWR.js"),a=await g({projectRoot:s,overwrite:r,installMcp:!n.noMcp,includeRuflo:n.withRuflo,guidancePolicy:n.codexGuidance,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();P={policy:a.guidancePolicy,ownedBytes:a.ownedGuidanceBytes},B={hooks:a.components.hooks,skills:a.components.skills},a.mcpConfigured&&R.push("codex"),a.errors.length>0&&e.services.warn(`Codex warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Codex MCP: ${a.configPath}`),a.agentsMdInstalled&&e.services.log(` Codex AGENTS.md: ${a.agentsMdPath}`),a.hooksConfigured&&e.services.log(` Codex hooks: ${a.hooksPath}`),a.skillsInstalled>0&&e.services.log(` Codex skills: ${a.skillsInstalled} installed`),e.services.log(n.withRuflo?" Codex Ruflo integration: enabled":" Codex Ruflo integration: not installed (opt in with --with-ruflo)")}if(n.withWindsurf||n.autoMode&&A(_(s,".windsurf"))){let{createWindsurfInstaller:g}=await import("./windsurf-installer-QZPWSH37.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("windsurf"),a.errors.length>0&&e.services.warn(`Windsurf warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Windsurf MCP: ${a.configPath}`),a.rulesInstalled&&e.services.log(` Windsurf rules: ${a.rulesPath}`)}if(n.withContinueDev||n.autoMode&&A(_(s,".continue"))){let{createContinueDevInstaller:g}=await import("./continuedev-installer-IIDR66LB.js"),a=await g({projectRoot:s,overwrite:r,memoryBackend:n.memoryBackend==="memory"?"memory":void 0}).install();a.mcpConfigured&&R.push("continuedev"),a.errors.length>0&&e.services.warn(`Continue.dev warnings: ${a.errors.join(", ")}`),a.mcpConfigured&&e.services.log(` Continue.dev MCP: ${a.configPath}`),a.rulesInstalled&&e.services.log(` Continue.dev rules: ${a.rulesPath}`)}return R.length>0&&e.services.log(` Platforms configured: ${R.join(", ")}`),{skillsInstalled:i,agentsInstalled:d,n8nAgents:p,n8nSkills:l,openCodeAgents:u,openCodeSkills:m,kiroAgents:y,kiroSkills:f,kiroHooks:b,platformsConfigured:R,browserEngine:E,codexGuidance:P,codexComponents:B,retiredAssetsRemoved:S,retiredAssetsKept:he}}detectVersionUpgrade(e){let t=e.config.version,s=_(e.projectRoot,".agentic-qe","config.yaml");if(A(s))try{let i=Wt(s,"utf-8").match(/version:\s*"?([^"\n]+)"?/)?.[1];if(i===t)return!1;if(i!==void 0)return!0}catch{}let n=_(e.projectRoot,".claude","agents","v3");try{return A(n)&&Vt(n).some(o=>o.endsWith(".md")&&o.startsWith("qe-"))}catch{return!1}}};import{existsSync as Ht,mkdirSync as Gt}from"fs";import{join as N,dirname as Ut}from"path";import{fileURLToPath as Kt}from"url";var zt=Kt(import.meta.url),Ts=Ut(zt),oe=class extends v{name="workers";description="Configure background workers";order=100;critical=!1;requiresPhases=["configuration"];async shouldRun(e){if(e.options.memoryBackend==="memory")return!1;let t=e.config;return t?.workers?.daemonAutoStart&&(t?.workers?.enabled?.length??0)>0}async run(e){let t=e.config,{projectRoot:s}=e;if(!t.workers.daemonAutoStart||t.workers.enabled.length===0)return{workersDir:"",workersConfigured:0,registryPath:"",daemonStarted:!1,daemonPid:null};let n=N(s,".agentic-qe","workers");Ht(n)||Gt(n,{recursive:!0});let o={"learning-consolidation":18e5,"pattern-consolidator":18e5,"test-health":3e5,"coverage-tracker":6e5,"coverage-gap-scanner":6e5,"flaky-detector":9e5,"flaky-test-detector":9e5,"security-scan":18e5,"quality-gate":3e5,"compliance-checker":18e5,"defect-predictor":9e5,"regression-monitor":6e5,"routing-accuracy-monitor":9e5,"performance-baseline":36e5,"cloud-sync":3e5},r={};for(let y of t.workers.enabled)r[y]={name:y,enabled:!0,interval:t.workers.intervals[y]||o[y]||6e4,lastRun:null,status:"pending"};let i=N(n,"registry.json"),d={version:t.version,maxConcurrent:t.workers.maxConcurrent,workers:r,createdAt:new Date().toISOString(),daemonPid:null};W(i,d,[["createdAt"]]);for(let y of t.workers.enabled){let f=N(n,`${y}.json`),b={name:y,enabled:!0,interval:t.workers.intervals[y]||o[y]||6e4,projectRoot:s,dataDir:N(s,".agentic-qe","data"),createdAt:new Date().toISOString()};W(f,b,[["createdAt"]])}let p=N(n,"start-daemon.cjs");Q(p,`#!/usr/bin/env node
|
|
135
135
|
// AQE v3 Worker Daemon Startup Script (cross-platform)
|
|
136
136
|
// Generated by aqe init
|
|
137
137
|
// Starts the MCP server with background workers enabled
|
|
@@ -177,6 +177,29 @@ if (existsSync(pidFile) && isRegularOrAbsent(pidFile)) {
|
|
|
177
177
|
try { process.kill(pid, 0); console.log('Daemon already running (PID: ' + pid + ')'); process.exit(0); } catch {}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
// #1116: honour AQE_WORKERS_ENABLED, from the environment or else the project's
|
|
181
|
+
// .claude/settings.local.json or settings.json env (where \`aqe init
|
|
182
|
+
// --no-database\` writes it; the local file wins, as in Claude Code), the same
|
|
183
|
+
// falsy values as the MCP server. A JSON boolean counts as its string.
|
|
184
|
+
// Disabled means nothing is spawned.
|
|
185
|
+
function workersEnabledSetting() {
|
|
186
|
+
if (process.env.AQE_WORKERS_ENABLED !== undefined) return process.env.AQE_WORKERS_ENABLED;
|
|
187
|
+
for (const file of ['settings.local.json', 'settings.json']) {
|
|
188
|
+
try {
|
|
189
|
+
const settings = JSON.parse(readFileSync(join(projectRoot, '.claude', file), 'utf-8'));
|
|
190
|
+
const value = settings && settings.env && settings.env.AQE_WORKERS_ENABLED;
|
|
191
|
+
if (typeof value === 'string') return value;
|
|
192
|
+
if (typeof value === 'boolean') return String(value);
|
|
193
|
+
} catch { /* missing or unreadable: try the next file */ }
|
|
194
|
+
}
|
|
195
|
+
return undefined;
|
|
196
|
+
}
|
|
197
|
+
const workersSetting = workersEnabledSetting();
|
|
198
|
+
if (workersSetting !== undefined && ['false', '0', 'off', 'no'].includes(workersSetting.trim().toLowerCase())) {
|
|
199
|
+
console.log('AQE v3 Worker Daemon not started: background workers are disabled (AQE_WORKERS_ENABLED=' + workersSetting + ')');
|
|
200
|
+
process.exit(0);
|
|
201
|
+
}
|
|
202
|
+
|
|
180
203
|
const ts = new Date().toISOString();
|
|
181
204
|
appendFileSync(logFile, '[' + ts + '] Starting AQE v3 Worker Daemon...\\n');
|
|
182
205
|
|
|
@@ -232,17 +255,38 @@ if (binCandidate && binCandidate.endsWith('bundle.js')) {
|
|
|
232
255
|
appendFileSync(logFile, '[' + ts + '] Using: ' + mcpCmd + ' ' + mcpArgs.join(' ') + '\\n');
|
|
233
256
|
|
|
234
257
|
// #1066: keep a user's AQE_WORKERS_ENABLED (for example false) instead of forcing it on.
|
|
235
|
-
const env = { ...process.env, AQE_STORAGE_PATH: '.agentic-qe', AQE_LEARNING_ENABLED: 'true', AQE_WORKERS_ENABLED:
|
|
258
|
+
const env = { ...process.env, AQE_STORAGE_PATH: '.agentic-qe', AQE_LEARNING_ENABLED: 'true', AQE_WORKERS_ENABLED: workersSetting ?? 'true', AQE_HTTP_PORT: '0' };
|
|
236
259
|
const child = spawn(mcpCmd, mcpArgs, { cwd: projectRoot, env, detached: true, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
237
260
|
child.stdout.on('data', d => appendFileSync(logFile, d));
|
|
238
261
|
child.stderr.on('data', d => appendFileSync(logFile, d));
|
|
262
|
+
let exited = null;
|
|
263
|
+
child.on('exit', (code, signal) => { exited = { code, signal }; });
|
|
264
|
+
// #1116: a command that cannot be started (no npx on PATH: spawn ENOENT) emits
|
|
265
|
+
// 'error' instead of 'exit'; without a handler the script crashed and left
|
|
266
|
+
// "undefined" in daemon.pid.
|
|
267
|
+
child.on('error', (error) => {
|
|
268
|
+
try { fs.unlinkSync(pidFile); } catch {}
|
|
269
|
+
appendFileSync(logFile, '[' + ts + '] Daemon could not be started: ' + error.message + '\\n');
|
|
270
|
+
console.error('AQE v3 Worker Daemon not started: ' + error.message + '; see ' + logFile);
|
|
271
|
+
process.exit(1);
|
|
272
|
+
});
|
|
239
273
|
child.unref();
|
|
240
274
|
|
|
241
|
-
writeFileSync(pidFile, String(child.pid));
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
275
|
+
if (child.pid !== undefined) writeFileSync(pidFile, String(child.pid));
|
|
276
|
+
// #1116: say "started" only if the server is still running a moment later.
|
|
277
|
+
setTimeout(() => {
|
|
278
|
+
if (exited) {
|
|
279
|
+
try { fs.unlinkSync(pidFile); } catch {}
|
|
280
|
+
appendFileSync(logFile, '[' + ts + '] Daemon exited right away (code ' + exited.code + ', signal ' + exited.signal + ')\\n');
|
|
281
|
+
console.error('AQE v3 Worker Daemon not started: the MCP server exited right away (code ' + exited.code + '); see ' + logFile);
|
|
282
|
+
process.exitCode = 1;
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
appendFileSync(logFile, '[' + ts + '] Daemon started with PID: ' + child.pid + '\\n');
|
|
286
|
+
console.log('AQE v3 Worker Daemon started (PID: ' + child.pid + ')');
|
|
287
|
+
console.log('Log file: ' + logFile);
|
|
288
|
+
console.log('To stop: node ' + join(workersDir, 'stop-daemon.cjs'));
|
|
289
|
+
}, 3000);
|
|
246
290
|
`);let u=N(n,"stop-daemon.cjs");return Q(u,`#!/usr/bin/env node
|
|
247
291
|
// AQE v3 Worker Daemon Stop Script (cross-platform)
|
|
248
292
|
// Generated by aqe init
|
|
@@ -430,7 +474,7 @@ Task({ prompt: "Security audit", subagent_type: "qe-security-scanner", run_in_ba
|
|
|
430
474
|
|
|
431
475
|
---
|
|
432
476
|
*Generated by AQE v3 init - ${new Date().toISOString()}*
|
|
433
|
-
`}};import{existsSync as q,readFileSync as Xt}from"fs";import{join as
|
|
477
|
+
`}};import{existsSync as q,readFileSync as Xt}from"fs";import{join as L,dirname as Zt}from"path";import{mkdirSync as ft}from"fs";ye();var en=/^# \d{4}-\d{2}-\d{2}T[\d:.]+Z$/,ae=class extends v{name="verification";description="Verify installation";order=120;critical=!0;requiresPhases=["database","configuration"];async run(e){let t=e.config,{projectRoot:s}=e,n=[],o=e.options.memoryBackend==="memory",r=L(s,".agentic-qe","memory.db");n.push({name:o?"Database (in-memory mode)":"Database exists",passed:o||q(r)}),n.push({name:".agentic-qe directory",passed:q(L(s,".agentic-qe"))});let i=L(s,".agentic-qe","config.yaml");await this.saveConfig(t,s),n.push({name:"Config saved",passed:q(i)});let d=o?!0:await this.writeVersionToDb(t.version,s);n.push({name:"Version marker",passed:d});let p=["Database exists",".agentic-qe directory","Config saved"],l=n.filter(u=>p.includes(u.name)).every(u=>u.passed);e.services.log(" Verification checks:");for(let u of n){let m=p.includes(u.name),y=u.passed?"\u2713":m?"\u2717":"\u26A0",f=!m&&!u.passed?" (optional)":"";e.services.log(` ${y} ${u.name}${f}`)}return{verified:l,versionWritten:d,configSaved:q(i),checks:n}}async writeVersionToDb(e,t){let s=L(t,".agentic-qe","memory.db");try{let n=Zt(s);q(n)||ft(n,{recursive:!0});let o=D(s);try{o.exec(`
|
|
434
478
|
CREATE TABLE IF NOT EXISTS kv_store (
|
|
435
479
|
key TEXT NOT NULL,
|
|
436
480
|
namespace TEXT NOT NULL,
|
|
@@ -445,9 +489,9 @@ Task({ prompt: "Security audit", subagent_type: "qe-security-scanner", run_in_ba
|
|
|
445
489
|
`).run("aqe_version",JSON.stringify(e),r),o.prepare(`
|
|
446
490
|
INSERT OR REPLACE INTO kv_store (key, namespace, value, created_at)
|
|
447
491
|
VALUES (?, '_system', ?, ?)
|
|
448
|
-
`).run("init_timestamp",JSON.stringify(new Date().toISOString()),r),o.close(),!0}catch{return o.close(),!1}}catch{return!1}}async saveConfig(e,t){let s=
|
|
492
|
+
`).run("init_timestamp",JSON.stringify(new Date().toISOString()),r),o.close(),!0}catch{return o.close(),!1}}catch{return!1}}async saveConfig(e,t){let s=L(t,".agentic-qe");q(s)||ft(s,{recursive:!0});let n=L(s,"config.yaml");if(q(n)){let r=this.loadExistingConfig(n);r&&(e=this.mergeConfigs(e,r))}let o=this.configToYAML(e);Me(n,o,en)}loadExistingConfig(e){try{let t=Xt(e,"utf-8");return this.parseYAML(t)}catch{return null}}parseYAML(e){try{let t={},s=e.split(`
|
|
449
493
|
`),n="",o="";for(let i of s){if(i.trim().startsWith("#")||i.trim()==="")continue;let d=i.match(/^(\w+):\s*(.*)$/);if(d){n=d[1],o="";let m=d[2].trim();m&&!m.startsWith('"')?t[n]=this.parseValue(m):m?t[n]=this.parseValue(m):t[n]={};continue}let p=i.match(/^ {2}(\w+):\s*(.*)$/);if(p&&n){o=p[1];let m=p[2].trim();t[n]||(t[n]={}),m?t[n][o]=this.parseValue(m):t[n][o]={};continue}let l=i.match(/^ {4}([\w-]+):\s*(.*)$/);if(l&&n&&o){let m=l[1],y=l[2].trim(),f=t[n];f[o]||(f[o]={}),typeof f[o]=="object"&&!Array.isArray(f[o])&&(f[o][m]=this.parseValue(y));continue}let u=i.match(/^ {4}- "?([^"]*)"?$/);if(u&&n&&o){let m=t[n];Array.isArray(m[o])||(m[o]=[]),m[o].push(u[1])}}let r=[["domains","enabled"],["domains","disabled"],["workers","enabled"]];for(let[i,d]of r){let p=t[i];p&&d in p&&!Array.isArray(p[d])&&(p[d]=[])}return t}catch{return null}}parseValue(e){return e==="true"?!0:e==="false"?!1:/^\d+$/.test(e)?parseInt(e,10):/^\d+\.\d+$/.test(e)?parseFloat(e):e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}mergeConfigs(e,t){if(t.domains?.enabled&&Array.isArray(t.domains.enabled)){let s=new Set(t.domains.enabled),n=new Set(e.domains.enabled);for(let r of n)s.add(r);let o=new Set(Array.isArray(t.domains?.disabled)?t.domains.disabled:[]);e.domains.enabled=Array.from(s).filter(r=>!o.has(r))}return t.domains?.disabled&&Array.isArray(t.domains.disabled)&&(e.domains.disabled=t.domains.disabled),t.learning?.enabled!==void 0&&(e.learning.enabled=t.learning.enabled),t.learning?.qualityThreshold!==void 0&&(e.learning.qualityThreshold=t.learning.qualityThreshold),t.learning?.promotionThreshold!==void 0&&(e.learning.promotionThreshold=t.learning.promotionThreshold),t.hooks?.claudeCode!==void 0&&(e.hooks.claudeCode=t.hooks.claudeCode),t.hooks?.preCommit!==void 0&&(e.hooks.preCommit=t.hooks.preCommit),t.hooks?.ciIntegration!==void 0&&(e.hooks.ciIntegration=t.hooks.ciIntegration),t.workers?.enabled&&Array.isArray(t.workers.enabled)&&(e.workers.enabled=t.workers.enabled),t.workers?.daemonAutoStart!==void 0&&(e.workers.daemonAutoStart=t.workers.daemonAutoStart),t.agents?.maxConcurrent!==void 0&&(e.agents.maxConcurrent=t.agents.maxConcurrent),t.agents?.defaultTimeout!==void 0&&(e.agents.defaultTimeout=t.agents.defaultTimeout),e}configToYAML(e){return["# Agentic QE v3 Configuration","# Generated by aqe init",`# ${new Date().toISOString()}`,"#",'# NOTE: Your customizations are PRESERVED when you run "aqe init" again.','# You do NOT need to re-run "aqe init" after editing this file - changes',"# take effect immediately. The following settings are merged on reinstall:","# - domains.enabled (custom domains like visual-accessibility)","# - domains.disabled","# - learning.enabled, qualityThreshold, and promotionThreshold","# - hooks.* preferences","# - workers.enabled","# - agents.maxConcurrent and defaultTimeout","",`version: "${e.version}"`,"","project:",` name: "${e.project.name}"`,` root: "${e.project.root}"`,` type: "${e.project.type}"`,"","learning:",` enabled: ${e.learning.enabled}`,` embeddingModel: "${e.learning.embeddingModel}"`," hnswConfig:",` M: ${e.learning.hnswConfig.M}`,` efConstruction: ${e.learning.hnswConfig.efConstruction}`,` efSearch: ${e.learning.hnswConfig.efSearch}`,` qualityThreshold: ${e.learning.qualityThreshold}`,` promotionThreshold: ${e.learning.promotionThreshold}`,` pretrainedPatterns: ${e.learning.pretrainedPatterns}`,"","routing:",` mode: "${e.routing.mode}"`,` confidenceThreshold: ${e.routing.confidenceThreshold}`,` feedbackEnabled: ${e.routing.feedbackEnabled}`,"","# ADR-092: Advisor Strategy \u2014 agents consult a stronger model for strategic guidance","# Set provider/model to override auto-detection from environment API keys","advisor:",' # provider: "openrouter" # openrouter | claude | ollama (auto-detected if not set)',' # model: "anthropic/claude-opus-5.5" # provider-specific model ID',' # maxUses: "3" # per-task advisor call cap',' redact: "strict" # strict | balanced | off',"","workers:"," enabled:",...e.workers.enabled.map(s=>` - "${s}"`)," intervals:",...Object.entries(e.workers.intervals).map(([s,n])=>` ${s}: ${n}`),` maxConcurrent: ${e.workers.maxConcurrent}`,` daemonAutoStart: ${e.workers.daemonAutoStart}`,"","hooks:",` claudeCode: ${e.hooks.claudeCode}`,` preCommit: ${e.hooks.preCommit}`,` ciIntegration: ${e.hooks.ciIntegration}`,"","skills:",` install: ${e.skills.install}`,` installV2: ${e.skills.installV2}`,` installV3: ${e.skills.installV3}`,` overwrite: ${e.skills.overwrite}`,"","domains:"," enabled:",...e.domains.enabled.map(s=>` - "${s}"`)," disabled:",...e.domains.disabled.map(s=>` - "${s}"`),"","agents:",` maxConcurrent: ${e.agents.maxConcurrent}`,` defaultTimeout: ${e.agents.defaultTimeout}`,""].join(`
|
|
450
|
-
`)}};ce();import{existsSync as j,mkdirSync as ht,readdirSync as yt,copyFileSync as vt}from"fs";import{join as C,dirname as tn}from"path";import{fileURLToPath as nn}from"url";var sn=nn(import.meta.url),kt=tn(sn);function rn(){let c=[C(kt,"../../assets/governance"),C(kt,"../assets/governance")],e=ze(import.meta.url);e&&(c.push(C(e,"assets/governance")),c.push(C(e,"dist/assets/governance"))),c.push(C(process.cwd(),"node_modules/agentic-qe/assets/governance")),c.push(C(process.cwd(),"assets/governance"));for(let t of c)if(j(t))return t;throw new Error(`Governance assets not found. Package may be corrupted. Searched: ${c.join(", ")}`)}var xe=class{projectRoot;overwrite;skipShards;assetsPath;constructor(e){this.projectRoot=e.projectRoot,this.overwrite=e.overwrite??!1,this.skipShards=e.skipShards??!1,this.assetsPath=rn()}async install(){let e=[],t=[],s=[],n=C(this.projectRoot,".claude","guidance"),o=C(n,"shards");try{ht(n,{recursive:!0}),this.skipShards||ht(o,{recursive:!0})}catch(l){return s.push(`Failed to create governance directory: ${
|
|
494
|
+
`)}};ce();import{existsSync as j,mkdirSync as ht,readdirSync as yt,copyFileSync as vt}from"fs";import{join as C,dirname as tn}from"path";import{fileURLToPath as nn}from"url";var sn=nn(import.meta.url),kt=tn(sn);function rn(){let c=[C(kt,"../../assets/governance"),C(kt,"../assets/governance")],e=ze(import.meta.url);e&&(c.push(C(e,"assets/governance")),c.push(C(e,"dist/assets/governance"))),c.push(C(process.cwd(),"node_modules/agentic-qe/assets/governance")),c.push(C(process.cwd(),"assets/governance"));for(let t of c)if(j(t))return t;throw new Error(`Governance assets not found. Package may be corrupted. Searched: ${c.join(", ")}`)}var xe=class{projectRoot;overwrite;skipShards;assetsPath;constructor(e){this.projectRoot=e.projectRoot,this.overwrite=e.overwrite??!1,this.skipShards=e.skipShards??!1,this.assetsPath=rn()}async install(){let e=[],t=[],s=[],n=C(this.projectRoot,".claude","guidance"),o=C(n,"shards");try{ht(n,{recursive:!0}),this.skipShards||ht(o,{recursive:!0})}catch(l){return s.push(`Failed to create governance directory: ${I(l)}`),{installed:e,skipped:t,errors:s,governanceDir:n,constitutionInstalled:!1,shardsInstalled:0}}let r=!1,i=C(this.assetsPath,"constitution.md"),d=C(n,"constitution.md");if(j(i))try{!j(d)||this.overwrite?(vt(i,d),e.push("constitution.md"),r=!0):t.push("constitution.md")}catch(l){s.push(`Failed to install constitution.md: ${I(l)}`)}else s.push("constitution.md not found in assets");let p=0;if(!this.skipShards){let l=C(this.assetsPath,"shards");if(j(l))try{let u=yt(l).filter(m=>m.endsWith(".shard.md"));for(let m of u){let y=C(l,m),f=C(o,m);try{!j(f)||this.overwrite?(vt(y,f),e.push(`shards/${m}`),p++):t.push(`shards/${m}`)}catch(b){s.push(`Failed to install ${m}: ${I(b)}`)}}}catch(u){s.push(`Failed to read shards directory: ${I(u)}`)}else s.push("Shards directory not found in assets")}return{installed:e,skipped:t,errors:s,governanceDir:n,constitutionInstalled:r,shardsInstalled:p}}isInstalled(){let e=C(this.projectRoot,".claude","guidance","constitution.md");return j(e)}getInstalledShards(){let e=C(this.projectRoot,".claude","guidance","shards");if(!j(e))return[];try{return yt(e).filter(t=>t.endsWith(".shard.md"))}catch{return[]}}};function bt(c){return new xe(c)}var le=class extends v{name="governance";description="Install governance configuration";order=95;critical=!1;requiresPhases=["configuration"];async shouldRun(e){return e.options.noClaude?(e.services.log(" Governance skipped (--no-claude)"),!1):e.options.noGovernance?(e.services.log(" Governance skipped (--no-governance flag)"),!1):e.options.minimal?(e.services.log(" Governance skipped (minimal mode)"),!1):!0}async run(e){let{projectRoot:t,options:s}=e,n=s.upgrade,o=bt({projectRoot:t,overwrite:n});if(o.isInstalled()&&!n){let i=o.getInstalledShards();return e.services.log(` Governance already installed (${i.length} shards)`),e.services.log(" Use --upgrade to overwrite existing files"),{filesInstalled:0,filesSkipped:1+i.length,constitutionInstalled:!1,shardsInstalled:0,governanceDir:`${t}/.claude/guidance`,skippedByFlag:!1}}let r=await o.install();if(r.errors.length>0)for(let i of r.errors)e.services.warn(` ${i}`);return e.services.log(` Constitution: ${r.constitutionInstalled?"installed":"skipped"}`),e.services.log(` Shards: ${r.shardsInstalled} installed, ${r.skipped.filter(i=>i.startsWith("shards/")).length} skipped`),r.installed.length>0&&(e.services.log(" Governance enabled (non-strict mode by default)"),e.services.log(" Set GOVERNANCE_STRICT_MODE=true for strict enforcement")),{filesInstalled:r.installed.length,filesSkipped:r.skipped.length,constitutionInstalled:r.constitutionInstalled,shardsInstalled:r.shardsInstalled,governanceDir:r.governanceDir,skippedByFlag:!1}}};var on=new V,an=new H,ln=new G,cn=new z,dn=new J,un=new Y,pn=new Z,mn=new ee,gn=new re,fn=new oe,hn=new ie,yn=new ae,vn=new le;function wt(){return[on,an,ln,cn,dn,un,pn,mn,gn,vn,fn,hn,yn]}var De=class{phases;context;constructor(e){this.context=this.createContext(e),this.phases=e.customPhases??wt()}createContext(e){let t=e.withAllPlatforms;return{projectRoot:e.projectRoot,options:{autoMode:e.autoMode,upgrade:e.upgrade,skipPatterns:e.skipPatterns,skipCodeIndex:e.skipCodeIndex,minimal:e.minimal,browserEngine:e.browserEngine,withN8n:e.withN8n,withOpenCode:e.withOpenCode,withKiro:e.withKiro,withCopilot:e.withCopilot||t,withCursor:e.withCursor||t,withCline:e.withCline||t,withKiloCode:e.withKiloCode||t,withRooCode:e.withRooCode||t,withCodex:e.withCodex||t,withRuflo:e.withRuflo,codexGuidance:e.codexGuidance,withWindsurf:e.withWindsurf||t,withContinueDev:e.withContinueDev||t,withAllPlatforms:e.withAllPlatforms,n8nApiConfig:e.n8nApiConfig,wizardAnswers:e.wizardAnswers,noGovernance:e.noGovernance,noMcp:e.noMcp,withMcp:e.withMcp,noClaude:e.noClaude,noStatusLine:e.noStatusLine,memoryBackend:e.memoryBackend},config:{},enhancements:{claudeFlow:!1,ruvector:!1},results:new Map,services:{log:s=>console.log(s),warn:s=>console.warn(s),error:s=>console.error(s)}}}async initialize(){let e=Date.now(),t=[];try{let s=[...this.phases].sort((n,o)=>n.order-o.order);for(let n of s){if(!await n.shouldRun(this.context))continue;console.log(`
|
|
451
495
|
\u{1F4CB} ${n.description}...`);let r=await n.execute(this.context);if(this.context.results.set(n.name,r),t.push({step:n.description,status:r.success?"success":"error",message:r.message||"",durationMs:r.durationMs}),!r.success&&n.critical){if(console.error(`
|
|
452
|
-
\u274C Critical phase failed: ${n.name}`),n.rollback)try{await n.rollback(this.context)}catch(i){console.error(`Rollback failed: ${i}`)}return this.createFailureResult(t,e)}if(r.skipRemaining)break}return this.createSuccessResult(t,e)}catch(s){return t.push({step:"Initialization Failed",status:"error",message:
|
|
496
|
+
\u274C Critical phase failed: ${n.name}`),n.rollback)try{await n.rollback(this.context)}catch(i){console.error(`Rollback failed: ${i}`)}return this.createFailureResult(t,e)}if(r.skipRemaining)break}return this.createSuccessResult(t,e)}catch(s){return t.push({step:"Initialization Failed",status:"error",message:I(s),durationMs:0}),this.createFailureResult(t,e)}}createSuccessResult(e,t){let s=this.context.config,n=this.context.results.get("learning"),o=this.context.results.get("code-intelligence"),r=this.context.results.get("assets"),i=this.context.results.get("hooks"),d=this.context.results.get("mcp"),p=this.context.results.get("claude-md"),l=this.context.results.get("workers");return{success:!0,config:s||ve("unknown",this.context.projectRoot),steps:e,summary:{projectAnalyzed:this.context.results.has("analysis"),configGenerated:this.context.results.has("configuration"),codeIntelligenceIndexed:o?.data?.entries??0,patternsLoaded:n?.data?.patternsLoaded??0,skillsInstalled:r?.data?.skillsInstalled??0,agentsInstalled:r?.data?.agentsInstalled??0,hooksConfigured:i?.data?.configured??!1,mcpConfigured:d?.data?.configured??!1,claudeMdGenerated:p?.data?.generated??!1,workersStarted:l?.data?.workersConfigured??0,codexGuidance:r?.data?.codexGuidance,codexComponents:r?.data?.codexComponents,retiredAssetsRemoved:r?.data?.retiredAssetsRemoved,retiredAssetsKept:r?.data?.retiredAssetsKept},totalDurationMs:Date.now()-t,timestamp:new Date}}createFailureResult(e,t){return{success:!1,config:ve("unknown",this.context.projectRoot),steps:e,summary:{projectAnalyzed:!1,configGenerated:!1,codeIntelligenceIndexed:0,patternsLoaded:0,skillsInstalled:0,agentsInstalled:0,hooksConfigured:!1,mcpConfigured:!1,claudeMdGenerated:!1,workersStarted:0},totalDurationMs:Date.now()-t,timestamp:new Date}}getPhase(e){return this.phases.find(t=>t.name===e)}getPhases(){return[...this.phases]}getContext(){return this.context}};function kn(c){return new De(c)}async function Or(c){return await kn({projectRoot:c,autoMode:!0}).initialize()}function Mr(c){let e=[];e.push(""),e.push("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),e.push("\u2502 AQE v3 Initialization \u2502"),e.push("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(let s of c.steps){let n=s.status==="success"?"\u2713":s.status==="error"?"\u2717":"\u25CB",o=s.step.substring(0,48).padEnd(48);e.push(`\u2502 ${n} ${o} ${String(s.durationMs).padStart(4)}ms \u2502`)}e.push("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"),e.push(`\u2502 Project: ${c.config.project.name.substring(0,45).padEnd(45)} \u2502`),e.push(`\u2502 Type: ${c.config.project.type.padEnd(48)} \u2502`),e.push(`\u2502 Code Intel: ${String(c.summary.codeIntelligenceIndexed).padEnd(43)} \u2502`),e.push(`\u2502 Patterns: ${String(c.summary.patternsLoaded).padEnd(45)} \u2502`),e.push(`\u2502 Skills: ${String(c.summary.skillsInstalled).padEnd(47)} \u2502`),e.push(`\u2502 Agents: ${String(c.summary.agentsInstalled).padEnd(47)} \u2502`),e.push(`\u2502 Workers: ${String(c.summary.workersStarted).padEnd(46)} \u2502`),e.push(`\u2502 Hooks: ${c.summary.hooksConfigured?"Yes":"No".padEnd(48)} \u2502`),e.push(`\u2502 MCP: ${c.summary.mcpConfigured?"Yes":"No".padEnd(50)} \u2502`),e.push(`\u2502 CLAUDE.md: ${c.summary.claudeMdGenerated?"Yes":"No".padEnd(44)} \u2502`),e.push("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let t=c.success?"\u2713 AQE v3 initialized successfully":"\u2717 Initialization failed";return e.push(`\u2502 ${t.padEnd(57)} \u2502`),e.push("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),e.push(""),e.join(`
|
|
453
497
|
`)}export{De as ModularInitOrchestrator,kn as createModularInitOrchestrator,Mr as formatInitResultModular,Or as quickInitModular};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import{a}from"./chunk-G3CZCUPM.js";import"./chunk-VJQYDYAJ.js";import"./chunk-WQ4PYWSW.js";import"./chunk-OY2AHLSF.js";export{a as PatternNullStore};
|
package/dist/cli/chunks/{pattern-usage-recorder-XZTWDI2T.js → pattern-usage-recorder-754YQW7C.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.
|
|
2
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-6TB6YOCZ.js";import"./chunk-OY2AHLSF.js";export{a as recordPatternUsage,b as recordPatternUsageBatch};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import{b as E,e as O}from"./chunk-AI4VYSFS.js";import{a as v,c as w,d as l}from"./chunk-NSHU347M.js";import"./chunk-OY2AHLSF.js";import{Command as x}from"commander";import{resolve as j}from"path";import s from"chalk";import*as C from"node:fs/promises";import{parse as N}from"yaml";O();var D=["eq","neq","gt","gte","lt","lte","contains","exists"],M=["sequential","parallel"],T=/\$\{([^}]+)\}/g,k=class{parse(r,t){try{let n=this.interpolateVariables(r,t??{}),a=N(n);return this.validateAndConvert(a)}catch(n){return l(n instanceof Error?new Error(`YAML parse error: ${n.message}`):new Error(`YAML parse error: ${String(n)}`))}}async loadFromFile(r,t){try{let n=await C.readFile(r,"utf-8");return this.parse(n,t)}catch(n){return l(n instanceof Error?new Error(`Failed to read pipeline file '${r}': ${n.message}`):new Error(`Failed to read pipeline file '${r}': ${String(n)}`))}}interpolateVariables(r,t){return r.replace(T,(n,a)=>{let o=this.resolveVarPath(t,a);return o===void 0?n:String(o)})}validateSchema(r){return this.validateAndConvert(r)}validateAndConvert(r){if(!r||typeof r!="object"||Array.isArray(r))return l(new Error("YAML must parse to an object"));let t=r;if(!t.id||typeof t.id!="string")return l(new Error("Missing or invalid required field 'id' (string)"));if(!t.name||typeof t.name!="string")return l(new Error("Missing or invalid required field 'name' (string)"));if(!t.steps||!Array.isArray(t.steps)||t.steps.length===0)return l(new Error("'steps' must be a non-empty array"));let n=typeof t.description=="string"?t.description:"",a=typeof t.version=="string"?t.version:"1.0.0",o;if(t.defaultMode!==void 0){if(!M.includes(t.defaultMode))return l(new Error(`Invalid defaultMode '${String(t.defaultMode)}'. Must be one of: ${M.join(", ")}`));o=t.defaultMode}let e;if(t.timeout!==void 0){if(typeof t.timeout!="number"||t.timeout<=0)return l(new Error("'timeout' must be a positive number"));e=t.timeout}let i=Array.isArray(t.tags)?t.tags.filter(g=>typeof g=="string"):void 0,u=this.validateSteps(t.steps);if(!u.success)return u;let c;if(t.triggers!==void 0){if(!Array.isArray(t.triggers))return l(new Error("'triggers' must be an array"));let g=this.validateTriggers(t.triggers);if(!g.success)return g;c=g.value}let f=this.detectCircularDependencies(u.value);if(f)return l(new Error(`Circular dependency detected: ${f}`));let d={id:t.id,name:t.name,description:n,version:a,steps:u.value,...o!==void 0&&{defaultMode:o},...e!==void 0&&{timeout:e},...i!==void 0&&{tags:i},...c!==void 0&&{triggers:c}};return w(d)}validateSteps(r){let t=[],n=new Set;for(let a=0;a<r.length;a++){let o=r[a];if(!o||typeof o!="object"||Array.isArray(o))return l(new Error(`Step at index ${a} must be an object`));let e=o;if(!e.id||typeof e.id!="string")return l(new Error(`Step at index ${a}: missing or invalid 'id' (string)`));if(n.has(e.id))return l(new Error(`Duplicate step ID: ${e.id}`));if(n.add(e.id),!e.name||typeof e.name!="string")return l(new Error(`Step '${e.id}': missing or invalid 'name' (string)`));if(!e.domain||typeof e.domain!="string")return l(new Error(`Step '${e.id}': missing or invalid 'domain' (string)`));if(!v.includes(e.domain))return l(new Error(`Step '${e.id}': invalid domain '${e.domain}'. Must be one of: ${v.join(", ")}`));if(!e.action||typeof e.action!="string")return l(new Error(`Step '${e.id}': missing or invalid 'action' (string)`));let i=this.validateStringRecord(e.inputMapping,`Step '${e.id}'.inputMapping`);if(i!==void 0&&i instanceof Error)return l(i);let u=this.validateStringRecord(e.outputMapping,`Step '${e.id}'.outputMapping`);if(u!==void 0&&u instanceof Error)return l(u);let c;if(e.dependsOn!==void 0){if(!Array.isArray(e.dependsOn)||!e.dependsOn.every(p=>typeof p=="string"))return l(new Error(`Step '${e.id}': 'dependsOn' must be an array of strings`));for(let p of e.dependsOn)if(!r.some(W=>W.id===p))return l(new Error(`Step '${e.id}' depends on unknown step: ${p}`));c=e.dependsOn}let f;if(e.condition!==void 0){let p=this.validateCondition(e.condition,`Step '${e.id}'.condition`);if(!p.success)return p;f=p.value}let d;if(e.skipCondition!==void 0){let p=this.validateCondition(e.skipCondition,`Step '${e.id}'.skipCondition`);if(!p.success)return p;d=p.value}let g;if(e.timeout!==void 0){if(typeof e.timeout!="number"||e.timeout<=0)return l(new Error(`Step '${e.id}': 'timeout' must be a positive number`));g=e.timeout}let $;if(e.retry!==void 0){let p=this.validateRetry(e.retry,e.id);if(!p.success)return p;$=p.value}let b;if(e.rollback!==void 0){let p=this.validateRollback(e.rollback,e.id);if(!p.success)return p;b=p.value}let R=typeof e.continueOnFailure=="boolean"?e.continueOnFailure:void 0,S;if(e.approval!==void 0){let p=this.validateApproval(e.approval,e.id);if(!p.success)return p;S=p.value}let A={id:e.id,name:e.name,domain:e.domain,action:e.action,...i!==void 0&&{inputMapping:i},...u!==void 0&&{outputMapping:u},...c!==void 0&&{dependsOn:c},...f!==void 0&&{condition:f},...d!==void 0&&{skipCondition:d},...g!==void 0&&{timeout:g},...$!==void 0&&{retry:$},...b!==void 0&&{rollback:b},...R!==void 0&&{continueOnFailure:R},...S!==void 0&&{approval:S}};t.push(A)}return w(t)}validateCondition(r,t){if(!r||typeof r!="object"||Array.isArray(r))return l(new Error(`${t}: must be an object with path, operator, value`));let n=r;return!n.path||typeof n.path!="string"?l(new Error(`${t}: missing or invalid 'path' (string)`)):!n.operator||typeof n.operator!="string"?l(new Error(`${t}: missing or invalid 'operator' (string)`)):D.includes(n.operator)?n.value===void 0?l(new Error(`${t}: missing 'value'`)):w({path:n.path,operator:n.operator,value:n.value}):l(new Error(`${t}: invalid operator '${n.operator}'. Must be one of: ${D.join(", ")}`))}validateTriggers(r){let t=[];for(let n=0;n<r.length;n++){let a=r[n];if(!a||typeof a!="object"||Array.isArray(a))return l(new Error(`Trigger at index ${n} must be an object`));let o=a;if(!o.eventType||typeof o.eventType!="string")return l(new Error(`Trigger at index ${n}: missing or invalid 'eventType' (string)`));let e;if(o.sourceDomain!==void 0){if(typeof o.sourceDomain!="string"||!v.includes(o.sourceDomain))return l(new Error(`Trigger at index ${n}: invalid 'sourceDomain' '${String(o.sourceDomain)}'`));e=o.sourceDomain}let i;if(o.condition!==void 0){let c=this.validateCondition(o.condition,`Trigger at index ${n}.condition`);if(!c.success)return c;i=c.value}let u=this.validateStringRecord(o.inputMapping,`Trigger at index ${n}.inputMapping`);if(u!==void 0&&u instanceof Error)return l(u);t.push({eventType:o.eventType,...e!==void 0&&{sourceDomain:e},...i!==void 0&&{condition:i},...u!==void 0&&{inputMapping:u}})}return w(t)}validateRetry(r,t){if(!r||typeof r!="object"||Array.isArray(r))return l(new Error(`Step '${t}': 'retry' must be an object`));let n=r;return typeof n.maxAttempts!="number"||n.maxAttempts<1?l(new Error(`Step '${t}': retry.maxAttempts must be a positive integer`)):typeof n.backoffMs!="number"||n.backoffMs<0?l(new Error(`Step '${t}': retry.backoffMs must be a non-negative number`)):w({maxAttempts:n.maxAttempts,backoffMs:n.backoffMs,...typeof n.backoffMultiplier=="number"&&{backoffMultiplier:n.backoffMultiplier}})}validateRollback(r,t){if(!r||typeof r!="object"||Array.isArray(r))return l(new Error(`Step '${t}': 'rollback' must be an object`));let n=r;return!n.domain||typeof n.domain!="string"||!v.includes(n.domain)?l(new Error(`Step '${t}': rollback.domain is invalid or missing`)):!n.action||typeof n.action!="string"?l(new Error(`Step '${t}': rollback.action is required (string)`)):w({domain:n.domain,action:n.action,...n.input!==void 0&&typeof n.input=="object"&&{input:n.input}})}validateApproval(r,t){if(typeof r=="boolean")return w(r);if(!r||typeof r!="object"||Array.isArray(r))return l(new Error(`Step '${t}': 'approval' must be a boolean or object`));let n=r,a={};if(n.expiresAfter!==void 0&&n.autoApproveAfter!==void 0)return l(new Error(`Step '${t}': set only one approval expiry field`));let o=n.expiresAfter??n.autoApproveAfter;if(o!==void 0){if(typeof o!="number"||!Number.isSafeInteger(o)||o<0||o>2147483647)return l(new Error(`Step '${t}': approval expiry must be an integer from 0 to 2147483647 milliseconds`));a.expiresAfter=o}if(n.message!==void 0){if(typeof n.message!="string")return l(new Error(`Step '${t}': approval.message must be a string`));a.message=n.message}return w(a)}validateStringRecord(r,t){if(r==null)return;if(typeof r!="object"||Array.isArray(r))return new Error(`${t}: must be an object with string values`);let n=r;for(let[a,o]of Object.entries(n))if(typeof o!="string")return new Error(`${t}: value for key '${a}' must be a string, got ${typeof o}`);return n}resolveVarPath(r,t){if(Object.hasOwn(r,t))return r[t];let n=t.split("."),a=r;for(let o of n){if(a==null||typeof a!="object")return;a=E(a,o)}return a}detectCircularDependencies(r){let t=new Set,n=new Set,a=(o,e)=>{if(n.has(o))return[...e,o].join(" -> ");if(t.has(o))return null;t.add(o),n.add(o);let i=r.find(u=>u.id===o);if(i?.dependsOn)for(let u of i.dependsOn){let c=a(u,[...e,o]);if(c)return c}return n.delete(o),null};for(let o of r){let e=a(o.id,[]);if(e)return e}return null}};function h(m){let r={};for(let t of m){let n=t.indexOf("=");if(n===-1)r[t]=!0;else{let a=t.slice(0,n),o=t.slice(n+1);o==="true"?r[a]=!0:o==="false"?r[a]=!1:!isNaN(Number(o))&&o!==""?r[a]=Number(o):r[a]=o}}return r}function L(m){return h(m)}function y(m){return m.workflowOrchestrator}function H(m,r,t){let n=new k,a=new x("pipeline").description("Manage YAML deterministic pipelines (Imp-9)");return a.command("load <file>").description("Load and register a pipeline from a YAML file").option("--vars <entries...>","Variable substitutions (key=value)").action(async(o,e)=>{if(!await t())return;let i=y(m);if(!i){console.error(s.red(' Workflow orchestrator not available. Run "aqe fleet init" first.')),await r(1);return}let u=j(o),c=e.vars?h(e.vars):void 0;console.log(s.blue(`
|
|
3
|
+
Loading pipeline from: ${o}
|
|
4
|
+
`));let f=await n.loadFromFile(u,c);if(!f.success){console.error(s.red(` Parse error: ${f.error.message}`)),await r(1);return}let d=f.value,g=i.registerWorkflow(d);if(!g.success){console.error(s.red(` Registration error: ${g.error.message}`)),await r(1);return}console.log(s.green(" Pipeline loaded successfully.")),console.log(` ID: ${s.cyan(d.id)}`),console.log(` Name: ${s.cyan(d.name)}`),console.log(` Steps: ${s.cyan(d.steps.length)}`),console.log(` Version: ${s.cyan(d.version)}`),d.tags?.length&&console.log(` Tags: ${s.cyan(d.tags.join(", "))}`),console.log(""),await r(0)}),a.command("validate <file>").description("Validate a YAML pipeline without registering it").option("--vars <entries...>","Variable substitutions (key=value)").action(async(o,e)=>{let i=j(o),u=e.vars?h(e.vars):void 0;console.log(s.blue(`
|
|
5
|
+
Validating pipeline: ${o}
|
|
6
|
+
`));let c=await n.loadFromFile(i,u);if(!c.success){console.log(s.red(` Invalid: ${c.error.message}`)),await r(1);return}let f=c.value;console.log(s.green(" Valid pipeline.")),console.log(` ID: ${s.cyan(f.id)}`),console.log(` Name: ${s.cyan(f.name)}`),console.log(` Steps: ${s.cyan(f.steps.length)}`),console.log(""),await r(0)}),a.command("run <pipelineId>").description("Execute a registered pipeline").option("--input <entries...>","Input parameters (key=value)").option("--wait","Wait for execution to complete").action(async(o,e)=>{if(!await t())return;let i=y(m);if(!i){console.error(s.red(' Workflow orchestrator not available. Run "aqe fleet init" first.')),await r(1);return}let u=e.input?L(e.input):{};console.log(s.blue(`
|
|
7
|
+
Running pipeline: ${o}
|
|
8
|
+
`));let c=await i.executeWorkflow(o,u);if(!c.success){console.error(s.red(` Failed: ${c.error.message}`)),await r(1);return}let f=c.value;if(console.log(s.green(" Pipeline started.")),console.log(` Execution ID: ${s.cyan(f)}`),e.wait){console.log(s.gray(" Waiting for completion..."));let d=i.getWorkflowStatus(f);for(;d&&(d.status==="running"||d.status==="paused");)await new Promise(g=>setTimeout(g,500)),d=i.getWorkflowStatus(f);if(d){let g=d.status==="completed"?s.green:s.red;console.log(` Status: ${g(d.status)}`),d.duration&&console.log(` Duration: ${s.cyan(`${d.duration}ms`)}`),d.error&&console.log(` Error: ${s.red(d.error)}`)}console.log(""),await r(d?.status==="completed"?0:1);return}console.log(""),await r(0)}),a.command("list").description("List all registered pipelines").action(async()=>{if(!await t())return;let o=y(m);if(!o){console.error(s.red(' Workflow orchestrator not available. Run "aqe fleet init" first.')),await r(1);return}let e=o.listWorkflows();if(console.log(s.blue(`
|
|
9
|
+
Registered Pipelines (${e.length})
|
|
10
|
+
`)),e.length===0)console.log(s.gray(" No pipelines registered."));else for(let i of e)console.log(` ${s.cyan(i.id)} \u2014 ${i.name} (${i.stepCount} steps, v${i.version})`),i.tags?.length&&console.log(` Tags: ${s.gray(i.tags.join(", "))}`);console.log(""),await r(0)}),a.command("status <executionId>").description("Show the status of a pipeline execution").action(async o=>{if(!await t())return;let e=y(m);if(!e){console.error(s.red(' Workflow orchestrator not available. Run "aqe fleet init" first.')),await r(1);return}let i=e.getWorkflowStatus(o);if(!i){console.error(s.red(` Execution not found: ${o}`)),await r(1);return}let u=i.status==="completed"?s.green:i.status==="failed"?s.red:i.status==="running"?s.yellow:s.gray;console.log(s.blue(`
|
|
11
|
+
Pipeline Execution Status
|
|
12
|
+
`)),console.log(` Execution: ${s.cyan(o)}`),console.log(` Pipeline: ${s.cyan(i.workflowName)} (${i.workflowId})`),console.log(` Status: ${u(i.status)}`),console.log(` Progress: ${s.cyan(`${i.progress}%`)}`),console.log(` Completed: ${s.cyan(i.completedSteps.join(", ")||"none")}`),i.failedSteps.length>0&&console.log(` Failed: ${s.red(i.failedSteps.join(", "))}`),i.skippedSteps.length>0&&console.log(` Skipped: ${s.gray(i.skippedSteps.join(", "))}`),i.currentSteps.length>0&&console.log(` Running: ${s.yellow(i.currentSteps.join(", "))}`),i.duration&&console.log(` Duration: ${s.cyan(`${i.duration}ms`)}`),i.error&&console.log(` Error: ${s.red(i.error)}`);for(let c of i.parallelCompositionReceipts??[]){console.log(` Composition ${c.groupId}: ${c.disposition}`);for(let f of c.conflicts)console.log(` ${f.kind}: ${f.stepA}.${f.pathA} / ${f.stepB}.${f.pathB}`)}console.log(""),await r(0)}),a.command("approve <executionId> <stepId>").description("Approve a step that is awaiting approval").action(async(o,e)=>{if(!await t())return;let i=y(m);if(!i){console.error(s.red(" Workflow orchestrator not available.")),await r(1);return}if(i.approveStep(o,e))console.log(s.green(`
|
|
13
|
+
Step '${e}' approved.
|
|
14
|
+
`));else{console.error(s.red(`
|
|
15
|
+
No pending approval found for step '${e}' in execution '${o}'.
|
|
16
|
+
`)),await r(1);return}await r(0)}),a.command("reject <executionId> <stepId>").description("Reject a step that is awaiting approval").option("--reason <reason>","Rejection reason").action(async(o,e,i)=>{if(!await t())return;let u=y(m);if(!u){console.error(s.red(" Workflow orchestrator not available.")),await r(1);return}if(u.rejectStep(o,e,i.reason))console.log(s.green(`
|
|
17
|
+
Step '${e}' rejected.`)),i.reason&&console.log(` Reason: ${s.gray(i.reason)}`),console.log("");else{console.error(s.red(`
|
|
18
|
+
No pending approval found for step '${e}' in execution '${o}'.
|
|
19
|
+
`)),await r(1);return}await r(0)}),a}export{H as createPipelineCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.
|
|
2
|
-
import{a as R}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import{a as R}from"./chunk-V2RSNVMW.js";import{a as y}from"./chunk-OY3NJNP2.js";import{a as E,e as A}from"./chunk-GHBNRMSJ.js";import"./chunk-OY2AHLSF.js";import{Command as O,Option as I}from"commander";import o from"chalk";import{existsSync as p,readFileSync as $}from"node:fs";import g from"node:path";A();var k=Object.keys(y),M={copilot:()=>import("./copilot-installer-SVVFY3S2.js"),cursor:()=>import("./cursor-installer-UPETT57E.js"),cline:()=>import("./cline-installer-WRRT7BGQ.js"),kilocode:()=>import("./kilocode-installer-OPD7JBRL.js"),roocode:()=>import("./roocode-installer-3BYEBTQ7.js"),codex:()=>import("./codex-installer-YTRHNDWR.js"),windsurf:()=>import("./windsurf-installer-QZPWSH37.js"),continuedev:()=>import("./continuedev-installer-IIDR66LB.js")};function j(n){return k.includes(n)}function V(n,e){let t=g.join(n,e.configPath),s=g.join(n,e.rulesPath);return{configExists:p(t),rulesExists:p(s)}}function G(n,e){try{let t=$(n,"utf-8");return e==="json"?{valid:!0,data:JSON.parse(t)}:e==="toml"?t.trim().length===0?{valid:!1,error:"File is empty"}:{valid:!0}:e==="yaml"?t.trim().length===0?{valid:!1,error:"File is empty"}:{valid:!0}:{valid:!0}}catch(t){return{valid:!1,error:E(t)}}}function D(n,e){try{return $(n,"utf-8").includes("agentic-qe")}catch{return!1}}function T(n){let e="<!-- BEGIN AGENTIC-QE CODEX -->",t="<!-- END AGENTIC-QE CODEX -->",s=n.match(/<!-- BEGIN AGENTIC-QE CODEX -->[\s\S]*?<!-- END AGENTIC-QE CODEX -->/g)||[];return s.length===0?n.includes(e)||n.includes(t)?"malformed":"none":s[0].includes("Discover AQE tools and skills from their live schemas")?"compact":"full"}function q(n,e,t={}){let s=y[e],r=[],i=(l,m,h)=>{r.push({label:l,passed:m,detail:h})},d=t.expectMcp!==!1,u=g.join(n,s.configPath),c=p(u);if(d?i("Config file",c,c?s.configPath:`missing: ${s.configPath}`):i("MCP configuration",!0,c?`${s.configPath} preserved`:"intentionally disabled"),c&&d){let l=G(u,s.configFormat);i("Config syntax",l.valid,l.valid?`valid ${s.configFormat.toUpperCase()}`:l.error||"invalid configuration"),i("AQE MCP entry",D(u,s),"agentic-qe server entry")}let P=g.join(n,s.rulesPath),a=p(P);if(e==="codex"){let l=t.guidancePolicy??"full",m=a?T($(P,"utf-8")):"none";i("Behavioral rules",l==="none"||a,l==="none"?"intentionally disabled":a?s.rulesPath:`missing: ${s.rulesPath}`),i("Codex guidance",m===l,`selected=${l}, detected=${m}`)}else i("Behavioral rules",a,a?s.rulesPath:`missing: ${s.rulesPath}`);if(e==="codex"){let l=g.join(n,".codex","hooks.json"),m=[],h=!1;if(p(l))try{let f=JSON.parse($(l,"utf-8"));h=!!(f.hooks&&typeof f.hooks=="object"),m=JSON.stringify(f).match(/\.codex\/hooks\/[a-z0-9-]+\.cjs/gi)||[]}catch{h=!1}i("Lifecycle hooks",h,h?".codex/hooks.json is valid":"missing or invalid .codex/hooks.json");let x=[...new Set(m.map(f=>f.split("/").pop()))],S=x.length>0&&x.every(f=>p(g.join(n,".codex","hooks",f)));i("Hook adapters",S,x.length>0?`${x.length} referenced adapter(s)`:"no Codex hook adapters referenced");let w=["aqe-runtime.cjs",...x.includes("ruflo-codex-hook.cjs")?["ruflo-runtime.cjs"]:[]],C=w.filter(f=>!p(g.join(n,".codex","hooks",f)));i("Hook runtimes",C.length===0,C.length===0?`${w.length} runtime(s) present`:`missing: ${C.join(", ")}`);let N=g.join(n,".agents","skills"),v=R({includeRuflo:t.expectRuflo===!0}),b=v.filter(f=>!p(g.join(N,f.name,"SKILL.md"))).map(f=>f.name);i("QE skills",b.length===0,b.length===0?`${v.length} required AQE skill(s) present`:`missing: ${b.join(", ")}`)}return{platform:e,passed:r.every(l=>l.passed),checks:r}}function F(){let n=new O("platform").description("Manage coding agent platform configurations");return n.command("list").description("List all supported platforms and their configuration status").action(async()=>{let e=process.cwd();console.log(""),console.log(o.bold.blue(" Supported Platforms")),console.log(o.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");let t=18,s=36,r=14;console.log(o.gray(` ${"Platform".padEnd(t)}${"Config Path".padEnd(s)}${"Status".padEnd(r)}`)),console.log(o.gray(` ${"\u2500".repeat(t+s+r)}`));for(let i of k){let d=y[i],{configExists:u,rulesExists:c}=V(e,d),l=u&&c?o.green("configured"):u||c?o.yellow("partial"):o.gray("not configured");console.log(` ${o.white(d.name.padEnd(t))}${o.gray(d.configPath.padEnd(s))}${l}`)}console.log(""),console.log(o.gray(' Use "aqe platform setup <name>" to configure a platform')),console.log(o.gray(' Use "aqe init --with-all-platforms" to configure all at once')),console.log("")}),n.command("setup <name>").description("Set up a specific platform configuration").option("--overwrite","Overwrite existing configuration files").option("--with-ruflo","Add optional Ruflo guidance and lifecycle hooks (Codex only)").addOption(new I("--codex-guidance <mode>","Codex AGENTS.md guidance policy").choices(["full","compact","none"]).default("full")).action(async(e,t)=>{let s=process.cwd();j(e)||(console.log(""),console.log(o.red(` Unknown platform: ${e}`)),console.log(o.gray(` Valid platforms: ${k.join(", ")}`)),console.log(""),process.exit(1));let r=y[e];console.log(""),console.log(o.bold.blue(` Setting up ${r.name}`)),console.log(o.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");try{let i=await M[e](),u=[`create${e.charAt(0).toUpperCase()}${e.slice(1).replace(/([a-z])([A-Z])/g,"$1$2")}Installer`,`create${L(e)}Installer`],c;for(let l of u)if(typeof i[l]=="function"){c=i[l];break}if(!c){for(let l of Object.keys(i))if(l.startsWith("create")&&l.endsWith("Installer")&&typeof i[l]=="function"){c=i[l];break}}c||(console.log(o.red(` Could not find installer factory for ${e}`)),process.exit(1));let a=await c({projectRoot:s,overwrite:t.overwrite,...e==="codex"?{includeRuflo:t.withRuflo,guidancePolicy:t.codexGuidance}:{}}).install();if(a.success)console.log(o.green(` ${r.name} configured successfully`)),a.mcpConfigured&&console.log(o.gray(` MCP config: ${r.configPath}`)),(a.rulesInstalled||a.agentsMdInstalled)&&console.log(o.gray(` Rules: ${r.rulesPath}`)),e==="codex"&&(a.hooksConfigured&&console.log(o.gray(" Hooks: .codex/hooks.json")),console.log(o.gray(` QE skills: ${a.skillsInstalled??0} installed`)),console.log(t.withRuflo?o.green(" Ruflo integration: enabled"):o.gray(" Ruflo integration: not installed (opt in with --with-ruflo)")));else{if(console.log(o.red(` ${r.name} setup failed`)),a.errors)for(let l of a.errors)console.log(o.red(` ${l}`));process.exit(1)}}catch(i){console.log(o.red(` Failed to set up ${r.name}: ${E(i)}`)),process.exit(1)}console.log("")}),n.command("verify <name>").description("Verify a platform configuration is correct").option("--no-mcp","Verify a deliberately MCP-free platform installation").option("--with-ruflo","Require optional Ruflo guidance and lifecycle hooks (Codex only)").addOption(new I("--codex-guidance <mode>","Expected Codex AGENTS.md guidance policy").choices(["full","compact","none"]).default("full")).action(async(e,t)=>{let s=process.cwd();j(e)||(console.log(""),console.log(o.red(` Unknown platform: ${e}`)),console.log(o.gray(` Valid platforms: ${k.join(", ")}`)),console.log(""),process.exit(1));let r=y[e];console.log(""),console.log(o.bold.blue(` Verifying ${r.name}`)),console.log(o.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");let i=q(s,e,{expectMcp:t.mcp!==!1,expectRuflo:t.withRuflo,guidancePolicy:t.codexGuidance});for(let d of i.checks){let u=` [${d.passed?"pass":"fail"}] ${d.label}: ${d.detail}`;console.log(d.passed?o.green(u):o.red(u))}console.log(""),i.passed?console.log(o.green(` ${r.name} configuration is valid`)):(console.log(o.yellow(` ${r.name} configuration has issues`)),console.log(o.gray(` Run "aqe platform setup ${e}" to fix`)),process.exitCode=1),console.log("")}),n}function L(n){return n.charAt(0).toUpperCase()+n.slice(1)}var H=F;export{F as createPlatformCommand,H as default,q as verifyPlatformConfiguration};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.
|
|
2
|
-
import{a as p,b as y,c as v}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import{a as p,b as y,c as v}from"./chunk-SY2IB442.js";import{b as c,d}from"./chunk-EWFECZ2U.js";import"./chunk-VWNFAW2M.js";import"./chunk-OY2AHLSF.js";import{Command as j}from"commander";import*as h from"path";import{execFileSync as P}from"child_process";d();var w=/^[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+$/,E=/^[a-zA-Z0-9._\-/]+$/;function S(i,n){if(!w.test(i))throw new Error(`Invalid GitHub repo "${i}": must be owner/repo with alphanumeric, dots, hyphens, underscores only`);if(n&&!E.test(n))throw new Error(`Invalid tag "${n}": must be alphanumeric with dots, hyphens, underscores, slashes only`)}var g=class{type="github";cacheDir;constructor(n){this.cacheDir=n??c("plugins-cache")}async resolve(n){let e=await this.getPluginPath(n),t=h.join(e,"qe-plugin.json"),o=await import("fs");if(!o.existsSync(t))throw new Error(`No qe-plugin.json found in ${n}`);let r=o.readFileSync(t,"utf-8");return p(r)}async getPluginPath(n){let{repo:e,tag:t}=this.parseLocation(n);S(e,t);let o=h.join(this.cacheDir,e.replace("/","__"),t||"latest"),r=await import("fs");if(r.existsSync(o))return o;r.mkdirSync(o,{recursive:!0});try{let a=`https://github.com/${e}.git`,l=["clone","--depth","1"];t&&l.push("--branch",t),l.push(a,o),P("git",l,{stdio:"pipe",timeout:6e4})}catch(a){throw r.rmSync(o,{recursive:!0,force:!0}),new Error(`Failed to clone ${e}: ${a instanceof Error?a.message:String(a)}`)}return o}parseLocation(n){let[e,t]=n.split("@");if(!e||!e.includes("/"))throw new Error(`Invalid GitHub location "${n}". Expected "owner/repo" or "owner/repo@tag"`);return{repo:e,tag:t}}};import*as u from"path";import*as s from"fs";import{execFileSync as $}from"child_process";d();var x=/^(@[a-zA-Z0-9._-]+\/)?[a-zA-Z0-9._-]+$/,_=/^[a-zA-Z0-9._\-+]+$/;function I(i,n){if(!x.test(i))throw new Error(`Invalid npm package name "${i}": contains unsafe characters`);if(n&&!_.test(n))throw new Error(`Invalid version "${n}": contains unsafe characters`)}var m=class{type="npm";cacheDir;constructor(n){this.cacheDir=n??c("plugins-cache","npm")}async resolve(n){let e=await this.getPluginPath(n),t=u.join(e,"qe-plugin.json");if(!s.existsSync(t))throw new Error(`No qe-plugin.json found in npm package ${n}`);let o=s.readFileSync(t,"utf-8");return p(o)}async getPluginPath(n){let{name:e,version:t}=this.parseLocation(n);I(e,t);let o=e.replace(/\//g,"__"),r=u.join(this.cacheDir,`${o}@${t||"latest"}`);if(s.existsSync(r)&&s.readdirSync(r).length>0)return r;s.mkdirSync(r,{recursive:!0});try{let a=t?`${e}@${t}`:e,l=$("npm",["pack",a,"--pack-destination",r],{stdio:"pipe",timeout:6e4}).toString().trim(),f=u.join(r,l);$("tar",["-xzf",f,"-C",r,"--strip-components=1"],{stdio:"pipe"}),s.existsSync(f)&&s.unlinkSync(f)}catch(a){throw s.rmSync(r,{recursive:!0,force:!0}),new Error(`Failed to fetch npm package ${n}: ${a instanceof Error?a.message:String(a)}`)}return r}parseLocation(n){let e=n.lastIndexOf("@");return e>0?{name:n.slice(0,e),version:n.slice(e+1)||void 0}:{name:n}}};function Z(){let i=b(),n=new j("plugin").description("Manage external QE domain plugins").addHelpText("after",`
|
|
3
3
|
Examples:
|
|
4
4
|
aqe plugin install ./my-plugin Install from local directory
|
|
5
5
|
aqe plugin install owner/repo --source github Install from GitHub
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.15.10");process.exit(0)}
|
|
2
|
+
import"./chunk-OY2AHLSF.js";import{createRequire as t}from"module";var n=t(import.meta.url),e=n("prime-radiant-advanced-wasm"),r=e,{RuvectorLayer:i,TensorCompress:a,differentiableSearch:c,hierarchicalForward:p,getCompressionLevel:s,init:d,FlashAttention:l,DotProductAttention:m,MultiHeadAttention:u,HyperbolicAttention:A,LinearAttention:f,MoEAttention:h,SonaEngine:_,pipeline:v}=e||{};export{m as DotProductAttention,l as FlashAttention,A as HyperbolicAttention,f as LinearAttention,h as MoEAttention,u as MultiHeadAttention,i as RuvectorLayer,_ as SonaEngine,a as TensorCompress,r as default,c as differentiableSearch,s as getCompressionLevel,p as hierarchicalForward,d as init,v as pipeline};
|