@learnrudi/cli 1.9.9 → 1.9.10
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/dist/index.cjs +5 -4
- package/dist/packages-manifest.json +1 -1
- package/package.json +21 -20
package/dist/index.cjs
CHANGED
|
@@ -18175,6 +18175,7 @@ Total: ${totalCount} package(s) available`);
|
|
|
18175
18175
|
|
|
18176
18176
|
// src/commands/install.js
|
|
18177
18177
|
var fs13 = __toESM(require("fs/promises"), 1);
|
|
18178
|
+
var fsSync = __toESM(require("fs"), 1);
|
|
18178
18179
|
var path13 = __toESM(require("path"), 1);
|
|
18179
18180
|
var import_child_process4 = require("child_process");
|
|
18180
18181
|
init_src3();
|
|
@@ -18654,13 +18655,13 @@ function getBundledBinary(runtime, binary) {
|
|
|
18654
18655
|
const rudiHome = process.env.RUDI_HOME || path13.join(process.env.HOME || process.env.USERPROFILE, ".rudi");
|
|
18655
18656
|
if (runtime === "node") {
|
|
18656
18657
|
const npmPath = platform === "win32" ? path13.join(rudiHome, "runtimes", "node", "npm.cmd") : path13.join(rudiHome, "runtimes", "node", "bin", "npm");
|
|
18657
|
-
if (
|
|
18658
|
+
if (fsSync.existsSync(npmPath)) {
|
|
18658
18659
|
return npmPath;
|
|
18659
18660
|
}
|
|
18660
18661
|
}
|
|
18661
18662
|
if (runtime === "python") {
|
|
18662
18663
|
const pipPath = platform === "win32" ? path13.join(rudiHome, "runtimes", "python", "Scripts", "pip.exe") : path13.join(rudiHome, "runtimes", "python", "bin", "pip3");
|
|
18663
|
-
if (
|
|
18664
|
+
if (fsSync.existsSync(pipPath)) {
|
|
18664
18665
|
return pipPath;
|
|
18665
18666
|
}
|
|
18666
18667
|
}
|
|
@@ -18770,8 +18771,8 @@ function validateStackEntryPoint(stackPath, manifest) {
|
|
|
18770
18771
|
if (arg.startsWith("-")) continue;
|
|
18771
18772
|
const looksLikeFile = fileExtensions.some((ext) => arg.endsWith(ext)) || arg.includes("/");
|
|
18772
18773
|
if (!looksLikeFile) continue;
|
|
18773
|
-
const entryPath =
|
|
18774
|
-
if (!
|
|
18774
|
+
const entryPath = path13.join(stackPath, arg);
|
|
18775
|
+
if (!fsSync.existsSync(entryPath)) {
|
|
18775
18776
|
return { valid: false, error: `Entry point not found: ${arg}` };
|
|
18776
18777
|
}
|
|
18777
18778
|
return { valid: true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learnrudi/cli",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.10",
|
|
4
4
|
"description": "RUDI CLI - Install and manage MCP stacks, runtimes, and AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -12,17 +12,25 @@
|
|
|
12
12
|
"scripts",
|
|
13
13
|
"README.md"
|
|
14
14
|
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"start": "node src/index.js",
|
|
17
|
+
"prebuild": "node scripts/generate-manifest.js",
|
|
18
|
+
"build": "esbuild src/index.js --bundle --platform=node --format=cjs --outfile=dist/index.cjs --external:better-sqlite3 && cp src/router-mcp.js dist/router-mcp.js && cp src/packages-manifest.json dist/packages-manifest.json",
|
|
19
|
+
"postinstall": "node scripts/postinstall.js",
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
|
+
"test": "node --test src/__tests__/"
|
|
22
|
+
},
|
|
15
23
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"@learnrudi/
|
|
18
|
-
"@learnrudi/
|
|
19
|
-
"@learnrudi/
|
|
20
|
-
"@learnrudi/
|
|
21
|
-
"@learnrudi/
|
|
22
|
-
"@learnrudi/
|
|
23
|
-
"@learnrudi/
|
|
24
|
-
"@learnrudi/
|
|
25
|
-
"
|
|
24
|
+
"@learnrudi/core": "workspace:*",
|
|
25
|
+
"@learnrudi/db": "workspace:*",
|
|
26
|
+
"@learnrudi/env": "workspace:*",
|
|
27
|
+
"@learnrudi/manifest": "workspace:*",
|
|
28
|
+
"@learnrudi/mcp": "workspace:*",
|
|
29
|
+
"@learnrudi/registry-client": "workspace:*",
|
|
30
|
+
"@learnrudi/runner": "workspace:*",
|
|
31
|
+
"@learnrudi/secrets": "workspace:*",
|
|
32
|
+
"@learnrudi/utils": "workspace:*",
|
|
33
|
+
"better-sqlite3": "^12.5.0"
|
|
26
34
|
},
|
|
27
35
|
"devDependencies": {
|
|
28
36
|
"esbuild": "^0.27.2"
|
|
@@ -48,12 +56,5 @@
|
|
|
48
56
|
"publishConfig": {
|
|
49
57
|
"access": "public"
|
|
50
58
|
},
|
|
51
|
-
"license": "MIT"
|
|
52
|
-
|
|
53
|
-
"start": "node src/index.js",
|
|
54
|
-
"prebuild": "node scripts/generate-manifest.js",
|
|
55
|
-
"build": "esbuild src/index.js --bundle --platform=node --format=cjs --outfile=dist/index.cjs --external:better-sqlite3 && cp src/router-mcp.js dist/router-mcp.js && cp src/packages-manifest.json dist/packages-manifest.json",
|
|
56
|
-
"postinstall": "node scripts/postinstall.js",
|
|
57
|
-
"test": "node --test src/__tests__/"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
59
|
+
"license": "MIT"
|
|
60
|
+
}
|