agentic-qe 3.9.15 → 3.9.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +37 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/cli/brain-commands.d.ts +14 -0
- package/dist/cli/brain-commands.js +24 -0
- package/dist/cli/bundle.js +7 -7
- package/dist/cli/chunks/adapter-2BIT6BGH.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-NA2VN5U2.js → agent-booster-wasm-JN7W7O5X.js} +2 -2
- package/dist/cli/chunks/{agent-handler-NRIF5IOC.js → agent-handler-F6Q75SJQ.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-NW3UB2UW.js → agent-memory-branch-3GGTDVR4.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-B5G3RG4W.js +2 -0
- package/dist/cli/chunks/{audit-5CSEDVJR.js → audit-R7KN45HM.js} +2 -2
- package/dist/cli/chunks/base-A3ZRMSIZ.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-FZ32SHZ6.js → better-sqlite3-2LTGEMYR.js} +2 -2
- package/dist/cli/chunks/brain-handler-PML5L6WQ.js +89 -0
- package/dist/cli/chunks/{branch-enumerator-IUHWHIMV.js → branch-enumerator-OKUPS2XC.js} +2 -2
- package/dist/cli/chunks/{browser-D4F3327X.js → browser-KOQOTSAT.js} +2 -2
- package/dist/cli/chunks/browser-workflow-C6Z53ZH6.js +2 -0
- package/dist/cli/chunks/chunk-2ARCG4XJ.js +2 -0
- package/dist/cli/chunks/{chunk-WI6UA5HV.js → chunk-2K7GRX5U.js} +2 -2
- package/dist/cli/chunks/{chunk-DATFN5DG.js → chunk-2LXXYKAP.js} +2 -2
- package/dist/cli/chunks/{chunk-O6J7MKRV.js → chunk-32FWC6G3.js} +2 -2
- package/dist/cli/chunks/{chunk-NL2PQLRD.js → chunk-3GYAIW2P.js} +2 -2
- package/dist/cli/chunks/{chunk-KJTXY3DW.js → chunk-3KIUCAVI.js} +1 -1
- package/dist/cli/chunks/{chunk-37ZSWRRP.js → chunk-3UGV2XWF.js} +2 -2
- package/dist/cli/chunks/{chunk-2CN2NPJQ.js → chunk-42HSEBOH.js} +2 -2
- package/dist/cli/chunks/{chunk-RODJK6G6.js → chunk-42TUEMH7.js} +1 -1
- package/dist/cli/chunks/{chunk-HPY7HGVQ.js → chunk-4TDIA2EN.js} +2 -2
- package/dist/cli/chunks/{chunk-N2RPLPVG.js → chunk-5J444NJR.js} +2 -2
- package/dist/cli/chunks/{chunk-B4BOOOYM.js → chunk-63ERVKIO.js} +1 -1
- package/dist/cli/chunks/{chunk-O6CHLZYT.js → chunk-63V33NAB.js} +2 -2
- package/dist/cli/chunks/{chunk-XALB3KRR.js → chunk-65Z6HMDA.js} +2 -2
- package/dist/cli/chunks/{chunk-62MVVEGH.js → chunk-6F6BNLVP.js} +1 -1
- package/dist/cli/chunks/{chunk-R4G64UH3.js → chunk-6HGRJPD6.js} +1 -1
- package/dist/cli/chunks/{chunk-GWUO3RY5.js → chunk-6MRUG5G2.js} +1 -1
- package/dist/cli/chunks/{chunk-3Y4YZDHJ.js → chunk-6PCGUJCG.js} +4 -4
- package/dist/cli/chunks/{chunk-BGUCXJEJ.js → chunk-6PRIY3HT.js} +2 -2
- package/dist/cli/chunks/{chunk-U4WDJPRL.js → chunk-6YCZDIGF.js} +2 -2
- package/dist/cli/chunks/{chunk-2XW36KDQ.js → chunk-6YFEWIL5.js} +2 -2
- package/dist/cli/chunks/{chunk-W4PUKTBF.js → chunk-7PWW2OXP.js} +1 -1
- package/dist/cli/chunks/{chunk-TZWCVGG2.js → chunk-7VGZDTY4.js} +1 -1
- package/dist/cli/chunks/{chunk-ORKGVVXK.js → chunk-A3WC5KTG.js} +1 -1
- package/dist/cli/chunks/{chunk-FSOY2XB4.js → chunk-A67FRRPJ.js} +3 -3
- package/dist/cli/chunks/{chunk-V775NJOM.js → chunk-AFLTMVMT.js} +1 -1
- package/dist/cli/chunks/{chunk-REUGPZIA.js → chunk-APWO3FI3.js} +1 -1
- package/dist/cli/chunks/{chunk-MS6T4VCU.js → chunk-ARN2KDLJ.js} +2 -2
- package/dist/cli/chunks/{chunk-OBZMQFWG.js → chunk-AZQ476BM.js} +2 -2
- package/dist/cli/chunks/{chunk-IPTGPCEL.js → chunk-AZWCJFT6.js} +2 -2
- package/dist/cli/chunks/{chunk-LLVS3UYZ.js → chunk-B36RPXAQ.js} +2 -2
- package/dist/cli/chunks/{chunk-YCYFUYCE.js → chunk-B3M3JEFD.js} +2 -2
- package/dist/cli/chunks/{chunk-TJDAXI6E.js → chunk-BCBC3DVN.js} +2 -2
- package/dist/cli/chunks/{chunk-Q3GDSFGA.js → chunk-BCIEQ4IP.js} +2 -2
- package/dist/cli/chunks/{chunk-OMTYOIOS.js → chunk-BGY4CHZA.js} +2 -2
- package/dist/cli/chunks/{chunk-7J5KWUC2.js → chunk-BUWZOMC7.js} +1 -1
- package/dist/cli/chunks/{chunk-V6QARSVQ.js → chunk-CPZUNBSQ.js} +2 -2
- package/dist/cli/chunks/{chunk-UZOFXYNC.js → chunk-CQSU7NTG.js} +2 -2
- package/dist/cli/chunks/{chunk-VBEVZUQW.js → chunk-CY73RJJJ.js} +1 -1
- package/dist/cli/chunks/{chunk-DYQ7HTEU.js → chunk-CZXV3JAF.js} +3 -3
- package/dist/cli/chunks/{chunk-6F3H2C5H.js → chunk-DDJUVCKF.js} +3 -3
- package/dist/cli/chunks/{chunk-JJDHD7SC.js → chunk-DJXYFFGA.js} +2 -2
- package/dist/cli/chunks/{chunk-AVKUFN3C.js → chunk-DR6SJ6P3.js} +2 -2
- package/dist/cli/chunks/{chunk-HJNFBJT5.js → chunk-DVEQOD74.js} +8 -8
- package/dist/cli/chunks/{chunk-3RSPEFU3.js → chunk-EGBRCXYT.js} +2 -2
- package/dist/cli/chunks/{chunk-AE65B2ZE.js → chunk-EVQYUUQ3.js} +2 -2
- package/dist/cli/chunks/{chunk-6OEGZSRK.js → chunk-F5X3U57Y.js} +2 -2
- package/dist/cli/chunks/{chunk-CF3W34BA.js → chunk-FCWB2FJG.js} +1 -1
- package/dist/cli/chunks/{chunk-WAQ3U4FC.js → chunk-FVVZWNLV.js} +1 -1
- package/dist/cli/chunks/{chunk-6BHAGCZD.js → chunk-FYNDV2NZ.js} +1 -1
- package/dist/cli/chunks/{chunk-SXUX6PTE.js → chunk-G3G5QEHL.js} +1 -1
- package/dist/cli/chunks/{chunk-6Z7LYE2B.js → chunk-G5DEPXD4.js} +2 -2
- package/dist/cli/chunks/{chunk-SSQ42GI7.js → chunk-HMT6LKHH.js} +2 -2
- package/dist/cli/chunks/{chunk-MO4Q5ZGE.js → chunk-HQXRCW7Z.js} +2 -2
- package/dist/cli/chunks/{chunk-PSOIVDD2.js → chunk-I3NUJ6KJ.js} +3 -3
- package/dist/cli/chunks/{chunk-JQRR37YY.js → chunk-I5BLJ2QQ.js} +2 -2
- package/dist/cli/chunks/{chunk-II5KTTIS.js → chunk-I64R2D4U.js} +4 -4
- package/dist/cli/chunks/{chunk-G3FUOFXA.js → chunk-JC4O47QG.js} +2 -2
- package/dist/cli/chunks/{chunk-DPEG44BS.js → chunk-JT2KLBDB.js} +2 -2
- package/dist/cli/chunks/{chunk-OHESV6I3.js → chunk-JVDYHVF2.js} +4 -4
- package/dist/cli/chunks/{chunk-D3ZUSXFY.js → chunk-K44EQV74.js} +2 -2
- package/dist/cli/chunks/{chunk-HNAQNAGI.js → chunk-K4FG3CRS.js} +3 -3
- package/dist/cli/chunks/{chunk-ISNXE6TP.js → chunk-KTJWRVFR.js} +2 -2
- package/dist/cli/chunks/{chunk-VDDQSW4L.js → chunk-KTUSZRS3.js} +2 -2
- package/dist/cli/chunks/{chunk-7ZPNQ3T6.js → chunk-KUEG6K4A.js} +1 -1
- package/dist/cli/chunks/{chunk-CWWUBZNX.js → chunk-L5JZIORJ.js} +2 -2
- package/dist/cli/chunks/{chunk-HWK27KJK.js → chunk-L6ZJSFAA.js} +1 -1
- package/dist/cli/chunks/{chunk-JAIIPEE6.js → chunk-LA565BGJ.js} +2 -2
- package/dist/cli/chunks/{chunk-WCOJGDGO.js → chunk-LD4OYOX2.js} +2 -2
- package/dist/cli/chunks/{chunk-2BBKAX7X.js → chunk-MER7IHAZ.js} +2 -2
- package/dist/cli/chunks/{chunk-4T36OQUK.js → chunk-MNSF47HC.js} +3 -3
- package/dist/cli/chunks/{chunk-H6DAP4KS.js → chunk-MPEQXXXR.js} +2 -2
- package/dist/cli/chunks/{chunk-2L5ZFBHP.js → chunk-N64PBOR5.js} +2 -2
- package/dist/cli/chunks/{chunk-6TOUMCSE.js → chunk-ORNWQXEX.js} +2 -2
- package/dist/cli/chunks/{chunk-ZOAPOVYW.js → chunk-OSBJWQZL.js} +2 -2
- package/dist/cli/chunks/{chunk-GLJ6CJNY.js → chunk-OUSQ4KQN.js} +2 -2
- package/dist/cli/chunks/{chunk-RWVFOXYM.js → chunk-P2V5ZG3Q.js} +1 -1
- package/dist/cli/chunks/{chunk-6AMD4PZB.js → chunk-PEHHOJE6.js} +2 -2
- package/dist/cli/chunks/{chunk-IHDW4HW7.js → chunk-PGTMLW5K.js} +2 -2
- package/dist/cli/chunks/{chunk-NWMYV7KG.js → chunk-PJZHNAUT.js} +2 -2
- package/dist/cli/chunks/{chunk-E3EDVRB5.js → chunk-PMH52K5J.js} +1 -1
- package/dist/cli/chunks/{chunk-EY2DGYQX.js → chunk-PMNZN4K7.js} +1 -1
- package/dist/cli/chunks/{chunk-56YHSI6R.js → chunk-PV6WBC2D.js} +2 -2
- package/dist/cli/chunks/{chunk-RTVD7SZQ.js → chunk-QFFSQWXP.js} +1 -1
- package/dist/cli/chunks/{chunk-Q3E6Z2RQ.js → chunk-QMVGGG4B.js} +1 -1
- package/dist/cli/chunks/{chunk-3BA2FGSA.js → chunk-QVJQXRHU.js} +2 -2
- package/dist/cli/chunks/{chunk-GHEO5YVA.js → chunk-QW554DTP.js} +1 -1
- package/dist/cli/chunks/{chunk-XXRDI53H.js → chunk-QXOAFWWK.js} +2 -2
- package/dist/cli/chunks/{chunk-V65DK6ZZ.js → chunk-QYDBV5MD.js} +1 -1
- package/dist/cli/chunks/{chunk-ELLNKP3I.js → chunk-R3COBKOP.js} +3 -3
- package/dist/cli/chunks/{chunk-ZHTCZGML.js → chunk-RP2RHB7H.js} +2 -2
- package/dist/cli/chunks/{chunk-EORSYD66.js → chunk-RYATPB5L.js} +2 -2
- package/dist/cli/chunks/{chunk-ESQSX37W.js → chunk-TATCL3AK.js} +2 -2
- package/dist/cli/chunks/{chunk-IPVKVPAF.js → chunk-USORP6QK.js} +2 -2
- package/dist/cli/chunks/{chunk-FW6QBTPE.js → chunk-UTO2M76W.js} +1 -1
- package/dist/cli/chunks/{chunk-D32YCVCA.js → chunk-V3VJNWOF.js} +2 -2
- package/dist/cli/chunks/{chunk-KKBSX43Q.js → chunk-V4DMYY6P.js} +2 -2
- package/dist/cli/chunks/{chunk-3NIHJIWP.js → chunk-VI2I5R6C.js} +2 -2
- package/dist/cli/chunks/{chunk-QNLZKD7E.js → chunk-VX6XHAG2.js} +2 -2
- package/dist/cli/chunks/{chunk-LNUWNRRJ.js → chunk-VYCFMW64.js} +9 -9
- package/dist/cli/chunks/{chunk-CSB2M7IX.js → chunk-W5HTZ3VZ.js} +2 -2
- package/dist/cli/chunks/{chunk-ZSC7NHK3.js → chunk-WGEJ646F.js} +2 -2
- package/dist/cli/chunks/{chunk-ICXWXO5P.js → chunk-WP55YBB2.js} +1 -1
- package/dist/cli/chunks/{chunk-MHL6CPGY.js → chunk-X66N7E7D.js} +1 -1
- package/dist/cli/chunks/{chunk-CUQBOVRP.js → chunk-XB4JRJU4.js} +1 -1
- package/dist/cli/chunks/{chunk-3FUKJT4S.js → chunk-XMMKAV5R.js} +2 -2
- package/dist/cli/chunks/{chunk-RPOW5LWO.js → chunk-XZOJWFLH.js} +1 -1
- package/dist/cli/chunks/{chunk-OUP2X3LT.js → chunk-Y47U7ICT.js} +1 -1
- package/dist/cli/chunks/{chunk-IMLH32AG.js → chunk-YE5AYBHX.js} +2 -2
- package/dist/cli/chunks/{chunk-D3FV5NNA.js → chunk-YUCMGFHE.js} +2 -2
- package/dist/cli/chunks/chunk-Z5R46W6Q.js +2 -0
- package/dist/cli/chunks/{chunk-4M7RBSW6.js → chunk-Z77BVREU.js} +2 -2
- package/dist/cli/chunks/{chunk-C5BRTU4V.js → chunk-ZI3UBCIN.js} +1 -1
- package/dist/cli/chunks/{chunk-65QA7MYW.js → chunk-ZLOMFM25.js} +2 -2
- package/dist/cli/chunks/{chunk-RSOOENGE.js → chunk-ZQKNVZPD.js} +2 -2
- package/dist/cli/chunks/{ci-BGUUHDUS.js → ci-TRWQ33L2.js} +2 -2
- package/dist/cli/chunks/{ci-output-CDFRGBNU.js → ci-output-TCFNHOTU.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-S3NFX6RQ.js → circuit-breaker-GO2TIL7E.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-AJIPJFMC.js → claude-flow-setup-U77JVSVU.js} +2 -2
- package/dist/cli/chunks/client-B3QSCZSJ.js +2 -0
- package/dist/cli/chunks/{cline-installer-6O4KZ5UH.js → cline-installer-XFD3SMGS.js} +2 -2
- package/dist/cli/chunks/{code-IZALXUL5.js → code-V3VE2TMW.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-N7VDH4XF.js → code-index-extractor-C6DHOOWA.js} +2 -2
- package/dist/cli/chunks/{codex-installer-35GTWCFJ.js → codex-installer-IUR7MVE6.js} +2 -2
- package/dist/cli/chunks/{completions-XPJFHGG2.js → completions-R7FZHNJJ.js} +91 -10
- package/dist/cli/chunks/{complexity-analyzer-DNLCJGUJ.js → complexity-analyzer-EP4QF5CS.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-PXAIKNYO.js → continuedev-installer-6DW2SBMQ.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-2TQ5IZNY.js → copilot-installer-U3UOX7D5.js} +2 -2
- package/dist/cli/chunks/{cost-tracker-A5XH4W6S.js → cost-tracker-5QZ5A46I.js} +2 -2
- package/dist/cli/chunks/{coverage-EPIMXTLW.js → coverage-QOOOITLD.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-OYBTXKCV.js +2 -0
- package/dist/cli/chunks/{cursor-installer-WMMRPW44.js → cursor-installer-SY3TRE2I.js} +2 -2
- package/dist/cli/chunks/{daemon-55DSODOH.js → daemon-HBSBIPUZ.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-5DSWXMMK.js → dag-attention-scheduler-ZNLUW2HL.js} +2 -2
- package/dist/cli/chunks/{detect-NOS46AWN.js → detect-DMUJPGNC.js} +2 -2
- package/dist/cli/chunks/dist-node-4RPPRXUH.js +2 -0
- package/dist/cli/chunks/{domain-handler-BFRNU6S3.js → domain-handler-XJFDML77.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-BPSA4HFR.js → domain-transfer-MXPKJ2A2.js} +2 -2
- package/dist/cli/chunks/dream-R2F6L47W.js +2 -0
- package/dist/cli/chunks/{eval-YDLM23FB.js → eval-DHBZ74RL.js} +2 -2
- package/dist/cli/chunks/{fast-paths-GISZ7HBO.js → fast-paths-WTNFCV2I.js} +2 -2
- package/dist/cli/chunks/{feature-flags-3FLJF6CQ.js → feature-flags-264QUQ3E.js} +2 -2
- package/dist/cli/chunks/{feature-flags-5WGZLUPQ.js → feature-flags-VC7BQNHU.js} +2 -2
- package/dist/cli/chunks/{file-discovery-PPHUMFSI.js → file-discovery-LXQPIRKG.js} +2 -2
- package/dist/cli/chunks/{fleet-LHFZ53FS.js → fleet-4OAZWNXG.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-Z45DRWGI.js → gnn-wrapper-MAXAOMTP.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-VMLJ5PDH.js → heartbeat-handler-ZTUI75EB.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-GUWYDHEY.js → heartbeat-scheduler-VWPA7XKA.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-TQPQE4OJ.js +2 -0
- package/dist/cli/chunks/hnsw-index-2X3NMTDU.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-S7UZWDUP.js → hnsw-legacy-bridge-EQDYPKGL.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-MIAAS7OI.js → hnswlib-node-G4QGTGIB.js} +2 -2
- package/dist/cli/chunks/hooks-RBVHAPBL.js +101 -0
- package/dist/cli/chunks/{hybrid-router-Y6LBFPL7.js → hybrid-router-XODWORQ3.js} +2 -2
- package/dist/cli/chunks/{hypergraph-engine-KK73LZYZ.js → hypergraph-engine-T73DH7N6.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-OBGDPIWG.js → hypergraph-handler-OZJJJW5B.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-B7GBDSA3.js +2 -0
- package/dist/cli/chunks/{init-handler-JJJ7VHM4.js → init-handler-YXXNCXM4.js} +6 -6
- package/dist/cli/chunks/init-wizard-7N6MCER4.js +2 -0
- package/dist/cli/chunks/kernel-6CJ4FP5Z.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-EF6DPX2D.js → kilocode-installer-3RCK2JPW.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-SG74CEVO.js → kiro-installer-LKC42QRS.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-4XYLO6ZW.js +2 -0
- package/dist/cli/chunks/{learning-LVWYMHF6.js → learning-BIBRKCYL.js} +3 -3
- package/dist/cli/chunks/{llm-router-QFK7MNPY.js → llm-router-Z6Z7TTBI.js} +4 -4
- package/dist/cli/chunks/{load-6XPV4WA2.js → load-T2QUB663.js} +2 -2
- package/dist/cli/chunks/load-test-UODCPBYF.js +2 -0
- package/dist/cli/chunks/{mcp-GZXOPYMH.js → mcp-QBOL6TK4.js} +2 -2
- package/dist/cli/chunks/{memory-QTE2Z5HU.js → memory-7RQ2SF36.js} +5 -5
- package/dist/cli/chunks/memory-backend-PUPAE4QQ.js +2 -0
- package/dist/cli/chunks/{memory-handlers-PC4P4YEF.js → memory-handlers-5OHDUBJS.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-FZOPSUOT.js → multi-model-executor-PGSNT3NO.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-CITDTCUQ.js → opencode-installer-AEOXTTFG.js} +2 -2
- package/dist/cli/chunks/{orchestrator-ZTG7MFHQ.js → orchestrator-6K2L36JA.js} +6 -6
- package/dist/cli/chunks/{pipeline-QXO4EJP4.js → pipeline-MFQCW7JD.js} +2 -2
- package/dist/cli/chunks/{platform-JJEDYCAK.js → platform-DM6RQ3FM.js} +2 -2
- package/dist/cli/chunks/{plugin-ZEKRM6F7.js → plugin-CCTGDC55.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-GRS4T6LR.js → prime-radiant-advanced-wasm-J4FXB63L.js} +2 -2
- package/dist/cli/chunks/protocol-executor-X3EYJINP.js +2 -0
- package/dist/cli/chunks/{protocol-handler-KWI2T6OR.js → protocol-handler-7UOBNLET.js} +2 -2
- package/dist/cli/chunks/{prove-7FJN2HEH.js → prove-VAPGITFF.js} +2 -2
- package/dist/cli/chunks/{provider-manager-QYYZZLLO.js → provider-manager-F6TLUJFW.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-3RDWPSYG.js +2 -0
- package/dist/cli/chunks/{quality-4NHO2NY5.js → quality-7LJQI3SB.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-XIQZIYAZ.js +2 -0
- package/dist/cli/chunks/{real-embeddings-SIELAOWX.js → real-embeddings-NHWAUSV3.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-ANYXH3NR.js → roocode-installer-HQFQJJPU.js} +2 -2
- package/dist/cli/chunks/router-AFEFPU2A.js +2 -0
- package/dist/cli/chunks/routing-feedback-AGYMQFMV.js +2 -0
- package/dist/cli/chunks/{routing-handler-6QQHK4KV.js → routing-handler-VH66WSPU.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-YEUA3MZB.js → ruvector-commands-IPUWLJFU.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-UJFRHPVE.js → rvf-dual-writer-KRFEM6JH.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-CSDFG7UA.js → rvf-migration-adapter-SVCZ72IU.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-QO7OENQF.js → rvf-migration-coordinator-FYBIF3SX.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-AFOWXCZH.js +2 -0
- package/dist/cli/chunks/safe-db-NNF5DE5T.js +2 -0
- package/dist/cli/chunks/schedule-HJUZSHEA.js +2 -0
- package/dist/cli/chunks/scheduler-DZ53RPJQ.js +2 -0
- package/dist/cli/chunks/{security-QCIUC5FX.js → security-C2I6CG7B.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-5UQSTUSR.js +2 -0
- package/dist/cli/chunks/{shared-rvf-dual-writer-LVJJS3PD.js → shared-rvf-dual-writer-BPIFGN7I.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-27ESC5DX.js +2 -0
- package/dist/cli/chunks/{status-handler-O77A4JWM.js → status-handler-57UA6GNR.js} +2 -2
- package/dist/cli/chunks/{structural-health-WIIBIIQI.js → structural-health-KMHBG6FO.js} +2 -2
- package/dist/cli/chunks/{sync-UN6D6OF2.js → sync-53YM6U4S.js} +2 -2
- package/dist/cli/chunks/{task-handler-RBOSMJCK.js → task-handler-W2XPS5WW.js} +2 -2
- package/dist/cli/chunks/{task-handlers-VWMXQKAT.js → task-handlers-BG4IAMBJ.js} +2 -2
- package/dist/cli/chunks/{test-XK5M3PGT.js → test-QJBBVPL2.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-CTQ3JJ7G.js → test-scheduling-Y4J6EY2K.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-D5CQ3I5M.js → token-bootstrap-3TKR3UIE.js} +2 -2
- package/dist/cli/chunks/{token-usage-L4QSLWQ5.js → token-usage-5FUNHHVZ.js} +2 -2
- package/dist/cli/chunks/{transformers-SRPJDBKA.js → transformers-KVPA35SR.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-DOU5ITWB.js → tree-sitter-wasm-parser-LTBBLY5U.js} +2 -2
- package/dist/cli/chunks/{types-LECYZUBN.js → types-Y2BHPD6B.js} +2 -2
- package/dist/cli/chunks/unified-memory-O7GFUSD3.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-XBLROJEN.js +2 -0
- package/dist/cli/chunks/unified-persistence-YBHEAL2S.js +2 -0
- package/dist/cli/chunks/upgrade-E4VAQZQR.js +5 -0
- package/dist/cli/chunks/{validate-SIKNIS6B.js → validate-4ICDQCKJ.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-EHAMMILJ.js → validate-swarm-AIEOQOUF.js} +2 -2
- package/dist/cli/chunks/{vibium-LJ4NYXMZ.js → vibium-AF2K6YXR.js} +2 -2
- package/dist/cli/chunks/visual-security-4F7VYCAU.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-DZQ3T4JD.js → web-tree-sitter-PM67K5SP.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-U6Z73O6J.js → windsurf-installer-4MKUQ2KT.js} +2 -2
- package/dist/cli/chunks/witness-chain-AXJ44BGW.js +2 -0
- package/dist/cli/chunks/{witness-chain-JE3QU4YP.js → witness-chain-FLPF7CS6.js} +2 -2
- package/dist/cli/chunks/{workflow-62QXGZQO.js → workflow-DHTCI6QD.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-UAFUPHD3.js +2 -0
- package/dist/cli/chunks/{wrappers-CAX5EZSH.js → wrappers-5K6UGI3T.js} +2 -2
- package/dist/cli/commands/hooks-handlers/routing-hooks.d.ts +6 -0
- package/dist/cli/commands/hooks-handlers/routing-hooks.js +80 -4
- package/dist/cli/commands/upgrade.d.ts +96 -0
- package/dist/cli/commands/upgrade.js +342 -0
- package/dist/cli/completions/index.d.ts +27 -0
- package/dist/cli/completions/index.js +112 -14
- package/dist/cli/handlers/brain-handler.d.ts +2 -0
- package/dist/cli/handlers/brain-handler.js +221 -1
- package/dist/cli/index.js +5 -1
- package/dist/init/init-wizard-hooks.js +4 -1
- package/dist/init/phases/07-hooks.js +4 -1
- package/dist/integrations/ruvector/brain-diff.d.ts +93 -0
- package/dist/integrations/ruvector/brain-diff.js +281 -0
- package/dist/integrations/ruvector/brain-search.d.ts +78 -0
- package/dist/integrations/ruvector/brain-search.js +154 -0
- package/dist/mcp/bundle.js +348 -348
- package/package.json +2 -2
- package/dist/cli/chunks/adapter-P2EPBJLF.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-6UITO3NJ.js +0 -2
- package/dist/cli/chunks/base-JHBJXVGP.js +0 -2
- package/dist/cli/chunks/brain-handler-ISVST4MR.js +0 -68
- package/dist/cli/chunks/browser-workflow-U4OON5DZ.js +0 -2
- package/dist/cli/chunks/chunk-FEVTMHO6.js +0 -2
- package/dist/cli/chunks/chunk-MBDX4OHD.js +0 -2
- package/dist/cli/chunks/client-UHHMKUPF.js +0 -2
- package/dist/cli/chunks/cross-domain-router-GEBXTPZW.js +0 -2
- package/dist/cli/chunks/dream-XBRGYPBC.js +0 -2
- package/dist/cli/chunks/esm-node-EV4HOHTZ.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-BG73YVXI.js +0 -2
- package/dist/cli/chunks/hnsw-index-K73ZTLJN.js +0 -2
- package/dist/cli/chunks/hooks-ZN4FV5XS.js +0 -101
- package/dist/cli/chunks/impact-analyzer-GWIUYYCQ.js +0 -2
- package/dist/cli/chunks/init-wizard-RIJJAKE3.js +0 -2
- package/dist/cli/chunks/kernel-SIPBCRGL.js +0 -2
- package/dist/cli/chunks/knowledge-graph-NOYZXHIG.js +0 -2
- package/dist/cli/chunks/load-test-DIMUH75F.js +0 -2
- package/dist/cli/chunks/memory-backend-IWOGO4BV.js +0 -2
- package/dist/cli/chunks/protocol-executor-NT4TILJW.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-VDROHXFS.js +0 -2
- package/dist/cli/chunks/queen-coordinator-7LO73IV3.js +0 -2
- package/dist/cli/chunks/router-SFVOLN2W.js +0 -2
- package/dist/cli/chunks/routing-feedback-MRFV7WUZ.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-6L7FZZC7.js +0 -2
- package/dist/cli/chunks/safe-db-PYWBVGOV.js +0 -2
- package/dist/cli/chunks/schedule-BUQU75HY.js +0 -2
- package/dist/cli/chunks/scheduler-XOSKWZO2.js +0 -2
- package/dist/cli/chunks/shared-rvf-adapter-OZ7S4ZQL.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-7UXQZ5Y6.js +0 -2
- package/dist/cli/chunks/unified-memory-L6735TFM.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-7TZNEDGY.js +0 -2
- package/dist/cli/chunks/unified-persistence-FNYZ3C2B.js +0 -2
- package/dist/cli/chunks/visual-security-SMPZPDY4.js +0 -2
- package/dist/cli/chunks/witness-chain-FNCOTWFA.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-RCR4N7OA.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.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.17");process.exit(0)}
|
|
2
|
+
import"./chunk-XB4JRJU4.js";import{Command as x}from"commander";import o from"chalk";var c=["test-generation","test-execution","coverage-analysis","quality-assessment","defect-intelligence","requirements-validation","code-intelligence","security-compliance","contract-testing","visual-accessibility","chaos-resilience","learning-optimization"],a=["qe-tdd-specialist","qe-test-architect","qe-parallel-executor","qe-flaky-hunter","qe-retry-handler","qe-coverage-specialist","qe-gap-detector","qe-quality-gate","qe-deployment-advisor","qe-code-complexity","qe-qx-partner","qe-security-scanner","qe-security-auditor","qe-contract-validator","qe-integration-tester","qe-graphql-tester","qe-visual-tester","qe-accessibility-auditor","qe-responsive-tester","qe-performance-tester","qe-load-tester","qe-chaos-engineer","qe-code-intelligence","qe-dependency-mapper","qe-kg-builder","qe-requirements-validator","qe-bdd-generator","qe-defect-predictor","qe-root-cause-analyzer","qe-regression-analyzer","qe-impact-analyzer","qe-risk-assessor","qe-learning-coordinator","qe-pattern-learner","qe-transfer-specialist","qe-metrics-optimizer","qe-fleet-commander","qe-queen-coordinator","qe-property-tester","qe-mutation-tester","qe-tdd-red","qe-tdd-green","qe-tdd-refactor","qe-code-reviewer","qe-integration-reviewer","qe-performance-reviewer","qe-security-reviewer"],i=["tester","reviewer","security-auditor","security-architect","performance-engineer","code-analyzer","cicd-engineer","reasoningbank-learner","adr-architect","ddd-domain-expert","v3-integration-architect","memory-specialist","claims-authorizer","sparc-orchestrator","sona-learning-optimizer","safla-neural","production-validator","tdd-london-swarm","queen-coordinator","swarm-memory-manager","worker-specialist","collective-intelligence-coordinator","scout-explorer","adaptive-coordinator","mesh-coordinator","hierarchical-coordinator","consensus-coordinator","byzantine-coordinator","raft-manager","crdt-synchronizer","n8n-workflow-executor","n8n-unit-tester","n8n-integration-test","n8n-trigger-test","n8n-security-auditor"],P=[...a,...i];var p=["generate-tests","execute-tests","analyze-coverage","assess-quality","predict-defects","validate-requirements","analyze-code","scan-security","validate-contracts","test-accessibility","chaos-test","optimize-learning"],b=["p0","p1","p2","p3"],y=["pending","running","completed","failed","cancelled"],d=["jest","vitest","pytest","junit","playwright","cypress","go-test","node-test"],w=["unit","integration","e2e"],C=["sqlite","agentdb","hybrid"];function q(){return`#!/bin/bash
|
|
3
3
|
# AQE CLI Bash Completion Script
|
|
4
4
|
# Generated by aqe completions bash
|
|
5
5
|
# ADR-041: Shell Completions for Enhanced Developer Experience
|
|
@@ -48,12 +48,13 @@ _aqe_completions() {
|
|
|
48
48
|
local cur prev words cword
|
|
49
49
|
_init_completion || return
|
|
50
50
|
|
|
51
|
-
local commands="init status health task agent domain protocol test coverage quality security code migrate hypergraph completions"
|
|
51
|
+
local commands="init status health task agent domain protocol test coverage quality security code migrate hypergraph completions brain upgrade"
|
|
52
52
|
local task_subcmds="submit list cancel status"
|
|
53
53
|
local agent_subcmds="list spawn"
|
|
54
54
|
local domain_subcmds="list health"
|
|
55
55
|
local protocol_subcmds="run"
|
|
56
56
|
local completions_subcmds="bash zsh fish powershell install"
|
|
57
|
+
local brain_subcmds="export import info diff search witness-backfill"
|
|
57
58
|
local code_actions="index search impact deps"
|
|
58
59
|
local test_actions="generate execute"
|
|
59
60
|
|
|
@@ -386,6 +387,48 @@ _aqe_completions() {
|
|
|
386
387
|
;;
|
|
387
388
|
esac
|
|
388
389
|
;;
|
|
390
|
+
brain)
|
|
391
|
+
case "\${words[2]}" in
|
|
392
|
+
export)
|
|
393
|
+
COMPREPLY=( $(compgen -W "-o --output --format --db" -- "$cur") )
|
|
394
|
+
return
|
|
395
|
+
;;
|
|
396
|
+
import)
|
|
397
|
+
COMPREPLY=( $(compgen -W "-i --input --strategy --dry-run --db" -- "$cur") )
|
|
398
|
+
return
|
|
399
|
+
;;
|
|
400
|
+
info)
|
|
401
|
+
COMPREPLY=( $(compgen -W "-i --input" -- "$cur") )
|
|
402
|
+
return
|
|
403
|
+
;;
|
|
404
|
+
diff)
|
|
405
|
+
COMPREPLY=( $(compgen -W "--table --verbose --json" -- "$cur") )
|
|
406
|
+
return
|
|
407
|
+
;;
|
|
408
|
+
search)
|
|
409
|
+
case "$prev" in
|
|
410
|
+
--domain)
|
|
411
|
+
COMPREPLY=( $(compgen -W "$domains" -- "$cur") )
|
|
412
|
+
return
|
|
413
|
+
;;
|
|
414
|
+
esac
|
|
415
|
+
COMPREPLY=( $(compgen -W "-i --input --table --domain --pattern-type --since --until -q --query -l --limit --json" -- "$cur") )
|
|
416
|
+
return
|
|
417
|
+
;;
|
|
418
|
+
witness-backfill)
|
|
419
|
+
COMPREPLY=( $(compgen -W "--db" -- "$cur") )
|
|
420
|
+
return
|
|
421
|
+
;;
|
|
422
|
+
*)
|
|
423
|
+
COMPREPLY=( $(compgen -W "$brain_subcmds" -- "$cur") )
|
|
424
|
+
return
|
|
425
|
+
;;
|
|
426
|
+
esac
|
|
427
|
+
;;
|
|
428
|
+
upgrade)
|
|
429
|
+
COMPREPLY=( $(compgen -W "--json --strict" -- "$cur") )
|
|
430
|
+
return
|
|
431
|
+
;;
|
|
389
432
|
*)
|
|
390
433
|
COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
|
|
391
434
|
return
|
|
@@ -398,7 +441,7 @@ complete -F _aqe_completions aqe
|
|
|
398
441
|
|
|
399
442
|
# Enable for npm/npx invocations as well
|
|
400
443
|
complete -F _aqe_completions "npx aqe"
|
|
401
|
-
`}function
|
|
444
|
+
`}function E(){return`#compdef aqe
|
|
402
445
|
# AQE CLI Zsh Completion Script
|
|
403
446
|
# Generated by aqe completions zsh
|
|
404
447
|
# ADR-041: Shell Completions for Enhanced Developer Experience
|
|
@@ -435,6 +478,8 @@ _aqe() {
|
|
|
435
478
|
'hypergraph:Query the code knowledge hypergraph'
|
|
436
479
|
'migrate:V2 to V3 migration'
|
|
437
480
|
'completions:Generate shell completions'
|
|
481
|
+
'brain:Export, import, and inspect QE brain state'
|
|
482
|
+
'upgrade:Detect optional native bindings and recommend flags'
|
|
438
483
|
)
|
|
439
484
|
|
|
440
485
|
domains=(
|
|
@@ -734,6 +779,30 @@ _aqe() {
|
|
|
734
779
|
;;
|
|
735
780
|
esac
|
|
736
781
|
;;
|
|
782
|
+
brain)
|
|
783
|
+
local -a brain_commands
|
|
784
|
+
brain_commands=(
|
|
785
|
+
'export:Export brain state to a portable file/directory'
|
|
786
|
+
'import:Import a brain export into the local database'
|
|
787
|
+
'info:Show manifest metadata for a brain export'
|
|
788
|
+
'diff:Compare two brain exports'
|
|
789
|
+
'search:Filtered search over a JSONL brain export'
|
|
790
|
+
'witness-backfill:Create witness chain entries for legacy patterns'
|
|
791
|
+
)
|
|
792
|
+
_arguments -C \\
|
|
793
|
+
'1:brain subcommand:->brain_cmd' \\
|
|
794
|
+
'*::arg:->brain_args'
|
|
795
|
+
case "$state" in
|
|
796
|
+
brain_cmd)
|
|
797
|
+
_describe -t commands 'brain subcommands' brain_commands
|
|
798
|
+
;;
|
|
799
|
+
esac
|
|
800
|
+
;;
|
|
801
|
+
upgrade)
|
|
802
|
+
_arguments \\
|
|
803
|
+
'--json[Emit the report as JSON]' \\
|
|
804
|
+
'--strict[Exit non-zero if any optional native is missing]'
|
|
805
|
+
;;
|
|
737
806
|
esac
|
|
738
807
|
;;
|
|
739
808
|
esac
|
|
@@ -744,7 +813,7 @@ _aqe "$@"
|
|
|
744
813
|
|
|
745
814
|
# Backward compatibility alias (deprecated, use _aqe)
|
|
746
815
|
_aqe_v3() { _aqe "$@"; }
|
|
747
|
-
`}function
|
|
816
|
+
`}function k(){return`# AQE CLI Fish Completion Script
|
|
748
817
|
# Generated by aqe completions fish
|
|
749
818
|
# ADR-041: Shell Completions for Enhanced Developer Experience
|
|
750
819
|
# ADR-042: Version-Agnostic Naming Convention
|
|
@@ -771,6 +840,16 @@ complete -c aqe -n "__fish_seen_subcommand_from hypergraph; and not __fish_seen_
|
|
|
771
840
|
complete -c aqe -n "__fish_seen_subcommand_from hypergraph; and not __fish_seen_subcommand_from stats untested impacted gaps" -a "impacted" -d "Find impacted tests"
|
|
772
841
|
complete -c aqe -n "__fish_seen_subcommand_from hypergraph; and not __fish_seen_subcommand_from stats untested impacted gaps" -a "gaps" -d "Find coverage gaps"
|
|
773
842
|
complete -c aqe -n "__fish_use_subcommand" -a "migrate" -d "V2 to V3 migration"
|
|
843
|
+
complete -c aqe -n "__fish_use_subcommand" -a "brain" -d "Export, import, and inspect QE brain state"
|
|
844
|
+
complete -c aqe -n "__fish_seen_subcommand_from brain; and not __fish_seen_subcommand_from export import info diff search witness-backfill" -a "export" -d "Export brain state"
|
|
845
|
+
complete -c aqe -n "__fish_seen_subcommand_from brain; and not __fish_seen_subcommand_from export import info diff search witness-backfill" -a "import" -d "Import a brain export"
|
|
846
|
+
complete -c aqe -n "__fish_seen_subcommand_from brain; and not __fish_seen_subcommand_from export import info diff search witness-backfill" -a "info" -d "Show manifest info"
|
|
847
|
+
complete -c aqe -n "__fish_seen_subcommand_from brain; and not __fish_seen_subcommand_from export import info diff search witness-backfill" -a "diff" -d "Compare two brain exports"
|
|
848
|
+
complete -c aqe -n "__fish_seen_subcommand_from brain; and not __fish_seen_subcommand_from export import info diff search witness-backfill" -a "search" -d "Filtered search over a JSONL brain export"
|
|
849
|
+
complete -c aqe -n "__fish_seen_subcommand_from brain; and not __fish_seen_subcommand_from export import info diff search witness-backfill" -a "witness-backfill" -d "Backfill witness chain entries"
|
|
850
|
+
complete -c aqe -n "__fish_use_subcommand" -a "upgrade" -d "Detect optional native bindings and recommend install / flag changes"
|
|
851
|
+
complete -c aqe -n "__fish_seen_subcommand_from upgrade" -l json -d "Emit the report as JSON"
|
|
852
|
+
complete -c aqe -n "__fish_seen_subcommand_from upgrade" -l strict -d "Exit non-zero if any optional native is missing"
|
|
774
853
|
complete -c aqe -n "__fish_use_subcommand" -a "completions" -d "Generate shell completions"
|
|
775
854
|
|
|
776
855
|
# Domains list
|
|
@@ -969,6 +1048,8 @@ $script:AQE_COMMANDS = @{
|
|
|
969
1048
|
'hypergraph' = 'Query the code knowledge hypergraph'
|
|
970
1049
|
'migrate' = 'V2 to V3 migration'
|
|
971
1050
|
'completions' = 'Generate shell completions'
|
|
1051
|
+
'brain' = 'Export, import, and inspect QE brain state'
|
|
1052
|
+
'upgrade' = 'Detect optional native bindings and recommend flags'
|
|
972
1053
|
}
|
|
973
1054
|
|
|
974
1055
|
Register-ArgumentCompleter -Native -CommandName 'aqe' -ScriptBlock {
|
|
@@ -1348,17 +1429,17 @@ aqe completions powershell > ~/.config/powershell/aqe-completions.ps1
|
|
|
1348
1429
|
- bash: aqe completions bash
|
|
1349
1430
|
- zsh: aqe completions zsh
|
|
1350
1431
|
- fish: aqe completions fish
|
|
1351
|
-
- powershell: aqe completions powershell`}}function
|
|
1432
|
+
- powershell: aqe completions powershell`}}function r(t){switch(t){case"bash":return q();case"zsh":return E();case"fish":return k();case"powershell":return v();default:throw new Error(`Unsupported shell: ${t}`)}}function T(t){let e=new x("completions").description("Generate shell completions for aqe");return e.command("bash").description("Generate Bash completion script").action(()=>{console.log(r("bash"))}),e.command("zsh").description("Generate Zsh completion script").action(()=>{console.log(r("zsh"))}),e.command("fish").description("Generate Fish completion script").action(()=>{console.log(r("fish"))}),e.command("powershell").description("Generate PowerShell completion script").action(()=>{console.log(r("powershell"))}),e.command("install").description("Auto-install completions for current shell").option("-s, --shell <shell>","Target shell (bash|zsh|fish|powershell)").action(async s=>{let n=await import("fs"),u=await import("path"),m=s.shell?{name:s.shell,configFile:null,detected:!1}:$();if(m.name==="unknown"){console.log(o.red(`Could not detect shell. Please specify with --shell option.
|
|
1352
1433
|
`)),console.log(_("unknown")),await t(1);return}console.log(o.blue(`
|
|
1353
|
-
Installing completions for ${
|
|
1354
|
-
`));let
|
|
1434
|
+
Installing completions for ${m.name}...
|
|
1435
|
+
`));let f=r(m.name);if(m.name==="fish"){let g=process.env.HOME||process.env.USERPROFILE||"",h=u.join(g,".config","fish","completions");try{n.mkdirSync(h,{recursive:!0});let l=u.join(h,"aqe.fish");n.writeFileSync(l,f),console.log(o.green(`Completions installed to: ${l}`)),console.log(o.gray(`
|
|
1355
1436
|
Restart your shell or run: source ~/.config/fish/completions/aqe.fish
|
|
1356
1437
|
`))}catch(l){console.log(o.red(`Failed to install: ${l}`)),console.log(o.yellow(`
|
|
1357
1438
|
Manual installation:`)),console.log(_("fish"))}}else console.log(o.yellow(`To install completions, follow these instructions:
|
|
1358
|
-
`)),console.log(_(
|
|
1439
|
+
`)),console.log(_(m.name)),console.log(o.gray(`
|
|
1359
1440
|
---
|
|
1360
1441
|
Completion script:
|
|
1361
|
-
`)),console.log(
|
|
1442
|
+
`)),console.log(f)}),e.command("list").description("List all completion values (domains, agents, etc.)").option("-t, --type <type>","Type to list (domains|agents|v3-qe-agents)","all").action(s=>{(s.type==="domains"||s.type==="all")&&(console.log(o.blue(`
|
|
1362
1443
|
12 DDD Domains:`)),c.forEach(n=>console.log(o.gray(` ${n}`)))),(s.type==="v3-qe-agents"||s.type==="all")&&(console.log(o.blue(`
|
|
1363
1444
|
QE Agents (`+a.length+"):")),a.forEach(n=>console.log(o.gray(` ${n}`)))),(s.type==="agents"||s.type==="all")&&(console.log(o.blue(`
|
|
1364
1445
|
Other Agents (`+i.length+"):")),i.forEach(n=>console.log(o.gray(` ${n}`)))),console.log("")}),e}export{T as createCompletionsCommand};
|
|
@@ -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,b,c,d,e,f,g,h,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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i}from"./chunk-XMMKAV5R.js";import"./chunk-P2V5ZG3Q.js";import"./chunk-ZI3UBCIN.js";import"./chunk-XB4JRJU4.js";export{g as ComplexityAnalyzer,c as ScoreCalculator,a as SignalCollector,e as TierRecommender,h as createComplexityAnalyzer,i as createComplexityAnalyzerWithDependencies,d as createScoreCalculator,b as createSignalCollector,f as createTierRecommender};
|
package/dist/cli/chunks/{continuedev-installer-PXAIKNYO.js → continuedev-installer-6DW2SBMQ.js}
RENAMED
|
@@ -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 g}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.17");process.exit(0)}
|
|
2
|
+
import{b as g}from"./chunk-XZOJWFLH.js";import{a as u,c as h}from"./chunk-DJXYFFGA.js";import"./chunk-XB4JRJU4.js";h();import{existsSync as o,mkdirSync as f,readFileSync as d,writeFileSync as a}from"fs";import{join as m,dirname as p}from"path";var c=class{projectRoot;overwrite;generator;constructor(t){this.projectRoot=t.projectRoot,this.overwrite=t.overwrite??!1,this.generator=g()}async install(){let t={success:!0,mcpConfigured:!1,rulesInstalled:!1,errors:[],configPath:"",rulesPath:""};try{let r=this.generator.generateMcpConfig("continuedev"),e=m(this.projectRoot,r.path);if(t.configPath=e,!o(e)||this.overwrite){let n=p(e);if(o(n)||f(n,{recursive:!0}),o(e)&&this.overwrite){let v=this.mergeExistingYamlConfig(e,r.content);a(e,v)}else a(e,r.content);t.mcpConfigured=!0}let s=this.generator.generateBehavioralRules("continuedev"),i=m(this.projectRoot,s.path);if(t.rulesPath=i,!o(i)||this.overwrite){let n=p(i);o(n)||f(n,{recursive:!0}),a(i,s.content),t.rulesInstalled=!0}}catch(r){t.success=!1,t.errors.push(`Continue.dev installation failed: ${u(r)}`)}return t}mergeExistingYamlConfig(t,r){try{let e=d(t,"utf-8");return e.includes("agentic-qe")?e:e.includes("mcpServers:")?e.trimEnd()+`
|
|
3
3
|
`+` - name: agentic-qe
|
|
4
4
|
command: npx
|
|
5
5
|
args:
|
|
@@ -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{b as g}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.17");process.exit(0)}
|
|
2
|
+
import{b as g}from"./chunk-XZOJWFLH.js";import{a as p,c as v}from"./chunk-DJXYFFGA.js";import"./chunk-XB4JRJU4.js";v();import{existsSync as s,mkdirSync as f,readFileSync as C,writeFileSync as l}from"fs";import{join as u,dirname as h}from"path";var a=class{projectRoot;overwrite;generator;constructor(t){this.projectRoot=t.projectRoot,this.overwrite=t.overwrite??!1,this.generator=g()}async install(){let t={success:!0,mcpConfigured:!1,rulesInstalled:!1,errors:[],configPath:"",rulesPath:""};try{let r=this.generator.generateMcpConfig("copilot"),e=u(this.projectRoot,r.path);if(t.configPath=e,!s(e)||this.overwrite){let o=h(e);if(s(o)||f(o,{recursive:!0}),s(e)&&this.overwrite){let m=this.mergeExistingConfig(e,r.content);l(e,m)}else l(e,r.content);t.mcpConfigured=!0}let i=this.generator.generateBehavioralRules("copilot"),n=u(this.projectRoot,i.path);if(t.rulesPath=n,!s(n)||this.overwrite){let o=h(n);s(o)||f(o,{recursive:!0}),l(n,i.content),t.rulesInstalled=!0}}catch(r){t.success=!1,t.errors.push(`Copilot installation failed: ${p(r)}`)}return t}mergeExistingConfig(t,r){try{let e=JSON.parse(C(t,"utf-8")),i=JSON.parse(r);return e.servers||(e.servers={}),Object.assign(e.servers,i.servers),JSON.stringify(e,null,2)+`
|
|
3
3
|
`}catch{return r}}};function y(c){return new a(c)}export{a as CopilotInstaller,y as createCopilotInstaller};
|
|
@@ -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,b,c,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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-AFLTMVMT.js";import"./chunk-XB4JRJU4.js";export{b as CostTracker,a as MODEL_PRICING,c as getGlobalCostTracker,d as resetGlobalCostTracker};
|
|
@@ -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 V}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.17");process.exit(0)}
|
|
2
|
+
import{a as V}from"./chunk-CY73RJJJ.js";import{a as u,b as j,c as F,d as x,e as N,f as O,g as L,h as D,i as B,j as M}from"./chunk-3KIUCAVI.js";import{b as I}from"./chunk-63ERVKIO.js";import{c as P,d as W,g as G}from"./chunk-PMNZN4K7.js";import"./chunk-XB4JRJU4.js";import{Command as q}from"commander";import e from"chalk";var R={low:{minRisk:.7,maxGaps:10,description:"Only critical gaps with high risk scores"},medium:{minRisk:.5,maxGaps:20,description:"Moderate gaps including medium risk items"},high:{minRisk:.3,maxGaps:50,description:"All gaps including low risk items"}},$=class extends M{constructor(t={}){super(t)}getTitle(){return"Coverage Analysis Wizard"}getSubtitle(){return"Analyze code coverage with O(log n) gap detection"}getConfirmationPrompt(){return"Proceed with coverage analysis?"}isNonInteractive(){return this.options.nonInteractive??!1}getCommands(){return[new D({id:"target",stepNumber:"1/7",title:"Target Directory",description:"Enter the directory or file to analyze for coverage",examples:"src/, ./lib, coverage/lcov.info",defaultValue:this.options.defaultTarget||".",suggestionsProvider:j.getCoverageTargets,validatePath:!0}),new x({id:"sensitivity",stepNumber:"2/7",title:"Gap Detection Sensitivity",description:"Select how sensitive the gap detection should be",options:[{key:"1",value:"low",label:"low",description:R.low.description},{key:"2",value:"medium",label:"medium",description:R.medium.description},{key:"3",value:"high",label:"high",description:R.high.description}],defaultValue:this.options.defaultSensitivity||"medium",validValues:["low","medium","high"]}),new x({id:"format",stepNumber:"3/7",title:"Report Format",description:"Select the output format for the coverage report",options:[{key:"1",value:"json",label:"json",description:"JSON - Machine-readable, good for CI/CD pipelines"},{key:"2",value:"html",label:"html",description:"HTML - Interactive, visual report with charts"},{key:"3",value:"markdown",label:"markdown",description:"Markdown - Documentation-friendly format"},{key:"4",value:"text",label:"text",description:"Text - Simple console output"}],defaultValue:this.options.defaultFormat||"json",validValues:["json","html","markdown","text"]}),new N({id:"priorityFocus",stepNumber:"4/7",title:"Priority Focus Areas",description:"Select coverage metrics to prioritize (comma-separated or numbers)",instructions:"Example: 1,2 or functions,branches",options:[{key:"1",value:"functions",label:"functions",description:"Functions - Focus on function coverage"},{key:"2",value:"branches",label:"branches",description:"Branches - Focus on branch/decision coverage"},{key:"3",value:"lines",label:"lines",description:"Lines - Focus on line coverage"},{key:"4",value:"statements",label:"statements",description:"Statements - Focus on statement coverage"}],defaultValue:this.options.defaultPriorityFocus||["functions","branches"],validValues:["functions","branches","lines","statements"]}),new O({id:"riskScoring",stepNumber:"5/7",title:"Enable risk scoring",description:"Enable risk scoring to prioritize coverage gaps by potential impact",additionalInfo:"Risk scores consider code complexity, change frequency, and criticality",defaultValue:this.options.defaultRiskScoring??!0}),new L({id:"threshold",stepNumber:"6/7",title:"Coverage threshold %",description:"Set the minimum coverage percentage required. Files below this threshold will be flagged.",presets:[{key:"1",value:60,label:"60% - Legacy/maintenance projects"},{key:"2",value:70,label:"70% - Standard projects"},{key:"3",value:80,label:"80% - Quality-focused projects"},{key:"4",value:90,label:"90% - Critical/high-reliability projects"}],defaultValue:this.options.defaultThreshold||80,min:0,max:100}),new B({id:"patterns",stepNumber:"7/7",title:"File Patterns (Optional)",description:"Specify patterns to include or exclude from analysis. Leave blank to analyze all files."})]}buildResult(t){let h=t.patterns;return{target:t.target,sensitivity:t.sensitivity,format:t.format,priorityFocus:t.priorityFocus,riskScoring:t.riskScoring,threshold:t.threshold,includePatterns:h?.include,excludePatterns:h?.exclude,cancelled:!1}}printSummary(t){u.printSummaryHeader();let h=F.relativePath(t.target,this.cwd);u.printSummaryField("Target",h),u.printSummaryField("Sensitivity",t.sensitivity),u.printSummaryField("Report Format",t.format),u.printSummaryField("Priority Focus",t.priorityFocus.join(", ")),u.printSummaryField("Risk Scoring",F.enabledDisabled(t.riskScoring)),u.printSummaryField("Threshold",F.percentage(t.threshold)),t.includePatterns&&t.includePatterns.length>0&&u.printSummaryField("Include",t.includePatterns.join(", ")),t.excludePatterns&&t.excludePatterns.length>0&&u.printSummaryField("Exclude",t.excludePatterns.join(", "));let b=R[t.sensitivity];u.printDerivedSettings({"Min risk score":String(b.minRisk),"Max gaps shown":String(b.maxGaps)})}getDefaults(){return{target:this.options.defaultTarget||this.cwd,sensitivity:this.options.defaultSensitivity||"medium",format:this.options.defaultFormat||"json",priorityFocus:this.options.defaultPriorityFocus||["functions","branches"],riskScoring:this.options.defaultRiskScoring??!0,threshold:this.options.defaultThreshold||80,cancelled:!1}}getCancelled(){return{target:".",sensitivity:"medium",format:"json",priorityFocus:["functions","branches"],riskScoring:!0,threshold:80,cancelled:!0}}};async function E(p={}){return new $(p).run()}function z(p){return p>=80?e.green:p>=50?e.yellow:e.red}function te(p,t,h){let b=new q("coverage").description("Coverage analysis shortcut").argument("[target]","Target file or directory",".").option("--risk","Include risk scoring").option("--gaps","Detect coverage gaps").option("--threshold <percent>","Coverage threshold percentage","80").option("--sensitivity <level>","Gap detection sensitivity (low|medium|high)","medium").option("--wizard","Run interactive coverage analysis wizard").option("--ghost","Include ghost intent coverage analysis (detect untested behavioral intents)").option("-F, --format <format>","Output format (text|json|markdown)","text").option("-o, --output <path>","Write output to file").action(async(y,i)=>{let g=y,w=i.risk,k=i.gaps,d=parseInt(i.threshold,10);if(i.wizard)try{let s=await E({defaultTarget:y!=="."?y:void 0,defaultThreshold:i.threshold!=="80"?parseInt(i.threshold,10):void 0,defaultRiskScoring:i.risk,defaultSensitivity:i.sensitivity!=="medium"?i.sensitivity:void 0});s.cancelled&&(console.log(e.yellow(`
|
|
3
3
|
Coverage analysis cancelled.
|
|
4
4
|
`)),await t(0)),g=s.target,w=s.riskScoring,k=!0,d=s.threshold,console.log(e.green(`
|
|
5
5
|
Starting coverage analysis...
|
|
@@ -19,7 +19,7 @@ import{a as V}from"./chunk-VBEVZUQW.js";import{a as u,b as j,c as F,d as x,e as
|
|
|
19
19
|
Risk Analysis:`));let o=[...c.files].sort((n,r)=>n.lines.covered/n.lines.total-r.lines.covered/r.lines.total).slice(0,5);for(let n of o){let r=await s.calculateRisk({file:n.path,uncoveredLines:n.uncoveredLines});if(r.success&&r.value){let l=r.value,C=l.riskLevel==="high"?e.red:l.riskLevel==="medium"?e.yellow:e.green,A=n.path.replace(process.cwd()+"/","");console.log(` ${C(`[${l.riskLevel}]`)} ${e.white(A)}`),console.log(e.gray(` Risk: ${(l.overallRisk*100).toFixed(0)}%, Coverage: ${Math.round(n.lines.covered/n.lines.total*100)}%`))}}}if(a&&f==="json"?P(W(a),i.output):a&&f==="markdown"?P(G(a),i.output):f==="text"&&console.log(e.green(`
|
|
20
20
|
Coverage analysis complete
|
|
21
21
|
`)),a&&!a.meetsThreshold&&await t(1),a){let o=(a.summary.line+a.summary.branch+a.summary.function+a.summary.statement)/4;o<d+5&&o>=d&&await t(2)}await t(0)}catch(s){console.error(e.red(`
|
|
22
|
-
Failed:`),s),await t(1)}});return b.command("gaps").description("Enumerate unhandled branches in source files").argument("<file>","Source file to analyze").option("--mechanical","Exhaustive mode: report all branches without filtering").option("--json","Output as JSON").option("--markdown","Output as markdown report").action(async(y,i)=>{try{let{readFileSync:g,existsSync:w}=await import("fs"),k=await import("path"),{enumerateBranches:d,formatBranchReport:s,formatBranchJSON:T}=await import("./branch-enumerator-
|
|
22
|
+
Failed:`),s),await t(1)}});return b.command("gaps").description("Enumerate unhandled branches in source files").argument("<file>","Source file to analyze").option("--mechanical","Exhaustive mode: report all branches without filtering").option("--json","Output as JSON").option("--markdown","Output as markdown report").action(async(y,i)=>{try{let{readFileSync:g,existsSync:w}=await import("fs"),k=await import("path"),{enumerateBranches:d,formatBranchReport:s,formatBranchJSON:T}=await import("./branch-enumerator-OKUPS2XC.js"),v=k.resolve(y);w(v)||(console.error(e.red(`
|
|
23
23
|
File not found: ${v}
|
|
24
24
|
`)),await t(1));let S=g(v,"utf-8"),c=d(S,v);if(i.json)console.log(T(c));else if(i.markdown)console.log(s(c));else{if(console.log(`
|
|
25
25
|
${e.cyan("Branch Enumeration:")} ${e.white(y)}`),console.log(e.gray(`Found ${c.unhandledCount} unhandled branches (${c.duration}ms)
|
|
@@ -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.17");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-G5DEPXD4.js";import"./chunk-WP55YBB2.js";import"./chunk-UTO2M76W.js";import"./chunk-Z5R46W6Q.js";import"./chunk-XB4JRJU4.js";export{a as CrossDomainEventRouter,b as createCrossDomainRouter};
|
|
@@ -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{b as g}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.17");process.exit(0)}
|
|
2
|
+
import{b as g}from"./chunk-XZOJWFLH.js";import{a as u,c as m}from"./chunk-DJXYFFGA.js";import"./chunk-XB4JRJU4.js";m();import{existsSync as s,mkdirSync as h,readFileSync as v,writeFileSync as i}from"fs";import{join as f,dirname as C}from"path";var a=class{projectRoot;overwrite;generator;constructor(r){this.projectRoot=r.projectRoot,this.overwrite=r.overwrite??!1,this.generator=g()}async install(){let r={success:!0,mcpConfigured:!1,rulesInstalled:!1,errors:[],configPath:"",rulesPath:""};try{let t=this.generator.generateMcpConfig("cursor"),e=f(this.projectRoot,t.path);if(r.configPath=e,!s(e)||this.overwrite){let l=C(e);if(s(l)||h(l,{recursive:!0}),s(e)&&this.overwrite){let p=this.mergeExistingConfig(e,t.content);i(e,p)}else i(e,t.content);r.mcpConfigured=!0}let o=this.generator.generateBehavioralRules("cursor"),n=f(this.projectRoot,o.path);r.rulesPath=n,(!s(n)||this.overwrite)&&(i(n,o.content),r.rulesInstalled=!0)}catch(t){r.success=!1,r.errors.push(`Cursor installation failed: ${u(t)}`)}return r}mergeExistingConfig(r,t){try{let e=JSON.parse(v(r,"utf-8")),o=JSON.parse(t);return e.mcpServers||(e.mcpServers={}),Object.assign(e.mcpServers,o.mcpServers),JSON.stringify(e,null,2)+`
|
|
3
3
|
`}catch{return t}}};function R(c){return new a(c)}export{a as CursorInstaller,R as createCursorInstaller};
|
|
@@ -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 N}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.17");process.exit(0)}
|
|
2
|
+
import{a as N}from"./chunk-QMVGGG4B.js";import"./chunk-XB4JRJU4.js";import{Command as ae}from"commander";import s from"chalk";import{cpus as ne,freemem as ie,totalmem as re,loadavg as se}from"os";var f=class{queues={now:[],next:[],later:[]};_maxSize;constructor(e=1e3){this._maxSize=e}enqueue(e){return this.size>=this._maxSize?!1:(this.queues[e.priority].push(e),!0)}dequeue(){let e=Date.now();for(let t of["now","next","later"]){let o=this.queues[t];for(;o.length>0;){let n=o.shift();if(!(n.ttlMs&&e-n.createdAt>n.ttlMs))return n}}}peek(){let e=Date.now();for(let t of["now","next","later"]){let o=this.queues[t];for(let n of o)if(!n.ttlMs||e-n.createdAt<=n.ttlMs)return n}}drainPriority(e){let t=this.queues[e].splice(0),o=Date.now();return t.filter(n=>!n.ttlMs||o-n.createdAt<=n.ttlMs)}pruneExpired(){let e=0,t=Date.now();for(let o of["now","next","later"]){let n=this.queues[o].length;this.queues[o]=this.queues[o].filter(i=>!i.ttlMs||t-i.createdAt<=i.ttlMs),e+=n-this.queues[o].length}return e}get size(){return this.queues.now.length+this.queues.next.length+this.queues.later.length}get depths(){return{now:this.queues.now.length,next:this.queues.next.length,later:this.queues.later.length}}get isEmpty(){return this.size===0}clear(){this.queues.now=[],this.queues.next=[],this.queues.later=[]}};import{watch as E}from"fs";import{execFile as L}from"child_process";import{promisify as U}from"util";import{resolve as W,join as z}from"path";import{existsSync as j,readFileSync as B}from"fs";var M=U(L),J={repoRoot:process.cwd(),debounceMs:500,maxChangedFiles:200,pollIntervalMs:5e3},y=class{constructor(e,t){this.queue=e;this.options={...J,...t}}queue;watcher;pollTimer;options;lastKnownHeads=new Map;debounceTimer;_running=!1;_polling=!1;get running(){return this._running}async start(){if(this._running)return;let e=W(this.options.repoRoot,".git","refs","heads");if(!j(e))throw new Error(`Git refs directory not found: ${e}`);await this.snapshotHeads(),process.platform==="darwin"||process.platform==="win32"?this.watcher=E(e,{recursive:!0},(o,n)=>{n&&this.handleRefChange(n)}):this.pollTimer=setInterval(()=>{this.poll().catch(o=>{console.debug("[GitWatcher] Poll error:",o)})},this.options.pollIntervalMs),this._running=!0}stop(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=void 0),this.watcher&&(this.watcher.close(),this.watcher=void 0),this._running=!1}async poll(){if(this._polling)return[];this._polling=!0;let e=[];try{let{stdout:t}=await M("git",["for-each-ref","--format=%(refname:short) %(objectname:short)","refs/heads/"],{cwd:this.options.repoRoot});for(let o of t.trim().split(`
|
|
3
3
|
`)){if(!o)continue;let[n,i]=o.split(" "),r=this.lastKnownHeads.get(n);r&&r!==i&&(e.push(n),await this.enqueueCommitAnalysis(n,i)),this.lastKnownHeads.set(n,i)}}catch{}finally{this._polling=!1}return e}handleRefChange(e){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.processRefChange(e).catch(t=>{console.debug("[GitWatcher] Error processing ref change:",t)})},this.options.debounceMs)}async processRefChange(e){let t=e.replace(/\\/g,"/"),o=W(this.options.repoRoot,".git","refs","heads"),n=z(o,e),i;try{i=B(n,"utf-8").trim()}catch{return}this.lastKnownHeads.get(t)!==i&&(this.lastKnownHeads.set(t,i),await this.enqueueCommitAnalysis(t,i))}async enqueueCommitAnalysis(e,t){let o=[];try{let{stdout:r}=await M("git",["diff-tree","--no-commit-id","--name-only","-r",t],{cwd:this.options.repoRoot});o=r.trim().split(`
|
|
4
4
|
`).filter(Boolean).slice(0,this.options.maxChangedFiles)}catch{}let n={type:"git_commit",branch:e,commitHash:t,changedFiles:o},i={id:`git-${t}-${Date.now()}`,priority:"next",payload:n,createdAt:Date.now(),source:"git-watcher",ttlMs:300*1e3};this.queue.enqueue(i)}async snapshotHeads(){try{let{stdout:e}=await M("git",["for-each-ref","--format=%(refname:short) %(objectname:short)","refs/heads/"],{cwd:this.options.repoRoot});for(let t of e.trim().split(`
|
|
5
5
|
`)){if(!t)continue;let[o,n]=t.split(" ");this.lastKnownHeads.set(o,n)}}catch{}}};var V={regressionThreshold:2,gapThreshold:60,memoryPrefix:"quality-daemon:coverage"},v=class{constructor(e,t){this.queue=e;this.options={...V,...t}}queue;options;async analyze(e,t,o){let n=await t.get(`${this.options.memoryPrefix}:snapshot`);if(await t.set(`${this.options.memoryPrefix}:snapshot`,e),!n)return{regressionDetected:!1,overallDelta:{line:0,branch:0,function:0,statement:0},affectedFiles:[],newGaps:[]};let i=n,r={line:e.overall.line-i.overall.line,branch:e.overall.branch-i.overall.branch,function:e.overall.function-i.overall.function,statement:e.overall.statement-i.overall.statement},a=r.line<-this.options.regressionThreshold||r.branch<-this.options.regressionThreshold,c=o??Object.keys(e.files),d=[],h=[];for(let g of c){let m=e.files[g],p=i.files[g];if(!m)continue;let R=p?m.line-p.line:0,$=p?m.branch-p.branch:0,I=p?m.uncoveredLines.filter(_=>!p.uncoveredLines.includes(_)):m.uncoveredLines;if((R!==0||$!==0||I.length>0)&&d.push({file:g,lineDelta:R,branchDelta:$,newUncoveredLines:I}),m.line<this.options.gapThreshold){let _=this.computeRiskScore(m,I.length);h.push({file:g,uncoveredLines:m.uncoveredLines,currentCoverage:m.line,riskScore:_})}}return(a||h.length>0)&&this.enqueueTestSuggestion(e,i,h),await t.set(`${this.options.memoryPrefix}:delta`,{timestamp:Date.now(),overallDelta:r,regressionDetected:a,affectedFileCount:d.length,gapCount:h.length}),{regressionDetected:a,overallDelta:r,affectedFiles:d,newGaps:h}}async buildSnapshot(e){let t=await e.get("coverage:latest");if(t)return{timestamp:Date.now(),overall:{line:t.line,branch:t.branch,function:t.function,statement:t.statement},files:t.files??{}}}computeRiskScore(e,t){let n=1-Math.min(100,Math.max(0,e.line))/100,i=Math.min(t/50,1);return Math.min(1,n*.6+i*.4)}enqueueTestSuggestion(e,t,o){let n={type:"coverage_delta",previousSnapshot:`snapshot-${t.timestamp}`,currentSnapshot:`snapshot-${e.timestamp}`},i={id:`coverage-delta-${Date.now()}`,priority:o.some(r=>r.riskScore>.8)?"now":"next",payload:n,createdAt:Date.now(),source:"coverage-delta",ttlMs:600*1e3};this.queue.enqueue(i)}};import{execFile as K}from"child_process";import{promisify as Y}from"util";var X=Y(K),Z={runsPerWorkflow:10,flakyThreshold:3,repo:""},w=class{constructor(e,t){this.queue=e;this.options={...Z,...t}}queue;options;async check(){let e=await this.fetchRecentRuns(),t=this.groupByWorkflow(e),o=[],n=[],i=0;for(let[a,c]of Object.entries(t)){let d=c.filter(p=>p.conclusion==="failure").length,h=c.length>0?(c.length-d)/c.length*100:100,g=this.countConsecutiveFailures(c),m=c[0]?.conclusion??"unknown";m==="failure"&&i++,g>=this.options.flakyThreshold&&(n.push(a),this.enqueueFailureAlert(a,c[0])),o.push({name:a,recentRuns:c.length,failedRuns:d,successRate:Math.round(h*10)/10,lastConclusion:m,consecutiveFailures:g})}let r=this.calculateHealthScore(o);return{timestamp:Date.now(),workflows:o,failingWorkflows:i,flakyWorkflows:n,healthScore:r}}async fetchRecentRuns(){try{let e=["run","list","--limit",String(this.options.runsPerWorkflow*5),"--json","name,status,conclusion,headBranch,number,databaseId,createdAt"];this.options.repo&&e.push("--repo",this.options.repo);let{stdout:t}=await X("gh",e,{timeout:15e3});return JSON.parse(t).map(n=>({name:n.name,status:n.status,conclusion:n.conclusion??"pending",headBranch:n.headBranch,runNumber:n.number,databaseId:n.databaseId,createdAt:n.createdAt}))}catch{return[]}}groupByWorkflow(e){let t={};for(let o of e)t[o.name]||(t[o.name]=[]),t[o.name].push(o);for(let o of Object.keys(t))t[o]=t[o].slice(0,this.options.runsPerWorkflow);return t}countConsecutiveFailures(e){let t=0;for(let o of e)if(o.conclusion==="failure")t++;else break;return t}calculateHealthScore(e){if(e.length===0)return 100;let t=e.reduce((o,n)=>o+n.successRate,0)/e.length;return Math.round(t)}enqueueFailureAlert(e,t){let o={type:"ci_failure",workflowName:e,runId:t.databaseId,conclusion:t.conclusion},n={id:`ci-failure-${e}-${Date.now()}`,priority:"now",payload:o,createdAt:Date.now(),source:"ci-monitor",ttlMs:1800*1e3};this.queue.enqueue(n)}};var ee={memoryPrefix:"quality-daemon:suggestions",maxSuggestions:100,minRiskScore:.3},b=class{options;constructor(e){this.options={...ee,...e}}async suggest(e,t,o){let n=[],i=e.filter(a=>a.riskScore>=this.options.minRiskScore);for(let a of i){let c=t.includes(a.file),d=this.determinePriority(a,c),h=this.determineTestType(a.file),g=this.estimateEffort(a);n.push({id:`suggestion-${Date.now()}-${n.length}`,file:a.file,uncoveredLines:a.uncoveredLines.slice(0,50),suggestedTestType:h,description:this.generateDescription(a,h),priority:d,estimatedEffort:g,createdAt:Date.now(),status:"pending"})}n.sort((a,c)=>{let d={high:0,medium:1,low:2};return d[a.priority]-d[c.priority]});let r=n.slice(0,this.options.maxSuggestions);return await this.storeSuggestions(r,o),r}async getPending(e){return(await e.get(`${this.options.memoryPrefix}:list`)??[]).filter(o=>o.status==="pending")}async updateStatus(e,t,o){let n=await o.get(`${this.options.memoryPrefix}:list`);if(!n)return!1;let i=n.findIndex(a=>a.id===e);if(i===-1)return!1;let r=n.map((a,c)=>c===i?{...a,status:t}:a);return await o.set(`${this.options.memoryPrefix}:list`,r),!0}determinePriority(e,t){return e.riskScore>.8?"high":t||e.riskScore>.5?"medium":"low"}determineTestType(e){return e.includes("/api/")||e.includes("/routes/")||e.includes("/handlers/")?"integration":e.includes("/e2e/")||e.includes("/pages/")||e.includes("/views/")?"e2e":"unit"}estimateEffort(e){return e.uncoveredLines.length<=10?"small":e.uncoveredLines.length<=50?"medium":"large"}generateDescription(e,t){let o=e.uncoveredLines.length,n=Math.round(e.currentCoverage);return`Add ${t} tests for ${e.file} (${o} uncovered lines, ${n}% coverage, risk ${(e.riskScore*100).toFixed(0)}%)`}async storeSuggestions(e,t){let i=[...(await t.get(`${this.options.memoryPrefix}:list`)??[]).filter(r=>r.status!=="pending"),...e].slice(-this.options.maxSuggestions);await t.set(`${this.options.memoryPrefix}:list`,i),await t.set(`${this.options.memoryPrefix}:count`,{pending:e.length,total:i.length,lastUpdated:Date.now()})}};var te={memoryPrefix:"quality-daemon:nightly",maxEntryAge:6048e5,nightlyHour:2},k=class{constructor(e,t){this.queue=e;this.options={...te,...t}}queue;options;lastRunDate;shouldRun(){let e=new Date,t=e.toISOString().split("T")[0];return this.lastRunDate===t?!1:e.getHours()>=this.options.nightlyHour}scheduleIfDue(){if(!this.shouldRun())return!1;let e={type:"nightly",tasks:["consolidate_patterns","prune_expired","generate_report"]},t={id:`nightly-${Date.now()}`,priority:"later",payload:e,createdAt:Date.now(),source:"nightly-consolidation",ttlMs:720*60*1e3};return this.queue.enqueue(t)}async execute(e,t){let o=Date.now(),n=new Date().toISOString().split("T")[0],i=await this.consolidatePatterns(e),r=await this.pruneExpired(e),a=this.generateReport(n,t);await e.set(`${this.options.memoryPrefix}:report:${n}`,a),this.lastRunDate=n;let c={timestamp:Date.now(),patternsConsolidated:i,entriesPruned:r,reportGenerated:!0,durationMs:Date.now()-o};return await e.set(`${this.options.memoryPrefix}:last-result`,c),c}async getLastResult(e){return e.get(`${this.options.memoryPrefix}:last-result`)}async consolidatePatterns(e){let t=await e.search("quality-daemon:*"),o=0;return await e.get("quality-daemon:suggestions:count")&&o++,await e.get("quality-daemon:coverage:delta")&&o++,o}async pruneExpired(e){let t=await e.search("quality-daemon:*"),o=0,n=Date.now();for(let i of t){if(i.endsWith(":snapshot")||i.endsWith(":list"))continue;let r=await e.get(i);r&&typeof r.timestamp=="number"&&n-r.timestamp>this.options.maxEntryAge&&(await e.set(i,{pruned:!0,prunedAt:n}),o++)}return o}generateReport(e,t){return{date:e,coverageHealth:t.coverageHealth??0,ciHealth:t.ciHealth??0,commitsAnalyzed:t.commitsAnalyzed??0,suggestionsGenerated:t.suggestionsGenerated??0,notificationsSent:t.notificationsSent??0,queueDepthAvg:t.queueDepthAvg??0,daemonUptime:t.uptimeSeconds??0}}};import{writeFileSync as A,mkdirSync as Q,readdirSync as P,readFileSync as F,unlinkSync as G}from"fs";import{join as C,resolve as oe}from"path";var O={notificationsDir:oe(process.cwd(),".agentic-qe","notifications"),maxNotifications:200},S=class{notificationsDir;maxNotifications;webhookUrl;urlValidator;_sentCount=0;constructor(e){this.notificationsDir=e?.notificationsDir??O.notificationsDir,this.maxNotifications=e?.maxNotifications??O.maxNotifications,this.webhookUrl=e?.webhookUrl,this.urlValidator=e?.urlValidator}get sentCount(){return this._sentCount}initialize(){Q(this.notificationsDir,{recursive:!0})}async send(e){let t={...e,id:`notif-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,timestamp:Date.now(),read:!1};return this.writeToFile(t),this.webhookUrl&&await this.sendWebhook(t),this._sentCount++,this.pruneOldNotifications(),t}list(e){let t=e?.limit??50;try{let o=P(this.notificationsDir).filter(i=>i.endsWith(".json")).sort().reverse(),n=[];for(let i of o){if(n.length>=t)break;try{let r=F(C(this.notificationsDir,i),"utf-8"),a=JSON.parse(r);if(e?.unreadOnly&&a.read||e?.type&&a.type!==e.type)continue;n.push(a)}catch{}}return n}catch{return[]}}markRead(e){try{let t=P(this.notificationsDir).filter(r=>r.endsWith(`-${e}.json`));if(t.length===0)return!1;let o=C(this.notificationsDir,t[0]),i={...JSON.parse(F(o,"utf-8")),read:!0};return A(o,JSON.stringify(i,null,2)),!0}catch{return!1}}clear(){try{let e=P(this.notificationsDir).filter(t=>t.endsWith(".json"));for(let t of e)G(C(this.notificationsDir,t));return e.length}catch{return 0}}writeToFile(e){try{Q(this.notificationsDir,{recursive:!0});let t=`${e.timestamp}-${e.id}.json`,o=C(this.notificationsDir,t);A(o,JSON.stringify(e,null,2))}catch(t){console.debug("[NotificationService] Failed to write notification:",t)}}async sendWebhook(e){if(this.webhookUrl){if(this.urlValidator&&!this.urlValidator(this.webhookUrl)){console.warn("[NotificationService] Webhook URL blocked by SSRF guard:",this.webhookUrl);return}try{let t=await fetch(this.webhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:AbortSignal.timeout(5e3)});t.ok||console.debug(`[NotificationService] Webhook returned ${t.status}`)}catch(t){console.debug("[NotificationService] Webhook delivery failed:",t)}}}pruneOldNotifications(){try{let e=P(this.notificationsDir).filter(o=>o.endsWith(".json")).sort();if(e.length<=this.maxNotifications)return;let t=e.slice(0,e.length-this.maxNotifications);for(let o of t)G(C(this.notificationsDir,o))}catch{}}};var q="quality-daemon",D=class{constructor(e){this.backend=e}backend;async get(e){return this.backend.kvGet(e,q)}async set(e,t){await this.backend.kvSet(e,t,q)}async search(e){return this.backend.kvSearch(e,q)}};var T={tickIntervalMs:3e4,ciPollIntervalMs:5*6e4,coverageCheckIntervalMs:2*6e4,cpuThreshold:.7,memoryThreshold:.8},x=class{queue;gitWatcher;coverageDelta;ciMonitor;testSuggester;nightlyConsolidation;notificationService;tickTimer;_running=!1;_startedAt=0;_tickCount=0;_lastTickAt;_throttled=!1;_commitsAnalyzed=0;_suggestionsGenerated=0;_ciHealth=100;_coverageHealth=100;_lastCICheck;_lastCoverageCheck;_memory;config;constructor(e){this.config={tickIntervalMs:e?.tickIntervalMs??T.tickIntervalMs,ciPollIntervalMs:e?.ciPollIntervalMs??T.ciPollIntervalMs,coverageCheckIntervalMs:e?.coverageCheckIntervalMs??T.coverageCheckIntervalMs,cpuThreshold:e?.cpuThreshold??T.cpuThreshold,memoryThreshold:e?.memoryThreshold??T.memoryThreshold},this.queue=new f,this.gitWatcher=new y(this.queue,e?.git),this.coverageDelta=new v(this.queue,e?.coverage),this.ciMonitor=new w(this.queue,e?.ci),this.testSuggester=new b(e?.suggestions),this.nightlyConsolidation=new k(this.queue,e?.nightly),this.notificationService=new S(e?.notifications)}get running(){return this._running}async start(e){this._running||(this._memory=e,this._running=!0,this._startedAt=Date.now(),this.notificationService.initialize(),await this.gitWatcher.start().catch(t=>{console.debug("[QualityDaemon] Git watcher failed to start:",t)}),this.scheduleTick())}async stop(){this._running&&(this._running=!1,this.tickTimer&&(clearTimeout(this.tickTimer),this.tickTimer=void 0),this.gitWatcher.stop(),this._memory&&await this._memory.set("quality-daemon:state",{stoppedAt:Date.now(),tickCount:this._tickCount,commitsAnalyzed:this._commitsAnalyzed,suggestionsGenerated:this._suggestionsGenerated}))}getStatus(){return{running:this._running,uptimeSeconds:this._running?Math.floor((Date.now()-this._startedAt)/1e3):0,tickCount:this._tickCount,queueDepth:this.queue.depths,lastTickAt:this._lastTickAt,throttled:this._throttled,commitsAnalyzed:this._commitsAnalyzed,suggestionsGenerated:this._suggestionsGenerated,notificationsSent:this.notificationService.sentCount,ciHealth:this._ciHealth,coverageHealth:this._coverageHealth,lastCICheck:this._lastCICheck,lastCoverageCheck:this._lastCoverageCheck}}scheduleTick(){this._running&&(this.tickTimer=setTimeout(()=>this.tick(),this.config.tickIntervalMs))}async tick(){if(!(!this._running||!this._memory)){if(this._tickCount++,this._lastTickAt=Date.now(),this._throttled=this.isResourceConstrained(),this._throttled){await this.processNowItems(this._memory),this.scheduleTick();return}await this.processQueue(this._memory),await this.runPeriodicChecks(this._memory),this.nightlyConsolidation.scheduleIfDue(),this.queue.pruneExpired(),this.scheduleTick()}}async processQueue(e){let t=0,o=10;for(;t<o&&!this.queue.isEmpty;){let n=this.queue.dequeue();if(!n)break;await this.handleQueueItem(n,e),t++}}async processNowItems(e){let t=this.queue.drainPriority("now");for(let o of t)await this.handleQueueItem(o,e)}async handleQueueItem(e,t){let o=e.payload;switch(o.type){case"git_commit":this._commitsAnalyzed++;let n=await this.coverageDelta.buildSnapshot(t);if(n){let i=await this.coverageDelta.analyze(n,t,o.changedFiles);if(i.regressionDetected&&await this.notificationService.send({type:"coverage_drop",title:"Coverage Regression Detected",message:`Line coverage delta: ${i.overallDelta.line.toFixed(1)}% (${i.affectedFiles.length} files affected)`,severity:"high",metadata:{delta:i.overallDelta,commit:o.commitHash}}),i.newGaps.length>0){let r=await this.testSuggester.suggest(i.newGaps,o.changedFiles,t);this._suggestionsGenerated+=r.length,r.length>0&&await this.notificationService.send({type:"suggestion_available",title:"New Test Suggestions Available",message:`${r.length} test suggestions generated for uncovered code`,severity:"info",metadata:{count:r.length}})}}break;case"coverage_delta":{let i=await this.testSuggester.getPending(t);i.length>0&&await this.notificationService.send({type:"suggestion_available",title:"Test Suggestions Pending",message:`${i.length} test suggestions awaiting review`,severity:"info",metadata:{count:i.length}});break}case"gate_failure":await this.notificationService.send({type:"gate_failure",title:`Quality Gate Failed: ${o.gateName}`,message:`Score ${o.score} below threshold ${o.threshold}`,severity:"critical",metadata:{gate:o.gateName,score:o.score,threshold:o.threshold}});break;case"ci_failure":await this.notificationService.send({type:"ci_failure",title:`CI Failure: ${o.workflowName}`,message:`Workflow ${o.workflowName} run #${o.runId} concluded: ${o.conclusion}`,severity:"high",metadata:{workflow:o.workflowName,runId:o.runId}});break;case"nightly":{let i={coverageHealth:this._coverageHealth,ciHealth:this._ciHealth,commitsAnalyzed:this._commitsAnalyzed,suggestionsGenerated:this._suggestionsGenerated,notificationsSent:this.notificationService.sentCount,queueDepthAvg:this.queue.size,uptimeSeconds:Math.floor((Date.now()-this._startedAt)/1e3)};await this.nightlyConsolidation.execute(t,i);break}default:console.warn("[QualityDaemon] Unhandled payload type:",o.type)}}async runPeriodicChecks(e){let t=Date.now();if(!this._lastCICheck||t-this._lastCICheck>=this.config.ciPollIntervalMs)try{let o=await this.ciMonitor.check();this._ciHealth=o.healthScore,this._lastCICheck=t,o.flakyWorkflows.length>0&&await this.notificationService.send({type:"flaky_detected",title:"Flaky Workflows Detected",message:`${o.flakyWorkflows.length} workflows showing repeated failures: ${o.flakyWorkflows.join(", ")}`,severity:"medium",metadata:{workflows:o.flakyWorkflows}})}catch{}if(!this._lastCoverageCheck||t-this._lastCoverageCheck>=this.config.coverageCheckIntervalMs)try{let o=await this.coverageDelta.buildSnapshot(e);o&&(this._coverageHealth=Math.round((o.overall.line+o.overall.branch+o.overall.function+o.overall.statement)/4),this._lastCoverageCheck=t)}catch{}}isResourceConstrained(){if(1-ie()/re()>this.config.memoryThreshold)return!0;let t=ne().length;return(t>0?se()[0]/t:0)>this.config.cpuThreshold}};var u;function Ke(){let l=new ae("daemon").description("Manage the QE Quality Daemon").addHelpText("after",`
|
|
@@ -9,7 +9,7 @@ Examples:
|
|
|
9
9
|
aqe daemon status Show daemon health and queue depth
|
|
10
10
|
aqe daemon notifications List recent notifications
|
|
11
11
|
aqe daemon clear-notifications Clear all notifications
|
|
12
|
-
`);return l.command("start").description("Start the QE Quality Daemon").option("--tick-interval <ms>","Tick interval in milliseconds","30000").option("--ci-interval <ms>","CI poll interval in milliseconds","300000").action(async e=>{if(u?.running){console.log(s.yellow("Daemon is already running"));let r=u.getStatus();console.log(s.gray(` Uptime: ${r.uptimeSeconds}s, Ticks: ${r.tickCount}`));return}let t={tickIntervalMs:parseInt(e.tickInterval,10),ciPollIntervalMs:parseInt(e.ciInterval,10),notifications:{urlValidator:r=>{try{let c=new URL(r).hostname.replace(/^\[|\]$/g,"");return!N(c)}catch{return!1}}}};u=new x(t);let o;try{let{UnifiedMemoryManager:r}=await import("./unified-memory-
|
|
12
|
+
`);return l.command("start").description("Start the QE Quality Daemon").option("--tick-interval <ms>","Tick interval in milliseconds","30000").option("--ci-interval <ms>","CI poll interval in milliseconds","300000").action(async e=>{if(u?.running){console.log(s.yellow("Daemon is already running"));let r=u.getStatus();console.log(s.gray(` Uptime: ${r.uptimeSeconds}s, Ticks: ${r.tickCount}`));return}let t={tickIntervalMs:parseInt(e.tickInterval,10),ciPollIntervalMs:parseInt(e.ciInterval,10),notifications:{urlValidator:r=>{try{let c=new URL(r).hostname.replace(/^\[|\]$/g,"");return!N(c)}catch{return!1}}}};u=new x(t);let o;try{let{UnifiedMemoryManager:r}=await import("./unified-memory-O7GFUSD3.js"),a=await r.getInstanceAsync();o=new D(a),console.log(s.gray(" Storage: SQLite (persistent)"))}catch{let r=new Map;o={async get(a){return r.get(a)},async set(a,c){r.set(a,c)},async search(a){let c=a.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),d=new RegExp(c.replace(/\*/g,".*"));return Array.from(r.keys()).filter(h=>d.test(h))}},console.log(s.yellow(" Storage: in-memory (no SQLite available, state will not persist)"))}console.log(s.green("Starting QE Quality Daemon...")),await u.start(o),console.log(s.green("QE Quality Daemon started")),console.log(s.gray(` Tick interval: ${t.tickIntervalMs}ms`)),console.log(s.gray(` CI poll interval: ${t.ciPollIntervalMs}ms`)),console.log(s.gray(` PID: ${process.pid}`)),console.log(s.gray(`
|
|
13
13
|
Press Ctrl+C to stop`));let n=setInterval(()=>{u?.running||clearInterval(n)},5e3),i=async()=>{console.log(s.yellow(`
|
|
14
14
|
Stopping QE Quality Daemon...`)),await u?.stop(),clearInterval(n),console.log(s.green("Daemon stopped")),process.exit(0)};process.once("SIGINT",i),process.once("SIGTERM",i)}),l.command("stop").description("Stop the QE Quality Daemon").action(async()=>{if(!u?.running){console.log(s.yellow("No running daemon found"));return}await u.stop(),console.log(s.green("Daemon stopped")),u=void 0}),l.command("status").description("Show daemon health and queue status").action(()=>{if(!u){console.log(s.yellow("No daemon instance (start with: aqe daemon start)"));return}let e=u.getStatus();console.log(s.bold(`
|
|
15
15
|
QE Quality Daemon Status`)),console.log(s.gray("\u2500".repeat(40))),console.log(` Running: ${e.running?s.green("yes"):s.red("no")}`),console.log(` Uptime: ${le(e.uptimeSeconds)}`),console.log(` Ticks: ${e.tickCount}`),console.log(` Throttled: ${e.throttled?s.yellow("yes"):s.green("no")}`),console.log(s.bold(`
|
package/dist/cli/chunks/{dag-attention-scheduler-5DSWXMMK.js → dag-attention-scheduler-ZNLUW2HL.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.17");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-APWO3FI3.js";import"./chunk-XB4JRJU4.js";export{a as DAGAttentionScheduler,b as createDAGAttentionScheduler};
|
|
@@ -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,b,c,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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-JT2KLBDB.js";import"./chunk-6YFEWIL5.js";import"./chunk-XB4JRJU4.js";export{a as clearDetectionCache,b as detectClaudeFlow,d as getClaudeFlowNotFoundMessage,c as resolveCliPackage};
|
|
@@ -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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"./chunk-Z5R46W6Q.js";import"./chunk-XB4JRJU4.js";export{a as MAX,b as NIL,d as parse,e as stringify,f as v1,g as v1ToV6,h as v3,i as v4,j as v5,k as v6,l as v6ToV1,m as v7,c as validate,n as version};
|
|
@@ -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 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.17");process.exit(0)}
|
|
2
|
+
import{a as i}from"./chunk-L6ZJSFAA.js";import{a as r}from"./chunk-UTO2M76W.js";import"./chunk-XB4JRJU4.js";import n from"chalk";var s=class{name="domain";description="Domain operations";cleanupAndExit;ensureInitialized;constructor(o,t){this.cleanupAndExit=o,this.ensureInitialized=t}register(o,t){let e=o.command("domain").description(this.description);e.command("list").description("List all domains").action(async()=>{await this.executeList(t)}),e.command("health <domain>").description("Get domain health").action(async a=>{await this.executeHealth(a,t)})}async executeList(o){if(await this.ensureInitialized())try{console.log(n.blue(`
|
|
3
3
|
Domains
|
|
4
4
|
`));for(let t of r){let e=o.queen.getDomainHealth(t),a=o.queen.getDomainLoad(t);console.log(` ${n.cyan(t)}`),console.log(` Status: ${i(e?.status||"unknown")}`),console.log(` Load: ${a} tasks`),e&&console.log(` Agents: ${e.agents.active}/${e.agents.total}`),console.log("")}}catch(t){console.error(n.red(`
|
|
5
5
|
Failed to list domains:`),t),await this.cleanupAndExit(1)}}async executeHealth(o,t){if(await this.ensureInitialized())try{let e=t.queen.getDomainHealth(o);if(!e){console.log(n.red(`
|
|
@@ -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,c as b,d as c,e as d,f as e,g as f,h as g,i 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.17");process.exit(0)}
|
|
2
|
+
import{a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"./chunk-QVJQXRHU.js";import"./chunk-2ARCG4XJ.js";import"./chunk-65Z6HMDA.js";import"./chunk-QXOAFWWK.js";import"./chunk-XB4JRJU4.js";export{f as CuriosityBonus,b as DEFAULT_DOMAIN_TRANSFER_CONFIG,c as DecayingBeta,g as DomainTransferEngine,e as ParetoFront,d as PlateauDetector,a as ThompsonSampler,h as createDomainTransferEngine};
|
|
@@ -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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-6PCGUJCG.js";import"./chunk-BCBC3DVN.js";import"./chunk-R3COBKOP.js";import"./chunk-OUSQ4KQN.js";import"./chunk-A67FRRPJ.js";import"./chunk-I64R2D4U.js";import"./chunk-BUWZOMC7.js";import"./chunk-6F6BNLVP.js";import"./chunk-QYDBV5MD.js";import"./chunk-WGEJ646F.js";import"./chunk-JT2KLBDB.js";import"./chunk-VX6XHAG2.js";import"./chunk-PEHHOJE6.js";import"./chunk-CPZUNBSQ.js";import"./chunk-6YCZDIGF.js";import"./chunk-L5JZIORJ.js";import"./chunk-B36RPXAQ.js";import"./chunk-V4DMYY6P.js";import"./chunk-2ARCG4XJ.js";import"./chunk-65Z6HMDA.js";import"./chunk-6YFEWIL5.js";import"./chunk-UTO2M76W.js";import"./chunk-DJXYFFGA.js";import"./chunk-Z5R46W6Q.js";import"./chunk-LA565BGJ.js";import"./chunk-F5X3U57Y.js";import"./chunk-2K7GRX5U.js";import"./chunk-K44EQV74.js";import"./chunk-MER7IHAZ.js";import"./chunk-ARN2KDLJ.js";import"./chunk-USORP6QK.js";import"./chunk-B3M3JEFD.js";import"./chunk-QXOAFWWK.js";import"./chunk-XB4JRJU4.js";export{t as BUILT_IN_STRATEGIES,b as ConceptGraph,g as DEFAULT_ACTIVATION_CONFIG,a as DEFAULT_CONCEPT_GRAPH_CONFIG,m as DEFAULT_DREAM_CONFIG,q as DEFAULT_DREAM_SCHEDULER_CONFIG,i as DEFAULT_INSIGHT_CONFIG,k as DEFAULT_VALIDATION_THRESHOLDS,n as DreamEngine,r as DreamScheduler,f as HISTORY_TRIM_TARGET_RATIO,j as InsightGenerator,d as MAX_ACTIVATION_HISTORY_ENTRIES,e as MAX_COACTIVATION_ENTRIES,l as RVCOWBranchManager,u as SpeculativeDreamer,h as SpreadingActivation,c as createConceptGraph,o as createDreamEngine,s as createDreamScheduler,p 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 T}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.17");process.exit(0)}
|
|
2
|
+
import{a as T}from"./chunk-42HSEBOH.js";import{a as R,b as g,c as S,d as b}from"./chunk-5J444NJR.js";import{a as y}from"./chunk-ZLOMFM25.js";import"./chunk-PMH52K5J.js";import"./chunk-KTJWRVFR.js";import"./chunk-WP55YBB2.js";import"./chunk-BUWZOMC7.js";import"./chunk-QYDBV5MD.js";import"./chunk-WGEJ646F.js";import"./chunk-6YCZDIGF.js";import"./chunk-B36RPXAQ.js";import"./chunk-V4DMYY6P.js";import"./chunk-RP2RHB7H.js";import"./chunk-2ARCG4XJ.js";import"./chunk-65Z6HMDA.js";import"./chunk-6YFEWIL5.js";import"./chunk-UTO2M76W.js";import"./chunk-DJXYFFGA.js";import"./chunk-Z5R46W6Q.js";import"./chunk-LA565BGJ.js";import"./chunk-F5X3U57Y.js";import"./chunk-2K7GRX5U.js";import"./chunk-K44EQV74.js";import"./chunk-MER7IHAZ.js";import"./chunk-ARN2KDLJ.js";import"./chunk-USORP6QK.js";import"./chunk-B3M3JEFD.js";import"./chunk-QXOAFWWK.js";import"./chunk-XB4JRJU4.js";import{Command as M}from"commander";import s from"chalk";import*as d from"fs";import*as p from"path";import*as x from"yaml";var f=["accessibility-testing","security-testing","performance-testing","chaos-engineering-resilience","contract-testing"],E=["risk-based-testing","test-design-techniques","regression-testing","test-data-management","localization-testing"],C=["quality-metrics","refactoring-patterns","iterative-loop","stream-chain"];function L(e){switch(e){case 3:return f;case 2:return[...f,...E];case 1:return[...f,...E,...C];default:return f}}var h="";function O(e){let t=Math.round(e.completedTasks/e.totalTasks*100),l=k(e.elapsedMs),o=k(e.estimatedRemainingMs),n=A(t,30),i=`${s.cyan("Progress:")} ${n} ${t}% | ${s.green(e.completedTasks)}/${e.totalTasks} tasks | ${s.yellow(e.failedTasks)} failed | ${s.blue(e.activeWorkers)} workers | ${l} elapsed, ~${o} remaining`;h&&process.stdout.write("\r"+" ".repeat(h.length)+"\r"),process.stdout.write(i),h=i}function A(e,t){let l=Math.round(e/100*t),o=t-l;return s.green("=".repeat(l))+s.gray("-".repeat(o))}function k(e){if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;let t=Math.floor(e/6e4),l=Math.round(e%6e4/1e3);return`${t}m ${l}s`}function F(e){let t=[];t.push(""),t.push(s.bold(`Eval Results: ${e.skill}`)+s.dim(` (${e.model})`)),t.push("=".repeat(60));let l=e.passed?s.green("PASSED"):s.red("FAILED");t.push(`Status: ${l}`),t.push(""),t.push(s.bold("Metrics:")),t.push(` Total Tests: ${e.totalTests}`),t.push(` Passed: ${s.green(e.passedTests)}`),t.push(` Failed: ${s.red(e.failedTests)}`),t.push(` Skipped: ${s.yellow(e.skippedTests)}`),t.push(` Pass Rate: ${(e.passRate*100).toFixed(1)}%`),t.push(` Reasoning Avg: ${(e.avgReasoningQuality*100).toFixed(1)}%`),t.push(""),t.push(s.bold("Performance:")),t.push(` Duration: ${k(e.totalDurationMs)}`),t.push(` Workers Used: ${e.workersUsed}`),t.push(` Parallel Speedup: ${s.cyan(e.parallelSpeedup.toFixed(2)+"x")}`),t.push("");let o=e.testResults.filter(n=>!n.passed);if(o.length>0){t.push(s.bold.red("Failed Tests:"));for(let n of o.slice(0,5))t.push(` ${s.red("x")} ${n.testId}`),n.error&&t.push(` ${s.dim(n.error)}`);o.length>5&&t.push(` ... and ${o.length-5} more`),t.push("")}return t.join(`
|
|
3
3
|
`)}function D(e){let t=[];t.push("# Skill Evaluation Report"),t.push(""),t.push(`Generated: ${new Date().toISOString()}`),t.push(""),t.push("## Summary"),t.push(""),t.push("| Skill | Model | Pass Rate | Duration | Speedup | Status |"),t.push("|-------|-------|-----------|----------|---------|--------|");for(let l of e){let o=l.passed?"PASSED":"FAILED";t.push(`| ${l.skill} | ${l.model} | ${(l.passRate*100).toFixed(1)}% | ${k(l.totalDurationMs)} | ${l.parallelSpeedup.toFixed(2)}x | ${o} |`)}t.push(""),t.push("## Detailed Results"),t.push("");for(let l of e){t.push(`### ${l.skill} (${l.model})`),t.push(""),t.push(`- **Total Tests:** ${l.totalTests}`),t.push(`- **Passed:** ${l.passedTests}`),t.push(`- **Failed:** ${l.failedTests}`),t.push(`- **Pass Rate:** ${(l.passRate*100).toFixed(1)}%`),t.push(`- **Avg Reasoning Quality:** ${(l.avgReasoningQuality*100).toFixed(1)}%`),t.push("");let o=l.testResults.filter(n=>!n.passed);if(o.length>0){t.push("**Failed Tests:**"),t.push("");for(let n of o)t.push(`- \`${n.testId}\`: ${n.error||"No error message"}`);t.push("")}}return t.join(`
|
|
4
4
|
`)}var I=".claude/skills";function j(e){let t=p.join(process.cwd(),I,e,"evals",`${e}.yaml`);if(!d.existsSync(t))return null;try{let l=x.parse(d.readFileSync(t,"utf-8"));return S(l)?"command":"llm"}catch{return null}}function B(e,t){return{skill:e.skill,model:t,totalTests:e.totalTests,passedTests:e.passedTests,failedTests:e.failedTests,skippedTests:0,passRate:e.passRate,testResults:e.testResults.map(l=>q(l)),totalDurationMs:e.totalDurationMs,parallelSpeedup:1,avgReasoningQuality:0,passed:e.passed,workersUsed:1,timestamp:e.timestamp}}function q(e){let t=[];return e.setupFailure&&t.push(e.setupFailure),e.failures.length&&t.push(...e.failures),{testId:e.testId,passed:e.passed,expectedPatterns:[],actualPatterns:[],reasoningQuality:0,executionTimeMs:e.durationMs,category:e.category??"uncategorized",priority:e.priority??"medium",error:t.length?t.join("; "):void 0}}async function v(){let e=await T({sqlite:{dbPath:".agentic-qe/eval-runner.db"},hnsw:{M:16,efConstruction:100,efSearch:50}});await e.initialize();let t=y(e);return{runner:g(t),learner:t,reasoningBank:e}}async function V(e){if(console.log(s.bold(`
|
|
5
5
|
AQE Parallel Eval Runner`)),console.log(s.dim(`ADR-056 Phase 5: Worker Pool Pattern
|
|
@@ -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.17");process.exit(0)}
|
|
2
|
+
import"./chunk-XB4JRJU4.js";function n(e){return e.includes("--version")||e.includes("-v")?"cli-version":e[2]==="health"?"cli-health":process.env.AQE_MCP==="1"||process.env.AQE_MCP_MODE==="1"?"mcp":process.env.AQE_HTTP_PORT?"http":"cli-full"}function o(e){return process.env.AQE_FAST_PATHS==="false"?!1:e.includes("--version")||e.includes("-v")}function r(e){return e[2]==="health"}export{n as detectBootMode,r as isHealthFastPath,o as isVersionFastPath};
|
|
@@ -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,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,S as R,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}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.17");process.exit(0)}
|
|
2
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,S as R,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-QXOAFWWK.js";import"./chunk-XB4JRJU4.js";R();export{a as DEFAULT_FEATURE_FLAGS,b as getRuVectorFeatureFlags,A as getRvfMigrationStage,Q as initFeatureFlagsFromEnv,y as isAgentMemoryBranchingEnabled,t as isCNNVisualRegressionEnabled,O as isCognitiveRoutingEnabled,v as isCoherenceActionGateEnabled,r as isCoherenceGateEnabled,H as isColdTierGNNEnabled,o as isCrossDomainTransferEnabled,C as isCusumDriftDetectionEnabled,u as isDAGAttentionEnabled,D as isDeltaEventSourcingEnabled,l as isDeterministicDitherEnabled,M as isEpropOnlineLearningEnabled,E as isEwcPlusPlusEnabled,f as isFlashAttentionEnabled,g as isGNNIndexEnabled,N as isGrangerCausalityEnabled,F as isGraphMAEEnabled,B as isHDCFingerprintingEnabled,p as isHnswHealthMonitorEnabled,G as isHopfieldMemoryEnabled,P as isHyperbolicHnswEnabled,I as isMetaLearningEnabled,k as isMetadataFilteringEnabled,i as isNativeHNSWEnabled,m as isNeuralRoutingEnabled,x as isRVFPatternStoreEnabled,w as isReasoningQECEnabled,q as isRegretTrackingEnabled,L as isReservoirReplayEnabled,e as isSONAEnabled,n as isSONAThreeLoopEnabled,K as isSpectralSparsificationEnabled,J as isSublinearSolverEnabled,j as isTemporalCompressionEnabled,z as isUnifiedHnswEnabled,s as isWitnessChainEnabled,d as resetRuVectorFeatureFlags,c as setRuVectorFeatureFlags,h as shouldLogMigrationMetrics};
|
|
@@ -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,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-PV6WBC2D.js";import"./chunk-XB4JRJU4.js";q();export{a as DEFAULT_FEATURE_FLAGS,n as configureForCI,o as configureForDevelopment,p as configureForHeuristicMode,b as getVibiumFeatureFlags,m as initVibiumFeatureFlagsFromEnv,j as isAutoRetryEnabled,l as isAxeCoreEnabled,e as isBrowserModeEnabled,i as isDefaultHeadless,h as isE2EExecutionEnabled,f as isScreenshotCaptureEnabled,g as isVisualRegressionEnabled,d as resetVibiumFeatureFlags,c as setVibiumFeatureFlags,k as shouldLogPerformanceMetrics};
|
|
@@ -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,b}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.17");process.exit(0)}
|
|
2
|
+
import{a,b}from"./chunk-63ERVKIO.js";import"./chunk-XB4JRJU4.js";export{a as SOURCE_EXTENSIONS,b as walkSourceFiles};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 k,b as K,c as x,d as T,e as H,f as F,g as Q,j as _}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.17");process.exit(0)}
|
|
2
|
+
import{a as k,b as K,c as x,d as T,e as H,f as F,g as Q,j as _}from"./chunk-3KIUCAVI.js";import{a as v,b as V}from"./chunk-PJZHNAUT.js";import{a as G}from"./chunk-JVDYHVF2.js";import"./chunk-3UGV2XWF.js";import"./chunk-FCWB2FJG.js";import{c as C,d as S}from"./chunk-PMNZN4K7.js";import"./chunk-FVVZWNLV.js";import{v as q}from"./chunk-DVEQOD74.js";import"./chunk-QW554DTP.js";import"./chunk-FYNDV2NZ.js";import"./chunk-K4FG3CRS.js";import"./chunk-Y47U7ICT.js";import"./chunk-63V33NAB.js";import{c as L}from"./chunk-EVQYUUQ3.js";import{a as W}from"./chunk-G5DEPXD4.js";import{a as E}from"./chunk-VI2I5R6C.js";import"./chunk-A3WC5KTG.js";import"./chunk-OSBJWQZL.js";import{f as j}from"./chunk-DDJUVCKF.js";import"./chunk-QMVGGG4B.js";import"./chunk-EGBRCXYT.js";import"./chunk-6MRUG5G2.js";import"./chunk-I5BLJ2QQ.js";import"./chunk-42TUEMH7.js";import"./chunk-KTJWRVFR.js";import"./chunk-WP55YBB2.js";import{b as N}from"./chunk-V3VJNWOF.js";import"./chunk-BGY4CHZA.js";import"./chunk-CZXV3JAF.js";import"./chunk-6PCGUJCG.js";import"./chunk-BCBC3DVN.js";import"./chunk-R3COBKOP.js";import"./chunk-OUSQ4KQN.js";import"./chunk-A67FRRPJ.js";import"./chunk-I64R2D4U.js";import"./chunk-BUWZOMC7.js";import"./chunk-6F6BNLVP.js";import"./chunk-QYDBV5MD.js";import"./chunk-WGEJ646F.js";import"./chunk-JT2KLBDB.js";import"./chunk-HMT6LKHH.js";import"./chunk-VX6XHAG2.js";import"./chunk-HQXRCW7Z.js";import"./chunk-PGTMLW5K.js";import"./chunk-PV6WBC2D.js";import"./chunk-ORNWQXEX.js";import"./chunk-W5HTZ3VZ.js";import"./chunk-PEHHOJE6.js";import"./chunk-CQSU7NTG.js";import"./chunk-I3NUJ6KJ.js";import"./chunk-JC4O47QG.js";import"./chunk-QVJQXRHU.js";import"./chunk-CPZUNBSQ.js";import"./chunk-6YCZDIGF.js";import"./chunk-L5JZIORJ.js";import"./chunk-B36RPXAQ.js";import"./chunk-V4DMYY6P.js";import"./chunk-RP2RHB7H.js";import"./chunk-2ARCG4XJ.js";import"./chunk-65Z6HMDA.js";import"./chunk-32FWC6G3.js";import"./chunk-6YFEWIL5.js";import{a as I}from"./chunk-UTO2M76W.js";import{a as B,c as ee}from"./chunk-DJXYFFGA.js";import"./chunk-Z5R46W6Q.js";import"./chunk-6PRIY3HT.js";import{a as z,b as te}from"./chunk-LA565BGJ.js";import"./chunk-F5X3U57Y.js";import"./chunk-2K7GRX5U.js";import{c as $,d as ne}from"./chunk-K44EQV74.js";import"./chunk-MER7IHAZ.js";import"./chunk-ARN2KDLJ.js";import"./chunk-USORP6QK.js";import"./chunk-B3M3JEFD.js";import"./chunk-QXOAFWWK.js";import"./chunk-XB4JRJU4.js";ne();import{Command as ie}from"commander";import t from"chalk";ee();te();import h from"chalk";import{existsSync as oe}from"fs";import{join as P}from"path";var R=class{projectRoot;options;orchestrator;constructor(e){this.options=e,this.projectRoot=e.projectRoot}async checkCodeIntelligence(){if(this.options.skipCodeScan)return console.log(h.yellow(" Code intelligence scan skipped (--skip-code-scan flag)")),{codeIntelligence:{hasIndex:!1,entryCount:0,wasPrompted:!1,scanRequested:!1},shouldProceed:!0,skipReason:"skip-flag"};if(await this.hasCodeIntelligenceIndex()){let i=await this.getKGEntryCount();return console.log(h.green(` \u2713 Code intelligence index found (${i} entries)`)),{codeIntelligence:{hasIndex:!0,entryCount:i,wasPrompted:!1,scanRequested:!1},shouldProceed:!0}}return!this.options.nonInteractive&&(console.log(h.yellow(`
|
|
3
3
|
\u26A0 No code intelligence index found`)),console.log(h.gray(" Building a knowledge graph improves agent accuracy by 80%")),console.log(h.gray(" This is a one-time operation and can be run later with:")),console.log(h.cyan(` aqe code-intelligence index
|
|
4
4
|
`)),await this.promptScan())?{codeIntelligence:{hasIndex:!1,entryCount:0,wasPrompted:!0,scanRequested:!0},shouldProceed:!1,skipReason:"scan-requested"}:(console.log(h.gray(" Continuing without code intelligence index")),{codeIntelligence:{hasIndex:!1,entryCount:0,wasPrompted:!this.options.nonInteractive,scanRequested:!1},shouldProceed:!0})}async runCodeIntelligenceScan(){try{if(console.log(h.blue(`
|
|
5
|
-
Building code intelligence knowledge graph...`)),this.orchestrator||(this.orchestrator=new G({projectRoot:this.projectRoot,autoMode:!0,...this.options.initOptions})),await this.hasCodeIntelligenceIndex()){let s=await this.getKGEntryCount();return console.log(h.green(` \u2713 Index already exists (${s} entries)`)),{success:!0,entries:s}}let{KnowledgeGraphService:i}=await import("./knowledge-graph-
|
|
5
|
+
Building code intelligence knowledge graph...`)),this.orchestrator||(this.orchestrator=new G({projectRoot:this.projectRoot,autoMode:!0,...this.options.initOptions})),await this.hasCodeIntelligenceIndex()){let s=await this.getKGEntryCount();return console.log(h.green(` \u2713 Index already exists (${s} entries)`)),{success:!0,entries:s}}let{KnowledgeGraphService:i}=await import("./knowledge-graph-4XYLO6ZW.js"),{InMemoryBackend:c}=await import("./memory-backend-PUPAE4QQ.js"),m=new c;await m.initialize();let n=new i(m,{namespace:"code-intelligence:kg",enableVectorEmbeddings:!0}),g=await(await import("fast-glob")).default(["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.py"],{cwd:this.projectRoot,ignore:["node_modules/**","dist/**","coverage/**",".agentic-qe/**"]});console.log(h.gray(` Indexing ${g.length} files...`));let o=await n.index({paths:g.map(s=>P(this.projectRoot,s)),incremental:!1,includeTests:!0});if(n.destroy(),o.success){let s=o.value.nodesCreated+o.value.edgesCreated;return console.log(h.green(` \u2713 Indexed ${s} knowledge graph entries`)),{success:!0,entries:s}}return console.log(h.yellow(" \u26A0 Code intelligence scan completed with warnings")),{success:!1,entries:0}}catch(e){return console.error(h.red(" \u2717 Code intelligence scan failed:"),B(e)),{success:!1,entries:0}}}async getStatusForAgents(){let e=await this.hasCodeIntelligenceIndex(),i=e?await this.getKGEntryCount():0;return{codeIntelligenceAvailable:e,knowledgeGraphSize:i,recommendedCapabilities:e?["semantic-search","code-analysis","context-aware"]:["basic-analysis"]}}async hasCodeIntelligenceIndex(){let e=P(this.projectRoot,".agentic-qe","memory.db");if(!oe(e))return!1;try{let i=z(e),c=i.prepare(`
|
|
6
6
|
SELECT COUNT(*) as count FROM kv_store
|
|
7
7
|
WHERE namespace = 'code-intelligence:kg'
|
|
8
8
|
`).get();return i.close(),c.count>0}catch{return!1}}async getKGEntryCount(){let e=P(this.projectRoot,".agentic-qe","memory.db");try{let i=z(e),c=i.prepare(`
|
|
@@ -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,b,c,d,e,f,g,h,i,j,k,l,m,n,o,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.17");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-32FWC6G3.js";import"./chunk-6YFEWIL5.js";import"./chunk-B3M3JEFD.js";import"./chunk-QXOAFWWK.js";import"./chunk-XB4JRJU4.js";export{e as GNNLayerFactory,c as QEGNNEmbeddingIndex,d as QEGNNIndexFactory,f as TensorCompressionFactory,p as batchDifferentiableSearch,i as getDifferentiableSearch,k as getGetCompressionLevel,j as getHierarchicalForward,l as getInit,g as getRuvectorLayer,h as getTensorCompress,b as initGNN,a as isGNNAvailable,m as toFloat32Array,o as toIEmbedding,n as toNumberArray};
|