@rynx-ai/runtime 0.1.11-beta.49 → 0.1.11-beta.50

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.
@@ -49,10 +49,10 @@ export declare class DefaultCodexAppServerProcessSpawner implements CodexAppServ
49
49
  cliPath: string;
50
50
  args?: string[];
51
51
  /**
52
- * Extra env merged on top of the allowlisted child env (see
52
+ * Extra env merged on top of the inherited child env (see
53
53
  * {@link createCodexChildEnv}). Used to inject a per-agent retry budget
54
54
  * (`OPENAI_MAX_RETRIES` / `OPENAI_TIMEOUT`) into a dedicated app-server.
55
- * Merged after the allowlist, so it is intentionally exempt from it — only
55
+ * Merged after the inherited environment, so it takes precedence — only
56
56
  * the specific keys the caller computed are added, never arbitrary env.
57
57
  */
58
58
  extraEnv?: Record<string, string>;
@@ -3,7 +3,7 @@ export interface WsRpcChannelOptions {
3
3
  cliPath: string;
4
4
  /** app-server args WITHOUT `--listen` (the channel appends `--listen ws://…`). */
5
5
  baseArgs: string[];
6
- /** Extra env merged over the allowlisted codex child env (retry budget etc.). */
6
+ /** Extra env merged over the inherited codex child env (retry budget etc.). */
7
7
  extraEnv?: Record<string, string>;
8
8
  logger?: TransportLogger;
9
9
  /** Ms to wait for the app-server to accept a connection. */
@@ -1,28 +1,3 @@
1
- const CODEX_CHILD_ENV_ALLOWLIST = [
2
- "PATH",
3
- "HOME",
4
- "USER",
5
- "SHELL",
6
- "TMPDIR",
7
- "CODEX_HOME",
8
- "TRAE_HOME",
9
- // Keep Runtime-local CLIs on the same resident daemon when its state root is
10
- // configured outside the default ~/.rynx location.
11
- "RYNX_HOME",
12
- // RunnerManager supplies this rotation-safe handle for the exact managed
13
- // Session. Codex command executions need it to call their own Runtime
14
- // Browser; the raw Browser capability and internal runner key stay outside
15
- // the allowlist.
16
- "RYNX_BROWSER_CONTEXT_FILE",
17
- "HTTP_PROXY",
18
- "HTTPS_PROXY",
19
- "ALL_PROXY",
20
- "NO_PROXY",
21
- "http_proxy",
22
- "https_proxy",
23
- "all_proxy",
24
- "no_proxy",
25
- ];
26
1
  const PROXY_ENV_KEYS = [
27
2
  "HTTP_PROXY",
28
3
  "HTTPS_PROXY",
@@ -42,13 +17,9 @@ function withLoopbackNoProxy(value) {
42
17
  return entries.join(",");
43
18
  }
44
19
  export function createCodexChildEnv(env) {
45
- const childEnv = {};
46
- for (const key of CODEX_CHILD_ENV_ALLOWLIST) {
47
- const value = env[key];
48
- if (typeof value === "string" && value.length > 0) {
49
- childEnv[key] = value;
50
- }
51
- }
20
+ // Managed Codex/TraeX processes need the same development environment as
21
+ // their runner, including workspace metadata and user-configured CLI keys.
22
+ const childEnv = { ...env };
52
23
  if (childEnv.NO_PROXY || childEnv.no_proxy || PROXY_ENV_KEYS.some((key) => childEnv[key])) {
53
24
  const upper = childEnv.NO_PROXY ?? childEnv.no_proxy;
54
25
  const lower = childEnv.no_proxy ?? childEnv.NO_PROXY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rynx-ai/runtime",
3
- "version": "0.1.11-beta.49",
3
+ "version": "0.1.11-beta.50",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/rynx-ai/rynx.git",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "smol-toml": "1.7.1",
28
28
  "ws": "^8.21.0",
29
- "@rynx-ai/core": "0.1.11-beta.49"
29
+ "@rynx-ai/core": "0.1.11-beta.50"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ws": "^8.18.1"