@learnrudi/cli 1.8.4 → 1.8.6

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 CHANGED
@@ -188,16 +188,23 @@ async function installDependencies(stackPath, manifest) {
188
188
  });
189
189
  return { installed: true };
190
190
  } else if (runtime === "python") {
191
- const requirementsPath = path.join(stackPath, "requirements.txt");
191
+ let requirementsPath = path.join(stackPath, "python", "requirements.txt");
192
+ let reqCwd = path.join(stackPath, "python");
192
193
  try {
193
194
  await fs.access(requirementsPath);
194
195
  } catch {
195
- return { installed: false, reason: "No requirements.txt" };
196
+ requirementsPath = path.join(stackPath, "requirements.txt");
197
+ reqCwd = stackPath;
198
+ try {
199
+ await fs.access(requirementsPath);
200
+ } catch {
201
+ return { installed: false, reason: "No requirements.txt" };
202
+ }
196
203
  }
197
204
  const pipCmd = getBundledBinary("python", "pip");
198
205
  console.log(` Installing pip dependencies...`);
199
206
  (0, import_child_process.execSync)(`"${pipCmd}" install -r requirements.txt`, {
200
- cwd: stackPath,
207
+ cwd: reqCwd,
201
208
  stdio: "pipe"
202
209
  });
203
210
  return { installed: true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learnrudi/cli",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "RUDI CLI - Install and manage MCP stacks, runtimes, and AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -37,7 +37,7 @@ function ensureDirectories() {
37
37
  RUDI_HOME,
38
38
  path.join(RUDI_HOME, 'runtimes'),
39
39
  path.join(RUDI_HOME, 'stacks'),
40
- path.join(RUDI_HOME, 'tools'),
40
+ path.join(RUDI_HOME, 'binaries'),
41
41
  path.join(RUDI_HOME, 'shims'),
42
42
  path.join(RUDI_HOME, 'cache'),
43
43
  ];
@@ -179,7 +179,7 @@ async function downloadBinary(binaryName, platformArch) {
179
179
  return false;
180
180
  }
181
181
 
182
- const destDir = path.join(RUDI_HOME, 'tools', binaryName);
182
+ const destDir = path.join(RUDI_HOME, 'binaries', binaryName);
183
183
  const binaryPath = path.join(destDir, manifest.binary || binaryName);
184
184
 
185
185
  // Skip if already installed