kynjalflow 3.1.0 → 3.1.2
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/kynjalflow.js +4 -8
- package/package.json +2 -2
package/bin/kynjalflow.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// KynjalFlow CLI -
|
|
2
|
+
// KynjalFlow CLI - wrapper around @kynjal/cli
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
4
4
|
import { dirname, resolve, join } from 'node:path';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
|
|
9
|
-
// Walk up from kynjalflow/bin/ to find @claude-flow/cli in node_modules
|
|
10
9
|
function findCliPath() {
|
|
11
10
|
let dir = resolve(__dirname, '..');
|
|
12
11
|
for (let i = 0; i < 10; i++) {
|
|
13
|
-
const candidate = join(dir, 'node_modules', '
|
|
12
|
+
const candidate = join(dir, 'node_modules', 'kynjal-cli', 'bin', 'cli.js');
|
|
14
13
|
if (existsSync(candidate)) return dir;
|
|
15
14
|
const parent = dirname(dir);
|
|
16
15
|
if (parent === dir) break;
|
|
@@ -19,17 +18,15 @@ function findCliPath() {
|
|
|
19
18
|
return null;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
// Convert path to file:// URL for cross-platform ESM import (Windows requires this)
|
|
23
21
|
function toImportURL(filePath) {
|
|
24
22
|
return pathToFileURL(filePath).href;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
const pkgDir = findCliPath();
|
|
28
26
|
const cliBase = pkgDir
|
|
29
|
-
? join(pkgDir, 'node_modules', '
|
|
30
|
-
: resolve(__dirname, '../../v3/@
|
|
27
|
+
? join(pkgDir, 'node_modules', 'kynjal-cli')
|
|
28
|
+
: resolve(__dirname, '../../v3/@kynjal/cli');
|
|
31
29
|
|
|
32
|
-
// MCP mode: delegate to cli.js directly (branding irrelevant for JSON-RPC)
|
|
33
30
|
const cliArgs = process.argv.slice(2);
|
|
34
31
|
const isExplicitMCP = cliArgs.length >= 1 && cliArgs[0] === 'mcp' && (cliArgs.length === 1 || cliArgs[1] === 'start');
|
|
35
32
|
const isMCPMode = !process.stdin.isTTY && (process.argv.length === 2 || isExplicitMCP);
|
|
@@ -37,7 +34,6 @@ const isMCPMode = !process.stdin.isTTY && (process.argv.length === 2 || isExplic
|
|
|
37
34
|
if (isMCPMode) {
|
|
38
35
|
await import(toImportURL(join(cliBase, 'bin', 'cli.js')));
|
|
39
36
|
} else {
|
|
40
|
-
// CLI mode: use KynjalFlow branding
|
|
41
37
|
const { CLI } = await import(toImportURL(join(cliBase, 'dist', 'src', 'index.js')));
|
|
42
38
|
const cli = new CLI({
|
|
43
39
|
name: 'kynjalflow',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kynjalflow",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "KynjalFlow - Personal AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "bin/kynjalflow.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"LICENSE"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"
|
|
20
|
+
"kynjal-cli": ">=3.1.0-alpha.44"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20.0.0"
|