moflo 4.8.43 → 4.8.44
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/.claude/guidance/shipped/memory-strategy.md +277 -276
- package/.claude/guidance/shipped/{task-swarm-integration.md → moflo-claude-swarm-cohesion.md} +4 -4
- package/.claude/guidance/shipped/moflo.md +2 -2
- package/.claude/guidance/shipped/{agent-bootstrap.md → subagents.md} +5 -19
- package/.claude/scripts/generate-code-map.mjs +956 -956
- package/.claude/scripts/index-all.mjs +14 -4
- package/.claude/scripts/index-guidance.mjs +11 -0
- package/.claude/scripts/index-tests.mjs +729 -729
- package/.claude/scripts/lib/moflo-resolve.mjs +14 -14
- package/README.md +15 -15
- package/bin/index-guidance.mjs +916 -905
- package/bin/setup-project.mjs +252 -252
- package/package.json +1 -1
- package/src/@claude-flow/cli/README.md +6 -6
- package/src/@claude-flow/cli/dist/src/commands/epic.js +767 -0
- package/src/@claude-flow/cli/dist/src/commands/index.js +1 -1
- package/src/@claude-flow/cli/dist/src/init/claudemd-generator.js +2 -2
- package/src/@claude-flow/cli/dist/src/init/moflo-init.js +7 -7
- package/src/@claude-flow/cli/dist/src/version.js +1 -1
- package/src/@claude-flow/cli/package.json +1 -1
|
@@ -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.
|
|
169
|
+
// 6. Build embeddings — single 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 {
|
|
@@ -106,7 +106,18 @@ function loadGuidanceDirs() {
|
|
|
106
106
|
? bundledShippedDir
|
|
107
107
|
: resolve(mofloRoot, '.claude/guidance');
|
|
108
108
|
const projectGuidanceDir = resolve(projectRoot, '.claude/guidance');
|
|
109
|
+
|
|
110
|
+
// Detect self-reference: if the project IS the moflo package, skip bundled scan
|
|
111
|
+
// to avoid double-indexing the same files under two prefixes.
|
|
112
|
+
let isSelfRef = false;
|
|
113
|
+
try {
|
|
114
|
+
const projPkg = JSON.parse(readFileSync(resolve(projectRoot, 'package.json'), 'utf-8'));
|
|
115
|
+
const mofloPkg = JSON.parse(readFileSync(resolve(mofloRoot, 'package.json'), 'utf-8'));
|
|
116
|
+
isSelfRef = projPkg.name === mofloPkg.name;
|
|
117
|
+
} catch { /* ignore — defaults to false */ }
|
|
118
|
+
|
|
109
119
|
if (
|
|
120
|
+
!isSelfRef &&
|
|
110
121
|
existsSync(bundledGuidanceDir) &&
|
|
111
122
|
resolve(bundledGuidanceDir) !== resolve(projectGuidanceDir) &&
|
|
112
123
|
resolve(bundledGuidanceDir) !== resolve(projectGuidanceDir, 'shipped')
|