@makeshkumar/blueorch-studio 1.0.0 → 1.0.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/cli.js +14 -3
- package/package.json +13 -4
package/bin/cli.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { program } from 'commander';
|
|
9
9
|
import { createRequire } from 'module';
|
|
10
|
-
import { fileURLToPath } from 'url';
|
|
10
|
+
import { fileURLToPath, pathToFileURL } from 'url';
|
|
11
11
|
import { dirname, join } from 'path';
|
|
12
12
|
import open from 'open';
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ program
|
|
|
25
25
|
.description(pkg.description)
|
|
26
26
|
.version(pkg.version)
|
|
27
27
|
.option('-p, --port <number>', 'Port to run the server on', '3000')
|
|
28
|
-
.parse();
|
|
28
|
+
.parse(process.argv);
|
|
29
29
|
|
|
30
30
|
const { port: portStr } = program.opts();
|
|
31
31
|
const port = Number(portStr);
|
|
@@ -44,7 +44,18 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'production';
|
|
|
44
44
|
console.log(`[INIT] ${ts()} BlueOrch Studio | port=${port} | NODE_ENV=${process.env.NODE_ENV}`);
|
|
45
45
|
|
|
46
46
|
// ─── Start the Express server ─────────────────────────────────────────────────
|
|
47
|
-
|
|
47
|
+
const serverPath = join(__dirname, '../server.js');
|
|
48
|
+
const serverUrl = pathToFileURL(serverPath).href;
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
// Keep argv intact so any downstream startup logic can still inspect CLI args.
|
|
52
|
+
await import(serverUrl);
|
|
53
|
+
} catch (error) {
|
|
54
|
+
const message = error instanceof Error ? error.stack ?? error.message : String(error);
|
|
55
|
+
console.error(`[ERROR] ${ts()} Failed to start BlueOrch Studio backend`);
|
|
56
|
+
console.error(message);
|
|
57
|
+
process.exit(1);
|
|
58
|
+
}
|
|
48
59
|
|
|
49
60
|
// ─── Open browser once server is healthy ─────────────────────────────────────
|
|
50
61
|
const appUrl = `http://localhost:${port}`;
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeshkumar/blueorch-studio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "BlueOrch Studio — Modular MCP Orchestrator with LLM chat, served as an npx command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"blueorch": "./bin/cli.js"
|
|
9
9
|
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
10
13
|
"files": [
|
|
11
14
|
"bin/",
|
|
12
15
|
"public/",
|
|
@@ -18,10 +21,16 @@
|
|
|
18
21
|
"scripts": {
|
|
19
22
|
"start": "NODE_ENV=production node server.js",
|
|
20
23
|
"dev": "NODE_ENV=development node --watch server.js",
|
|
21
|
-
"build:prod": "cd ../
|
|
22
|
-
"publish:npm": "npm run build:prod && npm publish"
|
|
24
|
+
"build:prod": "cd ../blueorch-ui && ng build",
|
|
25
|
+
"publish:npm": "npm run build:prod && npm publish --access public"
|
|
23
26
|
},
|
|
24
|
-
"keywords": [
|
|
27
|
+
"keywords": [
|
|
28
|
+
"mcp",
|
|
29
|
+
"orchestrator",
|
|
30
|
+
"llm",
|
|
31
|
+
"ai",
|
|
32
|
+
"blueorch"
|
|
33
|
+
],
|
|
25
34
|
"dependencies": {
|
|
26
35
|
"@anthropic-ai/sdk": "^0.80.0",
|
|
27
36
|
"@google/genai": "^1.46.0",
|