agentic-qe 3.9.0 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +43 -0
- package/dist/audit/witness-chain.d.ts +1 -1
- package/dist/cli/bundle.js +8 -8
- package/dist/cli/chunks/adapter-53WBPKXU.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-PQYB7VRU.js → agent-booster-wasm-AKAOHSCX.js} +2 -2
- package/dist/cli/chunks/{agent-handler-QDAB5NQS.js → agent-handler-MTGPOUVP.js} +2 -2
- package/dist/cli/chunks/agent-memory-branch-UFPKWUFK.js +2 -0
- package/dist/cli/chunks/aqe-learning-engine-MV7NGY24.js +2 -0
- package/dist/cli/chunks/{audit-S7JUYYVP.js → audit-VBEZHNHO.js} +2 -2
- package/dist/cli/chunks/base-DZVGMQN2.js +2 -0
- package/dist/cli/chunks/better-sqlite3-IRPHIXRU.js +2 -0
- package/dist/cli/chunks/brain-handler-7EO3FFRZ.js +68 -0
- package/dist/cli/chunks/{branch-enumerator-XK4V5W7L.js → branch-enumerator-MZRGP35N.js} +2 -2
- package/dist/cli/chunks/{browser-PALA5PL3.js → browser-VSIWQE7J.js} +2 -2
- package/dist/cli/chunks/browser-workflow-3J5YNMEI.js +2 -0
- package/dist/cli/chunks/chunk-25LFUL2K.js +79 -0
- package/dist/cli/chunks/{chunk-LHJQD2VU.js → chunk-2EC5Z2J4.js} +68 -68
- package/dist/cli/chunks/{chunk-4YOMLWEK.js → chunk-2VVV73PW.js} +1 -1
- package/dist/cli/chunks/{chunk-BPWXXEH2.js → chunk-2WBCYSUN.js} +128 -128
- package/dist/cli/chunks/{chunk-X3KI6JOY.js → chunk-2Z2TFEOL.js} +2 -2
- package/dist/cli/chunks/chunk-34U7JDCN.js +2 -0
- package/dist/cli/chunks/{chunk-24FKIJNC.js → chunk-3GZKAORV.js} +2 -2
- package/dist/cli/chunks/{chunk-72WOAVK6.js → chunk-4D2ZG2QO.js} +1 -1
- package/dist/cli/chunks/{chunk-B36CDR4U.js → chunk-4DAOZQ3V.js} +2 -2
- package/dist/cli/chunks/{chunk-CL6POIX4.js → chunk-4FMHBBG5.js} +1 -1
- package/dist/cli/chunks/{chunk-BXAXGEFC.js → chunk-4FT3PND7.js} +5 -5
- package/dist/cli/chunks/{chunk-IGJPMN4I.js → chunk-4LA7IW3V.js} +1 -1
- package/dist/cli/chunks/{chunk-JRYGQO2W.js → chunk-4PKXIBX2.js} +1 -1
- package/dist/cli/chunks/{chunk-YPFOCNOE.js → chunk-4UH25U4O.js} +1 -1
- package/dist/cli/chunks/{chunk-U5RN7YQW.js → chunk-4Z27TRQF.js} +2 -2
- package/dist/cli/chunks/{chunk-YW2THB5Q.js → chunk-563PJBDM.js} +2 -2
- package/dist/cli/chunks/{chunk-BDIEMZ22.js → chunk-56IWS2KY.js} +2 -2
- package/dist/cli/chunks/chunk-5AUKULWO.js +2 -0
- package/dist/cli/chunks/{chunk-VSVXUTJN.js → chunk-5L6AU3QK.js} +2 -2
- package/dist/cli/chunks/{chunk-RTGGL7D7.js → chunk-5RL66XSH.js} +2 -2
- package/dist/cli/chunks/{chunk-YANUP2RO.js → chunk-65M7C6SH.js} +1 -1
- package/dist/cli/chunks/{chunk-ESVQ6MEB.js → chunk-6SOJVEU7.js} +2 -2
- package/dist/cli/chunks/{chunk-UFUVUO3J.js → chunk-727BDQ3K.js} +2 -2
- package/dist/cli/chunks/{chunk-TLHP5EII.js → chunk-7NOIIC7G.js} +1 -1
- package/dist/cli/chunks/{chunk-N4TL73TH.js → chunk-7SLN2JGP.js} +8 -8
- package/dist/cli/chunks/{chunk-NZ2VCPN4.js → chunk-AA33R5U4.js} +2 -2
- package/dist/cli/chunks/{chunk-Y7BHKZFJ.js → chunk-AKSJQ6B3.js} +2 -2
- package/dist/cli/chunks/{chunk-3ZOONQG6.js → chunk-BIVIPF4O.js} +1 -1
- package/dist/cli/chunks/{chunk-VOS4NQSF.js → chunk-BKCTNRC5.js} +2 -2
- package/dist/cli/chunks/{chunk-B6LLWYQ6.js → chunk-BOH22AKC.js} +2 -2
- package/dist/cli/chunks/{chunk-OI5NGQO2.js → chunk-BY47GV4T.js} +2 -2
- package/dist/cli/chunks/chunk-CCYMJKWX.js +2 -0
- package/dist/cli/chunks/chunk-CL3K5EJK.js +2 -0
- package/dist/cli/chunks/{chunk-GPQ57KA4.js → chunk-CQBSGYRA.js} +2 -2
- package/dist/cli/chunks/{chunk-MZOFWJTM.js → chunk-CQP7ZFME.js} +2 -2
- package/dist/cli/chunks/chunk-DBE34QES.js +2 -0
- package/dist/cli/chunks/chunk-DHE66JRR.js +12 -0
- package/dist/cli/chunks/{chunk-2BZFNEN2.js → chunk-DNLMZTE2.js} +1 -1
- package/dist/cli/chunks/{chunk-XLRQYLWW.js → chunk-DSE57A5N.js} +1 -1
- package/dist/cli/chunks/{chunk-SUSEVMZT.js → chunk-E25S5E2D.js} +1 -1
- package/dist/cli/chunks/{chunk-FEKY7T6Q.js → chunk-FAXVVLPL.js} +2 -2
- package/dist/cli/chunks/chunk-FRJLP7IB.js +2 -0
- package/dist/cli/chunks/{chunk-CS2KS7LP.js → chunk-FUIHWBVF.js} +1 -1
- package/dist/cli/chunks/{chunk-LNQIY6BP.js → chunk-GCMVJS5X.js} +2 -2
- package/dist/cli/chunks/{chunk-XT2V2322.js → chunk-GITD7SRQ.js} +2 -2
- package/dist/cli/chunks/{chunk-JJO7Y4H3.js → chunk-GK72GUHA.js} +3 -3
- package/dist/cli/chunks/{chunk-6EOS7KX2.js → chunk-GPLERTZU.js} +2 -2
- package/dist/cli/chunks/{chunk-2E5NQNSU.js → chunk-HW4ISY5B.js} +11 -11
- package/dist/cli/chunks/{chunk-HRO6OZQD.js → chunk-ICDXWIFZ.js} +1 -1
- package/dist/cli/chunks/{chunk-3NZLZHJI.js → chunk-J4BS6IWE.js} +1 -1
- package/dist/cli/chunks/{chunk-4VUPRTVX.js → chunk-JOVINE23.js} +2 -2
- package/dist/cli/chunks/chunk-JV7LX6OT.js +95 -0
- package/dist/cli/chunks/{chunk-6SVX4DJC.js → chunk-KBA7FBK3.js} +3 -3
- package/dist/cli/chunks/chunk-KDDZYXP4.js +2 -0
- package/dist/cli/chunks/{chunk-GAOJV3OX.js → chunk-KNVAAVHH.js} +2 -2
- package/dist/cli/chunks/{chunk-CWFB6BSA.js → chunk-KQTJ2YLI.js} +4 -4
- package/dist/cli/chunks/{chunk-FGA7VIFR.js → chunk-KTYUCZEM.js} +3 -3
- package/dist/cli/chunks/{chunk-RU5WAHB7.js → chunk-KZTO5EVM.js} +2 -2
- package/dist/cli/chunks/{chunk-IFNIIK34.js → chunk-KZUJBZ7B.js} +3 -3
- package/dist/cli/chunks/{chunk-GKNNSCLC.js → chunk-L5WZUPZF.js} +2 -2
- package/dist/cli/chunks/{chunk-MDUHYUHF.js → chunk-L5YEPSDU.js} +2 -2
- package/dist/cli/chunks/chunk-LCAA6H4J.js +2 -0
- package/dist/cli/chunks/{chunk-XRE2HCWG.js → chunk-LMMEUVE5.js} +1 -1
- package/dist/cli/chunks/{chunk-7VDBAVTY.js → chunk-MN742FIH.js} +2 -2
- package/dist/cli/chunks/chunk-MY4LMIG7.js +180 -0
- package/dist/cli/chunks/{chunk-WGMPEW2T.js → chunk-N3F3CX4V.js} +2 -2
- package/dist/cli/chunks/{chunk-YVA65UZL.js → chunk-NJY7ZA77.js} +1 -1
- package/dist/cli/chunks/{chunk-3IHG3WOY.js → chunk-NM6TIEJ3.js} +3 -3
- package/dist/cli/chunks/{chunk-KP5NUODU.js → chunk-NRCKGXJJ.js} +1 -1
- package/dist/cli/chunks/{chunk-3ADGXLTM.js → chunk-PFNFC43Q.js} +1 -1
- package/dist/cli/chunks/{chunk-4VBTXZRM.js → chunk-PJFLO37I.js} +2 -2
- package/dist/cli/chunks/{chunk-XIBDETCS.js → chunk-PNL5G6TE.js} +2 -2
- package/dist/cli/chunks/{chunk-AFLLQ5PP.js → chunk-Q4A72ZTV.js} +2 -2
- package/dist/cli/chunks/{chunk-EHDQJQ6Y.js → chunk-QEQTC4WQ.js} +5 -5
- package/dist/cli/chunks/{chunk-IAV2JMIX.js → chunk-QIH3E775.js} +2 -2
- package/dist/cli/chunks/{chunk-GRUUQAR6.js → chunk-QNBQBSAI.js} +2 -2
- package/dist/cli/chunks/{chunk-WIEC7VKK.js → chunk-QODE4LM6.js} +2 -2
- package/dist/cli/chunks/{chunk-HY6PMO5W.js → chunk-QPRVX4H2.js} +2 -2
- package/dist/cli/chunks/chunk-RC5CPXON.js +2 -0
- package/dist/cli/chunks/{chunk-TWUWL5EJ.js → chunk-RITN3XR4.js} +2 -2
- package/dist/cli/chunks/{chunk-WBQSXPBI.js → chunk-RJROC5M3.js} +2 -2
- package/dist/cli/chunks/chunk-RQGYJK7H.js +2 -0
- package/dist/cli/chunks/{chunk-XO6PVK2P.js → chunk-S3RDH5CI.js} +2 -2
- package/dist/cli/chunks/{chunk-3IUNFTIF.js → chunk-SCF7NRVE.js} +1 -1
- package/dist/cli/chunks/chunk-SDTVHR63.js +2 -0
- package/dist/cli/chunks/chunk-SGAW2WLI.js +65 -0
- package/dist/cli/chunks/{chunk-N2NS2PHA.js → chunk-SNVM4YJS.js} +2 -2
- package/dist/cli/chunks/{chunk-JXM26HEE.js → chunk-SRRFWTNF.js} +2 -2
- package/dist/cli/chunks/{chunk-UQHYFOBX.js → chunk-STE42EMB.js} +2 -2
- package/dist/cli/chunks/{chunk-WJ3DLOXF.js → chunk-T5GV6UIO.js} +2 -2
- package/dist/cli/chunks/{chunk-4YS3IJ45.js → chunk-TKF447CW.js} +1 -1
- package/dist/cli/chunks/{chunk-ZAPS3UGQ.js → chunk-TTOE336G.js} +3 -3
- package/dist/cli/chunks/{chunk-YAGODYIG.js → chunk-UKDOMLBI.js} +3 -3
- package/dist/cli/chunks/{chunk-JBANAPWG.js → chunk-V6XBAZNH.js} +1 -1
- package/dist/cli/chunks/{chunk-BULKFVYX.js → chunk-VHVWAXCF.js} +1 -1
- package/dist/cli/chunks/{chunk-5SKGFSKD.js → chunk-VL7YOOC2.js} +2 -2
- package/dist/cli/chunks/{chunk-AKE543X2.js → chunk-VUAO4VFC.js} +2 -2
- package/dist/cli/chunks/{chunk-7R6YMLVS.js → chunk-WG4GHAML.js} +2 -2
- package/dist/cli/chunks/{chunk-BTREG4IW.js → chunk-WXWY2GAF.js} +2 -2
- package/dist/cli/chunks/chunk-X35GP7TR.js +1 -0
- package/dist/cli/chunks/chunk-X6LCMOGC.js +2 -0
- package/dist/cli/chunks/{chunk-BGXNSCXX.js → chunk-XFMKJ3UD.js} +1 -1
- package/dist/cli/chunks/{chunk-BLBRY5UD.js → chunk-XH53ARZD.js} +2 -2
- package/dist/cli/chunks/chunk-XIBVVZGB.js +2 -0
- package/dist/cli/chunks/chunk-XYJL6DKI.js +2 -0
- package/dist/cli/chunks/{chunk-5T2ZQWKF.js → chunk-Y6O7CDLI.js} +2 -2
- package/dist/cli/chunks/{chunk-4I2IOUS4.js → chunk-YXCU4CJX.js} +1 -1
- package/dist/cli/chunks/{chunk-YR6ZZGH7.js → chunk-Z2IKNC5M.js} +1 -1
- package/dist/cli/chunks/{chunk-OLHKGP35.js → chunk-Z54EO6E6.js} +2 -2
- package/dist/cli/chunks/{chunk-ZDATDCYN.js → chunk-Z5HXGVXZ.js} +1 -1
- package/dist/cli/chunks/{ci-J374KDLI.js → ci-2BCOBWFG.js} +2 -2
- package/dist/cli/chunks/ci-output-FB4OJHAC.js +2 -0
- package/dist/cli/chunks/{claude-flow-setup-245JLJCN.js → claude-flow-setup-NEEFZTMB.js} +2 -2
- package/dist/cli/chunks/client-EF555KYW.js +2 -0
- package/dist/cli/chunks/{cline-installer-LBA2M5N3.js → cline-installer-ODO2PS4K.js} +2 -2
- package/dist/cli/chunks/{code-U4N4WONM.js → code-NSOF62VE.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-A57Z6BO4.js → code-index-extractor-YQL5XN52.js} +2 -2
- package/dist/cli/chunks/{codex-installer-UXMK2N4T.js → codex-installer-SPEY6VYT.js} +2 -2
- package/dist/cli/chunks/{completions-W66BSCOE.js → completions-OWKBUMBE.js} +2 -2
- package/dist/cli/chunks/complexity-analyzer-PGTXKP73.js +2 -0
- package/dist/cli/chunks/{continuedev-installer-LRFZ2SJM.js → continuedev-installer-KGOXAC7L.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-CQ3JYBIB.js → copilot-installer-BF3UA3TG.js} +2 -2
- package/dist/cli/chunks/cost-tracker-2HDJ66E2.js +2 -0
- package/dist/cli/chunks/{coverage-4PUEQXAY.js → coverage-KPA2PHIN.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-GXFNK5TS.js +2 -0
- package/dist/cli/chunks/{cursor-installer-JZEDEDHA.js → cursor-installer-7CDZFHTV.js} +2 -2
- package/dist/cli/chunks/{daemon-B7TWGHXQ.js → daemon-4BPGCKDJ.js} +3 -3
- package/dist/cli/chunks/dag-attention-scheduler-2MAVGSBB.js +2 -0
- package/dist/cli/chunks/detect-WRPWTGP5.js +2 -0
- package/dist/cli/chunks/{domain-handler-FT5FLZWL.js → domain-handler-JZVSJ7AG.js} +2 -2
- package/dist/cli/chunks/domain-transfer-XGIZOR2X.js +2 -0
- package/dist/cli/chunks/dream-3IKF5XH4.js +2 -0
- package/dist/cli/chunks/esm-node-DHAE52OW.js +2 -0
- package/dist/cli/chunks/{eval-GHMPFGWV.js → eval-T7YPAS4G.js} +2 -2
- package/dist/cli/chunks/{fast-paths-B3R647KN.js → fast-paths-QECJTKCQ.js} +2 -2
- package/dist/cli/chunks/{feature-flags-DWS7ARSX.js → feature-flags-LIFURSFZ.js} +2 -2
- package/dist/cli/chunks/feature-flags-R4QZYTIW.js +2 -0
- package/dist/cli/chunks/file-discovery-4W3K3W4C.js +2 -0
- package/dist/cli/chunks/{fleet-EKOKMOMW.js → fleet-NLLQWCI5.js} +3 -3
- package/dist/cli/chunks/gnn-wrapper-XEII72LN.js +2 -0
- package/dist/cli/chunks/{heartbeat-handler-MBBS4IBU.js → heartbeat-handler-DJ65RE5D.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-XDGMOT7X.js → heartbeat-scheduler-H664265Q.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-DML5KXQR.js +2 -0
- package/dist/cli/chunks/hnsw-index-BUPPGVR6.js +2 -0
- package/dist/cli/chunks/hnsw-legacy-bridge-SQIDTWAA.js +2 -0
- package/dist/cli/chunks/hnswlib-node-WICYCU5U.js +2 -0
- package/dist/cli/chunks/{hooks-L5VLZGEK.js → hooks-GZUHUD63.js} +6 -6
- package/dist/cli/chunks/hypergraph-engine-MLCDZ6BL.js +2 -0
- package/dist/cli/chunks/{hypergraph-handler-3HDGB5SZ.js → hypergraph-handler-NNDDI4R3.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-DPTMJRYS.js +2 -0
- package/dist/cli/chunks/{init-handler-JDET6WUN.js → init-handler-IJ6BHE6A.js} +6 -6
- package/dist/cli/chunks/init-wizard-35PUDJPW.js +2 -0
- package/dist/cli/chunks/kernel-2HZ44ZJ4.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-GZZG5AFW.js → kilocode-installer-EPZFFPFE.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-IWNY5TKH.js → kiro-installer-5VACG3HU.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-JL62G72U.js +2 -0
- package/dist/cli/chunks/{learning-722ZNSZ6.js → learning-6FITK6XY.js} +3 -3
- package/dist/cli/chunks/{llm-router-DNAV746L.js → llm-router-4DDC6AKJ.js} +2 -2
- package/dist/cli/chunks/{load-Y3GCUFM4.js → load-KGDNVUBX.js} +2 -2
- package/dist/cli/chunks/load-test-LN245SSD.js +2 -0
- package/dist/cli/chunks/{mcp-LKPIBZ3W.js → mcp-4LETGVIV.js} +2 -2
- package/dist/cli/chunks/{memory-L57MLFOP.js → memory-II4I4QMO.js} +5 -5
- package/dist/cli/chunks/memory-backend-SVM7YRIE.js +2 -0
- package/dist/cli/chunks/memory-handlers-TQXTOJGQ.js +2 -0
- package/dist/cli/chunks/opencode-installer-EU6JCWBW.js +3 -0
- package/dist/cli/chunks/{orchestrator-QHSBB2UC.js → orchestrator-YLMGJVSP.js} +5 -5
- package/dist/cli/chunks/{pipeline-D3QER35Z.js → pipeline-MPZJWYKK.js} +2 -2
- package/dist/cli/chunks/{platform-T4E7Q3RD.js → platform-YH35ZZFZ.js} +2 -2
- package/dist/cli/chunks/{plugin-JHW2YPRC.js → plugin-B7JYZFNQ.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-G7CFNNQV.js → prime-radiant-advanced-wasm-KTUK6UE2.js} +2 -2
- package/dist/cli/chunks/protocol-executor-IEN2XB4L.js +2 -0
- package/dist/cli/chunks/{protocol-handler-2BQQ4HDM.js → protocol-handler-3NXMVU34.js} +2 -2
- package/dist/cli/chunks/{prove-UQ6JFT73.js → prove-H5LMGSUC.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-Q3ZV3JRG.js +2 -0
- package/dist/cli/chunks/{quality-JRZYMC77.js → quality-RCWHY6GO.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-E6ON3JUR.js +2 -0
- package/dist/cli/chunks/real-embeddings-NKH4VURF.js +2 -0
- package/dist/cli/chunks/{roocode-installer-F4E2LAYR.js → roocode-installer-SB7QJYM3.js} +2 -2
- package/dist/cli/chunks/router-WMC3LZ3C.js +2 -0
- package/dist/cli/chunks/routing-feedback-VKCZRCE3.js +2 -0
- package/dist/cli/chunks/{routing-handler-VNKFUUGB.js → routing-handler-SY7GKG2W.js} +2 -2
- package/dist/cli/chunks/ruvector-commands-HATTO3UQ.js +8 -0
- package/dist/cli/chunks/rvf-dual-writer-D57EXQUD.js +2 -0
- package/dist/cli/chunks/rvf-migration-adapter-OWDYN6KD.js +2 -0
- package/dist/cli/chunks/rvf-migration-coordinator-SIQVJB5S.js +2 -0
- package/dist/cli/chunks/rvf-native-adapter-C7NBH5UN.js +2 -0
- package/dist/cli/chunks/safe-db-5KLXCNXN.js +2 -0
- package/dist/cli/chunks/schedule-HAWWOXWB.js +2 -0
- package/dist/cli/chunks/scheduler-HTRDY5BC.js +2 -0
- package/dist/cli/chunks/{security-EBEG2OPU.js → security-DS3XLZWN.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-6I2Z5UGL.js +2 -0
- package/dist/cli/chunks/shared-rvf-dual-writer-YB7AH6XJ.js +2 -0
- package/dist/cli/chunks/sqlite-persistence-WNNRGTGG.js +2 -0
- package/dist/cli/chunks/{status-handler-VZ32M4G4.js → status-handler-TUYHE4FT.js} +2 -2
- package/dist/cli/chunks/{structural-health-K6LRCKV6.js → structural-health-XNGBNRRD.js} +2 -2
- package/dist/cli/chunks/{sync-MHSHNLIM.js → sync-K6CIRKBB.js} +2 -2
- package/dist/cli/chunks/{task-handler-JNOIBZ2G.js → task-handler-7PJY67DR.js} +2 -2
- package/dist/cli/chunks/task-handlers-WB5CDWUR.js +2 -0
- package/dist/cli/chunks/{test-DO22BNIL.js → test-WV5ALEBB.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-VLRQZEFL.js → test-scheduling-N55ZGGA2.js} +3 -3
- package/dist/cli/chunks/token-bootstrap-SINWHAKR.js +2 -0
- package/dist/cli/chunks/{token-usage-LG3PXRXH.js → token-usage-R7TGEVGL.js} +2 -2
- package/dist/cli/chunks/transformers-6DBLXPV7.js +2 -0
- package/dist/cli/chunks/{tree-sitter-wasm-parser-FT2KB66N.js → tree-sitter-wasm-parser-7C7FKMQW.js} +2 -2
- package/dist/cli/chunks/types-VNPMOKQT.js +2 -0
- package/dist/cli/chunks/unified-memory-72SKVZ7Y.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-TMN2L77W.js +2 -0
- package/dist/cli/chunks/unified-persistence-MDN3SRCR.js +2 -0
- package/dist/cli/chunks/{validate-VQCRSVNQ.js → validate-53MNIRAF.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-A5DHAWTP.js → validate-swarm-ZY4RGUFO.js} +2 -2
- package/dist/cli/chunks/{vibium-RZBSL4EB.js → vibium-PBADBIV6.js} +2 -2
- package/dist/cli/chunks/visual-security-TRBCXPIB.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-7C4NXEOF.js → web-tree-sitter-O7VI6RLB.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-ES3KPQG3.js → windsurf-installer-HV3C3TAD.js} +2 -2
- package/dist/cli/chunks/witness-chain-4WIMYP4X.js +2 -0
- package/dist/cli/chunks/witness-chain-JOI2YYGK.js +2 -0
- package/dist/cli/chunks/{workflow-JETHX4ML.js → workflow-5RVAQ4TM.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-2NQ72S3C.js +2 -0
- package/dist/cli/chunks/{wrappers-WP5RH745.js → wrappers-RRHCCA3E.js} +2 -2
- package/dist/cli/commands/ruvector-commands.js +14 -2
- package/dist/cli/index.js +10 -15
- package/dist/coordination/agent-memory-branch.d.ts +117 -0
- package/dist/coordination/agent-memory-branch.js +213 -0
- package/dist/coordination/agent-teams/mailbox.d.ts +43 -0
- package/dist/coordination/agent-teams/mailbox.js +130 -4
- package/dist/coordination/handlers/handler-utils.d.ts +1 -0
- package/dist/coordination/handlers/handler-utils.js +9 -2
- package/dist/coordination/handlers/quality-handlers.js +7 -1
- package/dist/domains/contract-testing/coordinator.js +11 -0
- package/dist/domains/quality-assessment/coherence/gate-controller.d.ts +20 -1
- package/dist/domains/quality-assessment/coherence/gate-controller.js +64 -0
- package/dist/domains/quality-assessment/coherence/index.d.ts +3 -3
- package/dist/domains/quality-assessment/coherence/index.js +2 -2
- package/dist/domains/quality-assessment/coherence/types.d.ts +39 -0
- package/dist/domains/quality-assessment/coherence/types.js +11 -0
- package/dist/domains/quality-assessment/coordinator.d.ts +14 -0
- package/dist/domains/quality-assessment/coordinator.js +92 -0
- package/dist/domains/test-execution/coordinator.d.ts +19 -0
- package/dist/domains/test-execution/coordinator.js +102 -5
- package/dist/domains/test-generation/coordinator.js +11 -0
- package/dist/domains/test-generation/interfaces.d.ts +2 -0
- package/dist/domains/test-generation/services/test-generator.d.ts +9 -0
- package/dist/domains/test-generation/services/test-generator.js +37 -0
- package/dist/init/agents-installer.d.ts +5 -3
- package/dist/init/agents-installer.js +17 -43
- package/dist/init/find-package-root.d.ts +22 -0
- package/dist/init/find-package-root.js +46 -0
- package/dist/init/n8n-installer.d.ts +4 -2
- package/dist/init/n8n-installer.js +23 -23
- package/dist/init/opencode-installer.d.ts +0 -5
- package/dist/init/opencode-installer.js +12 -39
- package/dist/init/skills-installer.d.ts +5 -2
- package/dist/init/skills-installer.js +15 -37
- package/dist/integrations/embeddings/index/HNSWIndex.d.ts +9 -2
- package/dist/integrations/embeddings/index/HNSWIndex.js +110 -35
- package/dist/integrations/ruvector/cognitive-routing.d.ts +67 -0
- package/dist/integrations/ruvector/cognitive-routing.js +208 -0
- package/dist/integrations/ruvector/feature-flags.d.ts +84 -0
- package/dist/integrations/ruvector/feature-flags.js +59 -0
- package/dist/integrations/ruvector/hdc-fingerprint.d.ts +76 -0
- package/dist/integrations/ruvector/hdc-fingerprint.js +217 -0
- package/dist/integrations/ruvector/hyperbolic-hnsw.d.ts +59 -0
- package/dist/integrations/ruvector/hyperbolic-hnsw.js +194 -0
- package/dist/integrations/ruvector/index.d.ts +5 -2
- package/dist/integrations/ruvector/index.js +13 -2
- package/dist/integrations/ruvector/shared-rvf-adapter.d.ts +24 -0
- package/dist/integrations/ruvector/shared-rvf-adapter.js +55 -0
- package/dist/integrations/ruvector/shared-rvf-dual-writer.d.ts +6 -0
- package/dist/integrations/ruvector/shared-rvf-dual-writer.js +38 -0
- package/dist/integrations/ruvector/sona-persistence.d.ts +8 -0
- package/dist/integrations/ruvector/sona-persistence.js +10 -0
- package/dist/integrations/ruvector/vector-delta-tracker.d.ts +96 -0
- package/dist/integrations/ruvector/vector-delta-tracker.js +226 -0
- package/dist/kernel/agent-coordinator.d.ts +75 -1
- package/dist/kernel/agent-coordinator.js +250 -1
- package/dist/kernel/hnsw-legacy-bridge.d.ts +38 -0
- package/dist/kernel/hnsw-legacy-bridge.js +88 -0
- package/dist/kernel/hnsw-shadow-validator.d.ts +91 -0
- package/dist/kernel/hnsw-shadow-validator.js +139 -0
- package/dist/kernel/index.d.ts +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/kernel/interfaces.d.ts +39 -0
- package/dist/kernel/kernel.d.ts +23 -0
- package/dist/kernel/kernel.js +106 -1
- package/dist/kernel/unified-memory.d.ts +1 -1
- package/dist/kernel/unified-memory.js +7 -3
- package/dist/learning/aqe-learning-engine.d.ts +65 -0
- package/dist/learning/aqe-learning-engine.js +134 -0
- package/dist/learning/dream/dream-engine.d.ts +6 -1
- package/dist/learning/dream/dream-engine.js +37 -2
- package/dist/learning/dream/dream-scheduler.d.ts +25 -0
- package/dist/learning/dream/dream-scheduler.js +120 -0
- package/dist/learning/dream/rvcow-branch-manager.d.ts +6 -3
- package/dist/learning/dream/rvcow-branch-manager.js +60 -5
- package/dist/learning/experience-capture.d.ts +3 -3
- package/dist/learning/hyperbolic-pattern-index.d.ts +82 -0
- package/dist/learning/hyperbolic-pattern-index.js +142 -0
- package/dist/learning/index.d.ts +3 -3
- package/dist/learning/index.js +1 -1
- package/dist/learning/metrics-tracker.d.ts +44 -0
- package/dist/learning/metrics-tracker.js +37 -0
- package/dist/learning/pattern-promotion.d.ts +3 -3
- package/dist/learning/pattern-store.d.ts +45 -2
- package/dist/learning/pattern-store.js +239 -4
- package/dist/learning/qe-patterns.d.ts +1 -1
- package/dist/learning/qe-reasoning-bank.js +1 -1
- package/dist/learning/rvf-pattern-migration.d.ts +50 -0
- package/dist/learning/rvf-pattern-migration.js +106 -0
- package/dist/learning/rvf-pattern-store.d.ts +69 -0
- package/dist/learning/rvf-pattern-store.js +449 -0
- package/dist/mcp/bundle.js +1894 -1804
- package/dist/mcp/handlers/index.d.ts +1 -0
- package/dist/mcp/handlers/index.js +2 -0
- package/dist/mcp/handlers/migration-handlers.d.ts +52 -0
- package/dist/mcp/handlers/migration-handlers.js +85 -0
- package/dist/mcp/protocol-server.d.ts +1 -0
- package/dist/mcp/protocol-server.js +63 -2
- package/dist/mcp/types.d.ts +1 -1
- package/dist/optimization/early-exit-token-optimizer.d.ts +7 -7
- package/dist/optimization/early-exit-token-optimizer.js +3 -3
- package/dist/persistence/rvf-consistency-validator.d.ts +85 -0
- package/dist/persistence/rvf-consistency-validator.js +182 -0
- package/dist/persistence/rvf-migration-adapter.d.ts +125 -0
- package/dist/persistence/rvf-migration-adapter.js +303 -0
- package/dist/persistence/rvf-migration-coordinator.d.ts +115 -0
- package/dist/persistence/rvf-migration-coordinator.js +224 -0
- package/dist/persistence/rvf-stage-gate.d.ts +70 -0
- package/dist/persistence/rvf-stage-gate.js +163 -0
- package/package.json +10 -10
- package/dist/cli/chunks/adapter-WBR5NXS3.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-TK4JQCGT.js +0 -2
- package/dist/cli/chunks/base-2WXOSMBQ.js +0 -2
- package/dist/cli/chunks/better-sqlite3-7KY2RDXO.js +0 -2
- package/dist/cli/chunks/brain-handler-PPEGDCN4.js +0 -68
- package/dist/cli/chunks/browser-workflow-42F7GK5T.js +0 -2
- package/dist/cli/chunks/chunk-263XS447.js +0 -2
- package/dist/cli/chunks/chunk-2I7J3O6V.js +0 -2
- package/dist/cli/chunks/chunk-3JPRUND5.js +0 -2
- package/dist/cli/chunks/chunk-3THRQEZ2.js +0 -95
- package/dist/cli/chunks/chunk-4B6NCELM.js +0 -2
- package/dist/cli/chunks/chunk-62ADTHV7.js +0 -2
- package/dist/cli/chunks/chunk-BR26T7ZS.js +0 -180
- package/dist/cli/chunks/chunk-DRT3WKQW.js +0 -2
- package/dist/cli/chunks/chunk-FIA6X7UL.js +0 -2
- package/dist/cli/chunks/chunk-J3KWWR6Z.js +0 -1
- package/dist/cli/chunks/chunk-JZSDOIXA.js +0 -2
- package/dist/cli/chunks/chunk-MV6CMOJQ.js +0 -65
- package/dist/cli/chunks/chunk-N5UXCLFI.js +0 -2
- package/dist/cli/chunks/chunk-OF4D7MYI.js +0 -2
- package/dist/cli/chunks/chunk-QOVHWZEP.js +0 -1
- package/dist/cli/chunks/chunk-RFSN6IDA.js +0 -79
- package/dist/cli/chunks/chunk-X5IJGWYG.js +0 -2
- package/dist/cli/chunks/ci-output-7JN7F6CI.js +0 -2
- package/dist/cli/chunks/client-MCSNSH2C.js +0 -2
- package/dist/cli/chunks/complexity-analyzer-AB4OZARV.js +0 -2
- package/dist/cli/chunks/cost-tracker-4F723RB6.js +0 -2
- package/dist/cli/chunks/cross-domain-router-OWR5IJ5G.js +0 -2
- package/dist/cli/chunks/dag-attention-scheduler-JWO6XI6A.js +0 -2
- package/dist/cli/chunks/detect-L6ZZHUSX.js +0 -2
- package/dist/cli/chunks/domain-transfer-5Y4FGJAJ.js +0 -2
- package/dist/cli/chunks/dream-4TDBIYED.js +0 -2
- package/dist/cli/chunks/esm-node-2PKHKOTS.js +0 -2
- package/dist/cli/chunks/feature-flags-IVQ3AL4Q.js +0 -2
- package/dist/cli/chunks/file-discovery-QFPA6GMV.js +0 -2
- package/dist/cli/chunks/gnn-wrapper-OYC55N5E.js +0 -2
- package/dist/cli/chunks/hnsw-index-YO7CT23I.js +0 -2
- package/dist/cli/chunks/hnswlib-node-56YWVXFE.js +0 -2
- package/dist/cli/chunks/hypergraph-engine-A4Y2ZRAG.js +0 -2
- package/dist/cli/chunks/impact-analyzer-UEIGXSZ4.js +0 -2
- package/dist/cli/chunks/init-wizard-JWZUGIPJ.js +0 -2
- package/dist/cli/chunks/kernel-YNDTVKIW.js +0 -2
- package/dist/cli/chunks/knowledge-graph-NGJKFTSN.js +0 -2
- package/dist/cli/chunks/load-test-GZUBXFF3.js +0 -2
- package/dist/cli/chunks/memory-backend-3NQIZUXE.js +0 -2
- package/dist/cli/chunks/memory-handlers-MDZQ7HVW.js +0 -2
- package/dist/cli/chunks/opencode-installer-4HUB36H5.js +0 -3
- package/dist/cli/chunks/protocol-executor-SPUVRDWT.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-3HBK2FVD.js +0 -2
- package/dist/cli/chunks/queen-coordinator-RW3NKO5A.js +0 -2
- package/dist/cli/chunks/real-embeddings-GK63VF35.js +0 -2
- package/dist/cli/chunks/router-RJGHWDQ3.js +0 -2
- package/dist/cli/chunks/routing-feedback-ZXBXFKX6.js +0 -2
- package/dist/cli/chunks/ruvector-commands-2TLNHC3A.js +0 -8
- package/dist/cli/chunks/rvf-dual-writer-MQW2SJLT.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-LKFKTMUN.js +0 -2
- package/dist/cli/chunks/safe-db-G22E5ROA.js +0 -2
- package/dist/cli/chunks/schedule-Y7VVCPYV.js +0 -2
- package/dist/cli/chunks/scheduler-AUQIFQB7.js +0 -2
- package/dist/cli/chunks/shared-rvf-dual-writer-BVSCQAFS.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-JAVHUGGL.js +0 -2
- package/dist/cli/chunks/task-handlers-P5DSUKND.js +0 -2
- package/dist/cli/chunks/token-bootstrap-4VJKGVMK.js +0 -2
- package/dist/cli/chunks/transformers-GY7SIKEU.js +0 -2
- package/dist/cli/chunks/types-QJGNBKP2.js +0 -2
- package/dist/cli/chunks/unified-memory-XYGENQUT.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-MVEGQBF3.js +0 -2
- package/dist/cli/chunks/unified-persistence-PFRCWEUG.js +0 -2
- package/dist/cli/chunks/visual-security-V47BLGJM.js +0 -2
- package/dist/cli/chunks/witness-chain-BR63P4A7.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-7PZMX3JZ.js +0 -2
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a as B}from"./chunk-JRYGQO2W.js";import{f as T}from"./chunk-SUSEVMZT.js";import{M as te,b as $}from"./chunk-2I7J3O6V.js";import{d as O,f as ee}from"./chunk-4I2IOUS4.js";var R=O(d=>{var ae=d&&d.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(d,"__esModule",{value:!0});var oe=Object.prototype.hasOwnProperty;function J(t,e){return oe.call(t,e)}d.hasOwnProperty=J;function Y(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=""+r;return e}if(Object.keys)return Object.keys(t);var n=[];for(var s in t)J(t,s)&&n.push(s);return n}d._objectKeys=Y;function pe(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}d._deepClone=pe;function ce(t){for(var e=0,r=t.length,n;e<r;){if(n=t.charCodeAt(e),n>=48&&n<=57){e++;continue}return!1}return!0}d.isInteger=ce;function b(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}d.escapePathComponent=b;function le(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}d.unescapePathComponent=le;function F(t,e){var r;for(var n in t)if(J(t,n)){if(t[n]===e)return b(n)+"/";if(typeof t[n]=="object"&&(r=F(t[n],e),r!=""))return b(n)+"/"+r}return""}d._getPathRecursive=F;function he(t,e){if(t===e)return"/";var r=F(t,e);if(r==="")throw new Error("Object not found in root");return"/"+r}d.getPath=he;function L(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e<r;e++)if(L(t[e]))return!0}else if(typeof t=="object"){for(var n=Y(t),s=n.length,i=0;i<s;i++)if(L(t[n[i]]))return!0}}return!1}d.hasUndefined=L;function W(t,e){var r=[t];for(var n in e){var s=typeof e[n]=="object"?JSON.stringify(e[n],null,2):e[n];typeof s<"u"&&r.push(n+": "+s)}return r.join(`
|
|
3
|
-
`)}var fe=(function(t){ae(e,t);function e(r,n,s,i,a){var c=this.constructor,h=t.call(this,W(r,{name:n,index:s,operation:i,tree:a}))||this;return h.name=n,h.index=s,h.operation=i,h.tree=a,Object.setPrototypeOf(h,c.prototype),h.message=W(r,{name:n,index:s,operation:i,tree:a}),h}return e})(Error);d.PatchError=fe});var x=O(l=>{Object.defineProperty(l,"__esModule",{value:!0});var m=R();l.JsonPatchError=m.PatchError;l.deepClone=m._deepClone;var y={add:function(t,e,r){return t[e]=this.value,{newDocument:r}},remove:function(t,e,r){var n=t[e];return delete t[e],{newDocument:r,removed:n}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:function(t,e,r){var n=N(r,this.path);n&&(n=m._deepClone(n));var s=g(r,{op:"remove",path:this.from}).removed;return g(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(t,e,r){var n=N(r,this.from);return g(r,{op:"add",path:this.path,value:m._deepClone(n)}),{newDocument:r}},test:function(t,e,r){return{newDocument:r,test:P(t[e],this.value)}},_get:function(t,e,r){return this.value=t[e],{newDocument:r}}},ue={add:function(t,e,r){return m.isInteger(e)?t.splice(e,0,this.value):t[e]=this.value,{newDocument:r,index:e}},remove:function(t,e,r){var n=t.splice(e,1);return{newDocument:r,removed:n[0]}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:y.move,copy:y.copy,test:y.test,_get:y._get};function N(t,e){if(e=="")return t;var r={op:"_get",path:e};return g(t,r),r.value}l.getValueByPointer=N;function g(t,e,r,n,s,i){if(r===void 0&&(r=!1),n===void 0&&(n=!0),s===void 0&&(s=!0),i===void 0&&(i=0),r&&(typeof r=="function"?r(e,0,t,e.path):D(e,0)),e.path===""){var a={newDocument:t};if(e.op==="add")return a.newDocument=e.value,a;if(e.op==="replace")return a.newDocument=e.value,a.removed=t,a;if(e.op==="move"||e.op==="copy")return a.newDocument=N(t,e.from),e.op==="move"&&(a.removed=t),a;if(e.op==="test"){if(a.test=P(t,e.value),a.test===!1)throw new l.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a.newDocument=t,a}else{if(e.op==="remove")return a.removed=t,a.newDocument=null,a;if(e.op==="_get")return e.value=t,a;if(r)throw new l.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,e,t);return a}}else{n||(t=m._deepClone(t));var c=e.path||"",h=c.split("/"),o=t,p=1,v=h.length,E=void 0,f=void 0,C=void 0;for(typeof r=="function"?C=r:C=D;;){if(f=h[p],f&&f.indexOf("~")!=-1&&(f=m.unescapePathComponent(f)),s&&(f=="__proto__"||f=="prototype"&&p>0&&h[p-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&E===void 0&&(o[f]===void 0?E=h.slice(0,p).join("/"):p==v-1&&(E=e.path),E!==void 0&&C(e,0,t,E)),p++,Array.isArray(o)){if(f==="-")f=o.length;else{if(r&&!m.isInteger(f))throw new l.JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,e,t);m.isInteger(f)&&(f=~~f)}if(p>=v){if(r&&e.op==="add"&&f>o.length)throw new l.JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,e,t);var a=ue[e.op].call(e,o,f,t);if(a.test===!1)throw new l.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a}}else if(p>=v){var a=y[e.op].call(e,o,f,t);if(a.test===!1)throw new l.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a}if(o=o[f],r&&p<v&&(!o||typeof o!="object"))throw new l.JsonPatchError("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,e,t)}}}l.applyOperation=g;function K(t,e,r,n,s){if(n===void 0&&(n=!0),s===void 0&&(s=!0),r&&!Array.isArray(e))throw new l.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(t=m._deepClone(t));for(var i=new Array(e.length),a=0,c=e.length;a<c;a++)i[a]=g(t,e[a],r,!0,s,a),t=i[a].newDocument;return i.newDocument=t,i}l.applyPatch=K;function de(t,e,r){var n=g(t,e);if(n.test===!1)throw new l.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",r,e,t);return n.newDocument}l.applyReducer=de;function D(t,e,r,n){if(typeof t!="object"||t===null||Array.isArray(t))throw new l.JsonPatchError("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,r);if(y[t.op]){if(typeof t.path!="string")throw new l.JsonPatchError("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,r);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new l.JsonPatchError('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new l.JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new l.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&m.hasUndefined(t.value))throw new l.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var s=t.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new l.JsonPatchError("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new l.JsonPatchError("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var a={op:"_get",path:t.from,value:void 0},c=G([a],r);if(c&&c.name==="OPERATION_PATH_UNRESOLVABLE")throw new l.JsonPatchError("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}else throw new l.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,r)}l.validator=D;function G(t,e,r){try{if(!Array.isArray(t))throw new l.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)K(m._deepClone(e),m._deepClone(t),r||!0);else{r=r||D;for(var n=0;n<t.length;n++)r(t[n],n,e,void 0)}}catch(s){if(s instanceof l.JsonPatchError)return s;throw s}}l.validate=G;function P(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var r=Array.isArray(t),n=Array.isArray(e),s,i,a;if(r&&n){if(i=t.length,i!=e.length)return!1;for(s=i;s--!==0;)if(!P(t[s],e[s]))return!1;return!0}if(r!=n)return!1;var c=Object.keys(t);if(i=c.length,i!==Object.keys(e).length)return!1;for(s=i;s--!==0;)if(!e.hasOwnProperty(c[s]))return!1;for(s=i;s--!==0;)if(a=c[s],!P(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}l._areEquals=P});var Q=O(_=>{Object.defineProperty(_,"__esModule",{value:!0});var u=R(),ve=x(),M=new WeakMap,me=(function(){function t(e){this.observers=new Map,this.obj=e}return t})(),Ee=(function(){function t(e,r){this.callback=e,this.observer=r}return t})();function ge(t){return M.get(t)}function we(t,e){return t.observers.get(e)}function ye(t,e){t.observers.delete(e.callback)}function _e(t,e){e.unobserve()}_.unobserve=_e;function Pe(t,e){var r=[],n,s=ge(t);if(!s)s=new me(t),M.set(t,s);else{var i=we(s,e);n=i&&i.observer}if(n)return n;if(n={},s.value=u._deepClone(t),e){n.callback=e,n.next=null;var a=function(){U(n)},c=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",c),window.addEventListener("keyup",c),window.addEventListener("mousedown",c),window.addEventListener("keydown",c),window.addEventListener("change",c))}return n.patches=r,n.object=t,n.unobserve=function(){U(n),clearTimeout(n.next),ye(s,n),typeof window<"u"&&(window.removeEventListener("mouseup",c),window.removeEventListener("keyup",c),window.removeEventListener("mousedown",c),window.removeEventListener("keydown",c),window.removeEventListener("change",c))},s.observers.set(e,new Ee(e,n)),n}_.observe=Pe;function U(t,e){e===void 0&&(e=!1);var r=M.get(t.object);H(r.value,t.object,t.patches,"",e),t.patches.length&&ve.applyPatch(r.value,t.patches);var n=t.patches;return n.length>0&&(t.patches=[],t.callback&&t.callback(n)),n}_.generate=U;function H(t,e,r,n,s){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var i=u._objectKeys(e),a=u._objectKeys(t),c=!1,h=!1,o=a.length-1;o>=0;o--){var p=a[o],v=t[p];if(u.hasOwnProperty(e,p)&&!(e[p]===void 0&&v!==void 0&&Array.isArray(e)===!1)){var E=e[p];typeof v=="object"&&v!=null&&typeof E=="object"&&E!=null&&Array.isArray(v)===Array.isArray(E)?H(v,E,r,n+"/"+u.escapePathComponent(p),s):v!==E&&(c=!0,s&&r.push({op:"test",path:n+"/"+u.escapePathComponent(p),value:u._deepClone(v)}),r.push({op:"replace",path:n+"/"+u.escapePathComponent(p),value:u._deepClone(E)}))}else Array.isArray(t)===Array.isArray(e)?(s&&r.push({op:"test",path:n+"/"+u.escapePathComponent(p),value:u._deepClone(v)}),r.push({op:"remove",path:n+"/"+u.escapePathComponent(p)}),h=!0):(s&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}),c=!0)}if(!(!h&&i.length==a.length))for(var o=0;o<i.length;o++){var p=i[o];!u.hasOwnProperty(t,p)&&e[p]!==void 0&&r.push({op:"add",path:n+"/"+u.escapePathComponent(p),value:u._deepClone(e[p])})}}}function Ae(t,e,r){r===void 0&&(r=!1);var n=[];return H(t,e,n,"",r),n}_.compare=Ae});var j=O(w=>{var Oe=x();Object.assign(w,Oe);var Te=Q();Object.assign(w,Te);var S=R();w.JsonPatchError=S.PatchError;w.deepClone=S._deepClone;w.escapePathComponent=S.escapePathComponent;w.unescapePathComponent=S.unescapePathComponent});var re=1e4,ne=2166136261;function se(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return e>>>0}var q=new Uint8Array(256);for(let t=0;t<256;t++){let e=0,r=t;for(;r;)e++,r&=r-1;q[t]=e}var X="0123456789abcdef";function ie(t){let e=Math.min(t.length,16),r="";for(let n=0;n<e;n++){let s=t[n];r+=X[s>>4]+X[s&15]}return r}var I=class{dimensions;baseSeed;constructor(e){if(this.dimensions=e?.dimensions??re,this.baseSeed=e?.seed??ne,this.dimensions<=0)throw new Error(`HDC dimensions must be positive, got ${this.dimensions}`)}fingerprint(e){let r=`${e.id}|${e.domain}|${e.type}|${e.content??""}`,n=se(r)^this.baseSeed,s=this.generateVector(n);return{vector:s,dimensions:this.dimensions,hash:ie(s)}}compositionalBind(e,r){if(e.length!==r.length)throw new Error(`Cannot bind vectors of different lengths: ${e.length} vs ${r.length}`);let n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=e[s]^r[s];return n}hammingDistance(e,r){if(e.length!==r.length)throw new Error(`Cannot compute Hamming distance for vectors of different lengths: ${e.length} vs ${r.length}`);let n=0;for(let s=0;s<e.length;s++)n+=q[e[s]^r[s]];return n}similarity(e,r){return 1-this.hammingDistance(e,r)/this.dimensions}batchFingerprint(e){return e.map(r=>this.fingerprint(r))}generateVector(e){let r=Math.ceil(this.dimensions/8),n=new Uint8Array(r),s=new B(e),i=0;for(;i<r;){let c=s.next(),h=r-i,o=h<4?h:4;for(let p=0;p<o;p++)n[i++]=c>>>p*8&255}let a=this.dimensions%8;return a>0&&(n[r-1]&=(1<<a)-1),n}};function be(t){return new I(t)}var A=ee(j(),1),Re=`
|
|
4
|
-
CREATE TABLE IF NOT EXISTS pattern_deltas (
|
|
5
|
-
id TEXT PRIMARY KEY,
|
|
6
|
-
pattern_id TEXT NOT NULL,
|
|
7
|
-
version INTEGER NOT NULL,
|
|
8
|
-
timestamp INTEGER NOT NULL,
|
|
9
|
-
type TEXT NOT NULL CHECK (type IN ('genesis', 'update', 'rollback')),
|
|
10
|
-
patch TEXT NOT NULL DEFAULT '[]',
|
|
11
|
-
reverse_patch TEXT NOT NULL DEFAULT '[]',
|
|
12
|
-
metadata TEXT
|
|
13
|
-
);
|
|
14
|
-
CREATE INDEX IF NOT EXISTS idx_pattern_deltas_pid_version
|
|
15
|
-
ON pattern_deltas (pattern_id, version);
|
|
16
|
-
CREATE INDEX IF NOT EXISTS idx_pattern_deltas_timestamp
|
|
17
|
-
ON pattern_deltas (timestamp);
|
|
18
|
-
`;function Z(t,e){let r=A.compare(t,e),n=A.compare(e,t);return{forward:r,reverse:n}}function Ne(t,e){let r=JSON.parse(JSON.stringify(t));return A.applyPatch(r,e).newDocument}function V(t){return{id:t.id,patternId:t.pattern_id,version:t.version,timestamp:t.timestamp,type:t.type,patch:JSON.parse(t.patch),reversePatch:JSON.parse(t.reverse_patch),metadata:t.metadata?JSON.parse(t.metadata):void 0}}var k=class{db;config;prepared=new Map;initialized=!1;constructor(e,r){this.db=e,this.config={maxVersionsPerPattern:r?.maxVersionsPerPattern??100,compressDeltas:r?.compressDeltas??!1}}initialize(){this.initialized||(this.db.exec(Re),this.prepareStatements(),this.initialized=!0)}prepareStatements(){this.prepared.set("insert",this.db.prepare(`
|
|
19
|
-
INSERT INTO pattern_deltas (id, pattern_id, version, timestamp, type, patch, reverse_patch, metadata)
|
|
20
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
|
21
|
-
`)),this.prepared.set("getHistory",this.db.prepare(`
|
|
22
|
-
SELECT * FROM pattern_deltas
|
|
23
|
-
WHERE pattern_id = ?
|
|
24
|
-
ORDER BY version ASC
|
|
25
|
-
`)),this.prepared.set("currentVersion",this.db.prepare(`
|
|
26
|
-
SELECT MAX(version) as max_version FROM pattern_deltas
|
|
27
|
-
WHERE pattern_id = ?
|
|
28
|
-
`)),this.prepared.set("incrementalSync",this.db.prepare(`
|
|
29
|
-
SELECT * FROM pattern_deltas
|
|
30
|
-
WHERE timestamp > ?
|
|
31
|
-
ORDER BY timestamp ASC
|
|
32
|
-
`)),this.prepared.set("countForPattern",this.db.prepare(`
|
|
33
|
-
SELECT COUNT(*) as cnt FROM pattern_deltas
|
|
34
|
-
WHERE pattern_id = ?
|
|
35
|
-
`)),this.prepared.set("deleteOldest",this.db.prepare(`
|
|
36
|
-
DELETE FROM pattern_deltas
|
|
37
|
-
WHERE pattern_id = ? AND version IN (
|
|
38
|
-
SELECT version FROM pattern_deltas
|
|
39
|
-
WHERE pattern_id = ?
|
|
40
|
-
ORDER BY version ASC
|
|
41
|
-
LIMIT ?
|
|
42
|
-
)
|
|
43
|
-
`))}ensureInitialized(){if(!this.initialized)throw new Error("DeltaTracker not initialized. Call initialize() first.")}createGenesis(e,r,n){this.ensureInitialized();let s=this.getCurrentVersion(e);if(s>=0)throw new Error(`Genesis already exists for pattern ${e} (current version: ${s})`);let i={id:T(),patternId:e,version:0,timestamp:Date.now(),type:"genesis",patch:[],reversePatch:[],metadata:{...n,snapshot:r}};return this.insertEvent(i),i}recordDelta(e,r,n,s){this.ensureInitialized();let i=this.getCurrentVersion(e);if(i<0)throw new Error(`No genesis found for pattern ${e}. Call createGenesis() first.`);let{forward:a,reverse:c}=Z(r,n),h={id:T(),patternId:e,version:i+1,timestamp:Date.now(),type:"update",patch:a,reversePatch:c,metadata:s};return this.insertEvent(h),this.enforceRetention(e),h}rollback(e,r){this.ensureInitialized();let n=this.getHistory(e);if(n.length===0)throw new Error(`No history found for pattern ${e}`);let s=n[n.length-1].version;if(r<0||r>s)throw new Error(`Invalid rollback version ${r}. Valid range: 0-${s}`);if(r===s)return this.reconstructState(n,s);let i=this.reconstructState(n,r),a=this.reconstructState(n,s),{forward:c,reverse:h}=Z(a,i),o={id:T(),patternId:e,version:s+1,timestamp:Date.now(),type:"rollback",patch:c,reversePatch:h,metadata:{rolledBackTo:r}};return this.insertEvent(o),this.enforceRetention(e),i}getHistory(e){return this.ensureInitialized(),this.prepared.get("getHistory").all(e).map(V)}incrementalSync(e){return this.ensureInitialized(),this.prepared.get("incrementalSync").all(e).map(V)}getCurrentVersion(e){return this.ensureInitialized(),this.prepared.get("currentVersion").get(e).max_version??-1}insertEvent(e){this.prepared.get("insert").run(e.id,e.patternId,e.version,e.timestamp,e.type,JSON.stringify(e.patch),JSON.stringify(e.reversePatch),e.metadata?JSON.stringify(e.metadata):null)}reconstructState(e,r){let n=e.find(i=>i.type==="genesis");if(!n||!n.metadata?.snapshot)throw new Error("Cannot reconstruct state: no genesis snapshot found");let s=JSON.parse(JSON.stringify(n.metadata.snapshot));for(let i of e)if(i.version!==0){if(i.version>r)break;s=Ne(s,i.patch)}return s}enforceRetention(e){let{maxVersionsPerPattern:r}=this.config,s=this.prepared.get("countForPattern").get(e).cnt;if(s>r){let i=s-r;this.db.prepare(`DELETE FROM pattern_deltas
|
|
44
|
-
WHERE pattern_id = ? AND version != 0 AND id IN (
|
|
45
|
-
SELECT id FROM pattern_deltas
|
|
46
|
-
WHERE pattern_id = ? AND version != 0
|
|
47
|
-
ORDER BY version ASC
|
|
48
|
-
LIMIT ?
|
|
49
|
-
)`).run(e,e,i)}}};te();var De=128,Se=8,Ce=1e4,z=class{dimension;beta;maxPatterns;patterns;constructor(e){if(this.dimension=e?.dimension??De,this.beta=e?.beta??Se,this.maxPatterns=e?.maxPatterns??Ce,this.patterns=[],this.dimension<=0)throw new Error(`Hopfield dimension must be positive, got ${this.dimension}`);if(this.beta<=0)throw new Error(`Hopfield beta must be positive, got ${this.beta}`);if(this.maxPatterns<=0)throw new Error(`Hopfield maxPatterns must be positive, got ${this.maxPatterns}`)}store(e,r){if(this.assertEnabled(),e.length!==this.dimension)throw new Error(`Pattern dimension mismatch: expected ${this.dimension}, got ${e.length}`);if(this.dotProduct(e,e)===0)throw new Error("Cannot store zero-magnitude pattern in Hopfield memory");let s=this.normalize(e);this.patterns.length>=this.maxPatterns&&this.patterns.shift(),this.patterns.push({pattern:s,metadata:r??{},storedAt:Date.now()})}recall(e){if(this.assertEnabled(),e.length!==this.dimension)throw new Error(`Query dimension mismatch: expected ${this.dimension}, got ${e.length}`);if(this.patterns.length===0)return null;let r=this.normalize(e),n=new Float32Array(this.patterns.length);for(let p=0;p<this.patterns.length;p++)n[p]=this.beta*this.dotProduct(this.patterns[p].pattern,r);let s=this.softmax(n),i=0,a=s[0];for(let p=1;p<s.length;p++)s[p]>a&&(a=s[p],i=p);let c=this.patterns[i],h=this.getEnergy(r),o=this.cosineSimilarity(r,c.pattern);return{pattern:new Float32Array(c.pattern),metadata:{...c.metadata},energy:h,similarity:o}}batchRecall(e){return this.assertEnabled(),e.map(r=>this.recall(r))}getPatternCount(){return this.patterns.length}clear(){this.patterns.length=0}getEnergy(e){if(e.length!==this.dimension)throw new Error(`State dimension mismatch: expected ${this.dimension}, got ${e.length}`);let r=this.normalize(e);if(this.patterns.length===0)return .5*this.dotProduct(r,r);let n=new Float32Array(this.patterns.length);for(let o=0;o<this.patterns.length;o++)n[o]=this.dotProduct(this.patterns[o].pattern,r);let s=new Float32Array(this.patterns.length),i=-1/0;for(let o=0;o<this.patterns.length;o++)s[o]=this.beta*n[o],s[o]>i&&(i=s[o]);let a=0;for(let o=0;o<this.patterns.length;o++)a+=Math.exp(s[o]-i);let c=1/this.beta*(i+Math.log(a)),h=this.dotProduct(r,r);return-c+.5*h}softmax(e){let r=new Float32Array(e.length),n=-1/0;for(let i=0;i<e.length;i++)e[i]>n&&(n=e[i]);let s=0;for(let i=0;i<e.length;i++)r[i]=Math.exp(e[i]-n),s+=r[i];if(s>0)for(let i=0;i<r.length;i++)r[i]/=s;return r}dotProduct(e,r){let n=0;for(let s=0;s<e.length;s++)n+=e[s]*r[s];return n}cosineSimilarity(e,r){let n=this.dotProduct(e,r),s=Math.sqrt(this.dotProduct(e,e)),i=Math.sqrt(this.dotProduct(r,r));return s===0||i===0?0:n/(s*i)}normalize(e){let r=Math.sqrt(this.dotProduct(e,e)),n=new Float32Array(e.length);if(r>0)for(let s=0;s<e.length;s++)n[s]=e[s]/r;return n}assertEnabled(){if(!$().useHopfieldMemory)throw new Error("Hopfield memory is disabled (useHopfieldMemory feature flag is false)")}};function $e(t){return new z(t)}export{be as a,k as b,$e as c};
|
|
50
|
-
/*! Bundled license information:
|
|
51
|
-
|
|
52
|
-
fast-json-patch/commonjs/helpers.js:
|
|
53
|
-
(*!
|
|
54
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
55
|
-
* (c) 2017-2022 Joachim Wester
|
|
56
|
-
* MIT licensed
|
|
57
|
-
*)
|
|
58
|
-
|
|
59
|
-
fast-json-patch/commonjs/duplex.js:
|
|
60
|
-
(*!
|
|
61
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
62
|
-
* (c) 2017-2021 Joachim Wester
|
|
63
|
-
* MIT license
|
|
64
|
-
*)
|
|
65
|
-
*/
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
var t=null,r=null,l=!1;async function c(){return l&&!r?t:r||(r=(async()=>{try{if(process.env.AQE_RVF_MODE==="sqlite-only")return null;let{isRvfNativeAvailable:a}=await import("./rvf-native-adapter-LKFKTMUN.js");if(!a())return null;let{getUnifiedMemory:u}=await import("./unified-memory-XYGENQUT.js"),n=u().getDatabase();if(!n)return null;let{RvfDualWriter:o}=await import("./rvf-dual-writer-MQW2SJLT.js"),i=new o(n,{rvfPath:".agentic-qe/brain.rvf",mode:"dual-write",dimensions:384});return await i.initialize(),t=i,i}catch(e){return(process.env.DEBUG||process.env.AQE_VERBOSE)&&console.debug("[RVF] Dual-writer init failed, degrading to sqlite-only:",e instanceof Error?e.message:e),null}finally{l=!0,r=null,import("./base-2WXOSMBQ.js").then(({registerRvfResetFn:e})=>e(s)).catch(()=>{})}})(),r)}function v(){return t}function s(){if(t){try{t.close()}catch{}t=null}r=null,l=!1}export{c as a,v as b,s as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{i as l}from"./chunk-4YS3IJ45.js";import{a as p}from"./chunk-3JPRUND5.js";import{c as u}from"./chunk-4VUPRTVX.js";import{b as _,d as R}from"./chunk-WGMPEW2T.js";import{a as h,b}from"./chunk-263XS447.js";b();import f from"node:path";import{existsSync as v}from"node:fs";R();p();var T=u.create("metrics-tracker"),m=class{db=null;dbPath;initialized=!1;constructor(e=process.cwd()){this.dbPath=f.join(e,".agentic-qe","memory.db")}async initialize(){if(!this.initialized){if(!v(this.dbPath))throw new Error(`Database not found: ${this.dbPath}. Run "aqe init --auto" first.`);this.db=h(this.dbPath),this.ensureMetricsTable(),this.initialized=!0}}ensureMetricsTable(){this.db&&this.db.exec(`
|
|
3
|
-
CREATE TABLE IF NOT EXISTS learning_daily_snapshots (
|
|
4
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
5
|
-
snapshot_date TEXT NOT NULL UNIQUE,
|
|
6
|
-
total_patterns INTEGER DEFAULT 0,
|
|
7
|
-
patterns_created_today INTEGER DEFAULT 0,
|
|
8
|
-
total_experiences INTEGER DEFAULT 0,
|
|
9
|
-
experiences_today INTEGER DEFAULT 0,
|
|
10
|
-
total_q_values INTEGER DEFAULT 0,
|
|
11
|
-
avg_reward REAL DEFAULT 0.0,
|
|
12
|
-
avg_confidence REAL DEFAULT 0.0,
|
|
13
|
-
avg_quality_score REAL DEFAULT 0.0,
|
|
14
|
-
success_rate REAL DEFAULT 0.0,
|
|
15
|
-
pattern_reuse_count INTEGER DEFAULT 0,
|
|
16
|
-
short_term_patterns INTEGER DEFAULT 0,
|
|
17
|
-
long_term_patterns INTEGER DEFAULT 0,
|
|
18
|
-
domain_coverage_json TEXT,
|
|
19
|
-
created_at TEXT DEFAULT (datetime('now'))
|
|
20
|
-
);
|
|
21
|
-
CREATE INDEX IF NOT EXISTS idx_learning_daily_snapshots_date ON learning_daily_snapshots(snapshot_date DESC);
|
|
22
|
-
`)}async getCurrentMetrics(){if(this.initialized||await this.initialize(),!this.db)throw new Error("Database not initialized");let e=new Date().toISOString().split("T")[0],t=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],a=this.getPatternStats(e),r=this.getExperienceStats(e),n=this.getQValueStats(),i=this.getDomainCoverage(),s=this.getHistoricalAvgReward(t);return{timestamp:new Date,totalPatterns:a.total,patternsCreatedToday:a.createdToday,totalExperiences:r.total,experiencesToday:r.recordedToday,totalQValues:n.total,avgReward:r.avgReward,avgRewardDelta:r.avgReward-s,domainCoverage:i,patternReuseCount:a.reuseCount,shortTermPatterns:a.shortTerm,longTermPatterns:a.longTerm,avgConfidence:a.avgConfidence,avgQualityScore:a.avgQualityScore,successRate:r.successRate}}getPatternStats(e){if(!this.db)return{total:0,createdToday:0,shortTerm:0,longTerm:0,avgConfidence:0,avgQualityScore:0,reuseCount:0};if(!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'").get())return{total:0,createdToday:0,shortTerm:0,longTerm:0,avgConfidence:0,avgQualityScore:0,reuseCount:0};let a=this.db.prepare(`
|
|
23
|
-
SELECT
|
|
24
|
-
COUNT(*) as total,
|
|
25
|
-
SUM(CASE WHEN date(created_at) = ? THEN 1 ELSE 0 END) as created_today,
|
|
26
|
-
SUM(CASE WHEN tier = 'short-term' THEN 1 ELSE 0 END) as short_term,
|
|
27
|
-
SUM(CASE WHEN tier = 'long-term' THEN 1 ELSE 0 END) as long_term,
|
|
28
|
-
AVG(confidence) as avg_confidence,
|
|
29
|
-
AVG(quality_score) as avg_quality_score,
|
|
30
|
-
SUM(usage_count) as total_usage
|
|
31
|
-
FROM qe_patterns
|
|
32
|
-
`).get(e);return{total:a.total||0,createdToday:a.created_today||0,shortTerm:a.short_term||0,longTerm:a.long_term||0,avgConfidence:a.avg_confidence||0,avgQualityScore:a.avg_quality_score||0,reuseCount:a.total_usage||0}}getExperienceStats(e){if(!this.db)return{total:0,recordedToday:0,avgReward:0,successRate:0};if(this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='captured_experiences'").get()){let r=this.db.prepare(`
|
|
33
|
-
SELECT
|
|
34
|
-
COUNT(*) as total,
|
|
35
|
-
SUM(CASE WHEN date(started_at) = ? THEN 1 ELSE 0 END) as recorded_today,
|
|
36
|
-
AVG(quality) as avg_reward,
|
|
37
|
-
AVG(CASE WHEN success = 1 THEN 1.0 ELSE 0.0 END) as success_rate
|
|
38
|
-
FROM captured_experiences
|
|
39
|
-
WHERE agent != 'cli-hook'
|
|
40
|
-
`).get(e);return{total:r.total||0,recordedToday:r.recorded_today||0,avgReward:r.avg_reward||0,successRate:r.success_rate||0}}if(this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_pattern_usage'").get()){let r=this.db.prepare(`
|
|
41
|
-
SELECT
|
|
42
|
-
COUNT(*) as total,
|
|
43
|
-
SUM(CASE WHEN date(created_at) = ? THEN 1 ELSE 0 END) as recorded_today,
|
|
44
|
-
AVG(success) as success_rate
|
|
45
|
-
FROM qe_pattern_usage
|
|
46
|
-
`).get(e);return{total:r.total||0,recordedToday:r.recorded_today||0,avgReward:r.success_rate||0,successRate:r.success_rate||0}}return{total:0,recordedToday:0,avgReward:0,successRate:0}}getQValueStats(){return this.db?this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='rl_q_values'").get()?{total:this.db.prepare(`
|
|
47
|
-
SELECT COUNT(*) as total FROM rl_q_values
|
|
48
|
-
`).get().total||0}:{total:0}:{total:0}}getDomainCoverage(){let e={};for(let r of l)e[r]=0;if(!this.db||!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'").get())return e;let a=this.db.prepare(`
|
|
49
|
-
SELECT qe_domain, COUNT(*) as count
|
|
50
|
-
FROM qe_patterns
|
|
51
|
-
GROUP BY qe_domain
|
|
52
|
-
`).all();for(let r of a)l.includes(r.qe_domain)&&(e[r.qe_domain]=r.count);return e}getHistoricalAvgReward(e){return this.db&&this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='captured_experiences'").get()&&this.db.prepare(`
|
|
53
|
-
SELECT AVG(quality) as avg_reward
|
|
54
|
-
FROM captured_experiences
|
|
55
|
-
WHERE started_at <= datetime(?)
|
|
56
|
-
AND agent != 'cli-hook'
|
|
57
|
-
`).get(e+" 23:59:59")?.avg_reward||0}async getDashboardData(){this.initialized||await this.initialize();let e=await this.getCurrentMetrics(),t=await this.getMetricsHistory(7),a=t.map(s=>s.patternsCreatedToday),r=t.map(s=>s.experiencesToday),n=t.map(s=>s.avgReward),i=Object.entries(e.domainCoverage).filter(([s,o])=>o>0).sort((s,o)=>o[1]-s[1]).slice(0,5).map(([s,o])=>({domain:s,count:o}));return{current:e,history:t,trends:{patternsPerDay:a,experiencesPerDay:r,avgRewardPerDay:n},topDomains:i}}async getMetricsHistory(e){if(this.initialized||await this.initialize(),!this.db)return[];let t=[];if(!this.db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='learning_daily_snapshots'").get())return[];let r=this.db.prepare(`
|
|
58
|
-
SELECT *
|
|
59
|
-
FROM learning_daily_snapshots
|
|
60
|
-
ORDER BY snapshot_date DESC
|
|
61
|
-
LIMIT ?
|
|
62
|
-
`).all(e);for(let n of r){let i={};try{i=_(n.domain_coverage_json||"{}")}catch(s){T.debug("Domain coverage JSON parse failed",{error:s instanceof Error?s.message:String(s)});for(let o of l)i[o]=0}t.push({timestamp:new Date(n.snapshot_date),totalPatterns:n.total_patterns,patternsCreatedToday:n.patterns_created_today,totalExperiences:n.total_experiences,experiencesToday:n.experiences_today,totalQValues:n.total_q_values,avgReward:n.avg_reward,avgRewardDelta:0,domainCoverage:i,patternReuseCount:n.pattern_reuse_count,shortTermPatterns:n.short_term_patterns,longTermPatterns:n.long_term_patterns,avgConfidence:n.avg_confidence,avgQualityScore:n.avg_quality_score,successRate:n.success_rate})}return t}async saveSnapshot(){if(this.initialized||await this.initialize(),!this.db)throw new Error("Database not initialized");let e=await this.getCurrentMetrics(),t=new Date().toISOString().split("T")[0];this.db.prepare(`
|
|
63
|
-
INSERT OR REPLACE INTO learning_daily_snapshots (
|
|
64
|
-
snapshot_date,
|
|
65
|
-
total_patterns,
|
|
66
|
-
patterns_created_today,
|
|
67
|
-
total_experiences,
|
|
68
|
-
experiences_today,
|
|
69
|
-
total_q_values,
|
|
70
|
-
avg_reward,
|
|
71
|
-
avg_confidence,
|
|
72
|
-
avg_quality_score,
|
|
73
|
-
success_rate,
|
|
74
|
-
pattern_reuse_count,
|
|
75
|
-
short_term_patterns,
|
|
76
|
-
long_term_patterns,
|
|
77
|
-
domain_coverage_json
|
|
78
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
79
|
-
`).run(t,e.totalPatterns,e.patternsCreatedToday,e.totalExperiences,e.experiencesToday,e.totalQValues,e.avgReward,e.avgConfidence,e.avgQualityScore,e.successRate,e.patternReuseCount,e.shortTermPatterns,e.longTermPatterns,JSON.stringify(e.domainCoverage))}async getDashboardDataWithRegret(e){let t=await this.getDashboardData();return e&&e.length>0&&(t.regretHealth=e),t}close(){this.db&&(this.db.close(),this.db=null,this.initialized=!1)}};function M(c){return new m(c)}p();var E=u.create("regret-tracker"),d=50,y=.9,D=1.1;function S(c,e){let t=c.length;if(t<2)return 0;let a=0,r=0,n=0,i=0;for(let o=0;o<t;o++)a+=c[o],r+=e[o],n+=c[o]*e[o],i+=c[o]*c[o];let s=t*i-a*a;return Math.abs(s)<1e-10?0:(t*n-a*r)/s}var g=class{domains=new Map;alertCallbacks=[];alerts=[];maxAlerts;recentWindow;constructor(e){this.maxAlerts=e?.maxAlerts??100,this.recentWindow=e?.recentWindow??20}recordDecision(e,t,a){let r=this.getOrCreateDomainState(e),n=Math.max(0,a-t);if(r.cumulativeRegret+=n,r.decisionCount++,r.points.push({decisionCount:r.decisionCount,cumulativeRegret:r.cumulativeRegret,timestamp:Date.now()}),r.decisionCount>=d){let i=this.classifyGrowthRate(r.points);r.lastGrowthRate!=="insufficient_data"&&i!==r.lastGrowthRate&&this.emitAlert(e,r.lastGrowthRate,i),r.lastGrowthRate=i}}getCumulativeRegret(e){return this.domains.get(e)?.cumulativeRegret??0}getRegretCurve(e){let t=this.domains.get(e);return t?[...t.points]:[]}getRegretGrowthRate(e){let t=this.domains.get(e);return t?this.classifyGrowthRate(t.points):"insufficient_data"}detectStagnation(e){let t=this.getRegretGrowthRate(e);return t==="linear"||t==="superlinear"}getHealthSummary(){let e=[];for(let[t,a]of this.domains){let r=this.classifyGrowthRate(a.points),n=this.computeLogLogSlope(a.points),i=this.computeRecentAvgRegret(a);e.push({domain:t,totalDecisions:a.decisionCount,cumulativeRegret:a.cumulativeRegret,growthRate:r,stagnating:r==="linear"||r==="superlinear",slope:n,recentAvgRegret:i})}return e.sort((t,a)=>t.domain.localeCompare(a.domain)),e}onAlert(e){this.alertCallbacks.push(e)}getAlerts(){return[...this.alerts]}getTrackedDomains(){return[...this.domains.keys()].sort()}getTotalDecisions(){let e=0;for(let t of this.domains.values())e+=t.decisionCount;return e}reset(e){e?this.domains.delete(e):(this.domains.clear(),this.alerts=[])}getOrCreateDomainState(e){let t=this.domains.get(e);return t||(t={points:[],cumulativeRegret:0,decisionCount:0,lastGrowthRate:"insufficient_data"},this.domains.set(e,t)),t}classifyGrowthRate(e){if(e.length<d)return"insufficient_data";let t=this.computeLogLogSlope(e);return t===void 0?"insufficient_data":t<y?"sublinear":t<=D?"linear":"superlinear"}computeLogLogSlope(e){if(e.length<d)return;let t=e.filter(n=>n.cumulativeRegret>0&&n.decisionCount>0);if(t.length<2)return;let a=t.map(n=>Math.log(n.decisionCount)),r=t.map(n=>Math.log(n.cumulativeRegret));return S(a,r)}computeRecentAvgRegret(e){if(e.points.length<2)return 0;let t=Math.min(this.recentWindow,e.points.length),a=e.points.slice(-t),r=a[0],n=a[a.length-1],i=n.cumulativeRegret-r.cumulativeRegret,s=n.decisionCount-r.decisionCount;return s<=0?0:i/s}emitAlert(e,t,a){let r={domain:e,previousRate:t,newRate:a,timestamp:Date.now(),message:`Domain "${e}" regret growth changed from ${t} to ${a}`};this.alerts.push(r),this.alerts.length>this.maxAlerts&&this.alerts.shift(),E.info("Regret growth rate transition",{domain:e,previousRate:t,newRate:a});for(let n of this.alertCallbacks)try{n(r)}catch(i){E.error("Alert callback error",i instanceof Error?i:void 0)}}};function q(c){return new g(c)}export{M as a,q as b};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a as L,b as q,c as O}from"./chunk-MV6CMOJQ.js";import{d as Q,e as A,f as T,g as M}from"./chunk-4YS3IJ45.js";import{b as y,c as S}from"./chunk-3ZOONQG6.js";import{f as D}from"./chunk-SUSEVMZT.js";import{a as p,b as F,c as $}from"./chunk-JZSDOIXA.js";import{C,M as k,x,z as v}from"./chunk-2I7J3O6V.js";$();k();function U(o,e){let n=[o.pattern,o];for(let s of n){let i=e.split("."),r=s;for(let u of i){if(r==null)break;if(typeof r=="object")r=r[u];else{r=void 0;break}}if(r!==void 0)return r}}function W(o,e,t){switch(e){case"eq":return o===t;case"gt":return typeof o=="number"&&typeof t=="number"&&o>t;case"lt":return typeof o=="number"&&typeof t=="number"&&o<t;case"gte":return typeof o=="number"&&typeof t=="number"&&o>=t;case"lte":return typeof o=="number"&&typeof t=="number"&&o<=t;case"in":return Array.isArray(t)?t.includes(o):!1;case"contains":return Array.isArray(o)||typeof o=="string"&&typeof t=="string"?o.includes(t):!1;case"between":{if(typeof o!="number"||!Array.isArray(t)||t.length!==2){if(o instanceof Date&&Array.isArray(t)&&t.length===2){let i=o.getTime(),r=t[0]instanceof Date?t[0].getTime():Number(t[0]),u=t[1]instanceof Date?t[1].getTime():Number(t[1]);return i>=r&&i<=u}return!1}let[n,s]=t;return o>=n&&o<=s}default:return!1}}function w(o,e){switch(e.type){case"AND":return(e.children??[]).every(n=>w(o,n));case"OR":{let t=e.children??[];return t.length===0?!0:t.some(n=>w(o,n))}case"NOT":return e.child?!w(o,e.child):!0;case"FIELD":{if(!e.field||!e.operator)return!0;let t=U(o,e.field);return W(t,e.operator,e.value)}default:return!0}}function z(o,e){return e?o.filter(t=>w(t,e)):o}k();var R=null;function N(){return R||(R=L({dimensions:1e4})),R}var P=null,E=0;function H(o){return(!P||E!==o)&&(P=O({dimension:o,maxPatterns:1e4}),E=o),P}var j={namespace:"qe-patterns",embeddingDimension:384,hnsw:{M:16,efConstruction:200,efSearch:100,maxElements:5e4},promotionThreshold:A,minConfidence:.3,maxPatternsPerDomain:5e3,autoCleanup:!0,cleanupIntervalMs:36e5,tokenTracking:{enabled:!0,trackInputOutput:!0,estimateCosts:!0,costPerInputToken:3e-6,costPerOutputToken:15e-6},reuseOptimization:{enabled:!0,minSimilarityForReuse:.85,minSuccessRateForReuse:.9,maxAgeForReuse:7}},I=class{constructor(e,t={}){this.memory=e;this.config={...j,...t}}config;initialized=!1;cleanupTimer;sqliteStore=null;loadingPromise=null;patternCache=new Map;domainIndex=new Map;typeIndex=new Map;tierIndex=new Map;hnswIndex=null;hnswAvailable=!1;hnswInitPromise=null;hdcCache=new Map;deltaTracker=null;stats={searchOperations:0,searchLatencies:[]};setSqliteStore(e){if(this.sqliteStore=e,v()&&!this.deltaTracker)try{let t=e.getDb();this.deltaTracker=new q(t),this.deltaTracker.initialize(),console.log("[PatternStore] Delta event sourcing initialized")}catch(t){console.warn("[PatternStore] Delta tracker init failed:",t instanceof Error?t.message:t)}this.initialized&&(this.loadingPromise=this.loadPatterns().catch(t=>console.warn("[PatternStore] Failed to load patterns after setSqliteStore:",t)).finally(()=>{this.loadingPromise=null}))}async initialize(){this.initialized||(this.tierIndex.set("short-term",new Set),this.tierIndex.set("long-term",new Set),await this.loadPatterns(),this.config.autoCleanup&&(this.cleanupTimer=setInterval(()=>this.cleanup(),this.config.cleanupIntervalMs)),this.initialized=!0)}async ensureHNSW(){return this.hnswIndex!==null?this.hnswIndex:this.hnswAvailable===!1&&this.hnswInitPromise===null&&!(this.hnswIndex===null&&this.hnswAvailable===!1)?null:this.hnswInitPromise?(await this.hnswInitPromise,this.hnswIndex):(this.hnswInitPromise=this.initializeHNSWInternal(),await this.hnswInitPromise,this.hnswInitPromise=null,this.hnswIndex)}async initializeHNSWInternal(){try{let{HNSWIndex:e}=await import("./hnsw-index-YO7CT23I.js");this.hnswIndex=new e(this.memory,{dimensions:this.config.embeddingDimension,M:this.config.hnsw.M,efConstruction:this.config.hnsw.efConstruction,efSearch:this.config.hnsw.efSearch,maxElements:this.config.hnsw.maxElements,namespace:`${this.config.namespace}:hnsw`,metric:"cosine"});let t=5e3,n=this.hnswIndex.initialize(),s=new Promise((i,r)=>setTimeout(()=>r(new Error("HNSW init timeout")),t));if(await Promise.race([n,s]),this.hnswAvailable=this.hnswIndex.isNativeAvailable(),this.sqliteStore)try{let i=this.sqliteStore.getAllEmbeddings(),r=this.config.hnsw.maxElements,u=0;for(let{patternId:f,embedding:l}of i){if(u>=r)break;if(!l||l.length!==this.config.embeddingDimension)continue;let h=this.patternCache.get(f);if(h)try{await this.hnswIndex.insert(f,l,{filePath:h.patternType,lineCoverage:h.confidence*100,branchCoverage:h.qualityScore*100,functionCoverage:0,statementCoverage:0,uncoveredLineCount:0,uncoveredBranchCount:0,riskScore:1-h.confidence,lastUpdated:Date.now(),totalLines:0}),u++}catch{}}u>0&&console.log(`[PatternStore] Loaded ${u} embeddings from SQLite into HNSW`)}catch(i){console.warn("[PatternStore] Failed to load SQLite embeddings into HNSW:",p(i))}console.log(`[PatternStore] HNSW lazy-initialized (native: ${this.hnswAvailable})`)}catch(e){console.warn("[PatternStore] HNSW not available, using memory backend search:",p(e)),this.hnswIndex=null,this.hnswAvailable=!1}}async loadPatterns(){if(this.sqliteStore)try{let e=this.sqliteStore.getPatterns({limit:5e4});for(let t of e)this.indexPattern(t);e.length>0&&console.log(`[PatternStore] Loaded ${e.length} patterns from SQLite into memory cache`)}catch(e){console.warn("[PatternStore] Failed to load patterns from SQLite:",p(e))}}indexPattern(e){this.patternCache.set(e.id,e),this.domainIndex.has(e.qeDomain)||this.domainIndex.set(e.qeDomain,new Set),this.domainIndex.get(e.qeDomain).add(e.id),this.typeIndex.has(e.patternType)||this.typeIndex.set(e.patternType,new Set),this.typeIndex.get(e.patternType).add(e.id);let t=e.tier==="long-term"?"long-term":"short-term";e.tier!==t&&(e.tier=t),this.tierIndex.get(t).add(e.id)}unindexPattern(e){this.patternCache.delete(e.id),this.domainIndex.get(e.qeDomain)?.delete(e.id),this.typeIndex.get(e.patternType)?.delete(e.id),this.tierIndex.get(e.tier)?.delete(e.id),this.hdcCache.delete(e.id)}async store(e){this.initialized||await this.initialize(),this.loadingPromise&&await this.loadingPromise;let t=M(e);if(!t.valid)return S(new Error(`Invalid pattern: ${t.errors.join(", ")}`));if(e.confidence<this.config.minConfidence)return S(new Error(`Pattern confidence ${e.confidence} below threshold ${this.config.minConfidence}`));if((this.domainIndex.get(e.qeDomain)?.size||0)>=this.config.maxPatternsPerDomain&&await this.cleanupDomain(e.qeDomain),this.indexPattern(e),this.sqliteStore)try{this.sqliteStore.storePattern(e,e.embedding)}catch(s){console.warn(`[PatternStore] SQLite persist failed for ${e.id}:`,p(s))}if(e.embedding){let s=await this.ensureHNSW();if(s)try{await s.insert(e.id,e.embedding,{filePath:e.patternType,lineCoverage:e.confidence*100,branchCoverage:e.qualityScore*100,functionCoverage:0,statementCoverage:0,uncoveredLineCount:0,uncoveredBranchCount:0,riskScore:1-e.confidence,lastUpdated:Date.now(),totalLines:0})}catch(i){console.warn(`[PatternStore] Failed to index embedding for ${e.id}:`,i)}}if(x())try{let i=N().fingerprint({id:e.id,domain:e.qeDomain,type:e.patternType,content:e.description});this.hdcCache.set(e.id,i.vector)}catch(s){console.debug(`[PatternStore] HDC fingerprint failed for ${e.id}:`,p(s))}if(C()&&e.embedding)try{H(e.embedding.length).store(new Float32Array(e.embedding),{id:e.id,name:e.name,domain:e.qeDomain})}catch(s){console.debug(`[PatternStore] Hopfield store failed for ${e.id}:`,p(s))}if(v()&&this.deltaTracker)try{let s={id:e.id,name:e.name,confidence:e.confidence,qualityScore:e.qualityScore,usageCount:e.usageCount,successRate:e.successRate,tier:e.tier};this.deltaTracker.createGenesis(e.id,s)}catch(s){console.debug(`[PatternStore] Delta genesis for ${e.id}:`,p(s))}return y(e.id)}async create(e){let t=new Date,n=e.qeDomain||this.detectDomainFromType(e.patternType),s={id:D(),patternType:e.patternType,qeDomain:n,domain:n,name:e.name,description:e.description,confidence:e.confidence??.5,usageCount:0,successRate:0,qualityScore:.25,context:{...e.context,tags:e.context?.tags||[]},template:{...e.template,example:void 0},embedding:e.embedding,tier:"short-term",createdAt:t,lastUsedAt:t,successfulUses:0,reusable:!1,reuseCount:0,averageTokenSavings:0},i=await this.store(s);return i.success?y(s):S(i.error)}detectDomainFromType(e){return{"test-template":"test-generation","assertion-pattern":"test-generation","mock-pattern":"test-generation","coverage-strategy":"coverage-analysis","mutation-strategy":"test-generation","api-contract":"contract-testing","visual-baseline":"visual-accessibility","a11y-check":"visual-accessibility","perf-benchmark":"chaos-resilience","flaky-fix":"test-execution","refactor-safe":"code-intelligence","error-handling":"test-generation"}[e]||"test-generation"}async get(e){return this.initialized||await this.initialize(),this.loadingPromise&&await this.loadingPromise,this.patternCache.get(e)??null}async search(e,t={}){this.initialized||await this.initialize(),this.loadingPromise&&await this.loadingPromise;let n=performance.now(),s=t.limit||10,i=[];try{if(Array.isArray(e)&&C())try{let a=H(e.length);if(a.getPatternCount()>0){let m=a.recall(new Float32Array(e));if(m&&m.similarity>.98){let d=m.metadata.id,c=await this.get(d);if(c&&this.matchesFilters(c,t)){let g=this.calculateReuseInfo(c,m.similarity);i.push({pattern:c,score:m.similarity,matchType:"vector",similarity:m.similarity,canReuse:g.canReuse,estimatedTokenSavings:g.estimatedTokenSavings,reuseConfidence:g.reuseConfidence})}}}}catch(a){console.debug("[PatternStore] Hopfield recall failed:",p(a))}if(Array.isArray(e)&&t.useVectorSearch!==!1){let a=await this.ensureHNSW();if(a){let m=await a.search(e,s*2);for(let d of m){let c=await this.get(d.key);if(c&&this.matchesFilters(c,t)){let g=this.calculateReuseInfo(c,d.score);i.push({pattern:c,score:d.score,matchType:"vector",similarity:d.score,canReuse:g.canReuse,estimatedTokenSavings:g.estimatedTokenSavings,reuseConfidence:g.reuseConfidence})}}}}if(typeof e=="string"&&e.trim()&&this.sqliteStore)try{let a=this.sqliteStore.searchFTS(e,s*2);if(a.length>0){let m=new Map(a.map(c=>[c.id,c.ftsScore])),d=new Set(i.map(c=>c.pattern.id));for(let c of i){let g=m.get(c.pattern.id);g!==void 0&&(c.score=.75*c.score+.25*g)}for(let c of a){if(d.has(c.id))continue;let g=await this.get(c.id);if(g&&this.matchesFilters(g,t)){let b=this.calculateReuseInfo(g,c.ftsScore);i.push({pattern:g,score:.5*c.ftsScore,matchType:"exact",similarity:c.ftsScore,canReuse:b.canReuse,estimatedTokenSavings:b.estimatedTokenSavings,reuseConfidence:b.reuseConfidence})}}}}catch{}if(typeof e=="string"||i.length<s){let a=await this.searchByText(typeof e=="string"?e:"",t,s-i.length),m=new Set(i.map(d=>d.pattern.id));for(let d of a)m.has(d.pattern.id)||i.push(d)}let r=720*60*60*1e3,u=Date.now();for(let a of i){let m=a.pattern.lastUsedAt?.getTime()??a.pattern.createdAt.getTime(),d=u-m,c=Math.pow(.5,d/r),g=a.pattern.usageCount>0?c:.5;a.score=a.score*(.7+.3*g)}i.sort((a,m)=>m.score-a.score);let f=i;t.filter&&(f=z(i,t.filter));let l=f.slice(0,s),h=performance.now()-n;return this.recordSearchLatency(h),y(l)}catch(r){return S(F(r))}}async searchByText(e,t,n){let s=[],i=e.toLowerCase(),r;t.domain?r=this.domainIndex.get(t.domain)||new Set:t.patternType?r=this.typeIndex.get(t.patternType)||new Set:t.tier?r=this.tierIndex.get(t.tier)||new Set:r=new Set(this.patternCache.keys());let u=[...r];if(x()&&i&&this.hdcCache.size>0)try{let f=N(),l=f.fingerprint({id:"query",domain:t.domain??"unknown",type:t.patternType??"unknown",content:e}),h=u.filter(d=>this.hdcCache.has(d)).map(d=>({id:d,similarity:f.similarity(l.vector,this.hdcCache.get(d))}));h.sort((d,c)=>c.similarity-d.similarity);let a=h.map(d=>d.id),m=u.filter(d=>!this.hdcCache.has(d));u=[...a,...m]}catch{}for(let f of u){if(s.length>=n)break;let l=this.patternCache.get(f);if(!l||!this.matchesFilters(l,t))continue;let h=0;if(i){let a=l.name.toLowerCase(),m=l.description.toLowerCase();a.includes(i)&&(h+=.5),m.includes(i)&&(i.length/m.length>.3?h+=.5:h+=.3);for(let d of l.context.tags)if(d.toLowerCase().includes(i)){h+=.2;break}h=Math.min(h,1)}else h=l.qualityScore;if(h>0||!i){let a=this.calculateReuseInfo(l,h);s.push({pattern:l,score:h||l.qualityScore,matchType:i?"exact":"context",similarity:h||l.qualityScore,canReuse:a.canReuse,estimatedTokenSavings:a.estimatedTokenSavings,reuseConfidence:a.reuseConfidence})}}return s}calculateReuseInfo(e,t){let{reuseOptimization:n}=this.config,s=t>=n.minSimilarityForReuse,i=e.successRate>=n.minSuccessRateForReuse,r=e.lastUsedAt instanceof Date?e.lastUsedAt.getTime():new Date(e.lastUsedAt).getTime(),f=(Date.now()-r)/(1e3*60*60*24)<=n.maxAgeForReuse,l=n.enabled&&e.reusable&&s&&i&&f,h=l?e.averageTokenSavings>0?e.averageTokenSavings:e.tokensUsed||0:0,a=t,m=e.successRate,d=Math.min(e.reuseCount/10,1),c=l?a*.4+m*.4+d*.2:0;return{canReuse:l,estimatedTokenSavings:h,reuseConfidence:c}}matchesFilters(e,t){if(t.patternType&&e.patternType!==t.patternType||t.domain&&e.qeDomain!==t.domain||t.tier&&e.tier!==t.tier||t.minConfidence!==void 0&&e.confidence<t.minConfidence||t.minQualityScore!==void 0&&e.qualityScore<t.minQualityScore)return!1;if(t.context){let n=t.context;if(n.language&&e.context.language!==n.language||n.framework&&e.context.framework!==n.framework||n.testType&&e.context.testType!==n.testType)return!1}return!0}async recordUsage(e,t){let n=await this.get(e);if(!n)return S(new Error(`Pattern not found: ${e}`));let s=new Date,i=n.usageCount+1,r=n.successfulUses+(t?1:0),u=r/i,f=t?.02:-.01,l=Math.max(.1,Math.min(1,n.confidence+f)),h=Q({confidence:l,usageCount:i,successRate:u}),a={...n,usageCount:i,successfulUses:r,successRate:u,confidence:l,qualityScore:h,lastUsedAt:s};if(this.sqliteStore)try{this.sqliteStore.recordUsage(e,t)}catch(c){console.warn(`[PatternStore] SQLite recordUsage failed for ${e}:`,p(c))}if(v()&&this.deltaTracker)try{let c={id:n.id,name:n.name,confidence:n.confidence,qualityScore:n.qualityScore,usageCount:n.usageCount,successRate:n.successRate,tier:n.tier},g={id:a.id,name:a.name,confidence:a.confidence,qualityScore:a.qualityScore,usageCount:a.usageCount,successRate:a.successRate,tier:a.tier};this.deltaTracker.recordDelta(e,c,g,{success:t})}catch(c){console.debug(`[PatternStore] Delta recordDelta for ${e}:`,p(c))}let m=T(a);return m.meetsUsageCriteria&&m.meetsQualityCriteria&&m.meetsCoherenceCriteria&&a.tier==="short-term"?await this.promote(e):this.patternCache.set(e,a),y(void 0)}async promote(e){let t=await this.get(e);if(!t)return S(new Error(`Pattern not found: ${e}`));if(t.tier==="long-term")return y(void 0);let n={...t,tier:"long-term",confidence:Math.min(1,t.confidence+.1)};if(this.tierIndex.get("short-term")?.delete(e),this.tierIndex.get("long-term")?.add(e),this.patternCache.set(e,n),this.sqliteStore)try{this.sqliteStore.promotePattern(e)}catch(s){console.debug("[PatternStore] SQLite promotion error:",s instanceof Error?s.message:s)}return console.log(`[PatternStore] Promoted pattern ${e} (${t.name}) to long-term storage`),y(void 0)}async delete(e){let t=this.patternCache.get(e);if(!t)return S(new Error(`Pattern not found: ${e}`));if(this.unindexPattern(t),this.sqliteStore)try{this.sqliteStore.deletePattern(e)}catch(n){console.debug("[PatternStore] SQLite deletion error:",n instanceof Error?n.message:n)}if(this.hnswIndex!==null)try{await this.hnswIndex.delete(e)}catch(n){console.debug("[PatternStore] HNSW deletion error:",n instanceof Error?n.message:n)}return y(void 0)}async getStats(){let e={},t={};for(let[f,l]of this.domainIndex)e[f]=l.size;for(let[f,l]of this.typeIndex)t[f]=l.size;let n=0,s=0,i=0,r=0;for(let f of this.patternCache.values())n+=f.confidence,s+=f.qualityScore,i+=f.successRate,r++;let u=this.hnswIndex!==null?await this.hnswIndex.getStats():{nativeHNSW:!1,vectorCount:0,indexSizeBytes:0,lazyLoaded:!0};return{totalPatterns:this.patternCache.size,byTier:{shortTerm:this.tierIndex.get("short-term")?.size||0,longTerm:this.tierIndex.get("long-term")?.size||0},byDomain:e,byType:t,avgConfidence:r>0?n/r:0,avgQualityScore:r>0?s/r:0,avgSuccessRate:r>0?i/r:0,searchOperations:this.stats.searchOperations,avgSearchLatencyMs:this.calculateAvgLatency(),hnswStats:{nativeAvailable:u.nativeHNSW,vectorCount:u.vectorCount,indexSizeBytes:u.indexSizeBytes}}}async cleanup(){let e=0,t=0,n=[],s=[];for(let i of this.patternCache.values()){let r=T(i);if(r.meetsUsageCriteria&&r.meetsQualityCriteria&&r.meetsCoherenceCriteria){s.push(i.id);continue}if(i.tier==="short-term"){let f=i.createdAt instanceof Date?i.createdAt.getTime():new Date(i.createdAt).getTime(),l=Date.now()-f,h=l>10080*60*1e3,a=i.qualityScore<.2,m=i.usageCount===0&&l>1440*60*1e3;(h&&a||m)&&n.push(i.id)}}for(let i of s)(await this.promote(i)).success&&t++;for(let i of n)(await this.delete(i)).success&&e++;return console.log(`[PatternStore] Cleanup: removed ${e}, promoted ${t}`),{removed:e,promoted:t}}async cleanupDomain(e){let t=this.domainIndex.get(e);if(!t||t.size<this.config.maxPatternsPerDomain)return;let n=[];for(let r of t){let u=this.patternCache.get(r);u&&n.push(u)}n.sort((r,u)=>r.qualityScore-u.qualityScore);let s=Math.ceil(n.length*.1),i=0;for(let r of n){if(i>=s)break;r.tier==="short-term"&&(await this.delete(r.id),i++)}}recordSearchLatency(e){this.stats.searchOperations++,this.stats.searchLatencies.push(e),this.stats.searchLatencies.length>1e3&&(this.stats.searchLatencies=this.stats.searchLatencies.slice(-1e3))}calculateAvgLatency(){return this.stats.searchLatencies.length===0?0:this.stats.searchLatencies.reduce((t,n)=>t+n,0)/this.stats.searchLatencies.length}async dispose(){this.cleanupTimer&&(clearInterval(this.cleanupTimer),this.cleanupTimer=void 0),this.patternCache.clear(),this.domainIndex.clear(),this.typeIndex.clear(),this.tierIndex.clear(),this.hdcCache.clear(),this.deltaTracker=null,P&&(P.clear(),P=null,E=0),this.initialized=!1}};function me(o,e){return new I(o,e)}export{me as a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j}from"./chunk-YR6ZZGH7.js";import"./chunk-4I2IOUS4.js";export{a as FORMAT_OPTION,b as OUTPUT_OPTION,g as coverageToMarkdown,h as qualityGateToMarkdown,i as securityToMarkdown,j as testRunToMarkdown,d as toJSON,f as toJUnit,e as toSARIF,c as writeOutput};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{c as a,d as b,e as c}from"./chunk-3IHG3WOY.js";import"./chunk-OI5NGQO2.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";c();export{a as VibiumClientImpl,b as VibiumClientProvider};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-7R6YMLVS.js";import"./chunk-72WOAVK6.js";import"./chunk-HRO6OZQD.js";import"./chunk-4I2IOUS4.js";export{g as ComplexityAnalyzer,c as ScoreCalculator,a as SignalCollector,e as TierRecommender,h as createComplexityAnalyzer,i as createComplexityAnalyzerWithDependencies,d as createScoreCalculator,b as createSignalCollector,f as createTierRecommender};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b}from"./chunk-JXM26HEE.js";import"./chunk-TLHP5EII.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-4I2IOUS4.js";export{a as CrossDomainEventRouter,b as createCrossDomainRouter};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}from"./chunk-XO6PVK2P.js";import"./chunk-WGMPEW2T.js";import"./chunk-4I2IOUS4.js";export{a as clearDetectionCache,b as detectClaudeFlow,d as getClaudeFlowNotFoundMessage,c as resolveCliPackage};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"./chunk-ESVQ6MEB.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{f as CuriosityBonus,b as DEFAULT_DOMAIN_TRANSFER_CONFIG,c as DecayingBeta,g as DomainTransferEngine,e as ParetoFront,d as PlateauDetector,a as ThompsonSampler,h as createDomainTransferEngine};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-3THRQEZ2.js";import"./chunk-GRUUQAR6.js";import"./chunk-SUSEVMZT.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{t as BUILT_IN_STRATEGIES,b as ConceptGraph,g as DEFAULT_ACTIVATION_CONFIG,a as DEFAULT_CONCEPT_GRAPH_CONFIG,m as DEFAULT_DREAM_CONFIG,q as DEFAULT_DREAM_SCHEDULER_CONFIG,i as DEFAULT_INSIGHT_CONFIG,k as DEFAULT_VALIDATION_THRESHOLDS,n as DreamEngine,r as DreamScheduler,f as HISTORY_TRIM_TARGET_RATIO,j as InsightGenerator,d as MAX_ACTIVATION_HISTORY_ENTRIES,e as MAX_COACTIVATION_ENTRIES,l as RVCOWBranchManager,u as SpeculativeDreamer,h as SpreadingActivation,c as createConceptGraph,o as createDreamEngine,s as createDreamScheduler,p as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-SUSEVMZT.js";import"./chunk-4I2IOUS4.js";export{h as NIL,d as parse,b as stringify,c as v1,e as v3,f as v4,g as v5,a as validate,i as version};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{A,B,C,D,E,F,G,H,I,J,K,M as L,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";L();export{a as DEFAULT_FEATURE_FLAGS,b as getRuVectorFeatureFlags,K as initFeatureFlagsFromEnv,t as isCNNVisualRegressionEnabled,v as isCoherenceActionGateEnabled,r as isCoherenceGateEnabled,D as isColdTierGNNEnabled,o as isCrossDomainTransferEnabled,y as isCusumDriftDetectionEnabled,u as isDAGAttentionEnabled,z as isDeltaEventSourcingEnabled,l as isDeterministicDitherEnabled,I as isEpropOnlineLearningEnabled,A as isEwcPlusPlusEnabled,f as isFlashAttentionEnabled,g as isGNNIndexEnabled,J as isGrangerCausalityEnabled,B as isGraphMAEEnabled,x as isHDCFingerprintingEnabled,p as isHnswHealthMonitorEnabled,C as isHopfieldMemoryEnabled,E as isMetaLearningEnabled,k as isMetadataFilteringEnabled,i as isNativeHNSWEnabled,m as isNeuralRoutingEnabled,w as isReasoningQECEnabled,q as isRegretTrackingEnabled,H as isReservoirReplayEnabled,e as isSONAEnabled,n as isSONAThreeLoopEnabled,G as isSpectralSparsificationEnabled,F as isSublinearSolverEnabled,j as isTemporalCompressionEnabled,s as isWitnessChainEnabled,d as resetRuVectorFeatureFlags,c as setRuVectorFeatureFlags,h as shouldLogMigrationMetrics};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-WBQSXPBI.js";import"./chunk-WGMPEW2T.js";import"./chunk-UFUVUO3J.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{e as GNNLayerFactory,c as QEGNNEmbeddingIndex,d as QEGNNIndexFactory,f as TensorCompressionFactory,p as batchDifferentiableSearch,i as getDifferentiableSearch,k as getGetCompressionLevel,j as getHierarchicalForward,l as getInit,g as getRuvectorLayer,h as getTensorCompress,b as initGNN,a as isGNNAvailable,m as toFloat32Array,o as toIEmbedding,n as toNumberArray};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}from"./chunk-FEKY7T6Q.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as DEFAULT_HNSW_CONFIG,b as HNSWIndex,d as benchmarkHNSW,c as createHNSWIndex};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-XLRQYLWW.js";import"./chunk-4I2IOUS4.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,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d,e}from"./chunk-HY6PMO5W.js";import"./chunk-SUSEVMZT.js";import"./chunk-N2NS2PHA.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";export{a as DEFAULT_HYPERGRAPH_ENGINE_CONFIG,b as HypergraphEngine,c as createHypergraphEngine,d as createHypergraphEngineSync,e as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-LNQIY6BP.js";import"./chunk-YAGODYIG.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";export{a as ImpactAnalyzerService};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}from"./chunk-CWFB6BSA.js";import"./chunk-BR26T7ZS.js";import"./chunk-3ADGXLTM.js";import"./chunk-KP5NUODU.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-4I2IOUS4.js";export{a as InitOrchestrator,b as createInitOrchestrator,d as formatInitResult,c as quickInit};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{v as a,w as b}from"./chunk-BPWXXEH2.js";import"./chunk-2BZFNEN2.js";import"./chunk-3IUNFTIF.js";import"./chunk-ZAPS3UGQ.js";import"./chunk-J3KWWR6Z.js";import"./chunk-IGJPMN4I.js";import"./chunk-IAV2JMIX.js";import"./chunk-EHDQJQ6Y.js";import"./chunk-QOVHWZEP.js";import"./chunk-ZDATDCYN.js";import"./chunk-AFLLQ5PP.js";import"./chunk-TLHP5EII.js";import"./chunk-MV6CMOJQ.js";import"./chunk-JRYGQO2W.js";import"./chunk-4YS3IJ45.js";import"./chunk-OF4D7MYI.js";import"./chunk-3IHG3WOY.js";import"./chunk-OI5NGQO2.js";import"./chunk-3THRQEZ2.js";import"./chunk-UQHYFOBX.js";import"./chunk-5SKGFSKD.js";import"./chunk-FEKY7T6Q.js";import"./chunk-LNQIY6BP.js";import"./chunk-YAGODYIG.js";import"./chunk-HY6PMO5W.js";import"./chunk-ESVQ6MEB.js";import"./chunk-FIA6X7UL.js";import"./chunk-X3KI6JOY.js";import"./chunk-24FKIJNC.js";import"./chunk-GRUUQAR6.js";import"./chunk-5T2ZQWKF.js";import"./chunk-XT2V2322.js";import"./chunk-WBQSXPBI.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-AKE543X2.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as QEKernelImpl,b as createKernel};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{g as a}from"./chunk-YAGODYIG.js";import"./chunk-3ZOONQG6.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";export{a as KnowledgeGraphService};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-4VBTXZRM.js";import"./chunk-NZ2VCPN4.js";import"./chunk-24FKIJNC.js";import"./chunk-SUSEVMZT.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as LoadTestTool};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{c as a,d as c}from"./chunk-LHJQD2VU.js";import"./chunk-6SVX4DJC.js";import"./chunk-GPQ57KA4.js";import"./chunk-B6LLWYQ6.js";import"./chunk-7R6YMLVS.js";import"./chunk-72WOAVK6.js";import"./chunk-HRO6OZQD.js";import"./chunk-BXAXGEFC.js";import"./chunk-VOS4NQSF.js";import"./chunk-GKNNSCLC.js";import"./chunk-RFSN6IDA.js";import"./chunk-N4TL73TH.js";import"./chunk-XLRQYLWW.js";import"./chunk-IFNIIK34.js";import"./chunk-YPFOCNOE.js";import"./chunk-VSVXUTJN.js";import"./chunk-TWUWL5EJ.js";import"./chunk-4VBTXZRM.js";import"./chunk-U5RN7YQW.js";import"./chunk-BLBRY5UD.js";import"./chunk-MZOFWJTM.js";import"./chunk-XIBDETCS.js";import"./chunk-3NZLZHJI.js";import"./chunk-WJ3DLOXF.js";import"./chunk-YVA65UZL.js";import"./chunk-XO6PVK2P.js";import"./chunk-BTREG4IW.js";import"./chunk-3ADGXLTM.js";import"./chunk-JXM26HEE.js";import"./chunk-WIEC7VKK.js";import"./chunk-2E5NQNSU.js";import"./chunk-BULKFVYX.js";import"./chunk-4B6NCELM.js";import"./chunk-KP5NUODU.js";import"./chunk-FGA7VIFR.js";import"./chunk-X5IJGWYG.js";import"./chunk-BPWXXEH2.js";import"./chunk-2BZFNEN2.js";import"./chunk-3IUNFTIF.js";import"./chunk-ZAPS3UGQ.js";import"./chunk-J3KWWR6Z.js";import"./chunk-IGJPMN4I.js";import"./chunk-IAV2JMIX.js";import"./chunk-EHDQJQ6Y.js";import"./chunk-QOVHWZEP.js";import"./chunk-ZDATDCYN.js";import{a as m,b as R,d as $,e as y,f as g,i as b}from"./chunk-AFLLQ5PP.js";import"./chunk-TLHP5EII.js";import"./chunk-MV6CMOJQ.js";import"./chunk-JRYGQO2W.js";import"./chunk-4YS3IJ45.js";import"./chunk-OF4D7MYI.js";import"./chunk-3IHG3WOY.js";import"./chunk-OI5NGQO2.js";import"./chunk-3THRQEZ2.js";import"./chunk-UQHYFOBX.js";import"./chunk-5SKGFSKD.js";import"./chunk-FEKY7T6Q.js";import"./chunk-LNQIY6BP.js";import"./chunk-YAGODYIG.js";import"./chunk-HY6PMO5W.js";import"./chunk-ESVQ6MEB.js";import"./chunk-FIA6X7UL.js";import"./chunk-X3KI6JOY.js";import"./chunk-NZ2VCPN4.js";import"./chunk-24FKIJNC.js";import{b as w}from"./chunk-YW2THB5Q.js";import"./chunk-GRUUQAR6.js";import"./chunk-5T2ZQWKF.js";import"./chunk-XT2V2322.js";import"./chunk-WBQSXPBI.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-AKE543X2.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import{a as i,c as S}from"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";S();async function T(e){if(!c())return{success:!1,error:"Fleet not initialized. Call fleet_init first."};let{kernel:s}=a();try{let t=e.namespace||"default",n=`${t}:${e.key}`;if(m()){let r=g(e.key,e.value,t,{tags:e.metadata?.tags}),o=await y.evaluateWrite(r);if(!o.allowed){if(R()&&b.recordViolation({type:"contradiction",severity:"medium",gate:"memoryWriteGate",description:`Memory write blocked for key ${e.key}: ${o.reason}`,context:{key:e.key,namespace:t,reason:o.reason,conflictingPatterns:o.conflictingPatterns}}),$())return{success:!1,error:`Memory write blocked by governance: ${o.reason}`};console.warn(`[MemoryHandler] Write allowed with warning: ${o.reason}`)}}await s.memory.set(n,e.value,{ttl:e.ttl});try{let r=`${e.key} ${JSON.stringify(e.value)}`,o=await w(r);await s.memory.storeVector(n,o,{key:e.key,namespace:t,storedAt:Date.now()})}catch(r){console.warn(`[MemoryHandler] Vector indexing failed for ${e.key}: ${i(r)}`)}return m()&&y.registerPattern(g(e.key,e.value,t)),{success:!0,data:{stored:!0,key:e.key,namespace:t,timestamp:new Date().toISOString(),persisted:!0}}}catch(t){return{success:!1,error:`Failed to store memory: ${i(t)}`}}}async function z(e){if(!c())return{success:!1,error:"Fleet not initialized. Call fleet_init first."};let{kernel:s}=a();try{let n=`${e.namespace||"default"}:${e.key}`,r=await s.memory.get(n);if(r===void 0)return{success:!0,data:{found:!1,key:e.key}};let o={found:!0,key:e.key,value:r,timestamp:new Date().toISOString()};return e.includeMetadata&&(o.metadata={}),{success:!0,data:o}}catch(t){return{success:!1,error:`Failed to retrieve memory: ${i(t)}`}}}function v(e){return e.includes(" ")&&!e.includes("*")&&!e.includes("?")}async function E(e){if(!c())return{success:!1,error:"Fleet not initialized. Call fleet_init first."};let{kernel:s}=a();try{let t=e.namespace||"default",n=e.limit||100,r=e.offset||0;if((e.semantic===!0||e.semantic!==!1&&e.pattern&&v(e.pattern))&&e.pattern)try{let l=await w(e.pattern),u=await s.memory.vectorSearch(l,n+r),M=t!=="default"?u.filter(d=>d.key.startsWith(`${t}:`)):u;return{success:!0,data:{entries:M.slice(r,r+n).map(d=>{let k=d.key.split(":");return{key:k.length>1?k.slice(1).join(":"):d.key,namespace:k.length>1?k[0]:t,score:d.score}}),total:M.length,hasMore:r+n<M.length,searchType:"semantic"}}}catch(l){console.error(`[MemoryHandler] Semantic search failed, falling back to pattern: ${i(l)}`)}let f=e.pattern?`${t}:${e.pattern}`:`${t}:*`,h=await s.memory.search(f,n+r);return{success:!0,data:{entries:h.slice(r,r+n).map(l=>{let u=l.split(":");return{key:u.slice(1).join(":"),namespace:u[0]}}),total:h.length,hasMore:r+n<h.length,searchType:"pattern"}}}catch(t){return{success:!1,error:`Failed to query memory: ${i(t)}`}}}async function K(e){if(!c())return{success:!1,error:"Fleet not initialized. Call fleet_init first."};let{kernel:s}=a();try{let t=e.namespace||"default",n=`${t}:${e.key}`;return{success:!0,data:{deleted:await s.memory.delete(n),key:e.key,namespace:t}}}catch(t){return{success:!1,error:`Failed to delete memory: ${i(t)}`}}}async function W(){if(!c())return{success:!1,error:"Fleet not initialized. Call fleet_init first."};let{kernel:e}=a();try{let s=await e.memory.search("*",1e4),t=0,n=1;try{let r=e.memory;r.getVectorStats&&(t=(await r.getVectorStats())?.vectorCount??0);let o=new Set(s.map(f=>f.split(":")[0]).filter(Boolean));n=Math.max(1,o.size)}catch{}return{success:!0,data:{entries:s.length,vectors:t,namespaces:n,size:{current:s.length,limit:Number.MAX_SAFE_INTEGER,unit:"entries"}}}}catch(s){return{success:!1,error:`Failed to get memory usage: ${i(s)}`}}}async function _(e){if(!c())return{success:!1,error:"Fleet not initialized. Call fleet_init first."};let{kernel:s}=a();try{let t=`shared:${e.knowledgeDomain}:${Date.now()}`,n={source:e.sourceAgentId,targets:e.targetAgentIds,domain:e.knowledgeDomain,content:e.knowledgeContent,timestamp:new Date().toISOString()};if(m()){let r=g(t,n,e.knowledgeDomain,{agentId:e.sourceAgentId}),o=await y.evaluateWrite(r);if(!o.allowed&&(R()&&b.recordViolation({type:"contradiction",severity:"medium",agentId:e.sourceAgentId,gate:"memoryWriteGate",description:`Shared knowledge blocked for domain ${e.knowledgeDomain}: ${o.reason}`,context:{sourceAgent:e.sourceAgentId,targetAgents:e.targetAgentIds,domain:e.knowledgeDomain,reason:o.reason}}),$()))return{success:!1,error:`Knowledge sharing blocked by governance: ${o.reason}`}}return await s.memory.set(t,n,{namespace:"agent-knowledge"}),m()&&y.registerPattern(g(t,n,e.knowledgeDomain)),{success:!0,data:{shared:!0,sourceAgent:e.sourceAgentId,targetAgents:e.targetAgentIds,domain:e.knowledgeDomain}}}catch(t){return{success:!1,error:`Failed to share memory: ${i(t)}`}}}export{K as handleMemoryDelete,E as handleMemoryQuery,z as handleMemoryRetrieve,_ as handleMemoryShare,T as handleMemoryStore,W as handleMemoryUsage};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a as c,c as S}from"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";S();import{existsSync as n,mkdirSync as g,readdirSync as m,readFileSync as I,writeFileSync as D,copyFileSync as f}from"fs";import{join as o,dirname as k}from"path";import{fileURLToPath as O}from"url";var R=O(import.meta.url),h=k(R),y=class{projectRoot;options;sourceDir;constructor(t){this.projectRoot=t.projectRoot,this.options={installAgents:!0,installSkills:!0,installTools:!0,overwrite:!1,...t},this.sourceDir=this.findSourceDir()}findSourceDir(){let t=o(this.projectRoot,".opencode"),s=[o(h,"../../.opencode"),o(h,"../.opencode"),this.resolveViaPackageJson()].filter(e=>e!==null);for(let e of s)if(e!==t&&this.isValidSourceDir(e))return e;return s[0]??o(h,"../../.opencode")}resolveViaPackageJson(){try{let t=h;for(let s=0;s<5;s++){let e=o(t,"package.json");if(n(e)&&JSON.parse(I(e,"utf-8")).name==="agentic-qe")return o(t,".opencode");t=k(t)}}catch{}return null}isValidSourceDir(t){return n(t)?n(o(t,"agents"))||n(o(t,"skills")):!1}async install(){let t=o(this.projectRoot,".opencode"),s={success:!0,agentsInstalled:[],skillsInstalled:[],toolsInstalled:[],permissionsInstalled:!1,errors:[],targetDir:t};try{if(!n(this.sourceDir))return s.errors.push(`Source .opencode directory not found: ${this.sourceDir}`),s.success=!1,s;if(this.options.installAgents){let r=this.installAgents(t);s.agentsInstalled=r.installed,s.errors.push(...r.errors)}if(this.options.installSkills){let r=this.installSkills(t);s.skillsInstalled=r.installed,s.errors.push(...r.errors)}if(this.options.installTools){let r=this.installTools(t);s.toolsInstalled=r.installed,s.errors.push(...r.errors)}let e=this.installPermissions(t);s.permissionsInstalled=e.installed,s.errors.push(...e.errors),this.generateOpenCodeConfig()}catch(e){s.success=!1,s.errors.push(`Installation failed: ${c(e)}`)}return s}installAgents(t){let s=[],e=[],r=o(this.sourceDir,"agents"),l=o(t,"agents");if(!n(r))return e.push(`Source agents directory not found: ${r}`),{installed:s,errors:e};n(l)||g(l,{recursive:!0});let u=m(r).filter(i=>i.endsWith(".yaml"));for(let i of u){let p=o(r,i),a=o(l,i);if(!(n(a)&&!this.options.overwrite))try{f(p,a),s.push(i.replace(".yaml",""))}catch(d){e.push(`Failed to install agent ${i}: ${c(d)}`)}}return{installed:s,errors:e}}installSkills(t){let s=[],e=[],r=o(this.sourceDir,"skills"),l=o(t,"skills");if(!n(r))return e.push(`Source skills directory not found: ${r}`),{installed:s,errors:e};n(l)||g(l,{recursive:!0});let u=m(r).filter(i=>i.endsWith(".yaml"));for(let i of u){let p=o(r,i),a=o(l,i);if(!(n(a)&&!this.options.overwrite))try{f(p,a),s.push(i.replace(".yaml",""))}catch(d){e.push(`Failed to install skill ${i}: ${c(d)}`)}}return{installed:s,errors:e}}installTools(t){let s=[],e=[],r=o(this.sourceDir,"tools"),l=o(t,"tools");if(!n(r))return e.push(`Source tools directory not found: ${r}`),{installed:s,errors:e};n(l)||g(l,{recursive:!0});let u=m(r).filter(i=>i.endsWith(".ts"));for(let i of u){let p=o(r,i),a=o(l,i);if(!(n(a)&&!this.options.overwrite))try{f(p,a),s.push(i.replace(".ts",""))}catch(d){e.push(`Failed to install tool ${i}: ${c(d)}`)}}return{installed:s,errors:e}}installPermissions(t){let s=[],e=o(this.sourceDir,"permissions.yaml"),r=o(t,"permissions.yaml");if(!n(e))return{installed:!1,errors:[]};if(n(r)&&!this.options.overwrite)return{installed:!1,errors:[]};try{return n(t)||g(t,{recursive:!0}),f(e,r),{installed:!0,errors:[]}}catch(l){return s.push(`Failed to install permissions.yaml: ${c(l)}`),{installed:!1,errors:s}}}generateOpenCodeConfig(){let t=o(this.projectRoot,"opencode.json");if(n(t))return;D(t,JSON.stringify({mcp:{"agentic-qe":{type:"local",command:["npx","agentic-qe","mcp"],environment:{AQE_MEMORY_PATH:".agentic-qe/memory.db",AQE_V3_MODE:"true"}}}},null,2)+`
|
|
3
|
-
`)}};function P(v){return new y(v)}export{y as OpenCodeInstaller,P as createOpenCodeInstaller};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b}from"./chunk-WIEC7VKK.js";import"./chunk-QOVHWZEP.js";import"./chunk-5SKGFSKD.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";export{a as DefaultProtocolExecutor,b as createProtocolExecutor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a as h,b as i,c as j,d as k,e as l,f as m,g as n}from"./chunk-N4TL73TH.js";import{a as e,b as f,d as g}from"./chunk-YPFOCNOE.js";import"./chunk-VSVXUTJN.js";import"./chunk-X5IJGWYG.js";import"./chunk-J3KWWR6Z.js";import"./chunk-EHDQJQ6Y.js";import"./chunk-MV6CMOJQ.js";import"./chunk-JRYGQO2W.js";import{a,b,c,h as d}from"./chunk-4YS3IJ45.js";import"./chunk-YW2THB5Q.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{j as AGENT_CAPABILITIES,h as DEFAULT_QE_REASONING_BANK_CONFIG,i as PRETRAINED_PATTERNS,m as QEReasoningBank,l as RELATED_DOMAINS,d as applyPatternTemplate,k as calculateAgentScores,n as createQEReasoningBank,a as detectQEDomain,b as detectQEDomains,g as generateGuidanceContext,f as getCombinedGuidance,e as getGuidance,c as mapQEDomainToAQE};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{c as a,d as b,e as c,f as d}from"./chunk-2E5NQNSU.js";import"./chunk-BULKFVYX.js";import"./chunk-4B6NCELM.js";import"./chunk-KP5NUODU.js";import"./chunk-ZDATDCYN.js";import"./chunk-AFLLQ5PP.js";import"./chunk-TLHP5EII.js";import"./chunk-JRYGQO2W.js";import"./chunk-4YS3IJ45.js";import"./chunk-5T2ZQWKF.js";import"./chunk-3ZOONQG6.js";import"./chunk-SUSEVMZT.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as DOMAIN_GROUPS,c as QueenCoordinator,b as TASK_DOMAIN_MAP,d as createQueenCoordinator};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i}from"./chunk-YW2THB5Q.js";import"./chunk-JZSDOIXA.js";import{a}from"./chunk-B36CDR4U.js";import"./chunk-4I2IOUS4.js";export{b as DEFAULT_EMBEDDING_CONFIG,e as clearEmbeddingCache,d as computeBatchEmbeddings,c as computeRealEmbedding,a as cosineSimilarity,f as getCacheStats,h as getEmbeddingDimension,g as isTransformerAvailable,i as resetInitialization};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c}from"./chunk-GPQ57KA4.js";import"./chunk-B6LLWYQ6.js";import"./chunk-7R6YMLVS.js";import"./chunk-72WOAVK6.js";import"./chunk-HRO6OZQD.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";export{a as ModelRouter,b as createModelRouter,c as createModelRouterWithAgentBooster};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b}from"./chunk-WJ3DLOXF.js";import"./chunk-YVA65UZL.js";import"./chunk-BTREG4IW.js";import"./chunk-3ADGXLTM.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as RoutingFeedbackCollector,b as createRoutingFeedbackCollector};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a as p,b as A}from"./chunk-62ADTHV7.js";import"./chunk-UFUVUO3J.js";import{M as F,a as g,b as f,c as d}from"./chunk-2I7J3O6V.js";import{a as N}from"./chunk-4I2IOUS4.js";F();A();import{Command as h}from"commander";import e from"chalk";var S=[{name:"@ruvector/router",flag:"useNativeHNSW",fallback:"ProgressiveHnswBackend"},{name:"prime-radiant-advanced-wasm",flag:"useCoherenceGate",fallback:"Word-frequency heuristics"},{name:"@ruvector/sona",flag:"useSONAThreeLoop",fallback:"TypeScript MicroLoRA/EWC++"}],D={useQESONA:"Self-Optimizing Neural Architecture",useQEFlashAttention:"SIMD-accelerated attention computation",useQEGNNIndex:"Differentiable search and HNSW indexing",logMigrationMetrics:"Log migration metrics during rollout",useNativeHNSW:"Rust-based HNSW backend (@ruvector/router VectorDb)",useTemporalCompression:"Temporal tensor compression (ADR-085)",useMetadataFiltering:"SIMD-accelerated metadata filtering",useDeterministicDither:"Cross-platform deterministic dithering",useNeuralRouting:"Neural model routing via FastGRNN (ADR-082)",useSONAThreeLoop:"SONA Three-Loop Engine (Task 2.2)",useCrossDomainTransfer:"Cross-domain transfer learning (ADR-084)",useHnswHealthMonitor:"HNSW health monitor (Task 3.4)",useRegretTracking:"Regret tracking & learning health (Task 2.4)",useCoherenceGate:"Sheaf-gated coherence validation (ADR-083, Task 3.1)",useWitnessChain:"SHA-256 hash-chained witness records (Task 3.1)",useCNNVisualRegression:"CNN visual regression testing (Task 4.3)",useDAGAttention:"DAG attention for test scheduling (Task 4.2)",useCoherenceActionGate:"Coherence-gated agent actions (ADR-083, Task 3.2)",useReasoningQEC:"Reasoning QEC error correction (Task 4.5)",useHDCFingerprinting:"HDC pattern fingerprinting (R1, ADR-087)",useCusumDriftDetection:"CUSUM drift detection (R2, ADR-087)",useDeltaEventSourcing:"Delta event sourcing (R3, ADR-087)",useEwcPlusPlusRegularization:"EWC++ regularization (ADR-087)",useGraphMAEEmbeddings:"GraphMAE self-supervised embeddings (R4, ADR-087)",useHopfieldMemory:"Modern Hopfield memory (R5, ADR-087)",useColdTierGNN:"Cold-tier GNN training (R6, ADR-087)",useMetaLearningEnhancements:"Meta-learning enhancements (R7, ADR-087)",useSublinearSolver:"Sublinear PageRank solver (R8, ADR-087)",useSpectralSparsification:"Spectral graph sparsification (R9, ADR-087)",useReservoirReplay:"Reservoir replay with coherence gating (R10, ADR-087)",useEpropOnlineLearning:"E-prop online learning, RL algorithm #10 (R11, ADR-087)",useGrangerCausality:"Granger causality for test failure prediction (R12, ADR-087)"},m={performance:{useNativeHNSW:!0,useTemporalCompression:!0,useDeterministicDither:!0},experimental:{useQESONA:!0,useQEFlashAttention:!0,useQEGNNIndex:!0,logMigrationMetrics:!0,useNativeHNSW:!0,useTemporalCompression:!0,useMetadataFiltering:!0,useDeterministicDither:!0,useNeuralRouting:!0},safe:{useQESONA:!0,useQEFlashAttention:!0,useQEGNNIndex:!0,logMigrationMetrics:!0,useNativeHNSW:!1,useTemporalCompression:!1,useMetadataFiltering:!1,useDeterministicDither:!1,useNeuralRouting:!1}},u=Object.keys(g);function k(o){try{return N.resolve(o),!0}catch{return!1}}function v(o,n){return g[o]===n}function i(o,n){return o.padEnd(n)}function y(o){return o<1024?`${o}B`:o<1024*1024?`${(o/1024).toFixed(1)}KB`:o<1024*1024*1024?`${(o/(1024*1024)).toFixed(1)}MB`:`${(o/(1024*1024*1024)).toFixed(2)}GB`}function T(o){return u.includes(o)}function x(o){return o in m}function C(){let o=f();console.log(""),console.log(e.bold.blue("RuVector Integration Status:")),console.log(e.cyan(" Native Packages:"));for(let t of S){let a=k(t.name)?e.green("installed"):e.gray(`not installed (fallback: ${t.fallback})`);console.log(` ${i(t.name+":",30)} ${a}`)}console.log(""),console.log(e.cyan(" Feature Flags:"));for(let t of u){let r=o[t],a=v(t,r),s=r?e.green("true"):e.gray("false"),l=a?e.gray(" (default)"):e.yellow(" (modified)");console.log(` ${i(t+":",30)} ${s}${l}`)}let n=p.listIndexes();if(n.length>0){console.log(""),console.log(e.cyan(" HNSW Memory Usage:"));let t=0,r=0;for(let a of n){let s=p.get(a);if(s){let l=s.size(),c=s.dimensions(),R=l*c*4*3;t+=l,r+=R,console.log(` ${i(a+":",20)} ${e.white(String(l))} vectors, ${e.white(c)}d, ~${e.white(y(R))}`)}}console.log(e.gray(` ${"\u2500".repeat(50)}`)),console.log(` ${i("Total:",20)} ${e.bold.white(String(t))} vectors, ~${e.bold.white(y(r))}`)}else console.log(""),console.log(e.cyan(" HNSW Memory Usage:")),console.log(e.gray(" No active indexes (indexes are created on first use)"));o.useTemporalCompression&&(console.log(""),console.log(e.cyan(" Temporal Compression:")),console.log(e.gray(" Hot tier: 8-bit quantization (frequently accessed patterns)")),console.log(e.gray(" Warm tier: 5-bit quantization (moderately accessed patterns)")),console.log(e.gray(" Cold tier: 3-bit quantization (rarely accessed patterns)")),console.log(e.gray(" Estimated memory savings: 40-60% for cold patterns"))),console.log("")}function E(o){if(o.profile){if(!x(o.profile)){console.log(""),console.log(e.red(` Unknown profile: ${o.profile}`)),console.log(e.gray(` Valid profiles: ${Object.keys(m).join(", ")}`)),console.log(""),process.exit(1);return}let t=m[o.profile];d(t),console.log(""),console.log(e.bold.blue(`Setting ${o.profile} profile:`));for(let[r,a]of Object.entries(t)){let s=a?e.green("true"):e.gray("false");console.log(` ${i(r+":",30)} ${s}`)}console.log("");return}if(o.set){let t=o.set.indexOf("=");if(t<=0){console.log(""),console.log(e.red(" Invalid format. Use: --set flagName=true|false")),console.log(""),process.exit(1);return}let r=o.set.substring(0,t),a=o.set.substring(t+1);if(!T(r)){console.log(""),console.log(e.red(` Unknown flag: ${r}`)),console.log(e.gray(` Valid flags: ${u.join(", ")}`)),console.log(""),process.exit(1);return}if(a!=="true"&&a!=="false"){console.log(""),console.log(e.red(` Invalid value: ${a}. Use true or false.`)),console.log(""),process.exit(1);return}let s=a==="true";d({[r]:s});let l=s?e.green("true"):e.gray("false");console.log(""),console.log(e.green(` Set ${r} = ${l}`)),console.log("");return}let n=f();console.log(""),console.log(e.bold.blue("RuVector Feature Flags:")),console.log(""),console.log(e.bold(" "+i("Flag",28)+i("Value",10)+"Description")),console.log(e.gray(" "+"-".repeat(78)));for(let t of u){let r=n[t],a=v(t,r),s=r?e.green("true"):e.gray("false"),l=a?"":e.yellow(" *"),c=D[t];console.log(" "+i(t,28)+i(String(r),10)+e.gray(c)+l)}console.log(""),console.log(e.gray(" * = modified from default")),console.log(""),console.log(e.gray(" Profiles: performance, experimental, safe")),console.log(e.gray(" Usage:")),console.log(e.gray(" aqe ruvector flags --set useNativeHNSW=true")),console.log(e.gray(" aqe ruvector flags --profile=performance")),console.log("")}function b(){let o=new h("ruvector").description("RuVector integration management").addHelpText("after",`
|
|
3
|
-
Examples:
|
|
4
|
-
$ aqe ruvector status Show native packages and flags
|
|
5
|
-
$ aqe ruvector flags List all feature flags
|
|
6
|
-
$ aqe ruvector flags --set useNativeHNSW=true Toggle a flag
|
|
7
|
-
$ aqe ruvector flags --profile=performance Apply a preset profile
|
|
8
|
-
`);return o.command("status").description("Show native package availability and feature flag status").action(()=>{C()}),o.command("flags").description("List, set, or apply profiles to feature flags").option("-s, --set <flag=value>","Set a feature flag (e.g., useNativeHNSW=true)").option("-p, --profile <name>","Apply a preset profile (performance|experimental|safe)").action(n=>{E(n)}),o}var G=b;export{b as createRuVectorCommand,G as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a}from"./chunk-MZOFWJTM.js";import"./chunk-NZ2VCPN4.js";import"./chunk-24FKIJNC.js";import"./chunk-SUSEVMZT.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as TestScheduleTool};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}from"./chunk-OLHKGP35.js";import"./chunk-RU5WAHB7.js";import"./chunk-3ZOONQG6.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-4I2IOUS4.js";export{a as PersistentScheduler,b as createPersistentScheduler,d as createScheduleEntry,c as generateScheduleId};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.9.0");process.exit(0)}
|
|
2
|
-
import{a,b,c,d}from"./chunk-VSVXUTJN.js";import"./chunk-YW2THB5Q.js";import"./chunk-SUSEVMZT.js";import"./chunk-JJO7Y4H3.js";import"./chunk-N2NS2PHA.js";import"./chunk-3JPRUND5.js";import"./chunk-4VUPRTVX.js";import"./chunk-WGMPEW2T.js";import"./chunk-JZSDOIXA.js";import"./chunk-263XS447.js";import"./chunk-MDUHYUHF.js";import"./chunk-GAOJV3OX.js";import"./chunk-62ADTHV7.js";import"./chunk-DRT3WKQW.js";import"./chunk-UFUVUO3J.js";import"./chunk-7VDBAVTY.js";import"./chunk-B36CDR4U.js";import"./chunk-2I7J3O6V.js";import"./chunk-4I2IOUS4.js";export{a as DEFAULT_SQLITE_CONFIG,c as SQLitePatternStore,d as createSQLitePatternStore,b as hashEmbedding};
|