codex-configurator 0.2.3 → 0.2.4
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 +3 -0
- package/package.json +1 -1
- package/src/configFeatures.js +3 -26
- package/src/configHelp.js +1 -7
- package/src/configParser.js +1 -5
- package/src/configReference.js +1 -2
- package/src/reference/config-reference.json +578 -2921
package/README.md
CHANGED
|
@@ -120,6 +120,9 @@ This uses the `npm` command from `PATH` (or `CODEX_CONFIGURATOR_NPM_BIN` if set)
|
|
|
120
120
|
## Upstream reference
|
|
121
121
|
|
|
122
122
|
- Codex configuration reference: https://developers.openai.com/codex/config-reference/
|
|
123
|
+
- Snapshot currently synced against Codex `rust-v0.105.0` reference updates (published 2026-02-25).
|
|
124
|
+
- Reference sync is intentionally manual and review-driven; this repo does not run automated remote-content sync scripts.
|
|
125
|
+
- Release notes and change history: `CHANGELOG.md`
|
|
123
126
|
|
|
124
127
|
## Scripts
|
|
125
128
|
|
package/package.json
CHANGED
package/src/configFeatures.js
CHANGED
|
@@ -65,22 +65,10 @@ export const CONFIG_FEATURE_DEFINITIONS = [
|
|
|
65
65
|
{ defaultValue: true, isDocumented: true }
|
|
66
66
|
),
|
|
67
67
|
makeFeatureDefinition('connectors', 'Enable external connector support.', 'Controls optional third-party connector behavior.'),
|
|
68
|
-
makeFeatureDefinition(
|
|
69
|
-
'elevated_windows_sandbox',
|
|
70
|
-
'Enable elevated Windows sandbox.',
|
|
71
|
-
'Allows higher-permission sandbox behavior on Windows.',
|
|
72
|
-
{ isDocumented: true }
|
|
73
|
-
),
|
|
74
68
|
makeFeatureDefinition('enable_experimental_windows_sandbox', 'Enable experimental Windows sandbox.', 'Turns on experimental Windows sandbox behavior.'),
|
|
75
69
|
makeFeatureDefinition('enable_request_compression', 'Enable request compression.', 'Compress request payloads for matching model endpoints.'),
|
|
76
70
|
makeFeatureDefinition('experimental_use_freeform_apply_patch', 'Enable experimental freeform apply_patch usage.', 'Allows experimental patching behavior in edit flows.'),
|
|
77
71
|
makeFeatureDefinition('experimental_use_unified_exec_tool', 'Enable experimental unified exec tool.', 'Use unified execution routing when invoking shell tools.'),
|
|
78
|
-
makeFeatureDefinition(
|
|
79
|
-
'experimental_windows_sandbox',
|
|
80
|
-
'Enable experimental Windows sandbox.',
|
|
81
|
-
'Turns on a newer Windows sandbox implementation.',
|
|
82
|
-
{ isDocumented: true }
|
|
83
|
-
),
|
|
84
72
|
makeFeatureDefinition('include_apply_patch_tool', 'Expose the apply_patch tool.', 'Makes apply patch tool calls available to the model.'),
|
|
85
73
|
makeFeatureDefinition('js_repl', 'Enable JavaScript REPL.', 'Allow JavaScript-based REPL style tooling.'),
|
|
86
74
|
makeFeatureDefinition('js_repl_tools_only', 'Restrict js_repl to tool-only mode.', 'Limits js_repl usage to explicit tool calls.'),
|
|
@@ -164,30 +152,19 @@ export const CONFIG_FEATURE_DEFINITIONS = [
|
|
|
164
152
|
'web_search',
|
|
165
153
|
'Enable web search tool.',
|
|
166
154
|
'Allows the model to call a web search tool.',
|
|
167
|
-
{
|
|
168
|
-
deprecation: '[features].web_search is deprecated; use the top-level web_search setting instead.',
|
|
169
|
-
isDocumented: true,
|
|
170
|
-
}
|
|
155
|
+
{ isDocumented: true }
|
|
171
156
|
),
|
|
172
157
|
makeFeatureDefinition(
|
|
173
158
|
'web_search_cached',
|
|
174
159
|
'Enable cached web search only.',
|
|
175
160
|
'Restricts web search calls to cached results.',
|
|
176
|
-
{
|
|
177
|
-
deprecation:
|
|
178
|
-
'[features].web_search_cached is deprecated legacy toggle. `true` maps to `web_search = "cached"`.',
|
|
179
|
-
isDocumented: true,
|
|
180
|
-
}
|
|
161
|
+
{ isDocumented: true }
|
|
181
162
|
),
|
|
182
163
|
makeFeatureDefinition(
|
|
183
164
|
'web_search_request',
|
|
184
165
|
'Enable web search request flow.',
|
|
185
166
|
'Turns on request-mode web search behavior.',
|
|
186
|
-
{
|
|
187
|
-
deprecation:
|
|
188
|
-
'[features].web_search_request is deprecated legacy toggle. `true` maps to `web_search = "live"`.',
|
|
189
|
-
isDocumented: true,
|
|
190
|
-
}
|
|
167
|
+
{ isDocumented: true }
|
|
191
168
|
),
|
|
192
169
|
];
|
|
193
170
|
|
package/src/configHelp.js
CHANGED
|
@@ -21,12 +21,6 @@ const CONFIG_VALUE_OPTIONS = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const CONFIG_PATH_EXPLANATIONS = [
|
|
24
|
-
{
|
|
25
|
-
path: ['tools', 'web_search'],
|
|
26
|
-
short: 'Deprecated legacy web search flag.',
|
|
27
|
-
usage: 'Use the top-level web_search setting instead.',
|
|
28
|
-
deprecation: 'tools.web_search is deprecated; use the top-level web_search setting instead.',
|
|
29
|
-
},
|
|
30
24
|
{
|
|
31
25
|
path: ['projects', '*', 'trust_level'],
|
|
32
26
|
short: 'Controls how much trust this project gets for command execution.',
|
|
@@ -61,7 +55,7 @@ const CONFIG_OPTION_EXPLANATIONS = {
|
|
|
61
55
|
};
|
|
62
56
|
const SECTION_PURPOSE_OVERRIDES = {
|
|
63
57
|
agents: 'Named agent definitions and per-agent configuration file references.',
|
|
64
|
-
apps: 'Per-app enablement rules and
|
|
58
|
+
apps: 'Per-app enablement rules and tool-level approval controls.',
|
|
65
59
|
features: 'Feature flags for optional and experimental Codex behavior.',
|
|
66
60
|
feedback: 'Feedback submission settings for Codex surfaces.',
|
|
67
61
|
history: 'Session history retention policy and on-disk size limits.',
|
package/src/configParser.js
CHANGED
|
@@ -409,8 +409,7 @@ const formatRowLabel = (key, kind, value) =>
|
|
|
409
409
|
: `${key} = ${previewValue(value)}`;
|
|
410
410
|
|
|
411
411
|
const isPathDeprecated = (pathSegments, key) =>
|
|
412
|
-
Boolean(getReferenceOptionForPath([...pathSegments, String(key)])?.deprecated)
|
|
413
|
-
isToolsWebSearchDeprecated(pathSegments, key);
|
|
412
|
+
Boolean(getReferenceOptionForPath([...pathSegments, String(key)])?.deprecated);
|
|
414
413
|
|
|
415
414
|
const sortRowsAlphabetically = (rows) =>
|
|
416
415
|
[...rows].sort((left, right) => String(left.key).localeCompare(String(right.key)));
|
|
@@ -523,9 +522,6 @@ const buildRootRows = (node) => buildDefinedRows(node, getReferenceRootDefinitio
|
|
|
523
522
|
const getTableDefinitions = (pathSegments) =>
|
|
524
523
|
Array.isArray(pathSegments) ? getReferenceTableDefinitions(pathSegments) : [];
|
|
525
524
|
|
|
526
|
-
const isToolsWebSearchDeprecated = (pathSegments, key) =>
|
|
527
|
-
pathSegments[pathSegments.length - 1] === 'tools' && key === 'web_search';
|
|
528
|
-
|
|
529
525
|
export const getNodeAtPath = (root, segments) => {
|
|
530
526
|
let current = root;
|
|
531
527
|
|
package/src/configReference.js
CHANGED
|
@@ -5,7 +5,6 @@ const CONFIG_REFERENCE_DATA = require('./reference/config-reference.json');
|
|
|
5
5
|
|
|
6
6
|
const DOCUMENT_ID = 'config.toml';
|
|
7
7
|
const PLACEHOLDER_SEGMENT = /^<[^>]+>$/;
|
|
8
|
-
const NON_DEPRECATED_KEYS = new Set(['approval_policy']);
|
|
9
8
|
const KIND_PRIORITY = {
|
|
10
9
|
value: 1,
|
|
11
10
|
array: 2,
|
|
@@ -93,7 +92,7 @@ const referenceOptions = Array.isArray(configDocument?.options)
|
|
|
93
92
|
? option.enum_values.map((value) => String(value))
|
|
94
93
|
: [],
|
|
95
94
|
description: String(option?.description || ''),
|
|
96
|
-
deprecated: option?.deprecated === true
|
|
95
|
+
deprecated: option?.deprecated === true,
|
|
97
96
|
};
|
|
98
97
|
})
|
|
99
98
|
: [];
|