moflo 4.6.2 → 4.6.4
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 -28
- 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 +3 -2
- 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
|
@@ -232,7 +232,29 @@ export class MCPServerManager extends EventEmitter {
|
|
|
232
232
|
async startStdioServer() {
|
|
233
233
|
// Import the tool registry
|
|
234
234
|
const { listMCPTools, callMCPTool, hasTool } = await import('./mcp-client.js');
|
|
235
|
-
|
|
235
|
+
// Read version dynamically from root moflo package.json
|
|
236
|
+
let VERSION = '4.6.3';
|
|
237
|
+
try {
|
|
238
|
+
const { readFileSync } = await import('fs');
|
|
239
|
+
const { dirname: _d, join: _j } = await import('path');
|
|
240
|
+
const { fileURLToPath: _f } = await import('url');
|
|
241
|
+
let _dir = _d(_f(import.meta.url));
|
|
242
|
+
for (;;) {
|
|
243
|
+
try {
|
|
244
|
+
const _pkg = JSON.parse(readFileSync(_j(_dir, 'package.json'), 'utf8'));
|
|
245
|
+
if (_pkg.name === 'moflo' && _pkg.version) {
|
|
246
|
+
VERSION = _pkg.version;
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
catch { }
|
|
251
|
+
const _p = _d(_dir);
|
|
252
|
+
if (_p === _dir)
|
|
253
|
+
break;
|
|
254
|
+
_dir = _p;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
catch { }
|
|
236
258
|
const sessionId = `mcp-${Date.now()}-${randomUUID().slice(0, 8)}`;
|
|
237
259
|
// Log to stderr to not corrupt stdout
|
|
238
260
|
console.error(`[${new Date().toISOString()}] INFO [claude-flow-mcp] (${sessionId}) Starting in stdio mode`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moflo/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.4",
|
|
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",
|