agentic-qe 3.9.17 → 3.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +22 -0
- package/README.md +65 -0
- package/assets/skills/skills-manifest.json +1 -1
- package/dist/cli/bundle.js +5 -5
- package/dist/cli/chunks/adapter-C7AKAAPC.js +2 -0
- package/dist/cli/chunks/{agent-booster-wasm-JN7W7O5X.js → agent-booster-wasm-RJHBIG5V.js} +2 -2
- package/dist/cli/chunks/{agent-handler-F6Q75SJQ.js → agent-handler-CXS6EE2V.js} +2 -2
- package/dist/cli/chunks/{agent-memory-branch-3GGTDVR4.js → agent-memory-branch-7NV5DD5A.js} +2 -2
- package/dist/cli/chunks/aqe-learning-engine-7P3AXQNO.js +2 -0
- package/dist/cli/chunks/{audit-R7KN45HM.js → audit-3NWGSPJW.js} +2 -2
- package/dist/cli/chunks/base-GIDVLEPA.js +2 -0
- package/dist/cli/chunks/{better-sqlite3-2LTGEMYR.js → better-sqlite3-NXOMSJDC.js} +2 -2
- package/dist/cli/chunks/{brain-handler-PML5L6WQ.js → brain-handler-6N5WWZVA.js} +3 -3
- package/dist/cli/chunks/{branch-enumerator-OKUPS2XC.js → branch-enumerator-I7UTOCAW.js} +2 -2
- package/dist/cli/chunks/{browser-KOQOTSAT.js → browser-6VOFWA52.js} +2 -2
- package/dist/cli/chunks/browser-workflow-DAUS4Z5V.js +2 -0
- package/dist/cli/chunks/{chunk-YE5AYBHX.js → chunk-27MW2RFA.js} +2 -2
- package/dist/cli/chunks/{chunk-3UGV2XWF.js → chunk-2A4JCRAW.js} +2 -2
- package/dist/cli/chunks/{chunk-QFFSQWXP.js → chunk-3DLD7OMF.js} +1 -1
- package/dist/cli/chunks/{chunk-CPZUNBSQ.js → chunk-3GA7M5NK.js} +2 -2
- package/dist/cli/chunks/{chunk-PGTMLW5K.js → chunk-4666TC3P.js} +2 -2
- package/dist/cli/chunks/{chunk-AZQ476BM.js → chunk-4BIWQLD3.js} +2 -2
- package/dist/cli/chunks/{chunk-3GYAIW2P.js → chunk-4ELLGWTS.js} +2 -2
- package/dist/cli/chunks/{chunk-XZOJWFLH.js → chunk-4U2JKV44.js} +1 -1
- package/dist/cli/chunks/chunk-4XYQJ4LQ.js +2 -0
- package/dist/cli/chunks/{chunk-MPEQXXXR.js → chunk-54TOOHER.js} +2 -2
- package/dist/cli/chunks/{chunk-APWO3FI3.js → chunk-5ROA7KOT.js} +1 -1
- package/dist/cli/chunks/{chunk-V3VJNWOF.js → chunk-5SZLQCFP.js} +2 -2
- package/dist/cli/chunks/{chunk-X66N7E7D.js → chunk-6BGSH2YR.js} +1 -1
- package/dist/cli/chunks/{chunk-PV6WBC2D.js → chunk-6G3RNT5H.js} +2 -2
- package/dist/cli/chunks/{chunk-OUSQ4KQN.js → chunk-6IBFYVLK.js} +2 -2
- package/dist/cli/chunks/{chunk-65Z6HMDA.js → chunk-6KTF7QB3.js} +2 -2
- package/dist/cli/chunks/{chunk-Z77BVREU.js → chunk-6QSB4XOL.js} +2 -2
- package/dist/cli/chunks/{chunk-6YFEWIL5.js → chunk-6ZMQL3U6.js} +2 -2
- package/dist/cli/chunks/{chunk-N64PBOR5.js → chunk-7GGSUXVM.js} +2 -2
- package/dist/cli/chunks/{chunk-G3G5QEHL.js → chunk-7OGUAZGJ.js} +1 -1
- package/dist/cli/chunks/{chunk-EVQYUUQ3.js → chunk-7XLTLFP5.js} +2 -2
- package/dist/cli/chunks/{chunk-LD4OYOX2.js → chunk-7ZIKFJ6X.js} +2 -2
- package/dist/cli/chunks/{chunk-6HGRJPD6.js → chunk-A26GU6YU.js} +1 -1
- package/dist/cli/chunks/{chunk-V4DMYY6P.js → chunk-AGPZVE6B.js} +2 -2
- package/dist/cli/chunks/{chunk-32FWC6G3.js → chunk-AMRUZ6XG.js} +2 -2
- package/dist/cli/chunks/{chunk-3KIUCAVI.js → chunk-AZGESIFV.js} +1 -1
- package/dist/cli/chunks/{chunk-I5BLJ2QQ.js → chunk-B6BAK2JI.js} +2 -2
- package/dist/cli/chunks/{chunk-PEHHOJE6.js → chunk-BADBKGZE.js} +2 -2
- package/dist/cli/chunks/{chunk-HMT6LKHH.js → chunk-BFM47L3X.js} +2 -2
- package/dist/cli/chunks/{chunk-MNSF47HC.js → chunk-BGSYFAEJ.js} +3 -3
- package/dist/cli/chunks/{chunk-42HSEBOH.js → chunk-BRWWIY6O.js} +2 -2
- package/dist/cli/chunks/{chunk-63ERVKIO.js → chunk-BSQTOKNR.js} +1 -1
- package/dist/cli/chunks/{chunk-W5HTZ3VZ.js → chunk-BXTHB2A2.js} +2 -2
- package/dist/cli/chunks/{chunk-JVDYHVF2.js → chunk-BY44ODHD.js} +4 -4
- package/dist/cli/chunks/{chunk-BCIEQ4IP.js → chunk-CCM7MBLA.js} +2 -2
- package/dist/cli/chunks/{chunk-FYNDV2NZ.js → chunk-CSYQKVZY.js} +1 -1
- package/dist/cli/chunks/{chunk-6YCZDIGF.js → chunk-D7SS56EG.js} +2 -2
- package/dist/cli/chunks/{chunk-QW554DTP.js → chunk-DC3PADV3.js} +1 -1
- package/dist/cli/chunks/{chunk-7PWW2OXP.js → chunk-DCB2VUYM.js} +1 -1
- package/dist/cli/chunks/{chunk-ARN2KDLJ.js → chunk-DOSDUAVZ.js} +2 -2
- package/dist/cli/chunks/{chunk-RP2RHB7H.js → chunk-DQCWNCOT.js} +2 -2
- package/dist/cli/chunks/{chunk-A3WC5KTG.js → chunk-EN2A2CVT.js} +1 -1
- package/dist/cli/chunks/{chunk-BCBC3DVN.js → chunk-ENYQUSSK.js} +2 -2
- package/dist/cli/chunks/{chunk-I64R2D4U.js → chunk-EZN7QMOZ.js} +4 -4
- package/dist/cli/chunks/{chunk-63V33NAB.js → chunk-F7XU7KZL.js} +2 -2
- package/dist/cli/chunks/{chunk-42TUEMH7.js → chunk-FDDB7QTM.js} +1 -1
- package/dist/cli/chunks/{chunk-XB4JRJU4.js → chunk-FKNYOKIK.js} +1 -1
- package/dist/cli/chunks/{chunk-QXOAFWWK.js → chunk-FTIHPDWV.js} +2 -2
- package/dist/cli/chunks/{chunk-QYDBV5MD.js → chunk-G2H4W7NN.js} +1 -1
- package/dist/cli/chunks/{chunk-G5DEPXD4.js → chunk-H5JZZH2C.js} +2 -2
- package/dist/cli/chunks/{chunk-VYCFMW64.js → chunk-HLXPD4Y2.js} +39 -38
- package/dist/cli/chunks/{chunk-7VGZDTY4.js → chunk-HZKY5KPB.js} +1 -1
- package/dist/cli/chunks/{chunk-BGY4CHZA.js → chunk-I3POPZT5.js} +2 -2
- package/dist/cli/chunks/{chunk-KUEG6K4A.js → chunk-IJPTWPXG.js} +1 -1
- package/dist/cli/chunks/{chunk-2K7GRX5U.js → chunk-IS2PMHB5.js} +2 -2
- package/dist/cli/chunks/{chunk-CZXV3JAF.js → chunk-J7BG55VG.js} +3 -3
- package/dist/cli/chunks/{chunk-B3M3JEFD.js → chunk-JBW2A2O6.js} +2 -2
- package/dist/cli/chunks/{chunk-OSBJWQZL.js → chunk-JD6KE6DJ.js} +2 -2
- package/dist/cli/chunks/{chunk-I3NUJ6KJ.js → chunk-JGNVI5UB.js} +3 -3
- package/dist/cli/chunks/{chunk-WGEJ646F.js → chunk-JMK5OCWL.js} +2 -2
- package/dist/cli/chunks/{chunk-PMNZN4K7.js → chunk-JZG23IPV.js} +1 -1
- package/dist/cli/chunks/{chunk-BUWZOMC7.js → chunk-JZTB35EQ.js} +1 -1
- package/dist/cli/chunks/{chunk-VI2I5R6C.js → chunk-K5NFP7B5.js} +2 -2
- package/dist/cli/chunks/{chunk-2LXXYKAP.js → chunk-KFITGSW3.js} +2 -2
- package/dist/cli/chunks/{chunk-TATCL3AK.js → chunk-KMHGQD76.js} +2 -2
- package/dist/cli/chunks/{chunk-ZI3UBCIN.js → chunk-KV6PIOHN.js} +1 -1
- package/dist/cli/chunks/{chunk-6PCGUJCG.js → chunk-KYLE6ZSC.js} +4 -4
- package/dist/cli/chunks/{chunk-Z5R46W6Q.js → chunk-LVABI4OA.js} +1 -1
- package/dist/cli/chunks/{chunk-F5X3U57Y.js → chunk-MBGWDELE.js} +2 -2
- package/dist/cli/chunks/{chunk-QMVGGG4B.js → chunk-MDCTQOUJ.js} +1 -1
- package/dist/cli/chunks/chunk-MJ7UYPGY.js +15 -0
- package/dist/cli/chunks/{chunk-AFLTMVMT.js → chunk-MLVVYUFS.js} +1 -1
- package/dist/cli/chunks/{chunk-FCWB2FJG.js → chunk-NBQW7MXF.js} +1 -1
- package/dist/cli/chunks/{chunk-JC4O47QG.js → chunk-NKOLFLXF.js} +2 -2
- package/dist/cli/chunks/{chunk-KTUSZRS3.js → chunk-ODGACHEZ.js} +2 -2
- package/dist/cli/chunks/{chunk-DVEQOD74.js → chunk-OXL6JSVR.js} +45 -44
- package/dist/cli/chunks/{chunk-Y47U7ICT.js → chunk-P6HIDCTQ.js} +1 -1
- package/dist/cli/chunks/{chunk-YUCMGFHE.js → chunk-PM77Z4PR.js} +2 -2
- package/dist/cli/chunks/{chunk-K44EQV74.js → chunk-QGSELG75.js} +2 -2
- package/dist/cli/chunks/{chunk-DDJUVCKF.js → chunk-QTNDHCZ7.js} +3 -3
- package/dist/cli/chunks/{chunk-ZLOMFM25.js → chunk-QTUTQLOY.js} +2 -2
- package/dist/cli/chunks/{chunk-VX6XHAG2.js → chunk-QW2RFI73.js} +2 -2
- package/dist/cli/chunks/{chunk-RYATPB5L.js → chunk-R3U3ARVJ.js} +2 -2
- package/dist/cli/chunks/{chunk-ZQKNVZPD.js → chunk-RGLCMGNZ.js} +2 -2
- package/dist/cli/chunks/{chunk-R3COBKOP.js → chunk-RHYGRUNU.js} +3 -3
- package/dist/cli/chunks/{chunk-DR6SJ6P3.js → chunk-RI3NTZ2I.js} +2 -2
- package/dist/cli/chunks/{chunk-B36RPXAQ.js → chunk-RPT7HCMH.js} +2 -2
- package/dist/cli/chunks/{chunk-PMH52K5J.js → chunk-S2XBAOXE.js} +1 -1
- package/dist/cli/chunks/{chunk-A67FRRPJ.js → chunk-SQHM6WUF.js} +3 -3
- package/dist/cli/chunks/{chunk-USORP6QK.js → chunk-TFUWIKGZ.js} +2 -2
- package/dist/cli/chunks/{chunk-UTO2M76W.js → chunk-TPL3CBMS.js} +1 -1
- package/dist/cli/chunks/{chunk-LA565BGJ.js → chunk-UFGFV4BO.js} +2 -2
- package/dist/cli/chunks/{chunk-DJXYFFGA.js → chunk-UNPTSPAO.js} +2 -2
- package/dist/cli/chunks/{chunk-5J444NJR.js → chunk-UPP5V7Y3.js} +2 -2
- package/dist/cli/chunks/{chunk-WP55YBB2.js → chunk-V2N7KWT7.js} +1 -1
- package/dist/cli/chunks/{chunk-K4FG3CRS.js → chunk-VRHKEJR6.js} +3 -3
- package/dist/cli/chunks/{chunk-PJZHNAUT.js → chunk-VW7FKTFO.js} +2 -2
- package/dist/cli/chunks/{chunk-CY73RJJJ.js → chunk-VXQK4GKV.js} +1 -1
- package/dist/cli/chunks/{chunk-6F6BNLVP.js → chunk-VZO5I23B.js} +1 -1
- package/dist/cli/chunks/{chunk-6MRUG5G2.js → chunk-WC5A7C5L.js} +1 -1
- package/dist/cli/chunks/{chunk-FVVZWNLV.js → chunk-WH7ZOJCF.js} +1 -1
- package/dist/cli/chunks/{chunk-QVJQXRHU.js → chunk-WKQSZTU6.js} +2 -2
- package/dist/cli/chunks/{chunk-4TDIA2EN.js → chunk-WMJCFDTA.js} +2 -2
- package/dist/cli/chunks/{chunk-JT2KLBDB.js → chunk-X2T4TI7D.js} +2 -2
- package/dist/cli/chunks/{chunk-ORNWQXEX.js → chunk-XBWVHO6G.js} +2 -2
- package/dist/cli/chunks/{chunk-HQXRCW7Z.js → chunk-XSLKR2DM.js} +2 -2
- package/dist/cli/chunks/{chunk-XMMKAV5R.js → chunk-XTCV5UOJ.js} +2 -2
- package/dist/cli/chunks/{chunk-6PRIY3HT.js → chunk-YNVVRND7.js} +2 -2
- package/dist/cli/chunks/{chunk-L5JZIORJ.js → chunk-YQL6JH2Y.js} +2 -2
- package/dist/cli/chunks/{chunk-CQSU7NTG.js → chunk-YZIOM7JL.js} +2 -2
- package/dist/cli/chunks/{chunk-P2V5ZG3Q.js → chunk-Z4YHL4JU.js} +1 -1
- package/dist/cli/chunks/{chunk-L6ZJSFAA.js → chunk-ZHA5Z5V4.js} +1 -1
- package/dist/cli/chunks/{chunk-AZWCJFT6.js → chunk-ZJEVL5O3.js} +2 -2
- package/dist/cli/chunks/{chunk-MER7IHAZ.js → chunk-ZURHHRSA.js} +2 -2
- package/dist/cli/chunks/{chunk-EGBRCXYT.js → chunk-ZWR4PZ4Z.js} +2 -2
- package/dist/cli/chunks/{ci-TRWQ33L2.js → ci-LYAVZLM3.js} +2 -2
- package/dist/cli/chunks/{ci-output-TCFNHOTU.js → ci-output-L7TR2NCN.js} +2 -2
- package/dist/cli/chunks/{circuit-breaker-GO2TIL7E.js → circuit-breaker-AQOGJGKI.js} +2 -2
- package/dist/cli/chunks/{claude-flow-setup-U77JVSVU.js → claude-flow-setup-SO2ZN26K.js} +2 -2
- package/dist/cli/chunks/client-LIKTMSIP.js +2 -0
- package/dist/cli/chunks/{cline-installer-XFD3SMGS.js → cline-installer-XCXFH4UR.js} +2 -2
- package/dist/cli/chunks/{code-V3VE2TMW.js → code-3Z2HMS5I.js} +2 -2
- package/dist/cli/chunks/{code-index-extractor-C6DHOOWA.js → code-index-extractor-KE362AJX.js} +2 -2
- package/dist/cli/chunks/{codex-installer-IUR7MVE6.js → codex-installer-GTD3GFTF.js} +2 -2
- package/dist/cli/chunks/{completions-R7FZHNJJ.js → completions-EDCXRRJO.js} +2 -2
- package/dist/cli/chunks/{complexity-analyzer-EP4QF5CS.js → complexity-analyzer-QMN3V6D3.js} +2 -2
- package/dist/cli/chunks/{continuedev-installer-6DW2SBMQ.js → continuedev-installer-U6HN376C.js} +2 -2
- package/dist/cli/chunks/{copilot-installer-U3UOX7D5.js → copilot-installer-54PZIREM.js} +2 -2
- package/dist/cli/chunks/{cost-tracker-5QZ5A46I.js → cost-tracker-33O475QA.js} +2 -2
- package/dist/cli/chunks/{coverage-QOOOITLD.js → coverage-B7E545AJ.js} +3 -3
- package/dist/cli/chunks/cross-domain-router-SSBT32Q3.js +2 -0
- package/dist/cli/chunks/{cursor-installer-SY3TRE2I.js → cursor-installer-LKKSPZUM.js} +2 -2
- package/dist/cli/chunks/{daemon-HBSBIPUZ.js → daemon-DVOHWXUR.js} +3 -3
- package/dist/cli/chunks/{dag-attention-scheduler-ZNLUW2HL.js → dag-attention-scheduler-EQOHQBUG.js} +2 -2
- package/dist/cli/chunks/{detect-DMUJPGNC.js → detect-OCB2XT6C.js} +2 -2
- package/dist/cli/chunks/{dist-node-4RPPRXUH.js → dist-node-HSG4QK4G.js} +2 -2
- package/dist/cli/chunks/{domain-handler-XJFDML77.js → domain-handler-USGF4CIG.js} +2 -2
- package/dist/cli/chunks/{domain-transfer-MXPKJ2A2.js → domain-transfer-OUERZRGL.js} +2 -2
- package/dist/cli/chunks/dream-FAHB6BWB.js +2 -0
- package/dist/cli/chunks/{eval-DHBZ74RL.js → eval-LHYXXWFK.js} +2 -2
- package/dist/cli/chunks/{fast-paths-WTNFCV2I.js → fast-paths-UTK7BN63.js} +2 -2
- package/dist/cli/chunks/{feature-flags-VC7BQNHU.js → feature-flags-XB6ALB3X.js} +2 -2
- package/dist/cli/chunks/{feature-flags-264QUQ3E.js → feature-flags-XEP6B4GN.js} +2 -2
- package/dist/cli/chunks/{file-discovery-LXQPIRKG.js → file-discovery-O4DUCNHK.js} +2 -2
- package/dist/cli/chunks/{fleet-4OAZWNXG.js → fleet-37NGGRJI.js} +3 -3
- package/dist/cli/chunks/{gnn-wrapper-MAXAOMTP.js → gnn-wrapper-5E7T3IQX.js} +2 -2
- package/dist/cli/chunks/{heartbeat-handler-ZTUI75EB.js → heartbeat-handler-Q44PCI7K.js} +4 -4
- package/dist/cli/chunks/{heartbeat-scheduler-VWPA7XKA.js → heartbeat-scheduler-6JPB2AQS.js} +2 -2
- package/dist/cli/chunks/hnsw-adapter-GQM3ONQE.js +2 -0
- package/dist/cli/chunks/hnsw-index-XF3NY4R4.js +2 -0
- package/dist/cli/chunks/{hnsw-legacy-bridge-EQDYPKGL.js → hnsw-legacy-bridge-B55GGQYA.js} +2 -2
- package/dist/cli/chunks/{hnswlib-node-G4QGTGIB.js → hnswlib-node-B3D2XIL5.js} +2 -2
- package/dist/cli/chunks/{hooks-RBVHAPBL.js → hooks-MOBQSJLJ.js} +6 -6
- package/dist/cli/chunks/{hybrid-router-XODWORQ3.js → hybrid-router-RV34PYQD.js} +2 -2
- package/dist/cli/chunks/{hypergraph-engine-T73DH7N6.js → hypergraph-engine-FT5YK5RF.js} +2 -2
- package/dist/cli/chunks/{hypergraph-handler-OZJJJW5B.js → hypergraph-handler-EUS6MIYW.js} +3 -3
- package/dist/cli/chunks/impact-analyzer-V6PBIMZH.js +2 -0
- package/dist/cli/chunks/{init-handler-YXXNCXM4.js → init-handler-3MV32TKZ.js} +6 -6
- package/dist/cli/chunks/init-wizard-7ROJWLEO.js +2 -0
- package/dist/cli/chunks/kernel-AOUBGDXU.js +2 -0
- package/dist/cli/chunks/{kilocode-installer-3RCK2JPW.js → kilocode-installer-RZPRXQI2.js} +2 -2
- package/dist/cli/chunks/{kiro-installer-LKC42QRS.js → kiro-installer-BGDBNZHI.js} +2 -2
- package/dist/cli/chunks/knowledge-graph-SJA3YGMQ.js +2 -0
- package/dist/cli/chunks/{learning-BIBRKCYL.js → learning-KNEBWLEZ.js} +3 -3
- package/dist/cli/chunks/{llm-router-Z6Z7TTBI.js → llm-router-Q2VQPOQ3.js} +4 -4
- package/dist/cli/chunks/{load-T2QUB663.js → load-RL53SYBD.js} +2 -2
- package/dist/cli/chunks/load-test-NSHIGHCV.js +2 -0
- package/dist/cli/chunks/{mcp-QBOL6TK4.js → mcp-GTINFFUF.js} +2 -2
- package/dist/cli/chunks/{memory-7RQ2SF36.js → memory-STPMUUAK.js} +5 -5
- package/dist/cli/chunks/memory-backend-SZAYMQVP.js +2 -0
- package/dist/cli/chunks/{memory-handlers-5OHDUBJS.js → memory-handlers-LWX3LPVF.js} +2 -2
- package/dist/cli/chunks/{multi-model-executor-PGSNT3NO.js → multi-model-executor-36ZYYDA6.js} +2 -2
- package/dist/cli/chunks/{opencode-installer-AEOXTTFG.js → opencode-installer-KTCQKS2K.js} +2 -2
- package/dist/cli/chunks/{orchestrator-6K2L36JA.js → orchestrator-6EGOOXQG.js} +5 -5
- package/dist/cli/chunks/{pipeline-MFQCW7JD.js → pipeline-WSLAIOYC.js} +2 -2
- package/dist/cli/chunks/{platform-DM6RQ3FM.js → platform-MNUN663B.js} +2 -2
- package/dist/cli/chunks/{plugin-CCTGDC55.js → plugin-PLDTG4A2.js} +2 -2
- package/dist/cli/chunks/{prime-radiant-advanced-wasm-J4FXB63L.js → prime-radiant-advanced-wasm-B4UFONWB.js} +2 -2
- package/dist/cli/chunks/protocol-executor-22KKAYX2.js +2 -0
- package/dist/cli/chunks/{protocol-handler-7UOBNLET.js → protocol-handler-VAVLLAI2.js} +2 -2
- package/dist/cli/chunks/{prove-VAPGITFF.js → prove-WVNPDWUC.js} +2 -2
- package/dist/cli/chunks/{provider-manager-F6TLUJFW.js → provider-manager-VJF4D6AW.js} +2 -2
- package/dist/cli/chunks/qe-reasoning-bank-N7ZXOAEN.js +2 -0
- package/dist/cli/chunks/{quality-7LJQI3SB.js → quality-LTMHVQBG.js} +2 -2
- package/dist/cli/chunks/queen-coordinator-BC54OCHH.js +2 -0
- package/dist/cli/chunks/{real-embeddings-NHWAUSV3.js → real-embeddings-6ACQACTM.js} +2 -2
- package/dist/cli/chunks/{roocode-installer-HQFQJJPU.js → roocode-installer-T5ZWC3SS.js} +2 -2
- package/dist/cli/chunks/router-YTQZRTIB.js +2 -0
- package/dist/cli/chunks/routing-feedback-AASAMEUY.js +2 -0
- package/dist/cli/chunks/{routing-handler-VH66WSPU.js → routing-handler-Y2O2I2HM.js} +2 -2
- package/dist/cli/chunks/{ruvector-commands-IPUWLJFU.js → ruvector-commands-F2V36B4W.js} +2 -2
- package/dist/cli/chunks/{rvf-dual-writer-KRFEM6JH.js → rvf-dual-writer-R6CNMPQD.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-adapter-SVCZ72IU.js → rvf-migration-adapter-IDVOB3LN.js} +2 -2
- package/dist/cli/chunks/{rvf-migration-coordinator-FYBIF3SX.js → rvf-migration-coordinator-VM4AMFZG.js} +2 -2
- package/dist/cli/chunks/rvf-native-adapter-VHIHJOPA.js +2 -0
- package/dist/cli/chunks/safe-db-NVEBL662.js +2 -0
- package/dist/cli/chunks/schedule-KVUFE56T.js +2 -0
- package/dist/cli/chunks/scheduler-6GRLJZ2A.js +2 -0
- package/dist/cli/chunks/{security-C2I6CG7B.js → security-WQ7YMR6M.js} +3 -3
- package/dist/cli/chunks/shared-rvf-adapter-XORIDF3Q.js +2 -0
- package/dist/cli/chunks/{shared-rvf-dual-writer-BPIFGN7I.js → shared-rvf-dual-writer-HYI64CBX.js} +2 -2
- package/dist/cli/chunks/sqlite-persistence-25TDMX6G.js +2 -0
- package/dist/cli/chunks/{status-handler-57UA6GNR.js → status-handler-BH2WCMPA.js} +2 -2
- package/dist/cli/chunks/{structural-health-KMHBG6FO.js → structural-health-XWX6FKVF.js} +2 -2
- package/dist/cli/chunks/{sync-53YM6U4S.js → sync-PRDGCHE2.js} +2 -2
- package/dist/cli/chunks/{task-handler-W2XPS5WW.js → task-handler-YFHFBMHO.js} +2 -2
- package/dist/cli/chunks/{task-handlers-BG4IAMBJ.js → task-handlers-4OQRADMG.js} +2 -2
- package/dist/cli/chunks/{test-QJBBVPL2.js → test-ZBTQ4Z66.js} +4 -4
- package/dist/cli/chunks/{test-scheduling-Y4J6EY2K.js → test-scheduling-F47Y3KNO.js} +3 -3
- package/dist/cli/chunks/{token-bootstrap-3TKR3UIE.js → token-bootstrap-XOGAEQPG.js} +2 -2
- package/dist/cli/chunks/{token-usage-5FUNHHVZ.js → token-usage-2KZ7WE5J.js} +2 -2
- package/dist/cli/chunks/{transformers-KVPA35SR.js → transformers-KCJ7PWZ4.js} +2 -2
- package/dist/cli/chunks/{tree-sitter-wasm-parser-LTBBLY5U.js → tree-sitter-wasm-parser-H6DL2DFA.js} +2 -2
- package/dist/cli/chunks/{types-Y2BHPD6B.js → types-633TMIO3.js} +2 -2
- package/dist/cli/chunks/unified-memory-BTX45KY5.js +2 -0
- package/dist/cli/chunks/unified-memory-hnsw-MMHMQ4CP.js +2 -0
- package/dist/cli/chunks/unified-persistence-GA7HKYZC.js +2 -0
- package/dist/cli/chunks/{upgrade-E4VAQZQR.js → upgrade-CH742GRF.js} +2 -2
- package/dist/cli/chunks/{validate-4ICDQCKJ.js → validate-44WH3CKE.js} +2 -2
- package/dist/cli/chunks/{validate-swarm-AIEOQOUF.js → validate-swarm-W2A7CUM7.js} +2 -2
- package/dist/cli/chunks/{vibium-AF2K6YXR.js → vibium-B25MIEBK.js} +2 -2
- package/dist/cli/chunks/visual-security-HPF5HCYF.js +2 -0
- package/dist/cli/chunks/{web-tree-sitter-PM67K5SP.js → web-tree-sitter-B54K47HF.js} +2 -2
- package/dist/cli/chunks/{windsurf-installer-4MKUQ2KT.js → windsurf-installer-EWL7COTI.js} +2 -2
- package/dist/cli/chunks/{witness-chain-FLPF7CS6.js → witness-chain-DWNP7VR6.js} +2 -2
- package/dist/cli/chunks/witness-chain-LROQLFND.js +2 -0
- package/dist/cli/chunks/{workflow-DHTCI6QD.js → workflow-LT2J7U23.js} +4 -4
- package/dist/cli/chunks/workflow-orchestrator-VFRKGG5Y.js +2 -0
- package/dist/cli/chunks/{wrappers-5K6UGI3T.js → wrappers-OAZ6MKXO.js} +2 -2
- package/dist/coordination/handlers/test-execution-handlers.d.ts +18 -0
- package/dist/coordination/handlers/test-execution-handlers.js +77 -9
- package/dist/domains/test-generation/generators/jest-vitest-generator.js +13 -3
- package/dist/domains/test-generation/interfaces.d.ts +12 -0
- package/dist/domains/test-generation/services/test-generator.js +5 -1
- package/dist/governance/continue-gate-integration.d.ts +13 -0
- package/dist/governance/continue-gate-integration.js +31 -8
- package/dist/mcp/bundle.js +333 -331
- package/dist/mcp/protocol-server.js +6 -1
- package/dist/mcp/tools/coverage-analysis/index.js +11 -2
- package/package.json +1 -1
- package/dist/cli/chunks/adapter-2BIT6BGH.js +0 -2
- package/dist/cli/chunks/aqe-learning-engine-B5G3RG4W.js +0 -2
- package/dist/cli/chunks/base-A3ZRMSIZ.js +0 -2
- package/dist/cli/chunks/browser-workflow-C6Z53ZH6.js +0 -2
- package/dist/cli/chunks/chunk-2ARCG4XJ.js +0 -2
- package/dist/cli/chunks/chunk-KTJWRVFR.js +0 -15
- package/dist/cli/chunks/client-B3QSCZSJ.js +0 -2
- package/dist/cli/chunks/cross-domain-router-OYBTXKCV.js +0 -2
- package/dist/cli/chunks/dream-R2F6L47W.js +0 -2
- package/dist/cli/chunks/hnsw-adapter-TQPQE4OJ.js +0 -2
- package/dist/cli/chunks/hnsw-index-2X3NMTDU.js +0 -2
- package/dist/cli/chunks/impact-analyzer-B7GBDSA3.js +0 -2
- package/dist/cli/chunks/init-wizard-7N6MCER4.js +0 -2
- package/dist/cli/chunks/kernel-6CJ4FP5Z.js +0 -2
- package/dist/cli/chunks/knowledge-graph-4XYLO6ZW.js +0 -2
- package/dist/cli/chunks/load-test-UODCPBYF.js +0 -2
- package/dist/cli/chunks/memory-backend-PUPAE4QQ.js +0 -2
- package/dist/cli/chunks/protocol-executor-X3EYJINP.js +0 -2
- package/dist/cli/chunks/qe-reasoning-bank-3RDWPSYG.js +0 -2
- package/dist/cli/chunks/queen-coordinator-XIQZIYAZ.js +0 -2
- package/dist/cli/chunks/router-AFEFPU2A.js +0 -2
- package/dist/cli/chunks/routing-feedback-AGYMQFMV.js +0 -2
- package/dist/cli/chunks/rvf-native-adapter-AFOWXCZH.js +0 -2
- package/dist/cli/chunks/safe-db-NNF5DE5T.js +0 -2
- package/dist/cli/chunks/schedule-HJUZSHEA.js +0 -2
- package/dist/cli/chunks/scheduler-DZ53RPJQ.js +0 -2
- package/dist/cli/chunks/shared-rvf-adapter-5UQSTUSR.js +0 -2
- package/dist/cli/chunks/sqlite-persistence-27ESC5DX.js +0 -2
- package/dist/cli/chunks/unified-memory-O7GFUSD3.js +0 -2
- package/dist/cli/chunks/unified-memory-hnsw-XBLROJEN.js +0 -2
- package/dist/cli/chunks/unified-persistence-YBHEAL2S.js +0 -2
- package/dist/cli/chunks/visual-security-4F7VYCAU.js +0 -2
- package/dist/cli/chunks/witness-chain-AXJ44BGW.js +0 -2
- package/dist/cli/chunks/workflow-orchestrator-UAFUPHD3.js +0 -2
|
@@ -8,6 +8,49 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
8
8
|
import * as fs from 'fs/promises';
|
|
9
9
|
import { ok, err } from '../../shared/types';
|
|
10
10
|
import { toError } from '../../shared/error-utils.js';
|
|
11
|
+
function escapeRegExp(s) {
|
|
12
|
+
return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Rewrite any temp-source references in a generated test so the user gets a
|
|
16
|
+
* test that imports from the original source path (when known) or a clear
|
|
17
|
+
* placeholder. Without this, generated tests reference the throwaway
|
|
18
|
+
* `/tmp/aqe-temp-*` file we created for analysis — that file is unlinked
|
|
19
|
+
* after generation, so the test would never run as-emitted.
|
|
20
|
+
*
|
|
21
|
+
* The generator may emit the temp path with the original extension
|
|
22
|
+
* (`/tmp/aqe-temp-X.ts`), with a substituted extension
|
|
23
|
+
* (`/tmp/aqe-temp-X.test.ts`), or extension-stripped (TS import convention:
|
|
24
|
+
* `/tmp/aqe-temp-X`). All three forms must be rewritten.
|
|
25
|
+
*
|
|
26
|
+
* Exported for unit testing (bug #1 regression).
|
|
27
|
+
*/
|
|
28
|
+
export function rewriteTempPathsInGeneratedTest(testCode, sourceFile, tempPath, originalFilePath) {
|
|
29
|
+
if (!tempPath) {
|
|
30
|
+
return { testCode, sourceFile };
|
|
31
|
+
}
|
|
32
|
+
// For the user's import target we strip the source extension when the
|
|
33
|
+
// original is a path (TS imports omit `.ts`); preserve it otherwise.
|
|
34
|
+
const stripExt = (p) => p.replace(/\.[a-z]+$/i, '');
|
|
35
|
+
const replacement = originalFilePath
|
|
36
|
+
? (originalFilePath.match(/\.(ts|tsx|js|jsx|mjs|cjs)$/i) ? stripExt(originalFilePath) : originalFilePath)
|
|
37
|
+
: './module-under-test';
|
|
38
|
+
const todoComment = originalFilePath
|
|
39
|
+
? ''
|
|
40
|
+
: `// TODO: replace './module-under-test' with the actual import path of the module under test\n`;
|
|
41
|
+
// Build a regex that matches the temp path with any (or no) extension suffix.
|
|
42
|
+
// Order matters: replace extension-bearing forms before extension-less, since
|
|
43
|
+
// the extension-less form is a prefix of the others.
|
|
44
|
+
const tempBase = stripExt(tempPath);
|
|
45
|
+
const tempBaseEscaped = escapeRegExp(tempBase);
|
|
46
|
+
// Matches: <base>.<ext> | <base>.<ext>.<ext> | <base>
|
|
47
|
+
const anyForm = new RegExp(tempBaseEscaped + '(?:\\.[a-zA-Z]+){0,2}', 'g');
|
|
48
|
+
const newCode = testCode
|
|
49
|
+
? todoComment + testCode.replace(anyForm, replacement)
|
|
50
|
+
: testCode;
|
|
51
|
+
const newRef = sourceFile === tempPath ? (originalFilePath || sourceFile) : sourceFile;
|
|
52
|
+
return { testCode: newCode, sourceFile: newRef };
|
|
53
|
+
}
|
|
11
54
|
export function registerTestExecutionHandlers(ctx) {
|
|
12
55
|
// Register test generation handler - REAL IMPLEMENTATION
|
|
13
56
|
ctx.registerHandler('generate-tests', async (task) => {
|
|
@@ -16,6 +59,7 @@ export function registerTestExecutionHandlers(ctx) {
|
|
|
16
59
|
const generator = ctx.getTestGenerator();
|
|
17
60
|
// Determine source files to analyze
|
|
18
61
|
let sourceFiles = [];
|
|
62
|
+
let tempPath;
|
|
19
63
|
if (payload.sourceFiles && payload.sourceFiles.length > 0) {
|
|
20
64
|
sourceFiles = payload.sourceFiles;
|
|
21
65
|
}
|
|
@@ -32,7 +76,7 @@ export function registerTestExecutionHandlers(ctx) {
|
|
|
32
76
|
cpp: '.cpp', c: '.c', scala: '.scala',
|
|
33
77
|
};
|
|
34
78
|
const ext = langExtMap[payload.language?.toLowerCase() || 'typescript'] || '.ts';
|
|
35
|
-
|
|
79
|
+
tempPath = `/tmp/aqe-temp-${uuidv4()}${ext}`;
|
|
36
80
|
await fs.writeFile(tempPath, payload.sourceCode, 'utf-8');
|
|
37
81
|
sourceFiles = [tempPath];
|
|
38
82
|
}
|
|
@@ -46,30 +90,54 @@ export function registerTestExecutionHandlers(ctx) {
|
|
|
46
90
|
warning: 'No source files or code provided for test generation. Provide sourceCode, filePath, or sourceFiles in the payload.',
|
|
47
91
|
});
|
|
48
92
|
}
|
|
49
|
-
// Use the real TestGeneratorService
|
|
93
|
+
// Use the real TestGeneratorService.
|
|
94
|
+
// Bug #1 fix: when we wrote a temp file for analysis, tell the generator
|
|
95
|
+
// to bake a sensible logical import path into the emitted tests instead
|
|
96
|
+
// of the throwaway temp path. If the user supplied filePath, use that;
|
|
97
|
+
// otherwise use a placeholder the user can edit.
|
|
50
98
|
const framework = (payload.framework || 'vitest');
|
|
99
|
+
const importPathOverrides = tempPath
|
|
100
|
+
? { [tempPath]: payload.filePath
|
|
101
|
+
? payload.filePath.replace(/\.(ts|tsx|js|jsx|mjs|cjs)$/i, '')
|
|
102
|
+
: './module-under-test' }
|
|
103
|
+
: undefined;
|
|
51
104
|
const result = await generator.generateTests({
|
|
52
105
|
sourceFiles,
|
|
53
106
|
testType: payload.testType || 'unit',
|
|
54
107
|
framework,
|
|
55
108
|
coverageTarget: payload.coverageGoal || 80,
|
|
56
109
|
patterns: [],
|
|
110
|
+
importPathOverrides,
|
|
57
111
|
});
|
|
112
|
+
// Always clean up the temp file we created — even on failure
|
|
113
|
+
if (tempPath) {
|
|
114
|
+
try {
|
|
115
|
+
await fs.unlink(tempPath);
|
|
116
|
+
}
|
|
117
|
+
catch { /* best-effort */ }
|
|
118
|
+
}
|
|
58
119
|
if (!result.success) {
|
|
59
120
|
return result;
|
|
60
121
|
}
|
|
61
122
|
const generatedTests = result.value;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
123
|
+
// Rewrite any temp-path references in generated tests so users get tests
|
|
124
|
+
// that reference a real source path (or a clear placeholder) rather than
|
|
125
|
+
// a /tmp/aqe-temp-* path that never existed in their codebase.
|
|
126
|
+
const tests = generatedTests.tests.map(t => {
|
|
127
|
+
const rewritten = rewriteTempPathsInGeneratedTest(t.testCode, t.sourceFile, tempPath, payload.filePath);
|
|
128
|
+
return {
|
|
66
129
|
name: t.name,
|
|
67
130
|
file: t.testFile,
|
|
68
131
|
type: t.type,
|
|
69
|
-
sourceFile:
|
|
132
|
+
sourceFile: rewritten.sourceFile,
|
|
70
133
|
assertions: t.assertions,
|
|
71
|
-
testCode:
|
|
72
|
-
}
|
|
134
|
+
testCode: rewritten.testCode,
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
return ok({
|
|
138
|
+
testsGenerated: tests.length,
|
|
139
|
+
coverageEstimate: generatedTests.coverageEstimate,
|
|
140
|
+
tests,
|
|
73
141
|
patternsUsed: generatedTests.patternsUsed,
|
|
74
142
|
});
|
|
75
143
|
}
|
|
@@ -52,8 +52,15 @@ export class JestVitestGenerator extends BaseTestGenerator {
|
|
|
52
52
|
const patternComment = this.generatePatternComment(patterns);
|
|
53
53
|
const exports = this.extractExports(analysis.functions, analysis.classes);
|
|
54
54
|
const importStatement = this.generateImportStatement(exports, importPath, moduleName);
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
// Per-framework imports:
|
|
56
|
+
// - vitest: `import { ..., vi } from 'vitest'` (vi is the mock util)
|
|
57
|
+
// - jest: `import { ..., jest } from '@jest/globals'`
|
|
58
|
+
// (jest 28+ provides @jest/globals; importing from 'jest' is invalid —
|
|
59
|
+
// it's a CLI package, not a runtime export. Globals work too but
|
|
60
|
+
// explicit imports match vitest style and are TS-friendly.)
|
|
61
|
+
const mockImport = this.framework === 'vitest' ? ', vi' : ', jest';
|
|
62
|
+
const importSource = this.framework === 'vitest' ? 'vitest' : '@jest/globals';
|
|
63
|
+
let testCode = `${patternComment}import { describe, it, expect, beforeEach${mockImport} } from '${importSource}';
|
|
57
64
|
${importStatement}
|
|
58
65
|
`;
|
|
59
66
|
// KG: Generate mock declarations for external (non-relative) dependencies only.
|
|
@@ -274,7 +281,10 @@ ${importStatement}
|
|
|
274
281
|
callerTest += ` expect(publicKeys.length).toBeGreaterThan(0);\n`;
|
|
275
282
|
callerTest += ` });\n`;
|
|
276
283
|
}
|
|
277
|
-
|
|
284
|
+
const stubImportSource = this.framework === 'vitest' ? 'vitest' : '@jest/globals';
|
|
285
|
+
const stubMockImport = this.framework === 'vitest' ? ', vi' : ', jest';
|
|
286
|
+
return `${patternComment}import { describe, it, expect, beforeEach${stubMockImport} } from '${stubImportSource}';
|
|
287
|
+
import { ${moduleName} } from '${importPath}';
|
|
278
288
|
${mockDeclarations}
|
|
279
289
|
describe('${moduleName}', () => {
|
|
280
290
|
${similarityComment} describe('${testType} tests', () => {
|
|
@@ -26,6 +26,18 @@ export interface IGenerateTestsRequest {
|
|
|
26
26
|
projectRoot?: string;
|
|
27
27
|
compileValidation?: boolean;
|
|
28
28
|
maxCompileRetries?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Map of sourceFile path → import path to bake into generated test imports.
|
|
31
|
+
* Use this when the file at `sourceFiles[i]` is a temporary copy of source
|
|
32
|
+
* (e.g. an inline-source MCP call) and the generated tests should reference
|
|
33
|
+
* a different logical path. If a file is not in the map, the import path
|
|
34
|
+
* is derived from the source file path as before.
|
|
35
|
+
*
|
|
36
|
+
* Example:
|
|
37
|
+
* { '/tmp/aqe-temp-abc.ts': './src/services/auth' }
|
|
38
|
+
* → generated test emits `import { ... } from './src/services/auth'`
|
|
39
|
+
*/
|
|
40
|
+
importPathOverrides?: Record<string, string>;
|
|
29
41
|
}
|
|
30
42
|
export interface IGeneratedTests {
|
|
31
43
|
tests: IGeneratedTest[];
|
|
@@ -420,7 +420,11 @@ Return a JSON array of test suggestions, each with: { "name": "test name", "desc
|
|
|
420
420
|
}
|
|
421
421
|
const generator = this.generatorFactory.create(framework);
|
|
422
422
|
const moduleName = this.extractModuleName(sourceFile);
|
|
423
|
-
|
|
423
|
+
// Bug #1 fix: prefer caller-supplied import path override when present
|
|
424
|
+
// (used by MCP handler when sourceCode is written to a temp file but the
|
|
425
|
+
// generated tests should reference the original logical path).
|
|
426
|
+
const importPath = originalRequest?.importPathOverrides?.[sourceFile]
|
|
427
|
+
?? this.getImportPath(sourceFile);
|
|
424
428
|
const context = {
|
|
425
429
|
moduleName,
|
|
426
430
|
importPath,
|
|
@@ -79,6 +79,19 @@ export declare class ContinueGateIntegration {
|
|
|
79
79
|
*
|
|
80
80
|
* ContinueDecision has: { decision, reasons, metrics, recommendedAction }
|
|
81
81
|
* We map to: { shouldContinue, reason, throttleMs, escalate, reworkRatio }
|
|
82
|
+
*
|
|
83
|
+
* Decision semantics:
|
|
84
|
+
* - 'continue', 'checkpoint': proceed normally
|
|
85
|
+
* - 'throttle': proceed but caller should slow down (soft signal — not a block).
|
|
86
|
+
* The recommended action is "slow down", not "abort". Treating throttle as
|
|
87
|
+
* a hard rejection would cause legitimate work to be denied; the caller can
|
|
88
|
+
* apply the throttleMs as a backoff hint between subsequent calls.
|
|
89
|
+
* - 'pause', 'stop': block this task
|
|
90
|
+
*
|
|
91
|
+
* NOTE: With totalTokensUsed pinned to 0 in the caller (no real token
|
|
92
|
+
* telemetry yet), the guidance gate's budget-slope detector cannot fire,
|
|
93
|
+
* so 'throttle' from this path is rare in practice — it would only fire
|
|
94
|
+
* if some other slowdown signal (not budget) were configured.
|
|
82
95
|
*/
|
|
83
96
|
private mapGuidanceDecision;
|
|
84
97
|
/**
|
|
@@ -142,6 +142,17 @@ export class ContinueGateIntegration {
|
|
|
142
142
|
if (this.guidanceContinueGate && localDecision.shouldContinue && !localDecision.reason) {
|
|
143
143
|
try {
|
|
144
144
|
const reworkRatio = this.calculateReworkRatio(history.slice(-10));
|
|
145
|
+
// ADR-058 NOTE: We do NOT track real per-action token usage here.
|
|
146
|
+
// Passing a synthetic estimate (e.g. history.length * 500) to the
|
|
147
|
+
// guidance gate causes the linear-regression slope detector to fire
|
|
148
|
+
// on the first multi-step interaction (slope = 500 vs 0.02 threshold),
|
|
149
|
+
// which would block legitimate one-off MCP tool calls.
|
|
150
|
+
//
|
|
151
|
+
// Until real token telemetry is wired in, we set totalTokensUsed = 0
|
|
152
|
+
// and a generous budgetRemaining. This effectively disables the
|
|
153
|
+
// budget-slope and budget-exhaustion checks (they require non-zero
|
|
154
|
+
// token data to fire) while keeping the coherence, rework, and
|
|
155
|
+
// uncertainty checks active — those use real data we DO have.
|
|
145
156
|
const stepContext = {
|
|
146
157
|
stepNumber: history.length,
|
|
147
158
|
totalToolCalls: history.length,
|
|
@@ -150,9 +161,9 @@ export class ContinueGateIntegration {
|
|
|
150
161
|
uncertaintyScore: reworkRatio,
|
|
151
162
|
elapsedMs: history.length > 0 ? Date.now() - history[0].timestamp : 0,
|
|
152
163
|
lastCheckpointStep: 0,
|
|
153
|
-
totalTokensUsed:
|
|
164
|
+
totalTokensUsed: 0, // No real token telemetry — see comment above
|
|
154
165
|
budgetRemaining: {
|
|
155
|
-
tokens:
|
|
166
|
+
tokens: Number.MAX_SAFE_INTEGER, // Defer budget gating to dedicated cost monitor
|
|
156
167
|
toolCalls: Math.max(0, (flags.maxConsecutiveRetries * 10) - history.length),
|
|
157
168
|
timeMs: Math.max(0, flags.idleTimeoutMs - (history.length > 0 ? Date.now() - history[history.length - 1].timestamp : 0)),
|
|
158
169
|
},
|
|
@@ -254,15 +265,27 @@ export class ContinueGateIntegration {
|
|
|
254
265
|
*
|
|
255
266
|
* ContinueDecision has: { decision, reasons, metrics, recommendedAction }
|
|
256
267
|
* We map to: { shouldContinue, reason, throttleMs, escalate, reworkRatio }
|
|
268
|
+
*
|
|
269
|
+
* Decision semantics:
|
|
270
|
+
* - 'continue', 'checkpoint': proceed normally
|
|
271
|
+
* - 'throttle': proceed but caller should slow down (soft signal — not a block).
|
|
272
|
+
* The recommended action is "slow down", not "abort". Treating throttle as
|
|
273
|
+
* a hard rejection would cause legitimate work to be denied; the caller can
|
|
274
|
+
* apply the throttleMs as a backoff hint between subsequent calls.
|
|
275
|
+
* - 'pause', 'stop': block this task
|
|
276
|
+
*
|
|
277
|
+
* NOTE: With totalTokensUsed pinned to 0 in the caller (no real token
|
|
278
|
+
* telemetry yet), the guidance gate's budget-slope detector cannot fire,
|
|
279
|
+
* so 'throttle' from this path is rare in practice — it would only fire
|
|
280
|
+
* if some other slowdown signal (not budget) were configured.
|
|
257
281
|
*/
|
|
258
282
|
mapGuidanceDecision(decision, agentId) {
|
|
259
283
|
const flags = governanceFlags.getFlags().continueGate;
|
|
260
|
-
const
|
|
284
|
+
const isBlocking = decision.decision === 'pause' || decision.decision === 'stop';
|
|
285
|
+
const shouldContinue = !isBlocking;
|
|
261
286
|
const reason = decision.reasons.length > 0 ? decision.reasons.join('; ') : undefined;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
const throttleMs = decision.decision === 'stop' ? 30000 :
|
|
265
|
-
decision.decision === 'pause' ? 15000 : 5000;
|
|
287
|
+
if (isBlocking && flags.throttleOnExceed) {
|
|
288
|
+
const throttleMs = decision.decision === 'stop' ? 30000 : 15000;
|
|
266
289
|
this.throttledAgents.set(agentId, Date.now() + throttleMs);
|
|
267
290
|
}
|
|
268
291
|
return {
|
|
@@ -271,7 +294,7 @@ export class ContinueGateIntegration {
|
|
|
271
294
|
throttleMs: decision.decision === 'throttle' ? 5000 :
|
|
272
295
|
decision.decision === 'pause' ? 15000 :
|
|
273
296
|
decision.decision === 'stop' ? 30000 : undefined,
|
|
274
|
-
escalate:
|
|
297
|
+
escalate: isBlocking,
|
|
275
298
|
reworkRatio: decision.metrics.reworkRatio,
|
|
276
299
|
};
|
|
277
300
|
}
|