agentic-qe 3.10.6 → 3.10.7
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/hooks/aqe-hook.cjs +38 -2
- package/.claude/skills/.validation/examples/chaos-engineering-output.example.json +1 -1
- package/.claude/skills/.validation/examples/performance-testing-output.example.json +1 -1
- package/.claude/skills/.validation/examples/security-testing-output.example.json +1 -1
- package/.claude/skills/.validation/examples/testability-scoring-output.example.json +1 -1
- package/.claude/skills/.validation/schemas/skill-eval.schema.json +2 -4
- package/.claude/skills/.validation/schemas/skill-frontmatter.schema.json +1 -1
- package/.claude/skills/.validation/schemas/skill-output.template.json +1 -1
- package/.claude/skills/.validation/templates/eval.template.yaml +3 -3
- package/.claude/skills/.validation/templates/security-testing-eval.template.yaml +3 -2
- package/.claude/skills/.validation/templates/skill-frontmatter.example.yaml +2 -2
- package/.claude/skills/a11y-ally/evals/a11y-ally.yaml +2 -2
- package/.claude/skills/accessibility-testing/evals/accessibility-testing.yaml +2 -3
- package/.claude/skills/api-testing-patterns/evals/api-testing-patterns.yaml +2 -3
- package/.claude/skills/chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +3 -3
- package/.claude/skills/cicd-pipeline-qe-orchestrator/evals/cicd-pipeline-qe-orchestrator.yaml +2 -2
- package/.claude/skills/compatibility-testing/evals/compatibility-testing.yaml +2 -2
- package/.claude/skills/compliance-testing/evals/compliance-testing.yaml +2 -3
- package/.claude/skills/contract-testing/evals/contract-testing.yaml +2 -3
- package/.claude/skills/database-testing/evals/database-testing.yaml +2 -3
- package/.claude/skills/enterprise-integration-testing/evals/enterprise-integration-testing.yaml +2 -2
- package/.claude/skills/localization-testing/evals/localization-testing.yaml +2 -2
- package/.claude/skills/middleware-testing-patterns/evals/middleware-testing-patterns.yaml +2 -2
- package/.claude/skills/mobile-testing/evals/mobile-testing.yaml +2 -2
- package/.claude/skills/mutation-testing/evals/mutation-testing.yaml +2 -3
- package/.claude/skills/mutation-testing/test-data/sample-output.json +1 -1
- package/.claude/skills/n8n-expression-testing/evals/n8n-expression-testing.yaml +2 -2
- package/.claude/skills/n8n-integration-testing-patterns/evals/n8n-integration-testing-patterns.yaml +2 -2
- package/.claude/skills/n8n-security-testing/evals/n8n-security-testing.yaml +3 -2
- package/.claude/skills/n8n-trigger-testing-strategies/evals/n8n-trigger-testing-strategies.yaml +2 -2
- package/.claude/skills/n8n-workflow-testing-fundamentals/evals/n8n-workflow-testing-fundamentals.yaml +2 -2
- package/.claude/skills/observability-testing-patterns/evals/observability-testing-patterns.yaml +2 -2
- package/.claude/skills/pentest-validation/evals/pentest-validation.yaml +3 -3
- package/.claude/skills/performance-testing/evals/performance-testing.yaml +2 -3
- package/.claude/skills/qcsd-cicd-swarm/evals/qcsd-cicd-swarm.yaml +2 -2
- package/.claude/skills/qcsd-development-swarm/evals/qcsd-development-swarm.yaml +2 -2
- package/.claude/skills/qcsd-ideation-swarm/evals/qcsd-ideation-swarm.yaml +2 -2
- package/.claude/skills/qcsd-production-swarm/evals/qcsd-production-swarm.yaml +2 -2
- package/.claude/skills/qcsd-refinement-swarm/evals/qcsd-refinement-swarm.yaml +2 -2
- package/.claude/skills/qe-browser/evals/qe-browser.yaml +2 -2
- package/.claude/skills/qe-chaos-resilience/evals/qe-chaos-resilience.yaml +3 -2
- package/.claude/skills/qe-code-intelligence/evals/qe-code-intelligence.yaml +2 -2
- package/.claude/skills/qe-coverage-analysis/evals/qe-coverage-analysis.yaml +2 -2
- package/.claude/skills/qe-defect-intelligence/evals/qe-defect-intelligence.yaml +3 -2
- package/.claude/skills/qe-learning-optimization/evals/qe-learning-optimization.yaml +4 -4
- package/.claude/skills/qe-quality-assessment/evals/qe-quality-assessment.yaml +2 -2
- package/.claude/skills/qe-requirements-validation/evals/qe-requirements-validation.yaml +2 -2
- package/.claude/skills/qe-test-execution/evals/qe-test-execution.yaml +2 -2
- package/.claude/skills/qe-test-generation/evals/qe-test-generation.yaml +2 -2
- package/.claude/skills/qe-visual-accessibility/evals/qe-visual-accessibility.yaml +2 -2
- package/.claude/skills/quality-metrics/evals/quality-metrics.yaml +2 -2
- package/.claude/skills/regression-testing/evals/regression-testing.yaml +2 -2
- package/.claude/skills/risk-based-testing/evals/risk-based-testing.yaml +2 -2
- package/.claude/skills/security-testing/evals/security-testing.yaml +3 -3
- package/.claude/skills/security-visual-testing/evals/security-visual-testing.yaml +3 -2
- package/.claude/skills/shift-left-testing/evals/shift-left-testing.yaml +2 -2
- package/.claude/skills/shift-right-testing/evals/shift-right-testing.yaml +2 -2
- package/.claude/skills/skills-manifest.json +1 -1
- package/.claude/skills/test-automation-strategy/evals/test-automation-strategy.yaml +2 -2
- package/.claude/skills/test-data-management/evals/test-data-management.yaml +2 -2
- package/.claude/skills/test-design-techniques/evals/test-design-techniques.yaml +2 -2
- package/.claude/skills/test-reporting-analytics/evals/test-reporting-analytics.yaml +2 -2
- package/.claude/skills/testability-scoring/evals/testability-scoring.yaml +2 -3
- package/.claude/skills/validation-pipeline/evals/validation-pipeline.yaml +2 -2
- package/.claude/skills/verification-quality/evals/verification-quality.yaml +2 -2
- package/.claude/skills/visual-testing-advanced/evals/visual-testing-advanced.yaml +2 -2
- package/.claude/skills/wms-testing-patterns/evals/wms-testing-patterns.yaml +2 -1
- package/CHANGELOG.md +41 -0
- package/assets/skills/.validation/examples/chaos-engineering-output.example.json +1 -1
- package/assets/skills/.validation/examples/performance-testing-output.example.json +1 -1
- package/assets/skills/.validation/examples/security-testing-output.example.json +1 -1
- package/assets/skills/.validation/examples/testability-scoring-output.example.json +1 -1
- package/assets/skills/.validation/schemas/skill-eval.schema.json +2 -4
- package/assets/skills/.validation/schemas/skill-frontmatter.schema.json +1 -1
- package/assets/skills/.validation/schemas/skill-output.template.json +1 -1
- package/assets/skills/.validation/templates/eval.template.yaml +3 -3
- package/assets/skills/.validation/templates/security-testing-eval.template.yaml +3 -2
- package/assets/skills/.validation/templates/skill-frontmatter.example.yaml +2 -2
- package/assets/skills/a11y-ally/evals/a11y-ally.yaml +2 -2
- package/assets/skills/accessibility-testing/evals/accessibility-testing.yaml +2 -3
- package/assets/skills/api-testing-patterns/evals/api-testing-patterns.yaml +2 -3
- package/assets/skills/chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +3 -3
- package/assets/skills/cicd-pipeline-qe-orchestrator/evals/cicd-pipeline-qe-orchestrator.yaml +2 -2
- package/assets/skills/compatibility-testing/evals/compatibility-testing.yaml +2 -2
- package/assets/skills/compliance-testing/evals/compliance-testing.yaml +2 -3
- package/assets/skills/contract-testing/evals/contract-testing.yaml +2 -3
- package/assets/skills/database-testing/evals/database-testing.yaml +2 -3
- package/assets/skills/enterprise-integration-testing/evals/enterprise-integration-testing.yaml +2 -2
- package/assets/skills/localization-testing/evals/localization-testing.yaml +2 -2
- package/assets/skills/middleware-testing-patterns/evals/middleware-testing-patterns.yaml +2 -2
- package/assets/skills/mobile-testing/evals/mobile-testing.yaml +2 -2
- package/assets/skills/mutation-testing/evals/mutation-testing.yaml +2 -3
- package/assets/skills/mutation-testing/test-data/sample-output.json +1 -1
- package/assets/skills/n8n-expression-testing/evals/n8n-expression-testing.yaml +2 -2
- package/assets/skills/n8n-integration-testing-patterns/evals/n8n-integration-testing-patterns.yaml +2 -2
- package/assets/skills/n8n-security-testing/evals/n8n-security-testing.yaml +3 -2
- package/assets/skills/n8n-trigger-testing-strategies/evals/n8n-trigger-testing-strategies.yaml +2 -2
- package/assets/skills/n8n-workflow-testing-fundamentals/evals/n8n-workflow-testing-fundamentals.yaml +2 -2
- package/assets/skills/observability-testing-patterns/evals/observability-testing-patterns.yaml +2 -2
- package/assets/skills/pentest-validation/evals/pentest-validation.yaml +3 -3
- package/assets/skills/performance-testing/evals/performance-testing.yaml +2 -3
- package/assets/skills/qcsd-cicd-swarm/evals/qcsd-cicd-swarm.yaml +2 -2
- package/assets/skills/qcsd-development-swarm/evals/qcsd-development-swarm.yaml +2 -2
- package/assets/skills/qcsd-ideation-swarm/evals/qcsd-ideation-swarm.yaml +2 -2
- package/assets/skills/qcsd-production-swarm/evals/qcsd-production-swarm.yaml +2 -2
- package/assets/skills/qcsd-refinement-swarm/evals/qcsd-refinement-swarm.yaml +2 -2
- package/assets/skills/qe-browser/evals/qe-browser.yaml +2 -2
- package/assets/skills/qe-chaos-resilience/evals/qe-chaos-resilience.yaml +3 -2
- package/assets/skills/qe-code-intelligence/evals/qe-code-intelligence.yaml +2 -2
- package/assets/skills/qe-coverage-analysis/evals/qe-coverage-analysis.yaml +2 -2
- package/assets/skills/qe-defect-intelligence/evals/qe-defect-intelligence.yaml +3 -2
- package/assets/skills/qe-learning-optimization/evals/qe-learning-optimization.yaml +4 -4
- package/assets/skills/qe-quality-assessment/evals/qe-quality-assessment.yaml +2 -2
- package/assets/skills/qe-requirements-validation/evals/qe-requirements-validation.yaml +2 -2
- package/assets/skills/qe-test-execution/evals/qe-test-execution.yaml +2 -2
- package/assets/skills/qe-test-generation/evals/qe-test-generation.yaml +2 -2
- package/assets/skills/qe-visual-accessibility/evals/qe-visual-accessibility.yaml +2 -2
- package/assets/skills/quality-metrics/evals/quality-metrics.yaml +2 -2
- package/assets/skills/regression-testing/evals/regression-testing.yaml +2 -2
- package/assets/skills/risk-based-testing/evals/risk-based-testing.yaml +2 -2
- package/assets/skills/security-testing/evals/security-testing.yaml +3 -3
- package/assets/skills/security-visual-testing/evals/security-visual-testing.yaml +3 -2
- package/assets/skills/shift-left-testing/evals/shift-left-testing.yaml +2 -2
- package/assets/skills/shift-right-testing/evals/shift-right-testing.yaml +2 -2
- package/assets/skills/test-automation-strategy/evals/test-automation-strategy.yaml +2 -2
- package/assets/skills/test-data-management/evals/test-data-management.yaml +2 -2
- package/assets/skills/test-design-techniques/evals/test-design-techniques.yaml +2 -2
- package/assets/skills/test-reporting-analytics/evals/test-reporting-analytics.yaml +2 -2
- package/assets/skills/testability-scoring/evals/testability-scoring.yaml +2 -3
- package/assets/skills/validation-pipeline/evals/validation-pipeline.yaml +2 -2
- package/assets/skills/verification-quality/evals/verification-quality.yaml +2 -2
- package/assets/skills/visual-testing-advanced/evals/visual-testing-advanced.yaml +2 -2
- package/assets/skills/wms-testing-patterns/evals/wms-testing-patterns.yaml +2 -1
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-TTIBYXH2.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-J5CITTTV.js → agent-booster-wasm-6I3JMU2M.js} +2 -2
- package/dist/cli/chunks/{agent-handler-HMN4ZBZ6.js → agent-handler-XWI7YM6R.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-SCAKN4DU.js → agent-memory-branch-QFZKQN2L.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-CTV5OLSN.js +2 -0
- package/dist/cli/chunks/{arena-CJOLCHZW.js → arena-5HNPVTBZ.js} +4 -4
- package/dist/cli/chunks/{arena-FVBTSGKS.js → arena-P4IUBKZP.js} +2 -2
- package/dist/cli/chunks/{audit-SOF6L5RY.js → audit-PBSH25VZ.js} +2 -2
- package/dist/cli/chunks/base-ISNCJZ7A.js +2 -0
- package/dist/cli/chunks/{hnswlib-node-LFVNGGCL.js → better-sqlite3-F262IAGH.js} +2 -2
- package/dist/cli/chunks/{brain-handler-D2ZQQI2J.js → brain-handler-EVYRCKXI.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-QQXOCGOR.js → branch-enumerator-SUDGYJQJ.js} +2 -2
- package/dist/cli/chunks/{browser-XASHKIEN.js → browser-4UKMW2RE.js} +2 -2
- package/dist/cli/chunks/browser-workflow-OD32QTTI.js +2 -0
- package/dist/cli/chunks/{chunk-F72A356B.js → chunk-222ZQTL5.js} +2 -2
- package/dist/cli/chunks/{chunk-NKEGEQ3J.js → chunk-262F3EMN.js} +2 -2
- package/dist/cli/chunks/{chunk-5QTUGFFP.js → chunk-2J4ZUUU5.js} +2 -2
- package/dist/cli/chunks/{chunk-2I5RXDNO.js → chunk-2JWFS2K2.js} +2 -2
- package/dist/cli/chunks/{chunk-K32AUACO.js → chunk-2MLISLRR.js} +1 -1
- package/dist/cli/chunks/{chunk-J2SMTP2L.js → chunk-32E2OPIE.js} +3 -3
- package/dist/cli/chunks/{chunk-Q5432RIH.js → chunk-34NT5NBZ.js} +2 -2
- package/dist/cli/chunks/{chunk-TWH3ZL6B.js → chunk-3IJS52OS.js} +2 -2
- package/dist/cli/chunks/{chunk-T6CUKJHS.js → chunk-3O4Q4GAX.js} +1 -1
- package/dist/cli/chunks/{chunk-Z3RPA3RD.js → chunk-3W6QASVB.js} +2 -2
- package/dist/cli/chunks/{chunk-GXNNKM7F.js → chunk-3XEL7XCA.js} +1 -1
- package/dist/cli/chunks/{chunk-TNVOINYC.js → chunk-4I6FK67T.js} +3 -3
- package/dist/cli/chunks/{chunk-UQYDFT6I.js → chunk-4MJQJQLY.js} +2 -2
- package/dist/cli/chunks/{chunk-H6UPZFI6.js → chunk-4RGV6Z2H.js} +2 -2
- package/dist/cli/chunks/{chunk-4N4TU7ST.js → chunk-4W5QWFU4.js} +1 -1
- package/dist/cli/chunks/{chunk-ELC6JIXL.js → chunk-5QMIVHFT.js} +2 -2
- package/dist/cli/chunks/{chunk-X5R6SUWM.js → chunk-64BSODHA.js} +2 -2
- package/dist/cli/chunks/{chunk-J3WUBGLQ.js → chunk-6A2HRMTD.js} +2 -2
- package/dist/cli/chunks/{chunk-LEDF3LGZ.js → chunk-6F5KPT6U.js} +1 -1
- package/dist/cli/chunks/{chunk-BHD6THT5.js → chunk-6OLPKIYU.js} +1 -1
- package/dist/cli/chunks/{chunk-6DHJPKAH.js → chunk-6QBD64W3.js} +2 -2
- package/dist/cli/chunks/{chunk-7RTI5WT4.js → chunk-6RG7ZJ2H.js} +2 -2
- package/dist/cli/chunks/{chunk-Q4LYWIEX.js → chunk-76JYG426.js} +2 -2
- package/dist/cli/chunks/{chunk-TFA5UETW.js → chunk-76SUEI7S.js} +1 -1
- package/dist/cli/chunks/{chunk-B3H2TTYT.js → chunk-7NK2H7H5.js} +2 -2
- package/dist/cli/chunks/{chunk-7SFCZ3AE.js → chunk-AKL5A3IZ.js} +1 -1
- package/dist/cli/chunks/{chunk-HMHQOEU7.js → chunk-AKSCYNFH.js} +2 -2
- package/dist/cli/chunks/{chunk-QZSNYXYC.js → chunk-AW3LGLC3.js} +2 -2
- package/dist/cli/chunks/{chunk-ZMCMSDXR.js → chunk-AY4IEMRI.js} +2 -2
- package/dist/cli/chunks/{chunk-XOYTW6LI.js → chunk-B5ZJV7GZ.js} +2 -2
- package/dist/cli/chunks/{chunk-KVMY2ABO.js → chunk-BLFZFKT6.js} +2 -2
- package/dist/cli/chunks/{chunk-ESZDW6G7.js → chunk-BPC6X6VR.js} +2 -2
- package/dist/cli/chunks/{chunk-HDEFCRHI.js → chunk-BRYYQQUV.js} +1 -1
- package/dist/cli/chunks/{chunk-CH7KUYGO.js → chunk-BU2I77YW.js} +3 -3
- package/dist/cli/chunks/{chunk-NEIJP6TG.js → chunk-C5CY5NSW.js} +2 -2
- package/dist/cli/chunks/{chunk-H4Q36ILL.js → chunk-CGBEI7UH.js} +2 -2
- package/dist/cli/chunks/{chunk-VFFIMJWT.js → chunk-CJTDQJ7E.js} +1 -1
- package/dist/cli/chunks/{chunk-XKRJQIGP.js → chunk-CW7JQVXV.js} +2 -2
- package/dist/cli/chunks/chunk-DF7V6X3N.js +2 -0
- package/dist/cli/chunks/{chunk-6ZLVQTQ5.js → chunk-DPT37UHR.js} +4 -4
- package/dist/cli/chunks/{chunk-IB3QQDC4.js → chunk-DU7Y54JI.js} +1 -1
- package/dist/cli/chunks/{chunk-TUFU3BAK.js → chunk-DYNO72WD.js} +2 -2
- package/dist/cli/chunks/{chunk-LOQMQEKN.js → chunk-DYSRMAZP.js} +1 -1
- package/dist/cli/chunks/{chunk-RTFFD263.js → chunk-EWNJK2BU.js} +1 -1
- package/dist/cli/chunks/{chunk-JPL53G4V.js → chunk-F5RZSNHI.js} +2 -2
- package/dist/cli/chunks/{chunk-RH3I4Q23.js → chunk-FK4JHBG4.js} +2 -2
- package/dist/cli/chunks/{chunk-DAUQIXHW.js → chunk-FQBNPSV2.js} +2 -2
- package/dist/cli/chunks/{chunk-LHA4OQ7G.js → chunk-FWLXK6AH.js} +2 -2
- package/dist/cli/chunks/{chunk-UVWOIF6P.js → chunk-G7ISGLKP.js} +1 -1
- package/dist/cli/chunks/{chunk-EYKID5HA.js → chunk-GUDOOOO6.js} +1 -1
- package/dist/cli/chunks/{chunk-SA5FTDRS.js → chunk-HARYQMWN.js} +2 -2
- package/dist/cli/chunks/{chunk-RA7HEY5G.js → chunk-HBWAMCVB.js} +2 -2
- package/dist/cli/chunks/{chunk-NUCJS3Z7.js → chunk-HDLF6LGO.js} +3 -3
- package/dist/cli/chunks/{chunk-XLFYVBOD.js → chunk-HELQ7CXL.js} +1 -1
- package/dist/cli/chunks/{chunk-USPBUR6P.js → chunk-HI4DA7Z3.js} +2 -2
- package/dist/cli/chunks/{chunk-PIIBVLFC.js → chunk-I64BLAFS.js} +2 -2
- package/dist/cli/chunks/{chunk-AQPFTDGS.js → chunk-I7M574IO.js} +2 -2
- package/dist/cli/chunks/{chunk-JP2YXWJD.js → chunk-INI3AGF5.js} +2 -2
- package/dist/cli/chunks/{chunk-ZY4G7O7Y.js → chunk-ISLI6D4K.js} +2 -2
- package/dist/cli/chunks/{chunk-T6SCQVWH.js → chunk-IXAABYGS.js} +2 -2
- package/dist/cli/chunks/{chunk-2IC2I525.js → chunk-IYZWEYWJ.js} +1 -1
- package/dist/cli/chunks/{chunk-M4OYZMXE.js → chunk-J5ETX2DG.js} +2 -2
- package/dist/cli/chunks/{chunk-XOGBTPJI.js → chunk-JJELOEIY.js} +4 -4
- package/dist/cli/chunks/{chunk-EDPVATNH.js → chunk-JNQVPTOM.js} +2 -2
- package/dist/cli/chunks/{chunk-5VTRPOYL.js → chunk-JNXPRDNV.js} +3 -3
- package/dist/cli/chunks/{chunk-7OK5H6ML.js → chunk-K6A3AWUI.js} +1 -1
- package/dist/cli/chunks/{chunk-ULEVKOWQ.js → chunk-K6IU2MV4.js} +1 -1
- package/dist/cli/chunks/{chunk-SHVTMMJB.js → chunk-KXENXRZE.js} +1 -1
- package/dist/cli/chunks/{chunk-HWKFBRMX.js → chunk-L2ZSYIDA.js} +1 -1
- package/dist/cli/chunks/{chunk-RTAGNKCV.js → chunk-L3EQQMFI.js} +2 -2
- package/dist/cli/chunks/{chunk-S574AFAT.js → chunk-L5UUUSSB.js} +1 -1
- package/dist/cli/chunks/{chunk-5V4IFRG5.js → chunk-L6NB4UHR.js} +2 -2
- package/dist/cli/chunks/{chunk-2UI5LQ7C.js → chunk-LEZ2MGHM.js} +3 -3
- package/dist/cli/chunks/{chunk-NN35QH6X.js → chunk-LFSQSLNP.js} +2 -2
- package/dist/cli/chunks/{chunk-L2IMTNZF.js → chunk-LHZYTNOQ.js} +2 -2
- package/dist/cli/chunks/{chunk-JADBRSQN.js → chunk-LJHCPN4E.js} +2 -2
- package/dist/cli/chunks/{chunk-UNDPB5SS.js → chunk-LRRQEAP5.js} +1 -1
- package/dist/cli/chunks/{chunk-ZBSEXVEI.js → chunk-LSHUPEQQ.js} +2 -2
- package/dist/cli/chunks/{chunk-HZGOVRZ6.js → chunk-LUZH2IZY.js} +2 -2
- package/dist/cli/chunks/{chunk-UWDC3TZP.js → chunk-M7SO5KNJ.js} +2 -2
- package/dist/cli/chunks/{chunk-KQOJYO5Z.js → chunk-MDVJVY4C.js} +4 -4
- package/dist/cli/chunks/{chunk-TFJDJVPC.js → chunk-MK73CCKO.js} +2 -2
- package/dist/cli/chunks/{chunk-JXCIRWLQ.js → chunk-MMR23KAO.js} +2 -2
- package/dist/cli/chunks/{chunk-ROXH622K.js → chunk-MOI74MMX.js} +2 -2
- package/dist/cli/chunks/{chunk-MSJGDIRP.js → chunk-MRLGQX7Y.js} +2 -2
- package/dist/cli/chunks/{chunk-2RQSFRON.js → chunk-MWRKNBSY.js} +2 -2
- package/dist/cli/chunks/{chunk-BXOGLZGU.js → chunk-NKYMHEHY.js} +2 -2
- package/dist/cli/chunks/{chunk-MJLDZSFB.js → chunk-O4B6FFC5.js} +1 -1
- package/dist/cli/chunks/{chunk-JX7HZMW5.js → chunk-OAXDI4XM.js} +1 -1
- package/dist/cli/chunks/{chunk-PFSBUTDA.js → chunk-OMDV6GFP.js} +1 -1
- package/dist/cli/chunks/{chunk-OBLAWVXM.js → chunk-OPLLH67G.js} +1 -1
- package/dist/cli/chunks/{chunk-LAGNWKAD.js → chunk-OSETFZVE.js} +2 -2
- package/dist/cli/chunks/{chunk-OU4HRUVV.js → chunk-OW4LJ5HE.js} +2 -2
- package/dist/cli/chunks/{chunk-NHC635LL.js → chunk-PY3HWJRJ.js} +2 -2
- package/dist/cli/chunks/{chunk-DFBVWMX3.js → chunk-QBVFONWU.js} +2 -2
- package/dist/cli/chunks/{chunk-7BPYFDWY.js → chunk-QBVS4CXM.js} +1 -1
- package/dist/cli/chunks/{chunk-O2H5WYFK.js → chunk-QDBFB4XD.js} +2 -2
- package/dist/cli/chunks/{chunk-X3YWLJGT.js → chunk-QLVZEEPR.js} +2 -2
- package/dist/cli/chunks/{chunk-4B22URZJ.js → chunk-QMGNYRR5.js} +3 -3
- package/dist/cli/chunks/{chunk-MCMVRPNG.js → chunk-R2B6EQQF.js} +2 -2
- package/dist/cli/chunks/{chunk-VQM2TC2V.js → chunk-R7KIC6TL.js} +1 -1
- package/dist/cli/chunks/{chunk-HFU3LTQX.js → chunk-RJBCIN2G.js} +2 -2
- package/dist/cli/chunks/{chunk-PIJ5XOMM.js → chunk-RLXCFURS.js} +2 -2
- package/dist/cli/chunks/{chunk-WNAFMYND.js → chunk-S423UHYM.js} +2 -2
- package/dist/cli/chunks/{chunk-GWHDPEBT.js → chunk-S4NNQE4L.js} +1 -1
- package/dist/cli/chunks/{chunk-AJ2VDNPB.js → chunk-S7FNTWFM.js} +2 -2
- package/dist/cli/chunks/{chunk-H73FLSBV.js → chunk-SFW6IDMR.js} +10 -10
- package/dist/cli/chunks/{chunk-QUQA4NNZ.js → chunk-SG6O3PXZ.js} +2 -2
- package/dist/cli/chunks/{chunk-P7EOYGR2.js → chunk-SLASYVNX.js} +2 -2
- package/dist/cli/chunks/{chunk-A2DCROAN.js → chunk-TIUC5LRA.js} +2 -2
- package/dist/cli/chunks/{chunk-LHZOIXJ6.js → chunk-TTLAWPEN.js} +2 -2
- package/dist/cli/chunks/{chunk-QNIL3D6E.js → chunk-TXXRBNOB.js} +1 -1
- package/dist/cli/chunks/{chunk-6RFPELCD.js → chunk-TY7XPI6R.js} +2 -2
- package/dist/cli/chunks/{chunk-QJXZ4SU7.js → chunk-U7EGKKN3.js} +2 -2
- package/dist/cli/chunks/{chunk-I7ADT6AZ.js → chunk-UPDPD43T.js} +2 -2
- package/dist/cli/chunks/{chunk-RBZWUWUG.js → chunk-UURGDFGU.js} +1 -1
- package/dist/cli/chunks/{chunk-MQN3HYFX.js → chunk-UVUVWA4B.js} +1 -1
- package/dist/cli/chunks/{chunk-2CZQA3NN.js → chunk-V3KNHI5B.js} +2 -2
- package/dist/cli/chunks/{chunk-ELTN4F4R.js → chunk-V7WBNB2S.js} +2 -2
- package/dist/cli/chunks/{chunk-4XEUJH2M.js → chunk-VPBXVZWE.js} +1 -1
- package/dist/cli/chunks/{chunk-3XUPDWMA.js → chunk-WCXQA24H.js} +8 -8
- package/dist/cli/chunks/{chunk-CSM4LXTH.js → chunk-X3HRJV65.js} +1 -1
- package/dist/cli/chunks/{chunk-DF4Z7TKZ.js → chunk-X6OJFP7G.js} +2 -2
- package/dist/cli/chunks/{chunk-M3APJ7VS.js → chunk-XCYPVJ34.js} +2 -2
- package/dist/cli/chunks/{chunk-LWUIK5DH.js → chunk-XK7P7OXO.js} +2 -2
- package/dist/cli/chunks/{chunk-O4MNYX4X.js → chunk-XWPUCPYW.js} +2 -2
- package/dist/cli/chunks/{chunk-EJWAKPZD.js → chunk-YB4GXJJG.js} +1 -1
- package/dist/cli/chunks/{chunk-SUGQZCNI.js → chunk-YBM4LUSF.js} +2 -2
- package/dist/cli/chunks/{chunk-C75ODWRP.js → chunk-YLXUF5KW.js} +3 -3
- package/dist/cli/chunks/{chunk-ULV5K4V5.js → chunk-YMBPKBKG.js} +1 -1
- package/dist/cli/chunks/{chunk-7NXVVIJZ.js → chunk-Z44VJC5U.js} +2 -2
- package/dist/cli/chunks/{ci-COQUVZH6.js → ci-OO42YBET.js} +2 -2
- package/dist/cli/chunks/{ci-output-KVUHUEOT.js → ci-output-YXMTEX7Q.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-O4JNXAYH.js → circuit-breaker-EHA4N643.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-J65U34NA.js → claude-flow-setup-E6G6SLYI.js} +2 -2
- package/dist/cli/chunks/client-N4FQ6SMD.js +2 -0
- package/dist/cli/chunks/{cline-installer-ZTG234Z2.js → cline-installer-6JPWD64G.js} +2 -2
- package/dist/cli/chunks/{code-5GWPY4IX.js → code-Q3U6XDOO.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-TWNKG4VS.js → code-index-extractor-BK2DC4MO.js} +2 -2
- package/dist/cli/chunks/{codex-installer-4TM4BLAE.js → codex-installer-DA3GBMLN.js} +2 -2
- package/dist/cli/chunks/{completions-BBNHQXMV.js → completions-TZ5F33TA.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-2SCI2VGH.js → complexity-analyzer-N7U4V7ID.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-CTIORASU.js → continuedev-installer-DDDJGW26.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-4R2V4IYB.js → copilot-installer-JVFCE6GT.js} +2 -2
- package/dist/cli/chunks/core-handlers-SFD5HCA3.js +2 -0
- package/dist/cli/chunks/{cost-tracker-KDBYQBKG.js → cost-tracker-ZTIDLUFW.js} +2 -2
- package/dist/cli/chunks/{coverage-QQJQVDPZ.js → coverage-6G7T7TRQ.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-7HGRUNLT.js +2 -0
- package/dist/cli/chunks/{cursor-installer-5WEZCESZ.js → cursor-installer-JFNYGSDD.js} +2 -2
- package/dist/cli/chunks/{daemon-M4DKHEEA.js → daemon-5A4GD6XA.js} +3 -3
- package/dist/cli/chunks/{daemon-Y7H3ZUXQ.js → daemon-KTXGJJRI.js} +4 -4
- package/dist/cli/chunks/{dag-attention-scheduler-SD2UIADT.js → dag-attention-scheduler-4CUEQZD6.js} +2 -2
- package/dist/cli/chunks/{detect-WONWUXFH.js → detect-I32JUSUE.js} +2 -2
- package/dist/cli/chunks/{dist-node-Q5GQN2R6.js → dist-node-7ITNV6QS.js} +2 -2
- package/dist/cli/chunks/{domain-handler-EMXE2XQW.js → domain-handler-LIFCXSZ4.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-QATUJJRP.js → domain-transfer-67UWLHSK.js} +2 -2
- package/dist/cli/chunks/dream-HPGD5TLD.js +2 -0
- package/dist/cli/chunks/{embed-and-insert-pattern-AAFHLBEJ.js → embed-and-insert-pattern-4WC5RUD6.js} +2 -2
- package/dist/cli/chunks/{eval-73BDNLSK.js → eval-DLS2UAQ2.js} +3 -3
- package/dist/cli/chunks/{experience-capture-middleware-YPAPVSYY.js → experience-capture-middleware-VG5E6OJA.js} +3 -3
- package/dist/cli/chunks/{fast-paths-33ZKMNYY.js → fast-paths-262IVHDN.js} +2 -2
- package/dist/cli/chunks/{feature-flags-QKO5YYDU.js → feature-flags-JJ3FHZGD.js} +2 -2
- package/dist/cli/chunks/{feature-flags-F3DVW4ST.js → feature-flags-L3K7DBN3.js} +2 -2
- package/dist/cli/chunks/{file-discovery-YYVZLRYD.js → file-discovery-Q3PBKVUW.js} +2 -2
- package/dist/cli/chunks/{fleet-EJX6BXLR.js → fleet-LQ5S2YHG.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-TBNLYPTM.js → gnn-wrapper-I33Z537H.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-HPRTS6SI.js → heartbeat-handler-RYIRAGZ7.js} +4 -4
- package/dist/cli/chunks/heartbeat-scheduler-O6TI5E4P.js +2 -0
- package/dist/cli/chunks/hnsw-adapter-TOVTN23J.js +2 -0
- package/dist/cli/chunks/hnsw-index-KCZ75V7K.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-Z6V6TOF5.js → hnsw-legacy-bridge-SSENBBPR.js} +2 -2
- package/dist/cli/chunks/{better-sqlite3-5G7LRX7Q.js → hnswlib-node-ILDTCGLZ.js} +2 -2
- package/dist/cli/chunks/{hooks-GG2Z3BDB.js → hooks-LR5KQMN5.js} +10 -10
- package/dist/cli/chunks/hybrid-router-4JEPC4JZ.js +2 -0
- package/dist/cli/chunks/{hypergraph-engine-X4Q2TTET.js → hypergraph-engine-NDZA2DKP.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-6BZWV5PL.js → hypergraph-handler-ADMWVHBT.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-3MHIU3SE.js +2 -0
- package/dist/cli/chunks/{init-handler-EKUS7U6L.js → init-handler-MGCYDX62.js} +6 -6
- package/dist/cli/chunks/init-wizard-ERBO5JNA.js +2 -0
- package/dist/cli/chunks/kernel-XJPIIWET.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-BWAVVSQG.js → kilocode-installer-DQVWZUKP.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-UADO53E5.js → kiro-installer-TINLYZ22.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-NTJEG6ZE.js +2 -0
- package/dist/cli/chunks/{learning-HMUTCYQM.js → learning-KBT3S5WW.js} +3 -3
- package/dist/cli/chunks/{llm-router-453TBDUY.js → llm-router-2MX5LUAB.js} +4 -4
- package/dist/cli/chunks/llm-router-service-4T66BGB5.js +2 -0
- package/dist/cli/chunks/{load-DBBSNP6T.js → load-IQWTGMLZ.js} +2 -2
- package/dist/cli/chunks/load-test-PM674TSK.js +2 -0
- package/dist/cli/chunks/{mcp-PK3SAKRF.js → mcp-GCTTJUBZ.js} +2 -2
- package/dist/cli/chunks/{memory-63NHVBXS.js → memory-XQVPI4UT.js} +5 -5
- package/dist/cli/chunks/memory-backend-53NQ5CG7.js +2 -0
- package/dist/cli/chunks/{memory-handlers-YIKKORRY.js → memory-handlers-XD7MSFUN.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-HUGRXJ6D.js → multi-model-executor-JC63UCWG.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-A6IXNF26.js → opencode-installer-6VJGEBIU.js} +2 -2
- package/dist/cli/chunks/{orchestrator-KDFYDNE3.js → orchestrator-B75QWJUF.js} +5 -5
- package/dist/cli/chunks/pattern-null-store-IF2RG2ON.js +2 -0
- package/dist/cli/chunks/{pipeline-HSPRKEYE.js → pipeline-TCBQ2UTZ.js} +2 -2
- package/dist/cli/chunks/{platform-X74IBN2H.js → platform-T43AYI3Z.js} +2 -2
- package/dist/cli/chunks/{plugin-KDJZ7VFD.js → plugin-MSI3ZU3Z.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-2YZGKQE7.js → prime-radiant-advanced-wasm-V62CWI6M.js} +2 -2
- package/dist/cli/chunks/protocol-executor-7AS75ZWT.js +2 -0
- package/dist/cli/chunks/{protocol-handler-I2SDHC7B.js → protocol-handler-OH2INET2.js} +2 -2
- package/dist/cli/chunks/{prove-JQJDNIZH.js → prove-6PTMXMUL.js} +2 -2
- package/dist/cli/chunks/provider-manager-AU2C4AET.js +2 -0
- package/dist/cli/chunks/qe-reasoning-bank-WATQRCFO.js +2 -0
- package/dist/cli/chunks/{quality-2P7KHVY3.js → quality-PLNQN5GU.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-IOCC4VQH.js +2 -0
- package/dist/cli/chunks/{real-embeddings-L7NMMNDO.js → real-embeddings-OW4OKR77.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-LA4QN5AG.js → roocode-installer-C32LCYAJ.js} +2 -2
- package/dist/cli/chunks/router-SCJMX6WA.js +2 -0
- package/dist/cli/chunks/routing-feedback-RWC7F553.js +2 -0
- package/dist/cli/chunks/{routing-handler-B5CDEZF3.js → routing-handler-CKFXXPMI.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-SOVCRLJ6.js → ruvector-commands-GERRPTJL.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-M6WI2KFB.js → rvf-dual-writer-5FAB2QPA.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-YDMZGPMA.js → rvf-migration-adapter-46COKWYB.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-TFGQ5EO4.js → rvf-migration-coordinator-AJVRWSNC.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-W2RT6PTO.js +2 -0
- package/dist/cli/chunks/safe-db-HO2LCAO3.js +2 -0
- package/dist/cli/chunks/schedule-XENCR4MR.js +2 -0
- package/dist/cli/chunks/scheduler-WKZ3O2SS.js +2 -0
- package/dist/cli/chunks/{security-R3IXQXDA.js → security-Q622IVRB.js} +3 -3
- package/dist/cli/chunks/{shared-rvf-adapter-GZX7LSQZ.js → shared-rvf-adapter-EST24R3R.js} +2 -2
- package/dist/cli/chunks/{shared-rvf-dual-writer-YT7SJX7K.js → shared-rvf-dual-writer-CP6EXKBT.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-IN6BOSCX.js +2 -0
- package/dist/cli/chunks/{status-handler-7PZSPBHJ.js → status-handler-LLRQB4E2.js} +2 -2
- package/dist/cli/chunks/{structural-health-UMJS6IVR.js → structural-health-BUFWTNN2.js} +2 -2
- package/dist/cli/chunks/{sync-UIREA3UG.js → sync-JDG4SNT5.js} +2 -2
- package/dist/cli/chunks/{sync-HA5SLSBA.js → sync-RDL2RUOV.js} +2 -2
- package/dist/cli/chunks/{task-handler-NV4HGMEG.js → task-handler-KPP6ZXA6.js} +2 -2
- package/dist/cli/chunks/{task-handlers-RXYWWOSU.js → task-handlers-MRK2BQWI.js} +3 -3
- package/dist/cli/chunks/{test-2Y6OXGEU.js → test-7NYFTHRY.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-N55VFOYT.js → test-scheduling-LGPKDMWD.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-FW3ZVMRP.js → token-bootstrap-H5JHB7TD.js} +2 -2
- package/dist/cli/chunks/{token-usage-YXKOB3U6.js → token-usage-TWPDS5U3.js} +2 -2
- package/dist/cli/chunks/{transformers-GBRSFAVA.js → transformers-GRNPPUHM.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-FJHMEHJS.js → tree-sitter-wasm-parser-DOH5F6TO.js} +2 -2
- package/dist/cli/chunks/{types-NVMRVSBH.js → types-NYV3YKE3.js} +2 -2
- package/dist/cli/chunks/unified-memory-6MXOYRXZ.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-HY3JJD5Z.js +2 -0
- package/dist/cli/chunks/unified-persistence-LKQNQYRY.js +2 -0
- package/dist/cli/chunks/{upgrade-L2OTYHD3.js → upgrade-GDJMRYAT.js} +2 -2
- package/dist/cli/chunks/{validate-3NWRQYTP.js → validate-SIRFOPPM.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-MDURRWXK.js → validate-swarm-XGMJYR6X.js} +2 -2
- package/dist/cli/chunks/{vibium-SZX7RB4H.js → vibium-NP6ENRKV.js} +2 -2
- package/dist/cli/chunks/visual-security-7TBWICHP.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-LGQT7JRD.js → web-tree-sitter-YDBWPYZD.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-EYYGHPPX.js → windsurf-installer-MFI6EAPH.js} +2 -2
- package/dist/cli/chunks/witness-chain-24SVOWQL.js +2 -0
- package/dist/cli/chunks/{witness-chain-YYYA2CU3.js → witness-chain-YHLBWQQ3.js} +2 -2
- package/dist/cli/chunks/{workflow-UD45FQAH.js → workflow-TA6RY7R5.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-XBDXCTLY.js +2 -0
- package/dist/cli/chunks/{wrappers-JXD3KNSR.js → wrappers-DS77IK4H.js} +2 -2
- package/dist/cli/commands/eval.js +2 -2
- package/dist/mcp/bundle.js +1 -1
- package/package.json +2 -2
- package/dist/cli/chunks/adapter-AMIHQ243.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-LRG2UG6P.js +0 -2
- package/dist/cli/chunks/base-WDL3FANJ.js +0 -2
- package/dist/cli/chunks/browser-workflow-W7S4IKWD.js +0 -2
- package/dist/cli/chunks/chunk-434VUSZP.js +0 -2
- package/dist/cli/chunks/client-VJNNIAMG.js +0 -2
- package/dist/cli/chunks/core-handlers-MV5CAR7O.js +0 -2
- package/dist/cli/chunks/cross-domain-router-ULY4NIML.js +0 -2
- package/dist/cli/chunks/dream-PIGWXWE4.js +0 -2
- package/dist/cli/chunks/heartbeat-scheduler-5BBLZP6R.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-FMEBL5T4.js +0 -2
- package/dist/cli/chunks/hnsw-index-K2R24V4Z.js +0 -2
- package/dist/cli/chunks/hybrid-router-LVF6N345.js +0 -2
- package/dist/cli/chunks/impact-analyzer-CCVVMGWE.js +0 -2
- package/dist/cli/chunks/init-wizard-KDPMO4G3.js +0 -2
- package/dist/cli/chunks/kernel-PBYNK5VA.js +0 -2
- package/dist/cli/chunks/knowledge-graph-C7LVHHLN.js +0 -2
- package/dist/cli/chunks/llm-router-service-LMTRJCPP.js +0 -2
- package/dist/cli/chunks/load-test-FHMZXTXD.js +0 -2
- package/dist/cli/chunks/memory-backend-UZHPCQTB.js +0 -2
- package/dist/cli/chunks/pattern-null-store-5PS4JN6V.js +0 -2
- package/dist/cli/chunks/protocol-executor-2GTGIOFD.js +0 -2
- package/dist/cli/chunks/provider-manager-VH6YTBB3.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-47JSO76G.js +0 -2
- package/dist/cli/chunks/queen-coordinator-C7EDY7IS.js +0 -2
- package/dist/cli/chunks/router-7DVH66WB.js +0 -2
- package/dist/cli/chunks/routing-feedback-4I2MF235.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-UN3ESMMW.js +0 -2
- package/dist/cli/chunks/safe-db-Y2ZXKWBK.js +0 -2
- package/dist/cli/chunks/schedule-PG2NVRGA.js +0 -2
- package/dist/cli/chunks/scheduler-CNH6WWU2.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-WWT4DRRP.js +0 -2
- package/dist/cli/chunks/unified-memory-PXEJKKMN.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-M7OI5WUU.js +0 -2
- package/dist/cli/chunks/unified-persistence-WR4VDTAF.js +0 -2
- package/dist/cli/chunks/visual-security-CKSZZHKG.js +0 -2
- package/dist/cli/chunks/witness-chain-IOQX3XFG.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-Z2ZJRWIN.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{a as x}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a as x}from"./chunk-DF7V6X3N.js";import{c as f}from"./chunk-222ZQTL5.js";import"./chunk-LRRQEAP5.js";x();import{createRequire as w}from"module";var S=f.create("agent-booster-wasm"),t={JavaScript:0,TypeScript:1,Python:2,Rust:3,Go:4,Java:5,C:6,Cpp:7},l={ExactReplace:0,FuzzyReplace:1,InsertAfter:2,InsertBefore:3,Append:4},v={0:"JavaScript",1:"TypeScript",2:"Python",3:"Rust",4:"Go",5:"Java",6:"C",7:"Cpp"},a=null,u=null,p=null;async function g(){if(a)return!0;if(p)return!1;try{if(a=w(import.meta.url)("./agent_booster_wasm.js"),!a)throw new Error("WASM module loaded but is null");return u=new a.AgentBoosterWasm,!0}catch(e){return p=e,console.warn("[AgentBoosterWASM] Failed to load WASM module:",e),!1}}function A(e){return{".js":t.JavaScript,".mjs":t.JavaScript,".cjs":t.JavaScript,".jsx":t.JavaScript,".ts":t.TypeScript,".tsx":t.TypeScript,".mts":t.TypeScript,".cts":t.TypeScript,".py":t.Python,".rs":t.Rust,".go":t.Go,".java":t.Java,".c":t.C,".h":t.C,".cpp":t.Cpp,".cc":t.Cpp,".cxx":t.Cpp,".hpp":t.Cpp}[e.toLowerCase()]??t.JavaScript}var M=[{name:"var-to-const",detect:(e,r)=>e.includes("var ")&&r.includes("const "),apply:(e,r)=>e.replace(/\bvar\s+/g,"const ")},{name:"var-to-let",detect:(e,r)=>e.includes("var ")&&r.includes("let "),apply:(e,r)=>e.replace(/\bvar\s+/g,"let ")},{name:"add-types-function",detect:(e,r)=>e.includes("function")&&!e.includes(":")&&r.includes(":"),apply:(e,r)=>r},{name:"async-wrapper",detect:(e,r)=>!e.includes("async")&&r.includes("async")&&r.includes("await"),apply:(e,r)=>r},{name:"try-catch-wrapper",detect:(e,r)=>!e.includes("try {")&&r.includes("try {"),apply:(e,r)=>r},{name:"null-check",detect:(e,r)=>!e.includes("if (!")&&!e.includes("if (!")&&(r.includes("if (!")||r.includes("?.")),apply:(e,r)=>r},{name:"test-assertion",detect:(e,r)=>e.includes("test(")&&!e.includes("expect(")&&r.includes("expect("),apply:(e,r)=>r}];function y(e,r){for(let n of M)if(n.detect(e,r))try{return{success:!0,code:n.apply(e,r),pattern:n.name}}catch(s){S.debug("Pattern transform failed, trying next",{pattern:n.name,error:s instanceof Error?s.message:String(s)});continue}return{success:!1,code:r}}async function b(e,r,n,s={}){let o=performance.now(),{confidenceThreshold:T=.5,allowFallback:d=!0}=s;if(!e.trim())return{success:!0,mergedCode:r,confidence:1,strategy:l.Append,syntaxValid:!0,source:"fallback",latencyMs:performance.now()-o};if(await g()&&u&&a)try{let c=a.WasmLanguage[v[n]],i=u.apply_edit(e,r,c);return{success:!0,mergedCode:i.merged_code,confidence:i.confidence,strategy:i.strategy,syntaxValid:i.syntax_valid,source:"wasm",latencyMs:performance.now()-o}}catch(c){let i=c;if(d){let m=y(e,r);if(m.success)return{success:!0,mergedCode:m.code,confidence:.7,strategy:l.FuzzyReplace,syntaxValid:!0,source:"pattern",latencyMs:performance.now()-o}}return{success:!1,mergedCode:r,confidence:0,strategy:l.Append,syntaxValid:!1,source:"fallback",latencyMs:performance.now()-o,error:i.message}}if(d){let c=y(e,r);return{success:c.success,mergedCode:c.code,confidence:c.success?.7:0,strategy:l.FuzzyReplace,syntaxValid:!0,source:"pattern",latencyMs:performance.now()-o}}return{success:!1,mergedCode:r,confidence:0,strategy:l.Append,syntaxValid:!1,source:"fallback",latencyMs:performance.now()-o,error:p?.message??"WASM not available"}}async function W(e,r={}){return Promise.all(e.map(({original:n,edit:s,language:o})=>b(n,s,o,r)))}async function C(){return g()}async function L(){return await g()&&a?a.AgentBoosterWasm.version():"unavailable"}async function R(){if(await g(),u&&a)try{u.apply_edit("function x() {}","function x() {}",a.WasmLanguage.JavaScript)}catch(e){console.debug("[AgentBoosterWASM] Warmup error:",e instanceof Error?e.message:e)}}var _={transform:b,batchTransform:W,isWasmAvailable:C,getVersion:L,warmup:R,Language:t,MergeStrategy:l,languageFromExtension:A};export{t as Language,l as MergeStrategy,W as batchTransform,_ as default,L as getVersion,C as isWasmAvailable,A as languageFromExtension,b as transform,R as warmup};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{b as p}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{b as p}from"./chunk-3IJS52OS.js";import{a as g}from"./chunk-OMDV6GFP.js";import"./chunk-QBVFONWU.js";import"./chunk-LRRQEAP5.js";import s from"chalk";var l=class{name="agent";description="Manage QE agents";cleanupAndExit;ensureInitialized;constructor(n,t){this.cleanupAndExit=n,this.ensureInitialized=t}register(n,t){let a=n.command("agent").description(this.description);a.command("list").description("List all agents").option("-d, --domain <domain>","Filter by domain").option("-s, --status <status>","Filter by status").action(async e=>{await this.executeList(e,t)}),a.command("spawn <domain>").description("Spawn an agent in a domain").option("-t, --type <type>","Agent type","worker").option("-c, --capabilities <caps>","Comma-separated capabilities","general").option("--no-progress","Disable progress indicator").action(async(e,o)=>{await this.executeSpawn(e,o,t)})}async executeList(n,t){if(await this.ensureInitialized())try{let a=n.domain?t.queen.getAgentsByDomain(n.domain):t.queen.listAllAgents();if(n.status&&(a=a.filter(e=>e.status===n.status)),console.log(s.blue(`
|
|
3
3
|
Agents (${a.length})
|
|
4
4
|
`)),a.length===0)console.log(s.gray(" No agents found"));else{let e=new Map;for(let i of a)e.has(i.domain)||e.set(i.domain,[]),e.get(i.domain).push(i);let o=Array.from(e.entries());for(let[i,m]of o){console.log(s.cyan(` ${i}:`));for(let r of m)console.log(` ${r.id}`),console.log(` Type: ${r.type}`),console.log(` Status: ${g(r.status)}`),r.startedAt&&console.log(s.gray(` Started: ${r.startedAt.toISOString()}`));console.log("")}}}catch(a){console.error(s.red(`
|
|
5
5
|
Failed to list agents:`),a),await this.cleanupAndExit(1)}}async executeSpawn(n,t,a){if(await this.ensureInitialized())try{let e=t.capabilities.split(",");console.log(s.blue(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import"./chunk-LRRQEAP5.js";import{existsSync as i,mkdirSync as d,unlinkSync as s,readdirSync as p,statSync as f}from"fs";import{join as o,basename as l}from"path";var v={branchDir:".agentic-qe/branches",defaultStrategy:"child-wins",orphanMaxAgeMs:36e5},g=class{config;parentAdapter;activeBranches=new Map;witnessChain=null;constructor(t,e){this.parentAdapter=t,this.config={...v,...e}}setWitnessChain(t){this.witnessChain=t}createBranch(t){if(this.activeBranches.has(t))throw new Error(`Branch already exists for agent ${t}`);i(this.config.branchDir)||d(this.config.branchDir,{recursive:!0});let e=o(this.config.branchDir,`${t}.rvf`),r=this.parentAdapter.path(),n=this.parentAdapter.derive(e),a={agentId:t,childPath:e,parentPath:r,childAdapter:n,createdAt:Date.now(),ingestLog:[]};return this.activeBranches.set(t,a),a}recordIngest(t,e){let r=this.activeBranches.get(t);if(r)for(let n of e)r.ingestLog.push({id:n.id,vector:n.vector})}async mergeBranch(t,e){let r=e??this.config.defaultStrategy,n=performance.now(),a=0;if(r==="child-wins"&&t.ingestLog.length>0)try{a=this.parentAdapter.ingest(t.ingestLog).accepted}catch(c){console.warn(`[AgentMemoryBranch] Merge replay failed for ${t.agentId}:`,c)}return this.witnessChain?.append("BRANCH_MERGE",{agentId:t.agentId,strategy:r,vectorsMerged:a,branchPath:t.childPath},`agent-${t.agentId}`),this.cleanupBranchFile(t),this.activeBranches.delete(t.agentId),{vectorsMerged:a,strategy:r,durationMs:performance.now()-n}}discardBranch(t){this.witnessChain?.append("BRANCH_DISCARD",{agentId:t.agentId,action:"discard",branchPath:t.childPath},`agent-${t.agentId}`),this.cleanupBranchFile(t),this.activeBranches.delete(t.agentId)}getBranch(t){return this.activeBranches.get(t)}getActiveBranches(){return Array.from(this.activeBranches.values())}listBranchFiles(){return i(this.config.branchDir)?p(this.config.branchDir).filter(e=>e.endsWith(".rvf")).map(e=>{let r=o(this.config.branchDir,e),n=f(r);return{agentId:l(e,".rvf"),path:r,sizeBytes:n.size,modifiedAt:n.mtime}}):[]}cleanupOrphans(t){let e=t??this.config.orphanMaxAgeMs,r=Date.now(),n=0;for(let a of this.listBranchFiles())if(r-a.modifiedAt.getTime()>e&&!this.activeBranches.has(a.agentId))try{s(a.path);let h=`${a.path}.idmap.json`;i(h)&&s(h),n++}catch{}return n}cleanupBranchFile(t){try{t.childAdapter.close()}catch{}try{i(t.childPath)&&s(t.childPath);let e=`${t.childPath}.idmap.json`;i(e)&&s(e)}catch{}}};export{g as AgentMemoryBranch};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f}from"./chunk-4I6FK67T.js";import"./chunk-NKYMHEHY.js";import"./chunk-BU2I77YW.js";import"./chunk-OAXDI4XM.js";import"./chunk-JJELOEIY.js";import"./chunk-FQBNPSV2.js";import"./chunk-K6IU2MV4.js";import"./chunk-6F5KPT6U.js";import"./chunk-CJTDQJ7E.js";import"./chunk-YBM4LUSF.js";import"./chunk-TY7XPI6R.js";import"./chunk-PY3HWJRJ.js";import"./chunk-34NT5NBZ.js";import"./chunk-32E2OPIE.js";import"./chunk-HBWAMCVB.js";import"./chunk-4MJQJQLY.js";import"./chunk-DF7V6X3N.js";import"./chunk-222ZQTL5.js";import"./chunk-U7EGKKN3.js";import"./chunk-QBVFONWU.js";import"./chunk-XCYPVJ34.js";import"./chunk-I7M574IO.js";import"./chunk-F5RZSNHI.js";import"./chunk-2MLISLRR.js";import"./chunk-XWPUCPYW.js";import"./chunk-6OLPKIYU.js";import"./chunk-Z44VJC5U.js";import"./chunk-4RGV6Z2H.js";import"./chunk-IXAABYGS.js";import"./chunk-DYNO72WD.js";import"./chunk-MRLGQX7Y.js";import"./chunk-QDBFB4XD.js";import"./chunk-TTLAWPEN.js";import"./chunk-7NK2H7H5.js";import"./chunk-76JYG426.js";import"./chunk-LRRQEAP5.js";export{b as AQELearningEngine,a as DEFAULT_ENGINE_CONFIG,c as DEFAULT_META_LEARNING_CONFIG,d as MetaLearningEngine,e as createAQELearningEngine,f as createDefaultLearningEngine};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{a as c,c as f}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a as c,c as f}from"./chunk-XWPUCPYW.js";import"./chunk-LRRQEAP5.js";f();import{Command as $}from"commander";import r from"chalk";function x(v,g,p){let m=new $("arena").description("Competitive test-strategy tournaments (ADR-104)").addHelpText("after",`
|
|
3
3
|
Examples:
|
|
4
4
|
# Run a 4-strategy tournament against the demo fixture (reproducible under --seed)
|
|
5
5
|
aqe arena run --strategies 4 --target fixtures/arena-demo --seed 42
|
|
@@ -9,10 +9,10 @@ Examples:
|
|
|
9
9
|
|
|
10
10
|
# List persisted runs
|
|
11
11
|
aqe arena list
|
|
12
|
-
`);return m.command("run").description("Run a seeded strategy tournament against an arena fixture").requiredOption("--target <dir>","Arena fixture directory (src/*.mjs + tests/*.test.mjs)").option("--strategies <n>","Number of strategies","4").option("--seed <n>","RNG seed (same seed = same tournament)","42").option("--max-mutants <n>","Mutant sample cap","24").option("--evolve <steps>","Hill-climb steps from the winner","0").option("--json","Output the full arena-result@1 envelope as JSON").action(async a=>{try{let{runArena:i}=await import("./arena-
|
|
12
|
+
`);return m.command("run").description("Run a seeded strategy tournament against an arena fixture").requiredOption("--target <dir>","Arena fixture directory (src/*.mjs + tests/*.test.mjs)").option("--strategies <n>","Number of strategies","4").option("--seed <n>","RNG seed (same seed = same tournament)","42").option("--max-mutants <n>","Mutant sample cap","24").option("--evolve <steps>","Hill-climb steps from the winner","0").option("--json","Output the full arena-result@1 envelope as JSON").action(async a=>{try{let{runArena:i}=await import("./arena-P4IUBKZP.js"),t=i({target:a.target,strategies:parseInt(a.strategies,10),seed:parseInt(a.seed,10),maxMutants:parseInt(a.maxMutants,10),evolveSteps:parseInt(a.evolve,10),log:a.json?()=>{}:e=>console.error(r.dim(` ${e}`))});try{let{getUnifiedMemory:e}=await import("./unified-memory-6MXOYRXZ.js"),s=e();s.isInitialized()||await s.initialize(),s.getDatabase().prepare("INSERT OR REPLACE INTO kv_store (namespace, key, value) VALUES ('arena', ?, ?)").run(`run:${t.seed}:${t.target}`,JSON.stringify(t))}catch(e){console.error(r.dim(` note: run not persisted (${c(e)})`))}if(a.json){console.log(JSON.stringify(t,null,2));return}let d=new Map(t.strategies.map(e=>[e.id,e]));console.log(r.blue(`
|
|
13
13
|
Arena: ${t.target} \xB7 seed ${t.seed} \xB7 ${t.mutantsTotal} mutants
|
|
14
14
|
`)),console.log(" rank id kill-rate coverage cost fitness groups"),t.ranking.forEach((e,s)=>{let n=d.get(e),u=n.coveragePct===null?" n/a":`${n.coveragePct.toFixed(2)}%`.padStart(7);console.log(` ${String(s+1).padEnd(5)}${n.id.padEnd(5)}${(n.killRate*100).toFixed(1).padStart(6)}% ${u} ${n.suiteCostRatio.toFixed(2).padEnd(6)}${n.fitness.toFixed(4).padEnd(9)}${n.name}`+(n.baselinePassed?"":r.red(" [baseline FAILED]")))}),console.log(`
|
|
15
15
|
competitive array (row beats column = 1):`);let o=t.strategies.map(e=>e.id);if(console.log(` ${o.map(e=>e.padEnd(4)).join("")}`),t.competitiveArray.forEach((e,s)=>{console.log(` ${o[s].padEnd(4)}${e.map(n=>String(n).padStart(2).padEnd(4)).join("")}`)}),t.evolution.length>0){console.log(`
|
|
16
16
|
evolution:`);for(let e of t.evolution)console.log(` step ${e.step}: [${e.groups.join("+")}] fitness ${e.fitness.toFixed(4)} ${e.accepted?r.green("accepted"):"rejected"}`)}let l=d.get(t.ranking[0]);console.log(r.green(`
|
|
17
17
|
winner: ${l.id} [${l.name}] \u2014 kill ${(l.killRate*100).toFixed(1)}%, fitness ${l.fitness.toFixed(4)}
|
|
18
|
-
`))}catch(i){console.error(r.red(` \u2717 ${c(i)}`)),await g(1)}}),m.command("list").description("List persisted arena runs").option("--json","Output as JSON").action(async a=>{if(await p())try{let{getUnifiedMemory:i}=await import("./unified-memory-
|
|
18
|
+
`))}catch(i){console.error(r.red(` \u2717 ${c(i)}`)),await g(1)}}),m.command("list").description("List persisted arena runs").option("--json","Output as JSON").action(async a=>{if(await p())try{let{getUnifiedMemory:i}=await import("./unified-memory-6MXOYRXZ.js"),t=i();t.isInitialized()||await t.initialize();let d=t.getDatabase().prepare("SELECT key, value FROM kv_store WHERE namespace = 'arena' ORDER BY key").all();if(a.json){console.log(JSON.stringify(d.map(o=>({key:o.key,result:JSON.parse(o.value)})),null,2));return}if(d.length===0){console.log(r.yellow(" no persisted arena runs"));return}for(let o of d){let l=JSON.parse(o.value),e=l.strategies.find(s=>s.id===l.ranking[0]);console.log(` ${r.green(o.key)} \u2014 winner ${e?.id} [${e?.name}] fitness ${e?.fitness}`)}}catch(i){console.error(r.red(` \u2717 ${c(i)}`)),await g(1)}}),m}export{x as createArenaCommand};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import"./chunk-LRRQEAP5.js";import*as K from"fs";import*as M from"path";function G(t){let r=t>>>0;return function(){r|=0,r=r+1831565813|0;let n=Math.imul(r^r>>>15,1|r);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function w(t,r){return Math.floor(t()*r)}var z=[["===","!=="],["!==","==="],["<=","<"],[">=",">"],["&&","||"],["||","&&"],["<","<="],[">",">="],["+","-"],["*","+"]];function H(t){let r=new Array(t.length).fill(!1),n=0,e="code";for(;n<t.length;){let s=t[n],i=t[n+1];e==="code"?(s==="'"?e="single":s==='"'?e="double":s==="`"?e="template":s==="/"&&i==="/"?e="line-comment":s==="/"&&i==="*"&&(e="block-comment"),e!=="code"&&(r[n]=!0)):(r[n]=!0,e==="single"&&s==="'"&&t[n-1]!=="\\"||e==="double"&&s==='"'&&t[n-1]!=="\\"||e==="template"&&s==="`"&&t[n-1]!=="\\"||e==="line-comment"&&s===`
|
|
3
3
|
`?e="code":e==="block-comment"&&s==="*"&&i==="/"&&(r[n+1]=!0,n++,e="code")),n++}return r}function E(t,r){let n=1;for(let e=0;e<r;e++)t[e]===`
|
|
4
4
|
`&&n++;return n}function A(t,r){let n=H(t),e=new Array(t.length).fill(!1),s=[];for(let[i,c]of z){let a=t.indexOf(i);for(;a!==-1;){let u=a+i.length,y=e.slice(a,u).some(Boolean),h=n.slice(a,u).some(Boolean),v=i===">"&&t[a-1]==="=",S=(i==="<"||i===">")&&(t[u]==="="||t[a-1]==="<"||t[a-1]===">");if(!y&&!h&&!v&&!S){for(let d=a;d<u;d++)e[d]=!0;s.push({id:`${r}:${E(t,a)}:${a}:${i}->${c}`,index:a,from:i,to:c,line:E(t,a)})}a=t.indexOf(i,a+1)}}return s.sort((i,c)=>i.index-c.index)}function W(t,r){return t.slice(0,r.index)+r.to+t.slice(r.index+r.from.length)}import*as m from"fs";import*as f from"path";import*as L from"os";import{spawnSync as J}from"child_process";function I(t){let r=f.resolve(t),n=f.join(r,"src"),e=f.join(r,"tests");if(!m.existsSync(n)||!m.existsSync(e))throw new Error(`not an arena fixture (expected src/ and tests/): ${r}`);let s=m.readdirSync(n).filter(c=>c.endsWith(".mjs")).sort().map(c=>f.join("src",c)),i={};for(let c of m.readdirSync(e).filter(a=>a.endsWith(".test.mjs")).sort())i[c.replace(".test.mjs","")]=f.join("tests",c);if(s.length===0||Object.keys(i).length===0)throw new Error(`fixture has no src/*.mjs or tests/*.test.mjs: ${r}`);return{root:r,sourceFiles:s,testGroups:i}}function T(t,r){let n=m.mkdtempSync(f.join(r,"arena-ws-"));m.mkdirSync(f.join(n,"src"),{recursive:!0}),m.mkdirSync(f.join(n,"tests"),{recursive:!0});for(let e of t.layout.sourceFiles){let s=t.mutatedFile&&t.mutatedFile.relPath===e?t.mutatedFile.content:m.readFileSync(f.join(t.layout.root,e),"utf8");m.writeFileSync(f.join(n,e),s)}for(let e of t.groups){let s=t.layout.testGroups[e];m.copyFileSync(f.join(t.layout.root,s),f.join(n,s))}return n}function $(t,r={}){let n=["--test"];r.coverage&&n.push("--experimental-test-coverage");let e=m.readdirSync(f.join(t,"tests")).filter(u=>u.endsWith(".test.mjs")).sort().map(u=>f.join("tests",u));n.push(...e);let s=process.hrtime.bigint(),i=J(process.execPath,n,{cwd:t,timeout:r.timeoutMs??12e4,encoding:"utf8"}),c=Number(process.hrtime.bigint()-s)/1e6,a=null;if(r.coverage){let u=/all files\s*\|\s*([\d.]+)/.exec(i.stdout??"");a=u?Number(u[1]):null}return{ok:i.status===0,durationMs:Math.round(c),coveragePct:a}}function N(){return m.mkdtempSync(f.join(L.tmpdir(),"qe-arena-"))}function B(t){m.rmSync(t,{recursive:!0,force:!0})}var k={kill:.6,coverage:.3,runtimePenalty:.1};function Q(t,r,n){let e=[...t].sort(),s=new Set([e.join("+")]),i=[{id:"s1",name:`all(${e.join("+")})`,groups:e}],c=0;for(;i.length<r&&c++<200;){let a=e.filter(()=>n()<.5);if(a.length===0)continue;let u=a.join("+");s.has(u)||(s.add(u),i.push({id:`s${i.length+1}`,name:u,groups:a}))}return i}function C(t,r,n){let e=r===null?0:r/100,s=k.kill*t+k.coverage*e-k.runtimePenalty*n;return Math.round(s*1e4)/1e4}function D(t,r,n,e){let s=T({layout:t,groups:r.groups},e),i=$(s,{coverage:!0});if(!i.ok)return{baselinePassed:!1,killed:0,total:0,coveragePct:i.coveragePct,runtimeMs:i.durationMs};let c=0,a=0;for(let u of n)for(let y of u.mutants){a++;let h=T({layout:t,groups:r.groups,mutatedFile:{relPath:u.relPath,content:W(u.source,y)}},e);$(h).ok||c++}return{baselinePassed:!0,killed:c,total:a,coveragePct:i.coveragePct,runtimeMs:i.durationMs}}function rt(t){let r=t.seed??42,n=t.log??(()=>{}),e=G(r),s=I(t.target),i=N();try{let c=t.maxMutants??24,a=s.sourceFiles.map(l=>{let o=K.readFileSync(M.join(s.root,l),"utf8");return{relPath:l,source:o,mutants:A(o,l)}}),u=a.flatMap(l=>l.mutants.map(o=>({file:l.relPath,m:o})));if(u.length>c){let l=new Set;for(;l.size<c;)l.add(u[w(e,u.length)].m.id);for(let o of a)o.mutants=o.mutants.filter(p=>l.has(p.id));u=a.flatMap(o=>o.mutants.map(p=>({file:o.relPath,m:p})))}n(`mutants: ${u.length} (of ${a.reduce((l,o)=>l+A(o.source,o.relPath).length,0)} enumerated)`);let y=Q(Object.keys(s.testGroups),t.strategies??4,e),h={},v=y.map(l=>{n(`evaluating ${l.id} [${l.name}] ...`);let o=D(s,l,a,i);return h[l.id]=o.runtimeMs,{s:l,e:o}}),S=Object.keys(s.testGroups).length,d=v.map(({s:l,e:o})=>{let p=o.total>0?Math.round(o.killed/o.total*1e4)/1e4:0,g=Math.round(l.groups.length/S*1e4)/1e4;return{...l,baselinePassed:o.baselinePassed,mutantsKilled:o.killed,mutantsTotal:o.total,killRate:p,coveragePct:o.coveragePct,suiteCostRatio:g,fitness:o.baselinePassed?C(p,o.coveragePct,g):0}}),P=[...d].sort((l,o)=>o.fitness-l.fitness||l.id.localeCompare(o.id)).map(l=>l.id),U=d.map(l=>d.map(o=>l.fitness>o.fitness?1:l.fitness<o.fitness?-1:0)),j=[];if(t.evolveSteps&&t.evolveSteps>0){let l=Object.keys(s.testGroups).sort(),o=d.find(g=>g.id===P[0]).groups,p=d.find(g=>g.id===P[0]).fitness;for(let g=1;g<=t.evolveSteps;g++){let R=l[w(e,l.length)],b=o.includes(R)?o.filter(q=>q!==R):[...o,R].sort();if(b.length===0){j.push({step:g,groups:b,fitness:0,accepted:!1});continue}let x=D(s,{id:`evo${g}`,name:b.join("+"),groups:b},a,i),_=x.total>0?x.killed/x.total:0,F=x.baselinePassed?C(_,x.coveragePct,b.length/l.length):0,O=F>p;j.push({step:g,groups:b,fitness:F,accepted:O}),O&&(o=b,p=F)}}return{contract:"arena-result@1",seed:r,target:M.relative(process.cwd(),s.root)||".",weights:{...k},mutantsTotal:u.length,strategies:d,ranking:P,competitiveArray:U,evolution:j,informational:{runtimesMs:h}}}finally{B(i)}}export{Q as buildStrategies,rt as runArena};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{d as c,e as u,f as h,g as m}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{d as c,e as u,f as h,g as m}from"./chunk-C5CY5NSW.js";import{m as p}from"./chunk-HBWAMCVB.js";import"./chunk-4MJQJQLY.js";import"./chunk-DF7V6X3N.js";import"./chunk-222ZQTL5.js";import{b as s}from"./chunk-U7EGKKN3.js";import"./chunk-QBVFONWU.js";import"./chunk-F5RZSNHI.js";import"./chunk-XWPUCPYW.js";import"./chunk-Z44VJC5U.js";import{p as l,q as d}from"./chunk-4RGV6Z2H.js";import"./chunk-IXAABYGS.js";import"./chunk-DYNO72WD.js";import"./chunk-MRLGQX7Y.js";import"./chunk-QDBFB4XD.js";import"./chunk-TTLAWPEN.js";import"./chunk-7NK2H7H5.js";import"./chunk-76JYG426.js";import{g as f}from"./chunk-LRRQEAP5.js";import{Command as g}from"commander";import a from"chalk";p();import{existsSync as y}from"node:fs";import b from"node:path";function C(n,i){let t=[];t.push(a.bold("Witness Chain Audit Verification")),t.push("");let e=i?a.green("ENABLED"):a.yellow("DISABLED");t.push(` Feature Flag: ${e}`),t.push(` Chain Length: ${n.length} receipts`);let r=n.valid?a.green("VALID"):a.red("BROKEN");return t.push(` Integrity: ${r}`),n.length>0&&t.push(` Last Hash: ${n.lastHash.slice(0,16)}...`),!n.valid&&n.brokenAt>=0&&(t.push(""),t.push(a.red(` Break detected at index ${n.brokenAt}`)),t.push(a.red(` ${n.message}`))),t.push(""),t.join(`
|
|
3
3
|
`)}function x(){try{let n=s(),i=b.join(n,".agentic-qe","memory.db");if(!y(i))return null;let t=(d(),f(l)),e=new t(i),r=c(e),o=h(r);return e.close(),o}catch{return null}}async function A(n){let i=m(),e=(x()??u()).verifyChain(),r={featureEnabled:i,chainLength:e.length,integrity:e.valid,brokenAt:e.brokenAt,lastHash:e.lastHash,message:e.message};return n.format==="json"?console.log(JSON.stringify(r,null,2)):console.log(C(e,i)),r}function v(n,i,t){let e=new g("audit").description("Witness chain audit trail management");return e.command("verify").description("Verify witness chain integrity").option("-F, --format <format>","Output format (json|text)","text").action(async r=>{try{await A({format:r.format}),await i(0)}catch(o){console.error("Failed to verify witness chain:",o),await i(1)}}),e}export{v as createAuditCommand,C as formatVerificationText,A as handleAuditVerify};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j}from"./chunk-XK7P7OXO.js";import"./chunk-V7WBNB2S.js";import"./chunk-HBWAMCVB.js";import"./chunk-4MJQJQLY.js";import"./chunk-DF7V6X3N.js";import"./chunk-222ZQTL5.js";import"./chunk-U7EGKKN3.js";import"./chunk-QBVFONWU.js";import"./chunk-F5RZSNHI.js";import"./chunk-XWPUCPYW.js";import"./chunk-6OLPKIYU.js";import"./chunk-Z44VJC5U.js";import"./chunk-4RGV6Z2H.js";import"./chunk-IXAABYGS.js";import"./chunk-DYNO72WD.js";import"./chunk-MRLGQX7Y.js";import"./chunk-QDBFB4XD.js";import"./chunk-TTLAWPEN.js";import"./chunk-7NK2H7H5.js";import"./chunk-76JYG426.js";import"./chunk-LRRQEAP5.js";export{j as MCPToolBase,i as defaultToolLogger,h as getLLMRouter,d as getMemoryBackend,f as getSharedLLMRouter,b as getSharedMemoryBackend,a as registerRvfResetFn,g as resetSharedLLMRouter,c as resetSharedMemoryBackend,e as setSharedLLMRouter};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q as p}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q as p}from"./chunk-4RGV6Z2H.js";import"./chunk-LRRQEAP5.js";p();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,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{a as A,b as L,c as F,d as R,e as Y,f as T,g as P,h as C,i as j,j as X,k as V,l as ge,m as $,n as Z,o as ye,p as _,q as J,r as U,s as W}from"./chunk-7RTI5WT4.js";import{h as pe}from"./chunk-6RFPELCD.js";import"./chunk-RA7HEY5G.js";import"./chunk-UQYDFT6I.js";import"./chunk-434VUSZP.js";import"./chunk-F72A356B.js";import"./chunk-QJXZ4SU7.js";import{b as x,d as Q}from"./chunk-DFBVWMX3.js";import{a as fe,b as me,c as ue,d as k,f as We}from"./chunk-M3APJ7VS.js";import"./chunk-JPL53G4V.js";import"./chunk-O4MNYX4X.js";import{a as O,b as Ue}from"./chunk-7NXVVIJZ.js";import"./chunk-H6UPZFI6.js";import"./chunk-T6SCQVWH.js";import"./chunk-TUFU3BAK.js";import"./chunk-MSJGDIRP.js";import"./chunk-O2H5WYFK.js";import"./chunk-LHZOIXJ6.js";import"./chunk-B3H2TTYT.js";import"./chunk-Q4LYWIEX.js";import"./chunk-UNDPB5SS.js";import B from"path";import o from"chalk";Ue();Q();import{existsSync as z,mkdirSync as ze,writeFileSync as He,readFileSync as ee}from"fs";import{join as E,resolve as ne}from"path";var Ke={rl_q_values:"includeQValues",dream_insights:"includeDreamInsights",dream_cycles:"includeDreamInsights",witness_chain:"includeWitnessChain",vectors:"includeVectors"};function Ge(e,n){let r=Ke[e.tableName];return!(r&&n[r]===!1)}var Qe=1e4;function Ye(e,n,r,t){if(!Ge(n,r))return Z(E(t,n.fileName),[]),{count:0,rows:[]};let[a,s]=n.domainColumn?$(r.domains,n.domainColumn):[void 0,[]];if(X(e,n.tableName,a,s)>=Qe){let d=n.blobColumns,c=d&&d.length>0?p=>T(p,d):void 0;return{count:ye(E(t,n.fileName),ge(e,n.tableName,a,s),c)}}let i=V(e,n.tableName,a,s);return n.blobColumns&&n.blobColumns.length>0&&(i=i.map(d=>T(d,n.blobColumns))),Z(E(t,n.fileName),i),{count:i.length,rows:i}}function be(e){let n=[];for(let r of R){let t=E(e,r.fileName);z(t)?n.push(C(ee(t,"utf-8"))):n.push(C(""))}return C(n.join(":"))}function he(e,n,r="memory.db"){let t=ne(n.outputPath);z(t)||ze(t,{recursive:!0});let a=0,s={},l=new Set;for(let u of R){let p=Ye(e,u,n,t);if(s[u.tableName]=p.count,a+=p.count,u.tableName==="qe_patterns"){if(p.rows)for(let f of p.rows)f.qe_domain&&l.add(f.qe_domain);else if(p.count>0){let[f,w]=u.domainColumn?$(n.domains,u.domainColumn):[void 0,[]],y=`SELECT DISTINCT qe_domain FROM qe_patterns ${f?`WHERE ${f} AND qe_domain IS NOT NULL`:"WHERE qe_domain IS NOT NULL"}`;try{let g=e.prepare(y).all(...w||[]);for(let v of g)l.add(v.qe_domain)}catch{}}}}let i=n.includeVectors!==!1?X(e,"vectors"):0,d=be(t),c={version:"3.0",exportedAt:new Date().toISOString(),sourceDb:r,stats:{patternCount:s.qe_patterns||0,vectorCount:i,qValueCount:s.rl_q_values||0,dreamInsightCount:s.dream_insights||0,witnessChainLength:s.witness_chain||0,totalRecords:a},domains:[...l].sort(),checksum:d,tableRecordCounts:s};return He(E(t,"manifest.json"),JSON.stringify(c,null,2),"utf-8"),c}var Xe=new Set(["qe_patterns","rl_q_values","dream_insights","witness_chain"]);function Ze(e){return e==="1.0"?R.filter(n=>Xe.has(n.tableName)):e==="3.0"?R:(console.warn(`[brain-import] Unknown manifest version '${e}'. Attempting full import \u2014 some files may be missing.`),R)}function we(e,n,r){let t=ne(n),a=E(t,"manifest.json");if(!z(a))throw new Error(`Manifest not found at ${a}`);let s=x(ee(a,"utf-8")),l=be(t);if(l!==s.checksum)throw new Error(`Checksum mismatch: expected ${s.checksum}, got ${l}. The export may have been tampered with or corrupted.`);let i=Ze(s.version);if(r.dryRun){let f=0;for(let w of i){let m=_(E(t,w.fileName),x);f+=m.length}return{imported:f,skipped:0,conflicts:0}}W(e);let d=0,c=0,u=0;return e.transaction(()=>{for(let f of i){let w=E(t,f.fileName),m=_(w,x);f.blobColumns&&f.blobColumns.length>0&&(m=m.map(y=>P(y,f.blobColumns)));for(let y of m){let g;if(f.dedupColumns&&f.dedupColumns.length>0)g=U(e,f.tableName,y,f.dedupColumns);else{let v=A[f.tableName]||"id",b=F[f.tableName],I=L[f.tableName];g=J(e,f.tableName,y,v,r.mergeStrategy,b,I)}d+=g.imported,c+=g.skipped,u+=g.conflicts}}})(),{imported:d,skipped:c,conflicts:u}}function ve(e){let n=ne(e),r=E(n,"manifest.json");if(!z(r))throw new Error(`Manifest not found at ${r}`);return x(ee(r,"utf-8"))}We();import{existsSync as H,statSync as en,unlinkSync as Re,writeFileSync as nn}from"fs";import{resolve as te}from"path";function Se(e,n,r="memory.db"){if(!k())throw new Error("@ruvector/rvf-node is not available. Install it or use --format jsonl instead.");let t=te(n.outputPath),a=n.dimension??384;H(t)&&Re(t);let s=`${t}.idmap.json`;H(s)&&Re(s);let l=fe(t,a);try{let i={},d=new Set,c=0;for(let S of R){let[h,ce]=S.domainColumn?$(n.domains,S.domainColumn):[void 0,[]],D=V(e,S.tableName,h,ce);if(S.tableName==="qe_patterns")for(let q of D)q.qe_domain&&d.add(q.qe_domain);let G=Y[S.tableName];G&&G.length>0&&(D=D.map(q=>T(q,G))),i[S.tableName]=D,c+=D.length}let u=0,p=[];if(j(e,"qe_pattern_embeddings")){let S=e.prepare("SELECT pattern_id, embedding, dimension FROM qe_pattern_embeddings").all();for(let h of S)h.embedding&&h.dimension===a&&p.push({id:`pe:${h.pattern_id}`,vector:new Float32Array(h.embedding.buffer,h.embedding.byteOffset,a),metadata:{tableName:"qe_pattern_embeddings"}})}if(j(e,"captured_experiences")){let S=e.prepare("SELECT id, embedding, embedding_dimension, domain, quality FROM captured_experiences WHERE embedding IS NOT NULL").all();for(let h of S)h.embedding_dimension===a&&p.push({id:`exp:${h.id}`,vector:new Float32Array(h.embedding.buffer,h.embedding.byteOffset,a),metadata:{tableName:"captured_experiences",domain:h.domain,confidence:h.quality}})}if(j(e,"sona_patterns")){let S=e.prepare("SELECT id, state_embedding, domain, confidence FROM sona_patterns WHERE state_embedding IS NOT NULL").all();for(let h of S)h.state_embedding.byteLength/4===a&&p.push({id:`sona:${h.id}`,vector:new Float32Array(h.state_embedding.buffer,h.state_embedding.byteOffset,a),metadata:{tableName:"sona_patterns",domain:h.domain,confidence:h.confidence}})}p.length>0&&(u=l.ingest(p).accepted);let f={version:"3.0",format:"rvf",exportedAt:new Date().toISOString(),sourceDb:r,domains:[...d].sort(),tables:i},w=JSON.stringify(f),m=C(w),y=Buffer.from(w);l.embedKernel(y);let g=n.sign?l.sign(y)??void 0:void 0,v=g?n.signerKeyId??"default":void 0,b=l.fileId(),I=b?{fileId:b,parentId:l.parentId(),lineageDepth:l.lineageDepth()}:void 0,N=l.status(),M={version:"3.0",format:"rvf",exportedAt:f.exportedAt,sourceDb:r,stats:{patternCount:(i.qe_patterns||[]).length,embeddingCount:u,qValueCount:(i.rl_q_values||[]).length,dreamInsightCount:(i.dream_insights||[]).length,witnessChainLength:(i.witness_chain||[]).length,totalRecords:c},domains:f.domains,checksum:m,rvfStatus:{totalVectors:N.totalVectors,totalSegments:N.totalSegments,fileSizeBytes:N.fileSizeBytes},...g?{signature:g,signerKeyId:v}:{},...I?{lineage:I}:{}};if(g)try{l.freeze()}catch{}let Je=`${t}.manifest.json`;return nn(Je,JSON.stringify(M,null,2),"utf-8"),M}finally{l.close()}}var tn={patterns:"qe_patterns",qValues:"rl_q_values",dreamInsights:"dream_insights",witnessChain:"witness_chain"};function xe(e,n,r){if(!k())throw new Error("@ruvector/rvf-node is not available. Install it or use JSONL format.");let t=te(n);if(!H(t))throw new Error(`RVF file not found: ${t}`);let a=me(t);try{let s=a.verifyWitness();if(!s.valid&&(s.totalEntries>0||s.errors.length>0)){let m=s.errors.length>0?s.errors.join("; "):"unknown integrity error";throw new Error(`RVF witness verification failed: ${m}`)}let l=a.extractKernel();if(!l||!l.image)throw new Error("No brain data found in RVF file (missing kernel segment)");let i;try{i=JSON.parse(l.image.toString("utf-8"))}catch(m){throw new Error(`Failed to parse brain kernel data as JSON: ${m instanceof Error?m.message:m}`)}if(r.dryRun){let m=0;if(i.tables)for(let y of Object.values(i.tables))m+=y?.length??0;else m=(i.patterns?.length??0)+(i.qValues?.length??0)+(i.dreamInsights?.length??0)+(i.witnessChain?.length??0);return{imported:m,skipped:0,conflicts:0,embeddingsRestored:0}}W(e);let d=0,c=0,u=0,p=0,f={};if(i.tables)Object.assign(f,i.tables);else for(let[m,y]of Object.entries(tn)){let g=i[m];Array.isArray(g)&&(f[y]=g)}if(e.transaction(()=>{for(let m of R){let y=f[m.tableName];if(!y||!Array.isArray(y))continue;let g=Y[m.tableName];if(g&&g.length>0){y=y.map(v=>P(v,g));for(let v of y)for(let b of g)v[b]instanceof Buffer&&p++}for(let v of y){let b;if(m.dedupColumns&&m.dedupColumns.length>0)b=U(e,m.tableName,v,m.dedupColumns);else{let I=A[m.tableName]||"id",N=F[m.tableName],M=L[m.tableName];b=J(e,m.tableName,v,I,r.mergeStrategy,N,M)}d+=b.imported,c+=b.skipped,u+=b.conflicts}}})(),u>0)try{a.compact()}catch{}return{imported:d,skipped:c,conflicts:u,embeddingsRestored:p}}finally{a.close()}}function K(e){if(!k())throw new Error("@ruvector/rvf-node is not available.");let n=te(e);if(!H(n))throw new Error(`RVF file not found: ${n}`);let r=ue(n);try{let t=r.extractKernel();if(!t||!t.image)throw new Error("No brain data found in RVF file");let a=t.image.toString("utf-8"),s;try{s=JSON.parse(a)}catch(w){throw new Error(`Failed to parse brain kernel data as JSON: ${w instanceof Error?w.message:w}`)}let l=r.status(),i=en(n).size,d=s.tables,c=d?d.qe_patterns?.length??0:s.patterns?.length??0,u=d?d.rl_q_values?.length??0:s.qValues?.length??0,p=d?d.dream_insights?.length??0:s.dreamInsights?.length??0,f=d?d.witness_chain?.length??0:s.witnessChain?.length??0;return{version:"3.0",format:"rvf",exportedAt:s.exportedAt??"unknown",sourceDb:s.sourceDb??"unknown",stats:{patternCount:c,embeddingCount:l.totalVectors,qValueCount:u,dreamInsightCount:p,witnessChainLength:f},domains:s.domains??[],checksum:C(a),rvfStatus:{totalVectors:l.totalVectors,totalSegments:l.totalSegments,fileSizeBytes:i}}}finally{r.close()}}function re(){return k()}Q();import{existsSync as ae,readFileSync as rn,statSync as on}from"fs";import{join as oe,resolve as Ce}from"path";function Ie(e,n,r={}){let t=Ce(e),a=Ce(n),s=Ee(t),l=Ee(a),i=Be(t,s),d=Be(a,l),c=s==="jsonl"&&l==="jsonl",u=ln({pathA:t,pathB:a,manifestA:i,manifestB:d,recordLevel:c,tableFilter:r.tableFilter,maxIdsPerBucket:r.maxIdsPerBucket??500}),p=new Set(i.domains),f=new Set(d.domains),w=i.domains.filter(b=>!f.has(b)),m=d.domains.filter(b=>!p.has(b)),y=i.checksum===d.checksum,g=i.version===d.version,v=y&&g&&u.every(b=>b.delta===0&&(b.added?.length??0)===0&&(b.removed?.length??0)===0&&(b.changed?.length??0)===0);return{pathA:t,pathB:a,formatA:s,formatB:l,manifestA:i,manifestB:d,checksumMatch:y,versionMatch:g,identical:v,recordLevel:c,tableDiffs:u,domainsOnlyInA:w,domainsOnlyInB:m}}function Ee(e){if(!ae(e))throw new Error(`Path not found: ${e}`);if(e.endsWith(".rvf"))return"rvf";if(on(e).isFile())throw new Error(`Unsupported brain export: ${e} (expected a .rvf file or a JSONL directory)`);return"jsonl"}function Be(e,n){return n==="rvf"?sn(e):an(e)}function an(e){let n=oe(e,"manifest.json");if(!ae(n))throw new Error(`Manifest not found at ${n}`);let r=x(rn(n,"utf-8"));return Oe(r,"jsonl")}function sn(e){let n=K(e);return Oe(n,"rvf")}function Oe(e,n){return{format:n,version:e.version??"unknown",exportedAt:e.exportedAt??"unknown",sourceDb:e.sourceDb??"unknown",checksum:e.checksum??"",totalRecords:e.stats?.totalRecords??0,domains:e.domains??[],tableRecordCounts:e.tableRecordCounts??{}}}function ln(e){let n=e.tableFilter?R.filter(t=>t.tableName===e.tableFilter):R;if(e.tableFilter&&n.length===0)throw new Error(`Unknown table: ${e.tableFilter}`);let r=[];for(let t of n){let a=e.manifestA.tableRecordCounts[t.tableName]??0,s=e.manifestB.tableRecordCounts[t.tableName]??0,l=s-a,i,d,c;if(e.recordLevel&&dn(t)){let u=cn(oe(e.pathA,t.fileName),oe(e.pathB,t.fileName),t,e.maxIdsPerBucket);i=u.added,d=u.removed,c=u.changed}r.push({tableName:t.tableName,countA:a,countB:s,delta:l,...i!==void 0?{added:i}:{},...d!==void 0?{removed:d}:{},...c!==void 0?{changed:c}:{}})}return r}function dn(e){return!0}function cn(e,n,r,t){let a=_e(e,r),s=_e(n,r),l=[],i=[],d=[];for(let[c,u]of a){let p=s.get(c);if(p===void 0)i.length<t&&i.push(c);else if(p!==u){if(r.dedupColumns&&r.dedupColumns.length>0)continue;d.length<t&&d.push(c)}}for(let c of s.keys())a.has(c)||l.length<t&&l.push(c);return l.sort(),i.sort(),d.sort(),{added:l,removed:i,changed:d}}function _e(e,n){let r=new Map;if(!ae(e))return r;let t=_(e,x);for(let a of t){let s=fn(a,n);if(s===void 0)continue;let l=mn(a);r.set(s,un(l))}return r}function fn(e,n){if(n.dedupColumns&&n.dedupColumns.length>0){let a=[];for(let s of n.dedupColumns){let l=e[s];if(l==null)return;a.push(String(l))}return a.join("")}let r=A[n.tableName]??"id",t=e[r];if(t!=null)return String(t)}function mn(e){let n=Object.keys(e).sort(),r={};for(let t of n)r[t]=e[t];return JSON.stringify(r)}function un(e){return C(e)}Q();import{existsSync as ie,statSync as pn}from"fs";import{join as Ae,resolve as gn}from"path";var yn=20,bn="qe_patterns";function Ne(e,n={}){let r=gn(e);vn(r);let t=n.table??bn,a=R.find(g=>g.tableName===t);if(!a)throw new Error(`Unknown table: ${t}`);let s=Ae(r,a.fileName);if(!ie(s))throw new Error(`Table file not found: ${a.fileName} (expected in ${r}). Was this export generated with --format jsonl?`);let l=_(s,x),i=a.domainColumn,d=Math.max(1,n.limit??yn),c=n.query?n.query.toLowerCase():void 0,u=n.domains&&n.domains.length>0?new Set(n.domains):void 0,p=n.since,f=n.until,w=n.patternType,m=0,y=[];for(let g of l)hn(g,{domainColumn:i,domains:u,patternType:w,since:p,until:f,queryLower:c})&&(m++,y.length<d&&y.push(wn(g,a.tableName,i)));return{table:t,inputPath:r,totalScanned:l.length,totalMatched:m,limit:d,hits:y,truncated:m>d}}function hn(e,n){if(n.domains){if(!n.domainColumn)return!1;let r=e[n.domainColumn];if(typeof r!="string"||!n.domains.has(r))return!1}if(n.patternType!==void 0&&e.pattern_type!==n.patternType)return!1;if(n.since!==void 0||n.until!==void 0){let r=De(e);if(r===void 0||n.since!==void 0&&r<n.since||n.until!==void 0&&r>n.until)return!1}if(n.queryLower!==void 0){let r=typeof e.name=="string"?e.name.toLowerCase():"",t=typeof e.description=="string"?e.description.toLowerCase():"";if(!r.includes(n.queryLower)&&!t.includes(n.queryLower))return!1}return!0}function De(e){for(let n of["updated_at","created_at","timestamp"]){let r=e[n];if(typeof r=="string"&&r.length>0)return r}}function wn(e,n,r){let t=(typeof e.id=="string"||typeof e.id=="number"?String(e.id):void 0)??`${n}:?`,a={name:typeof e.name=="string"?e.name:void 0,description:typeof e.description=="string"?e.description:void 0,domain:r&&typeof e[r]=="string"?e[r]:void 0,patternType:typeof e.pattern_type=="string"?e.pattern_type:void 0,confidence:typeof e.confidence=="number"?e.confidence:void 0,updatedAt:De(e)};return{id:t,display:a,row:e}}function vn(e){if(!ie(e))throw new Error(`Path not found: ${e}`);if(pn(e).isFile())throw e.endsWith(".rvf")?new Error("Brain search does not support RVF exports. Re-export with --format jsonl, or use `aqe brain info` for RVF summaries."):new Error(`Unsupported brain export: ${e} (expected a JSONL directory)`);let r=Ae(e,"manifest.json");if(!ie(r))throw new Error(`Manifest not found at ${r}. Is this a brain export directory?`)}function ke(e,n){if(!e.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'").get())return{created:0,skipped:0};e.exec(`
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a as A,b as L,c as F,d as R,e as Y,f as T,g as P,h as C,i as j,j as X,k as V,l as ge,m as $,n as Z,o as ye,p as _,q as J,r as U,s as W}from"./chunk-6RG7ZJ2H.js";import{h as pe}from"./chunk-TY7XPI6R.js";import"./chunk-HBWAMCVB.js";import"./chunk-4MJQJQLY.js";import"./chunk-DF7V6X3N.js";import"./chunk-222ZQTL5.js";import"./chunk-U7EGKKN3.js";import{b as x,d as Q}from"./chunk-QBVFONWU.js";import{a as fe,b as me,c as ue,d as k,f as We}from"./chunk-XCYPVJ34.js";import"./chunk-F5RZSNHI.js";import"./chunk-XWPUCPYW.js";import{a as O,b as Ue}from"./chunk-Z44VJC5U.js";import"./chunk-4RGV6Z2H.js";import"./chunk-IXAABYGS.js";import"./chunk-DYNO72WD.js";import"./chunk-MRLGQX7Y.js";import"./chunk-QDBFB4XD.js";import"./chunk-TTLAWPEN.js";import"./chunk-7NK2H7H5.js";import"./chunk-76JYG426.js";import"./chunk-LRRQEAP5.js";import B from"path";import o from"chalk";Ue();Q();import{existsSync as z,mkdirSync as ze,writeFileSync as He,readFileSync as ee}from"fs";import{join as E,resolve as ne}from"path";var Ke={rl_q_values:"includeQValues",dream_insights:"includeDreamInsights",dream_cycles:"includeDreamInsights",witness_chain:"includeWitnessChain",vectors:"includeVectors"};function Ge(e,n){let r=Ke[e.tableName];return!(r&&n[r]===!1)}var Qe=1e4;function Ye(e,n,r,t){if(!Ge(n,r))return Z(E(t,n.fileName),[]),{count:0,rows:[]};let[a,s]=n.domainColumn?$(r.domains,n.domainColumn):[void 0,[]];if(X(e,n.tableName,a,s)>=Qe){let d=n.blobColumns,c=d&&d.length>0?p=>T(p,d):void 0;return{count:ye(E(t,n.fileName),ge(e,n.tableName,a,s),c)}}let i=V(e,n.tableName,a,s);return n.blobColumns&&n.blobColumns.length>0&&(i=i.map(d=>T(d,n.blobColumns))),Z(E(t,n.fileName),i),{count:i.length,rows:i}}function be(e){let n=[];for(let r of R){let t=E(e,r.fileName);z(t)?n.push(C(ee(t,"utf-8"))):n.push(C(""))}return C(n.join(":"))}function he(e,n,r="memory.db"){let t=ne(n.outputPath);z(t)||ze(t,{recursive:!0});let a=0,s={},l=new Set;for(let u of R){let p=Ye(e,u,n,t);if(s[u.tableName]=p.count,a+=p.count,u.tableName==="qe_patterns"){if(p.rows)for(let f of p.rows)f.qe_domain&&l.add(f.qe_domain);else if(p.count>0){let[f,w]=u.domainColumn?$(n.domains,u.domainColumn):[void 0,[]],y=`SELECT DISTINCT qe_domain FROM qe_patterns ${f?`WHERE ${f} AND qe_domain IS NOT NULL`:"WHERE qe_domain IS NOT NULL"}`;try{let g=e.prepare(y).all(...w||[]);for(let v of g)l.add(v.qe_domain)}catch{}}}}let i=n.includeVectors!==!1?X(e,"vectors"):0,d=be(t),c={version:"3.0",exportedAt:new Date().toISOString(),sourceDb:r,stats:{patternCount:s.qe_patterns||0,vectorCount:i,qValueCount:s.rl_q_values||0,dreamInsightCount:s.dream_insights||0,witnessChainLength:s.witness_chain||0,totalRecords:a},domains:[...l].sort(),checksum:d,tableRecordCounts:s};return He(E(t,"manifest.json"),JSON.stringify(c,null,2),"utf-8"),c}var Xe=new Set(["qe_patterns","rl_q_values","dream_insights","witness_chain"]);function Ze(e){return e==="1.0"?R.filter(n=>Xe.has(n.tableName)):e==="3.0"?R:(console.warn(`[brain-import] Unknown manifest version '${e}'. Attempting full import \u2014 some files may be missing.`),R)}function we(e,n,r){let t=ne(n),a=E(t,"manifest.json");if(!z(a))throw new Error(`Manifest not found at ${a}`);let s=x(ee(a,"utf-8")),l=be(t);if(l!==s.checksum)throw new Error(`Checksum mismatch: expected ${s.checksum}, got ${l}. The export may have been tampered with or corrupted.`);let i=Ze(s.version);if(r.dryRun){let f=0;for(let w of i){let m=_(E(t,w.fileName),x);f+=m.length}return{imported:f,skipped:0,conflicts:0}}W(e);let d=0,c=0,u=0;return e.transaction(()=>{for(let f of i){let w=E(t,f.fileName),m=_(w,x);f.blobColumns&&f.blobColumns.length>0&&(m=m.map(y=>P(y,f.blobColumns)));for(let y of m){let g;if(f.dedupColumns&&f.dedupColumns.length>0)g=U(e,f.tableName,y,f.dedupColumns);else{let v=A[f.tableName]||"id",b=F[f.tableName],I=L[f.tableName];g=J(e,f.tableName,y,v,r.mergeStrategy,b,I)}d+=g.imported,c+=g.skipped,u+=g.conflicts}}})(),{imported:d,skipped:c,conflicts:u}}function ve(e){let n=ne(e),r=E(n,"manifest.json");if(!z(r))throw new Error(`Manifest not found at ${r}`);return x(ee(r,"utf-8"))}We();import{existsSync as H,statSync as en,unlinkSync as Re,writeFileSync as nn}from"fs";import{resolve as te}from"path";function Se(e,n,r="memory.db"){if(!k())throw new Error("@ruvector/rvf-node is not available. Install it or use --format jsonl instead.");let t=te(n.outputPath),a=n.dimension??384;H(t)&&Re(t);let s=`${t}.idmap.json`;H(s)&&Re(s);let l=fe(t,a);try{let i={},d=new Set,c=0;for(let S of R){let[h,ce]=S.domainColumn?$(n.domains,S.domainColumn):[void 0,[]],D=V(e,S.tableName,h,ce);if(S.tableName==="qe_patterns")for(let q of D)q.qe_domain&&d.add(q.qe_domain);let G=Y[S.tableName];G&&G.length>0&&(D=D.map(q=>T(q,G))),i[S.tableName]=D,c+=D.length}let u=0,p=[];if(j(e,"qe_pattern_embeddings")){let S=e.prepare("SELECT pattern_id, embedding, dimension FROM qe_pattern_embeddings").all();for(let h of S)h.embedding&&h.dimension===a&&p.push({id:`pe:${h.pattern_id}`,vector:new Float32Array(h.embedding.buffer,h.embedding.byteOffset,a),metadata:{tableName:"qe_pattern_embeddings"}})}if(j(e,"captured_experiences")){let S=e.prepare("SELECT id, embedding, embedding_dimension, domain, quality FROM captured_experiences WHERE embedding IS NOT NULL").all();for(let h of S)h.embedding_dimension===a&&p.push({id:`exp:${h.id}`,vector:new Float32Array(h.embedding.buffer,h.embedding.byteOffset,a),metadata:{tableName:"captured_experiences",domain:h.domain,confidence:h.quality}})}if(j(e,"sona_patterns")){let S=e.prepare("SELECT id, state_embedding, domain, confidence FROM sona_patterns WHERE state_embedding IS NOT NULL").all();for(let h of S)h.state_embedding.byteLength/4===a&&p.push({id:`sona:${h.id}`,vector:new Float32Array(h.state_embedding.buffer,h.state_embedding.byteOffset,a),metadata:{tableName:"sona_patterns",domain:h.domain,confidence:h.confidence}})}p.length>0&&(u=l.ingest(p).accepted);let f={version:"3.0",format:"rvf",exportedAt:new Date().toISOString(),sourceDb:r,domains:[...d].sort(),tables:i},w=JSON.stringify(f),m=C(w),y=Buffer.from(w);l.embedKernel(y);let g=n.sign?l.sign(y)??void 0:void 0,v=g?n.signerKeyId??"default":void 0,b=l.fileId(),I=b?{fileId:b,parentId:l.parentId(),lineageDepth:l.lineageDepth()}:void 0,N=l.status(),M={version:"3.0",format:"rvf",exportedAt:f.exportedAt,sourceDb:r,stats:{patternCount:(i.qe_patterns||[]).length,embeddingCount:u,qValueCount:(i.rl_q_values||[]).length,dreamInsightCount:(i.dream_insights||[]).length,witnessChainLength:(i.witness_chain||[]).length,totalRecords:c},domains:f.domains,checksum:m,rvfStatus:{totalVectors:N.totalVectors,totalSegments:N.totalSegments,fileSizeBytes:N.fileSizeBytes},...g?{signature:g,signerKeyId:v}:{},...I?{lineage:I}:{}};if(g)try{l.freeze()}catch{}let Je=`${t}.manifest.json`;return nn(Je,JSON.stringify(M,null,2),"utf-8"),M}finally{l.close()}}var tn={patterns:"qe_patterns",qValues:"rl_q_values",dreamInsights:"dream_insights",witnessChain:"witness_chain"};function xe(e,n,r){if(!k())throw new Error("@ruvector/rvf-node is not available. Install it or use JSONL format.");let t=te(n);if(!H(t))throw new Error(`RVF file not found: ${t}`);let a=me(t);try{let s=a.verifyWitness();if(!s.valid&&(s.totalEntries>0||s.errors.length>0)){let m=s.errors.length>0?s.errors.join("; "):"unknown integrity error";throw new Error(`RVF witness verification failed: ${m}`)}let l=a.extractKernel();if(!l||!l.image)throw new Error("No brain data found in RVF file (missing kernel segment)");let i;try{i=JSON.parse(l.image.toString("utf-8"))}catch(m){throw new Error(`Failed to parse brain kernel data as JSON: ${m instanceof Error?m.message:m}`)}if(r.dryRun){let m=0;if(i.tables)for(let y of Object.values(i.tables))m+=y?.length??0;else m=(i.patterns?.length??0)+(i.qValues?.length??0)+(i.dreamInsights?.length??0)+(i.witnessChain?.length??0);return{imported:m,skipped:0,conflicts:0,embeddingsRestored:0}}W(e);let d=0,c=0,u=0,p=0,f={};if(i.tables)Object.assign(f,i.tables);else for(let[m,y]of Object.entries(tn)){let g=i[m];Array.isArray(g)&&(f[y]=g)}if(e.transaction(()=>{for(let m of R){let y=f[m.tableName];if(!y||!Array.isArray(y))continue;let g=Y[m.tableName];if(g&&g.length>0){y=y.map(v=>P(v,g));for(let v of y)for(let b of g)v[b]instanceof Buffer&&p++}for(let v of y){let b;if(m.dedupColumns&&m.dedupColumns.length>0)b=U(e,m.tableName,v,m.dedupColumns);else{let I=A[m.tableName]||"id",N=F[m.tableName],M=L[m.tableName];b=J(e,m.tableName,v,I,r.mergeStrategy,N,M)}d+=b.imported,c+=b.skipped,u+=b.conflicts}}})(),u>0)try{a.compact()}catch{}return{imported:d,skipped:c,conflicts:u,embeddingsRestored:p}}finally{a.close()}}function K(e){if(!k())throw new Error("@ruvector/rvf-node is not available.");let n=te(e);if(!H(n))throw new Error(`RVF file not found: ${n}`);let r=ue(n);try{let t=r.extractKernel();if(!t||!t.image)throw new Error("No brain data found in RVF file");let a=t.image.toString("utf-8"),s;try{s=JSON.parse(a)}catch(w){throw new Error(`Failed to parse brain kernel data as JSON: ${w instanceof Error?w.message:w}`)}let l=r.status(),i=en(n).size,d=s.tables,c=d?d.qe_patterns?.length??0:s.patterns?.length??0,u=d?d.rl_q_values?.length??0:s.qValues?.length??0,p=d?d.dream_insights?.length??0:s.dreamInsights?.length??0,f=d?d.witness_chain?.length??0:s.witnessChain?.length??0;return{version:"3.0",format:"rvf",exportedAt:s.exportedAt??"unknown",sourceDb:s.sourceDb??"unknown",stats:{patternCount:c,embeddingCount:l.totalVectors,qValueCount:u,dreamInsightCount:p,witnessChainLength:f},domains:s.domains??[],checksum:C(a),rvfStatus:{totalVectors:l.totalVectors,totalSegments:l.totalSegments,fileSizeBytes:i}}}finally{r.close()}}function re(){return k()}Q();import{existsSync as ae,readFileSync as rn,statSync as on}from"fs";import{join as oe,resolve as Ce}from"path";function Ie(e,n,r={}){let t=Ce(e),a=Ce(n),s=Ee(t),l=Ee(a),i=Be(t,s),d=Be(a,l),c=s==="jsonl"&&l==="jsonl",u=ln({pathA:t,pathB:a,manifestA:i,manifestB:d,recordLevel:c,tableFilter:r.tableFilter,maxIdsPerBucket:r.maxIdsPerBucket??500}),p=new Set(i.domains),f=new Set(d.domains),w=i.domains.filter(b=>!f.has(b)),m=d.domains.filter(b=>!p.has(b)),y=i.checksum===d.checksum,g=i.version===d.version,v=y&&g&&u.every(b=>b.delta===0&&(b.added?.length??0)===0&&(b.removed?.length??0)===0&&(b.changed?.length??0)===0);return{pathA:t,pathB:a,formatA:s,formatB:l,manifestA:i,manifestB:d,checksumMatch:y,versionMatch:g,identical:v,recordLevel:c,tableDiffs:u,domainsOnlyInA:w,domainsOnlyInB:m}}function Ee(e){if(!ae(e))throw new Error(`Path not found: ${e}`);if(e.endsWith(".rvf"))return"rvf";if(on(e).isFile())throw new Error(`Unsupported brain export: ${e} (expected a .rvf file or a JSONL directory)`);return"jsonl"}function Be(e,n){return n==="rvf"?sn(e):an(e)}function an(e){let n=oe(e,"manifest.json");if(!ae(n))throw new Error(`Manifest not found at ${n}`);let r=x(rn(n,"utf-8"));return Oe(r,"jsonl")}function sn(e){let n=K(e);return Oe(n,"rvf")}function Oe(e,n){return{format:n,version:e.version??"unknown",exportedAt:e.exportedAt??"unknown",sourceDb:e.sourceDb??"unknown",checksum:e.checksum??"",totalRecords:e.stats?.totalRecords??0,domains:e.domains??[],tableRecordCounts:e.tableRecordCounts??{}}}function ln(e){let n=e.tableFilter?R.filter(t=>t.tableName===e.tableFilter):R;if(e.tableFilter&&n.length===0)throw new Error(`Unknown table: ${e.tableFilter}`);let r=[];for(let t of n){let a=e.manifestA.tableRecordCounts[t.tableName]??0,s=e.manifestB.tableRecordCounts[t.tableName]??0,l=s-a,i,d,c;if(e.recordLevel&&dn(t)){let u=cn(oe(e.pathA,t.fileName),oe(e.pathB,t.fileName),t,e.maxIdsPerBucket);i=u.added,d=u.removed,c=u.changed}r.push({tableName:t.tableName,countA:a,countB:s,delta:l,...i!==void 0?{added:i}:{},...d!==void 0?{removed:d}:{},...c!==void 0?{changed:c}:{}})}return r}function dn(e){return!0}function cn(e,n,r,t){let a=_e(e,r),s=_e(n,r),l=[],i=[],d=[];for(let[c,u]of a){let p=s.get(c);if(p===void 0)i.length<t&&i.push(c);else if(p!==u){if(r.dedupColumns&&r.dedupColumns.length>0)continue;d.length<t&&d.push(c)}}for(let c of s.keys())a.has(c)||l.length<t&&l.push(c);return l.sort(),i.sort(),d.sort(),{added:l,removed:i,changed:d}}function _e(e,n){let r=new Map;if(!ae(e))return r;let t=_(e,x);for(let a of t){let s=fn(a,n);if(s===void 0)continue;let l=mn(a);r.set(s,un(l))}return r}function fn(e,n){if(n.dedupColumns&&n.dedupColumns.length>0){let a=[];for(let s of n.dedupColumns){let l=e[s];if(l==null)return;a.push(String(l))}return a.join("")}let r=A[n.tableName]??"id",t=e[r];if(t!=null)return String(t)}function mn(e){let n=Object.keys(e).sort(),r={};for(let t of n)r[t]=e[t];return JSON.stringify(r)}function un(e){return C(e)}Q();import{existsSync as ie,statSync as pn}from"fs";import{join as Ae,resolve as gn}from"path";var yn=20,bn="qe_patterns";function Ne(e,n={}){let r=gn(e);vn(r);let t=n.table??bn,a=R.find(g=>g.tableName===t);if(!a)throw new Error(`Unknown table: ${t}`);let s=Ae(r,a.fileName);if(!ie(s))throw new Error(`Table file not found: ${a.fileName} (expected in ${r}). Was this export generated with --format jsonl?`);let l=_(s,x),i=a.domainColumn,d=Math.max(1,n.limit??yn),c=n.query?n.query.toLowerCase():void 0,u=n.domains&&n.domains.length>0?new Set(n.domains):void 0,p=n.since,f=n.until,w=n.patternType,m=0,y=[];for(let g of l)hn(g,{domainColumn:i,domains:u,patternType:w,since:p,until:f,queryLower:c})&&(m++,y.length<d&&y.push(wn(g,a.tableName,i)));return{table:t,inputPath:r,totalScanned:l.length,totalMatched:m,limit:d,hits:y,truncated:m>d}}function hn(e,n){if(n.domains){if(!n.domainColumn)return!1;let r=e[n.domainColumn];if(typeof r!="string"||!n.domains.has(r))return!1}if(n.patternType!==void 0&&e.pattern_type!==n.patternType)return!1;if(n.since!==void 0||n.until!==void 0){let r=De(e);if(r===void 0||n.since!==void 0&&r<n.since||n.until!==void 0&&r>n.until)return!1}if(n.queryLower!==void 0){let r=typeof e.name=="string"?e.name.toLowerCase():"",t=typeof e.description=="string"?e.description.toLowerCase():"";if(!r.includes(n.queryLower)&&!t.includes(n.queryLower))return!1}return!0}function De(e){for(let n of["updated_at","created_at","timestamp"]){let r=e[n];if(typeof r=="string"&&r.length>0)return r}}function wn(e,n,r){let t=(typeof e.id=="string"||typeof e.id=="number"?String(e.id):void 0)??`${n}:?`,a={name:typeof e.name=="string"?e.name:void 0,description:typeof e.description=="string"?e.description:void 0,domain:r&&typeof e[r]=="string"?e[r]:void 0,patternType:typeof e.pattern_type=="string"?e.pattern_type:void 0,confidence:typeof e.confidence=="number"?e.confidence:void 0,updatedAt:De(e)};return{id:t,display:a,row:e}}function vn(e){if(!ie(e))throw new Error(`Path not found: ${e}`);if(pn(e).isFile())throw e.endsWith(".rvf")?new Error("Brain search does not support RVF exports. Re-export with --format jsonl, or use `aqe brain info` for RVF summaries."):new Error(`Unsupported brain export: ${e} (expected a JSONL directory)`);let r=Ae(e,"manifest.json");if(!ie(r))throw new Error(`Manifest not found at ${r}. Is this a brain export directory?`)}function ke(e,n){if(!e.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'").get())return{created:0,skipped:0};e.exec(`
|
|
3
3
|
CREATE TEMP TABLE IF NOT EXISTS _covered_patterns (
|
|
4
4
|
pattern_id TEXT PRIMARY KEY
|
|
5
5
|
)
|
|
@@ -74,7 +74,7 @@ Examples:
|
|
|
74
74
|
aqe brain diff ./brain-a ./brain-b --verbose
|
|
75
75
|
aqe brain search -i ./brain-export --query oauth --domain test-generation
|
|
76
76
|
aqe brain search -i ./brain-export --since 2026-03-01 --limit 50 --json
|
|
77
|
-
`}};async function se(e){if(e)return e;let{findProjectRoot:n}=await import("./unified-memory-
|
|
77
|
+
`}};async function se(e){if(e)return e;let{findProjectRoot:n}=await import("./unified-memory-6MXOYRXZ.js");return B.join(n(),".agentic-qe","memory.db")}function je(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Sn(e){let n=Number.parseInt(e,10);return!Number.isFinite(n)||n<1?20:n}function xn(e){if(e===void 0)return;let n=Array.isArray(e)?e:[e],r=[];for(let t of n)for(let a of t.split(",")){let s=a.trim();s&&r.push(s)}return r.length>0?r:void 0}function Cn(e,n){console.log(o.blue(`
|
|
78
78
|
Brain Diff
|
|
79
79
|
`)),console.log(` A: ${o.cyan(e.pathA)} (${e.formatA})`),console.log(` B: ${o.cyan(e.pathB)} (${e.formatB})`),console.log(` Versions: ${o.cyan(e.manifestA.version)} \u2192 ${o.cyan(e.manifestB.version)}`+(e.versionMatch?o.gray(" (match)"):o.yellow(" (differ)"))),console.log(` Checksums: ${o.gray(e.manifestA.checksum.slice(0,12))}\u2026 \u2192 ${o.gray(e.manifestB.checksum.slice(0,12))}\u2026`+(e.checksumMatch?o.gray(" (match)"):o.yellow(" (differ)"))),console.log(` Exported: ${o.gray(e.manifestA.exportedAt)} \u2192 ${o.gray(e.manifestB.exportedAt)}`),console.log(` Records: ${o.cyan(e.manifestA.totalRecords)} \u2192 ${o.cyan(e.manifestB.totalRecords)} `+Ve(e.manifestB.totalRecords-e.manifestA.totalRecords)),(e.domainsOnlyInA.length>0||e.domainsOnlyInB.length>0)&&(console.log(o.blue(`
|
|
80
80
|
Domains:`)),e.domainsOnlyInA.length>0&&console.log(` Only in A: ${o.yellow(e.domainsOnlyInA.join(", "))}`),e.domainsOnlyInB.length>0&&console.log(` Only in B: ${o.yellow(e.domainsOnlyInB.join(", "))}`)),e.recordLevel||console.log(o.gray(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import"./chunk-LRRQEAP5.js";var f=class{language;constructor(e="typescript"){this.language=e}enumerate(e,s){let r=[],n=e.split(`
|
|
3
3
|
`),l=!1;for(let i=0;i<n.length;i++){let d=n[i],t=d.trim(),c=i+1,u=d.length-d.trimStart().length+1;if(l){t.includes("*/")&&(l=!1);continue}if(t.startsWith("/*")){l=!t.includes("*/");continue}if(t.startsWith("//"))continue;if(/^\s*if\s*\(/.test(d)&&(this.findMatchingElse(n,i)||r.push({file:s,line:c,column:u,language:this.language,construct:"if-without-else",triggerCondition:"when condition is false",currentHandling:"falls through \u2014 no else branch",suggestedGuard:"Add else branch or document why falsy path is safe",severity:"medium"})),/^\s*switch\s*\(/.test(d)){let a=this.extractBlock(n,i);if(a&&!a.includes("default:")&&!a.includes("default :")&&r.push({file:s,line:c,column:u,language:this.language,construct:"switch-no-default",triggerCondition:"when value matches no case",currentHandling:"falls through \u2014 no default case",suggestedGuard:"Add default case with error handling or exhaustive check",severity:"high"}),a){let g=a.match(/case\s+[^:]+:/g)||[],h=a.match(/\b(break|return|throw|continue)\b/g)||[];g.length>0&&h.length<g.length&&r.push({file:s,line:c,column:u,language:this.language,construct:"switch-missing-break",triggerCondition:"when case falls through to next case",currentHandling:"fall-through \u2014 may execute unintended cases",suggestedGuard:"Add break/return to each case or add explicit // falls through comment",severity:"medium"})}}if(/\bcatch\s*\(/.test(t)||/\bcatch\s*\{/.test(t)){let a=this.extractBlock(n,i);if(a!==null){let g=a.replace(/[{}]/g,"").trim();(g.length===0||/^\s*\/\//.test(g))&&r.push({file:s,line:c,column:u,language:this.language,construct:"try-empty-catch",triggerCondition:"when exception is thrown",currentHandling:"exception silently swallowed",suggestedGuard:"Log the error or rethrow with context",severity:"high"})}}if(/\btry\s*\{/.test(t)&&this.extractBlock(n,i)&&(n.slice(i,Math.min(i+30,n.length)).join(`
|
|
4
4
|
`).includes("finally")||r.push({file:s,line:c,column:u,language:this.language,construct:"try-no-finally",triggerCondition:"when cleanup is needed regardless of success/failure",currentHandling:"no finally block \u2014 cleanup may be skipped on exception",suggestedGuard:"Add finally block for resource cleanup if applicable",severity:"low"})),t.includes("?.")){let a=t.match(/(\w+(?:\.\w+)*)\?\./g)||[];for(let g of a)if(!t.includes("??")&&!t.includes("|| ")&&!t.includes("if")){r.push({file:s,line:c,column:u,language:this.language,construct:"optional-chaining-null-path",triggerCondition:`when ${g.replace("?.","")} is null/undefined`,currentHandling:"returns undefined \u2014 may propagate",suggestedGuard:"Add ?? fallback or explicit null check",severity:"low"});break}}if(t.includes("??")&&!t.includes("?.")&&r.push({file:s,line:c,column:u,language:this.language,construct:"nullish-coalescing-fallback",triggerCondition:"when left side is null/undefined",currentHandling:"uses fallback value",suggestedGuard:"Verify fallback value is appropriate for all null cases",severity:"low"}),/\.\s*then\s*\(/.test(t)&&!t.includes(".catch")&&!t.includes("await")){let a=n.slice(i,Math.min(i+5,n.length)).join(" ");!a.includes(".catch")&&!a.includes("try")&&r.push({file:s,line:c,column:u,language:this.language,construct:"promise-no-catch",triggerCondition:"when promise rejects",currentHandling:"unhandled rejection \u2014 may crash process",suggestedGuard:"Add .catch() handler or use try/catch with await",severity:"high"})}let p=["map","filter","reduce","forEach","find","some","every","flatMap"];for(let a of p)if(new RegExp(`\\.${a}\\s*\\(`).test(t)){let h=n.slice(Math.max(0,i-3),i).join(" ");if(!h.includes(".length")&&!h.includes("if (")&&!h.includes("?.")){r.push({file:s,line:c,column:u,language:this.language,construct:"array-callback-empty",triggerCondition:`when array is empty before .${a}()`,currentHandling:a==="reduce"?"may throw without initial value":"returns empty result \u2014 may cause downstream issues",suggestedGuard:a==="reduce"?"Provide initial value or check array length":"Check array length or handle empty result",severity:a==="reduce"?"high":"low"});break}}/\|\|\s*['"`\d]/.test(t)&&!t.includes("??")&&r.push({file:s,line:c,column:u,language:this.language,construct:"logical-or-falsy",triggerCondition:'when left side is falsy (0, "", false, null, undefined)',currentHandling:'uses fallback \u2014 may unintentionally override 0, "", or false',suggestedGuard:"Use ?? instead of || if only null/undefined should trigger fallback",severity:"medium"}),/&&\s*\w+\s*\(/.test(t)&&!t.includes("if")&&!t.includes("while")&&r.push({file:s,line:c,column:u,language:this.language,construct:"logical-and-short-circuit",triggerCondition:"when left side is falsy \u2014 right side never executes",currentHandling:"short-circuits \u2014 function call skipped silently",suggestedGuard:"Use explicit if-statement for clarity when side effects matter",severity:"low"}),(t.match(/\?/g)||[]).length>=2&&t.includes(":")&&r.push({file:s,line:c,column:u,language:this.language,construct:"ternary-complex",triggerCondition:"when nested ternary conditions interact",currentHandling:"nested ternary \u2014 hard to read and maintain",suggestedGuard:"Refactor to if/else or switch for readability",severity:"medium"}),(/\btypeof\s+\w+\s*===?\s*['"]/.test(t)||/\binstanceof\b/.test(t))&&!t.includes("else")&&!this.findMatchingElse(n,i)&&r.push({file:s,line:c,column:u,language:this.language,construct:"type-guard-unhandled",triggerCondition:"when value does not match the guarded type",currentHandling:"unguarded type path \u2014 may cause runtime type errors",suggestedGuard:"Add else branch or exhaustive type checking",severity:"medium"})}return r}findMatchingElse(e,s){let r={depth:0};for(let n=s;n<Math.min(s+30,e.length);n++){let l=e[n];for(let i of l)i==="{"&&r.depth++,i==="}"&&r.depth--;if(r.depth===0&&n>s){if((e[n+1]?.trim()||"").startsWith("else")||e[n].trim().endsWith("else")||e[n].trim().endsWith("else {")||e[n].includes("} else"))return!0;break}}return!1}extractBlock(e,s){let r=0,n=!1,l=[];for(let i=s;i<Math.min(s+50,e.length);i++){let d=e[i];for(let t of d)t==="{"&&(r++,n=!0),t==="}"&&r--;if(n&&(l.push(d),r===0))return l.join(`
|
|
5
5
|
`)}return null}};function y(o,e,s){let r=Date.now(),n=s||(e.endsWith(".ts")||e.endsWith(".tsx")?"typescript":"javascript"),i=new f(n).enumerate(o,e);return{file:e,language:n,branches:i,totalConstructs:i.length,unhandledCount:i.length,duration:Date.now()-r}}function b(o){let e=[];if(e.push(`# Branch Enumeration Report: ${o.file}`),e.push(""),e.push(`**Language**: ${o.language} | **Branches**: ${o.unhandledCount} | **Duration**: ${o.duration}ms`),e.push(""),o.branches.length===0)return e.push("No unhandled branches detected."),e.join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a as p}from"./chunk-S4NNQE4L.js";import"./chunk-LRRQEAP5.js";import{readFile as m,readdir as k}from"fs/promises";import{join as c,basename as y,dirname as W}from"path";import{fileURLToPath as v}from"url";import{parse as d}from"yaml";var b=v(import.meta.url),E=W(b),l=class{templatesDir;cache=new Map;constructor(r){this.templatesDir=r||c(E,"templates")}async load(r){if(this.cache.has(r))return this.cache.get(r);try{let e=c(this.templatesDir,`${r}.yaml`),n=await m(e,"utf-8"),o=d(n),i=await this.validate(o);if(!i.valid)throw new Error(`Invalid workflow template ${r}:
|
|
3
3
|
${i.errors.join(`
|
|
4
4
|
`)}`);return this.cache.set(r,o),o}catch(e){throw e.code==="ENOENT"?new Error(`Workflow template not found: ${r}`):e}}async list(){try{return(await k(this.templatesDir)).filter(e=>e.endsWith(".yaml")||e.endsWith(".yml")).map(e=>y(e,e.endsWith(".yaml")?".yaml":".yml")).sort()}catch(r){if(r.code==="ENOENT")return[];throw r}}async validate(r){let e=[],n=[];if(r.name||e.push("Workflow must have a name"),r.version||e.push("Workflow must have a version"),r.description||n.push("Workflow should have a description"),Array.isArray(r.variables)?r.variables.forEach((o,i)=>{o.name||e.push(`Variable at index ${i} must have a name`),o.type||e.push(`Variable ${o.name} must have a type`),o.required===void 0&&n.push(`Variable ${o.name} should specify if it's required`)}):e.push("Workflow must have a variables array"),!Array.isArray(r.steps))e.push("Workflow must have a steps array");else if(r.steps.length===0)e.push("Workflow must have at least one step");else{r.steps.forEach((t,s)=>{t.name||e.push(`Step at index ${s} must have a name`),t.action||e.push(`Step ${t.name||s} must have an action`),(!t.config||typeof t.config!="object")&&e.push(`Step ${t.name||s} must have a config object`),t.assertions&&Array.isArray(t.assertions)&&t.assertions.forEach((f,u)=>{f.condition||e.push(`Assertion ${u} in step ${t.name||s} must have a condition`),f.message||n.push(`Assertion ${u} in step ${t.name||s} should have a message`)})});let o=r.steps.map(t=>t.name),i=o.filter((t,s)=>o.indexOf(t)!==s);i.length>0&&e.push(`Duplicate step names found: ${i.join(", ")}`)}return{valid:e.length===0,errors:e,warnings:n}}async createContext(r,e){let n=await this.load(r),o=n.variables.filter(t=>t.required&&!(t.name in e)).map(t=>t.name);if(o.length>0)throw new Error(`Missing required variables: ${o.join(", ")}`);let i={};return n.variables.forEach(t=>{t.name in e?i[t.name]=e[t.name]:"default"in t&&(i[t.name]=t.default)}),{variables:i,results:new Map,metadata:{startTime:Date.now(),workflow:n.name,templateName:r}}}async getMetadata(r){try{let e=c(this.templatesDir,`${r}.yaml`),n=await m(e,"utf-8"),o=d(n);return{name:o.name,version:o.version,description:o.description}}catch(e){throw e.code==="ENOENT"?new Error(`Workflow template not found: ${r}`):e}}clearCache(){this.cache.clear()}async reload(r){return this.cache.delete(r),this.load(r)}},x=new l;function w(a,r){return a.replace(/\{\{([^}]+)\}\}/g,(e,n)=>{let i=n.trim().split("."),t=r;for(let s of i)if(t&&typeof t=="object"&&s in t)t=t[s];else return e;return t!=null?String(t):e})}function T(a,r){let e={...r.variables,result:r.results.get("__last_result__")},n=w(a,e);return p(n,e,!1)}var g=["login-flow","oauth-flow","scraping-workflow","visual-regression","form-validation","navigation-flow","api-integration","performance-audit","accessibility-audit"],A={"login-flow":"Authentication testing workflow for login forms with credential validation","oauth-flow":"OAuth2/OIDC authentication testing workflow with provider integration","scraping-workflow":"Data extraction workflow for web scraping with pagination and structured output","visual-regression":"Screenshot comparison workflow for visual regression testing across breakpoints","form-validation":"Input validation testing workflow for form fields with error handling","navigation-flow":"Multi-page navigation workflow for testing user journeys and state persistence","api-integration":"Browser-API hybrid testing workflow for validating frontend-backend integration","performance-audit":"Lighthouse-style performance audit workflow with Core Web Vitals","accessibility-audit":"WCAG 2.1 Level AA compliance audit workflow with automated accessibility testing"},h={authentication:["login-flow","oauth-flow"],testing:["form-validation","navigation-flow","api-integration"],quality:["visual-regression","performance-audit","accessibility-audit"],automation:["scraping-workflow"]};function _(a){return h[a]}function P(a){return g.includes(a)}function L(){return g.map(a=>{let r=Object.entries(h).find(([e,n])=>n.includes(a))?.[0]||"other";return{name:a,description:A[a],category:r}})}export{h as WORKFLOW_CATEGORIES,A as WORKFLOW_DESCRIPTIONS,g as WORKFLOW_TEMPLATES,l as WorkflowLoader,x as defaultWorkflowLoader,T as evaluateCondition,L as getAllWorkflowTemplates,_ as getWorkflowsByCategory,w as interpolateVariables,P as isValidWorkflowTemplate};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{a}from"./chunk-BPC6X6VR.js";import"./chunk-XK7P7OXO.js";import"./chunk-V7WBNB2S.js";import"./chunk-HBWAMCVB.js";import"./chunk-4MJQJQLY.js";import"./chunk-DF7V6X3N.js";import"./chunk-222ZQTL5.js";import"./chunk-U7EGKKN3.js";import"./chunk-QBVFONWU.js";import"./chunk-F5RZSNHI.js";import"./chunk-XWPUCPYW.js";import"./chunk-6OLPKIYU.js";import"./chunk-Z44VJC5U.js";import"./chunk-4RGV6Z2H.js";import"./chunk-IXAABYGS.js";import"./chunk-DYNO72WD.js";import"./chunk-MRLGQX7Y.js";import"./chunk-QDBFB4XD.js";import"./chunk-TTLAWPEN.js";import"./chunk-7NK2H7H5.js";import"./chunk-76JYG426.js";import"./chunk-LRRQEAP5.js";export{a as BrowserWorkflowTool};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.
|
|
2
|
-
import{c}from"./chunk-
|
|
1
|
+
import{createRequire as __cr}from"module";const require=__cr(import.meta.url);if(process.argv.includes('--version')||process.argv.includes('-v')){console.log("3.10.7");process.exit(0)}
|
|
2
|
+
import{c}from"./chunk-LRRQEAP5.js";function u(r){switch(r.toUpperCase()){case"DEBUG":return 0;case"INFO":return 1;case"WARN":case"WARNING":return 2;case"ERROR":return 3;case"SILENT":case"NONE":case"OFF":return 4;default:return 1}}var f,l=c(()=>{"use strict";f={0:"DEBUG",1:"INFO",2:"WARN",3:"ERROR",4:"SILENT"}});var a,s,g,d=c(()=>{"use strict";l();a={includeTimestamp:!0,includeLevel:!0,timestampFormat:"short",prettyPrint:!1,maxContextDepth:3},s=class r{domain;level;config;inheritedContext;constructor(e,n=1,o={},t={}){this.domain=e,this.level=n,this.config={...a,...o},this.inheritedContext=t}debug(e,n){this.level<=0&&this.output(0,e,n)}info(e,n){this.level<=1&&this.output(1,e,n)}warn(e,n){this.level<=2&&this.output(2,e,n)}error(e,n,o){if(this.level<=3){let t={...o};if(n){t.errorName=n.name,t.errorMessage=n.message,n.stack&&(t.stack=n.stack);let i=n;i.cause!==void 0&&(t.cause=String(i.cause))}this.output(3,e,t)}}isEnabled(e){return this.level<=e}getDomain(){return this.domain}child(e){return new r(this.domain,this.level,this.config,{...this.inheritedContext,...e})}output(e,n,o){let t=this.format(e,n,o);switch(e){case 0:console.debug(t);break;case 1:console.info(t);break;case 2:console.warn(t);break;case 3:console.error(t);break}}format(e,n,o){let t=[];this.config.includeTimestamp&&t.push(this.formatTimestamp()),this.config.includeLevel&&t.push(this.formatLevel(e)),t.push(`[${this.domain}]`),t.push(n);let i=this.mergeContext(o);return i&&Object.keys(i).length>0&&t.push(this.formatContext(i)),t.join(" ")}formatTimestamp(){let e=new Date;if(this.config.timestampFormat==="iso")return`[${e.toISOString()}]`;let n=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),t=String(e.getSeconds()).padStart(2,"0"),i=String(e.getMilliseconds()).padStart(3,"0");return`[${n}:${o}:${t}.${i}]`}formatLevel(e){return`[${f[e].padEnd(5)}]`}mergeContext(e){if(!(!e&&Object.keys(this.inheritedContext).length===0))return{...this.inheritedContext,...e}}formatContext(e){try{return this.config.prettyPrint?`
|
|
3
3
|
`+JSON.stringify(e,this.createReplacer(),2):JSON.stringify(e,this.createReplacer())}catch{return"[unserializable context]"}}createReplacer(){let e=new WeakSet,n=0;return(o,t)=>{if(typeof t=="object"&&t!==null){if(n>=this.config.maxContextDepth)return"[object]";if(e.has(t))return"[circular]";e.add(t),n++}return t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:typeof t=="bigint"?t.toString():typeof t=="function"?"[function]":typeof t=="symbol"?t.toString():t}}},g=class{domain;constructor(e="null"){this.domain=e}debug(e,n){}info(e,n){}warn(e,n){}error(e,n,o){}isEnabled(e){return!1}getDomain(){return this.domain}child(e){return this}}});function F(r,e){return L.create(r,e)}var v,L,m=c(()=>{"use strict";l();d();v={defaultLevel:1,domainLevels:new Map,consoleConfig:a,silent:!1},L=class{static config={...v};static customProvider=null;static instances=new Map;static setLevel(e){this.config.defaultLevel=e,this.instances.clear()}static setLevelFromString(e){this.setLevel(u(e))}static getLevel(){return this.config.defaultLevel}static setDomainLevel(e,n){this.config.domainLevels.set(e,n),this.instances.delete(e)}static getDomainLevel(e){return this.config.domainLevels.get(e)??this.config.defaultLevel}static clearDomainLevel(e){this.config.domainLevels.delete(e),this.instances.delete(e)}static configure(e){this.config.consoleConfig={...this.config.consoleConfig,...e},this.instances.clear()}static setSilent(e){this.config.silent=e,this.instances.clear()}static isSilent(){return this.config.silent}static setProvider(e){this.customProvider=e,this.instances.clear()}static create(e,n){if(!n&&this.instances.has(e))return this.instances.get(e);let o=this.getDomainLevel(e),t;return this.config.silent?t=new g(e):this.customProvider?t=this.customProvider(e,o,n):t=new s(e,o,this.config.consoleConfig,n),n||this.instances.set(e,t),t}static getLogger(e,n){return this.create(e,n)}static reset(){this.config={defaultLevel:1,domainLevels:new Map,consoleConfig:{...a},silent:!1},this.customProvider=null,this.instances.clear()}static initFromEnv(){let e=process.env.LOG_LEVEL;e&&this.setLevelFromString(e);let n=process.env.LOG_TIMESTAMP;n!==void 0&&this.configure({includeTimestamp:n.toLowerCase()==="true"});let o=process.env.LOG_PRETTY;o!==void 0&&this.configure({prettyPrint:o.toLowerCase()==="true"})}static getStats(){return{cachedLoggers:this.instances.size,domains:Array.from(this.instances.keys()),domainOverrides:this.config.domainLevels.size,currentLevel:this.config.defaultLevel,silent:this.config.silent}}}});export{l as a,d as b,L as c,F as d,m as e};
|