@gair/codex-med 0.1.5 → 0.1.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.
Files changed (2) hide show
  1. package/bin/codex.js +1 -12
  2. package/package.json +2 -2
package/bin/codex.js CHANGED
@@ -2,9 +2,8 @@
2
2
  // Unified entry point for the Codex CLI.
3
3
 
4
4
  import { spawn } from "node:child_process";
5
- import { existsSync, mkdirSync, realpathSync } from "fs";
5
+ import { existsSync, realpathSync } from "fs";
6
6
  import { createRequire } from "node:module";
7
- import { homedir } from "node:os";
8
7
  import path from "path";
9
8
  import { fileURLToPath } from "url";
10
9
 
@@ -170,16 +169,6 @@ if (existsSync(pathDir)) {
170
169
  const updatedPath = getUpdatedPath(additionalDirs);
171
170
 
172
171
  const env = { ...process.env, PATH: updatedPath };
173
- const configuredCodexMedHome = process.env.CODEX_MED_HOME;
174
- const codexMedHome = configuredCodexMedHome
175
- ? path.resolve(configuredCodexMedHome)
176
- : path.join(homedir(), ".codex-med");
177
- mkdirSync(codexMedHome, { recursive: true });
178
- env.CODEX_MED_HOME = codexMedHome;
179
- // The native CLI still reads CODEX_HOME internally. Keep that implementation
180
- // detail inside the Codex Med child process so it never shares the regular
181
- // Codex home, even when the parent shell has CODEX_HOME configured.
182
- env.CODEX_HOME = codexMedHome;
183
172
  const packageManagerEnvVar =
184
173
  detectPackageManager() === "bun"
185
174
  ? "CODEX_MANAGED_BY_BUN"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gair/codex-med",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Codex CLI for medical domain agents (fork of OpenAI Codex CLI).",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -21,6 +21,6 @@
21
21
  },
22
22
  "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
23
23
  "optionalDependencies": {
24
- "@gair/codex-med-linux-x64": "npm:@gair/codex-med@0.1.5-linux-x64"
24
+ "@gair/codex-med-linux-x64": "npm:@gair/codex-med@0.1.6-linux-x64"
25
25
  }
26
26
  }