codex-account-orchestrator 1.4.0 → 1.4.1
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/CHANGELOG.md +7 -0
- package/dist/cli_main.js +2 -0
- package/dist/gateway/codex_config.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.1] - 2026-02-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `cao gateway enable` now updates `~/.codex/config.toml` to route Codex via the configured gateway URL
|
|
13
|
+
- Gateway config update now ensures `~/.codex/` exists before writing `config.toml`
|
|
14
|
+
|
|
8
15
|
## [1.4.0] - 2026-01-27
|
|
9
16
|
|
|
10
17
|
### Added
|
package/dist/cli_main.js
CHANGED
|
@@ -402,7 +402,9 @@ gateway
|
|
|
402
402
|
.option("--base-url <url>", "Gateway base URL", "http://127.0.0.1:4319")
|
|
403
403
|
.action((options) => {
|
|
404
404
|
(0, codex_config_1.disableGatewayConfig)();
|
|
405
|
+
(0, codex_config_1.enableGatewayConfig)({ baseUrl: options.baseUrl });
|
|
405
406
|
const result = (0, codex_shim_1.enableGatewayShim)(options.baseUrl);
|
|
407
|
+
process.stdout.write(`Codex config updated: ${(0, codex_config_1.getCodexConfigPath)()}\n`);
|
|
406
408
|
process.stdout.write(`Codex shim installed: ${result.shimPath}\n`);
|
|
407
409
|
process.stdout.write(`Real codex: ${result.realCodexPath}\n`);
|
|
408
410
|
if (!result.inPath) {
|
|
@@ -12,6 +12,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
12
12
|
const BACKUP_SUFFIX = ".cao.bak";
|
|
13
13
|
function enableGatewayConfig(update) {
|
|
14
14
|
const configPath = getCodexConfigPath();
|
|
15
|
+
fs_1.default.mkdirSync(path_1.default.dirname(configPath), { recursive: true });
|
|
15
16
|
const original = fs_1.default.existsSync(configPath) ? fs_1.default.readFileSync(configPath, "utf8") : "";
|
|
16
17
|
ensureBackup(configPath, original);
|
|
17
18
|
let updated = original;
|