agentic-qe 3.9.3 → 3.9.4
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/CHANGELOG.md +20 -0
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-5ODIX6ZG.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-W6GGSB43.js → agent-booster-wasm-MGGEPROV.js} +2 -2
- package/dist/cli/chunks/{agent-handler-3IRN5WBS.js → agent-handler-AFHYFQXV.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-SO63CIPJ.js → agent-memory-branch-SQ3KDIG6.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-PWGRS6KK.js +2 -0
- package/dist/cli/chunks/{audit-TONGHW5H.js → audit-SM5CK2K5.js} +2 -2
- package/dist/cli/chunks/base-TJGIYR7L.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-OK5DP5FC.js → better-sqlite3-UGOYRNXI.js} +2 -2
- package/dist/cli/chunks/{brain-handler-MC2S3UHL.js → brain-handler-SKXTB63O.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-PRKJKPAE.js → branch-enumerator-77NSOLNK.js} +2 -2
- package/dist/cli/chunks/{browser-WTMMBSU3.js → browser-MCE5DWPV.js} +2 -2
- package/dist/cli/chunks/browser-workflow-GUR7RLFP.js +2 -0
- package/dist/cli/chunks/{chunk-TTEXJW2U.js → chunk-27FNBMUC.js} +2 -2
- package/dist/cli/chunks/{chunk-LRE4A464.js → chunk-27P4VTCY.js} +2 -2
- package/dist/cli/chunks/{chunk-HJEWQD2B.js → chunk-2JLKOGNU.js} +1 -1
- package/dist/cli/chunks/{chunk-QB2LOM5O.js → chunk-2MQMXI7C.js} +2 -2
- package/dist/cli/chunks/{chunk-PKIBG7OJ.js → chunk-3MN7E6HY.js} +2 -2
- package/dist/cli/chunks/{chunk-GGQCAQM4.js → chunk-3MRFR534.js} +2 -2
- package/dist/cli/chunks/{chunk-2CPNZVGL.js → chunk-3RHIPCBG.js} +2 -2
- package/dist/cli/chunks/{chunk-53YFAERL.js → chunk-3SPYUOSS.js} +2 -2
- package/dist/cli/chunks/{chunk-DGRO6LSI.js → chunk-4BQTEPAD.js} +2 -2
- package/dist/cli/chunks/{chunk-CU36MONI.js → chunk-4GJAYXB7.js} +2 -2
- package/dist/cli/chunks/{chunk-FIQ62VOQ.js → chunk-4TZTGYBQ.js} +1 -1
- package/dist/cli/chunks/{chunk-P6OZKWNK.js → chunk-53M65YFH.js} +2 -2
- package/dist/cli/chunks/{chunk-66RCUQCI.js → chunk-54OLXGXJ.js} +2 -2
- package/dist/cli/chunks/{chunk-M3EFT3XR.js → chunk-5UKAEBKC.js} +3 -3
- package/dist/cli/chunks/{chunk-ITFNPXZL.js → chunk-72EC26AS.js} +2 -2
- package/dist/cli/chunks/{chunk-JI5MNJSU.js → chunk-7EL65Y27.js} +1 -1
- package/dist/cli/chunks/{chunk-WLK5UVRJ.js → chunk-7FJIIB4H.js} +1 -1
- package/dist/cli/chunks/{chunk-COIFERYS.js → chunk-7ST2YENJ.js} +2 -2
- package/dist/cli/chunks/{chunk-RRELDHZY.js → chunk-7ZXNJT4Q.js} +2 -2
- package/dist/cli/chunks/{chunk-SJLDTV5B.js → chunk-A6ZBQCYB.js} +2 -2
- package/dist/cli/chunks/{chunk-S23UV7FV.js → chunk-B252DDC5.js} +1 -1
- package/dist/cli/chunks/{chunk-WIY3V5VQ.js → chunk-B6HLXE3D.js} +9 -9
- package/dist/cli/chunks/{chunk-JZXSKPQB.js → chunk-BH5XPYA3.js} +2 -2
- package/dist/cli/chunks/{chunk-5B2KXDWF.js → chunk-BZ22GI4E.js} +1 -1
- package/dist/cli/chunks/{chunk-7ASGPJWU.js → chunk-C2HGOUEB.js} +1 -1
- package/dist/cli/chunks/{chunk-YTBE2MEW.js → chunk-C3BXT3ZC.js} +4 -4
- package/dist/cli/chunks/{chunk-MNZ2HHKI.js → chunk-C567IO5M.js} +2 -2
- package/dist/cli/chunks/{chunk-XJII5WMD.js → chunk-COIRFVFO.js} +1 -1
- package/dist/cli/chunks/{chunk-FR26EINS.js → chunk-DHJJJ24V.js} +2 -2
- package/dist/cli/chunks/{chunk-NZLJWXXM.js → chunk-DLMEBVLF.js} +2 -2
- package/dist/cli/chunks/{chunk-2GZ4EG3L.js → chunk-DZHGYZJP.js} +1 -1
- package/dist/cli/chunks/{chunk-DTNXHRUF.js → chunk-EEARIB4C.js} +1 -1
- package/dist/cli/chunks/{chunk-ERWNQ6NC.js → chunk-EFD2J6GG.js} +3 -3
- package/dist/cli/chunks/{chunk-T4RR4YMH.js → chunk-EHGTXIT7.js} +1 -1
- package/dist/cli/chunks/{chunk-LHDR6E6F.js → chunk-ENKPW6MA.js} +2 -2
- package/dist/cli/chunks/{chunk-AS5WPUDR.js → chunk-EZTUUOVI.js} +1 -1
- package/dist/cli/chunks/{chunk-OXR2FPHK.js → chunk-F6AU2MAZ.js} +2 -2
- package/dist/cli/chunks/{chunk-LQDAH47F.js → chunk-G6RTCJFY.js} +2 -2
- package/dist/cli/chunks/{chunk-EVIXQR4O.js → chunk-G72E5DL3.js} +1 -1
- package/dist/cli/chunks/{chunk-WDTFG5AG.js → chunk-GAG2P4I2.js} +1 -1
- package/dist/cli/chunks/{chunk-X5C73DW5.js → chunk-GQ7DCSKS.js} +2 -2
- package/dist/cli/chunks/{chunk-GBLX5XOH.js → chunk-GSKZL36U.js} +2 -2
- package/dist/cli/chunks/{chunk-ZVMAE5JD.js → chunk-GT35EJKR.js} +1 -1
- package/dist/cli/chunks/{chunk-3Q5FG6M3.js → chunk-GVFHRHXC.js} +2 -2
- package/dist/cli/chunks/{chunk-TSS6LXJ6.js → chunk-GX7MEHQ2.js} +1 -1
- package/dist/cli/chunks/{chunk-JTIWAUWW.js → chunk-HKTNFHWI.js} +1 -1
- package/dist/cli/chunks/{chunk-2IU6WK32.js → chunk-IGJ472XJ.js} +2 -2
- package/dist/cli/chunks/{chunk-5UMSMRJC.js → chunk-IQE6GOH6.js} +2 -2
- package/dist/cli/chunks/{chunk-O2O5RO4H.js → chunk-J222JLZ6.js} +2 -2
- package/dist/cli/chunks/{chunk-F6O5XLIE.js → chunk-J6KBI5NW.js} +1 -1
- package/dist/cli/chunks/{chunk-PRIWFNVU.js → chunk-J72Q6ERO.js} +2 -2
- package/dist/cli/chunks/{chunk-WAWCNUIJ.js → chunk-JMBUIVVE.js} +1 -1
- package/dist/cli/chunks/{chunk-OBOCKH47.js → chunk-JVUNZBKX.js} +2 -2
- package/dist/cli/chunks/{chunk-TPFE3BAI.js → chunk-KELYPHMV.js} +2 -2
- package/dist/cli/chunks/{chunk-LMN72H3V.js → chunk-KSMQH2CV.js} +1 -1
- package/dist/cli/chunks/{chunk-Z4V3XV7E.js → chunk-LH3ZL2OK.js} +2 -2
- package/dist/cli/chunks/{chunk-AWSYGQEB.js → chunk-LW3DV23G.js} +2 -2
- package/dist/cli/chunks/chunk-MDFXPCBO.js +2 -0
- package/dist/cli/chunks/{chunk-GGEVILIS.js → chunk-MGRE767N.js} +2 -2
- package/dist/cli/chunks/{chunk-OJKGRB6D.js → chunk-MN2MYLVW.js} +2 -2
- package/dist/cli/chunks/{chunk-J7QGH6PG.js → chunk-MR5I6UR2.js} +2 -2
- package/dist/cli/chunks/{chunk-TUHIFT65.js → chunk-MS6LTE4L.js} +2 -2
- package/dist/cli/chunks/{chunk-SVXIAQRW.js → chunk-MUX762XZ.js} +2 -2
- package/dist/cli/chunks/{chunk-ZQCU62JJ.js → chunk-NEYZXYFH.js} +2 -2
- package/dist/cli/chunks/{chunk-EXTVDKH7.js → chunk-NRH2QE4X.js} +3 -3
- package/dist/cli/chunks/{chunk-T4GTFSB2.js → chunk-NS4CCCTZ.js} +2 -2
- package/dist/cli/chunks/{chunk-QAXJOCTW.js → chunk-NZ5LY2BT.js} +1 -1
- package/dist/cli/chunks/{chunk-ELU576GE.js → chunk-O6QAOPUA.js} +3 -3
- package/dist/cli/chunks/{chunk-U6QQS5Z3.js → chunk-OHZ6RJLS.js} +2 -2
- package/dist/cli/chunks/{chunk-DBSVEWWL.js → chunk-ONOYANDX.js} +1 -1
- package/dist/cli/chunks/{chunk-M7PGW5Z5.js → chunk-OZC42UMD.js} +2 -2
- package/dist/cli/chunks/{chunk-WSVWVIVR.js → chunk-P3EOWBME.js} +2 -2
- package/dist/cli/chunks/{chunk-OV6H3TRU.js → chunk-Q2ZYUIS2.js} +2 -2
- package/dist/cli/chunks/{chunk-PS6KLLLQ.js → chunk-Q6FSXNQP.js} +2 -2
- package/dist/cli/chunks/{chunk-JXE2DFXM.js → chunk-QEYPK7KS.js} +1 -1
- package/dist/cli/chunks/{chunk-OZNJZMQL.js → chunk-QOU4R6AF.js} +2 -2
- package/dist/cli/chunks/{chunk-SDHZLA45.js → chunk-QPC4STR6.js} +2 -2
- package/dist/cli/chunks/{chunk-UVWKIP3U.js → chunk-QVZSIFSJ.js} +3 -3
- package/dist/cli/chunks/{chunk-LDLLHLKE.js → chunk-RAZ2PGZD.js} +2 -2
- package/dist/cli/chunks/{chunk-UC3RA5LW.js → chunk-RE6XD6RI.js} +2 -2
- package/dist/cli/chunks/{chunk-T5MWENBA.js → chunk-RGRYL4MG.js} +2 -2
- package/dist/cli/chunks/{chunk-DBEU5ISS.js → chunk-RN3SN4ZC.js} +2 -2
- package/dist/cli/chunks/{chunk-6N26CWST.js → chunk-RPYUKEAH.js} +2 -2
- package/dist/cli/chunks/{chunk-SFFI3MDN.js → chunk-RRQEIGLS.js} +2 -2
- package/dist/cli/chunks/{chunk-HVOOYPW6.js → chunk-RS7ZGWHV.js} +2 -2
- package/dist/cli/chunks/{chunk-DKOOKULB.js → chunk-RTC3ZCPK.js} +2 -2
- package/dist/cli/chunks/{chunk-BRCCPQXN.js → chunk-RUJU5XEQ.js} +1 -1
- package/dist/cli/chunks/{chunk-CF4T4YSL.js → chunk-SHJZ3YNX.js} +2 -2
- package/dist/cli/chunks/{chunk-VNSRA5PY.js → chunk-SKWI5QBM.js} +2 -2
- package/dist/cli/chunks/{chunk-5YUNMBIH.js → chunk-TNWTQWLL.js} +1 -1
- package/dist/cli/chunks/{chunk-MSKVWOND.js → chunk-TT2TB6UF.js} +3 -3
- package/dist/cli/chunks/{chunk-IOW7QTYT.js → chunk-U7YC7VCM.js} +2 -2
- package/dist/cli/chunks/{chunk-KV32LAKU.js → chunk-UJLSCJJS.js} +1 -1
- package/dist/cli/chunks/{chunk-6B4CTO5D.js → chunk-UPJZRDZK.js} +2 -2
- package/dist/cli/chunks/{chunk-JF6AXXAL.js → chunk-UUL3D5HR.js} +4 -4
- package/dist/cli/chunks/{chunk-5OL6UOBM.js → chunk-V57PXZIK.js} +3 -3
- package/dist/cli/chunks/{chunk-PD5YPC2A.js → chunk-VBXJBXMG.js} +4 -4
- package/dist/cli/chunks/{chunk-TA454OEB.js → chunk-VBYREHZI.js} +1 -1
- package/dist/cli/chunks/{chunk-3GMN3PNP.js → chunk-VFXTZWNF.js} +2 -2
- package/dist/cli/chunks/{chunk-K2DDNM4V.js → chunk-VSNPI2NO.js} +8 -8
- package/dist/cli/chunks/{chunk-FSUS5TV6.js → chunk-WHT46PJM.js} +2 -2
- package/dist/cli/chunks/{chunk-GGKV5IQR.js → chunk-XB5HXTL4.js} +2 -2
- package/dist/cli/chunks/{chunk-ZTIPMKUS.js → chunk-XYVMKCSI.js} +1 -1
- package/dist/cli/chunks/{chunk-BK445WWE.js → chunk-YDJKQKQH.js} +2 -2
- package/dist/cli/chunks/{chunk-D5GIV6O7.js → chunk-YS6C2Q4F.js} +1 -1
- package/dist/cli/chunks/{chunk-D5AQDGTS.js → chunk-Z75DMTMI.js} +1 -1
- package/dist/cli/chunks/{chunk-P4RYVWIR.js → chunk-ZKWNZ3ZK.js} +2 -2
- package/dist/cli/chunks/{chunk-7HTSXZ77.js → chunk-ZODUKKPC.js} +2 -2
- package/dist/cli/chunks/{chunk-ZMUVSL5Q.js → chunk-ZQSEPDIJ.js} +2 -2
- package/dist/cli/chunks/{chunk-7JBIDAXT.js → chunk-ZW5DRPZY.js} +2 -2
- package/dist/cli/chunks/{ci-XQEZTRJN.js → ci-THZEECIQ.js} +2 -2
- package/dist/cli/chunks/{ci-output-ZWGXOIUD.js → ci-output-G6QLGL4S.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-PFJFHZSD.js → claude-flow-setup-5MTYQM34.js} +2 -2
- package/dist/cli/chunks/client-IFMC3AYQ.js +2 -0
- package/dist/cli/chunks/{cline-installer-L3WC4KUM.js → cline-installer-E2LF2DQS.js} +2 -2
- package/dist/cli/chunks/{code-QMDXXY6C.js → code-QRF7ZGXG.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-YTPMAZPU.js → code-index-extractor-II6IRWU6.js} +2 -2
- package/dist/cli/chunks/{codex-installer-KO5G7LHQ.js → codex-installer-LGOQ23ZS.js} +2 -2
- package/dist/cli/chunks/{completions-KVDPIXMY.js → completions-LB2RR2OQ.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-KNIBPEC3.js → complexity-analyzer-PUIPIRX3.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-N2GWI5PC.js → continuedev-installer-HQAEAQZU.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-EX3UTDQN.js → copilot-installer-3PKCX5K5.js} +2 -2
- package/dist/cli/chunks/{cost-tracker-XX6OMP37.js → cost-tracker-JG3SZ2Q3.js} +2 -2
- package/dist/cli/chunks/{coverage-FHDDNCPO.js → coverage-D3PZTOKT.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-2LPBUUWY.js +2 -0
- package/dist/cli/chunks/{cursor-installer-M47YCQU7.js → cursor-installer-UY6GWKTO.js} +2 -2
- package/dist/cli/chunks/{daemon-EV3RXWAG.js → daemon-UNO3LRRN.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-J7JDWG5J.js → dag-attention-scheduler-S2MXANYL.js} +2 -2
- package/dist/cli/chunks/{detect-4P5RKV5J.js → detect-DU2FTRKR.js} +2 -2
- package/dist/cli/chunks/{domain-handler-Q35TYDGA.js → domain-handler-KPNO36LF.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-XC34MV5U.js → domain-transfer-6X3ZZF6A.js} +2 -2
- package/dist/cli/chunks/dream-NGRDMOTE.js +2 -0
- package/dist/cli/chunks/esm-node-3COTOSO3.js +2 -0
- package/dist/cli/chunks/{eval-QZGRW7XD.js → eval-6RXEDTBZ.js} +2 -2
- package/dist/cli/chunks/{fast-paths-O42GG56B.js → fast-paths-FYODFGZB.js} +2 -2
- package/dist/cli/chunks/{feature-flags-G6SJTDVO.js → feature-flags-YOULURDA.js} +2 -2
- package/dist/cli/chunks/{feature-flags-GIGWUPEX.js → feature-flags-ZJ42B4IL.js} +2 -2
- package/dist/cli/chunks/{file-discovery-D4NXB3JP.js → file-discovery-KOL7FSBQ.js} +2 -2
- package/dist/cli/chunks/{fleet-ZXZ5AAPW.js → fleet-22I74LGD.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-YK6NAPJV.js → gnn-wrapper-DFHTHLIZ.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-DD4T6U36.js → heartbeat-handler-SQ6VYEAA.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-CBPO5KUB.js → heartbeat-scheduler-W6PQJ5SG.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-BASJNTEV.js +2 -0
- package/dist/cli/chunks/hnsw-index-NFN2AUIX.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-REKPPJ75.js → hnsw-legacy-bridge-AYTRT54U.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-PMWK24KT.js → hnswlib-node-4IA56UH4.js} +2 -2
- package/dist/cli/chunks/{hooks-UDKFTCJ7.js → hooks-T6UMR72X.js} +6 -6
- package/dist/cli/chunks/{hypergraph-engine-FIAZJD7K.js → hypergraph-engine-WVPYKMFY.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-NN2EBNBW.js → hypergraph-handler-NB6GL4CR.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-ZMQXHQDV.js +2 -0
- package/dist/cli/chunks/init-handler-UOFNBXEP.js +68 -0
- package/dist/cli/chunks/init-wizard-QHAA4GWF.js +2 -0
- package/dist/cli/chunks/kernel-SNJFYN3T.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-6XPW7IAO.js → kilocode-installer-VWMNI4QX.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-DOHZGTBZ.js → kiro-installer-RNM47FV5.js} +15 -15
- package/dist/cli/chunks/knowledge-graph-EP5UTODP.js +2 -0
- package/dist/cli/chunks/{learning-GRSMZRPZ.js → learning-L4RB5XYP.js} +3 -3
- package/dist/cli/chunks/{llm-router-MTZPLM7A.js → llm-router-BZYZL3YI.js} +2 -2
- package/dist/cli/chunks/{load-CQXXMUR7.js → load-4UGEGRMO.js} +2 -2
- package/dist/cli/chunks/load-test-KMMRHABK.js +2 -0
- package/dist/cli/chunks/{mcp-IIPV4IWF.js → mcp-FWWZIWCI.js} +2 -2
- package/dist/cli/chunks/{memory-GIODHUAL.js → memory-5OXPMXU6.js} +5 -5
- package/dist/cli/chunks/memory-backend-Q5MWPMDE.js +2 -0
- package/dist/cli/chunks/{memory-handlers-O6UVJSAG.js → memory-handlers-JS7BTWJK.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-DDIIEIKL.js → opencode-installer-BS5TQKHB.js} +2 -2
- package/dist/cli/chunks/{orchestrator-PAQTJDA3.js → orchestrator-G6BUZ6QE.js} +16 -16
- package/dist/cli/chunks/{pipeline-6HFLH75G.js → pipeline-3MZ5COPR.js} +2 -2
- package/dist/cli/chunks/{platform-UKK776G2.js → platform-TKD4JCUG.js} +2 -2
- package/dist/cli/chunks/{plugin-ERW5YBXU.js → plugin-XXJ7R6SY.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-WB5A4ULB.js → prime-radiant-advanced-wasm-JLJ6NKIP.js} +2 -2
- package/dist/cli/chunks/protocol-executor-ORFR4WJ3.js +2 -0
- package/dist/cli/chunks/{protocol-handler-AKDFZI6G.js → protocol-handler-ZLYGQPHG.js} +2 -2
- package/dist/cli/chunks/{prove-GT5XEWVF.js → prove-E2WZ335X.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-PLTOH4SG.js +2 -0
- package/dist/cli/chunks/{quality-VZAG6B54.js → quality-6MHHBINU.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-L3TRAX7H.js +2 -0
- package/dist/cli/chunks/{real-embeddings-KOOT5MTA.js → real-embeddings-QN5BY3WS.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-KHGDU6QK.js → roocode-installer-GTVII272.js} +2 -2
- package/dist/cli/chunks/router-3PBJJLRQ.js +2 -0
- package/dist/cli/chunks/routing-feedback-Q775MZ3Z.js +2 -0
- package/dist/cli/chunks/{routing-handler-HVCNYSJM.js → routing-handler-HYKZ3ISS.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-D46MOJ32.js → ruvector-commands-LBWHPUTZ.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-WASNBBMN.js → rvf-dual-writer-TVCJ2Y6N.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-ESLGEE5X.js → rvf-migration-adapter-34ITXLU3.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-S5NAMHTP.js → rvf-migration-coordinator-SX2C7777.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-HLY2652E.js +2 -0
- package/dist/cli/chunks/safe-db-CCKCBZ5I.js +2 -0
- package/dist/cli/chunks/schedule-WZ5VV55N.js +2 -0
- package/dist/cli/chunks/scheduler-6PIKLCH7.js +2 -0
- package/dist/cli/chunks/{security-4AHBDCJJ.js → security-7A4EW77M.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-VCJNSACZ.js +2 -0
- package/dist/cli/chunks/{shared-rvf-dual-writer-ZFNW4C3N.js → shared-rvf-dual-writer-27L4R5WK.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-HMXYD56G.js +2 -0
- package/dist/cli/chunks/{status-handler-ZVC4HX5J.js → status-handler-JN6PRYLD.js} +2 -2
- package/dist/cli/chunks/{structural-health-DPFQ4GEF.js → structural-health-JSY3DY7H.js} +2 -2
- package/dist/cli/chunks/{sync-7A5JMQNB.js → sync-ET3LYW2V.js} +10 -10
- package/dist/cli/chunks/{task-handler-OFZ5YMXH.js → task-handler-R24MR74L.js} +2 -2
- package/dist/cli/chunks/{task-handlers-IRSHSFQW.js → task-handlers-YNPEEPPZ.js} +2 -2
- package/dist/cli/chunks/{test-F6XPB2DN.js → test-7BZXFZCT.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-CPHQ7DBP.js → test-scheduling-EVIFD5EY.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-5YD6K4LL.js → token-bootstrap-QYYQRXM5.js} +2 -2
- package/dist/cli/chunks/{token-usage-KQYGQAEK.js → token-usage-H4OZA77I.js} +2 -2
- package/dist/cli/chunks/{transformers-P7TT2MJB.js → transformers-ILQFO5HZ.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-SUSDXGOP.js → tree-sitter-wasm-parser-KTST5NWH.js} +2 -2
- package/dist/cli/chunks/{types-OEGMO7AH.js → types-4Z7XELU6.js} +2 -2
- package/dist/cli/chunks/unified-memory-RBHCTAWW.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-UBF5PT6D.js +2 -0
- package/dist/cli/chunks/unified-persistence-ZIJDP6GW.js +2 -0
- package/dist/cli/chunks/{validate-XI4GTLQR.js → validate-GSQCH6VN.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-UZQR6AWZ.js → validate-swarm-SP2RPOYD.js} +2 -2
- package/dist/cli/chunks/{vibium-VPJH2KD5.js → vibium-2SGOFYTF.js} +2 -2
- package/dist/cli/chunks/visual-security-WKIWOUTH.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-LUNFY67E.js → web-tree-sitter-QSQ27UTH.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-LTJCP7AT.js → windsurf-installer-NIEH46E2.js} +2 -2
- package/dist/cli/chunks/witness-chain-4BRX3GGH.js +2 -0
- package/dist/cli/chunks/{witness-chain-YWBIN5MQ.js → witness-chain-62GJTCT5.js} +2 -2
- package/dist/cli/chunks/{workflow-UGXLNO36.js → workflow-WZMV2MGW.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-G6VU7QZ4.js +2 -0
- package/dist/cli/chunks/{wrappers-LUJRP2YI.js → wrappers-LNTV533I.js} +2 -2
- package/dist/cli/commands/init.js +2 -0
- package/dist/cli/commands/sync.js +25 -8
- package/dist/cli/handlers/init-handler.d.ts +1 -0
- package/dist/cli/handlers/init-handler.js +2 -0
- package/dist/init/governance-installer.js +46 -14
- package/dist/init/kiro-installer.js +15 -2
- package/dist/init/orchestrator.js +1 -0
- package/dist/init/phases/06-code-intelligence.d.ts +13 -0
- package/dist/init/phases/06-code-intelligence.js +46 -7
- package/dist/init/phases/phase-interface.d.ts +9 -0
- package/dist/mcp/bundle.js +1 -1
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-WKI55MLS.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-QQHHH3ZL.js +0 -2
- package/dist/cli/chunks/base-3ENVJTIL.js +0 -2
- package/dist/cli/chunks/browser-workflow-QVT343YP.js +0 -2
- package/dist/cli/chunks/chunk-FONTSK2O.js +0 -2
- package/dist/cli/chunks/client-VUKA3X4R.js +0 -2
- package/dist/cli/chunks/cross-domain-router-5SUV5AP6.js +0 -2
- package/dist/cli/chunks/dream-2UNEPNI2.js +0 -2
- package/dist/cli/chunks/esm-node-TPR2KU6L.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-BLMGBVDE.js +0 -2
- package/dist/cli/chunks/hnsw-index-UWMXU7RN.js +0 -2
- package/dist/cli/chunks/impact-analyzer-RK2VPRRL.js +0 -2
- package/dist/cli/chunks/init-handler-RK256F2M.js +0 -68
- package/dist/cli/chunks/init-wizard-HA2VADPV.js +0 -2
- package/dist/cli/chunks/kernel-QMZBPOWP.js +0 -2
- package/dist/cli/chunks/knowledge-graph-INYQCVMS.js +0 -2
- package/dist/cli/chunks/load-test-YSEU2TUL.js +0 -2
- package/dist/cli/chunks/memory-backend-MNSPY44E.js +0 -2
- package/dist/cli/chunks/protocol-executor-CBKER6RL.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-C3J4RA2M.js +0 -2
- package/dist/cli/chunks/queen-coordinator-ZXTNAEYV.js +0 -2
- package/dist/cli/chunks/router-YMQF6M2D.js +0 -2
- package/dist/cli/chunks/routing-feedback-MM7LNDS7.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-3EEWPK4C.js +0 -2
- package/dist/cli/chunks/safe-db-5P6ABYNG.js +0 -2
- package/dist/cli/chunks/schedule-ZGESH3FK.js +0 -2
- package/dist/cli/chunks/scheduler-AC4AA2BD.js +0 -2
- package/dist/cli/chunks/shared-rvf-adapter-UQQUEC52.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-KXDW2Q66.js +0 -2
- package/dist/cli/chunks/unified-memory-MNW25PVU.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-4RZRP37O.js +0 -2
- package/dist/cli/chunks/unified-persistence-6UBNXF25.js +0 -2
- package/dist/cli/chunks/visual-security-7742DBSK.js +0 -2
- package/dist/cli/chunks/witness-chain-QVPNOHDC.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-K3Q2GOEG.js +0 -2
|
@@ -1,25 +1,25 @@
|
|
|
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.9.
|
|
2
|
-
import{a as ve}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.9.4");process.exit(0)}
|
|
2
|
+
import{a as ve}from"./chunk-LH3ZL2OK.js";import{c as Ee}from"./chunk-3SPYUOSS.js";import{a as Z,b as ce,c as he,d as ye,e as ke,f as we,g as be,h as Ce,i as Pe,j as Se,k as Re}from"./chunk-UPJZRDZK.js";import"./chunk-7FJIIB4H.js";import{a as Ie}from"./chunk-GX7MEHQ2.js";import"./chunk-TNWTQWLL.js";import"./chunk-C567IO5M.js";import"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import{b as A,d as X}from"./chunk-4GJAYXB7.js";import{a as E,b as fe,c as ae}from"./chunk-F6AU2MAZ.js";import"./chunk-RS7ZGWHV.js";import{a as _,b as le}from"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import{a as ie}from"./chunk-C2HGOUEB.js";ae();ae();var f=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(n){return{success:!1,error:fe(n),durationMs:Date.now()-t,message:`${this.description} failed: ${E(n)}`}}}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}};X();le();import{existsSync as q}from"fs";import{join as T}from"path";var N=class extends f{name="detection";description="Detect existing installations";order=10;critical=!0;async run(e){let{projectRoot:t}=e,n=await this.detectV2Installation(t),s=q(T(t,".agentic-qe","config.yaml")),o=n.version?.startsWith("3."),r=n.detected,i=s||o||!1,l=!r&&!i;return e.v2Detection=n,{v2Detected:r,v3Detected:i,freshInstall:l,v2Detection:n}}async detectV2Installation(e){let t=T(e,".agentic-qe","memory.db"),n=T(e,".agentic-qe","config"),s=T(e,".claude","agents"),o=T(e,".agentic-qe","config","learning.json"),r=q(t),i=q(n),l=q(s),c=q(o),d=q(T(e,".agentic-qe","config.yaml")),g,u=!1;return r&&(g=this.readVersionFromDb(t),g?u=g.startsWith("3."):g="2.x.x"),{detected:!u&&r&&(!g?.startsWith("3.")||c&&!d),memoryDbPath:r?t:void 0,configPath:i?n:void 0,agentsPath:l?s:void 0,hasMemoryDb:r,hasConfig:i,hasAgents:l,version:g}}readVersionFromDb(e){try{let t=_(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 s=t.prepare(`
|
|
6
6
|
SELECT value FROM kv_store
|
|
7
7
|
WHERE key = 'aqe_version' AND namespace = '_system'
|
|
8
|
-
`).get();return t.close(),s?
|
|
8
|
+
`).get();return t.close(),s?A(s.value):void 0}catch{t.close();return}}catch{return}}};var Q=class extends f{name="analysis";description="Analyze project structure";order=20;critical=!0;requiresPhases=["detection"];async run(e){let n=await he(e.projectRoot).analyze();return e.analysis=n,e.services.log(` Project: ${n.projectName}`),e.services.log(` Languages: ${n.languages.map(s=>s.name).join(", ")}`),e.services.log(` Frameworks: ${n.frameworks.map(s=>s.name).join(", ")}`),n}};var L=class extends f{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 n=ye({minimal:e.options.minimal}).recommend(e.analysis);return n=this.applyOptions(n,e),e.config=n,e.services.log(` Version: ${n.version}`),e.services.log(` Learning: ${n.learning.enabled?"enabled":"disabled"}`),e.services.log(` Workers: ${n.workers.enabled.length}`),n}applyOptions(e,t){let{options:n}=t;return n.minimal&&(e.skills.install=!1,e.learning.pretrainedPatterns=!1,e.workers.enabled=[],e.workers.daemonAutoStart=!1),n.skipPatterns&&(e.learning.pretrainedPatterns=!1),n.wizardAnswers&&(e=this.applyWizardAnswers(e,n.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 ee,mkdirSync as de}from"fs";import{join as te}from"path";var V=class extends f{name="database";description="Initialize persistence database";order=40;critical=!0;requiresPhases=["configuration"];async run(e){let{projectRoot:t}=e,n=te(t,".agentic-qe");ee(n)||de(n,{recursive:!0});let s=te(n,"workers");ee(s)||de(s,{recursive:!0});let o=te(n,"data");ee(o)||de(o,{recursive:!0});let r=te(n,"memory.db"),i=!ee(r);try{let{initializeUnifiedMemory:l,resetUnifiedMemory:c}=await import("./unified-memory-RBHCTAWW.js"),d=await l({dbPath:r,walMode:!0,busyTimeout:5e3}),u=d.getStats().tables.map(P=>P.name);await d.kvSet("_init_marker",{initialized:new Date().toISOString(),projectRoot:t,version:Z()},"_system");let v=d.getDatabase().prepare("SELECT version FROM schema_version WHERE id = 1").get()?.version??0;return c(),e.services.log(` Database: ${r}`),e.services.log(` Schema version: v${v}`),e.services.log(` Tables: ${u.length} (v3 full schema)`),{dbPath:r,created:i,tablesCreated:u,schemaVersion:v}}catch(l){throw new Error(`SQLite persistence initialization FAILED: ${l}
|
|
9
9
|
Database path: ${r}
|
|
10
|
-
Ensure the directory is writable and has sufficient disk space.`)}}};import{existsSync as ne,mkdirSync as ue,writeFileSync as
|
|
10
|
+
Ensure the directory is writable and has sufficient disk space.`)}}};import{existsSync as ne,mkdirSync as ue,writeFileSync as Ae}from"fs";import{join as $}from"path";var W=class extends f{name="learning";description="Initialize learning system";order=50;critical=!1;requiresPhases=["database","configuration"];async shouldRun(e){return e.config?.learning?.enabled??!0}async run(e){let t=e.config,{projectRoot:n,options:s}=e;if(!t.learning.enabled)return{enabled:!1,dataDir:"",hnswDir:"",patternsLoaded:0};let o=$(n,".agentic-qe","data");ne(o)||ue(o,{recursive:!0});let r=$(o,"hnsw");ne(r)||ue(r,{recursive:!0});let i=$(o,"learning-config.json"),l={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()};Ae(i,JSON.stringify(l,null,2),"utf-8");let c=0;return t.learning.pretrainedPatterns&&!s.skipPatterns&&(c=await this.loadPretrainedPatterns(o,e)),e.services.log(` Data dir: ${o}`),e.services.log(` HNSW dir: ${r}`),e.services.log(` Patterns loaded: ${c}`),{enabled:!0,dataDir:o,hnswDir:r,patternsLoaded:c}}async loadPretrainedPatterns(e,t){try{let n=$(e,"patterns");ne(n)||ue(n,{recursive:!0});let s=$(n,"index.json");return ne(s)||Ae(s,JSON.stringify({version:Z(),domains:[],loadedAt:new Date().toISOString()},null,2),"utf-8"),0}catch(n){return t.services.warn(`Could not load pre-trained patterns: ${n}`),0}}};X();le();import{existsSync as Le,statSync as Ve}from"fs";import{join as se}from"path";var xe=3e4,_e=18e4,$e=["**/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.*"],H=class extends f{name="code-intelligence";description="Code intelligence pre-scan";order=60;critical=!1;requiresPhases=["database"];async shouldRun(e){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,n=se(t,".agentic-qe","memory.db");if(!Le(n))return e.services.log(" Building knowledge graph..."),await this.runCodeIntelligenceScan(t,e,!1);let s=_(n);try{if(!this.checkCodeIntelligenceIndex(s))return s.close(),e.services.log(" Building knowledge graph..."),await this.runCodeIntelligenceScan(t,e,!1);let r=this.getLastIndexedAt(s);if(!r){let c=this.getKGEntryCount(s);return s.close(),e.services.log(` Using existing index (${c} entries)`),{status:"existing",entries:c}}let i=this.getKGEntryCount(s);s.close();let l=await this.findChangedFiles(t,r);return l.length===0?(e.services.log(` Index up to date (${i} entries)`),{status:"existing",entries:i}):(e.services.log(` Delta scan: ${l.length} files changed since last index...`),await this.runCodeIntelligenceScan(t,e,!0,l))}catch(o){try{s.close()}catch{}throw o}}checkCodeIntelligenceIndex(e){try{return e.prepare(`
|
|
11
11
|
SELECT COUNT(*) as count FROM kv_store
|
|
12
12
|
WHERE namespace = 'code-intelligence:kg'
|
|
13
13
|
`).get().count>0}catch{return!1}}getKGEntryCount(e){try{return e.prepare(`
|
|
14
14
|
SELECT COUNT(*) as count FROM kv_store
|
|
15
15
|
WHERE namespace LIKE 'code-intelligence:kg%'
|
|
16
|
-
`).get().count}catch{return 0}}async runCodeIntelligenceScan(e,t,n,s){try{let{KnowledgeGraphService:o}=await import("./knowledge-graph-
|
|
16
|
+
`).get().count}catch{return 0}}async runCodeIntelligenceScan(e,t,n,s){try{let{KnowledgeGraphService:o}=await import("./knowledge-graph-EP5UTODP.js"),r=se(e,".agentic-qe","memory.db"),i={type:"sqlite",sqlite:{path:r,walMode:!0}},{backend:l}=await ve(i,!0),c=new o(l,{namespace:"code-intelligence:kg",enableVectorEmbeddings:!0}),d;s?d=s:d=(await(await import("fast-glob")).default(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:e,ignore:$e})).map(m=>se(e,m)),t.services.log(` Scanning ${d.length} source files...`);let g=await this.runBoundedScan(c,d,n,t);if(c.destroy(),await l.dispose(),g.status==="timeout")return t.services.warn(` \u26A0 Code intelligence pre-scan exceeded ${_e/1e3}s phase cap. Indexed ${g.entries} entries before timeout. Last file: ${g.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.`),g;if(g.status==="indexed"){let u=n?"Delta indexed":"Indexed";t.services.log(` ${u} ${g.entries} entries to ${r}`),await this.buildHypergraph(r,d,t)}return g}catch(o){return t.services.warn(`Code intelligence scan warning: ${o}`),{status:"skipped",entries:0}}}async runBoundedScan(e,t,n,s){let o=0,r=0,i=0,l="",c=Date.now(),d=!1;n||await e.clear();let g=s.projectRoot,u=m=>m.startsWith(g)?m.slice(g.length+1):m;for(let m of t){if(Date.now()-c>_e){d=!0;break}l=m,s.services.log(` [${i+1}/${t.length}] ${u(m)}`);try{let v=await this.withTimeout(e.index({paths:[m],incremental:!0,includeTests:!0}),xe,m);v.success&&(o+=v.value.nodesCreated,r+=v.value.edgesCreated)}catch(v){let P=v instanceof Error?v.message:String(v);P.startsWith("AQE_PER_FILE_TIMEOUT")?s.services.warn(` \u26A0 Skipped ${u(m)} \u2014 indexing exceeded ${xe/1e3}s`):s.services.warn(` \u26A0 Failed to index ${u(m)}: ${P}`)}i++}let y=o+r;return d?{status:"timeout",entries:y,timeoutFile:l}:{status:"indexed",entries:y}}withTimeout(e,t,n){return new Promise((s,o)=>{let r=setTimeout(()=>{o(new Error(`AQE_PER_FILE_TIMEOUT: ${n}`))},t);typeof r.unref=="function"&&r.unref(),e.then(i=>{clearTimeout(r),s(i)},i=>{clearTimeout(r),o(i)})})}async buildHypergraph(e,t,n){try{let{extractCodeIndex:s}=await import("./code-index-extractor-II6IRWU6.js"),{createHypergraphEngine:o}=await import("./hypergraph-engine-WVPYKMFY.js"),r=_(e),i=await o({db:r,maxTraversalDepth:10,maxQueryResults:1e3,enableVectorSearch:!1}),l=await s(t),c=await i.buildFromIndexResult(l);r.close(),c.nodesCreated+c.edgesCreated>0&&n.services.log(` Hypergraph: ${c.nodesCreated} nodes, ${c.edgesCreated} edges`)}catch(s){n.services.warn?.(` Hypergraph build skipped: ${s}`)}}getLastIndexedAt(e){try{let t=e.prepare(`
|
|
17
17
|
SELECT value FROM kv_store
|
|
18
18
|
WHERE namespace = 'code-intelligence:kg'
|
|
19
19
|
AND key = 'metadata:index'
|
|
20
|
-
`).get();if(!t)return null;let n=
|
|
21
|
-
`);M(n,s,"utf-8")}installHookAssets(e,t){let{projectRoot:n}=t;this.installBrainCheckpoint(n,t),this.installStatusline(n,t);let s=w(e,"cross-phase-memory.yaml");if(!
|
|
22
|
-
`),"utf-8")}let o=w(e,"v3-domain-workers.json");
|
|
20
|
+
`).get();if(!t)return null;let n=A(t.value);if(!n.indexedAt)return null;let s=new Date(n.indexedAt);return isNaN(s.getTime())?null:s}catch{return null}}async findChangedFiles(e,t){let s=await(await import("fast-glob")).default(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:e,ignore:$e}),o=t.getTime(),r=[];for(let i of s){let l=se(e,i);try{Ve(l).mtimeMs>o&&r.push(l)}catch{}}return r}};X();import{existsSync as I,mkdirSync as re,readFileSync as De,writeFileSync as M}from"fs";import{join as w}from"path";var G=class extends f{name="hooks";description="Configure Claude Code hooks";order=70;critical=!1;requiresPhases=["configuration"];async shouldRun(e){return e.config?.hooks?.claudeCode??!0}async run(e){let t=e.config,{projectRoot:n}=e;if(!t.hooks.claudeCode)return{configured:!1,settingsPath:"",hookTypes:[],existingAqeDetected:!1};let s=w(n,".claude");I(s)||re(s,{recursive:!0});let o=w(s,"hooks");I(o)||re(o,{recursive:!0});let r=w(s,"settings.json"),i={};if(I(r))try{let v=De(r,"utf-8");i=A(v)}catch{i={}}let l=this.generateHooksConfig(t,n),c=Object.keys(l),d=i.hooks||{},g=this.hasExistingAqeHooks(d);g&&e.services.log(" Detected existing AQE hooks \u2014 replacing with updated config"),i.hooks=we(d,l);let u=i.env||{};i.env={...u,...be(t)};let y=Ce(t,n);for(let[v,P]of Object.entries(y))if(v==="_aqePermissions"){let x=i.permissions||{},C=x.allow||[],h=P,k=[...new Set([...C,...h])];i.permissions={...x,allow:k}}else i[v]=P;let m=i.enabledMcpjsonServers||[];m=m.filter(v=>v!=="aqe"),m.includes("agentic-qe")||m.push("agentic-qe"),i.enabledMcpjsonServers=m,M(r,JSON.stringify(i,null,2),"utf-8"),this.writeHooksReadme(o,c),this.installHookAssets(o,e);try{let v=De(r,"utf-8"),x=A(v).hooks;(!x||!this.hasExistingAqeHooks(x))&&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: ${c.join(", ")}`),{configured:!0,settingsPath:r,hookTypes:c,existingAqeDetected:g}}writeHooksReadme(e,t){let n=w(e,"README.txt");if(I(n))return;let s=["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(`
|
|
21
|
+
`);M(n,s,"utf-8")}installHookAssets(e,t){let{projectRoot:n}=t;this.installBrainCheckpoint(n,t),this.installStatusline(n,t);let s=w(e,"cross-phase-memory.yaml");if(!I(s)){let r=[w(n,"v3","assets","hooks","cross-phase-memory.yaml"),w(n,"assets","hooks","cross-phase-memory.yaml"),w(n,"node_modules","agentic-qe","v3","assets","hooks","cross-phase-memory.yaml")],i=!1;for(let l of r)if(I(l)){let{copyFileSync:c}=ie("fs");c(l,s),t.services.log(" Installed cross-phase memory config"),i=!0;break}i||M(s,["# Cross-Phase Memory Hooks Configuration","# Generated by aqe init",'version: "1.0"',"enabled: true",""].join(`
|
|
22
|
+
`),"utf-8")}let o=w(e,"v3-domain-workers.json");I(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 n of t)if(ke(n))return!0}return!1}installBrainCheckpoint(e,t){let n=w(e,".claude","helpers");I(n)||re(n,{recursive:!0});let s=w(n,"brain-checkpoint.cjs"),o=[w(e,".claude","helpers","brain-checkpoint.cjs"),w(e,"node_modules","agentic-qe",".claude","helpers","brain-checkpoint.cjs")];for(let r of o)if(I(r)&&r!==s){let{copyFileSync:i}=ie("fs");i(r,s),t.services.log(" Installed brain-checkpoint.cjs (copied)");return}I(s)||(M(s,this.generateBrainCheckpointScript(),"utf-8"),t.services.log(" Installed brain-checkpoint.cjs (generated)"))}installStatusline(e,t){let n=w(e,".claude","helpers");I(n)||re(n,{recursive:!0});let s=w(n,"statusline-v3.cjs"),o=[w(e,"node_modules","agentic-qe","assets","helpers","statusline-v3.cjs"),w(e,"assets","helpers","statusline-v3.cjs")];for(let r of o)if(I(r)&&r!==s){let{copyFileSync:i}=ie("fs");i(r,s),t.services.log(" Installed statusline-v3.cjs (copied)");return}I(s)||(M(s,this.generateMinimalStatuslineScript(),"utf-8"),t.services.log(" Installed statusline-v3.cjs (generated)"))}generateMinimalStatuslineScript(){return`#!/usr/bin/env node
|
|
23
23
|
/**
|
|
24
24
|
* Agentic QE v3 Statusline (minimal fallback, generated by aqe init)
|
|
25
25
|
* For the full statusline, reinstall: npx agentic-qe init --auto
|
|
@@ -104,7 +104,7 @@ function verifyBrain() {
|
|
|
104
104
|
const cmd = process.argv[2] || 'verify';
|
|
105
105
|
const result = cmd === 'export' ? exportBrain() : verifyBrain();
|
|
106
106
|
if (process.argv.includes('--json')) process.stdout.write(JSON.stringify(result));
|
|
107
|
-
`}generateHooksConfig(e,t){return{PreToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'npx agentic-qe hooks guard --file "$TOOL_INPUT_file_path" --json',timeout:3e3,continueOnError:!0}]},{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'npx agentic-qe hooks pre-edit --file "$TOOL_INPUT_file_path" --json',timeout:5e3,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'npx agentic-qe hooks pre-command --command "$TOOL_INPUT_command" --json',timeout:3e3,continueOnError:!0}]},{matcher:"^Task$",hooks:[{type:"command",command:'npx agentic-qe hooks pre-task --description "$TOOL_INPUT_prompt" --json',timeout:5e3,continueOnError:!0}]}],PostToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'npx agentic-qe hooks post-edit --file "$TOOL_INPUT_file_path" --success --json',timeout:5e3,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'npx agentic-qe hooks post-command --command "$TOOL_INPUT_command" --success --json',timeout:5e3,continueOnError:!0}]},{matcher:"^Task$",hooks:[{type:"command",command:'npx agentic-qe hooks post-task --task-id "$TOOL_RESULT_agent_id" --success --json',timeout:5e3,continueOnError:!0}]}],UserPromptSubmit:[{hooks:[{type:"command",command:'npx agentic-qe hooks route --task "$PROMPT" --json',timeout:5e3,continueOnError:!0}]}],SessionStart:[{hooks:[{type:"command",command:'npx agentic-qe hooks session-start --session-id "$SESSION_ID" --json',timeout:1e4,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" verify --json'`,timeout:5e3,continueOnError:!0}]}],Stop:[{hooks:[{type:"command",command:"npx agentic-qe hooks session-end --save-state --json",timeout:5e3,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" export --json'`,timeout:6e4,continueOnError:!0}]}]}}};X();import{existsSync as We,readFileSync as He,writeFileSync as Ge}from"fs";import{join as Ue}from"path";var U=class extends f{name="mcp";description="Configure MCP server";order=80;critical=!1;requiresPhases=["configuration","database"];async run(e){let{projectRoot:t}=e;if(e.options.noMcp)return e.services.log(" MCP: skipped (--no-mcp)"),e.services.log(" CLI commands available: aqe memory, aqe test, aqe coverage, etc."),{configured:!1,mcpPath:"",serverName:""};let n={command:"aqe-mcp",args:[],env:{AQE_LEARNING_ENABLED:"true",AQE_WORKERS_ENABLED:"true",NODE_ENV:"production"}},s=Ue(t,".mcp.json"),o={};if(We(s))try{let i=He(s,"utf-8");o=E(i)}catch{o={}}o.mcpServers||(o.mcpServers={});let r=o.mcpServers;return r["agentic-qe"]=n,Ge(s,JSON.stringify(o,null,2),"utf-8"),e.services.log(` MCP config: ${s}`),e.services.log(" Server: agentic-qe"),e.services.log(" Learning: enabled"),e.services.log(" Workers: enabled"),{configured:!0,mcpPath:s,serverName:"agentic-qe"}}};import{existsSync as P,readFileSync as Be}from"fs";import{join as S}from"path";var B=class extends f{name="assets";description="Install skills and agents";order=90;critical=!1;requiresPhases=["configuration"];async run(e){let t=e.config,{projectRoot:n,options:s}=e,o=this.detectVersionUpgrade(e),r=s.upgrade||t.skills.overwrite||s.autoMode&&o,i=0,l=0,c=0,d=0,g=0,u=0,m=0,y=0,k=0;if(s.upgrade?e.services.log(" Upgrade mode: overwriting existing files"):s.autoMode&&o&&e.services.log(" Version upgrade detected: updating skills and agents"),t.skills.install){let v=await Ie({projectRoot:n,installV2Skills:t.skills.installV2,installV3Skills:t.skills.installV3,overwrite:r}).install();i=v.installed.length,v.errors.length>0&&e.services.warn(`Skills warnings: ${v.errors.join(", ")}`)}try{let v=await Pe({projectRoot:n,installQEAgents:!0,installSubagents:!0,overwrite:r}).install();l=v.installed.length,v.errors.length>0&&e.services.warn(`Agents warnings: ${v.errors.join(", ")}`)}catch(h){e.services.warn(`Agents install error: ${h instanceof Error?h.message:h}`)}if(Re(n),s.withN8n){let v=await Se({projectRoot:n,installAgents:!0,installSkills:!0,overwrite:r,n8nApiConfig:s.n8nApiConfig}).install();c=v.agentsInstalled.length,d=v.skillsInstalled.length,v.errors.length>0&&e.services.warn(`N8n warnings: ${v.errors.join(", ")}`)}let x=s.autoMode&&P(S(n,"opencode.json"));if(s.withOpenCode||x){let{createOpenCodeInstaller:h}=await import("./opencode-installer-DDIIEIKL.js"),a=await h({projectRoot:n,installAgents:!0,installSkills:!0,installTools:!0,overwrite:r}).install();g=a.agentsInstalled.length,u=a.skillsInstalled.length,a.errors.length>0&&e.services.warn(`OpenCode warnings: ${a.errors.join(", ")}`)}e.services.log(` Skills: ${i}`),e.services.log(` Agents: ${l}`),s.withN8n&&(e.services.log(` N8n agents: ${c}`),e.services.log(` N8n skills: ${d}`)),(s.withOpenCode||x)&&(e.services.log(` OpenCode agents: ${g}`),e.services.log(` OpenCode skills: ${u}`));let _=s.autoMode&&P(S(n,".kiro"));if(s.withKiro||_){let{createKiroInstaller:h}=await import("./kiro-installer-DOHZGTBZ.js"),a=await h({projectRoot:n,installAgents:!0,installSkills:!0,installHooks:!0,installSteering:!0,overwrite:r}).install();m=a.agentsInstalled.length,y=a.skillsInstalled.length,k=a.hooksInstalled.length,a.errors.length>0&&e.services.warn(`Kiro warnings: ${a.errors.join(", ")}`),e.services.log(` Kiro agents: ${m}`),e.services.log(` Kiro skills: ${y}`),e.services.log(` Kiro hooks: ${k}`),e.services.log(` Kiro steering: ${a.steeringInstalled.length}`),a.mcpConfigured&&e.services.log(" Kiro MCP: .kiro/settings/mcp.json")}let b=[];if(s.withCopilot||s.autoMode&&P(S(n,".vscode"))){let{createCopilotInstaller:h}=await import("./copilot-installer-EX3UTDQN.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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(s.withCursor||s.autoMode&&P(S(n,".cursor"))){let{createCursorInstaller:h}=await import("./cursor-installer-M47YCQU7.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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(s.withCline){let{createClineInstaller:h}=await import("./cline-installer-L3WC4KUM.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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(s.withKiloCode||s.autoMode&&P(S(n,".kilocode"))){let{createKiloCodeInstaller:h}=await import("./kilocode-installer-6XPW7IAO.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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(s.withRooCode||s.autoMode&&P(S(n,".roo"))){let{createRooCodeInstaller:h}=await import("./roocode-installer-KHGDU6QK.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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(s.withCodex||s.autoMode&&P(S(n,".codex"))){let{createCodexInstaller:h}=await import("./codex-installer-KO5G7LHQ.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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}`)}if(s.withWindsurf||s.autoMode&&P(S(n,".windsurf"))){let{createWindsurfInstaller:h}=await import("./windsurf-installer-LTJCP7AT.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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(s.withContinueDev||s.autoMode&&P(S(n,".continue"))){let{createContinueDevInstaller:h}=await import("./continuedev-installer-N2GWI5PC.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&b.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 b.length>0&&e.services.log(` Platforms configured: ${b.join(", ")}`),{skillsInstalled:i,agentsInstalled:l,n8nAgents:c,n8nSkills:d,openCodeAgents:g,openCodeSkills:u,kiroAgents:m,kiroSkills:y,kiroHooks:k,platformsConfigured:b}}detectVersionUpgrade(e){let t=S(e.projectRoot,".agentic-qe","config.yaml");if(!P(t))return!1;try{let o=Be(t,"utf-8").match(/version:\s*"?([^"\n]+)"?/)?.[1],r=e.config.version;return o!==void 0&&o!==r}catch{return!1}}};import{existsSync as ze,mkdirSync as Ke,writeFileSync as oe}from"fs";import{join as O}from"path";var z=class extends f{name="workers";description="Configure background workers";order=100;critical=!1;requiresPhases=["configuration"];async shouldRun(e){let t=e.config;return t?.workers?.daemonAutoStart&&(t?.workers?.enabled?.length??0)>0}async run(e){let t=e.config,{projectRoot:n}=e;if(!t.workers.daemonAutoStart||t.workers.enabled.length===0)return{workersDir:"",workersConfigured:0,registryPath:"",daemonStarted:!1,daemonPid:null};let s=O(n,".agentic-qe","workers");ze(s)||Ke(s,{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 m of t.workers.enabled)r[m]={name:m,enabled:!0,interval:t.workers.intervals[m]||o[m]||6e4,lastRun:null,status:"pending"};let i=O(s,"registry.json"),l={version:t.version,maxConcurrent:t.workers.maxConcurrent,workers:r,createdAt:new Date().toISOString(),daemonPid:null};oe(i,JSON.stringify(l,null,2),"utf-8");for(let m of t.workers.enabled){let y=O(s,`${m}.json`),k={name:m,enabled:!0,interval:t.workers.intervals[m]||o[m]||6e4,projectRoot:n,dataDir:O(n,".agentic-qe","data"),createdAt:new Date().toISOString()};oe(y,JSON.stringify(k,null,2),"utf-8")}let c=O(s,"start-daemon.cjs");oe(c,`#!/usr/bin/env node
|
|
107
|
+
`}generateHooksConfig(e,t){return{PreToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'npx agentic-qe hooks guard --file "$TOOL_INPUT_file_path" --json',timeout:3e3,continueOnError:!0}]},{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'npx agentic-qe hooks pre-edit --file "$TOOL_INPUT_file_path" --json',timeout:5e3,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'npx agentic-qe hooks pre-command --command "$TOOL_INPUT_command" --json',timeout:3e3,continueOnError:!0}]},{matcher:"^Task$",hooks:[{type:"command",command:'npx agentic-qe hooks pre-task --description "$TOOL_INPUT_prompt" --json',timeout:5e3,continueOnError:!0}]}],PostToolUse:[{matcher:"^(Write|Edit|MultiEdit)$",hooks:[{type:"command",command:'npx agentic-qe hooks post-edit --file "$TOOL_INPUT_file_path" --success --json',timeout:5e3,continueOnError:!0}]},{matcher:"^Bash$",hooks:[{type:"command",command:'npx agentic-qe hooks post-command --command "$TOOL_INPUT_command" --success --json',timeout:5e3,continueOnError:!0}]},{matcher:"^Task$",hooks:[{type:"command",command:'npx agentic-qe hooks post-task --task-id "$TOOL_RESULT_agent_id" --success --json',timeout:5e3,continueOnError:!0}]}],UserPromptSubmit:[{hooks:[{type:"command",command:'npx agentic-qe hooks route --task "$PROMPT" --json',timeout:5e3,continueOnError:!0}]}],SessionStart:[{hooks:[{type:"command",command:'npx agentic-qe hooks session-start --session-id "$SESSION_ID" --json',timeout:1e4,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" verify --json'`,timeout:5e3,continueOnError:!0}]}],Stop:[{hooks:[{type:"command",command:"npx agentic-qe hooks session-end --save-state --json",timeout:5e3,continueOnError:!0}]},{hooks:[{type:"command",command:`sh -c 'exec node "\${CLAUDE_PROJECT_DIR:-.}/.claude/helpers/brain-checkpoint.cjs" export --json'`,timeout:6e4,continueOnError:!0}]}]}}};X();import{existsSync as We,readFileSync as He,writeFileSync as Ge}from"fs";import{join as Ue}from"path";var U=class extends f{name="mcp";description="Configure MCP server";order=80;critical=!1;requiresPhases=["configuration","database"];async run(e){let{projectRoot:t}=e;if(e.options.noMcp)return e.services.log(" MCP: skipped (--no-mcp)"),e.services.log(" CLI commands available: aqe memory, aqe test, aqe coverage, etc."),{configured:!1,mcpPath:"",serverName:""};let n={command:"aqe-mcp",args:[],env:{AQE_LEARNING_ENABLED:"true",AQE_WORKERS_ENABLED:"true",NODE_ENV:"production"}},s=Ue(t,".mcp.json"),o={};if(We(s))try{let i=He(s,"utf-8");o=A(i)}catch{o={}}o.mcpServers||(o.mcpServers={});let r=o.mcpServers;return r["agentic-qe"]=n,Ge(s,JSON.stringify(o,null,2),"utf-8"),e.services.log(` MCP config: ${s}`),e.services.log(" Server: agentic-qe"),e.services.log(" Learning: enabled"),e.services.log(" Workers: enabled"),{configured:!0,mcpPath:s,serverName:"agentic-qe"}}};import{existsSync as S,readFileSync as Be}from"fs";import{join as R}from"path";var B=class extends f{name="assets";description="Install skills and agents";order=90;critical=!1;requiresPhases=["configuration"];async run(e){let t=e.config,{projectRoot:n,options:s}=e,o=this.detectVersionUpgrade(e),r=s.upgrade||t.skills.overwrite||s.autoMode&&o,i=0,l=0,c=0,d=0,g=0,u=0,y=0,m=0,v=0;if(s.upgrade?e.services.log(" Upgrade mode: overwriting existing files"):s.autoMode&&o&&e.services.log(" Version upgrade detected: updating skills and agents"),t.skills.install){let k=await Pe({projectRoot:n,installV2Skills:t.skills.installV2,installV3Skills:t.skills.installV3,overwrite:r}).install();i=k.installed.length,k.errors.length>0&&e.services.warn(`Skills warnings: ${k.errors.join(", ")}`)}try{let k=await Se({projectRoot:n,installQEAgents:!0,installSubagents:!0,overwrite:r}).install();l=k.installed.length,k.errors.length>0&&e.services.warn(`Agents warnings: ${k.errors.join(", ")}`)}catch(h){e.services.warn(`Agents install error: ${h instanceof Error?h.message:h}`)}if(Ee(n),s.withN8n){let k=await Re({projectRoot:n,installAgents:!0,installSkills:!0,overwrite:r,n8nApiConfig:s.n8nApiConfig}).install();c=k.agentsInstalled.length,d=k.skillsInstalled.length,k.errors.length>0&&e.services.warn(`N8n warnings: ${k.errors.join(", ")}`)}let P=s.autoMode&&S(R(n,"opencode.json"));if(s.withOpenCode||P){let{createOpenCodeInstaller:h}=await import("./opencode-installer-BS5TQKHB.js"),a=await h({projectRoot:n,installAgents:!0,installSkills:!0,installTools:!0,overwrite:r}).install();g=a.agentsInstalled.length,u=a.skillsInstalled.length,a.errors.length>0&&e.services.warn(`OpenCode warnings: ${a.errors.join(", ")}`)}e.services.log(` Skills: ${i}`),e.services.log(` Agents: ${l}`),s.withN8n&&(e.services.log(` N8n agents: ${c}`),e.services.log(` N8n skills: ${d}`)),(s.withOpenCode||P)&&(e.services.log(` OpenCode agents: ${g}`),e.services.log(` OpenCode skills: ${u}`));let x=s.autoMode&&S(R(n,".kiro"));if(s.withKiro||x){let{createKiroInstaller:h}=await import("./kiro-installer-RNM47FV5.js"),a=await h({projectRoot:n,installAgents:!0,installSkills:!0,installHooks:!0,installSteering:!0,overwrite:r}).install();y=a.agentsInstalled.length,m=a.skillsInstalled.length,v=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: ${m}`),e.services.log(` Kiro hooks: ${v}`),e.services.log(` Kiro steering: ${a.steeringInstalled.length}`),a.mcpConfigured&&e.services.log(" Kiro MCP: .kiro/settings/mcp.json")}let C=[];if(s.withCopilot||s.autoMode&&S(R(n,".vscode"))){let{createCopilotInstaller:h}=await import("./copilot-installer-3PKCX5K5.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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(s.withCursor||s.autoMode&&S(R(n,".cursor"))){let{createCursorInstaller:h}=await import("./cursor-installer-UY6GWKTO.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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(s.withCline){let{createClineInstaller:h}=await import("./cline-installer-E2LF2DQS.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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(s.withKiloCode||s.autoMode&&S(R(n,".kilocode"))){let{createKiloCodeInstaller:h}=await import("./kilocode-installer-VWMNI4QX.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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(s.withRooCode||s.autoMode&&S(R(n,".roo"))){let{createRooCodeInstaller:h}=await import("./roocode-installer-GTVII272.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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(s.withCodex||s.autoMode&&S(R(n,".codex"))){let{createCodexInstaller:h}=await import("./codex-installer-LGOQ23ZS.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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}`)}if(s.withWindsurf||s.autoMode&&S(R(n,".windsurf"))){let{createWindsurfInstaller:h}=await import("./windsurf-installer-NIEH46E2.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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(s.withContinueDev||s.autoMode&&S(R(n,".continue"))){let{createContinueDevInstaller:h}=await import("./continuedev-installer-HQAEAQZU.js"),a=await h({projectRoot:n,overwrite:r}).install();a.mcpConfigured&&C.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 C.length>0&&e.services.log(` Platforms configured: ${C.join(", ")}`),{skillsInstalled:i,agentsInstalled:l,n8nAgents:c,n8nSkills:d,openCodeAgents:g,openCodeSkills:u,kiroAgents:y,kiroSkills:m,kiroHooks:v,platformsConfigured:C}}detectVersionUpgrade(e){let t=R(e.projectRoot,".agentic-qe","config.yaml");if(!S(t))return!1;try{let o=Be(t,"utf-8").match(/version:\s*"?([^"\n]+)"?/)?.[1],r=e.config.version;return o!==void 0&&o!==r}catch{return!1}}};import{existsSync as ze,mkdirSync as Ke,writeFileSync as oe}from"fs";import{join as O}from"path";var z=class extends f{name="workers";description="Configure background workers";order=100;critical=!1;requiresPhases=["configuration"];async shouldRun(e){let t=e.config;return t?.workers?.daemonAutoStart&&(t?.workers?.enabled?.length??0)>0}async run(e){let t=e.config,{projectRoot:n}=e;if(!t.workers.daemonAutoStart||t.workers.enabled.length===0)return{workersDir:"",workersConfigured:0,registryPath:"",daemonStarted:!1,daemonPid:null};let s=O(n,".agentic-qe","workers");ze(s)||Ke(s,{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=O(s,"registry.json"),l={version:t.version,maxConcurrent:t.workers.maxConcurrent,workers:r,createdAt:new Date().toISOString(),daemonPid:null};oe(i,JSON.stringify(l,null,2),"utf-8");for(let y of t.workers.enabled){let m=O(s,`${y}.json`),v={name:y,enabled:!0,interval:t.workers.intervals[y]||o[y]||6e4,projectRoot:n,dataDir:O(n,".agentic-qe","data"),createdAt:new Date().toISOString()};oe(m,JSON.stringify(v,null,2),"utf-8")}let c=O(s,"start-daemon.cjs");oe(c,`#!/usr/bin/env node
|
|
108
108
|
// AQE v3 Worker Daemon Startup Script (cross-platform)
|
|
109
109
|
// Generated by aqe init
|
|
110
110
|
// Starts the MCP server with background workers enabled
|
|
@@ -183,7 +183,7 @@ try {
|
|
|
183
183
|
console.log('Daemon not running (stale PID file)');
|
|
184
184
|
try { unlinkSync(pidFile); } catch {}
|
|
185
185
|
}
|
|
186
|
-
`),e.services.log(` Workers dir: ${s}`),e.services.log(` Workers: ${t.workers.enabled.join(", ")}`),e.services.log(` Registry: ${i}`),{workersDir:s,workersConfigured:t.workers.enabled.length,registryPath:i,daemonStarted:!1,daemonPid:null}}};import{existsSync as Ye,readFileSync as Je,writeFileSync as pe}from"fs";import{join as
|
|
186
|
+
`),e.services.log(` Workers dir: ${s}`),e.services.log(` Workers: ${t.workers.enabled.join(", ")}`),e.services.log(` Registry: ${i}`),{workersDir:s,workersConfigured:t.workers.enabled.length,registryPath:i,daemonStarted:!1,daemonPid:null}}};import{existsSync as Ye,readFileSync as Je,writeFileSync as pe}from"fs";import{join as je}from"path";var K=class extends f{name="claude-md";description="Generate CLAUDE.md";order=110;critical=!1;requiresPhases=["configuration"];async run(e){let t=e.config,{projectRoot:n}=e,s=je(n,"CLAUDE.md"),o=this.generateContent(t),r=!1;if(Ye(s)){let i=Je(s,"utf-8");if(i.includes("## Agentic QE v3"))return e.services.log(" CLAUDE.md already has AQE section"),{generated:!1,path:s,backupCreated:!1};let l=je(n,"CLAUDE.md.backup");pe(l,i,"utf-8"),r=!0,pe(s,i+`
|
|
187
187
|
|
|
188
188
|
`+o,"utf-8")}else pe(s,o,"utf-8");return e.services.log(` Path: ${s}`),r&&e.services.log(" Backup created"),{generated:!0,path:s,backupCreated:r}}generateContent(e){let t=e.domains.enabled.slice(0,6).join(", "),n=Math.max(0,e.domains.enabled.length-6);return`## Agentic QE v3
|
|
189
189
|
|
|
@@ -347,7 +347,7 @@ Task({ prompt: "Security audit", subagent_type: "qe-security-scanner", run_in_ba
|
|
|
347
347
|
|
|
348
348
|
---
|
|
349
349
|
*Generated by AQE v3 init - ${new Date().toISOString()}*
|
|
350
|
-
`}};import{existsSync as
|
|
350
|
+
`}};import{existsSync as D,readFileSync as Xe}from"fs";import{join as F,dirname as Ze}from"path";import{mkdirSync as qe,writeFileSync as et}from"fs";le();var Y=class extends f{name="verification";description="Verify installation";order=120;critical=!0;requiresPhases=["database","configuration"];async run(e){let t=e.config,{projectRoot:n}=e,s=[],o=F(n,".agentic-qe","memory.db");s.push({name:"Database exists",passed:D(o)}),s.push({name:".agentic-qe directory",passed:D(F(n,".agentic-qe"))});let r=F(n,".agentic-qe","config.yaml");await this.saveConfig(t,n),s.push({name:"Config saved",passed:D(r)});let i=await this.writeVersionToDb(t.version,n);s.push({name:"Version marker",passed:i});let l=["Database exists",".agentic-qe directory","Config saved"],c=s.filter(d=>l.includes(d.name)).every(d=>d.passed);e.services.log(" Verification checks:");for(let d of s){let g=l.includes(d.name),u=d.passed?"\u2713":g?"\u2717":"\u26A0",y=!g&&!d.passed?" (optional)":"";e.services.log(` ${u} ${d.name}${y}`)}return{verified:c,versionWritten:i,configSaved:D(r),checks:s}}async writeVersionToDb(e,t){let n=F(t,".agentic-qe","memory.db");try{let s=Ze(n);D(s)||qe(s,{recursive:!0});let o=_(n);try{o.exec(`
|
|
351
351
|
CREATE TABLE IF NOT EXISTS kv_store (
|
|
352
352
|
key TEXT NOT NULL,
|
|
353
353
|
namespace TEXT NOT NULL,
|
|
@@ -362,9 +362,9 @@ Task({ prompt: "Security audit", subagent_type: "qe-security-scanner", run_in_ba
|
|
|
362
362
|
`).run("aqe_version",JSON.stringify(e),r),o.prepare(`
|
|
363
363
|
INSERT OR REPLACE INTO kv_store (key, namespace, value, created_at)
|
|
364
364
|
VALUES (?, '_system', ?, ?)
|
|
365
|
-
`).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 n=F(t,".agentic-qe");
|
|
366
|
-
`),s="",o="";for(let i of n){if(i.trim().startsWith("#")||i.trim()==="")continue;let l=i.match(/^(\w+):\s*(.*)$/);if(l){s=l[1],o="";let u=l[2].trim();u&&!u.startsWith('"')?t[s]=this.parseValue(u):u?t[s]=this.parseValue(u):t[s]={};continue}let c=i.match(/^ (\w+):\s*(.*)$/);if(c&&s){o=c[1];let u=c[2].trim();t[s]||(t[s]={}),u?t[s][o]=this.parseValue(u):t[s][o]={};continue}let d=i.match(/^ ([\w-]+):\s*(.*)$/);if(d&&s&&o){let u=d[1],
|
|
367
|
-
`)}};ae();import{existsSync as
|
|
365
|
+
`).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 n=F(t,".agentic-qe");D(n)||qe(n,{recursive:!0});let s=F(n,"config.yaml");if(D(s)){let r=this.loadExistingConfig(s);r&&(e=this.mergeConfigs(e,r))}let o=this.configToYAML(e);et(s,o,"utf-8")}loadExistingConfig(e){try{let t=Xe(e,"utf-8");return this.parseYAML(t)}catch{return null}}parseYAML(e){try{let t={},n=e.split(`
|
|
366
|
+
`),s="",o="";for(let i of n){if(i.trim().startsWith("#")||i.trim()==="")continue;let l=i.match(/^(\w+):\s*(.*)$/);if(l){s=l[1],o="";let u=l[2].trim();u&&!u.startsWith('"')?t[s]=this.parseValue(u):u?t[s]=this.parseValue(u):t[s]={};continue}let c=i.match(/^ (\w+):\s*(.*)$/);if(c&&s){o=c[1];let u=c[2].trim();t[s]||(t[s]={}),u?t[s][o]=this.parseValue(u):t[s][o]={};continue}let d=i.match(/^ ([\w-]+):\s*(.*)$/);if(d&&s&&o){let u=d[1],y=d[2].trim(),m=t[s];m[o]||(m[o]={}),typeof m[o]=="object"&&!Array.isArray(m[o])&&(m[o][u]=this.parseValue(y));continue}let g=i.match(/^ - "?([^"]*)"?$/);if(g&&s&&o){let u=t[s];Array.isArray(u[o])||(u[o]=[]),u[o].push(g[1])}}let r=[["domains","enabled"],["domains","disabled"],["workers","enabled"]];for(let[i,l]of r){let c=t[i];c&&l in c&&!Array.isArray(c[l])&&(c[l]=[])}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 n=new Set(t.domains.enabled),s=new Set(e.domains.enabled);for(let r of s)n.add(r);let o=new Set(Array.isArray(t.domains?.disabled)?t.domains.disabled:[]);e.domains.enabled=Array.from(n).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.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","# - 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}`,"","workers:"," enabled:",...e.workers.enabled.map(n=>` - "${n}"`)," intervals:",...Object.entries(e.workers.intervals).map(([n,s])=>` ${n}: ${s}`),` 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(n=>` - "${n}"`)," disabled:",...e.domains.disabled.map(n=>` - "${n}"`),"","agents:",` maxConcurrent: ${e.agents.maxConcurrent}`,` defaultTimeout: ${e.agents.defaultTimeout}`,""].join(`
|
|
367
|
+
`)}};ae();import{existsSync as j,mkdirSync as Te,readdirSync as Me,copyFileSync as Oe}from"fs";import{join as b,dirname as tt}from"path";import{fileURLToPath as nt}from"url";var st=nt(import.meta.url),Fe=tt(st);function rt(){let p=[b(Fe,"../../assets/governance"),b(Fe,"../assets/governance")],e=Ie(import.meta.url);e&&(p.push(b(e,"assets/governance")),p.push(b(e,"dist/assets/governance"))),p.push(b(process.cwd(),"node_modules/agentic-qe/assets/governance")),p.push(b(process.cwd(),"assets/governance"));for(let t of p)if(j(t))return t;throw new Error(`Governance assets not found. Package may be corrupted. Searched: ${p.join(", ")}`)}var ge=class{projectRoot;overwrite;skipShards;assetsPath;constructor(e){this.projectRoot=e.projectRoot,this.overwrite=e.overwrite??!1,this.skipShards=e.skipShards??!1,this.assetsPath=rt()}async install(){let e=[],t=[],n=[],s=b(this.projectRoot,".claude","guidance"),o=b(s,"shards");try{Te(s,{recursive:!0}),this.skipShards||Te(o,{recursive:!0})}catch(d){return n.push(`Failed to create governance directory: ${E(d)}`),{installed:e,skipped:t,errors:n,governanceDir:s,constitutionInstalled:!1,shardsInstalled:0}}let r=!1,i=b(this.assetsPath,"constitution.md"),l=b(s,"constitution.md");if(j(i))try{!j(l)||this.overwrite?(Oe(i,l),e.push("constitution.md"),r=!0):t.push("constitution.md")}catch(d){n.push(`Failed to install constitution.md: ${E(d)}`)}else n.push("constitution.md not found in assets");let c=0;if(!this.skipShards){let d=b(this.assetsPath,"shards");if(j(d))try{let g=Me(d).filter(u=>u.endsWith(".shard.md"));for(let u of g){let y=b(d,u),m=b(o,u);try{!j(m)||this.overwrite?(Oe(y,m),e.push(`shards/${u}`),c++):t.push(`shards/${u}`)}catch(v){n.push(`Failed to install ${u}: ${E(v)}`)}}}catch(g){n.push(`Failed to read shards directory: ${E(g)}`)}else n.push("Shards directory not found in assets")}return{installed:e,skipped:t,errors:n,governanceDir:s,constitutionInstalled:r,shardsInstalled:c}}isInstalled(){let e=b(this.projectRoot,".claude","guidance","constitution.md");return j(e)}getInstalledShards(){let e=b(this.projectRoot,".claude","guidance","shards");if(!j(e))return[];try{return Me(e).filter(t=>t.endsWith(".shard.md"))}catch{return[]}}};function Ne(p){return new ge(p)}var J=class extends f{name="governance";description="Install governance configuration";order=95;critical=!1;requiresPhases=["configuration"];async shouldRun(e){return 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:n}=e,s=n.upgrade,o=Ne({projectRoot:t,overwrite:s});if(o.isInstalled()&&!s){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 ot=new N,it=new Q,at=new L,lt=new V,ct=new W,dt=new H,ut=new G,pt=new U,gt=new B,mt=new z,ft=new K,ht=new Y,yt=new J;function Qe(){return[ot,it,at,lt,ct,dt,ut,pt,gt,yt,mt,ft,ht]}var me=class{phases;context;constructor(e){this.context=this.createContext(e),this.phases=e.customPhases??Qe()}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,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,withWindsurf:e.withWindsurf||t,withContinueDev:e.withContinueDev||t,withAllPlatforms:e.withAllPlatforms,n8nApiConfig:e.n8nApiConfig,wizardAnswers:e.wizardAnswers,noGovernance:e.noGovernance,noMcp:e.noMcp},config:{},enhancements:{claudeFlow:!1,ruvector:!1},results:new Map,services:{log:n=>console.log(n),warn:n=>console.warn(n),error:n=>console.error(n)}}}async initialize(){let e=Date.now(),t=[];try{let n=[...this.phases].sort((s,o)=>s.order-o.order);for(let s of n){if(!await s.shouldRun(this.context))continue;console.log(`
|
|
368
368
|
\u{1F4CB} ${s.description}...`);let r=await s.execute(this.context);if(this.context.results.set(s.name,r),t.push({step:s.description,status:r.success?"success":"error",message:r.message||"",durationMs:r.durationMs}),!r.success&&s.critical){if(console.error(`
|
|
369
|
-
\u274C Critical phase failed: ${s.name}`),s.rollback)try{await s.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(n){return t.push({step:"Initialization Failed",status:"error",message:
|
|
370
|
-
`)}export{me as ModularInitOrchestrator,vt as createModularInitOrchestrator,
|
|
369
|
+
\u274C Critical phase failed: ${s.name}`),s.rollback)try{await s.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(n){return t.push({step:"Initialization Failed",status:"error",message:E(n),durationMs:0}),this.createFailureResult(t,e)}}createSuccessResult(e,t){let n=this.context.config,s=this.context.results.get("learning"),o=this.context.results.get("code-intelligence"),r=this.context.results.get("assets"),i=this.context.results.get("hooks"),l=this.context.results.get("mcp"),c=this.context.results.get("claude-md"),d=this.context.results.get("workers");return{success:!0,config:n||ce("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:s?.data?.patternsLoaded??0,skillsInstalled:r?.data?.skillsInstalled??0,agentsInstalled:r?.data?.agentsInstalled??0,hooksConfigured:i?.data?.configured??!1,mcpConfigured:l?.data?.configured??!1,claudeMdGenerated:c?.data?.generated??!1,workersStarted:d?.data?.workersConfigured??0},totalDurationMs:Date.now()-t,timestamp:new Date}}createFailureResult(e,t){return{success:!1,config:ce("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 vt(p){return new me(p)}async function ws(p){return await vt({projectRoot:p,autoMode:!0}).initialize()}function bs(p){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 n of p.steps){let s=n.status==="success"?"\u2713":n.status==="error"?"\u2717":"\u25CB",o=n.step.substring(0,48).padEnd(48);e.push(`\u2502 ${s} ${o} ${String(n.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: ${p.config.project.name.substring(0,45).padEnd(45)} \u2502`),e.push(`\u2502 Type: ${p.config.project.type.padEnd(48)} \u2502`),e.push(`\u2502 Code Intel: ${String(p.summary.codeIntelligenceIndexed).padEnd(43)} \u2502`),e.push(`\u2502 Patterns: ${String(p.summary.patternsLoaded).padEnd(45)} \u2502`),e.push(`\u2502 Skills: ${String(p.summary.skillsInstalled).padEnd(47)} \u2502`),e.push(`\u2502 Agents: ${String(p.summary.agentsInstalled).padEnd(47)} \u2502`),e.push(`\u2502 Workers: ${String(p.summary.workersStarted).padEnd(46)} \u2502`),e.push(`\u2502 Hooks: ${p.summary.hooksConfigured?"Yes":"No".padEnd(48)} \u2502`),e.push(`\u2502 MCP: ${p.summary.mcpConfigured?"Yes":"No".padEnd(50)} \u2502`),e.push(`\u2502 CLAUDE.md: ${p.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=p.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(`
|
|
370
|
+
`)}export{me as ModularInitOrchestrator,vt as createModularInitOrchestrator,bs as formatInitResultModular,ws as quickInitModular};
|
|
@@ -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.9.
|
|
2
|
-
import{a as y,b as w,c as u}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.9.4");process.exit(0)}
|
|
2
|
+
import{a as y,b as w,c as u}from"./chunk-VBYREHZI.js";import"./chunk-C2HGOUEB.js";import{Command as O}from"commander";import{resolve as A}from"path";import s from"chalk";import*as M from"node:fs/promises";import{parse as W}from"yaml";var E=["eq","neq","gt","gte","lt","lte","contains","exists"],D=["sequential","parallel"],N=/\$\{([^}]+)\}/g,k=class{parse(r,t){try{let n=this.interpolateVariables(r,t??{}),a=W(n);return this.validateAndConvert(a)}catch(n){return u(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 M.readFile(r,"utf-8");return this.parse(n,t)}catch(n){return u(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(N,(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 u(new Error("YAML must parse to an object"));let t=r;if(!t.id||typeof t.id!="string")return u(new Error("Missing or invalid required field 'id' (string)"));if(!t.name||typeof t.name!="string")return u(new Error("Missing or invalid required field 'name' (string)"));if(!t.steps||!Array.isArray(t.steps)||t.steps.length===0)return u(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(!D.includes(t.defaultMode))return u(new Error(`Invalid defaultMode '${String(t.defaultMode)}'. Must be one of: ${D.join(", ")}`));o=t.defaultMode}let e;if(t.timeout!==void 0){if(typeof t.timeout!="number"||t.timeout<=0)return u(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,l=this.validateSteps(t.steps);if(!l.success)return l;let d;if(t.triggers!==void 0){if(!Array.isArray(t.triggers))return u(new Error("'triggers' must be an array"));let g=this.validateTriggers(t.triggers);if(!g.success)return g;d=g.value}let p=this.detectCircularDependencies(l.value);if(p)return u(new Error(`Circular dependency detected: ${p}`));let c={id:t.id,name:t.name,description:n,version:a,steps:l.value,...o!==void 0&&{defaultMode:o},...e!==void 0&&{timeout:e},...i!==void 0&&{tags:i},...d!==void 0&&{triggers:d}};return w(c)}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 u(new Error(`Step at index ${a} must be an object`));let e=o;if(!e.id||typeof e.id!="string")return u(new Error(`Step at index ${a}: missing or invalid 'id' (string)`));if(n.has(e.id))return u(new Error(`Duplicate step ID: ${e.id}`));if(n.add(e.id),!e.name||typeof e.name!="string")return u(new Error(`Step '${e.id}': missing or invalid 'name' (string)`));if(!e.domain||typeof e.domain!="string")return u(new Error(`Step '${e.id}': missing or invalid 'domain' (string)`));if(!y.includes(e.domain))return u(new Error(`Step '${e.id}': invalid domain '${e.domain}'. Must be one of: ${y.join(", ")}`));if(!e.action||typeof e.action!="string")return u(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 u(i);let l=this.validateStringRecord(e.outputMapping,`Step '${e.id}'.outputMapping`);if(l!==void 0&&l instanceof Error)return u(l);let d;if(e.dependsOn!==void 0){if(!Array.isArray(e.dependsOn)||!e.dependsOn.every(f=>typeof f=="string"))return u(new Error(`Step '${e.id}': 'dependsOn' must be an array of strings`));for(let f of e.dependsOn)if(!r.some(j=>j.id===f))return u(new Error(`Step '${e.id}' depends on unknown step: ${f}`));d=e.dependsOn}let p;if(e.condition!==void 0){let f=this.validateCondition(e.condition,`Step '${e.id}'.condition`);if(!f.success)return f;p=f.value}let c;if(e.skipCondition!==void 0){let f=this.validateCondition(e.skipCondition,`Step '${e.id}'.skipCondition`);if(!f.success)return f;c=f.value}let g;if(e.timeout!==void 0){if(typeof e.timeout!="number"||e.timeout<=0)return u(new Error(`Step '${e.id}': 'timeout' must be a positive number`));g=e.timeout}let $;if(e.retry!==void 0){let f=this.validateRetry(e.retry,e.id);if(!f.success)return f;$=f.value}let b;if(e.rollback!==void 0){let f=this.validateRollback(e.rollback,e.id);if(!f.success)return f;b=f.value}let R=typeof e.continueOnFailure=="boolean"?e.continueOnFailure:void 0,S;if(e.approval!==void 0){let f=this.validateApproval(e.approval,e.id);if(!f.success)return f;S=f.value}let C={id:e.id,name:e.name,domain:e.domain,action:e.action,...i!==void 0&&{inputMapping:i},...l!==void 0&&{outputMapping:l},...d!==void 0&&{dependsOn:d},...p!==void 0&&{condition:p},...c!==void 0&&{skipCondition:c},...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(C)}return w(t)}validateCondition(r,t){if(!r||typeof r!="object"||Array.isArray(r))return u(new Error(`${t}: must be an object with path, operator, value`));let n=r;return!n.path||typeof n.path!="string"?u(new Error(`${t}: missing or invalid 'path' (string)`)):!n.operator||typeof n.operator!="string"?u(new Error(`${t}: missing or invalid 'operator' (string)`)):E.includes(n.operator)?n.value===void 0?u(new Error(`${t}: missing 'value'`)):w({path:n.path,operator:n.operator,value:n.value}):u(new Error(`${t}: invalid operator '${n.operator}'. Must be one of: ${E.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 u(new Error(`Trigger at index ${n} must be an object`));let o=a;if(!o.eventType||typeof o.eventType!="string")return u(new Error(`Trigger at index ${n}: missing or invalid 'eventType' (string)`));let e;if(o.sourceDomain!==void 0){if(typeof o.sourceDomain!="string"||!y.includes(o.sourceDomain))return u(new Error(`Trigger at index ${n}: invalid 'sourceDomain' '${String(o.sourceDomain)}'`));e=o.sourceDomain}let i;if(o.condition!==void 0){let d=this.validateCondition(o.condition,`Trigger at index ${n}.condition`);if(!d.success)return d;i=d.value}let l=this.validateStringRecord(o.inputMapping,`Trigger at index ${n}.inputMapping`);if(l!==void 0&&l instanceof Error)return u(l);t.push({eventType:o.eventType,...e!==void 0&&{sourceDomain:e},...i!==void 0&&{condition:i},...l!==void 0&&{inputMapping:l}})}return w(t)}validateRetry(r,t){if(!r||typeof r!="object"||Array.isArray(r))return u(new Error(`Step '${t}': 'retry' must be an object`));let n=r;return typeof n.maxAttempts!="number"||n.maxAttempts<1?u(new Error(`Step '${t}': retry.maxAttempts must be a positive integer`)):typeof n.backoffMs!="number"||n.backoffMs<0?u(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 u(new Error(`Step '${t}': 'rollback' must be an object`));let n=r;return!n.domain||typeof n.domain!="string"||!y.includes(n.domain)?u(new Error(`Step '${t}': rollback.domain is invalid or missing`)):!n.action||typeof n.action!="string"?u(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 u(new Error(`Step '${t}': 'approval' must be a boolean or object`));let n=r,a={};if(n.autoApproveAfter!==void 0){if(typeof n.autoApproveAfter!="number"||n.autoApproveAfter<0)return u(new Error(`Step '${t}': approval.autoApproveAfter must be a non-negative number`));a.autoApproveAfter=n.autoApproveAfter}if(n.message!==void 0){if(typeof n.message!="string")return u(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(t in r)return r[t];let n=t.split("."),a=r;for(let o of n){if(a==null||typeof a!="object")return;a=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(l=>l.id===o);if(i?.dependsOn)for(let l of i.dependsOn){let d=a(l,[...e,o]);if(d)return d}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 T(m){return h(m)}function v(m){return m.workflowOrchestrator}function X(m,r,t){let n=new k,a=new O("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=v(m);if(!i){console.error(s.red(' Workflow orchestrator not available. Run "aqe fleet init" first.')),await r(1);return}let l=A(o),d=e.vars?h(e.vars):void 0;console.log(s.blue(`
|
|
3
3
|
Loading pipeline from: ${o}
|
|
4
4
|
`));let p=await n.loadFromFile(l,d);if(!p.success){console.error(s.red(` Parse error: ${p.error.message}`)),await r(1);return}let c=p.value,g=i.registerWorkflow(c);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(c.id)}`),console.log(` Name: ${s.cyan(c.name)}`),console.log(` Steps: ${s.cyan(c.steps.length)}`),console.log(` Version: ${s.cyan(c.version)}`),c.tags?.length&&console.log(` Tags: ${s.cyan(c.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=A(o),l=e.vars?h(e.vars):void 0;console.log(s.blue(`
|
|
5
5
|
Validating pipeline: ${o}
|
|
@@ -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.9.
|
|
2
|
-
import{a as u}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.9.4");process.exit(0)}
|
|
2
|
+
import{a as u}from"./chunk-2JLKOGNU.js";import{a as y,c as w}from"./chunk-F6AU2MAZ.js";import{b as $}from"./chunk-C2HGOUEB.js";import{Command as v}from"commander";import o from"chalk";import{existsSync as d,readFileSync as P}from"node:fs";import m from"node:path";w();var C=$({});var p=Object.keys(u);function h(s){return p.includes(s)}function x(s,e){let t=m.join(s,e.configPath),n=m.join(s,e.rulesPath);return{configExists:d(t),rulesExists:d(n)}}function E(s,e){try{let t=P(s,"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:y(t)}}}function I(s,e){try{return P(s,"utf-8").includes("agentic-qe")}catch{return!1}}function j(){let s=new v("platform").description("Manage coding agent platform configurations");return s.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,n=36,r=14;console.log(o.gray(` ${"Platform".padEnd(t)}${"Config Path".padEnd(n)}${"Status".padEnd(r)}`)),console.log(o.gray(` ${"\u2500".repeat(t+n+r)}`));for(let l of p){let f=u[l],{configExists:c,rulesExists:a}=x(e,f),i=c&&a?o.green("configured"):c||a?o.yellow("partial"):o.gray("not configured");console.log(` ${o.white(f.name.padEnd(t))}${o.gray(f.configPath.padEnd(n))}${i}`)}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("")}),s.command("setup <name>").description("Set up a specific platform configuration").option("--overwrite","Overwrite existing configuration files").action(async(e,t)=>{let n=process.cwd();h(e)||(console.log(""),console.log(o.red(` Unknown platform: ${e}`)),console.log(o.gray(` Valid platforms: ${p.join(", ")}`)),console.log(""),process.exit(1));let r=u[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 l=await C(`../../init/${e}-installer.js`),c=[`create${e.charAt(0).toUpperCase()}${e.slice(1).replace(/([a-z])([A-Z])/g,"$1$2")}Installer`,`create${R(e)}Installer`],a;for(let i of c)if(typeof l[i]=="function"){a=l[i];break}if(!a){for(let i of Object.keys(l))if(i.startsWith("create")&&i.endsWith("Installer")&&typeof l[i]=="function"){a=l[i];break}}a||(console.log(o.red(` Could not find installer factory for ${e}`)),process.exit(1));let g=await a({projectRoot:n,overwrite:t.overwrite}).install();if(g.success)console.log(o.green(` ${r.name} configured successfully`)),g.mcpConfigured&&console.log(o.gray(` MCP config: ${r.configPath}`)),g.rulesInstalled&&console.log(o.gray(` Rules: ${r.rulesPath}`));else if(console.log(o.red(` ${r.name} setup failed`)),g.errors)for(let i of g.errors)console.log(o.red(` ${i}`))}catch(l){console.log(o.red(` Failed to set up ${r.name}: ${y(l)}`))}console.log("")}),s.command("verify <name>").description("Verify a platform configuration is correct").action(async e=>{let t=process.cwd();h(e)||(console.log(""),console.log(o.red(` Unknown platform: ${e}`)),console.log(o.gray(` Valid platforms: ${p.join(", ")}`)),console.log(""),process.exit(1));let n=u[e];console.log(""),console.log(o.bold.blue(` Verifying ${n.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 r=!0,l=m.join(t,n.configPath);if(d(l)?console.log(o.green(` [pass] Config file exists: ${n.configPath}`)):(console.log(o.red(` [fail] Config file missing: ${n.configPath}`)),r=!1),d(l)){let c=E(l,n.configFormat);c.valid?console.log(o.green(` [pass] Config file is valid ${n.configFormat.toUpperCase()}`)):(console.log(o.red(` [fail] Config file is invalid: ${c.error}`)),r=!1),I(l,n)?console.log(o.green(" [pass] Config contains agentic-qe entry")):(console.log(o.red(" [fail] Config does not contain agentic-qe entry")),r=!1)}let f=m.join(t,n.rulesPath);d(f)?console.log(o.green(` [pass] Rules file exists: ${n.rulesPath}`)):(console.log(o.red(` [fail] Rules file missing: ${n.rulesPath}`)),r=!1),console.log(""),r?console.log(o.green(` ${n.name} configuration is valid`)):(console.log(o.yellow(` ${n.name} configuration has issues`)),console.log(o.gray(` Run "aqe platform setup ${e}" to fix`))),console.log("")}),s}function R(s){return s.charAt(0).toUpperCase()+s.slice(1)}var V=j;export{j as createPlatformCommand,V as default};
|
|
@@ -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.9.
|
|
2
|
-
import{a as p,b as d,c as h}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.9.4");process.exit(0)}
|
|
2
|
+
import{a as p,b as d,c as h}from"./chunk-ONOYANDX.js";import"./chunk-C2HGOUEB.js";import{Command as _}from"commander";import*as g from"path";import{execFileSync as v}from"child_process";var $=/^[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+$/,w=/^[a-zA-Z0-9._\-/]+$/;function E(i,n){if(!$.test(i))throw new Error(`Invalid GitHub repo "${i}": must be owner/repo with alphanumeric, dots, hyphens, underscores only`);if(n&&!w.test(n))throw new Error(`Invalid tag "${n}": must be alphanumeric with dots, hyphens, underscores, slashes only`)}var u=class{type="github";cacheDir;constructor(n){this.cacheDir=n??g.join(process.cwd(),".agentic-qe","plugins-cache")}async resolve(n){let e=await this.getPluginPath(n),t=g.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);E(e,t);let o=g.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`,c=["clone","--depth","1"];t&&c.push("--branch",t),c.push(a,o),v("git",c,{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 l from"path";import*as s from"fs";import{execFileSync as y}from"child_process";var P=/^(@[a-zA-Z0-9._-]+\/)?[a-zA-Z0-9._-]+$/,S=/^[a-zA-Z0-9._\-+]+$/;function x(i,n){if(!P.test(i))throw new Error(`Invalid npm package name "${i}": contains unsafe characters`);if(n&&!S.test(n))throw new Error(`Invalid version "${n}": contains unsafe characters`)}var m=class{type="npm";cacheDir;constructor(n){this.cacheDir=n??l.join(process.cwd(),".agentic-qe","plugins-cache","npm")}async resolve(n){let e=await this.getPluginPath(n),t=l.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);x(e,t);let o=e.replace(/\//g,"__"),r=l.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,c=y("npm",["pack",a,"--pack-destination",r],{stdio:"pipe",timeout:6e4}).toString().trim(),f=l.join(r,c);y("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 N(){let i=I(),n=new _("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.9.
|
|
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.9.4");process.exit(0)}
|
|
2
|
+
import"./chunk-C2HGOUEB.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};
|
|
@@ -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.9.4");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-ENKPW6MA.js";import"./chunk-QEYPK7KS.js";import"./chunk-53M65YFH.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-C2HGOUEB.js";export{a as DefaultProtocolExecutor,b as createProtocolExecutor};
|
|
@@ -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.9.
|
|
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.9.4");process.exit(0)}
|
|
2
|
+
import"./chunk-4BQTEPAD.js";import{c as i}from"./chunk-4GJAYXB7.js";import"./chunk-C2HGOUEB.js";import n from"chalk";var a=class{name="protocol";description="Execute coordination protocols";cleanupAndExit;ensureInitialized;constructor(o,e){this.cleanupAndExit=o,this.ensureInitialized=e}register(o,e){o.command("protocol").description(this.description).command("run <protocolId>").description("Execute a protocol").option("--params <json>","Protocol parameters as JSON","{}").action(async(r,t)=>{await this.executeRun(r,t,e)})}async executeRun(o,e,c){if(await this.ensureInitialized())try{let r=i(e.params,"params");console.log(n.blue(`
|
|
3
3
|
Executing protocol: ${o}
|
|
4
4
|
`));let t=await c.queen.executeProtocol(o,r);t.success?(console.log(n.green(" Protocol execution started")),console.log(n.cyan(` Execution ID: ${t.value}`))):console.log(n.red(` Failed to execute protocol: ${t.error.message}`)),console.log("")}catch(r){console.error(n.red(`
|
|
5
5
|
Failed to execute protocol:`),r),await this.cleanupAndExit(1)}}getHelp(){return`
|
|
@@ -1,3 +1,3 @@
|
|
|
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.9.
|
|
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.9.4");process.exit(0)}
|
|
2
|
+
import"./chunk-C2HGOUEB.js";import{Command as l}from"commander";import*as c from"crypto";import*as n from"fs";import*as r from"path";function m(t){let e=JSON.stringify(t,null,0);return c.createHash("sha256").update(e).digest("hex")}async function d(t){let e={testCount:0,passRate:0,coveragePercent:0,vulnerabilities:0,qualityScore:0,patternsUsed:0};try{let a=r.join(t,"junit.xml");if(n.existsSync(a)){let o=n.readFileSync(a,"utf-8"),s=o.match(/tests="(\d+)"/),i=o.match(/failures="(\d+)"/);if(s){e.testCount=parseInt(s[1],10);let u=i?parseInt(i[1],10):0;e.passRate=e.testCount>0?(e.testCount-u)/e.testCount*100:0}}}catch{}try{let a=r.join(t,"coverage","coverage-summary.json");if(n.existsSync(a)){let o=JSON.parse(n.readFileSync(a,"utf-8"));e.coveragePercent=o?.total?.lines?.pct??0}}catch{}try{let a=r.join(t,".agentic-qe","memory.db");n.existsSync(a)&&(e.patternsUsed=1)}catch{}return e.qualityScore=Math.round(e.passRate*.4+e.coveragePercent*.3+(e.vulnerabilities===0?100:Math.max(0,100-e.vulnerabilities*10))*.3),e}function y(t,e){let a={version:"1.0.0",timestamp:new Date().toISOString(),projectRoot:t,attestation:{testsExecuted:e.testCount>0,coverageChecked:e.coveragePercent>0,securityScanned:e.vulnerabilities===0,qualityGatePassed:e.qualityScore>=70},metrics:e,generatedBy:"agentic-qe prove"},o=m(a);return{...a,hash:o}}function f(t){return["# Proof of Quality","",`**Generated:** ${t.timestamp}`,`**Project:** ${t.projectRoot}`,`**Hash:** \`${t.hash}\``,"","## Attestation","","| Check | Status |","|-------|--------|",`| Tests Executed | ${t.attestation.testsExecuted?"PASS":"FAIL"} |`,`| Coverage Checked | ${t.attestation.coverageChecked?"PASS":"FAIL"} |`,`| Security Scanned | ${t.attestation.securityScanned?"PASS":"FAIL"} |`,`| Quality Gate | ${t.attestation.qualityGatePassed?"PASSED":"FAILED"} |`,"","## Metrics","","| Metric | Value |","|--------|-------|",`| Tests | ${t.metrics.testCount} |`,`| Pass Rate | ${t.metrics.passRate.toFixed(1)}% |`,`| Coverage | ${t.metrics.coveragePercent.toFixed(1)}% |`,`| Vulnerabilities | ${t.metrics.vulnerabilities} |`,`| Quality Score | ${t.metrics.qualityScore}/100 |`,"","---",`*${t.generatedBy}*`].join(`
|
|
3
3
|
`)}async function p(t){let e=t.projectRoot??process.cwd(),a=await d(e),o=y(e,a),s=t.format==="markdown"?f(o):JSON.stringify(o,null,2);return t.output?(n.writeFileSync(t.output,s),console.log(`Quality attestation written to ${t.output}`)):console.log(s),o}function g(t,e,a){return new l("prove").description("Generate a verifiable Proof-of-Quality attestation").option("-F, --format <format>","Output format (json|markdown)","json").option("-o, --output <path>","Write attestation to file").action(async o=>{try{await p({format:o.format,output:o.output}),await e(0)}catch(s){console.error("Failed to generate proof-of-quality:",s),await e(1)}})}export{y as buildAttestation,d as collectMetrics,g as createProveCommand,f as formatMarkdown,p as handleProve,m as hashAttestation};
|
|
@@ -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.9.4");process.exit(0)}
|
|
2
|
+
import{a as h,b as i,c as j,d as k,e as l,f as m,g as n}from"./chunk-NRH2QE4X.js";import"./chunk-VBXJBXMG.js";import{a as e,b as f,d as g}from"./chunk-HKTNFHWI.js";import"./chunk-EZTUUOVI.js";import{a,b,c,h as d}from"./chunk-UJLSCJJS.js";import"./chunk-RRQEIGLS.js";import"./chunk-27P4VTCY.js";import"./chunk-MUX762XZ.js";import"./chunk-Q6FSXNQP.js";import"./chunk-3RHIPCBG.js";import"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";export{j as AGENT_CAPABILITIES,h as DEFAULT_QE_REASONING_BANK_CONFIG,i as PRETRAINED_PATTERNS,m as QEReasoningBank,l as RELATED_DOMAINS,d as applyPatternTemplate,k as calculateAgentScores,n as createQEReasoningBank,a as detectQEDomain,b as detectQEDomains,g as generateGuidanceContext,f as getCombinedGuidance,e as getGuidance,c as mapQEDomainToAQE};
|
|
@@ -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.9.
|
|
2
|
-
import{c as l,d as u,h as d}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.9.4");process.exit(0)}
|
|
2
|
+
import{c as l,d as u,h as d}from"./chunk-GT35EJKR.js";import"./chunk-C2HGOUEB.js";import{Command as w}from"commander";import e from"chalk";function P(g,o,h){return new w("quality").description("Quality assessment shortcut").option("--gate","Run quality gate evaluation").option("-F, --format <format>","Output format (text|json|markdown)","text").option("-o, --output <path>","Write output to file").action(async i=>{if(await h())try{let r=i.format;{r==="text"&&console.log(e.blue(`
|
|
3
3
|
Running quality gate evaluation...
|
|
4
4
|
`));let m=await g.kernel.getDomainAPIAsync("quality-assessment");m||(console.log(e.red("Quality assessment domain not available")),await o(1));let f={coverage:0,testsPassing:0,criticalBugs:0,codeSmells:0,securityVulnerabilities:0,technicalDebt:0,duplications:0},y={coverage:{min:80},testsPassing:{min:95},criticalBugs:{max:0},codeSmells:{max:20},securityVulnerabilities:{max:0},technicalDebt:{max:5},duplications:{max:5}},n=await m.evaluateGate({gateName:"standard",metrics:f,thresholds:y});if(n.success&&n.value){let s=n.value,t={passed:s.passed??s.meetsThreshold??!0,score:s.score??s.grade??"N/A",checks:s.checks||[],recommendations:s.recommendations||[]};if(r==="json")l(u(t),i.output);else if(r==="markdown")l(d(t),i.output);else{let p=t.passed?e.green("\u2713 PASSED"):e.red("\u2717 FAILED");if(console.log(` Quality Gate: ${p}`),console.log(` Score: ${e.cyan(t.score)}
|
|
5
5
|
`),t.checks.length>0){console.log(e.cyan(" Checks:"));for(let a of t.checks){let b=a.passed?e.green("\u2713"):e.red("\u2717");console.log(` ${b} ${a.name}: ${a.value} (threshold: ${a.threshold})`)}}if(t.recommendations&&t.recommendations.length>0){console.log(e.cyan(`
|
|
@@ -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.9.4");process.exit(0)}
|
|
2
|
+
import{c as a,d as b,e as c,f as d}from"./chunk-5UKAEBKC.js";import"./chunk-B252DDC5.js";import"./chunk-DLMEBVLF.js";import"./chunk-TNWTQWLL.js";import"./chunk-GQ7DCSKS.js";import"./chunk-EHGTXIT7.js";import"./chunk-ZKWNZ3ZK.js";import"./chunk-4TZTGYBQ.js";import"./chunk-EZTUUOVI.js";import"./chunk-UJLSCJJS.js";import"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-WHT46PJM.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";export{a as DOMAIN_GROUPS,c as QueenCoordinator,b as TASK_DOMAIN_MAP,d as createQueenCoordinator};
|
|
@@ -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.9.
|
|
2
|
-
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i}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.9.4");process.exit(0)}
|
|
2
|
+
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i}from"./chunk-3RHIPCBG.js";import"./chunk-F6AU2MAZ.js";import{a}from"./chunk-Q2ZYUIS2.js";import"./chunk-C2HGOUEB.js";export{b as DEFAULT_EMBEDDING_CONFIG,e as clearEmbeddingCache,d as computeBatchEmbeddings,c as computeRealEmbedding,a as cosineSimilarity,f as getCacheStats,h as getEmbeddingDimension,g as isTransformerAvailable,i as resetInitialization};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.9.
|
|
2
|
-
import{b as p}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.9.4");process.exit(0)}
|
|
2
|
+
import{b as p}from"./chunk-2JLKOGNU.js";import{a as f,c as v}from"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";v();import{existsSync as n,mkdirSync as m,readFileSync as u,writeFileSync as a}from"fs";import{join as d,dirname as h}from"path";var l=class{projectRoot;overwrite;generator;constructor(r){this.projectRoot=r.projectRoot,this.overwrite=r.overwrite??!1,this.generator=p()}async install(){let r={success:!0,mcpConfigured:!1,modeInstalled:!1,errors:[],configPath:"",modePath:""};try{let t=this.generator.generateMcpConfig("roocode"),e=d(this.projectRoot,t.path);if(r.configPath=e,!n(e)||this.overwrite){let i=h(e);if(n(i)||m(i,{recursive:!0}),n(e)&&this.overwrite){let c=this.mergeExistingConfig(e,t.content);a(e,c)}else a(e,t.content);r.mcpConfigured=!0}let s=this.generator.generateBehavioralRules("roocode"),o=d(this.projectRoot,s.path);if(r.modePath=o,!n(o)||this.overwrite){let i=h(o);if(n(i)||m(i,{recursive:!0}),n(o)&&this.overwrite){let c=this.mergeExistingModes(o,s.content);a(o,c)}else a(o,s.content);r.modeInstalled=!0}}catch(t){r.success=!1,r.errors.push(`Roo Code installation failed: ${f(t)}`)}return r}mergeExistingConfig(r,t){try{let e=JSON.parse(u(r,"utf-8")),s=JSON.parse(t);return e.mcpServers||(e.mcpServers={}),Object.assign(e.mcpServers,s.mcpServers),JSON.stringify(e,null,2)+`
|
|
3
3
|
`}catch{return t}}mergeExistingModes(r,t){try{let e=JSON.parse(u(r,"utf-8")),s=JSON.parse(t);if(!Array.isArray(e))return t;let o=e.filter(i=>i.slug!=="qe-engineer");return o.push(...s),JSON.stringify(o,null,2)+`
|
|
4
4
|
`}catch{return t}}};function P(g){return new l(g)}export{l as RooCodeInstaller,P as createRooCodeInstaller};
|
|
@@ -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.9.4");process.exit(0)}
|
|
2
|
+
import{a,b,c}from"./chunk-J72Q6ERO.js";import"./chunk-A6ZBQCYB.js";import"./chunk-GSKZL36U.js";import"./chunk-YS6C2Q4F.js";import"./chunk-JMBUIVVE.js";import"./chunk-4GJAYXB7.js";import"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";export{a as ModelRouter,b as createModelRouter,c as createModelRouterWithAgentBooster};
|
|
@@ -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.9.4");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-QOU4R6AF.js";import"./chunk-NZ5LY2BT.js";import"./chunk-3SPYUOSS.js";import"./chunk-7FJIIB4H.js";import"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import"./chunk-F6AU2MAZ.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";export{a as RoutingFeedbackCollector,b as createRoutingFeedbackCollector};
|
|
@@ -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.9.
|
|
2
|
-
import{b as u}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.9.4");process.exit(0)}
|
|
2
|
+
import{b as u}from"./chunk-QOU4R6AF.js";import{c as m}from"./chunk-NZ5LY2BT.js";import"./chunk-3SPYUOSS.js";import"./chunk-7FJIIB4H.js";import"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import{a as l,c as f}from"./chunk-F6AU2MAZ.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";f();import o from"chalk";var d=class{name="routing";description="View routing performance, economics, and accuracy";cleanupAndExit;constructor(n){this.cleanupAndExit=n}getHelp(){return["aqe routing economics [--complexity <0-1>] [--json] Show tier efficiency & budget","aqe routing accuracy [--json] Show routing accuracy analysis","aqe routing metrics [--json] Show per-agent performance"].join(`
|
|
3
3
|
`)}register(n,r){let t=n.command("routing").description(this.description);t.command("economics").description("Show economic routing report: tier efficiency, budget, savings").option("-c, --complexity <value>","Task complexity for scoring (0-1)","0.5").option("--json","Output as JSON").action(async e=>{await this.executeEconomics(parseFloat(e.complexity)||.5,!!e.json)}),t.command("accuracy").description("Show routing accuracy analysis").option("--json","Output as JSON").action(async e=>{await this.executeAccuracy(!!e.json)}),t.command("metrics").description("Show per-agent performance metrics").option("--json","Output as JSON").action(async e=>{await this.executeMetrics(!!e.json)})}async executeEconomics(n,r){try{let t=u(100);await t.initialize(),t.enableEconomicRouting({},m());let e=t.getEconomicReport();if(!e){console.error(o.red(`
|
|
4
4
|
Economic routing is not available.
|
|
5
5
|
`)),await this.cleanupAndExit(1);return}if(r){console.log(JSON.stringify(e,(a,s)=>s===1/0?"Infinity":s,2)),await this.cleanupAndExit(0);return}console.log(o.blue(`
|