moflo 4.8.41 → 4.8.42

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/index-all.mjs CHANGED
@@ -114,7 +114,7 @@ async function main() {
114
114
  if (isIndexEnabled('guidance')) {
115
115
  const guidanceScript = resolveBin('flo-index', 'index-guidance.mjs');
116
116
  if (guidanceScript) {
117
- runStep('guidance-index', 'node', [guidanceScript]);
117
+ runStep('guidance-index', 'node', [guidanceScript, '--no-embeddings']);
118
118
  } else {
119
119
  log('SKIP guidance-index (script not found)');
120
120
  }
@@ -126,7 +126,7 @@ async function main() {
126
126
  if (isIndexEnabled('code_map')) {
127
127
  const codeMapScript = resolveBin('flo-codemap', 'generate-code-map.mjs');
128
128
  if (codeMapScript) {
129
- runStep('code-map', 'node', [codeMapScript], 180_000);
129
+ runStep('code-map', 'node', [codeMapScript, '--no-embeddings'], 180_000);
130
130
  } else {
131
131
  log('SKIP code-map (script not found)');
132
132
  }
@@ -138,7 +138,7 @@ async function main() {
138
138
  if (isIndexEnabled('tests')) {
139
139
  const testScript = resolveBin('flo-testmap', 'index-tests.mjs');
140
140
  if (testScript) {
141
- runStep('test-index', 'node', [testScript]);
141
+ runStep('test-index', 'node', [testScript, '--no-embeddings']);
142
142
  } else {
143
143
  log('SKIP test-index (script not found)');
144
144
  }
@@ -166,7 +166,17 @@ async function main() {
166
166
  log('SKIP pretrain (CLI not found)');
167
167
  }
168
168
 
169
- // 6. HNSW rebuildMUST run last, after all writes are committed (#81)
169
+ // 6. Build embeddingssingle pass for ALL namespaces, after all indexers finish.
170
+ // Individual indexers are called with --no-embeddings to prevent background
171
+ // embedding spawns that race with this chain (sql.js last-write-wins).
172
+ const embeddingsScript = resolveBin('flo-embeddings', 'build-embeddings.mjs');
173
+ if (embeddingsScript) {
174
+ runStep('build-embeddings', 'node', [embeddingsScript], 300_000);
175
+ } else {
176
+ log('SKIP build-embeddings (script not found)');
177
+ }
178
+
179
+ // 7. HNSW rebuild — MUST run last, after all writes are committed (#81)
170
180
  if (localCli) {
171
181
  runStep('hnsw-rebuild', 'node', [localCli, 'memory', 'rebuild', '--force']);
172
182
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moflo",
3
- "version": "4.8.41",
3
+ "version": "4.8.42",
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",
@@ -89,7 +89,7 @@
89
89
  "@types/bcrypt": "^5.0.2",
90
90
  "@types/node": "^20.19.37",
91
91
  "eslint": "^8.0.0",
92
- "moflo": "^4.8.39",
92
+ "moflo": "^4.8.41",
93
93
  "tsx": "^4.21.0",
94
94
  "typescript": "^5.9.3",
95
95
  "vitest": "^4.0.0"
@@ -2,5 +2,5 @@
2
2
  * Auto-generated by build. Do not edit manually.
3
3
  * Source of truth: root package.json → scripts/sync-version.mjs
4
4
  */
5
- export const VERSION = '4.8.41';
5
+ export const VERSION = '4.8.42';
6
6
  //# sourceMappingURL=version.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moflo/cli",
3
- "version": "4.8.41",
3
+ "version": "4.8.42",
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",