@claude-flow/cli 3.10.22 → 3.10.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.10.22",
3
+ "version": "3.10.23",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",
@@ -74,10 +74,15 @@ const ALPHA_GRID = QUICK ? [0.5, 0.7] : [0.3, 0.5, 0.7];
74
74
  const SUBJ_GRID = QUICK ? [3.0, 5.0] : [2.0, 3.0, 5.0];
75
75
  const MMR_GRID = QUICK ? [0.5] : [0.3, 0.5, 0.7];
76
76
 
77
- // Rerank grid: hybridWeight × ceWeight (mutually constrained — they sum to 1)
77
+ // Rerank grid: hybridWeight × ceWeight (sum to 1).
78
78
  const RERANK_GRID = QUICK
79
79
  ? [[0.5, 0.5]]
80
- : [[0.3, 0.7], [0.4, 0.6], [0.5, 0.5], [0.6, 0.4], [0.7, 0.3]];
80
+ : [[0.2, 0.8], [0.3, 0.7], [0.4, 0.6], [0.5, 0.5], [0.6, 0.4], [0.7, 0.3], [0.8, 0.2]];
81
+
82
+ // ADR-083: when re-gridding rerank, sweep BOTH the hybrid sub-params (alpha, sw)
83
+ // AND the rerank weights. This catches joint-optima the per-axis grids miss.
84
+ const RERANK_HYBRID_ALPHA = QUICK ? [0.5] : [0.3, 0.5];
85
+ const RERANK_HYBRID_SW = QUICK ? [2.0] : [2.0, 3.0];
81
86
 
82
87
  // ---------------------------------------------------------------------------
83
88
  // Eval
@@ -128,13 +133,19 @@ async function main() {
128
133
  }
129
134
  }
130
135
 
131
- // §B — rerank grid (slow, ~5 configs each query takes ~1s with CE)
136
+ // §B — rerank joint grid (ADR-083): hybridWeight × ceWeight × alpha × subjectWeight.
137
+ // Each query takes ~1s with cross-encoder, so default full grid = 28 configs × 10
138
+ // queries × 1s ≈ 5 minutes. Use --quick for 1 config (smoke).
132
139
  for (const [hybridWeight, ceWeight] of RERANK_GRID) {
133
- configs.push({
134
- name: `rerank hw=${hybridWeight} cw=${ceWeight}`,
135
- rerank: true,
136
- params: { rerank: true, alpha: 0.6, subjectWeight: 3.0, hybridWeight, ceWeight },
137
- });
140
+ for (const alpha of RERANK_HYBRID_ALPHA) {
141
+ for (const subjectWeight of RERANK_HYBRID_SW) {
142
+ configs.push({
143
+ name: `rerank hw=${hybridWeight} cw=${ceWeight} α=${alpha} sw=${subjectWeight}`,
144
+ rerank: true,
145
+ params: { rerank: true, alpha, subjectWeight, mmrLambda: 0.7, hybridWeight, ceWeight },
146
+ });
147
+ }
148
+ }
138
149
  }
139
150
 
140
151
  console.log(`Grid-search: ${configs.length} configs across ${QUERIES.length} queries\n`);