claude-flow 3.32.10 → 3.32.11

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",
3
- "version": "3.32.10",
3
+ "version": "3.32.11",
4
4
  "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "generation": 1,
4
- "generatedAt": "2026-07-26T22:06:31.105Z",
5
- "gitSha": "8bc23e76",
4
+ "generatedAt": "2026-07-26T22:48:15.666Z",
5
+ "gitSha": "2aec43f6",
6
6
  "catalog": {
7
7
  "agents": 164,
8
8
  "tools": 387,
@@ -1643,47 +1643,68 @@ export async function bridgeRecordFeedback(options) {
1643
1643
  try {
1644
1644
  let controller = 'none';
1645
1645
  let updated = 0;
1646
- // Try LearningSystem first (Phase 4)
1647
- const learningSystem = registry.get('learningSystem');
1648
- if (learningSystem) {
1649
- try {
1650
- if (typeof learningSystem.recordFeedback === 'function') {
1651
- await learningSystem.recordFeedback({
1652
- taskId: options.taskId, success: options.success, quality: options.quality,
1653
- agent: options.agent, duration: options.duration, timestamp: Date.now(),
1646
+ // Real intelligence-pipeline write (#2786 fix-3, 2026-07-26 sweep follow-up).
1647
+ // The prior code called `learningSystem.recordFeedback/.record` and
1648
+ // `reasoningBank.recordOutcome/.record` — none of those methods exist on
1649
+ // the LocalSonaCoordinator / LocalReasoningBank instances the bridge
1650
+ // actually wires into the registry (see initializeIntelligence in
1651
+ // memory/intelligence.ts). The silent catch made it look successful.
1652
+ //
1653
+ // The REAL public API is `intelligence.recordTrajectory(steps, verdict)`
1654
+ // — same call `hooks_post-command` already uses (hooks-tools.ts).
1655
+ // It initializes lazily, embeds the step, and drives both the SONA
1656
+ // coordinator and pattern distillation.
1657
+ try {
1658
+ const intelligence = await import('./intelligence.js');
1659
+ const verdict = options.success ? 'success' : 'failure';
1660
+ const recorded = await intelligence.recordTrajectory([{
1661
+ type: 'action',
1662
+ content: `Task ${options.taskId} completed by ${options.agent || 'unknown'} — success=${options.success}, quality=${options.quality.toFixed(3)}`,
1663
+ metadata: {
1664
+ taskId: options.taskId,
1665
+ agent: options.agent,
1666
+ quality: options.quality,
1667
+ duration: options.duration,
1654
1668
  // ADR-147 P2: forward spawn-tree lineage if present
1655
- parentAgentId: options.parentAgentId, depth: options.depth,
1656
- });
1657
- controller = 'learningSystem';
1658
- updated++;
1659
- }
1660
- else if (typeof learningSystem.record === 'function') {
1661
- await learningSystem.record(options.taskId, options.quality, options.success ? 'success' : 'failure');
1662
- controller = 'learningSystem';
1663
- updated++;
1664
- }
1669
+ parentAgentId: options.parentAgentId,
1670
+ depth: options.depth,
1671
+ },
1672
+ timestamp: Date.now(),
1673
+ }], verdict);
1674
+ if (recorded) {
1675
+ controller = 'intelligence';
1676
+ updated++;
1665
1677
  }
1666
- catch { /* API mismatch — skip */ }
1667
1678
  }
1668
- // Also record in ReasoningBank for pattern reinforcement
1679
+ catch {
1680
+ // Intelligence init failed (missing embeddings backend etc.). Fall
1681
+ // through to the memory-store write below — that always succeeds via
1682
+ // sql.js fallback so feedback is never fully lost.
1683
+ }
1684
+ // Optional pattern store: if the caller supplied learned patterns,
1685
+ // add them to LocalReasoningBank via its real `.store()` method (the
1686
+ // one method that DOES exist on the class).
1669
1687
  const reasoningBank = registry.get('reasoningBank');
1670
- if (reasoningBank) {
1671
- try {
1672
- if (typeof reasoningBank.recordOutcome === 'function') {
1673
- await reasoningBank.recordOutcome({
1674
- taskId: options.taskId, verdict: options.success ? 'success' : 'failure',
1675
- score: options.quality, timestamp: Date.now(),
1676
- });
1677
- controller = controller === 'none' ? 'reasoningBank' : `${controller}+reasoningBank`;
1678
- updated++;
1679
- }
1680
- else if (typeof reasoningBank.record === 'function') {
1681
- await reasoningBank.record(options.taskId, options.quality);
1682
- controller = controller === 'none' ? 'reasoningBank' : `${controller}+reasoningBank`;
1683
- updated++;
1688
+ if (reasoningBank && Array.isArray(options.patterns) && options.patterns.length) {
1689
+ for (const pattern of options.patterns) {
1690
+ try {
1691
+ if (typeof reasoningBank.store === 'function') {
1692
+ reasoningBank.store({
1693
+ id: `feedback-pattern-${options.taskId}-${updated}`,
1694
+ content: pattern,
1695
+ category: options.agent || 'general',
1696
+ confidence: options.quality,
1697
+ source: 'bridge-feedback',
1698
+ });
1699
+ updated++;
1700
+ }
1684
1701
  }
1702
+ catch { /* pattern rejected — non-critical */ }
1685
1703
  }
1686
- catch { /* API mismatch skip */ }
1704
+ if (updated > 0 && controller === 'intelligence')
1705
+ controller = 'intelligence+reasoningBank';
1706
+ else if (updated > 0 && controller === 'none')
1707
+ controller = 'reasoningBank';
1687
1708
  }
1688
1709
  // Phase 4: SkillLibrary promotion for high-quality patterns
1689
1710
  if (options.success && options.quality >= 0.9 && options.patterns?.length) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.32.10",
3
+ "version": "3.32.11",
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",