cloudflare-mcp-smart-proxy 1.5.17 → 1.5.18
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/package.json +1 -1
- package/src/codex-app-server.js +4 -1
package/package.json
CHANGED
package/src/codex-app-server.js
CHANGED
|
@@ -276,12 +276,15 @@ export function resolveCodexAppServerSocket({
|
|
|
276
276
|
homeDir = os.homedir(),
|
|
277
277
|
codexHome = '',
|
|
278
278
|
socketPath = '',
|
|
279
|
-
runtimeDir = process.env.XDG_RUNTIME_DIR || ''
|
|
279
|
+
runtimeDir = process.env.XDG_RUNTIME_DIR || '',
|
|
280
|
+
pathExists = fs.existsSync
|
|
280
281
|
} = {}) {
|
|
281
282
|
const explicitSocketPath = socketPath || process.env.CODEX_APP_SERVER_SOCKET || '';
|
|
282
283
|
if (explicitSocketPath) return path.resolve(explicitSocketPath);
|
|
283
284
|
if (runtimeDir) return path.join(path.resolve(runtimeDir), 'codex', 'app-server.sock');
|
|
284
285
|
const resolvedCodexHome = codexHome || process.env.CODEX_HOME || path.join(homeDir, '.codex');
|
|
286
|
+
const ipcSocketPath = path.join(path.resolve(resolvedCodexHome), 'ipc', 'ipc.sock');
|
|
287
|
+
if (pathExists(ipcSocketPath)) return ipcSocketPath;
|
|
285
288
|
return path.join(resolvedCodexHome, 'app-server-control', 'app-server-control.sock');
|
|
286
289
|
}
|
|
287
290
|
|