agentic-flow 1.5.0 → 1.5.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.5.1] - 2025-10-11
9
+
10
+ ### Fixed
11
+ - **Critical:** Fixed vector dimension mismatch in ReasoningBank demo
12
+ - Ensured consistent embedding dimensions (1024) across seeding and retrieval
13
+ - Fixed OpenAI fallback to use config dimensions instead of hardcoded 1536
14
+ - Demo now works correctly without OpenAI API key
15
+
8
16
  ## [1.5.0] - 2025-10-11
9
17
 
10
18
  ### 🧠 Major Feature: Reasoning Agents System with ReasoningBank Integration
@@ -37,9 +37,10 @@ export async function computeEmbedding(text) {
37
37
  */
38
38
  async function openaiEmbed(text, model) {
39
39
  const apiKey = process.env.OPENAI_API_KEY;
40
+ const config = loadConfig();
40
41
  if (!apiKey) {
41
42
  console.warn('[WARN] OPENAI_API_KEY not set, falling back to hash embeddings');
42
- return hashEmbed(text, 1536); // OpenAI default dimension
43
+ return hashEmbed(text, config.embeddings.dimensions); // Use config dimension
43
44
  }
44
45
  try {
45
46
  const response = await fetch('https://api.openai.com/v1/embeddings', {
@@ -62,7 +63,8 @@ async function openaiEmbed(text, model) {
62
63
  catch (error) {
63
64
  console.error('[ERROR] OpenAI embedding failed:', error);
64
65
  console.warn('[WARN] Falling back to hash embeddings');
65
- return hashEmbed(text, 1536);
66
+ const config = loadConfig();
67
+ return hashEmbed(text, config.embeddings.dimensions);
66
68
  }
67
69
  }
68
70
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-flow",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Production-ready AI agent orchestration platform with 66 specialized agents, 213 MCP tools, ReasoningBank learning memory, and autonomous multi-agent swarms. Built by @ruvnet with Claude Agent SDK, neural networks, memory persistence, GitHub integration, and distributed consensus protocols.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",