moflo 4.6.1 → 4.6.3
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/package.json +1 -1
- package/src/@claude-flow/cli/bin/cli.js +20 -1
- package/src/@claude-flow/cli/dist/src/commands/doctor.js +2 -2
- package/src/@claude-flow/cli/dist/src/init/executor.js +455 -453
- package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +5 -1
- package/src/@claude-flow/cli/dist/src/init/mcp-generator.js +19 -46
- package/src/@claude-flow/cli/dist/src/init/moflo-init.js +549 -549
- package/src/@claude-flow/cli/dist/src/mcp-server.js +23 -1
- package/src/@claude-flow/cli/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moflo",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.3",
|
|
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",
|
|
@@ -22,7 +22,26 @@ if (isMCPMode) {
|
|
|
22
22
|
// Run MCP server mode
|
|
23
23
|
const { listMCPTools, callMCPTool, hasTool } = await import('../dist/src/mcp-client.js');
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
// Read version from the root moflo package.json dynamically
|
|
26
|
+
const { readFileSync } = await import('fs');
|
|
27
|
+
const { dirname: _dirname, join: _join } = await import('path');
|
|
28
|
+
const { fileURLToPath: _fileURLToPath } = await import('url');
|
|
29
|
+
let VERSION = '4.6.2';
|
|
30
|
+
try {
|
|
31
|
+
const _thisDir = _dirname(_fileURLToPath(import.meta.url));
|
|
32
|
+
// Walk up to find root moflo package.json
|
|
33
|
+
let _dir = _thisDir;
|
|
34
|
+
for (;;) {
|
|
35
|
+
const _candidate = _join(_dir, 'package.json');
|
|
36
|
+
try {
|
|
37
|
+
const _pkg = JSON.parse(readFileSync(_candidate, 'utf8'));
|
|
38
|
+
if (_pkg.name === 'moflo' && _pkg.version) { VERSION = _pkg.version; break; }
|
|
39
|
+
} catch {}
|
|
40
|
+
const _parent = _dirname(_dir);
|
|
41
|
+
if (_parent === _dir) break;
|
|
42
|
+
_dir = _parent;
|
|
43
|
+
}
|
|
44
|
+
} catch {}
|
|
26
45
|
const sessionId = `mcp-${Date.now()}-${randomUUID().slice(0, 8)}`;
|
|
27
46
|
|
|
28
47
|
console.error(
|
|
@@ -263,7 +263,7 @@ async function checkVersionFreshness() {
|
|
|
263
263
|
const pkg = JSON.parse(readFileSync(candidate, 'utf8'));
|
|
264
264
|
if (pkg.version &&
|
|
265
265
|
typeof pkg.name === 'string' &&
|
|
266
|
-
(pkg.name === '@claude-flow/cli' || pkg.name === 'claude-flow' || pkg.name === 'ruflo')) {
|
|
266
|
+
(pkg.name === '@claude-flow/cli' || pkg.name === 'claude-flow' || pkg.name === 'ruflo' || pkg.name === 'moflo' || pkg.name === '@moflo/cli')) {
|
|
267
267
|
currentVersion = pkg.version;
|
|
268
268
|
break;
|
|
269
269
|
}
|
|
@@ -289,7 +289,7 @@ async function checkVersionFreshness() {
|
|
|
289
289
|
// Query npm for latest version (using alpha tag since that's what we publish to)
|
|
290
290
|
let latestVersion = currentVersion;
|
|
291
291
|
try {
|
|
292
|
-
const npmInfo = await runCommand('npm view
|
|
292
|
+
const npmInfo = await runCommand('npm view moflo version', 5000);
|
|
293
293
|
latestVersion = npmInfo.trim();
|
|
294
294
|
}
|
|
295
295
|
catch {
|