agentic-qe 3.9.2 → 3.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-5ODIX6ZG.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-AKAOHSCX.js → agent-booster-wasm-MGGEPROV.js} +2 -2
- package/dist/cli/chunks/{agent-handler-MTGPOUVP.js → agent-handler-AFHYFQXV.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-UFPKWUFK.js → agent-memory-branch-SQ3KDIG6.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-PWGRS6KK.js +2 -0
- package/dist/cli/chunks/{audit-VBEZHNHO.js → audit-SM5CK2K5.js} +2 -2
- package/dist/cli/chunks/base-TJGIYR7L.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-IRPHIXRU.js → better-sqlite3-UGOYRNXI.js} +2 -2
- package/dist/cli/chunks/{brain-handler-7EO3FFRZ.js → brain-handler-SKXTB63O.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-MZRGP35N.js → branch-enumerator-77NSOLNK.js} +2 -2
- package/dist/cli/chunks/{browser-VSIWQE7J.js → browser-MCE5DWPV.js} +2 -2
- package/dist/cli/chunks/browser-workflow-GUR7RLFP.js +2 -0
- package/dist/cli/chunks/{chunk-5RL66XSH.js → chunk-27FNBMUC.js} +2 -2
- package/dist/cli/chunks/{chunk-FRJLP7IB.js → chunk-27P4VTCY.js} +2 -2
- package/dist/cli/chunks/{chunk-2VVV73PW.js → chunk-2JLKOGNU.js} +1 -1
- package/dist/cli/chunks/{chunk-PJFLO37I.js → chunk-2MQMXI7C.js} +2 -2
- package/dist/cli/chunks/{chunk-BKCTNRC5.js → chunk-3MN7E6HY.js} +2 -2
- package/dist/cli/chunks/{chunk-BY47GV4T.js → chunk-3MRFR534.js} +2 -2
- package/dist/cli/chunks/{chunk-563PJBDM.js → chunk-3RHIPCBG.js} +2 -2
- package/dist/cli/chunks/{chunk-WXWY2GAF.js → chunk-3SPYUOSS.js} +2 -2
- package/dist/cli/chunks/{chunk-5AUKULWO.js → chunk-4BQTEPAD.js} +2 -2
- package/dist/cli/chunks/{chunk-N3F3CX4V.js → chunk-4GJAYXB7.js} +2 -2
- package/dist/cli/chunks/{chunk-7NOIIC7G.js → chunk-4TZTGYBQ.js} +1 -1
- package/dist/cli/chunks/{chunk-VL7YOOC2.js → chunk-53M65YFH.js} +2 -2
- package/dist/cli/chunks/{chunk-QNBQBSAI.js → chunk-54OLXGXJ.js} +2 -2
- package/dist/cli/chunks/{chunk-HW4ISY5B.js → chunk-5UKAEBKC.js} +3 -3
- package/dist/cli/chunks/{chunk-CQP7ZFME.js → chunk-72EC26AS.js} +2 -2
- package/dist/cli/chunks/{chunk-J4BS6IWE.js → chunk-7EL65Y27.js} +1 -1
- package/dist/cli/chunks/{chunk-PFNFC43Q.js → chunk-7FJIIB4H.js} +1 -1
- package/dist/cli/chunks/{chunk-AKSJQ6B3.js → chunk-7ST2YENJ.js} +2 -2
- package/dist/cli/chunks/{chunk-SNVM4YJS.js → chunk-7ZXNJT4Q.js} +2 -2
- package/dist/cli/chunks/{chunk-BOH22AKC.js → chunk-A6ZBQCYB.js} +2 -2
- package/dist/cli/chunks/{chunk-VHVWAXCF.js → chunk-B252DDC5.js} +1 -1
- package/dist/cli/chunks/{chunk-2EC5Z2J4.js → chunk-B6HLXE3D.js} +9 -9
- package/dist/cli/chunks/{chunk-L5WZUPZF.js → chunk-BH5XPYA3.js} +2 -2
- package/dist/cli/chunks/{chunk-LMMEUVE5.js → chunk-BZ22GI4E.js} +1 -1
- package/dist/cli/chunks/{chunk-YXCU4CJX.js → chunk-C2HGOUEB.js} +1 -1
- package/dist/cli/chunks/{chunk-JV7LX6OT.js → chunk-C3BXT3ZC.js} +4 -4
- package/dist/cli/chunks/{chunk-3GZKAORV.js → chunk-C567IO5M.js} +2 -2
- package/dist/cli/chunks/{chunk-SCF7NRVE.js → chunk-COIRFVFO.js} +1 -1
- package/dist/cli/chunks/{chunk-RITN3XR4.js → chunk-DHJJJ24V.js} +2 -2
- package/dist/cli/chunks/{chunk-RC5CPXON.js → chunk-DLMEBVLF.js} +2 -2
- package/dist/cli/chunks/{chunk-XFMKJ3UD.js → chunk-DZHGYZJP.js} +1 -1
- package/dist/cli/chunks/{chunk-V6XBAZNH.js → chunk-EEARIB4C.js} +1 -1
- package/dist/cli/chunks/{chunk-NM6TIEJ3.js → chunk-EFD2J6GG.js} +3 -3
- package/dist/cli/chunks/{chunk-Z5HXGVXZ.js → chunk-EHGTXIT7.js} +1 -1
- package/dist/cli/chunks/{chunk-QODE4LM6.js → chunk-ENKPW6MA.js} +2 -2
- package/dist/cli/chunks/{chunk-4PKXIBX2.js → chunk-EZTUUOVI.js} +1 -1
- package/dist/cli/chunks/{chunk-SDTVHR63.js → chunk-F6AU2MAZ.js} +2 -2
- package/dist/cli/chunks/{chunk-GK72GUHA.js → chunk-G6RTCJFY.js} +2 -2
- package/dist/cli/chunks/{chunk-E25S5E2D.js → chunk-G72E5DL3.js} +1 -1
- package/dist/cli/chunks/{chunk-FUIHWBVF.js → chunk-GAG2P4I2.js} +1 -1
- package/dist/cli/chunks/{chunk-KDDZYXP4.js → chunk-GQ7DCSKS.js} +2 -2
- package/dist/cli/chunks/{chunk-WG4GHAML.js → chunk-GSKZL36U.js} +2 -2
- package/dist/cli/chunks/{chunk-Z2IKNC5M.js → chunk-GT35EJKR.js} +1 -1
- package/dist/cli/chunks/{chunk-56IWS2KY.js → chunk-GVFHRHXC.js} +2 -2
- package/dist/cli/chunks/{chunk-CCYMJKWX.js → chunk-GX7MEHQ2.js} +1 -1
- package/dist/cli/chunks/{chunk-4UH25U4O.js → chunk-HKTNFHWI.js} +1 -1
- package/dist/cli/chunks/{chunk-X6LCMOGC.js → chunk-IGJ472XJ.js} +2 -2
- package/dist/cli/chunks/{chunk-XH53ARZD.js → chunk-IQE6GOH6.js} +2 -2
- package/dist/cli/chunks/{chunk-RJROC5M3.js → chunk-J222JLZ6.js} +2 -2
- package/dist/cli/chunks/{chunk-DSE57A5N.js → chunk-J6KBI5NW.js} +1 -1
- package/dist/cli/chunks/{chunk-CQBSGYRA.js → chunk-J72Q6ERO.js} +2 -2
- package/dist/cli/chunks/{chunk-ICDXWIFZ.js → chunk-JMBUIVVE.js} +1 -1
- package/dist/cli/chunks/{chunk-6SOJVEU7.js → chunk-JVUNZBKX.js} +2 -2
- package/dist/cli/chunks/{chunk-MN742FIH.js → chunk-KELYPHMV.js} +2 -2
- package/dist/cli/chunks/{chunk-DHE66JRR.js → chunk-KSMQH2CV.js} +1 -1
- package/dist/cli/chunks/{chunk-GPLERTZU.js → chunk-LH3ZL2OK.js} +2 -2
- package/dist/cli/chunks/{chunk-GITD7SRQ.js → chunk-LW3DV23G.js} +2 -2
- package/dist/cli/chunks/chunk-MDFXPCBO.js +2 -0
- package/dist/cli/chunks/{chunk-KZUJBZ7B.js → chunk-MGRE767N.js} +2 -2
- package/dist/cli/chunks/{chunk-DBE34QES.js → chunk-MN2MYLVW.js} +2 -2
- package/dist/cli/chunks/{chunk-25LFUL2K.js → chunk-MR5I6UR2.js} +2 -2
- package/dist/cli/chunks/{chunk-S3RDH5CI.js → chunk-MS6LTE4L.js} +2 -2
- package/dist/cli/chunks/{chunk-QEQTC4WQ.js → chunk-MUX762XZ.js} +2 -2
- package/dist/cli/chunks/{chunk-4Z27TRQF.js → chunk-NEYZXYFH.js} +2 -2
- package/dist/cli/chunks/{chunk-7SLN2JGP.js → chunk-NRH2QE4X.js} +3 -3
- package/dist/cli/chunks/{chunk-CL3K5EJK.js → chunk-NS4CCCTZ.js} +2 -2
- package/dist/cli/chunks/{chunk-NJY7ZA77.js → chunk-NZ5LY2BT.js} +1 -1
- package/dist/cli/chunks/{chunk-UKDOMLBI.js → chunk-O6QAOPUA.js} +3 -3
- package/dist/cli/chunks/{chunk-QPRVX4H2.js → chunk-OHZ6RJLS.js} +2 -2
- package/dist/cli/chunks/{chunk-DNLMZTE2.js → chunk-ONOYANDX.js} +1 -1
- package/dist/cli/chunks/chunk-OZC42UMD.js +2 -0
- package/dist/cli/chunks/{chunk-34U7JDCN.js → chunk-P3EOWBME.js} +2 -2
- package/dist/cli/chunks/{chunk-4DAOZQ3V.js → chunk-Q2ZYUIS2.js} +2 -2
- package/dist/cli/chunks/{chunk-RQGYJK7H.js → chunk-Q6FSXNQP.js} +2 -2
- package/dist/cli/chunks/{chunk-X35GP7TR.js → chunk-QEYPK7KS.js} +1 -1
- package/dist/cli/chunks/{chunk-T5GV6UIO.js → chunk-QOU4R6AF.js} +2 -2
- package/dist/cli/chunks/{chunk-KZTO5EVM.js → chunk-QPC4STR6.js} +2 -2
- package/dist/cli/chunks/{chunk-4FT3PND7.js → chunk-QVZSIFSJ.js} +3 -3
- package/dist/cli/chunks/{chunk-GCMVJS5X.js → chunk-RAZ2PGZD.js} +2 -2
- package/dist/cli/chunks/{chunk-727BDQ3K.js → chunk-RE6XD6RI.js} +2 -2
- package/dist/cli/chunks/{chunk-STE42EMB.js → chunk-RGRYL4MG.js} +2 -2
- package/dist/cli/chunks/{chunk-XYJL6DKI.js → chunk-RN3SN4ZC.js} +2 -2
- package/dist/cli/chunks/{chunk-JOVINE23.js → chunk-RPYUKEAH.js} +2 -2
- package/dist/cli/chunks/{chunk-5L6AU3QK.js → chunk-RRQEIGLS.js} +2 -2
- package/dist/cli/chunks/{chunk-VUAO4VFC.js → chunk-RS7ZGWHV.js} +2 -2
- package/dist/cli/chunks/{chunk-KTYUCZEM.js → chunk-RTC3ZCPK.js} +5 -5
- package/dist/cli/chunks/{chunk-4LA7IW3V.js → chunk-RUJU5XEQ.js} +1 -1
- package/dist/cli/chunks/{chunk-SRRFWTNF.js → chunk-SHJZ3YNX.js} +2 -2
- package/dist/cli/chunks/{chunk-FAXVVLPL.js → chunk-SKWI5QBM.js} +2 -2
- package/dist/cli/chunks/{chunk-NRCKGXJJ.js → chunk-TNWTQWLL.js} +1 -1
- package/dist/cli/chunks/{chunk-KBA7FBK3.js → chunk-TT2TB6UF.js} +3 -3
- package/dist/cli/chunks/{chunk-Z54EO6E6.js → chunk-U7YC7VCM.js} +2 -2
- package/dist/cli/chunks/{chunk-TKF447CW.js → chunk-UJLSCJJS.js} +1 -1
- package/dist/cli/chunks/{chunk-MY4LMIG7.js → chunk-UPJZRDZK.js} +2 -2
- package/dist/cli/chunks/{chunk-KQTJ2YLI.js → chunk-UUL3D5HR.js} +4 -4
- package/dist/cli/chunks/{chunk-TTOE336G.js → chunk-V57PXZIK.js} +3 -3
- package/dist/cli/chunks/{chunk-SGAW2WLI.js → chunk-VBXJBXMG.js} +4 -4
- package/dist/cli/chunks/{chunk-BIVIPF4O.js → chunk-VBYREHZI.js} +1 -1
- package/dist/cli/chunks/{chunk-PNL5G6TE.js → chunk-VFXTZWNF.js} +2 -2
- package/dist/cli/chunks/{chunk-2WBCYSUN.js → chunk-VSNPI2NO.js} +8 -8
- package/dist/cli/chunks/{chunk-Y6O7CDLI.js → chunk-WHT46PJM.js} +2 -2
- package/dist/cli/chunks/{chunk-L5YEPSDU.js → chunk-XB5HXTL4.js} +2 -2
- package/dist/cli/chunks/{chunk-4FMHBBG5.js → chunk-XYVMKCSI.js} +1 -1
- package/dist/cli/chunks/{chunk-AA33R5U4.js → chunk-YDJKQKQH.js} +2 -2
- package/dist/cli/chunks/{chunk-4D2ZG2QO.js → chunk-YS6C2Q4F.js} +1 -1
- package/dist/cli/chunks/{chunk-65M7C6SH.js → chunk-Z75DMTMI.js} +1 -1
- package/dist/cli/chunks/{chunk-Q4A72ZTV.js → chunk-ZKWNZ3ZK.js} +2 -2
- package/dist/cli/chunks/{chunk-2Z2TFEOL.js → chunk-ZODUKKPC.js} +2 -2
- package/dist/cli/chunks/{chunk-KNVAAVHH.js → chunk-ZQSEPDIJ.js} +2 -2
- package/dist/cli/chunks/{chunk-QIH3E775.js → chunk-ZW5DRPZY.js} +2 -2
- package/dist/cli/chunks/{ci-2BCOBWFG.js → ci-THZEECIQ.js} +2 -2
- package/dist/cli/chunks/{ci-output-FB4OJHAC.js → ci-output-G6QLGL4S.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-NEEFZTMB.js → claude-flow-setup-5MTYQM34.js} +2 -2
- package/dist/cli/chunks/client-IFMC3AYQ.js +2 -0
- package/dist/cli/chunks/{cline-installer-ODO2PS4K.js → cline-installer-E2LF2DQS.js} +2 -2
- package/dist/cli/chunks/{code-NSOF62VE.js → code-QRF7ZGXG.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-YQL5XN52.js → code-index-extractor-II6IRWU6.js} +2 -2
- package/dist/cli/chunks/{codex-installer-SPEY6VYT.js → codex-installer-LGOQ23ZS.js} +2 -2
- package/dist/cli/chunks/{completions-OWKBUMBE.js → completions-LB2RR2OQ.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-PGTXKP73.js → complexity-analyzer-PUIPIRX3.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-KGOXAC7L.js → continuedev-installer-HQAEAQZU.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-BF3UA3TG.js → copilot-installer-3PKCX5K5.js} +2 -2
- package/dist/cli/chunks/{cost-tracker-2HDJ66E2.js → cost-tracker-JG3SZ2Q3.js} +2 -2
- package/dist/cli/chunks/{coverage-KPA2PHIN.js → coverage-D3PZTOKT.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-2LPBUUWY.js +2 -0
- package/dist/cli/chunks/{cursor-installer-7CDZFHTV.js → cursor-installer-UY6GWKTO.js} +2 -2
- package/dist/cli/chunks/{daemon-4BPGCKDJ.js → daemon-UNO3LRRN.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-2MAVGSBB.js → dag-attention-scheduler-S2MXANYL.js} +2 -2
- package/dist/cli/chunks/{detect-WRPWTGP5.js → detect-DU2FTRKR.js} +2 -2
- package/dist/cli/chunks/{domain-handler-JZVSJ7AG.js → domain-handler-KPNO36LF.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-XGIZOR2X.js → domain-transfer-6X3ZZF6A.js} +2 -2
- package/dist/cli/chunks/dream-NGRDMOTE.js +2 -0
- package/dist/cli/chunks/esm-node-3COTOSO3.js +2 -0
- package/dist/cli/chunks/{eval-T7YPAS4G.js → eval-6RXEDTBZ.js} +2 -2
- package/dist/cli/chunks/{fast-paths-QECJTKCQ.js → fast-paths-FYODFGZB.js} +2 -2
- package/dist/cli/chunks/{feature-flags-LIFURSFZ.js → feature-flags-YOULURDA.js} +2 -2
- package/dist/cli/chunks/{feature-flags-R4QZYTIW.js → feature-flags-ZJ42B4IL.js} +2 -2
- package/dist/cli/chunks/{file-discovery-4W3K3W4C.js → file-discovery-KOL7FSBQ.js} +2 -2
- package/dist/cli/chunks/{fleet-NLLQWCI5.js → fleet-22I74LGD.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-XEII72LN.js → gnn-wrapper-DFHTHLIZ.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-DJ65RE5D.js → heartbeat-handler-SQ6VYEAA.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-H664265Q.js → heartbeat-scheduler-W6PQJ5SG.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-BASJNTEV.js +2 -0
- package/dist/cli/chunks/hnsw-index-NFN2AUIX.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-SQIDTWAA.js → hnsw-legacy-bridge-AYTRT54U.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-WICYCU5U.js → hnswlib-node-4IA56UH4.js} +2 -2
- package/dist/cli/chunks/{hooks-GZUHUD63.js → hooks-T6UMR72X.js} +6 -6
- package/dist/cli/chunks/{hypergraph-engine-MLCDZ6BL.js → hypergraph-engine-WVPYKMFY.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-NNDDI4R3.js → hypergraph-handler-NB6GL4CR.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-ZMQXHQDV.js +2 -0
- package/dist/cli/chunks/init-handler-UOFNBXEP.js +68 -0
- package/dist/cli/chunks/init-wizard-QHAA4GWF.js +2 -0
- package/dist/cli/chunks/kernel-SNJFYN3T.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-EPZFFPFE.js → kilocode-installer-VWMNI4QX.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-5VACG3HU.js → kiro-installer-RNM47FV5.js} +15 -15
- package/dist/cli/chunks/knowledge-graph-EP5UTODP.js +2 -0
- package/dist/cli/chunks/{learning-6FITK6XY.js → learning-L4RB5XYP.js} +3 -3
- package/dist/cli/chunks/{llm-router-4DDC6AKJ.js → llm-router-BZYZL3YI.js} +2 -2
- package/dist/cli/chunks/{load-KGDNVUBX.js → load-4UGEGRMO.js} +2 -2
- package/dist/cli/chunks/load-test-KMMRHABK.js +2 -0
- package/dist/cli/chunks/mcp-FWWZIWCI.js +2 -0
- package/dist/cli/chunks/{memory-II4I4QMO.js → memory-5OXPMXU6.js} +5 -5
- package/dist/cli/chunks/memory-backend-Q5MWPMDE.js +2 -0
- package/dist/cli/chunks/{memory-handlers-TQXTOJGQ.js → memory-handlers-JS7BTWJK.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-EU6JCWBW.js → opencode-installer-BS5TQKHB.js} +2 -2
- package/dist/cli/chunks/orchestrator-G6BUZ6QE.js +370 -0
- package/dist/cli/chunks/{pipeline-MPZJWYKK.js → pipeline-3MZ5COPR.js} +2 -2
- package/dist/cli/chunks/{platform-YH35ZZFZ.js → platform-TKD4JCUG.js} +2 -2
- package/dist/cli/chunks/{plugin-B7JYZFNQ.js → plugin-XXJ7R6SY.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-KTUK6UE2.js → prime-radiant-advanced-wasm-JLJ6NKIP.js} +2 -2
- package/dist/cli/chunks/protocol-executor-ORFR4WJ3.js +2 -0
- package/dist/cli/chunks/{protocol-handler-3NXMVU34.js → protocol-handler-ZLYGQPHG.js} +2 -2
- package/dist/cli/chunks/{prove-H5LMGSUC.js → prove-E2WZ335X.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-PLTOH4SG.js +2 -0
- package/dist/cli/chunks/{quality-RCWHY6GO.js → quality-6MHHBINU.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-L3TRAX7H.js +2 -0
- package/dist/cli/chunks/{real-embeddings-NKH4VURF.js → real-embeddings-QN5BY3WS.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-SB7QJYM3.js → roocode-installer-GTVII272.js} +2 -2
- package/dist/cli/chunks/router-3PBJJLRQ.js +2 -0
- package/dist/cli/chunks/routing-feedback-Q775MZ3Z.js +2 -0
- package/dist/cli/chunks/{routing-handler-SY7GKG2W.js → routing-handler-HYKZ3ISS.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-HATTO3UQ.js → ruvector-commands-LBWHPUTZ.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-D57EXQUD.js → rvf-dual-writer-TVCJ2Y6N.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-OWDYN6KD.js → rvf-migration-adapter-34ITXLU3.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-SIQVJB5S.js → rvf-migration-coordinator-SX2C7777.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-HLY2652E.js +2 -0
- package/dist/cli/chunks/safe-db-CCKCBZ5I.js +2 -0
- package/dist/cli/chunks/schedule-WZ5VV55N.js +2 -0
- package/dist/cli/chunks/scheduler-6PIKLCH7.js +2 -0
- package/dist/cli/chunks/{security-DS3XLZWN.js → security-7A4EW77M.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-VCJNSACZ.js +2 -0
- package/dist/cli/chunks/{shared-rvf-dual-writer-YB7AH6XJ.js → shared-rvf-dual-writer-27L4R5WK.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-HMXYD56G.js +2 -0
- package/dist/cli/chunks/{status-handler-TUYHE4FT.js → status-handler-JN6PRYLD.js} +2 -2
- package/dist/cli/chunks/{structural-health-XNGBNRRD.js → structural-health-JSY3DY7H.js} +2 -2
- package/dist/cli/chunks/{sync-K6CIRKBB.js → sync-ET3LYW2V.js} +10 -10
- package/dist/cli/chunks/{task-handler-7PJY67DR.js → task-handler-R24MR74L.js} +2 -2
- package/dist/cli/chunks/{task-handlers-WB5CDWUR.js → task-handlers-YNPEEPPZ.js} +2 -2
- package/dist/cli/chunks/{test-WV5ALEBB.js → test-7BZXFZCT.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-N55ZGGA2.js → test-scheduling-EVIFD5EY.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-SINWHAKR.js → token-bootstrap-QYYQRXM5.js} +2 -2
- package/dist/cli/chunks/{token-usage-R7TGEVGL.js → token-usage-H4OZA77I.js} +2 -2
- package/dist/cli/chunks/{transformers-6DBLXPV7.js → transformers-ILQFO5HZ.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-7C7FKMQW.js → tree-sitter-wasm-parser-KTST5NWH.js} +2 -2
- package/dist/cli/chunks/{types-VNPMOKQT.js → types-4Z7XELU6.js} +2 -2
- package/dist/cli/chunks/unified-memory-RBHCTAWW.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-UBF5PT6D.js +2 -0
- package/dist/cli/chunks/unified-persistence-ZIJDP6GW.js +2 -0
- package/dist/cli/chunks/{validate-53MNIRAF.js → validate-GSQCH6VN.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-ZY4RGUFO.js → validate-swarm-SP2RPOYD.js} +2 -2
- package/dist/cli/chunks/{vibium-PBADBIV6.js → vibium-2SGOFYTF.js} +2 -2
- package/dist/cli/chunks/visual-security-WKIWOUTH.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-O7VI6RLB.js → web-tree-sitter-QSQ27UTH.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-HV3C3TAD.js → windsurf-installer-NIEH46E2.js} +2 -2
- package/dist/cli/chunks/witness-chain-4BRX3GGH.js +2 -0
- package/dist/cli/chunks/{witness-chain-4WIMYP4X.js → witness-chain-62GJTCT5.js} +2 -2
- package/dist/cli/chunks/{workflow-5RVAQ4TM.js → workflow-WZMV2MGW.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-G6VU7QZ4.js +2 -0
- package/dist/cli/chunks/{wrappers-RRHCCA3E.js → wrappers-LNTV533I.js} +2 -2
- package/dist/cli/commands/init.js +2 -0
- package/dist/cli/commands/mcp.js +27 -17
- package/dist/cli/commands/sync.js +25 -8
- package/dist/cli/handlers/init-handler.d.ts +1 -0
- package/dist/cli/handlers/init-handler.js +2 -0
- package/dist/init/governance-installer.js +46 -14
- package/dist/init/kiro-installer.js +15 -2
- package/dist/init/orchestrator.js +1 -0
- package/dist/init/phases/06-code-intelligence.d.ts +46 -1
- package/dist/init/phases/06-code-intelligence.js +164 -10
- package/dist/init/phases/10-workers.d.ts +0 -14
- package/dist/init/phases/10-workers.js +19 -164
- package/dist/init/phases/phase-interface.d.ts +9 -0
- package/dist/kernel/hnsw-adapter.d.ts +14 -0
- package/dist/kernel/hnsw-adapter.js +25 -1
- package/dist/kernel/hnsw-index-provider.d.ts +16 -0
- package/dist/kernel/native-hnsw-backend.d.ts +11 -0
- package/dist/kernel/native-hnsw-backend.js +20 -0
- package/dist/kernel/progressive-hnsw-backend.d.ts +9 -0
- package/dist/kernel/progressive-hnsw-backend.js +41 -12
- package/dist/kernel/unified-memory.js +10 -0
- package/dist/mcp/bundle.js +216 -216
- package/dist/optimization/token-optimizer-service.d.ts +31 -2
- package/dist/optimization/token-optimizer-service.js +85 -23
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-53WBPKXU.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-MV7NGY24.js +0 -2
- package/dist/cli/chunks/base-DZVGMQN2.js +0 -2
- package/dist/cli/chunks/browser-workflow-3J5YNMEI.js +0 -2
- package/dist/cli/chunks/chunk-LCAA6H4J.js +0 -2
- package/dist/cli/chunks/chunk-XIBVVZGB.js +0 -2
- package/dist/cli/chunks/client-EF555KYW.js +0 -2
- package/dist/cli/chunks/cross-domain-router-GXFNK5TS.js +0 -2
- package/dist/cli/chunks/dream-3IKF5XH4.js +0 -2
- package/dist/cli/chunks/esm-node-DHAE52OW.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-DML5KXQR.js +0 -2
- package/dist/cli/chunks/hnsw-index-BUPPGVR6.js +0 -2
- package/dist/cli/chunks/impact-analyzer-DPTMJRYS.js +0 -2
- package/dist/cli/chunks/init-handler-IJ6BHE6A.js +0 -68
- package/dist/cli/chunks/init-wizard-35PUDJPW.js +0 -2
- package/dist/cli/chunks/kernel-2HZ44ZJ4.js +0 -2
- package/dist/cli/chunks/knowledge-graph-JL62G72U.js +0 -2
- package/dist/cli/chunks/load-test-LN245SSD.js +0 -2
- package/dist/cli/chunks/mcp-4LETGVIV.js +0 -2
- package/dist/cli/chunks/memory-backend-SVM7YRIE.js +0 -2
- package/dist/cli/chunks/orchestrator-YLMGJVSP.js +0 -371
- package/dist/cli/chunks/protocol-executor-IEN2XB4L.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-Q3ZV3JRG.js +0 -2
- package/dist/cli/chunks/queen-coordinator-E6ON3JUR.js +0 -2
- package/dist/cli/chunks/router-WMC3LZ3C.js +0 -2
- package/dist/cli/chunks/routing-feedback-VKCZRCE3.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-C7NBH5UN.js +0 -2
- package/dist/cli/chunks/safe-db-5KLXCNXN.js +0 -2
- package/dist/cli/chunks/schedule-HAWWOXWB.js +0 -2
- package/dist/cli/chunks/scheduler-HTRDY5BC.js +0 -2
- package/dist/cli/chunks/shared-rvf-adapter-6I2Z5UGL.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-WNNRGTGG.js +0 -2
- package/dist/cli/chunks/unified-memory-72SKVZ7Y.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-TMN2L77W.js +0 -2
- package/dist/cli/chunks/unified-persistence-MDN3SRCR.js +0 -2
- package/dist/cli/chunks/visual-security-TRBCXPIB.js +0 -2
- package/dist/cli/chunks/witness-chain-JOI2YYGK.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-2NQ72S3C.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{b as d}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{b as d}from"./chunk-Z75DMTMI.js";import{a as c,c as f}from"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";import*as s from"fs";import*as l from"path";import e from"chalk";f();var h=class{name="heartbeat";description="Manage the token-free heartbeat scheduler";cleanupAndExit;worker;constructor(t){this.cleanupAndExit=t}async getWorker(){if(!this.worker){let{HeartbeatSchedulerWorker:t}=await import("./heartbeat-scheduler-W6PQJ5SG.js");this.worker=new t}return this.worker}register(t,o){let a=t.command("heartbeat").description(this.description);a.command("status").description("Show heartbeat worker status, health, and schedule").action(async()=>{await this.executeStatus()}),a.command("run-now").description("Trigger an immediate heartbeat cycle").option("-t, --timeout <ms>","Timeout in milliseconds (default: worker built-in 60s)").action(async n=>{let i=n.timeout?parseInt(n.timeout,10):void 0;await this.executeRunNow(i)}),a.command("history").description("Show recent heartbeat results").option("-n, --count <count>","Number of entries to show","10").action(async n=>{await this.executeHistory(parseInt(n.count,10)||10)}),a.command("log").description("Show today's daily log entries").option("-d, --date <date>","Show log for specific date (YYYY-MM-DD)").action(async n=>{await this.executeLog(n.date)}),a.command("pause").description("Pause the heartbeat worker").action(async()=>{await this.executePause()}),a.command("resume").description("Resume the heartbeat worker").action(async()=>{await this.executeResume()})}async executeStatus(){try{this.worker=await this.getWorker(),await this.worker.initialize();let t=this.worker.getHealth(),o=this.worker.lastResult;if(console.log(e.blue(`
|
|
3
3
|
Heartbeat Scheduler Status`)),console.log(e.gray(" "+"\u2500".repeat(35))),console.log(` Status: ${x(t.status)}`),console.log(` Health Score: ${y(t.healthScore)}${e.gray("/100")}`),this.worker.lastRunAt){let n=p(this.worker.lastRunAt);console.log(` Last Run: ${e.cyan(this.worker.lastRunAt.toISOString().replace("T"," ").slice(0,19))} ${e.gray(`(${n})`)}`)}else console.log(` Last Run: ${e.gray("never")}`);if(this.worker.nextRunAt){let n=p(this.worker.nextRunAt,!0);console.log(` Next Run: ${e.cyan(this.worker.nextRunAt.toISOString().replace("T"," ").slice(0,19))} ${e.gray(`(${n})`)}`)}console.log(` Total Runs: ${e.cyan(String(t.totalExecutions))}`);let a=t.totalExecutions>0?(t.successfulExecutions/t.totalExecutions*100).toFixed(1):"100.0";if(console.log(` Success Rate: ${e.cyan(a+"%")}`),o?.metrics?.domainMetrics){let n=o.metrics.domainMetrics;console.log(""),console.log(e.blue(" Last Result:")),console.log(` Promoted: ${e.cyan(String(n.promoted??0))} patterns`),console.log(` Deprecated: ${e.cyan(String(n.deprecated??0))} patterns`),console.log(` Decayed: ${e.cyan(String(n.decayed??0))} patterns`),console.log(` Pending Exp: ${e.cyan(String(n.pendingExperiences??0))}`),console.log(` Avg Conf: ${e.cyan(String(n.avgConfidence??0))}`)}console.log(""),await this.cleanupAndExit(0)}catch(t){console.error(e.red(`
|
|
4
4
|
Failed to get heartbeat status:`),c(t)),await this.cleanupAndExit(1)}}async executeRunNow(t){try{this.worker=await this.getWorker(),console.log(e.blue(`
|
|
5
5
|
Triggering heartbeat cycle...
|
|
@@ -8,7 +8,7 @@ import{b as d}from"./chunk-65M7C6SH.js";import{a as c,c as f}from"./chunk-SDTVHR
|
|
|
8
8
|
Heartbeat History (last ${o.length})`)),console.log(e.gray(" "+"\u2500".repeat(60)));for(let a of o){let n=a.success?e.green("OK"):e.red("FAIL"),i=a.timestamp.slice(0,19).replace("T"," "),u=a.domainMetrics||{};console.log(` ${e.gray(i)} ${n} score:${e.cyan(String(a.healthScore))} +${u.promoted??0}/-${u.deprecated??0} ${e.gray(d(a.durationMs))}`)}console.log(""),await this.cleanupAndExit(0)}catch(o){console.error(e.red(`
|
|
9
9
|
Failed to load history:`),c(o)),await this.cleanupAndExit(1)}}async executeLog(t){try{let o=t||new Date().toISOString().split("T")[0];if(!/^\d{4}-\d{2}-\d{2}$/.test(o)){console.error(e.red(`
|
|
10
10
|
Invalid date format: "${o}". Use YYYY-MM-DD.
|
|
11
|
-
`)),await this.cleanupAndExit(1);return}let{findProjectRoot:a}=await import("./unified-memory-
|
|
11
|
+
`)),await this.cleanupAndExit(1);return}let{findProjectRoot:a}=await import("./unified-memory-RBHCTAWW.js"),n=l.join(a(),".agentic-qe","logs"),i=l.join(n,`${o}.md`);if(!s.existsSync(i)){console.log(e.yellow(`
|
|
12
12
|
No daily log found for ${o}.
|
|
13
13
|
`)),await this.cleanupAndExit(0);return}let u=s.readFileSync(i,"utf-8");console.log(e.blue(`
|
|
14
14
|
Daily Log \u2014 ${o}`)),console.log(e.gray(" "+"\u2500".repeat(40)));for(let g of u.split(`
|
|
@@ -45,4 +45,4 @@ Examples:
|
|
|
45
45
|
aqe heartbeat log --date 2026-03-25
|
|
46
46
|
aqe heartbeat pause
|
|
47
47
|
aqe heartbeat resume
|
|
48
|
-
`}},m=100;async function w(){let{findProjectRoot:r}=await import("./unified-memory-
|
|
48
|
+
`}},m=100;async function w(){let{findProjectRoot:r}=await import("./unified-memory-RBHCTAWW.js");return l.join(r(),".agentic-qe","heartbeat-history.json")}async function b(r){try{let t=await w(),o=l.dirname(t);s.existsSync(o)||s.mkdirSync(o,{recursive:!0});let a=[];if(s.existsSync(t))try{a=JSON.parse(s.readFileSync(t,"utf-8"))}catch{a=[]}a.unshift({timestamp:r.timestamp.toISOString(),success:r.success,durationMs:r.durationMs,healthScore:r.metrics.healthScore,domainMetrics:r.metrics.domainMetrics}),a.length>m&&(a=a.slice(0,m)),s.writeFileSync(t,JSON.stringify(a,null,2))}catch{}}async function S(r){try{let t=await w();return s.existsSync(t)?JSON.parse(s.readFileSync(t,"utf-8")).slice(0,r):[]}catch{return[]}}function x(r){switch(r){case"idle":return e.cyan(r);case"running":return e.yellow(r);case"paused":return e.yellow(r);case"stopped":return e.gray(r);case"error":return e.red(r);default:return e.white(r)}}function y(r){return r>=80?e.green(String(r)):r>=50?e.yellow(String(r)):e.red(String(r))}function k(r){switch(r){case"improving":return e.green(r);case"stable":return e.cyan(r);case"degrading":return e.red(r);default:return e.gray(r)}}function p(r,t=!1){let o=t?r.getTime()-Date.now():Date.now()-r.getTime();return o<0?t?"now":"just now":o<6e4?`${Math.floor(o/1e3)}s ${t?"from now":"ago"}`:o<36e5?`${Math.floor(o/6e4)}m ${t?"from now":"ago"}`:`${Math.floor(o/36e5)}h ${t?"from now":"ago"}`}function A(r){return new h(r)}export{h as HeartbeatHandler,A as createHeartbeatHandler};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{a as v,b as k}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a as v,b as k}from"./chunk-VFXTZWNF.js";import"./chunk-7EL65Y27.js";import"./chunk-UJLSCJJS.js";import{k as g,o as P}from"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import{a as d,b as y,c as R}from"./chunk-F6AU2MAZ.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";R();import{randomUUID as M}from"crypto";var p=class{constructor(e){this.config=e}_status="idle";_lastResult;_lastRunAt;_nextRunAt;_totalExecutions=0;_successfulExecutions=0;_failedExecutions=0;_executionDurations=[];_recentResults=[];get status(){return this._status}get lastResult(){return this._lastResult}get lastRunAt(){return this._lastRunAt}get nextRunAt(){return this._nextRunAt}async initialize(){this._status="idle",this._nextRunAt=new Date(Date.now()+this.config.intervalMs)}async execute(e){let r=Date.now();this._status="running",this._lastRunAt=new Date,this._totalExecutions++;let n,t;for(let a=0;a<=this.config.retryCount;a++)try{if(e.signal.aborted)throw new Error("Worker execution aborted");t=await this.executeWithTimeout(()=>this.doExecute(e),this.config.timeoutMs,e.signal);break}catch(u){n=y(u),e.logger.warn(`Worker ${this.config.id} attempt ${a+1} failed: ${n.message}`),a<this.config.retryCount&&await this.delay(this.config.retryDelayMs)}let o=Date.now()-r;return t?(this._successfulExecutions++,this._lastResult=t):(this._failedExecutions++,t=this.createErrorResult(n,o),this._lastResult=t),this._executionDurations.push(o),this._executionDurations.length>100&&this._executionDurations.shift(),this._recentResults.push({timestamp:new Date,success:t.success,durationMs:o}),this._recentResults.length>5&&this._recentResults.shift(),this._nextRunAt=new Date(Date.now()+this.config.intervalMs),this._status=t.success?"idle":"error",await e.eventBus.publish({type:"worker.executed",workerId:this.config.id,timestamp:new Date,payload:{success:t.success,durationMs:o,findingsCount:t.findings.length,healthScore:t.metrics.healthScore}}),t}pause(){this._status!=="stopped"&&(this._status="paused")}resume(){this._status==="paused"&&(this._status="idle")}async stop(){this._status="stopped"}getHealth(){let e=this._executionDurations.length>0?this._executionDurations.reduce((n,t)=>n+t,0)/this._executionDurations.length:0,r=this._totalExecutions>0?this._successfulExecutions/this._totalExecutions:1;return{status:this._status,healthScore:Math.round(r*100),totalExecutions:this._totalExecutions,successfulExecutions:this._successfulExecutions,failedExecutions:this._failedExecutions,avgDurationMs:Math.round(e),recentResults:[...this._recentResults]}}async executeWithTimeout(e,r,n){return new Promise((t,o)=>{let a=setTimeout(()=>{o(new Error(`Worker execution timed out after ${r}ms`))},r),u=()=>{clearTimeout(a),o(new Error("Worker execution aborted"))};n.addEventListener("abort",u,{once:!0}),e().then(c=>{clearTimeout(a),n.removeEventListener("abort",u),t(c)}).catch(c=>{clearTimeout(a),n.removeEventListener("abort",u),o(c)})})}createErrorResult(e,r){return{workerId:this.config.id,timestamp:new Date,durationMs:r,success:!1,error:e.message,metrics:{itemsAnalyzed:0,issuesFound:0,healthScore:0,trend:"degrading",domainMetrics:{}},findings:[],recommendations:[]}}createResult(e,r,n,t){return{workerId:this.config.id,timestamp:new Date,durationMs:e,success:!0,metrics:r,findings:n,recommendations:t}}delay(e){return new Promise(r=>setTimeout(r,e))}generateId(){return`${Date.now()}-${M().slice(0,9)}`}};P();R();var W={id:"heartbeat-scheduler",name:"Heartbeat Scheduler",description:"Token-free maintenance: pattern promotion, stale detection, experience buffer monitoring",intervalMs:1800*1e3,priority:"normal",targetDomains:["learning-optimization"],enabled:!0,timeoutMs:6e4,retryCount:1,retryDelayMs:5e3},b=class extends p{lifecycleManager=null;dailyLogger;lastRunTimestamp=0;constructor(){super(W),this.dailyLogger=new k}async getLifecycleManager(){if(this.lifecycleManager)return this.lifecycleManager;try{let e=g();await e.initialize();let r=e.getDatabase();return this.lifecycleManager=v(r,{promotionRewardThreshold:.7,promotionMinOccurrences:2,promotionMinSuccessRate:.7,deprecationFailureThreshold:3,staleDaysThreshold:30,confidenceDecayRate:.01,minActiveConfidence:.3}),this.lifecycleManager}catch{return null}}getPendingExperienceCount(){try{return g().getDatabase().prepare("SELECT COUNT(*) as pending FROM qe_pattern_usage WHERE created_at > datetime('now', '-1 day')").get()?.pending??0}catch{return 0}}async doExecute(e){let r=Date.now();e.logger.info("Heartbeat scheduler running (token-free maintenance)");let n=[],t=[],o=await this.getLifecycleManager();if(!o)return e.logger.warn("Unified memory unavailable \u2014 returning zero-metric heartbeat"),this.createResult(Date.now()-r,{itemsAnalyzed:0,issuesFound:0,healthScore:50,trend:"stable",domainMetrics:{promoted:0,deprecated:0,decayed:0,stalePatterns:0,pendingExperiences:0,avgConfidence:0,avgSuccessRate:0}},[],[]);let a=0,u=0;try{let s=o.promoteEligiblePatterns();a=s.promoted,u=s.checked,a>0&&n.push({type:"heartbeat-promotion",severity:"info",domain:"learning-optimization",title:"Patterns Promoted",description:`${a} of ${u} short-term patterns promoted to long-term`})}catch(s){e.logger.warn("Pattern promotion failed",{error:d(s)})}let c=0,h=0;try{let s=o.deprecateStalePatterns();c=s.deprecated,h=s.checked,c>0&&n.push({type:"heartbeat-deprecation",severity:"low",domain:"learning-optimization",title:"Stale Patterns Deprecated",description:`${c} of ${h} patterns deprecated (stale, failed, or low confidence)`})}catch(s){e.logger.warn("Stale pattern detection failed",{error:d(s)})}let l=0;try{let s=this.lastRunTimestamp>0?(Date.now()-this.lastRunTimestamp)/864e5:1;l=o.applyConfidenceDecay(Math.min(s,7)).decayed}catch(s){e.logger.warn("Confidence decay failed",{error:d(s)})}let m=this.getPendingExperienceCount(),i={totalPatterns:0,activePatterns:0,deprecatedPatterns:0,promotedPatterns:0,shortTermPatterns:0,longTermPatterns:0,avgConfidence:0,avgSuccessRate:0,patternsNearDeprecation:0};try{i=o.getStats()}catch(s){e.logger.warn("Stats retrieval failed",{error:d(s)})}try{this.dailyLogger.log({timestamp:new Date,type:"pattern-promoted",summary:`Heartbeat: ${a} promoted, ${c} deprecated, ${l} decayed, ${m} pending exp, ${i.activePatterns} active patterns (avg conf: ${i.avgConfidence.toFixed(2)})`,details:{promoted:a,deprecated:c,decayed:l,pendingExperiences:m,totalPatterns:i.totalPatterns,activePatterns:i.activePatterns,avgConfidence:i.avgConfidence,avgSuccessRate:i.avgSuccessRate}}),this.dailyLogger.flush()}catch(s){e.logger.warn("Daily log write failed",{error:d(s)})}this.lastRunTimestamp=Date.now(),i.activePatterns>0&&i.patternsNearDeprecation/i.activePatterns>.5&&t.push({priority:"p2",domain:"learning-optimization",action:"Review At-Risk Patterns",description:`${i.patternsNearDeprecation} of ${i.activePatterns} active patterns are near deprecation. Manual review recommended.`,estimatedImpact:"medium",effort:"low",autoFixable:!1});let f=this.calculateHealthScore(i,a,c),D=this.determineTrend(a,c,i.activePatterns),_=Math.max(u,h),x=a+c+i.patternsNearDeprecation;return e.logger.info("Heartbeat complete",{promoted:a,deprecated:c,decayed:l,pendingExperiences:m,healthScore:f}),this.createResult(Date.now()-r,{itemsAnalyzed:_,issuesFound:x,healthScore:f,trend:D,domainMetrics:{promoted:a,deprecated:c,decayed:l,stalePatterns:i.patternsNearDeprecation,pendingExperiences:m,avgConfidence:Number(i.avgConfidence.toFixed(3)),avgSuccessRate:Number(i.avgSuccessRate.toFixed(3))}},n,t)}calculateHealthScore(e,r,n){let t=70;if(t+=Math.min(15,r*5),e.avgConfidence>0&&(t+=Math.round((e.avgConfidence-.5)*30)),e.activePatterns>0){let o=n/e.activePatterns;t-=Math.round(o*20)}return e.activePatterns>0&&e.patternsNearDeprecation/e.activePatterns>.5&&(t-=10),Math.max(0,Math.min(100,Math.round(t)))}determineTrend(e,r,n){return n===0?"stable":e>r?"improving":r>e&&r/n>.1?"degrading":"stable"}};export{b as HeartbeatSchedulerWorker};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a,c as b}from"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";b();export{a as HnswAdapter};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-SKWI5QBM.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-P3EOWBME.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";export{a as DEFAULT_HNSW_CONFIG,b as HNSWIndex,d as benchmarkHNSW,c as createHNSWIndex};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import"./chunk-C2HGOUEB.js";var s=class{adapter;metadataMap=new Map;insertCount=0;constructor(e){this.adapter=e}async initialize(){}async insert(e,t,r){this.adapter.addByStringId(e,t),this.insertCount++,r&&this.metadataMap.set(e,r)}async search(e,t){return this.adapter.searchByArray(e,t).map(a=>({key:a.id,score:a.score,distance:1-a.score,metadata:this.metadataMap.get(a.id)}))}async batchInsert(e){for(let t of e)await this.insert(t.key,t.vector,t.metadata)}async delete(e){let t=this.adapter.removeByStringId(e);return t&&this.metadataMap.delete(e),t}async getStats(){return{nativeHNSW:!0,backendType:"ruvector-gnn",vectorCount:this.adapter.size(),indexSizeBytes:this.adapter.size()*this.adapter.dimensions()*4,avgSearchLatencyMs:this.adapter.lastSearchLatencyMs,p95SearchLatencyMs:0,p99SearchLatencyMs:0,searchOperations:0,insertOperations:this.insertCount}}async clear(){this.adapter.clear(),this.metadataMap.clear(),this.insertCount=0}isNativeAvailable(){return!0}};export{s as HnswLegacyBridge};
|
|
@@ -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}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-J6KBI5NW.js";import"./chunk-C2HGOUEB.js";export{i as DotProductAttention,h as FlashAttention,k as HyperbolicAttention,l as LinearAttention,m as MoEAttention,j as MultiHeadAttention,b as RuvectorLayer,n as SonaEngine,c as TensorCompress,a as default,d as differentiableSearch,f as getCompressionLevel,e as hierarchicalForward,g as init,o as pipeline};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
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.
|
|
3
|
-
import{a as S,b as z,c as F}from"./chunk-
|
|
2
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
3
|
+
import{a as S,b as z,c as F}from"./chunk-V57PXZIK.js";import{a as U,b as Q}from"./chunk-BH5XPYA3.js";import{g as j}from"./chunk-NRH2QE4X.js";import"./chunk-VBXJBXMG.js";import"./chunk-HKTNFHWI.js";import"./chunk-EZTUUOVI.js";import"./chunk-UJLSCJJS.js";import"./chunk-RRQEIGLS.js";import"./chunk-27P4VTCY.js";import{a as L}from"./chunk-C567IO5M.js";import"./chunk-MUX762XZ.js";import"./chunk-Q6FSXNQP.js";import"./chunk-3RHIPCBG.js";import{f as E,o as O}from"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import{b as M,d as oe}from"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";import{Command as ge}from"commander";import A from"chalk";import V from"node:path";O();import{randomUUID as se}from"crypto";import I from"chalk";var v="dream-scheduler:hook-state",G=36e5,J=20,W=3e5;async function N(r){try{let e=await r.get(v);if(!e)return{triggered:!1,reason:"no-state"};let t=Date.now(),o=e.lastDreamTime?new Date(e.lastDreamTime).getTime():0,n=t-o;if(n<W)return{triggered:!1,reason:"too-soon"};let s=n>=G,a=e.experienceCount>=J;if(!s&&!a)return{triggered:!1,reason:"conditions-not-met"};let c=s?"time-interval":"experience-threshold";console.log(I.dim(`[hooks] Dream trigger: ${c} (${e.experienceCount} experiences, ${Math.round(n/6e4)}min since last dream)`));let{createDreamEngine:i}=await import("./dream-NGRDMOTE.js"),{createQEReasoningBank:h}=await import("./qe-reasoning-bank-PLTOH4SG.js"),u=i({maxDurationMs:1e4,minConceptsRequired:3});await u.initialize();let k=h(r,void 0,{enableLearning:!0,enableGuidance:!1,enableRouting:!1,embeddingDimension:384,useONNXEmbeddings:!0});await k.initialize();let p=await k.searchPatterns("",{limit:100,minConfidence:.3});if(p.success&&p.value.length>0){let R=p.value.map($=>({id:$.pattern.id,name:$.pattern.name,description:$.pattern.description||`${$.pattern.patternType} pattern`,domain:$.pattern.qeDomain||"learning-optimization",patternType:$.pattern.patternType,confidence:$.pattern.confidence,successRate:$.pattern.successRate||.5}));await u.loadPatternsAsConcepts(R)}let f=await u.dream(1e4);return e.lastDreamTime=new Date().toISOString(),e.experienceCount=0,e.totalDreamsThisSession++,await r.set(v,e),await u.close(),{triggered:!0,reason:c,insightsGenerated:f.insights.length}}catch(e){return console.error(I.dim(`[hooks] Dream trigger failed: ${e instanceof Error?e.message:"unknown"}`)),{triggered:!1,reason:"error"}}}async function D(r){try{let e=await r.get(v);return e||(e={lastDreamTime:null,experienceCount:0,sessionStartTime:new Date().toISOString(),totalDreamsThisSession:0}),e.experienceCount++,await r.set(v,e),e.experienceCount}catch{return 0}}async function P(r){try{let{getUnifiedMemory:e}=await import("./unified-memory-RBHCTAWW.js"),t=e();t.isInitialized()||await t.initialize();let o=t.getDatabase(),n=`cli-${Date.now()}-${se().slice(0,8)}`,s=r.durationMs||0,a;if(r.success){let c=s>0&&s<5e3?.1:0,i=r.source.includes("post-task")?.1:r.source.includes("post-edit")?.05:0;a=Math.min(.95,.7+c+i)}else{let c=r.source.includes("post-task")?.15:r.source.includes("post-edit")?.1:0;a=Math.min(.6,.3+c)}o.prepare(`
|
|
4
4
|
INSERT OR REPLACE INTO captured_experiences
|
|
5
5
|
(id, task, agent, domain, success, quality, duration_ms,
|
|
6
6
|
started_at, completed_at, source)
|
|
7
7
|
VALUES (?, ?, ?, ?, ?, ?, ?, datetime('now'), datetime('now'), ?)
|
|
8
|
-
`).run(n,r.task.slice(0,500),r.agent,r.domain,r.success?1:0,a,s,r.source)}catch(e){console.error(I.dim(`[hooks] persistCommandExperience: ${e instanceof Error?e.message:"unknown"}`))}}async function B(){let{getUnifiedMemory:r}=await import("./unified-memory-
|
|
8
|
+
`).run(n,r.task.slice(0,500),r.agent,r.domain,r.success?1:0,a,s,r.source)}catch(e){console.error(I.dim(`[hooks] persistCommandExperience: ${e instanceof Error?e.message:"unknown"}`))}}async function B(){let{getUnifiedMemory:r}=await import("./unified-memory-RBHCTAWW.js"),e=r();e.isInitialized()||await e.initialize();let t=e.getDatabase(),o=new Set(t.prepare("PRAGMA table_info(captured_experiences)").all().map(i=>i.name)),n=[["consolidated_into","TEXT DEFAULT NULL"],["consolidation_count","INTEGER DEFAULT 1"],["quality_updated_at","TEXT DEFAULT NULL"],["reuse_success_count","INTEGER DEFAULT 0"],["reuse_failure_count","INTEGER DEFAULT 0"]];for(let[i,h]of n)o.has(i)||t.exec(`ALTER TABLE captured_experiences ADD COLUMN ${i} ${h}`);let s=t.prepare(`
|
|
9
9
|
SELECT
|
|
10
10
|
domain,
|
|
11
11
|
agent,
|
|
@@ -22,7 +22,7 @@ import{a as S,b as z,c as F}from"./chunk-TTOE336G.js";import{a as U,b as Q}from"
|
|
|
22
22
|
HAVING cnt >= 3 AND avg_quality >= 0.5 AND success_rate >= 0.6
|
|
23
23
|
ORDER BY avg_quality DESC
|
|
24
24
|
LIMIT 50
|
|
25
|
-
`).all();if(s.length===0)return 0;let{v4:a}=await import("./esm-node-
|
|
25
|
+
`).all();if(s.length===0)return 0;let{v4:a}=await import("./esm-node-3COTOSO3.js"),c=0;for(let i of s)try{let h=new Date().toISOString().slice(0,7),u=`${i.agent}-${i.domain}-${h}`,k=t.prepare(`
|
|
26
26
|
SELECT id FROM qe_patterns
|
|
27
27
|
WHERE qe_domain = ? AND name = ?
|
|
28
28
|
LIMIT 1
|
|
@@ -44,7 +44,7 @@ import{a as S,b as z,c as F}from"./chunk-TTOE336G.js";import{a as U,b as Q}from"
|
|
|
44
44
|
UPDATE captured_experiences
|
|
45
45
|
SET application_count = application_count + 1
|
|
46
46
|
WHERE domain = ? AND agent = ? AND application_count = 0
|
|
47
|
-
`).run(i.domain,i.agent)}catch{}return c}var d={reasoningBank:null,hookRegistry:null,coherenceService:null,sessionId:null,initialized:!1,initializationPromise:null};async function g(){if(d.initializationPromise&&await d.initializationPromise,d.initialized&&d.reasoningBank&&d.hookRegistry)return{reasoningBank:d.reasoningBank,hookRegistry:d.hookRegistry};if(d.initializationPromise=re(),await d.initializationPromise,d.initializationPromise=null,!d.reasoningBank||!d.hookRegistry)throw new Error("Failed to initialize hooks system");return{reasoningBank:d.reasoningBank,hookRegistry:d.hookRegistry}}async function re(){if(!d.initialized)try{let r=E(),e=V.join(r,".agentic-qe"),t=await T(e);try{d.coherenceService=await U(Q),console.log(A.dim("[hooks] CoherenceService initialized with WASM engines"))}catch(a){console.log(A.dim(`[hooks] CoherenceService WASM unavailable, using fallback: ${a instanceof Error?a.message:"unknown"}`))}d.reasoningBank=j(t,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0,embeddingDimension:384,useONNXEmbeddings:!0},d.coherenceService??void 0);let o=1e4,n=d.reasoningBank.initialize(),s=new Promise((a,c)=>setTimeout(()=>c(new Error("ReasoningBank init timeout")),o));await Promise.race([n,s]);try{let{getSharedRvfDualWriter:a}=await import("./shared-rvf-dual-writer-
|
|
47
|
+
`).run(i.domain,i.agent)}catch{}return c}var d={reasoningBank:null,hookRegistry:null,coherenceService:null,sessionId:null,initialized:!1,initializationPromise:null};async function g(){if(d.initializationPromise&&await d.initializationPromise,d.initialized&&d.reasoningBank&&d.hookRegistry)return{reasoningBank:d.reasoningBank,hookRegistry:d.hookRegistry};if(d.initializationPromise=re(),await d.initializationPromise,d.initializationPromise=null,!d.reasoningBank||!d.hookRegistry)throw new Error("Failed to initialize hooks system");return{reasoningBank:d.reasoningBank,hookRegistry:d.hookRegistry}}async function re(){if(!d.initialized)try{let r=E(),e=V.join(r,".agentic-qe"),t=await T(e);try{d.coherenceService=await U(Q),console.log(A.dim("[hooks] CoherenceService initialized with WASM engines"))}catch(a){console.log(A.dim(`[hooks] CoherenceService WASM unavailable, using fallback: ${a instanceof Error?a.message:"unknown"}`))}d.reasoningBank=j(t,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0,embeddingDimension:384,useONNXEmbeddings:!0},d.coherenceService??void 0);let o=1e4,n=d.reasoningBank.initialize(),s=new Promise((a,c)=>setTimeout(()=>c(new Error("ReasoningBank init timeout")),o));await Promise.race([n,s]);try{let{getSharedRvfDualWriter:a}=await import("./shared-rvf-dual-writer-27L4R5WK.js"),c=await a();c&&d.reasoningBank.setRvfDualWriter(c)}catch(a){process.env.DEBUG&&console.debug("[hooks] RVF wiring skipped:",a instanceof Error?a.message:a)}d.hookRegistry=F(d.reasoningBank),d.initialized=!0,console.log(A.dim("[hooks] System initialized"))}catch(r){console.warn(A.yellow(`[hooks] Using fallback mode: ${r instanceof Error?r.message:"unknown error"}`));let e=ie();d.reasoningBank=j(e,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0}),d.hookRegistry=new z,d.hookRegistry.initialize(d.reasoningBank),d.initialized=!0}}async function T(r){let t=new L({sqlite:{path:V.join(r,"memory.db"),walMode:!0,poolSize:3,busyTimeout:5e3},enableFallback:!0,defaultNamespace:"qe-patterns"}),o=t.initialize(),n=new Promise((s,a)=>setTimeout(()=>a(new Error("Backend init timeout")),5e3));return await Promise.race([o,n]),t}function ie(){let r=new Map;return{initialize:async()=>{},dispose:async()=>{r.clear()},get:async e=>{let t=r.get(e);return t?t.value:void 0},set:async(e,t,o)=>{r.set(e,{value:t})},delete:async e=>r.delete(e),has:async e=>r.has(e),search:async(e,t)=>{let o=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(o.replace(/\*/g,".*"));return Array.from(r.keys()).filter(s=>n.test(s))},vectorSearch:async(e,t)=>[],storeVector:async(e,t,o)=>{},count:async e=>{let t=0,o=`${e}:`;for(let n of r.keys())n.startsWith(o)&&t++;return t},hasCodeIntelligenceIndex:async()=>{let e="code-intelligence:kg:";for(let t of r.keys())if(t.startsWith(e))return!0;return!1}}}function m(r){console.log(JSON.stringify(r,null,2))}function b(r){console.log(A.green("\u2713"),r)}function y(r){console.error(A.red("\u2717"),r)}function C(r){if(r.length===0){console.log(A.dim(" No specific guidance"));return}r.forEach((e,t)=>{console.log(A.cyan(` ${t+1}.`),e)})}import _ from"chalk";import ae from"node:path";O();function Z(r){r.command("pre-edit").description("Get context and guidance before editing a file").requiredOption("-f, --file <path>","File path to edit").option("-o, --operation <type>","Operation type: create, update, delete, refactor","update").option("--json","Output as JSON").action(async e=>{try{let{hookRegistry:t}=await g(),n=(await t.emit(S.PreTestGeneration,{targetFile:e.file,testType:"unit",operation:e.operation}))[0]||{success:!0,guidance:[],routing:null};if(e.json){let s=n.guidance||[],c=[n.routing?.recommendedAgent?`Recommended agent: ${n.routing.recommendedAgent} (${(n.routing.confidence*100).toFixed(0)}% confidence).`:"",...s.map(i=>i)].filter(Boolean).join(" ");m({hookSpecificOutput:{hookEventName:"PreToolUse",additionalContext:c||void 0},file:e.file,operation:e.operation,patterns:n.routing?.patterns?.length||0})}else console.log(_.bold(`
|
|
48
48
|
\u{1F4DD} Pre-Edit Analysis`)),console.log(_.dim(` File: ${e.file}`)),console.log(_.dim(` Operation: ${e.operation}`)),n.routing&&(console.log(_.bold(`
|
|
49
49
|
\u{1F3AF} Recommended Agent:`),_.cyan(n.routing.recommendedAgent)),console.log(_.dim(` Confidence: ${(n.routing.confidence*100).toFixed(1)}%`))),console.log(_.bold(`
|
|
50
50
|
\u{1F4A1} Guidance:`)),C(n.guidance||[]);return}catch(t){throw y(`pre-edit failed: ${t instanceof Error?t.message:"unknown"}`),t}}),r.command("post-edit").description("Record editing outcome for pattern learning").requiredOption("-f, --file <path>","File path that was edited").option("--success","Edit was successful").option("--failure","Edit failed").option("--pattern-id <id>","Pattern ID that was applied").option("--json","Output as JSON").action(async e=>{try{let{hookRegistry:t}=await g(),o=e.success||!e.failure,n=e.file||"",s=n.split("/").pop()||"unknown",c=/\.(test|spec)\.(ts|js|tsx|jsx)$/.test(s)?"test-generation":"code-intelligence",i=e.patternId||`edit:${c}:${s}`,u=(await t.emit(S.PostTestGeneration,{targetFile:e.file,success:o,patternId:i,generatedTests:null,testCount:0}))[0]||{success:!0,patternsLearned:0};try{let{reasoningBank:p}=await g();await p.recordOutcome({patternId:i,success:o,metrics:{executionTimeMs:0},feedback:`Edit ${o?"succeeded":"failed"}: ${n}`})}catch{}try{await P({task:`edit: ${n}`,agent:"cli-hook",domain:c,success:o,source:"cli-hook-post-edit"})}catch{}let k=!1;try{let p=E(),f=ae.join(p,".agentic-qe"),R=await T(f);await D(R)}catch{}e.json?m({success:!0,file:e.file,editSuccess:o,patternsLearned:u.patternsLearned||0,dreamTriggered:k}):(b(`Recorded edit outcome for ${e.file}`),u.patternsLearned&&console.log(_.green(` Patterns learned: ${u.patternsLearned}`)));return}catch(t){throw y(`post-edit failed: ${t instanceof Error?t.message:"unknown"}`),t}})}O();import{randomUUID as ce}from"crypto";import w from"chalk";import de from"node:path";function K(r){r.command("route").description("Route a task to the optimal QE agent").requiredOption("-t, --task <description>","Task description").option("-d, --domain <domain>","Target QE domain hint").option("-c, --capabilities <caps...>","Required capabilities").option("--json","Output as JSON").action(async e=>{try{let{reasoningBank:t}=await g(),o={task:e.task,domain:e.domain,capabilities:e.capabilities},n=await t.routeTask(o);if(!n.success)throw new Error(n.error.message);let s=n.value;e.json?m({recommendedAgent:s.recommendedAgent,confidence:s.confidence,alternatives:s.alternatives,domains:s.domains,patternCount:s.patterns.length,guidance:s.guidance,reasoning:s.reasoning}):(console.log(w.bold(`
|
|
@@ -53,7 +53,7 @@ import{a as S,b as z,c as F}from"./chunk-TTOE336G.js";import{a as U,b as Q}from"
|
|
|
53
53
|
\u{1F504} Alternatives:`)),s.alternatives.forEach(a=>{console.log(w.dim(` - ${a.agent}: ${(a.score*100).toFixed(1)}%`))})),console.log(w.bold(`
|
|
54
54
|
\u{1F4C2} Detected Domains:`),s.domains.join(", ")),console.log(w.bold(`
|
|
55
55
|
\u{1F4A1} Guidance:`)),C(s.guidance),console.log(w.bold(`
|
|
56
|
-
\u{1F4D6} Reasoning:`),w.dim(s.reasoning)));try{let{getUnifiedMemory:a}=await import("./unified-memory-
|
|
56
|
+
\u{1F4D6} Reasoning:`),w.dim(s.reasoning)));try{let{getUnifiedMemory:a}=await import("./unified-memory-RBHCTAWW.js"),c=a();c.isInitialized()||await c.initialize();let i=c.getDatabase(),h=`route-${Date.now()}-${ce().slice(0,8)}`;i.prepare(`
|
|
57
57
|
INSERT OR REPLACE INTO routing_outcomes (
|
|
58
58
|
id, task_json, decision_json, used_agent,
|
|
59
59
|
followed_recommendation, success, quality_score,
|
|
@@ -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}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e}from"./chunk-OHZ6RJLS.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-4GJAYXB7.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-C2HGOUEB.js";export{a as DEFAULT_HYPERGRAPH_ENGINE_CONFIG,b as HypergraphEngine,c as createHypergraphEngine,d as createHypergraphEngineSync,e 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"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import"./chunk-C2HGOUEB.js";import e from"chalk";import{join as m,resolve as h}from"path";import{existsSync as y}from"fs";var c=class{name="hypergraph";description="Query the code knowledge hypergraph";cleanupAndExit;ensureInitialized;constructor(n,r){this.cleanupAndExit=n,this.ensureInitialized=r}register(n,r){let s=n.command("hypergraph").alias("hg").description(this.description);s.command("stats").description("Show hypergraph statistics (node/edge counts by type)").option("--db <path>","Database path").action(async t=>{await this.executeStats(t)}),s.command("untested").description("Find functions with no test coverage").option("--db <path>","Database path").option("--limit <number>","Max results","20").action(async t=>{await this.executeUntested(t)}),s.command("impacted <files...>").description("Find tests impacted by changed files").option("--db <path>","Database path").action(async(t,i)=>{await this.executeImpacted(t,i)}),s.command("gaps").description("Find functions with low coverage").option("--db <path>","Database path").option("--max-coverage <number>","Coverage threshold (%)","50").option("--limit <number>","Max results","20").action(async t=>{await this.executeGaps(t)})}async executeStats(n){if(!await this.ensureInitialized())return;let{engine:r,close:s}=await this.openEngine(n.db);try{let t=await r.getStats();if(console.log(e.blue(`
|
|
3
3
|
Hypergraph Statistics
|
|
4
4
|
`)),console.log(e.white(` Total nodes: ${t.totalNodes}`)),console.log(e.white(` Total edges: ${t.totalEdges}`)),t.totalNodes>0){console.log(e.gray(`
|
|
5
5
|
Nodes by type:`));for(let[i,o]of Object.entries(t.nodesByType))o>0&&console.log(e.gray(` ${i}: ${o}`));console.log(e.gray(`
|
|
@@ -15,7 +15,7 @@ import"./chunk-YXCU4CJX.js";import e from"chalk";import{join as m,resolve as h}f
|
|
|
15
15
|
`))}finally{i()}await this.cleanupAndExit(0)}async executeGaps(n){if(!await this.ensureInitialized())return;let{engine:r,close:s}=await this.openEngine(n.db);try{let t=parseInt(n.maxCoverage,10)||50,i=parseInt(n.limit,10)||20,o=await r.findCoverageGaps(t),a=o.slice(0,i);if(console.log(e.blue(`
|
|
16
16
|
Coverage Gaps (<= ${t}%) \u2014 ${o.length} total
|
|
17
17
|
`)),a.length===0)console.log(e.green(" No coverage gaps found!"));else{for(let l of a){let d=l.coverage!==void 0?e.red(` ${l.coverage}%`):"",p=l.complexity?e.yellow(` complexity=${l.complexity}`):"";console.log(e.white(` ${l.name}`)+d+e.gray(` ${l.filePath||""}`)+p)}o.length>i&&console.log(e.gray(`
|
|
18
|
-
... and ${o.length-i} more (use --limit to show more)`))}console.log("")}finally{s()}await this.cleanupAndExit(0)}async openEngine(n){let{findProjectRoot:r}=await import("./unified-memory-
|
|
18
|
+
... and ${o.length-i} more (use --limit to show more)`))}console.log("")}finally{s()}await this.cleanupAndExit(0)}async openEngine(n){let{findProjectRoot:r}=await import("./unified-memory-RBHCTAWW.js"),{openDatabase:s}=await import("./safe-db-CCKCBZ5I.js"),{createHypergraphEngine:t}=await import("./hypergraph-engine-WVPYKMFY.js"),i=r(),o=n||m(i,".agentic-qe","memory.db");if(!y(o))throw new Error(`Database not found: ${o}
|
|
19
19
|
Run "aqe init --auto" first.`);let a=s(o);try{return{engine:await t({db:a,maxTraversalDepth:10,maxQueryResults:1e3,enableVectorSearch:!1}),close:()=>{try{a.close()}catch{}}}}catch(l){try{a.close()}catch{}throw l}}getHelp(){return`
|
|
20
20
|
Query the code knowledge hypergraph for untested functions,
|
|
21
21
|
impacted tests, and coverage gaps.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a}from"./chunk-RAZ2PGZD.js";import"./chunk-O6QAOPUA.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-C2HGOUEB.js";export{a as ImpactAnalyzerService};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a as g}from"./chunk-VBYREHZI.js";import{a as u,c as f}from"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";import o from"chalk";f();var m=class{name="init";description="Initialize the AQE v3 system";cleanupAndExit;constructor(e){this.cleanupAndExit=e}register(e,i){e.command("init").description(this.description).option("-d, --domains <domains>","Comma-separated list of domains to enable","all").option("-m, --max-agents <number>","Maximum concurrent agents","15").option("--memory <backend>","Memory backend (sqlite|agentdb|hybrid)","hybrid").option("--lazy","Enable lazy loading of domains").option("--wizard","Run interactive setup wizard").option("--auto","Auto-configure based on project analysis").option("-u, --upgrade","Upgrade existing installation (overwrite skills, agents, validation)").option("--minimal","Minimal configuration (skip optional features)").option("--skip-patterns","Skip loading pre-trained patterns").option("--skip-code-index","Skip code intelligence pre-scan (run `aqe code index` later)").option("--with-n8n","Install n8n workflow testing agents and skills").option("--with-opencode","Include OpenCode agent/skill provisioning").option("--with-kiro","Include AWS Kiro IDE integration (agents, skills, hooks, steering)").option("--with-copilot","Include GitHub Copilot MCP config and instructions").option("--with-cursor","Include Cursor MCP config and rules").option("--with-cline","Include Cline MCP config and custom QE mode").option("--with-kilocode","Include Kilo Code MCP config and custom QE mode").option("--with-roocode","Include Roo Code MCP config and custom QE mode").option("--with-codex","Include OpenAI Codex CLI MCP config and AGENTS.md").option("--with-windsurf","Include Windsurf MCP config and rules").option("--with-continuedev","Include Continue.dev MCP config and rules").option("--no-mcp","Skip MCP server config (MCP is enabled by default)").option("--with-mcp","Enable MCP server config (default \u2014 kept for backward compatibility)").option("--with-all-platforms","Include all coding agent platform configurations").option("--auto-migrate","Automatically migrate from v2 if detected").option("--with-claude-flow","Force Claude Flow integration setup").option("--skip-claude-flow","Skip Claude Flow integration").option("--no-governance","Skip governance configuration (ADR-058)").option("--modular","Use new modular init system (default for --auto)").action(async l=>{await this.execute(l,i)})}async execute(e,i){try{if(e.withAllPlatforms&&(e.withCopilot=!0,e.withCursor=!0,e.withCline=!0,e.withKilocode=!0,e.withRoocode=!0,e.withCodex=!0,e.withWindsurf=!0,e.withContinuedev=!0),e.upgrade&&!e.auto&&!e.wizard&&(e.auto=!0),e.wizard||e.auto){if(console.log(o.blue(`
|
|
3
|
+
Agentic QE v3 Initialization
|
|
4
|
+
`)),e.auto||e.modular){await this.runModularInit(e,i);return}await this.runLegacyWizard(e,i);return}await this.runStandardInit(e,i)}catch(l){console.error(o.red(`
|
|
5
|
+
Failed to initialize:`),l),await this.cleanupAndExit(1)}}async runModularInit(e,i){let{createModularInitOrchestrator:l}=await import("./orchestrator-G6BUZ6QE.js"),s=l({projectRoot:process.cwd(),autoMode:e.auto,upgrade:e.upgrade,minimal:e.minimal,skipPatterns:e.skipPatterns,skipCodeIndex:e.skipCodeIndex,withN8n:e.withN8n,withOpenCode:e.withOpencode,withKiro:e.withKiro,withCopilot:e.withCopilot,withCursor:e.withCursor,withCline:e.withCline,withKiloCode:e.withKilocode,withRooCode:e.withRoocode,withCodex:e.withCodex,withWindsurf:e.withWindsurf,withContinueDev:e.withContinuedev,noMcp:e.noMcp&&!e.withMcp,noGovernance:e.noGovernance});console.log(o.white(` Analyzing project...
|
|
6
|
+
`));let t=await s.initialize();for(let n of t.steps){let r=n.status==="success"?"*":n.status==="error"?"x":"!",c=n.status==="success"?o.green:n.status==="error"?o.red:o.yellow;console.log(c(` ${r} ${n.step} (${n.durationMs}ms)`))}console.log("");let a;if(!e.skipClaudeFlow&&(e.withClaudeFlow||t.success))try{let{setupClaudeFlowIntegration:n}=await import("./claude-flow-setup-5MTYQM34.js");if(a=await n({projectRoot:process.cwd(),force:e.withClaudeFlow}),a.available)console.log(o.green(" * Claude Flow integration enabled")),a.features.trajectories&&console.log(o.gray(" - SONA trajectory tracking")),a.features.modelRouting&&console.log(o.gray(" - 3-tier model routing (haiku/sonnet/opus)")),a.features.pretrain&&console.log(o.gray(" - Codebase pretrain analysis")),console.log("");else{let{getClaudeFlowNotFoundMessage:r}=await import("./detect-DU2FTRKR.js");console.log(o.gray(r())),console.log("")}}catch{let{getClaudeFlowNotFoundMessage:n}=await import("./detect-DU2FTRKR.js");console.log(o.gray(n())),console.log("")}t.success?(console.log(o.green(` AQE v3 initialized successfully!
|
|
7
|
+
`)),console.log(o.blue(" Summary:")),console.log(o.gray(` - Patterns loaded: ${t.summary.patternsLoaded}`)),console.log(o.gray(` - Skills installed: ${t.summary.skillsInstalled}`)),console.log(o.gray(` - Agents installed: ${t.summary.agentsInstalled}`)),console.log(o.gray(` - Hooks configured: ${t.summary.hooksConfigured?"Yes":"No"}`)),console.log(o.gray(` - Workers started: ${t.summary.workersStarted}`)),console.log(o.gray(` - Claude Flow: ${a?.available?"Enabled":"Standalone mode"}`)),console.log(o.gray(` - Total time: ${t.totalDurationMs}ms
|
|
8
|
+
`)),console.log(o.white("Next steps:")),console.log(o.gray(" 1. Run tests: aqe test <path>")),console.log(o.gray(" 2. Check coverage: aqe coverage <path>")),console.log(o.gray(" 3. Check status: aqe status")),t.summary.mcpConfigured&&(console.log(o.gray(`
|
|
9
|
+
MCP server configured in .mcp.json`)),console.log(o.gray(` Use --no-mcp to skip MCP setup if using CLI only
|
|
10
|
+
`)))):(console.log(o.red(` Initialization failed. Check errors above.
|
|
11
|
+
`)),await this.cleanupAndExit(1)),await this.cleanupAndExit(0)}async runLegacyWizard(e,i){let{InitOrchestrator:l}=await import("./init-wizard-QHAA4GWF.js"),s={projectRoot:process.cwd(),autoMode:e.auto,minimal:e.minimal,skipPatterns:e.skipPatterns,withN8n:e.withN8n},t=new l(s);if(e.wizard){console.log(o.white(` Setup Wizard Steps:
|
|
12
|
+
`));let n=t.getWizardSteps();for(let r=0;r<n.length;r++)console.log(o.gray(` ${r+1}. ${n[r].title}`)),console.log(o.gray(` ${n[r].description}
|
|
13
|
+
`))}console.log(o.white(` Analyzing project...
|
|
14
|
+
`));let a=await t.initialize();for(let n of a.steps){let r=n.status==="success"?"*":n.status==="error"?"x":"!",c=n.status==="success"?o.green:n.status==="error"?o.red:o.yellow;console.log(c(` ${r} ${n.step} (${n.durationMs}ms)`))}console.log(""),a.success?(console.log(o.green(` AQE v3 initialized successfully!
|
|
15
|
+
`)),console.log(o.blue(" Summary:")),console.log(o.gray(` - Patterns loaded: ${a.summary.patternsLoaded}`)),console.log(o.gray(` - Hooks configured: ${a.summary.hooksConfigured?"Yes":"No"}`)),console.log(o.gray(` - Workers started: ${a.summary.workersStarted}`)),a.summary.n8nInstalled&&(console.log(o.gray(` - N8n agents: ${a.summary.n8nInstalled.agents}`)),console.log(o.gray(` - N8n skills: ${a.summary.n8nInstalled.skills}`))),console.log(o.gray(` - Total time: ${a.totalDurationMs}ms
|
|
16
|
+
`)),console.log(o.white("Next steps:")),console.log(o.gray(" 1. Run tests: aqe test <path>")),console.log(o.gray(" 2. Check coverage: aqe coverage <path>")),console.log(o.gray(" 3. Check status: aqe status")),a.summary.mcpConfigured&&(console.log(o.gray(`
|
|
17
|
+
MCP server configured in .mcp.json`)),console.log(o.gray(` Use --no-mcp to skip MCP setup if using CLI only
|
|
18
|
+
`)))):(console.log(o.red(` Initialization failed. Check errors above.
|
|
19
|
+
`)),await this.cleanupAndExit(1)),await this.cleanupAndExit(0)}async runStandardInit(e,i){let{QEKernelImpl:l}=await import("./kernel-SNJFYN3T.js"),{CrossDomainEventRouter:s}=await import("./cross-domain-router-2LPBUUWY.js"),{DefaultProtocolExecutor:t}=await import("./protocol-executor-ORFR4WJ3.js"),{WorkflowOrchestrator:a}=await import("./workflow-orchestrator-G6VU7QZ4.js"),{createQueenCoordinator:n}=await import("./queen-coordinator-L3TRAX7H.js");console.log(o.blue(`
|
|
20
|
+
Initializing Agentic QE v3...
|
|
21
|
+
`));let r=e.domains==="all"?[...g]:e.domains.split(",").filter(d=>g.includes(d));console.log(o.gray(` Domains: ${r.length}`)),console.log(o.gray(` Max Agents: ${e.maxAgents}`)),console.log(o.gray(` Memory: ${e.memory}`)),console.log(o.gray(` Lazy Loading: ${e.lazy?"enabled":"disabled"}
|
|
22
|
+
`)),i.kernel=new l({maxConcurrentAgents:parseInt(e.maxAgents,10),memoryBackend:e.memory,hnswEnabled:!0,lazyLoading:e.lazy||!1,enabledDomains:r}),await i.kernel.initialize(),console.log(o.green(" * Kernel initialized")),i.router=new s(i.kernel.eventBus),await i.router.initialize(),console.log(o.green(" * Cross-domain router initialized"));let c=d=>i.kernel.getDomainAPI(d),p=new t(i.kernel.eventBus,i.kernel.memory,c);console.log(o.green(" * Protocol executor initialized")),i.workflowOrchestrator=new a(i.kernel.eventBus,i.kernel.memory,i.kernel.coordinator),await i.workflowOrchestrator.initialize(),this.registerDomainWorkflowActions(i.kernel,i.workflowOrchestrator),console.log(o.green(" * Workflow orchestrator initialized")),i.queen=n(i.kernel,i.router,p,void 0),await i.queen.initialize(),console.log(o.green(" * Queen Coordinator initialized")),i.initialized=!0,console.log(o.green(`
|
|
23
|
+
AQE v3 initialized successfully!
|
|
24
|
+
`)),console.log(o.blue(" Enabled Domains:"));for(let d of r)console.log(o.gray(` - ${d}`));console.log(""),await this.cleanupAndExit(0)}registerDomainWorkflowActions(e,i){let l=e.getDomainAPI("visual-accessibility");if(l?.registerWorkflowActions)try{l.registerWorkflowActions(i)}catch(t){console.error(o.yellow(` ! Could not register visual-accessibility workflow actions: ${u(t)}`))}let s=e.getDomainAPI("requirements-validation");if(s?.registerWorkflowActions)try{s.registerWorkflowActions(i)}catch(t){console.error(o.yellow(` ! Could not register requirements-validation workflow actions: ${u(t)}`))}}getHelp(){return`
|
|
25
|
+
Initialize the AQE v3 system with various configuration options.
|
|
26
|
+
|
|
27
|
+
Usage:
|
|
28
|
+
aqe init [options]
|
|
29
|
+
|
|
30
|
+
Options:
|
|
31
|
+
-d, --domains <domains> Comma-separated list of domains to enable (default: all)
|
|
32
|
+
-m, --max-agents <number> Maximum concurrent agents (default: 15)
|
|
33
|
+
--memory <backend> Memory backend: sqlite, agentdb, or hybrid (default: hybrid)
|
|
34
|
+
--lazy Enable lazy loading of domains
|
|
35
|
+
--wizard Run interactive setup wizard
|
|
36
|
+
--auto Auto-configure based on project analysis
|
|
37
|
+
-u, --upgrade Upgrade existing installation (overwrite skills, agents, validation)
|
|
38
|
+
--minimal Minimal configuration (skip optional features)
|
|
39
|
+
--skip-patterns Skip loading pre-trained patterns
|
|
40
|
+
--with-n8n Install n8n workflow testing agents and skills
|
|
41
|
+
--with-opencode Include OpenCode agent/skill provisioning
|
|
42
|
+
--auto-migrate Automatically migrate from v2 if detected
|
|
43
|
+
--with-claude-flow Force Claude Flow integration setup
|
|
44
|
+
--skip-claude-flow Skip Claude Flow integration
|
|
45
|
+
--no-mcp Skip MCP server config (MCP is enabled by default)
|
|
46
|
+
--no-governance Skip governance configuration (ADR-058)
|
|
47
|
+
--modular Use new modular init system
|
|
48
|
+
|
|
49
|
+
MCP Server:
|
|
50
|
+
MCP server configuration is ENABLED BY DEFAULT. It writes .mcp.json
|
|
51
|
+
at the project root so Claude Code auto-discovers the AQE MCP server.
|
|
52
|
+
Use --no-mcp to skip if you only want CLI commands.
|
|
53
|
+
|
|
54
|
+
Governance:
|
|
55
|
+
Governance is ENABLED BY DEFAULT. It installs .claude/guidance/ with:
|
|
56
|
+
- constitution.md: 7 unbreakable QE invariants
|
|
57
|
+
- shards/*.shard.md: 12 domain-specific governance rules
|
|
58
|
+
|
|
59
|
+
Use --no-governance to skip, or set GOVERNANCE_*=false env vars for
|
|
60
|
+
fine-grained control over individual gates (ContinueGate, MemoryWriteGate, etc.)
|
|
61
|
+
|
|
62
|
+
Examples:
|
|
63
|
+
aqe init --auto # Auto-configure based on project (keeps existing skills)
|
|
64
|
+
aqe init --auto --upgrade # Auto-configure AND update all skills/agents
|
|
65
|
+
aqe init --upgrade # Upgrade existing installation
|
|
66
|
+
aqe init --wizard # Run interactive wizard
|
|
67
|
+
aqe init --domains test-generation,coverage-analysis
|
|
68
|
+
`}};function v(w){return new m(w)}export{m as InitHandler,v as createInitHandler};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a,b,c,d}from"./chunk-UUL3D5HR.js";import"./chunk-UPJZRDZK.js";import"./chunk-7FJIIB4H.js";import"./chunk-GX7MEHQ2.js";import"./chunk-TNWTQWLL.js";import"./chunk-4GJAYXB7.js";import"./chunk-F6AU2MAZ.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-C2HGOUEB.js";export{a as InitOrchestrator,b as createInitOrchestrator,d as formatInitResult,c as quickInit};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{v as a,w as b}from"./chunk-VSNPI2NO.js";import"./chunk-ONOYANDX.js";import"./chunk-COIRFVFO.js";import"./chunk-V57PXZIK.js";import"./chunk-RUJU5XEQ.js";import"./chunk-ZW5DRPZY.js";import"./chunk-RGRYL4MG.js";import"./chunk-QEYPK7KS.js";import"./chunk-53M65YFH.js";import"./chunk-GQ7DCSKS.js";import"./chunk-EHGTXIT7.js";import"./chunk-ZKWNZ3ZK.js";import"./chunk-4TZTGYBQ.js";import"./chunk-EFD2J6GG.js";import"./chunk-C3BXT3ZC.js";import"./chunk-MR5I6UR2.js";import"./chunk-QVZSIFSJ.js";import"./chunk-BH5XPYA3.js";import"./chunk-NRH2QE4X.js";import"./chunk-VBXJBXMG.js";import"./chunk-HKTNFHWI.js";import"./chunk-EZTUUOVI.js";import"./chunk-UJLSCJJS.js";import"./chunk-RRQEIGLS.js";import"./chunk-MS6LTE4L.js";import"./chunk-ZODUKKPC.js";import"./chunk-27P4VTCY.js";import"./chunk-C567IO5M.js";import"./chunk-IGJ472XJ.js";import"./chunk-3MRFR534.js";import"./chunk-LW3DV23G.js";import"./chunk-SKWI5QBM.js";import"./chunk-MUX762XZ.js";import"./chunk-RAZ2PGZD.js";import"./chunk-O6QAOPUA.js";import"./chunk-OHZ6RJLS.js";import"./chunk-JVUNZBKX.js";import"./chunk-Q6FSXNQP.js";import"./chunk-3RHIPCBG.js";import"./chunk-54OLXGXJ.js";import"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-WHT46PJM.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-J222JLZ6.js";import"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import"./chunk-RS7ZGWHV.js";import"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";export{a as QEKernelImpl,b as createKernel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.
|
|
2
|
-
import{b as p}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{b as p}from"./chunk-2JLKOGNU.js";import{a as f,c as v}from"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";v();import{existsSync as n,mkdirSync as m,readFileSync as u,writeFileSync as a}from"fs";import{join as d,dirname as h}from"path";var l=class{projectRoot;overwrite;generator;constructor(r){this.projectRoot=r.projectRoot,this.overwrite=r.overwrite??!1,this.generator=p()}async install(){let r={success:!0,mcpConfigured:!1,modeInstalled:!1,errors:[],configPath:"",modePath:""};try{let t=this.generator.generateMcpConfig("kilocode"),e=d(this.projectRoot,t.path);if(r.configPath=e,!n(e)||this.overwrite){let s=h(e);if(n(s)||m(s,{recursive:!0}),n(e)&&this.overwrite){let c=this.mergeExistingConfig(e,t.content);a(e,c)}else a(e,t.content);r.mcpConfigured=!0}let i=this.generator.generateBehavioralRules("kilocode"),o=d(this.projectRoot,i.path);if(r.modePath=o,!n(o)||this.overwrite){let s=h(o);if(n(s)||m(s,{recursive:!0}),n(o)&&this.overwrite){let c=this.mergeExistingModes(o,i.content);a(o,c)}else a(o,i.content);r.modeInstalled=!0}}catch(t){r.success=!1,r.errors.push(`Kilo Code installation failed: ${f(t)}`)}return r}mergeExistingConfig(r,t){try{let e=JSON.parse(u(r,"utf-8")),i=JSON.parse(t);return e.mcpServers||(e.mcpServers={}),Object.assign(e.mcpServers,i.mcpServers),JSON.stringify(e,null,2)+`
|
|
3
3
|
`}catch{return t}}mergeExistingModes(r,t){try{let e=JSON.parse(u(r,"utf-8")),i=JSON.parse(t);if(!Array.isArray(e))return t;let o=e.filter(s=>s.slug!=="qe-engineer");return o.push(...i),JSON.stringify(o,null,2)+`
|
|
4
4
|
`}catch{return t}}};function x(g){return new l(g)}export{l as KiloCodeInstaller,x as createKiloCodeInstaller};
|
|
@@ -1,26 +1,26 @@
|
|
|
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,c as
|
|
3
|
-
`),!0)}installAgents(t){let e=[],s=[],n=
|
|
4
|
-
`),e.push(
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{a as b}from"./chunk-GX7MEHQ2.js";import{a as k,c as $}from"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";$();import{existsSync as u,mkdirSync as y,readdirSync as S,readFileSync as q,writeFileSync as v}from"fs";import{join as o,dirname as E}from"path";import{fileURLToPath as P}from"url";var R=P(import.meta.url),M=E(R),A=class{projectRoot;options;openCodeDir;constructor(t){this.projectRoot=t.projectRoot,this.options={installAgents:!0,installSkills:!0,installHooks:!0,installSteering:!0,overwrite:!1,...t},this.openCodeDir=this.findOpenCodeDir()}findOpenCodeDir(){let t=[o(M,"../../.opencode"),o(M,"../../assets/opencode")],e=b(import.meta.url);e&&(t.push(o(e,".opencode")),t.push(o(e,"assets/opencode"))),t.push(o(process.cwd(),"node_modules/agentic-qe/assets/opencode"),o(process.cwd(),"node_modules/agentic-qe/.opencode"));for(let n of t)if(u(n)&&(u(o(n,"agents"))||u(o(n,"skills"))))return n;let s=o(process.cwd(),".opencode");return u(s)&&(u(o(s,"agents"))||u(o(s,"skills")))?s:t[0]}async install(){let t=o(this.projectRoot,".kiro"),e={success:!0,agentsInstalled:[],skillsInstalled:[],hooksInstalled:[],steeringInstalled:[],mcpConfigured:!1,errors:[],targetDir:t};try{if(e.mcpConfigured=this.installMcpConfig(t),this.options.installAgents){let s=this.installAgents(t);e.agentsInstalled=s.installed,e.errors.push(...s.errors)}if(this.options.installSkills){let s=this.installSkills(t);e.skillsInstalled=s.installed,e.errors.push(...s.errors)}if(this.options.installHooks){let s=this.installHooks(t);e.hooksInstalled=s.installed,e.errors.push(...s.errors)}if(this.options.installSteering){let s=this.installSteering(t);e.steeringInstalled=s.installed,e.errors.push(...s.errors)}}catch(s){e.success=!1,e.errors.push(`Kiro installation failed: ${k(s)}`)}return e}installMcpConfig(t){let e=o(t,"settings"),s=o(e,"mcp.json");return u(s)&&!this.options.overwrite?!1:(y(e,{recursive:!0}),v(s,JSON.stringify({mcpServers:{"agentic-qe":{command:"npx",args:["-y","agentic-qe@latest","mcp"],env:{AQE_MEMORY_PATH:".agentic-qe/memory.db",AQE_V3_MODE:"true"},disabled:!1,autoApprove:["fleet_init","fleet_status","test_generate_enhanced","coverage_analyze_sublinear","quality_assess","memory_store","memory_query"]}}},null,2)+`
|
|
3
|
+
`),!0)}installAgents(t){let e=[],s=[],n=o(this.openCodeDir,"agents"),l=o(t,"agents");if(!u(n))return y(l,{recursive:!0}),this.writeDefaultQEAgent(l),e.push("qe-specialist"),{installed:e,errors:s};y(l,{recursive:!0});let i=S(n).filter(r=>r.endsWith(".yaml"));for(let r of i){let c=r.replace(".yaml",""),a=o(l,`${c}.json`);if(!(u(a)&&!this.options.overwrite))try{let p=q(o(n,r),"utf-8"),m=this.parseYamlAgent(p),d=this.convertToKiroAgent(m);v(a,JSON.stringify(d,null,2)+`
|
|
4
|
+
`),e.push(c)}catch(p){s.push(`Failed to convert agent ${r}: ${k(p)}`)}}let g=o(this.options.projectRoot,".claude","agents");if(u(g)){let r=["subagents","n8n","testing","analysis"];for(let c of r){let a=o(g,c);if(!u(a))continue;let p=S(a,{recursive:!1}).filter(m=>typeof m=="string"&&m.endsWith(".md")&&m!=="README.md");for(let m of p){let d=m.replace(".md",""),h=o(l,`${d}.json`);if(!(u(h)&&!this.options.overwrite))try{let f=q(o(a,m),"utf-8"),w=this.convertMdAgentToKiro(f,d);w&&(v(h,JSON.stringify(w,null,2)+`
|
|
5
5
|
`),e.push(d))}catch(f){s.push(`Failed to convert subagent ${m}: ${k(f)}`)}}}}return{installed:e,errors:s}}convertMdAgentToKiro(t,e){let s=t.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);if(!s)return null;let n=s[1],l=s[2].trim(),i=d=>{let h=new RegExp(`^${d}:\\s*"?([^"
|
|
6
|
-
]*)"?`,"m");return n.match(h)?.[1]?.trim()??""},g=i("name")||e,r=i("description")||`QE subagent: ${e}`,
|
|
7
|
-
`).map(
|
|
8
|
-
`).trim());let l=[],i=t.match(/^tools:\s*\n((?:\s+-\s+.*\n?)*)/m);if(i){let
|
|
9
|
-
`);for(let
|
|
10
|
-
`);for(let
|
|
11
|
-
`)}installSkills(t){let e=[],s=[],n=
|
|
6
|
+
]*)"?`,"m");return n.match(h)?.[1]?.trim()??""},g=i("name")||e,r=i("description")||`QE subagent: ${e}`,c=l.replace(/mcp:agentic-qe:/g,"@agentic-qe/"),a=i("model"),p=i("priority"),m="claude-sonnet-4";return a?a.includes("opus")?m="claude-opus-4":a.includes("haiku")&&(m="claude-haiku-4"):p==="critical"&&(m="claude-sonnet-4"),{name:g,description:r,model:m,prompt:c,mcpServers:{"agentic-qe":{command:"npx",args:["-y","agentic-qe@latest","mcp"]}},tools:["read","write","shell","@agentic-qe"],includeMcpJson:!0}}parseYamlAgent(t){let e=c=>{let a=new RegExp(`^${c}:\\s*(?:"([^"]*)"|(.*))`,"m"),p=t.match(a);return p?(p[1]??p[2]??"").trim():""},s="",n=t.match(/^systemPrompt:\s*\|\s*\n([\s\S]*?)(?=\n\w|\n$)/m);n&&(s=n[1].split(`
|
|
7
|
+
`).map(c=>c.replace(/^ {2}/,"")).join(`
|
|
8
|
+
`).trim());let l=[],i=t.match(/^tools:\s*\n((?:\s+-\s+.*\n?)*)/m);if(i){let c=i[1].split(`
|
|
9
|
+
`);for(let a of c){let p=a.match(/^\s+-\s+"?([^"\n]+)"?/);p&&l.push(p[1].trim())}}let g={},r=t.match(/^permissions:\s*\n((?:\s+.*\n?)*)/m);if(r){let c=r[1].split(`
|
|
10
|
+
`);for(let a of c){let p=a.match(/^\s+"?([^":]+)"?\s*:\s*(\w+)/);p&&(g[p[1].trim()]=p[2].trim())}}return{name:e("name"),description:e("description"),model:e("model")||void 0,systemPrompt:s||void 0,tools:l,permissions:g}}convertToKiroAgent(t){let e={bash:"shell",edit:"write",grep:"shell",glob:"shell"},s=[...new Set(t.tools?.map(a=>a.startsWith("mcp:agentic-qe:")?`@agentic-qe/${a.replace("mcp:agentic-qe:","")}`:e[a]??a)??[])],n=new Set;if(t.permissions)for(let[a,p]of Object.entries(t.permissions))p==="allow"&&(a.startsWith("mcp:agentic-qe:")?n.add(`@agentic-qe/${a.replace("mcp:agentic-qe:","")}`):n.add(e[a]??a));let l=[...n],i="claude-sonnet-4";t.model&&(t.model.includes("opus")?i="claude-opus-4":t.model.includes("haiku")&&(i="claude-haiku-4"));let r=(t.systemPrompt??`You are ${t.name}, a specialized QE agent in the Agentic QE v3 platform.`).replace(/mcp:agentic-qe:/g,"@agentic-qe/"),c={name:t.name,description:t.description,model:i,prompt:r,mcpServers:{"agentic-qe":{command:"npx",args:["-y","agentic-qe@latest","mcp"]}},tools:s.length>0?s:["read","write","shell","@agentic-qe"],includeMcpJson:!0};return l.length>0&&(c.allowedTools=l),c}writeDefaultQEAgent(t){let e={name:"qe-specialist",description:"Quality Engineering specialist powered by Agentic QE",model:"claude-sonnet-4",prompt:"You are a QE specialist. Use AQE tools for test generation, coverage analysis, and quality assessment. Always call fleet_init before other AQE tools.",mcpServers:{"agentic-qe":{command:"npx",args:["-y","agentic-qe@latest","mcp"]}},tools:["read","write","shell","@agentic-qe"],allowedTools:["read","write","shell","@agentic-qe/*"],includeMcpJson:!0,welcomeMessage:"QE Agent ready. I can generate tests, analyze coverage, and assess quality."};v(o(t,"qe-specialist.json"),JSON.stringify(e,null,2)+`
|
|
11
|
+
`)}installSkills(t){let e=[],s=[],n=o(t,"skills"),l=o(this.options.projectRoot,".claude","skills"),i=o(this.openCodeDir,"skills");y(n,{recursive:!0});let g=new Set;if(u(i))for(let r of S(i).filter(c=>c.endsWith(".yaml")))g.add(r.replace(".yaml",""));for(let r of g){let c=o(n,r),a=o(c,"SKILL.md");if(!(u(a)&&!this.options.overwrite))try{let p=this.findClaudeSkillSource(l,r);if(p){let m=this.convertClaudeSkillToKiro(p,r);y(c,{recursive:!0}),v(a,m,{mode:420}),e.push(r)}else{let m=o(i,`${r}.yaml`);if(u(m)){let d=q(m,"utf-8"),h=this.parseYamlSkill(d),f=this.convertToSkillMd(h);y(c,{recursive:!0}),v(a,f,{mode:420}),e.push(r)}}}catch(p){s.push(`Failed to convert skill ${r}: ${k(p)}`)}}return{installed:e,errors:s}}findClaudeSkillSource(t,e){if(!u(t))return null;let s=o(t,e,"SKILL.md");if(u(s))return q(s,"utf-8");let n=e.replace(/^qe-/,""),l=o(t,n,"SKILL.md");if(u(l))return q(l,"utf-8");if(e.startsWith("qcsd-")){let i=o(t,e,"SKILL.md");if(u(i))return q(i,"utf-8")}return null}convertClaudeSkillToKiro(t,e){let s=t.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);if(!s)return`---
|
|
12
12
|
inclusion: auto
|
|
13
13
|
name: ${e}
|
|
14
14
|
description: AQE skill
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
${t}`;let n=s[1],l=s[2],i=n.match(/^name:\s*(.+)/m),g=n.match(/^description:\s*"?([^"\n]*)"?/m),r=n.match(/^tags:\s*\[([^\]]*)\]/m),
|
|
17
|
+
${t}`;let n=s[1],l=s[2],i=n.match(/^name:\s*(.+)/m),g=n.match(/^description:\s*"?([^"\n]*)"?/m),r=n.match(/^tags:\s*\[([^\]]*)\]/m),c=g?.[1]?.trim()??"",a=r?.[1]?.trim()??"",p=["---","inclusion: auto",`name: ${e}`,`description: "${c}"`,a?`tags: [${a}]`:"","---"].filter(Boolean).join(`
|
|
18
18
|
`);return l=l.replace(/mcp:agentic-qe:/g,"@agentic-qe/"),`${p}
|
|
19
|
-
${l}`}parseYamlSkill(t){let e=g=>{let r=new RegExp(`^${g}:\\s*(?:"([^"]*)"|(.*))`,"m"),
|
|
19
|
+
${l}`}parseYamlSkill(t){let e=g=>{let r=new RegExp(`^${g}:\\s*(?:"([^"]*)"|(.*))`,"m"),c=t.match(r);return c?(c[1]??c[2]??"").trim():""},s=[],n=t.match(/^tags:\s*\[([^\]]*)\]/m);n&&s.push(...n[1].split(",").map(g=>g.trim().replace(/^"|"$/g,"")));let l=[],i=t.match(/^steps:\s*\n([\s\S]*)$/m);if(i){let g=i[1].split(/\n\s*-\s+name:\s*/);for(let r of g){if(!r.trim())continue;let c=r.match(/^([^\n]+)/);if(!c)continue;let p=c[1].trim().replace(/^-\s*name:\s*/,"").replace(/^["']|["']$/g,""),d=r.match(/description:\s*"([^"]*)"/)?.[1]?.trim()??"",h="",f=r.match(/prompt:\s*\|\s*\n([\s\S]*?)(?=\n\s+-\s+name:|\n\s*$|$)/);f&&(h=f[1].split(`
|
|
20
20
|
`).map(w=>w.replace(/^ {4,6}/,"")).join(`
|
|
21
21
|
`).trim()),l.push({name:p,description:d,prompt:h})}}return{name:e("name"),description:e("description"),minModelTier:e("minModelTier")||void 0,tags:s,steps:l}}convertToSkillMd(t){let e=[];if(e.push("---"),e.push("inclusion: auto"),e.push(`name: ${t.name}`),e.push(`description: ${t.description}`),e.push("---"),e.push(""),e.push(`# ${t.name}`),e.push(""),e.push(t.description),e.push(""),t.tags&&t.tags.length>0&&(e.push(`**Tags:** ${t.tags.join(", ")}`),e.push("")),e.push("## Prerequisites"),e.push(""),e.push("This skill requires the AQE MCP server. Ensure it is configured in `.kiro/settings/mcp.json`."),e.push(""),t.steps&&t.steps.length>0){e.push("## Steps"),e.push("");for(let s=0;s<t.steps.length;s++){let n=t.steps[s],l=n.name.replace(/^[-\d]+\s*/,"").replace(/-/g," ").replace(/\b\w/g,g=>g.toUpperCase());e.push(`### ${s+1}. ${l}`),e.push("");let i=n.description&&n.description.length>n.name.length?n.description:n.prompt&&n.prompt.length>n.name.length?n.prompt:n.description||n.prompt||"";i&&(e.push(i),e.push(""))}}return e.push("## MCP Tools"),e.push(""),e.push("Use AQE tools via the `@agentic-qe` MCP server:"),e.push(""),e.push("- `@agentic-qe/fleet_init` \u2014 Initialize the QE fleet"),e.push("- `@agentic-qe/test_generate_enhanced` \u2014 Generate tests"),e.push("- `@agentic-qe/coverage_analyze_sublinear` \u2014 Analyze coverage"),e.push("- `@agentic-qe/quality_assess` \u2014 Assess quality gates"),e.push("- `@agentic-qe/memory_store` \u2014 Store learned patterns"),e.push("- `@agentic-qe/memory_query` \u2014 Query past patterns"),e.push(""),e.join(`
|
|
22
|
-
`)}installHooks(t){let e=[],s=[],n=
|
|
23
|
-
`),e.push(i.filename)}catch(r){s.push(`Failed to install hook ${i.filename}: ${k(r)}`)}}return{installed:e,errors:s}}getKiroHooks(){return[{filename:"aqe-test-updater.kiro.hook",config:{name:"AQE Test Updater",description:"Auto-generate or update tests when source files change",version:"1",when:{type:"fileEdited",patterns:["src/**/*.ts","src/**/*.js","!**/*.test.*","!**/*.spec.*","!**/node_modules/**"]},then:{type:"askAgent",prompt:"A source file was edited. Use @agentic-qe/test_generate_enhanced to check if corresponding tests need updating. Only update tests if the public API changed."}}},{filename:"aqe-coverage-check.kiro.hook",config:{name:"AQE Coverage Check",description:"Run coverage analysis after test files are created or edited",version:"1",when:{type:"fileEdited",patterns:["**/*.test.ts","**/*.spec.ts","**/*.test.js","**/*.spec.js"]},then:{type:"askAgent",prompt:"A test file was modified. Use @agentic-qe/coverage_analyze_sublinear to check if coverage targets are still met. Report any gaps."}}},{filename:"aqe-spec-quality-gate.kiro.hook",config:{name:"AQE Spec Quality Gate",description:"Run quality assessment after each spec task completes",version:"1",when:{type:"postSpecTask"},then:{type:"askAgent",prompt:"A spec task just completed. Use @agentic-qe/quality_assess on the files changed by this task. If coverage drops below 80% or quality gates fail, flag it before moving to the next task."}}},{filename:"aqe-security-scan.kiro.hook",config:{name:"AQE Security Scan",description:"Run security scan when security-sensitive files change",version:"1",when:{type:"fileEdited",patterns:["**/auth/**","**/security/**","**/middleware/**","**/*credential*","**/*secret*"]},then:{type:"askAgent",prompt:"A security-sensitive file was modified. Use @agentic-qe/security_scan_comprehensive to check for vulnerabilities. Flag any OWASP Top 10 issues."}}},{filename:"aqe-pre-commit-quality.kiro.hook",config:{name:"AQE Pre-Commit Quality",description:"Run quality assessment before agent stops to ensure standards are met",version:"1",when:{type:"agentStop"},then:{type:"askAgent",prompt:"Before finishing, use @agentic-qe/quality_assess to verify all modified files meet quality standards. Store the result with @agentic-qe/memory_store for learning."}}}]}installSteering(t){let e=[],s=[],n=
|
|
22
|
+
`)}installHooks(t){let e=[],s=[],n=o(t,"hooks");y(n,{recursive:!0});let l=this.getKiroHooks();for(let i of l){let g=o(n,i.filename);if(!(u(g)&&!this.options.overwrite))try{v(g,JSON.stringify(i.config,null,2)+`
|
|
23
|
+
`),e.push(i.filename)}catch(r){s.push(`Failed to install hook ${i.filename}: ${k(r)}`)}}return{installed:e,errors:s}}getKiroHooks(){return[{filename:"aqe-test-updater.kiro.hook",config:{name:"AQE Test Updater",description:"Auto-generate or update tests when source files change",version:"1",when:{type:"fileEdited",patterns:["src/**/*.ts","src/**/*.js","!**/*.test.*","!**/*.spec.*","!**/node_modules/**"]},then:{type:"askAgent",prompt:"A source file was edited. Use @agentic-qe/test_generate_enhanced to check if corresponding tests need updating. Only update tests if the public API changed."}}},{filename:"aqe-coverage-check.kiro.hook",config:{name:"AQE Coverage Check",description:"Run coverage analysis after test files are created or edited",version:"1",when:{type:"fileEdited",patterns:["**/*.test.ts","**/*.spec.ts","**/*.test.js","**/*.spec.js"]},then:{type:"askAgent",prompt:"A test file was modified. Use @agentic-qe/coverage_analyze_sublinear to check if coverage targets are still met. Report any gaps."}}},{filename:"aqe-spec-quality-gate.kiro.hook",config:{name:"AQE Spec Quality Gate",description:"Run quality assessment after each spec task completes",version:"1",when:{type:"postSpecTask"},then:{type:"askAgent",prompt:"A spec task just completed. Use @agentic-qe/quality_assess on the files changed by this task. If coverage drops below 80% or quality gates fail, flag it before moving to the next task."}}},{filename:"aqe-security-scan.kiro.hook",config:{name:"AQE Security Scan",description:"Run security scan when security-sensitive files change",version:"1",when:{type:"fileEdited",patterns:["**/auth/**","**/security/**","**/middleware/**","**/*credential*","**/*secret*"]},then:{type:"askAgent",prompt:"A security-sensitive file was modified. Use @agentic-qe/security_scan_comprehensive to check for vulnerabilities. Flag any OWASP Top 10 issues."}}},{filename:"aqe-pre-commit-quality.kiro.hook",config:{name:"AQE Pre-Commit Quality",description:"Run quality assessment before agent stops to ensure standards are met",version:"1",when:{type:"agentStop"},then:{type:"askAgent",prompt:"Before finishing, use @agentic-qe/quality_assess to verify all modified files meet quality standards. Store the result with @agentic-qe/memory_store for learning."}}}]}installSteering(t){let e=[],s=[],n=o(t,"steering");y(n,{recursive:!0});let l=this.getSteeringFiles();for(let i of l){let g=o(n,i.filename);if(!(u(g)&&!this.options.overwrite))try{v(g,i.content),e.push(i.filename)}catch(r){s.push(`Failed to install steering file ${i.filename}: ${k(r)}`)}}return{installed:e,errors:s}}getSteeringFiles(){return[{filename:"qe-standards.md",content:`---
|
|
24
24
|
inclusion: auto
|
|
25
25
|
name: qe-standards
|
|
26
26
|
description: Quality engineering standards and practices. Triggered when discussing tests, coverage, quality gates, or code review.
|
|
@@ -71,4 +71,4 @@ fileMatchPattern: "**/*.test.{ts,js,tsx,jsx}"
|
|
|
71
71
|
- Mock external dependencies at system boundaries
|
|
72
72
|
- Prefer dependency injection over module mocking
|
|
73
73
|
- Never mock the system under test
|
|
74
|
-
`}]}};function
|
|
74
|
+
`}]}};function K(_){return new A(_)}export{A as KiroInstaller,K as createKiroInstaller};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
2
|
+
import{g as a}from"./chunk-O6QAOPUA.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-C2HGOUEB.js";export{a as KnowledgeGraphService};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
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.
|
|
3
|
-
import{a as Y}from"./chunk-
|
|
2
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.4");process.exit(0)}
|
|
3
|
+
import{a as Y}from"./chunk-NS4CCCTZ.js";import{b as K}from"./chunk-MR5I6UR2.js";import{g as J}from"./chunk-NRH2QE4X.js";import"./chunk-VBXJBXMG.js";import"./chunk-HKTNFHWI.js";import"./chunk-EZTUUOVI.js";import{i as N}from"./chunk-UJLSCJJS.js";import"./chunk-RRQEIGLS.js";import"./chunk-27P4VTCY.js";import{a as W}from"./chunk-C567IO5M.js";import"./chunk-MUX762XZ.js";import"./chunk-Q6FSXNQP.js";import"./chunk-3RHIPCBG.js";import{f as O,o as H}from"./chunk-G6RTCJFY.js";import"./chunk-7ZXNJT4Q.js";import"./chunk-MDFXPCBO.js";import"./chunk-RPYUKEAH.js";import{b as B,d as de}from"./chunk-4GJAYXB7.js";import"./chunk-VBYREHZI.js";import"./chunk-F6AU2MAZ.js";import"./chunk-G72E5DL3.js";import{a as x,b as V}from"./chunk-RN3SN4ZC.js";import"./chunk-XB5HXTL4.js";import"./chunk-ZQSEPDIJ.js";import"./chunk-P3EOWBME.js";import"./chunk-KELYPHMV.js";import"./chunk-Q2ZYUIS2.js";import"./chunk-OZC42UMD.js";import"./chunk-RE6XD6RI.js";import"./chunk-MN2MYLVW.js";import"./chunk-C2HGOUEB.js";H();de();import{Command as fe}from"commander";import o from"chalk";import b from"node:path";import{existsSync as w,writeFileSync as re,readFileSync as Q,mkdirSync as se,copyFileSync as F,renameSync as ae}from"node:fs";import{stat as q,unlink as R}from"node:fs/promises";V();H();import E from"chalk";import M from"node:path";import{createReadStream as X,createWriteStream as Z}from"node:fs";import{createGzip as ge,createGunzip as pe}from"node:zlib";import{pipeline as ee}from"node:stream/promises";V();var P={reasoningBank:null,initialized:!1};async function D(){if(P.initialized&&P.reasoningBank)return P.reasoningBank;let s=O(),t=M.join(s,".agentic-qe"),e=new W({sqlite:{path:M.join(t,"memory.db"),walMode:!0,poolSize:3,busyTimeout:5e3},enableFallback:!0,defaultNamespace:"qe-patterns"});await e.initialize(),P.reasoningBank=J(e,void 0,{enableLearning:!0,enableGuidance:!0,enableRouting:!0,embeddingDimension:384,useONNXEmbeddings:!0}),await P.reasoningBank.initialize();try{let{getSharedRvfDualWriter:n}=await import("./shared-rvf-dual-writer-27L4R5WK.js"),d=await n();d&&P.reasoningBank.setRvfDualWriter(d)}catch(n){process.env.DEBUG&&console.debug("[learning] RVF wiring skipped:",n instanceof Error?n.message:n)}return P.initialized=!0,P.reasoningBank}function S(s){console.log(JSON.stringify(s,null,2))}function C(s){console.log(E.green("\u2713"),s)}function v(s){console.error(E.red("\u2717"),s)}function T(s){console.log(E.blue("\u2139"),s)}function te(s){let{current:t,topDomains:e}=s,n={tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502",ml:"\u251C",mr:"\u2524"},d=55,c=n.h.repeat(d-2);console.log(""),console.log(`${n.tl}${c}${n.tr}`),console.log(`${n.v}${me("AQE LEARNING DASHBOARD",d-2)}${n.v}`),console.log(`${n.ml}${c}${n.mr}`);let m=t.patternsCreatedToday>0?E.green(` (+${t.patternsCreatedToday} today)`):"";console.log(`${n.v} Patterns: ${k(String(t.totalPatterns)+m,32)}${n.v}`);let p=t.experiencesToday>0?E.green(` (+${t.experiencesToday} today)`):"";console.log(`${n.v} Experiences: ${k(String(t.totalExperiences)+p,32)}${n.v}`),console.log(`${n.v} Q-Values: ${k(String(t.totalQValues),32)}${n.v}`);let i=t.avgReward.toFixed(2),l=t.avgRewardDelta>=0?E.green(`(\u2191 ${Math.abs(t.avgRewardDelta).toFixed(2)} from last week)`):E.red(`(\u2193 ${Math.abs(t.avgRewardDelta).toFixed(2)} from last week)`);console.log(`${n.v} Avg Reward: ${k(`${i} ${l}`,32)}${n.v}`);let r=(t.successRate*100).toFixed(1);if(console.log(`${n.v} Success Rate: ${k(`${r}%`,32)}${n.v}`),console.log(`${n.v} Short-term: ${k(String(t.shortTermPatterns),32)}${n.v}`),console.log(`${n.v} Long-term: ${k(String(t.longTermPatterns),32)}${n.v}`),console.log(`${n.v}${" ".repeat(d-2)}${n.v}`),console.log(`${n.v} ${E.bold("Domain Coverage:")}${" ".repeat(d-19)}${n.v}`),e.length===0)console.log(`${n.v} ${E.dim("No patterns yet")}${" ".repeat(d-19)}${n.v}`);else{let g=Math.max(...e.map(u=>u.count),1),f=14;for(let{domain:u,count:y}of e){let $=Math.round(y/g*f),j=f-$,ie=E.green("\u2588".repeat($))+E.dim("\u2591".repeat(j)),ce=k(u,20),le=ue(String(y),3);console.log(`${n.v} ${ce} ${ie} ${le} patterns ${n.v}`)}let a=new Set(e.map(u=>u.domain)),h=N.filter(u=>!a.has(u)).slice(0,3);for(let u of h){let y=E.dim("\u2591".repeat(f)),$=k(u,20);console.log(`${n.v} ${$} ${y} 0 patterns ${n.v}`)}}console.log(`${n.bl}${c}${n.br}`),console.log("")}function me(s,t){let e=L(s),n=Math.max(0,t-e.length),d=Math.floor(n/2),c=n-d;return" ".repeat(d)+s+" ".repeat(c)}function k(s,t){let e=L(s),n=Math.max(0,t-e.length);return s+" ".repeat(n)}function ue(s,t){let e=L(s),n=Math.max(0,t-e.length);return" ".repeat(n)+s}function L(s){return s.replace(/\x1b\[[0-9;]*m/g,"")}function A(){let s=O();return M.join(s,".agentic-qe","memory.db")}async function z(s,t){let e=t||`${s}.gz`;return await ee(X(s),ge(),Z(e)),e}async function U(s,t){await ee(X(s),pe(),Z(t))}async function I(s){try{let t=x(s,{readonly:!0}),e=t.prepare("PRAGMA integrity_check").get();return t.close(),e.integrity_check==="ok"?{valid:!0,message:"Database integrity verified"}:{valid:!1,message:`Integrity check failed: ${e.integrity_check}`}}catch(t){return{valid:!1,message:`Failed to verify: ${t instanceof Error?t.message:"unknown error"}`}}}async function _(s){try{let t=x(s,{readonly:!0});if(!t.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='schema_version'").get())return t.close(),0;let n=t.prepare("SELECT version FROM schema_version WHERE id = 1").get();return t.close(),n?.version??0}catch{return 0}}var G="3.1.0",ne={generate:"test-generation","test-generation":"test-generation",analyze:"coverage-analysis",coverage:"coverage-analysis","coverage-analysis":"coverage-analysis",run:"test-execution","test-execution":"test-execution",report:"quality-assessment",quality:"quality-assessment","quality-analysis":"quality-assessment",security:"security-compliance",sast:"security-compliance",owasp:"security-compliance",secrets:"security-compliance",audit:"security-compliance",recommend:"defect-intelligence",predict:"defect-intelligence","complexity-analysis":"code-intelligence","code-analysis":"code-intelligence",stabilize:"chaos-resilience",flaky:"chaos-resilience",quarantine:"chaos-resilience",retry:"chaos-resilience",stress:"chaos-resilience",load:"chaos-resilience",endurance:"chaos-resilience",baseline:"chaos-resilience"},oe={generate:"test-template","test-generation":"test-template",analyze:"coverage-strategy",coverage:"coverage-strategy","coverage-analysis":"coverage-strategy",run:"test-template","test-execution":"test-template",report:"assertion-pattern",quality:"assertion-pattern","quality-analysis":"assertion-pattern",security:"assertion-pattern",sast:"assertion-pattern",owasp:"assertion-pattern",secrets:"assertion-pattern",audit:"assertion-pattern",recommend:"assertion-pattern",predict:"assertion-pattern","complexity-analysis":"assertion-pattern","code-analysis":"assertion-pattern",stabilize:"flaky-fix",flaky:"flaky-fix",quarantine:"flaky-fix",retry:"flaky-fix",stress:"perf-benchmark",load:"perf-benchmark",endurance:"perf-benchmark",baseline:"perf-benchmark",mock:"mock-pattern",dependency:"mock-pattern"};function at(){let s=new fe("learning").description("AQE self-learning system management (standalone, no claude-flow required)").addHelpText("after",`
|
|
4
4
|
Examples:
|
|
5
5
|
# Check learning system status
|
|
6
6
|
aqe learning stats
|
|
@@ -82,7 +82,7 @@ Table Counts:`));for(let[p,i]of Object.entries(m))console.log(` ${p}: ${i}`)}co
|
|
|
82
82
|
Dry run - no changes made`)),console.log(` Would import: ${f}
|
|
83
83
|
Would update: ${h}
|
|
84
84
|
Would skip: ${a}`)):(console.log(o.green(`
|
|
85
|
-
Imported: ${i}`)),console.log(o.blue(` Updated: ${r}`)),l>0&&console.log(o.yellow(` Skipped: ${l}`)),g.length>0&&console.log(o.red(` Errors: ${g.length}`))),console.log(""));return}catch(e){throw v(`import-merge failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Oe(s){s.command("dream").description("Run dream cycles for pattern discovery via spreading activation").option("--duration <ms>","Duration of dream cycle in milliseconds","30000").option("--quick","Run a quick 5-second dream cycle").option("--full","Run a full 30-second dream cycle").option("--status","Show dream system status").option("--history","Show past dream cycles").option("--insights","Show pending insights from previous cycles").option("--apply <id>","Apply a specific insight by ID").option("--limit <n>","Maximum results for history/insights","20").option("--min-patterns <n>","Minimum patterns required to dream","10").option("--json","Output as JSON").action(async t=>{try{let{createDreamEngine:e}=await import("./dream-
|
|
85
|
+
Imported: ${i}`)),console.log(o.blue(` Updated: ${r}`)),l>0&&console.log(o.yellow(` Skipped: ${l}`)),g.length>0&&console.log(o.red(` Errors: ${g.length}`))),console.log(""));return}catch(e){throw v(`import-merge failed: ${e instanceof Error?e.message:"unknown"}`),e}})}function Oe(s){s.command("dream").description("Run dream cycles for pattern discovery via spreading activation").option("--duration <ms>","Duration of dream cycle in milliseconds","30000").option("--quick","Run a quick 5-second dream cycle").option("--full","Run a full 30-second dream cycle").option("--status","Show dream system status").option("--history","Show past dream cycles").option("--insights","Show pending insights from previous cycles").option("--apply <id>","Apply a specific insight by ID").option("--limit <n>","Maximum results for history/insights","20").option("--min-patterns <n>","Minimum patterns required to dream","10").option("--json","Output as JSON").action(async t=>{try{let{createDreamEngine:e}=await import("./dream-NGRDMOTE.js");if(t.status){let r=e();await r.initialize();let g=r.isDreaming(),f=await r.getDreamHistory(100),a=await r.getPendingInsights(100),h=f.reduce((y,$)=>y+$.insightsGenerated,0),u=f[0];if(t.json)S({isDreaming:g,totalCycles:f.length,totalInsights:h,pendingInsights:a.length,lastDreamTime:u?.startTime.toISOString()||null});else{if(console.log(o.bold(`
|
|
86
86
|
\u{1F319} Dream System Status
|
|
87
87
|
`)),console.log(` Currently dreaming: ${g?o.green("Yes"):o.dim("No")}`),console.log(` Total dream cycles: ${f.length}`),console.log(` Total insights generated: ${h}`),console.log(` Pending insights: ${a.length}`),console.log(` Last dream: ${u?u.startTime.toISOString():o.dim("never")}`),f.length>0){console.log(o.bold(`
|
|
88
88
|
Recent cycles:`));for(let y of f.slice(0,3)){let $=y.status==="completed"?o.green(y.status):o.yellow(y.status);console.log(` ${y.id.slice(0,8)} | ${$} | ${y.durationMs||0}ms | ${y.insightsGenerated} insights`)}}console.log("")}await r.close();return}if(t.history){let r=parseInt(t.limit,10),g=e();await g.initialize();let f=await g.getDreamHistory(r);if(t.json)S(f.map(a=>({id:a.id,startTime:a.startTime.toISOString(),endTime:a.endTime?.toISOString(),durationMs:a.durationMs,status:a.status,conceptsProcessed:a.conceptsProcessed,associationsFound:a.associationsFound,insightsGenerated:a.insightsGenerated})));else{if(console.log(o.bold(`
|