codex-copilot-dx 0.9.30 → 0.9.31

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/README.md CHANGED
@@ -19,7 +19,7 @@ ccdx
19
19
  CCDX reuses a compatible local credential or starts GitHub Device Flow, listens
20
20
  on `127.0.0.1:2026`, configures Codex, and opens the App. No client binary patch
21
21
  is needed. On Windows, open the App manually unless native prediction setup is
22
- enabled. The configured `dummy` API key is a placeholder, not a credential.
22
+ enabled. If PowerShell blocks scripts, use `npm.cmd` / `ccdx.cmd`; do not change company policy. The configured `dummy` API key is a placeholder, not a credential.
23
23
 
24
24
  Open [the local dashboard](http://127.0.0.1:2026/) for status, model discovery,
25
25
  usage, cache/limits, recent failures, request context and animation settings.
@@ -18,6 +18,13 @@ The CLI composes the service. Client integration owns its `configure`, `start`,
18
18
  render the dashboard. The adapter exposes integration snapshots and keeps
19
19
  management/MCP routes separate from the Responses path.
20
20
 
21
+ Package installation is an explicit management operation in `package-update.mjs`,
22
+ not part of inference or optional client integration. Windows uses the system
23
+ command interpreter only for the fixed `npm.cmd` installer command; stable-tag
24
+ validation remains upstream of launch. macOS/Linux use direct npm argv. There
25
+ is no generic shell runner or package-manager framework, and npm's configured
26
+ registry/proxy environment remains owned by the user.
27
+
21
28
  Native prediction has a separate loopback transport and an isolated HTTPS agent.
22
29
  Only its two selected hosts use the App-specific route. Non-configuration requests
23
30
  on those hosts are forwarded unchanged. The bridge does not replace Copilot or
package/docs/README.md CHANGED
@@ -17,6 +17,7 @@ These reports record a specific release and test environment. Their version,
17
17
  test counts, timings, live-provider observations, and limitations remain
18
18
  historical facts rather than current guarantees.
19
19
 
20
+ - [0.9.31: verified Windows package-update process launch](RELEASE_0.9.31.md)
20
21
  - [0.9.30: persistent prediction routes and verified macOS launch](RELEASE_0.9.30.md)
21
22
  - [0.9.29: visible-page refresh, atom favicon and safe reasoning declarations](RELEASE_0.9.29.md)
22
23
  - [0.9.28: verified local plaintext recovery and validation boundaries](RELEASE_0.9.28.md)
package/docs/REFERENCE.md CHANGED
@@ -491,6 +491,29 @@ ccdx update npm
491
491
  ccdx update github
492
492
  ```
493
493
 
494
+ In Windows PowerShell, use `ccdx.cmd update github` (or `ccdx.cmd update npm`)
495
+ when script policy blocks npm's `.ps1` shim. Since `0.9.31`, the updater runs
496
+ `npm.cmd` through the system `cmd.exe`, with AutoRun and delayed expansion
497
+ disabled, fixed installer arguments and a validated stable release tag.
498
+ It does not enable Node's generic `shell` option, change PowerShell policy,
499
+ rewrite npm configuration or add an external dependency. The caller's PATH,
500
+ registry, proxy, prefix/cache settings and terminal streams are preserved.
501
+ macOS/Linux retain direct `npm` execution and separate argument arrays.
502
+
503
+ Versions through `0.9.30` can fail with `spawn EINVAL` before the Windows
504
+ installer starts. To bootstrap this fix, run the installer directly:
505
+
506
+ ```powershell
507
+ npm.cmd install -g --allow-git=all 'github:DaleXiao/codex-copilot-dx#v0.9.31'
508
+ ccdx.cmd version
509
+ ```
510
+
511
+ This GitHub installation still requires Git on PATH. Stop/restart the running
512
+ adapter after installation; installation alone does not update a running process.
513
+ Installer errors and nonzero exits fail the update without a success message or
514
+ automatic retry. Missing Git, blocked dependency downloads or npm cache-only
515
+ settings remain npm/environment errors, not fixed by changing the launcher.
516
+
494
517
  Normal startup checks the official GitHub `releases/latest` web endpoint once in
495
518
  the background, without accessing the npm registry or REST API. The anonymous
496
519
  check requires no PAT or Copilot credentials, has a two-second deadline, validates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-copilot-dx",
3
- "version": "0.9.30",
3
+ "version": "0.9.31",
4
4
  "description": "Use Codex App with GitHub Copilot",
5
5
  "author": "Dale Xiao",
6
6
  "type": "module",
@@ -373,7 +373,7 @@ function topicHelp(name, topic) {
373
373
  "auto-review-model": `Usage:\n ${name} auto-review-model\n\nSelect a Responses model, then an advertised reasoning effort. Enter keeps the default/current choice; q cancels both steps without saving. Effort 0 follows the client (low when omitted). Settings apply only to Auto-review on the next request; no client patch or restart is required for adapters running 0.9.13 or newer.`,
374
374
  "suggestion": `The CCDX prediction panel has been retired. Run ${name} suggestion off to safely remove unchanged CCDX registrations. This cleanup does not change native predictions; see ${name} prediction --help for that separate opt-in feature.`,
375
375
  prediction: `Usage:\n ${name} prediction [status|on|off]\n\nOptional native next-message predictions; off by default. macOS and Windows. Windows requires the registered official MSIX App, an initialized profile, Windows PowerShell and .NET Framework 4.7.2+; Git/OpenSSL is not required for prediction setup. Quit Codex before on/off, then restart ccdx. On adds private App-profile certificate trust and an App-only route for chatgpt.com and ab.chatgpt.com. HTTPS on those hosts is decrypted locally; only prediction configuration is changed. No client program files, OS trust, account permissions, MCP or Hooks are changed. Static HTTP/HTTPS/SOCKS5 proxies and bypass rules are preserved. Windows supports company PAC/WPAD; macOS dynamic PAC/WPAD and CIDR bypass rules are reported as unsupported. The bridge port persists across restarts/updates; a busy saved port disables only predictions. Launch/reuse checks the App's actual route; an older random or missing route may require one full App quit. Official prediction configuration is preserved; the conversation's model is used. App updates require another compatibility check. Status distinguishes saved preference and observed config traffic from unverified candidate visibility.`,
376
- update: `Usage:\n ${name} update [npm|github]\n\nUpdates the global package from the configured npm registry or the latest stable GitHub release. With no source, an interactive terminal prompts for one.`,
376
+ update: `Usage:\n ${name} update [npm|github]\n\nUpdates the global package from the configured npm registry or the latest stable GitHub release. With no source, an interactive terminal prompts for one. Windows uses system cmd.exe to run npm.cmd without changing PowerShell policy; use the .cmd entrypoint if scripts are blocked. GitHub installs require Git on PATH and dependencies may still use the configured npm registry. Restart the running adapter after installation.`,
377
377
  version: `Usage:\n ${name} --version`,
378
378
  };
379
379
  return sections[topic];
@@ -1,4 +1,5 @@
1
1
  import { spawn } from "node:child_process";
2
+ import path from "node:path";
2
3
  import { createInterface } from "node:readline/promises";
3
4
  import { lookupLatestRelease, githubReleaseVersion } from "./version.mjs";
4
5
 
@@ -100,10 +101,17 @@ export async function runPackageUpdateCommand({
100
101
  const update = globalUpdateCommand(selectedSource, { platform, releaseTag: release?.tagName });
101
102
  const sourceLabel = selectedSource === "npm" ? "npm registry" : `GitHub release ${release.tagName}`;
102
103
  output.write(`Updating ${PACKAGE_NAME} from ${sourceLabel}...\n`);
103
- const child = spawnImpl(update.command, update.args, {
104
+ const windows = platform === "win32";
105
+ // npm.cmd needs cmd.exe. Only fixed install arguments and a validated stable
106
+ // release tag enter this command line; no user-supplied command is evaluated.
107
+ const command = windows
108
+ ? path.win32.join(env.SystemRoot || env.WINDIR || "C:\\Windows", "System32", "cmd.exe") : update.command;
109
+ const args = windows ? ["/d", "/s", "/v:off", "/c", `"${[update.command, ...update.args].join(" ")}"`] : update.args;
110
+ const child = spawnImpl(command, args, {
104
111
  env,
105
112
  shell: false,
106
113
  stdio: "inherit",
114
+ ...(windows ? { windowsVerbatimArguments: true, windowsHide: true } : {}),
107
115
  });
108
116
  await waitForExit(child);
109
117
  output.write(`Updated ${PACKAGE_NAME} from ${sourceLabel}. Restart the running adapter to use the new version.\n`);