codex-dp 0.155.1-deepseek.1 → 0.155.1-deepseek.3

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/setup.js +27 -11
  2. package/package.json +1 -1
package/bin/setup.js CHANGED
@@ -147,9 +147,21 @@ function unixArguments(args, releaseTag) {
147
147
  return [...args, "--release", releaseTag];
148
148
  }
149
149
 
150
- function run(command, args) {
150
+ export function windowsPowerShellEnv(baseEnv = process.env) {
151
+ const env = { ...baseEnv };
152
+ // Windows PowerShell 5.1 cannot load some inbox modules when Node inherits a
153
+ // PowerShell 7 PSModulePath. Let 5.1 rebuild its own default module path.
154
+ for (const key of Object.keys(env)) {
155
+ if (key.toLowerCase() === "psmodulepath") {
156
+ delete env[key];
157
+ }
158
+ }
159
+ return env;
160
+ }
161
+
162
+ function run(command, args, env = process.env) {
151
163
  return new Promise((resolve, reject) => {
152
- const child = spawn(command, args, { stdio: "inherit", env: process.env });
164
+ const child = spawn(command, args, { stdio: "inherit", env });
153
165
  child.on("error", reject);
154
166
  child.on("exit", (exitCode, signal) => {
155
167
  if (signal) {
@@ -206,15 +218,19 @@ export async function runSetup(args) {
206
218
 
207
219
  chmodSync(installerPath, 0o700);
208
220
  if (process.platform === "win32") {
209
- await run("powershell.exe", [
210
- "-NoLogo",
211
- "-NoProfile",
212
- "-ExecutionPolicy",
213
- "Bypass",
214
- "-File",
215
- installerPath,
216
- ...windowsArguments(args, releaseTag),
217
- ]);
221
+ await run(
222
+ "powershell.exe",
223
+ [
224
+ "-NoLogo",
225
+ "-NoProfile",
226
+ "-ExecutionPolicy",
227
+ "Bypass",
228
+ "-File",
229
+ installerPath,
230
+ ...windowsArguments(args, releaseTag),
231
+ ],
232
+ windowsPowerShellEnv(),
233
+ );
218
234
  } else {
219
235
  await run("bash", [installerPath, ...unixArguments(args, releaseTag)]);
220
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-dp",
3
- "version": "0.155.1-deepseek.1",
3
+ "version": "0.155.1-deepseek.3",
4
4
  "description": "Community Codex fork with DeepSeek external sub-agent support.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",