@saadnvd1/agent-os 0.3.735 → 0.3.736

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.
@@ -7,6 +7,7 @@
7
7
 
8
8
  import * as fs from "fs";
9
9
  import * as path from "path";
10
+ import { sessionPath } from "../agents/tool-path";
10
11
 
11
12
  export interface PackageManager {
12
13
  name: "bun" | "pnpm" | "yarn" | "npm";
@@ -67,12 +68,14 @@ export function shellCommand(command: string): string {
67
68
  }
68
69
 
69
70
  // What setup commands run under: the server's environment without the
70
- // settings that make an install skip devDependencies.
71
+ // settings that make an install skip devDependencies, on the PATH a session
72
+ // gets (version managers' shims first), so `bundle` isn't the system Ruby's.
71
73
  export function setupEnv(
72
74
  base: NodeJS.ProcessEnv,
73
75
  extra: Record<string, string> = {}
74
76
  ): NodeJS.ProcessEnv {
75
77
  const env: NodeJS.ProcessEnv = { ...base, ...extra };
78
+ if (!extra.PATH) env.PATH = sessionPath(base.PATH);
76
79
  for (const key of Object.keys(env)) {
77
80
  const k = key.toLowerCase();
78
81
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saadnvd1/agent-os",
3
- "version": "0.3.735",
3
+ "version": "0.3.736",
4
4
  "description": "Self-hosted web UI for managing Claude Code sessions",
5
5
  "bin": {
6
6
  "agent-os": "scripts/agent-os"