moflo 4.8.45 → 4.8.46
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.
|
@@ -241,6 +241,21 @@ try {
|
|
|
241
241
|
}
|
|
242
242
|
} catch { /* non-fatal */ }
|
|
243
243
|
|
|
244
|
+
// ── 3c. Clean up double-prefixed guidance files from pre-4.8.45 upgrade ─────
|
|
245
|
+
// Before 4.8.45, session-start dynamically prepended "moflo-" to shipped filenames.
|
|
246
|
+
// When upgrading to 4.8.45+ (where files already have the prefix), the old in-memory
|
|
247
|
+
// code runs once and produces "moflo-moflo-*" duplicates. Remove them here.
|
|
248
|
+
try {
|
|
249
|
+
const guidanceDir = resolve(projectRoot, '.claude/guidance');
|
|
250
|
+
if (existsSync(guidanceDir)) {
|
|
251
|
+
for (const file of readdirSync(guidanceDir)) {
|
|
252
|
+
if (file.startsWith('moflo-moflo-') && file.endsWith('.md')) {
|
|
253
|
+
try { unlinkSync(resolve(guidanceDir, file)); } catch { /* non-fatal */ }
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
} catch { /* non-fatal */ }
|
|
258
|
+
|
|
244
259
|
// ── 4. Spawn background tasks ───────────────────────────────────────────────
|
|
245
260
|
const localCli = resolve(projectRoot, 'node_modules/moflo/src/@claude-flow/cli/bin/cli.js');
|
|
246
261
|
const hasLocalCli = existsSync(localCli);
|
|
@@ -241,6 +241,21 @@ try {
|
|
|
241
241
|
}
|
|
242
242
|
} catch { /* non-fatal */ }
|
|
243
243
|
|
|
244
|
+
// ── 3c. Clean up double-prefixed guidance files from pre-4.8.45 upgrade ─────
|
|
245
|
+
// Before 4.8.45, session-start dynamically prepended "moflo-" to shipped filenames.
|
|
246
|
+
// When upgrading to 4.8.45+ (where files already have the prefix), the old in-memory
|
|
247
|
+
// code runs once and produces "moflo-moflo-*" duplicates. Remove them here.
|
|
248
|
+
try {
|
|
249
|
+
const guidanceDir = resolve(projectRoot, '.claude/guidance');
|
|
250
|
+
if (existsSync(guidanceDir)) {
|
|
251
|
+
for (const file of readdirSync(guidanceDir)) {
|
|
252
|
+
if (file.startsWith('moflo-moflo-') && file.endsWith('.md')) {
|
|
253
|
+
try { unlinkSync(resolve(guidanceDir, file)); } catch { /* non-fatal */ }
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
} catch { /* non-fatal */ }
|
|
258
|
+
|
|
244
259
|
// ── 4. Spawn background tasks ───────────────────────────────────────────────
|
|
245
260
|
const localCli = resolve(projectRoot, 'node_modules/moflo/src/@claude-flow/cli/bin/cli.js');
|
|
246
261
|
const hasLocalCli = existsSync(localCli);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moflo",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.46",
|
|
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.
|
|
92
|
+
"moflo": "^4.8.45",
|
|
93
93
|
"tsx": "^4.21.0",
|
|
94
94
|
"typescript": "^5.9.3",
|
|
95
95
|
"vitest": "^4.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moflo/cli",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.46",
|
|
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",
|