moflo 4.8.7 → 4.8.8
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/bin/build-embeddings.mjs
CHANGED
|
@@ -501,6 +501,25 @@ async function main() {
|
|
|
501
501
|
|
|
502
502
|
log('═══════════════════════════════════════════════════════════');
|
|
503
503
|
|
|
504
|
+
// Update vector-stats cache for statusline display
|
|
505
|
+
try {
|
|
506
|
+
const dbSizeKB = Math.floor(readFileSync(DB_PATH).length / 1024);
|
|
507
|
+
const hnswExists = existsSync(resolve(projectRoot, '.swarm', 'hnsw.index'))
|
|
508
|
+
|| existsSync(resolve(projectRoot, '.claude-flow', 'hnsw.index'));
|
|
509
|
+
const cacheData = {
|
|
510
|
+
vectorCount: stats.withEmbeddings,
|
|
511
|
+
dbSizeKB,
|
|
512
|
+
namespaces: nsStats.length,
|
|
513
|
+
hasHnsw: hnswExists,
|
|
514
|
+
updatedAt: Date.now(),
|
|
515
|
+
};
|
|
516
|
+
// Write to both locations so statusline finds it regardless of which dir it checks
|
|
517
|
+
for (const cacheDir of [resolve(projectRoot, '.claude-flow'), resolve(projectRoot, '.swarm')]) {
|
|
518
|
+
if (!existsSync(cacheDir)) mkdirSync(cacheDir, { recursive: true });
|
|
519
|
+
writeFileSync(resolve(cacheDir, 'vector-stats.json'), JSON.stringify(cacheData));
|
|
520
|
+
}
|
|
521
|
+
} catch { /* non-fatal */ }
|
|
522
|
+
|
|
504
523
|
db.close();
|
|
505
524
|
}
|
|
506
525
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moflo",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.8",
|
|
4
4
|
"description": "MoFlo — AI agent orchestration for Claude Code. Forked from ruflo/claude-flow with patches applied to source, plus feature-level orchestration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moflo/cli",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MoFlo CLI — AI agent orchestration with specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|