codex-config 0.1.0 → 0.3.0

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
@@ -1,40 +1,88 @@
1
1
  # codex-config
2
2
 
3
- Apply a `config.toml.template` to `~/.codex/config.toml` without taking over the whole file.
3
+ Keep the active Codex `config.toml` current for the GPT-5.6 model family while preserving unrelated user settings such as MCP servers, projects, providers, and notices. The default target is `$CODEX_HOME/config.toml`, with `~/.codex/config.toml` used when `CODEX_HOME` is unset.
4
4
 
5
- By default, `codex-config` only adds template options that are missing. Existing options stay unchanged, and unrelated tables such as `[mcp_servers.*]`, `[model_providers.*]`, `[notice]`, and `[projects.*]` are preserved.
5
+ The bundled configuration defaults to `gpt-5.6-sol`. The supported models are:
6
6
 
7
- Use `--override-all` to reset template-covered options to the template values.
7
+ - `gpt-5.6-sol`
8
+ - `gpt-5.6-terra`
9
+ - `gpt-5.6-luna`
8
10
 
9
- ## Run
11
+ GPT-5.6 models carry their own personality instructions and do not expose a selectable personality placeholder. `codex-config` therefore removes the ineffective top-level `personality` setting.
12
+
13
+ The template explicitly opts into memories. Newly stable Codex capabilities such as multi-agent, goals, image generation, plugins, and tool search behavior are left at their source defaults, so the config does not pin redundant feature flags. Under-development features are not enabled automatically.
14
+
15
+ ## Apply
10
16
 
11
17
  ```bash
12
- npx codex-config apply
18
+ pnpm dlx codex-config apply
13
19
  ```
14
20
 
15
- ## Usage
21
+ By default, missing template settings are added and existing values are preserved, except for compatibility migrations required by the GPT-5.6 target:
22
+
23
+ - unsupported models are changed to `gpt-5.6-sol`;
24
+ - `sandbox_mode` is converted to its equivalent `default_permissions` profile;
25
+ - `personality` and Codex feature flags marked as removed are deleted;
26
+ - legacy feature aliases are renamed, and old web-search toggles become the top-level `web_search` mode;
27
+ - legacy status-line and terminal-title identifiers are canonicalized.
28
+
29
+ Use a dry run to inspect these operations before writing:
16
30
 
17
31
  ```bash
18
- npx codex-config apply
19
- npx codex-config apply --dry-run
20
- npx codex-config apply --override-all
21
- npx codex-config diff
22
- npx codex-config check
23
- npx codex-config doctor
32
+ pnpm dlx codex-config apply --dry-run
24
33
  ```
25
34
 
26
- Optional global install:
35
+ Use `-f` to reset every template-covered setting to the bundled value. Supported model selections such as Terra or Luna are otherwise preserved.
27
36
 
28
37
  ```bash
29
- npm install -g codex-config
30
- codex-config apply
38
+ pnpm dlx codex-config apply -f
31
39
  ```
32
40
 
41
+ ## Inspect
42
+
43
+ ```bash
44
+ pnpm dlx codex-config diff
45
+ pnpm dlx codex-config check
46
+ pnpm dlx codex-config doctor
47
+ ```
48
+
49
+ `doctor` validates TOML against the bundled Codex JSON Schema and reports the exact Codex source revision, supported models, removed or deprecated features, and non-canonical settings. Add `--json` to any command for machine-readable output.
50
+
51
+ ## Profiles
52
+
53
+ Current Codex profiles are separate config layers named `$CODEX_HOME/<name>.config.toml`. Apply or inspect one directly with the matching option:
54
+
55
+ ```bash
56
+ pnpm dlx codex-config apply --profile work
57
+ pnpm dlx codex-config doctor --profile work
58
+ codex --profile work
59
+ ```
60
+
61
+ The older top-level `profile` selector and `[profiles.<name>]` tables are no longer consumed by current Codex. `doctor` reports them with migration guidance, but does not delete or split that user-owned data automatically.
62
+
33
63
  Options:
34
64
 
35
- - `--target PATH`: target config path, default `~/.codex/config.toml`
65
+ - `--target PATH`: explicit target config path
66
+ - `-p, --profile NAME`: target `$CODEX_HOME/<name>.config.toml`; cannot be combined with `--target`
36
67
  - `--template PATH`: template path, default bundled template
37
- - `--override-all`: overwrite template-covered keys
68
+ - `-f, --force`: overwrite template-covered settings
38
69
  - `--json`: print JSON output
39
70
 
40
- One-shot vibe coded by Codex.
71
+ Optional global installation:
72
+
73
+ ```bash
74
+ pnpm add --global codex-config
75
+ codex-config apply
76
+ ```
77
+
78
+ ## Development
79
+
80
+ ```bash
81
+ pnpm install
82
+ pnpm sync:codex -- --source /path/to/codex
83
+ pnpm test
84
+ pnpm run check
85
+ pnpm run build
86
+ ```
87
+
88
+ `sync:codex` snapshots `config.schema.json`, the GPT-5.6 model capabilities (including minimum client version, reasoning efforts, service tiers, and personality support), and feature lifecycle metadata from the selected Codex checkout. Commit the generated changes together so validation and migrations target one source revision.