codex-to-im 0.1.7 → 0.1.8
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 +9 -2
- package/README_CN.md +9 -2
- package/config.env.example +3 -6
- package/dist/daemon.mjs +7778 -7177
- package/dist/ui-server.mjs +152 -65
- package/docs/install-windows.md +12 -12
- package/package.json +2 -2
- package/scripts/patch-codex-sdk-windows-hide.js +14 -1
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Windows note:
|
|
6
|
+
* `@openai/codex-sdk` spawns the bundled Codex CLI without `windowsHide`,
|
|
7
|
+
* which causes a black console window to flash for each IM-triggered run.
|
|
8
|
+
*
|
|
9
|
+
* We patch the installed SDK after `npm install` so the bridge can keep using
|
|
10
|
+
* the upstream package while avoiding the extra console window on Windows.
|
|
11
|
+
*
|
|
12
|
+
* Maintenance rule:
|
|
13
|
+
* - Keep this patch conservative and version-gated.
|
|
14
|
+
* - When upgrading `@openai/codex-sdk`, verify the spawn block still matches.
|
|
15
|
+
* - If upstream adds `windowsHide` natively, remove this script.
|
|
16
|
+
*/
|
|
4
17
|
const PATCH_MARKER = 'windowsHide: process.platform === "win32"';
|
|
5
|
-
const SUPPORTED_SDK_VERSION = /^0\.
|
|
18
|
+
const SUPPORTED_SDK_VERSION = /^0\.11\d\.\d+$/;
|
|
6
19
|
|
|
7
20
|
function logSkip(message) {
|
|
8
21
|
console.warn(`[postinstall] ${message}`);
|