agent-relay-orchestrator 0.119.2 → 0.119.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/package.json +2 -2
- package/src/spawn/command.ts +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay-orchestrator",
|
|
3
|
-
"version": "0.119.
|
|
3
|
+
"version": "0.119.6",
|
|
4
4
|
"description": "Agent Relay orchestrator — manages agent lifecycle across hosts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "bun test"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"agent-relay-providers": "0.104.
|
|
19
|
+
"agent-relay-providers": "0.104.3",
|
|
20
20
|
"agent-relay-sdk": "0.2.104",
|
|
21
21
|
"callmux": "0.23.0"
|
|
22
22
|
},
|
package/src/spawn/command.ts
CHANGED
|
@@ -66,7 +66,7 @@ export function buildEnv(opts: SpawnOptions & { label: string; agentId: string }
|
|
|
66
66
|
.filter((v, i, a) => a.indexOf(v) === i)
|
|
67
67
|
.join(":");
|
|
68
68
|
|
|
69
|
-
return {
|
|
69
|
+
return sanitizeWorkspaceEnv({
|
|
70
70
|
...process.env as Record<string, string>,
|
|
71
71
|
...(config.token ? { AGENT_RELAY_TOKEN: config.token } : {}),
|
|
72
72
|
...config.env,
|
|
@@ -101,7 +101,7 @@ export function buildEnv(opts: SpawnOptions & { label: string; agentId: string }
|
|
|
101
101
|
...(opts.workspace ? { AGENT_RELAY_WORKSPACE_JSON: JSON.stringify(opts.workspace) } : {}),
|
|
102
102
|
...(opts.automationId ? { AGENT_RELAY_AUTOMATION_ID: opts.automationId } : {}),
|
|
103
103
|
...(opts.automationRunId ? { AGENT_RELAY_AUTOMATION_RUN_ID: opts.automationRunId } : {}),
|
|
104
|
-
};
|
|
104
|
+
}, opts.workspaceMode);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
function agentProfileEnv(profile: Record<string, unknown> | undefined): Record<string, string> {
|
|
@@ -109,3 +109,10 @@ function agentProfileEnv(profile: Record<string, unknown> | undefined): Record<s
|
|
|
109
109
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
|
|
110
110
|
return Object.fromEntries(Object.entries(raw).filter((entry): entry is [string, string] => typeof entry[1] === "string"));
|
|
111
111
|
}
|
|
112
|
+
|
|
113
|
+
function sanitizeWorkspaceEnv(env: Record<string, string>, workspaceMode: string | undefined): Record<string, string> {
|
|
114
|
+
if (workspaceMode !== "isolated") return env;
|
|
115
|
+
const isolatedEnv = { ...env };
|
|
116
|
+
delete isolatedEnv.PUBLIC_DIR;
|
|
117
|
+
return isolatedEnv;
|
|
118
|
+
}
|