sneakoscope 6.0.0 → 6.0.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/README.md +1 -1
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/dist/bin/fast-inline.js +20 -0
- package/dist/bin/sks-dispatch.js +8 -0
- package/dist/cli/install-helpers.js +17 -6
- package/dist/config/skills-manifest.json +57 -57
- package/dist/core/codex/codex-config-guard.js +14 -8
- package/dist/core/codex-app/codex-app-fast-ui-repair.js +39 -2
- package/dist/core/codex-app.js +0 -2
- package/dist/core/codex-model-guard.js +5 -7
- package/dist/core/commands/mad-db-command.js +1 -1
- package/dist/core/init.js +4 -3
- package/dist/core/update/update-migration-state.js +17 -1
- package/dist/core/version.js +1 -1
- package/dist/scripts/codex-lb-fast-ui-preservation-check.js +2 -2
- package/dist/scripts/codex-lb-gpt55-fast-profile-check.js +2 -0
- package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +1 -1
- package/dist/scripts/install-update-preserves-config-check.js +1 -1
- package/dist/scripts/naruto-shadow-clone-swarm-check.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ sneakoscope is a proof-first Codex trust layer for bounded agent workflows, sear
|
|
|
25
25
|
|
|
26
26
|
Sneakoscope Codex (`sks`) is a Codex CLI and Codex App harness for people who want parallel AI coding without losing proof. It gives Codex a simple front door, a dynamic worker swarm, a local dashboard, TriWiki project memory, and release gates that separate machine evidence from LLM opinion.
|
|
27
27
|
|
|
28
|
-
Current release: SKS **6.0.
|
|
28
|
+
Current release: SKS **6.0.1**. New in this release: GPT-5.6 Codex App model selection repair, Sol/Terra/Luna compatibility, removal of legacy `multi_agent_v2`/Fast-mode config stamps, renewed Codex App feature flags, safer menu bar and doctor repair paths, and release metadata prepared for `npm publish --ignore-scripts`. See [CHANGELOG.md](CHANGELOG.md).
|
|
29
29
|
|
|
30
30
|
## Install
|
|
31
31
|
|
package/dist/bin/fast-inline.js
CHANGED
|
@@ -191,3 +191,23 @@ exports.rootJsonFastInline = rootJsonFastInline;
|
|
|
191
191
|
exports.doctorJsonFastInline = doctorJsonFastInline;
|
|
192
192
|
exports.narutoHelpJsonFastInline = narutoHelpJsonFastInline;
|
|
193
193
|
exports.hookUserPromptSubmitPerfInline = hookUserPromptSubmitPerfInline;
|
|
194
|
+
|
|
195
|
+
exports.rootJsonFastInline = rootJsonFastInline;
|
|
196
|
+
exports.doctorJsonFastInline = doctorJsonFastInline;
|
|
197
|
+
exports.narutoHelpJsonFastInline = narutoHelpJsonFastInline;
|
|
198
|
+
exports.hookUserPromptSubmitPerfInline = hookUserPromptSubmitPerfInline;
|
|
199
|
+
|
|
200
|
+
exports.rootJsonFastInline = rootJsonFastInline;
|
|
201
|
+
exports.doctorJsonFastInline = doctorJsonFastInline;
|
|
202
|
+
exports.narutoHelpJsonFastInline = narutoHelpJsonFastInline;
|
|
203
|
+
exports.hookUserPromptSubmitPerfInline = hookUserPromptSubmitPerfInline;
|
|
204
|
+
|
|
205
|
+
exports.rootJsonFastInline = rootJsonFastInline;
|
|
206
|
+
exports.doctorJsonFastInline = doctorJsonFastInline;
|
|
207
|
+
exports.narutoHelpJsonFastInline = narutoHelpJsonFastInline;
|
|
208
|
+
exports.hookUserPromptSubmitPerfInline = hookUserPromptSubmitPerfInline;
|
|
209
|
+
|
|
210
|
+
exports.rootJsonFastInline = rootJsonFastInline;
|
|
211
|
+
exports.doctorJsonFastInline = doctorJsonFastInline;
|
|
212
|
+
exports.narutoHelpJsonFastInline = narutoHelpJsonFastInline;
|
|
213
|
+
exports.hookUserPromptSubmitPerfInline = hookUserPromptSubmitPerfInline;
|
package/dist/bin/sks-dispatch.js
CHANGED
|
@@ -23,7 +23,7 @@ import { extractTomlTable, writeCodexConfigGuarded } from '../core/codex/codex-c
|
|
|
23
23
|
import { cleanupCodexConfigBackups, validateCodexConfigRoundTrip } from '../core/codex/codex-config-toml.js';
|
|
24
24
|
import { runPostinstallGlobalDoctorAndMarkPending } from '../core/update/update-migration-state.js';
|
|
25
25
|
import { repairCodexImagegen } from '../core/doctor/imagegen-repair.js';
|
|
26
|
-
import { GPT55_CODEX_MODEL, REQUIRED_CODEX_MODEL } from '../core/codex-model-guard.js';
|
|
26
|
+
import { GPT55_CODEX_MODEL, GPT56_CODEX_MODELS, REQUIRED_CODEX_MODEL } from '../core/codex-model-guard.js';
|
|
27
27
|
const CODEX_LB_PROVIDER_NAME = 'openai';
|
|
28
28
|
const CODEX_LB_PROVIDER_ENV_KEY = 'CODEX_LB_API_KEY';
|
|
29
29
|
const CODEX_LB_CANONICAL_FAST_SERVICE_TIER = 'priority';
|
|
@@ -1897,6 +1897,7 @@ function normalizeCodexFastModeUiConfigOnce(text = '', opts = {}) {
|
|
|
1897
1897
|
// stamp SKS ever wrote and keeps user-authored top-level choices intact.
|
|
1898
1898
|
let next = String(text || '');
|
|
1899
1899
|
next = removeLegacyTopLevelCodexModeLocks(next);
|
|
1900
|
+
next = normalizeCodexAppDefaultModel(next);
|
|
1900
1901
|
next = removeTopLevelTomlKeyIfValue(next, 'default_profile', 'sks-fast-high');
|
|
1901
1902
|
next = removeTomlTable(next, 'user.fast_mode');
|
|
1902
1903
|
next = removeTomlTable(next, 'profiles.sks-fast-high');
|
|
@@ -1967,17 +1968,27 @@ function removeLegacyTopLevelCodexModeLocks(text = '') {
|
|
|
1967
1968
|
const firstTable = lines.findIndex((x) => /^\s*\[.+\]\s*$/.test(x));
|
|
1968
1969
|
const end = firstTable === -1 ? lines.length : firstTable;
|
|
1969
1970
|
const topLevelModel = topLevelTomlString(text, 'model');
|
|
1970
|
-
|
|
1971
|
-
// SKS versions wrote, so upgrades keep cleaning locks written before the 5.6 bump.
|
|
1972
|
-
const removeSksOwnedModeLock = topLevelModel === REQUIRED_CODEX_MODEL || topLevelModel === GPT55_CODEX_MODEL;
|
|
1971
|
+
const removeSksOwnedModeLock = isLegacySksCodexModelStamp(topLevelModel);
|
|
1973
1972
|
return lines.filter((line, index) => {
|
|
1974
1973
|
if (index >= end)
|
|
1975
1974
|
return true;
|
|
1976
1975
|
if (!removeSksOwnedModeLock)
|
|
1977
1976
|
return true;
|
|
1978
|
-
return !/^\s*
|
|
1977
|
+
return !/^\s*model_reasoning_effort\s*=/.test(line);
|
|
1979
1978
|
}).join('\n').replace(/^\n+/, '').replace(/\n{3,}/g, '\n\n');
|
|
1980
1979
|
}
|
|
1980
|
+
function normalizeCodexAppDefaultModel(text = '') {
|
|
1981
|
+
const currentModel = topLevelTomlString(text, 'model');
|
|
1982
|
+
if (!currentModel)
|
|
1983
|
+
return upsertTopLevelTomlString(text, 'model', REQUIRED_CODEX_MODEL);
|
|
1984
|
+
if (isLegacySksCodexModelStamp(currentModel))
|
|
1985
|
+
return upsertTopLevelTomlString(text, 'model', REQUIRED_CODEX_MODEL);
|
|
1986
|
+
return String(text || '');
|
|
1987
|
+
}
|
|
1988
|
+
function isLegacySksCodexModelStamp(value = '') {
|
|
1989
|
+
const model = String(value || '').trim().toLowerCase();
|
|
1990
|
+
return model === REQUIRED_CODEX_MODEL || model === GPT55_CODEX_MODEL || GPT56_CODEX_MODELS.includes(model);
|
|
1991
|
+
}
|
|
1981
1992
|
function removeTopLevelTomlKeyIfValue(text = '', key = '', value = '') {
|
|
1982
1993
|
const lines = String(text || '').split('\n');
|
|
1983
1994
|
const firstTable = lines.findIndex((x) => /^\s*\[.+\]\s*$/.test(x));
|
|
@@ -3418,7 +3429,7 @@ function hasTopLevelCodexModeLock(text = '') {
|
|
|
3418
3429
|
const lines = String(text || '').split('\n');
|
|
3419
3430
|
const firstTable = lines.findIndex((x) => /^\s*\[.+\]\s*$/.test(x));
|
|
3420
3431
|
const top = (firstTable === -1 ? lines : lines.slice(0, firstTable)).join('\n');
|
|
3421
|
-
return /(^|\n)\s*
|
|
3432
|
+
return /(^|\n)\s*model_reasoning_effort\s*=/.test(top);
|
|
3422
3433
|
}
|
|
3423
3434
|
function hasDeprecatedCodexHooksFeatureFlag(text = '') {
|
|
3424
3435
|
const lines = String(text || '').split('\n');
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "sks.skills-manifest.v1",
|
|
3
|
-
"package_version": "6.0.
|
|
3
|
+
"package_version": "6.0.1",
|
|
4
4
|
"skills": [
|
|
5
5
|
{
|
|
6
6
|
"canonical_name": "answer",
|
|
7
7
|
"type": "official",
|
|
8
|
-
"content_sha256": "
|
|
8
|
+
"content_sha256": "3bae03b6933911666a82c307f2b1380dd3dbf869ad3c1ed58b0f707738c7ce97",
|
|
9
9
|
"hash_history": [],
|
|
10
10
|
"deprecated_aliases": []
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"canonical_name": "autoresearch",
|
|
14
14
|
"type": "official",
|
|
15
|
-
"content_sha256": "
|
|
15
|
+
"content_sha256": "ced2744cc494365da433e1f186042069d68b70e873bf0ea0a7f98ee5fc92ae41",
|
|
16
16
|
"hash_history": [],
|
|
17
17
|
"deprecated_aliases": []
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"canonical_name": "autoresearch-loop",
|
|
21
21
|
"type": "official",
|
|
22
|
-
"content_sha256": "
|
|
22
|
+
"content_sha256": "c99fb6516552c1f6f0459c087ccd72592423e02c1ed5ab277f963f349c46d897",
|
|
23
23
|
"hash_history": [],
|
|
24
24
|
"deprecated_aliases": []
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"canonical_name": "commit",
|
|
28
28
|
"type": "official",
|
|
29
|
-
"content_sha256": "
|
|
29
|
+
"content_sha256": "8e698e1885aca7973cb691d5a4f2a22714e7a2a71de4270741f7a2c38be5d3b7",
|
|
30
30
|
"hash_history": [],
|
|
31
31
|
"deprecated_aliases": []
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"canonical_name": "commit-and-push",
|
|
35
35
|
"type": "official",
|
|
36
|
-
"content_sha256": "
|
|
36
|
+
"content_sha256": "2878de32b4e1b818ad4113b38e65247dec05c46b6587c57cb8201eb390ddbeaa",
|
|
37
37
|
"hash_history": [],
|
|
38
38
|
"deprecated_aliases": []
|
|
39
39
|
},
|
|
@@ -47,56 +47,56 @@
|
|
|
47
47
|
{
|
|
48
48
|
"canonical_name": "computer-use-fast",
|
|
49
49
|
"type": "official",
|
|
50
|
-
"content_sha256": "
|
|
50
|
+
"content_sha256": "47389e820e272b20fe24139268f8d5f772c8a085757edc46d5c31157c80f4162",
|
|
51
51
|
"hash_history": [],
|
|
52
52
|
"deprecated_aliases": []
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"canonical_name": "context7-docs",
|
|
56
56
|
"type": "official",
|
|
57
|
-
"content_sha256": "
|
|
57
|
+
"content_sha256": "8d15529f7e62f98d4c78d07859c466f1edca802abb5da8fc52a2361a513f58f2",
|
|
58
58
|
"hash_history": [],
|
|
59
59
|
"deprecated_aliases": []
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"canonical_name": "cu",
|
|
63
63
|
"type": "official",
|
|
64
|
-
"content_sha256": "
|
|
64
|
+
"content_sha256": "1179221761185db8c4469b22c5d43213f6c55bb5d7d760f2d7b952daad6e2709",
|
|
65
65
|
"hash_history": [],
|
|
66
66
|
"deprecated_aliases": []
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"canonical_name": "db",
|
|
70
70
|
"type": "official",
|
|
71
|
-
"content_sha256": "
|
|
71
|
+
"content_sha256": "6df13a036c80a9b4aeec3e0e6bc027902b788f64ab6789ed2385a590844aa476",
|
|
72
72
|
"hash_history": [],
|
|
73
73
|
"deprecated_aliases": []
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"canonical_name": "db-safety-guard",
|
|
77
77
|
"type": "official",
|
|
78
|
-
"content_sha256": "
|
|
78
|
+
"content_sha256": "fec60c67a032959d1fa062e56e7535a1537f84466b56e907075559e117627502",
|
|
79
79
|
"hash_history": [],
|
|
80
80
|
"deprecated_aliases": []
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"canonical_name": "design-artifact-expert",
|
|
84
84
|
"type": "official",
|
|
85
|
-
"content_sha256": "
|
|
85
|
+
"content_sha256": "d5d6306e436f0b01958228f86c045b20d3537e146b7300a08730b514b9bd654e",
|
|
86
86
|
"hash_history": [],
|
|
87
87
|
"deprecated_aliases": []
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"canonical_name": "design-system-builder",
|
|
91
91
|
"type": "official",
|
|
92
|
-
"content_sha256": "
|
|
92
|
+
"content_sha256": "cc5268e0f3f675516ceb3153ddf8d2438ec1af3ac8fba59617ba84c4e8dc2c79",
|
|
93
93
|
"hash_history": [],
|
|
94
94
|
"deprecated_aliases": []
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"canonical_name": "design-ui-editor",
|
|
98
98
|
"type": "official",
|
|
99
|
-
"content_sha256": "
|
|
99
|
+
"content_sha256": "c2dc7eeabf69185e9ede379a14bf47f7bda59502a44262f7d1a795c7eed1592b",
|
|
100
100
|
"hash_history": [],
|
|
101
101
|
"deprecated_aliases": []
|
|
102
102
|
},
|
|
@@ -110,98 +110,98 @@
|
|
|
110
110
|
{
|
|
111
111
|
"canonical_name": "fast-mode",
|
|
112
112
|
"type": "official",
|
|
113
|
-
"content_sha256": "
|
|
113
|
+
"content_sha256": "87a276cc34273ebec2699c3ba3be1bf8ec58e796bc5ebb1202ee321d61a17b7a",
|
|
114
114
|
"hash_history": [],
|
|
115
115
|
"deprecated_aliases": []
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"canonical_name": "fast-off",
|
|
119
119
|
"type": "official",
|
|
120
|
-
"content_sha256": "
|
|
120
|
+
"content_sha256": "77fdab9100a33c6b0af905c6a4684c803c1e3bbf4700ca90770371c5b0307c55",
|
|
121
121
|
"hash_history": [],
|
|
122
122
|
"deprecated_aliases": []
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"canonical_name": "fast-on",
|
|
126
126
|
"type": "official",
|
|
127
|
-
"content_sha256": "
|
|
127
|
+
"content_sha256": "ecce7e5bbc0b5c722ddc77d8e1cf7c67a77709470f16db5f8a0d122886a05843",
|
|
128
128
|
"hash_history": [],
|
|
129
129
|
"deprecated_aliases": []
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"canonical_name": "from-chat-img",
|
|
133
133
|
"type": "official",
|
|
134
|
-
"content_sha256": "
|
|
134
|
+
"content_sha256": "904453b27eb8296f6a9a868b68eb1ed286016e5356f457629a85de74fa1ccb93",
|
|
135
135
|
"hash_history": [],
|
|
136
136
|
"deprecated_aliases": []
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"canonical_name": "getdesign-reference",
|
|
140
140
|
"type": "official",
|
|
141
|
-
"content_sha256": "
|
|
141
|
+
"content_sha256": "e0533328fe2792829a04ef4e98a0e666166b5472289b15c646f07b4d0760f138",
|
|
142
142
|
"hash_history": [],
|
|
143
143
|
"deprecated_aliases": []
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"canonical_name": "goal",
|
|
147
147
|
"type": "official",
|
|
148
|
-
"content_sha256": "
|
|
148
|
+
"content_sha256": "5b8968533c76d9444cbe94dc6037499924817529958f1f3e076e580053101021",
|
|
149
149
|
"hash_history": [],
|
|
150
150
|
"deprecated_aliases": []
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"canonical_name": "gx",
|
|
154
154
|
"type": "official",
|
|
155
|
-
"content_sha256": "
|
|
155
|
+
"content_sha256": "404246a1d89e23e8bdb37646dd1f46516fbee5e8746353a1fd4694979d4d4f85",
|
|
156
156
|
"hash_history": [],
|
|
157
157
|
"deprecated_aliases": []
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"canonical_name": "gx-visual-generate",
|
|
161
161
|
"type": "official",
|
|
162
|
-
"content_sha256": "
|
|
162
|
+
"content_sha256": "24e58c05887290e858febb0941c66db2a28e2414520c8d0dfcb8aeccf07c59b0",
|
|
163
163
|
"hash_history": [],
|
|
164
164
|
"deprecated_aliases": []
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"canonical_name": "gx-visual-read",
|
|
168
168
|
"type": "official",
|
|
169
|
-
"content_sha256": "
|
|
169
|
+
"content_sha256": "b4f8d97ac195b6e303ff0d76d776a12267455e1a38defd32c3dc58238f188b14",
|
|
170
170
|
"hash_history": [],
|
|
171
171
|
"deprecated_aliases": []
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"canonical_name": "gx-visual-validate",
|
|
175
175
|
"type": "official",
|
|
176
|
-
"content_sha256": "
|
|
176
|
+
"content_sha256": "070e66aa3a339602b3a816eaef7e89b3e4d521337458cf68ccf7671fb6a1b9cf",
|
|
177
177
|
"hash_history": [],
|
|
178
178
|
"deprecated_aliases": []
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"canonical_name": "help",
|
|
182
182
|
"type": "official",
|
|
183
|
-
"content_sha256": "
|
|
183
|
+
"content_sha256": "624f5edc8f6049cb506129549a07de8d5617c1610637fe86773151975a673566",
|
|
184
184
|
"hash_history": [],
|
|
185
185
|
"deprecated_aliases": []
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"canonical_name": "honest-mode",
|
|
189
189
|
"type": "official",
|
|
190
|
-
"content_sha256": "
|
|
190
|
+
"content_sha256": "d983a6be0ff1cb5d1cf152818a848c6b149c6a6d5c421ed6d5a64d490af93baa",
|
|
191
191
|
"hash_history": [],
|
|
192
192
|
"deprecated_aliases": []
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"canonical_name": "hproof-claim-ledger",
|
|
196
196
|
"type": "official",
|
|
197
|
-
"content_sha256": "
|
|
197
|
+
"content_sha256": "78a0a676f1521d754a718a9df804cc725166ec218775ab3fac131f6ba3bfec90",
|
|
198
198
|
"hash_history": [],
|
|
199
199
|
"deprecated_aliases": []
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"canonical_name": "hproof-evidence-bind",
|
|
203
203
|
"type": "official",
|
|
204
|
-
"content_sha256": "
|
|
204
|
+
"content_sha256": "df85a339465fe3b4ff70a6c8df3747f59755114315b921f1df6c1f9dfec7192e",
|
|
205
205
|
"hash_history": [],
|
|
206
206
|
"deprecated_aliases": []
|
|
207
207
|
},
|
|
@@ -215,14 +215,14 @@
|
|
|
215
215
|
{
|
|
216
216
|
"canonical_name": "imagegen",
|
|
217
217
|
"type": "official",
|
|
218
|
-
"content_sha256": "
|
|
218
|
+
"content_sha256": "75c66bc823cf804d7e691ad52da0f02f7946661f01cbea248f246171ad82f6bb",
|
|
219
219
|
"hash_history": [],
|
|
220
220
|
"deprecated_aliases": []
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"canonical_name": "imagegen-source-scout",
|
|
224
224
|
"type": "official",
|
|
225
|
-
"content_sha256": "
|
|
225
|
+
"content_sha256": "9598072cbeb219cfdee4297b0536d8abdbbb5fe7275fd9229124c2af49a0237e",
|
|
226
226
|
"hash_history": [],
|
|
227
227
|
"deprecated_aliases": []
|
|
228
228
|
},
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
{
|
|
237
237
|
"canonical_name": "kage-bunshin",
|
|
238
238
|
"type": "official",
|
|
239
|
-
"content_sha256": "
|
|
239
|
+
"content_sha256": "4fba30bc703943ff4c0ca495489915ca65daab3b3b1c14e2a8fe62310ebd46a6",
|
|
240
240
|
"hash_history": [],
|
|
241
241
|
"deprecated_aliases": []
|
|
242
242
|
},
|
|
@@ -250,14 +250,14 @@
|
|
|
250
250
|
{
|
|
251
251
|
"canonical_name": "mad-db",
|
|
252
252
|
"type": "official",
|
|
253
|
-
"content_sha256": "
|
|
253
|
+
"content_sha256": "e91698bef9e29a3227f47c20345ba3fcd58e08e4f64ada6e519b404d5ba29eaa",
|
|
254
254
|
"hash_history": [],
|
|
255
255
|
"deprecated_aliases": []
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"canonical_name": "mad-sks",
|
|
259
259
|
"type": "official",
|
|
260
|
-
"content_sha256": "
|
|
260
|
+
"content_sha256": "f3e7a37b85f3f28e705795f95603262ff7fd68e027fb33545f618b5484691c8c",
|
|
261
261
|
"hash_history": [],
|
|
262
262
|
"deprecated_aliases": []
|
|
263
263
|
},
|
|
@@ -273,35 +273,35 @@
|
|
|
273
273
|
{
|
|
274
274
|
"canonical_name": "performance-evaluator",
|
|
275
275
|
"type": "official",
|
|
276
|
-
"content_sha256": "
|
|
276
|
+
"content_sha256": "e3dff0432f45ac88fc55092d094305f96743e8f53248a4d7dbda74e880c8ab36",
|
|
277
277
|
"hash_history": [],
|
|
278
278
|
"deprecated_aliases": []
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"canonical_name": "pipeline-runner",
|
|
282
282
|
"type": "official",
|
|
283
|
-
"content_sha256": "
|
|
283
|
+
"content_sha256": "f7bae983e333f128da12b3aa0c82e163a5db9b9c2b82ce431bc797bfacf527f1",
|
|
284
284
|
"hash_history": [],
|
|
285
285
|
"deprecated_aliases": []
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"canonical_name": "plan",
|
|
289
289
|
"type": "official",
|
|
290
|
-
"content_sha256": "
|
|
290
|
+
"content_sha256": "18e6110f93a485ad36ba126f0b5b1e1989cd24a6bf58769b27d0a9447ad78c9c",
|
|
291
291
|
"hash_history": [],
|
|
292
292
|
"deprecated_aliases": []
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
295
|
"canonical_name": "ppt",
|
|
296
296
|
"type": "official",
|
|
297
|
-
"content_sha256": "
|
|
297
|
+
"content_sha256": "9507cc5baa609eb008b67c2518284397dcccb5f5671e31be92b3af3fd378246e",
|
|
298
298
|
"hash_history": [],
|
|
299
299
|
"deprecated_aliases": []
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"canonical_name": "prompt-pipeline",
|
|
303
303
|
"type": "official",
|
|
304
|
-
"content_sha256": "
|
|
304
|
+
"content_sha256": "5842d1a5ac0241d8d5ea7d50b4575719d03cf04cca265cd61fce82b0970134ee",
|
|
305
305
|
"hash_history": [],
|
|
306
306
|
"deprecated_aliases": []
|
|
307
307
|
},
|
|
@@ -317,21 +317,21 @@
|
|
|
317
317
|
{
|
|
318
318
|
"canonical_name": "reasoning-router",
|
|
319
319
|
"type": "official",
|
|
320
|
-
"content_sha256": "
|
|
320
|
+
"content_sha256": "2f53b91193b4e2aefa492a0c1021f5c34828506d3a255a85055dda61a0dfab8e",
|
|
321
321
|
"hash_history": [],
|
|
322
322
|
"deprecated_aliases": []
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
"canonical_name": "reflection",
|
|
326
326
|
"type": "official",
|
|
327
|
-
"content_sha256": "
|
|
327
|
+
"content_sha256": "da0f4aa7216a6038cec0381cb86f6b52e450cc6f661321776f137529b0e37066",
|
|
328
328
|
"hash_history": [],
|
|
329
329
|
"deprecated_aliases": []
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"canonical_name": "release-review",
|
|
333
333
|
"type": "official",
|
|
334
|
-
"content_sha256": "
|
|
334
|
+
"content_sha256": "26601dbd1675d6ae1e281d470cacce8bed9f0b1c54c08f331739565860fa9256",
|
|
335
335
|
"hash_history": [],
|
|
336
336
|
"deprecated_aliases": []
|
|
337
337
|
},
|
|
@@ -345,14 +345,14 @@
|
|
|
345
345
|
{
|
|
346
346
|
"canonical_name": "research-discovery",
|
|
347
347
|
"type": "official",
|
|
348
|
-
"content_sha256": "
|
|
348
|
+
"content_sha256": "191e3012d661a307116a146577d04a93d72d003f9d45340d9cc535c7c88c85ce",
|
|
349
349
|
"hash_history": [],
|
|
350
350
|
"deprecated_aliases": []
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"canonical_name": "review",
|
|
354
354
|
"type": "official",
|
|
355
|
-
"content_sha256": "
|
|
355
|
+
"content_sha256": "11ad15cba89d8bb93419ab4a9a89fb552a98d8e5c875a02baad4736416b14f48",
|
|
356
356
|
"hash_history": [],
|
|
357
357
|
"deprecated_aliases": []
|
|
358
358
|
},
|
|
@@ -373,14 +373,14 @@
|
|
|
373
373
|
{
|
|
374
374
|
"canonical_name": "shadow-clone",
|
|
375
375
|
"type": "official",
|
|
376
|
-
"content_sha256": "
|
|
376
|
+
"content_sha256": "e511297609c1c7ee02fde59ca44c9b5388d7235bd64fc21dd9d4cf64edc3b30c",
|
|
377
377
|
"hash_history": [],
|
|
378
378
|
"deprecated_aliases": []
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
"canonical_name": "sks",
|
|
382
382
|
"type": "official",
|
|
383
|
-
"content_sha256": "
|
|
383
|
+
"content_sha256": "e9a7653f039682fa16bd8e5a8399263c93edbb270df8b7cddb8d601052078cf0",
|
|
384
384
|
"hash_history": [],
|
|
385
385
|
"deprecated_aliases": [
|
|
386
386
|
"ralph",
|
|
@@ -392,28 +392,28 @@
|
|
|
392
392
|
{
|
|
393
393
|
"canonical_name": "solution-scout",
|
|
394
394
|
"type": "official",
|
|
395
|
-
"content_sha256": "
|
|
395
|
+
"content_sha256": "e514dad70a4ec32497276078cc1ef48a84597220e8fc7dd68d89567042ba7ec1",
|
|
396
396
|
"hash_history": [],
|
|
397
397
|
"deprecated_aliases": []
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
"canonical_name": "super-search",
|
|
401
401
|
"type": "official",
|
|
402
|
-
"content_sha256": "
|
|
402
|
+
"content_sha256": "a0d2b44654d242fa7556eaaed8a99628a35f4be7cc8dc5eedfda5754d6c884b5",
|
|
403
403
|
"hash_history": [],
|
|
404
404
|
"deprecated_aliases": []
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"canonical_name": "swarm",
|
|
408
408
|
"type": "official",
|
|
409
|
-
"content_sha256": "
|
|
409
|
+
"content_sha256": "8320c771fcd9aa0a15a6e11c4b08b26fd664dfab7be998789acd0ae6572fbe5c",
|
|
410
410
|
"hash_history": [],
|
|
411
411
|
"deprecated_aliases": []
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
"canonical_name": "team",
|
|
415
415
|
"type": "official",
|
|
416
|
-
"content_sha256": "
|
|
416
|
+
"content_sha256": "24feba37f46031a3154ada5a714f196682afd554461c3f945fe8aaac7764055a",
|
|
417
417
|
"hash_history": [],
|
|
418
418
|
"deprecated_aliases": [
|
|
419
419
|
"agent-team"
|
|
@@ -422,35 +422,35 @@
|
|
|
422
422
|
{
|
|
423
423
|
"canonical_name": "turbo-context-pack",
|
|
424
424
|
"type": "official",
|
|
425
|
-
"content_sha256": "
|
|
425
|
+
"content_sha256": "88ce568724aee1974fdfb13243dd39ac32cc5ad469abade7a014b07464ac7c68",
|
|
426
426
|
"hash_history": [],
|
|
427
427
|
"deprecated_aliases": []
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
430
|
"canonical_name": "ui-ux-review",
|
|
431
431
|
"type": "official",
|
|
432
|
-
"content_sha256": "
|
|
432
|
+
"content_sha256": "35c0ed5149b20b8c9e270d7281757003cbf8c73d94fca910b1618cb027f9c699",
|
|
433
433
|
"hash_history": [],
|
|
434
434
|
"deprecated_aliases": []
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
"canonical_name": "ux-review",
|
|
438
438
|
"type": "official",
|
|
439
|
-
"content_sha256": "
|
|
439
|
+
"content_sha256": "e5bbf0e1f1580254cd46742ccc83d97af8f282dec8abcc7da1af0cd70fb9720a",
|
|
440
440
|
"hash_history": [],
|
|
441
441
|
"deprecated_aliases": []
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
"canonical_name": "visual-review",
|
|
445
445
|
"type": "official",
|
|
446
|
-
"content_sha256": "
|
|
446
|
+
"content_sha256": "8b3c921312f3440fcbd9dd6b2ea27613660f85d515f0babad9d11499582f5546",
|
|
447
447
|
"hash_history": [],
|
|
448
448
|
"deprecated_aliases": []
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
"canonical_name": "wiki",
|
|
452
452
|
"type": "official",
|
|
453
|
-
"content_sha256": "
|
|
453
|
+
"content_sha256": "05da2a82b5a20db708e130aaa6eca3e6c9cada85bb1383213a1057651c05f0f7",
|
|
454
454
|
"hash_history": [],
|
|
455
455
|
"deprecated_aliases": [
|
|
456
456
|
"wiki-refresh",
|
|
@@ -460,21 +460,21 @@
|
|
|
460
460
|
{
|
|
461
461
|
"canonical_name": "with-local-llm-off",
|
|
462
462
|
"type": "official",
|
|
463
|
-
"content_sha256": "
|
|
463
|
+
"content_sha256": "f34e912acc5fb9a385012f5ecdb3b7217a5077c843a9c0266d884934638babef",
|
|
464
464
|
"hash_history": [],
|
|
465
465
|
"deprecated_aliases": []
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
"canonical_name": "with-local-llm-on",
|
|
469
469
|
"type": "official",
|
|
470
|
-
"content_sha256": "
|
|
470
|
+
"content_sha256": "c7544cc002cc93a257b0f3d528353b8157f215a4cd9fbc96a5227c0a771a45fd",
|
|
471
471
|
"hash_history": [],
|
|
472
472
|
"deprecated_aliases": []
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
"canonical_name": "work",
|
|
476
476
|
"type": "official",
|
|
477
|
-
"content_sha256": "
|
|
477
|
+
"content_sha256": "a5411185a48af520d080ddde5ce87e226e2a7c1a9ec7dee170d8246ef964be06",
|
|
478
478
|
"hash_history": [],
|
|
479
479
|
"deprecated_aliases": []
|
|
480
480
|
}
|
|
@@ -2,7 +2,7 @@ import path from 'node:path';
|
|
|
2
2
|
import { appendJsonl, ensureDir, nowIso, readText, sha256, writeTextAtomic } from '../fsx.js';
|
|
3
3
|
import { diffCodexAppUiSnapshots, snapshotCodexAppUiState } from '../codex-app/codex-app-ui-state-snapshot.js';
|
|
4
4
|
import { cleanupCodexConfigBackups, validateCodexConfigRoundTrip } from './codex-config-toml.js';
|
|
5
|
-
import { GPT55_CODEX_MODEL, REQUIRED_CODEX_MODEL } from '../codex-model-guard.js';
|
|
5
|
+
import { GPT55_CODEX_MODEL, GPT56_CODEX_MODELS, REQUIRED_CODEX_MODEL } from '../codex-model-guard.js';
|
|
6
6
|
// fast_mode_ui was removed from the [features] schema in the 2026-07 renewal.
|
|
7
7
|
const FAST_FEATURE_KEYS = ['fast_mode'];
|
|
8
8
|
export async function writeCodexConfigGuarded(input) {
|
|
@@ -154,21 +154,27 @@ export function isUnmanagedProjectCodexConfig(root, configPath, text) {
|
|
|
154
154
|
&& !hasSksManagedCodexConfigMarker(text);
|
|
155
155
|
}
|
|
156
156
|
export function removeLegacyTopLevelCodexModeLocks(text = '') {
|
|
157
|
-
|
|
157
|
+
let next = ensureTrailingNewline(text);
|
|
158
|
+
const topLevelModel = topLevelTomlString(next, 'model');
|
|
159
|
+
if (isLegacySksCodexModelStamp(topLevelModel)) {
|
|
160
|
+
next = upsertTopLevelTomlLine(next, `model = "${REQUIRED_CODEX_MODEL}"`);
|
|
161
|
+
}
|
|
162
|
+
const lines = String(next || '').split('\n');
|
|
158
163
|
const firstTable = lines.findIndex((x) => /^\s*\[.+\]\s*$/.test(x));
|
|
159
164
|
const end = firstTable === -1 ? lines.length : firstTable;
|
|
160
|
-
const
|
|
161
|
-
// Current default stamp OR the legacy gpt-5.5 stamp older SKS versions wrote,
|
|
162
|
-
// so upgrades keep cleaning locks written before the 5.6-terra default bump.
|
|
163
|
-
const removeSksOwnedModeLock = topLevelModel === REQUIRED_CODEX_MODEL || topLevelModel === GPT55_CODEX_MODEL;
|
|
165
|
+
const removeSksOwnedModeLock = isLegacySksCodexModelStamp(topLevelModel);
|
|
164
166
|
return ensureTrailingNewline(lines.filter((line, index) => {
|
|
165
167
|
if (index >= end)
|
|
166
168
|
return true;
|
|
167
169
|
if (!removeSksOwnedModeLock)
|
|
168
170
|
return true;
|
|
169
|
-
return !/^\s*
|
|
171
|
+
return !/^\s*model_reasoning_effort\s*=/.test(line);
|
|
170
172
|
}).join('\n').replace(/^\n+/, '').replace(/\n{3,}/g, '\n\n'));
|
|
171
173
|
}
|
|
174
|
+
function isLegacySksCodexModelStamp(value = '') {
|
|
175
|
+
const model = String(value || '').trim().toLowerCase();
|
|
176
|
+
return model === REQUIRED_CODEX_MODEL || model === GPT55_CODEX_MODEL || GPT56_CODEX_MODELS.includes(model);
|
|
177
|
+
}
|
|
172
178
|
function mergeLostFastUiKeys(before, nextInput) {
|
|
173
179
|
let next = String(nextInput || '');
|
|
174
180
|
const keys = [];
|
|
@@ -189,7 +195,7 @@ function mergeLostFastUiKeys(before, nextInput) {
|
|
|
189
195
|
return { text: ensureTrailingNewline(next), keys };
|
|
190
196
|
}
|
|
191
197
|
function topLevelModeLocks(text) {
|
|
192
|
-
return ['
|
|
198
|
+
return ['model_reasoning_effort'].filter((key) => hasTopLevelTomlKey(text, key));
|
|
193
199
|
}
|
|
194
200
|
function topLevelTomlKeyLine(text, key) {
|
|
195
201
|
const lines = String(text || '').split('\n');
|
|
@@ -4,9 +4,10 @@ import { ensureDir, nowIso, readText, sha256, writeJsonAtomic, writeTextAtomic }
|
|
|
4
4
|
import { codexHome, scanProjectLocalForbiddenKeys, snapshotCodexAppUiState } from './codex-app-ui-state-snapshot.js';
|
|
5
5
|
import { assertCodexAppUiMutationAllowed } from './codex-app-ui-clobber-guard.js';
|
|
6
6
|
import { codexProviderModelUiStatus } from '../codex-app.js';
|
|
7
|
+
import { GPT55_CODEX_MODEL, GPT56_CODEX_MODELS, REQUIRED_CODEX_MODEL } from '../codex-model-guard.js';
|
|
7
8
|
export const CODEX_APP_FAST_UI_REPAIR_SCHEMA = 'sks.codex-app-fast-ui-repair.v1';
|
|
8
9
|
const FAST_UI_TOP_LEVEL_RE = /^\s*(?:model|model_reasoning_effort|service_tier)\s*=/;
|
|
9
|
-
const CODEX_APP_MODE_LOCK_TOP_LEVEL_RE = /^\s*
|
|
10
|
+
const CODEX_APP_MODE_LOCK_TOP_LEVEL_RE = /^\s*model_reasoning_effort\s*=/;
|
|
10
11
|
const FAST_UI_FEATURE_LINE_RE = /^\s*fast_mode\s*=/;
|
|
11
12
|
const FAST_UI_LEGACY_TABLES = new Set(['user.fast_mode', 'profiles.sks-fast-high']);
|
|
12
13
|
const SKS_CAUSED_RE = /(?:SKS|Sneakoscope|codex-lb|sks-mad|sks fast)/i;
|
|
@@ -135,7 +136,7 @@ function stripProjectLocalForbiddenKeys(text) {
|
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
138
|
function stripSksCausedHostOwnedLines(text) {
|
|
138
|
-
|
|
139
|
+
const stripped = stripMatchingLines(text, (line, table, previous, next) => {
|
|
139
140
|
const isCodexAppModeLock = !table && CODEX_APP_MODE_LOCK_TOP_LEVEL_RE.test(line);
|
|
140
141
|
const isLegacyFastTable = table ? FAST_UI_LEGACY_TABLES.has(table) : false;
|
|
141
142
|
const isFastUiLine = FAST_UI_TOP_LEVEL_RE.test(line)
|
|
@@ -143,6 +144,42 @@ function stripSksCausedHostOwnedLines(text) {
|
|
|
143
144
|
|| isLegacyFastTable;
|
|
144
145
|
return isCodexAppModeLock || (isFastUiLine && (SKS_CAUSED_RE.test(line) || SKS_CAUSED_RE.test(previous) || SKS_CAUSED_RE.test(next)));
|
|
145
146
|
});
|
|
147
|
+
const normalized = normalizeSksCausedModelLine(stripped.text);
|
|
148
|
+
return {
|
|
149
|
+
text: normalized.text,
|
|
150
|
+
removedKeys: [...new Set([...stripped.removedKeys, ...normalized.removedKeys])]
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function normalizeSksCausedModelLine(text) {
|
|
154
|
+
const lines = String(text || '').split(/\r?\n/);
|
|
155
|
+
const firstTable = lines.findIndex((line) => /^\s*\[.+\]\s*$/.test(line));
|
|
156
|
+
const end = firstTable === -1 ? lines.length : firstTable;
|
|
157
|
+
const removedKeys = [];
|
|
158
|
+
let foundModel = false;
|
|
159
|
+
for (let i = 0; i < end; i += 1) {
|
|
160
|
+
const line = lines[i] || '';
|
|
161
|
+
const model = line.match(/^\s*model\s*=\s*"([^"]+)"\s*(?:#.*)?$/)?.[1] || '';
|
|
162
|
+
if (!model)
|
|
163
|
+
continue;
|
|
164
|
+
foundModel = true;
|
|
165
|
+
if (model === REQUIRED_CODEX_MODEL)
|
|
166
|
+
break;
|
|
167
|
+
const sksMarked = SKS_CAUSED_RE.test(line) || SKS_CAUSED_RE.test(lines[i - 1] || '') || SKS_CAUSED_RE.test(lines[i + 1] || '');
|
|
168
|
+
if (sksMarked || isLegacySksCodexModelStamp(model)) {
|
|
169
|
+
lines[i] = `model = "${REQUIRED_CODEX_MODEL}"`;
|
|
170
|
+
removedKeys.push(`model:${model}->${REQUIRED_CODEX_MODEL}`);
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
if (!foundModel && SKS_CAUSED_RE.test(lines.slice(0, Math.min(end, 3)).join('\n'))) {
|
|
175
|
+
lines.splice(end, 0, `model = "${REQUIRED_CODEX_MODEL}"`);
|
|
176
|
+
removedKeys.push(`model:${REQUIRED_CODEX_MODEL}`);
|
|
177
|
+
}
|
|
178
|
+
return { text: lines.join('\n'), removedKeys };
|
|
179
|
+
}
|
|
180
|
+
function isLegacySksCodexModelStamp(value = '') {
|
|
181
|
+
const model = String(value || '').trim().toLowerCase();
|
|
182
|
+
return model === GPT55_CODEX_MODEL || GPT56_CODEX_MODELS.includes(model);
|
|
146
183
|
}
|
|
147
184
|
function stripMatchingLines(text, shouldRemove) {
|
|
148
185
|
const lines = text.split(/\r?\n/);
|
package/dist/core/codex-app.js
CHANGED
|
@@ -858,8 +858,6 @@ async function codexFastModeConfigStatus(opts = {}) {
|
|
|
858
858
|
if (!config.text)
|
|
859
859
|
continue;
|
|
860
860
|
const topLevel = topLevelToml(config.text);
|
|
861
|
-
if (/(^|\n)\s*model\s*=/.test(topLevel))
|
|
862
|
-
blockers.push(`${config.scope}:top_level_model`);
|
|
863
861
|
if (/(^|\n)\s*model_reasoning_effort\s*=/.test(topLevel))
|
|
864
862
|
blockers.push(`${config.scope}:top_level_model_reasoning_effort`);
|
|
865
863
|
if (/(^|\n)\s*fast_default_opt_out\s*=\s*true\s*(?:#.*)?(?=\n|$)/.test(tomlTable(config.text, 'notice')))
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
// Default model/effort for every SKS-managed Codex surface.
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
// dashboard (:1455) to actually receive 5.6 responses on it.
|
|
6
|
-
export const REQUIRED_CODEX_MODEL = 'gpt-5.6-terra';
|
|
1
|
+
// Default model/effort for every SKS-managed Codex surface. The Codex App model
|
|
2
|
+
// picker and official config sample use the canonical gpt-5.6 alias; Sol/Terra/
|
|
3
|
+
// Luna variants remain accepted for explicit advanced routing.
|
|
4
|
+
export const REQUIRED_CODEX_MODEL = 'gpt-5.6';
|
|
7
5
|
export const DEFAULT_CODEX_REASONING_EFFORT = 'high';
|
|
8
6
|
export const GPT55_CODEX_MODEL = 'gpt-5.5';
|
|
9
7
|
export const GPT54_MINI_CODEX_MODEL = 'gpt-5.4-mini';
|
|
10
8
|
export const GPT56_CODEX_ALIAS_MODEL = 'gpt-5.6';
|
|
11
9
|
export const GPT56_CODEX_MODELS = ['gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna'];
|
|
12
|
-
export const SUPPORTED_CODEX_MODELS = [REQUIRED_CODEX_MODEL,
|
|
10
|
+
export const SUPPORTED_CODEX_MODELS = [REQUIRED_CODEX_MODEL, GPT55_CODEX_MODEL, GPT54_MINI_CODEX_MODEL, 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna'];
|
|
13
11
|
const MODEL_VALUE_FLAGS = new Set(['--model', '-m']);
|
|
14
12
|
const CONFIG_VALUE_FLAGS = new Set(['-c', '--config']);
|
|
15
13
|
function isModelConfigOverride(value = '') {
|
|
@@ -2,7 +2,7 @@ import { madHighCommand } from './mad-sks-command.js';
|
|
|
2
2
|
export async function madDbCommand(args = []) {
|
|
3
3
|
const translated = translateMadDbArgs(args);
|
|
4
4
|
const json = args.includes('--json');
|
|
5
|
-
process.stderr.write("mad-db is deprecated
|
|
5
|
+
process.stderr.write("mad-db is deprecated; use 'sks mad-sks sql ...' or 'sks mad-sks apply-migration ...'.\n");
|
|
6
6
|
if (!json)
|
|
7
7
|
return madHighCommand(['--mad-sks', ...translated]);
|
|
8
8
|
const originalLog = console.log;
|
package/dist/core/init.js
CHANGED
|
@@ -61,7 +61,7 @@ export function hasTopLevelCodexModeLock(text = '') {
|
|
|
61
61
|
const lines = String(text || '').split('\n');
|
|
62
62
|
const firstTable = lines.findIndex((x) => /^\s*\[.+\]\s*$/.test(x));
|
|
63
63
|
const top = (firstTable === -1 ? lines : lines.slice(0, firstTable)).join('\n');
|
|
64
|
-
return /^
|
|
64
|
+
return /^model_reasoning_effort\s*=/m.test(top);
|
|
65
65
|
}
|
|
66
66
|
export function hasDeprecatedCodexHooksFeatureFlag(text = '') {
|
|
67
67
|
const lines = String(text || '').split('\n');
|
|
@@ -586,8 +586,9 @@ export async function initProject(root, opts = {}) {
|
|
|
586
586
|
let next = removeLegacyTopLevelCodexModeLocks(String(existingContent || '').trimEnd());
|
|
587
587
|
next = removeTomlTableKey(next, 'notice', 'fast_default_opt_out');
|
|
588
588
|
next = removeTomlTableKey(next, 'features', 'codex_hooks');
|
|
589
|
-
//
|
|
590
|
-
//
|
|
589
|
+
// The current Codex config sample uses the canonical top-level model alias.
|
|
590
|
+
// Set it only when absent so user-selected models are preserved.
|
|
591
|
+
next = upsertTopLevelTomlStringIfAbsent(next, 'model', REQUIRED_CODEX_MODEL);
|
|
591
592
|
next = upsertTopLevelTomlBooleanIfAbsent(next, 'suppress_unstable_features_warning', true);
|
|
592
593
|
// Codex App feature flags: SET-IF-ABSENT only (see note above); flags the
|
|
593
594
|
// 2026-07 renewal removed from the schema are stripped.
|
|
@@ -8,7 +8,7 @@ import { COMMANDS } from '../../cli/command-registry.js';
|
|
|
8
8
|
import { reconcileSkills } from '../init/skills.js';
|
|
9
9
|
import { codexHookTrustDoctor } from '../codex-hooks/codex-hook-trust-doctor.js';
|
|
10
10
|
import { writeCodexConfigGuarded } from '../codex/codex-config-guard.js';
|
|
11
|
-
import { REQUIRED_CODEX_MODEL } from '../codex-model-guard.js';
|
|
11
|
+
import { GPT55_CODEX_MODEL, GPT56_CODEX_MODELS, REQUIRED_CODEX_MODEL } from '../codex-model-guard.js';
|
|
12
12
|
export const UPDATE_MIGRATION_SCHEMA = 'sks.project-migration-receipt.v2';
|
|
13
13
|
export const INSTALLATION_EPOCH_SCHEMA = 'sks.installation-epoch.v1';
|
|
14
14
|
export function installationEpochPath() {
|
|
@@ -493,12 +493,28 @@ function normalizeLegacyFastModeConfigForUpdate(text) {
|
|
|
493
493
|
next = removeTomlTableKeyLocal(next, 'notice', 'fast_default_opt_out');
|
|
494
494
|
if (next !== before)
|
|
495
495
|
actions.push('stripped_removed_fastmode_config_schema_keys');
|
|
496
|
+
const beforeModel = next;
|
|
497
|
+
next = normalizeUpdateCodexDefaultModel(next, legacyFastDefault);
|
|
498
|
+
if (next !== beforeModel)
|
|
499
|
+
actions.push('migrated_codex_app_default_model_to_gpt56');
|
|
496
500
|
if (legacyFastDefault && !topLevelTomlString(next, 'service_tier')) {
|
|
497
501
|
next = insertTopLevelTomlKey(next, 'service_tier = "fast"');
|
|
498
502
|
actions.push('migrated_legacy_fast_default_to_service_tier');
|
|
499
503
|
}
|
|
500
504
|
return { text: ensureTrailingNewline(next), actions, defaultProfile: misplaced || topLevel };
|
|
501
505
|
}
|
|
506
|
+
function normalizeUpdateCodexDefaultModel(text, shouldSeed) {
|
|
507
|
+
const currentModel = topLevelTomlString(text, 'model');
|
|
508
|
+
if (!currentModel && shouldSeed)
|
|
509
|
+
return upsertTopLevelTomlStringLocal(text, 'model', REQUIRED_CODEX_MODEL);
|
|
510
|
+
if (isSksManagedCodexModelStamp(currentModel))
|
|
511
|
+
return upsertTopLevelTomlStringLocal(text, 'model', REQUIRED_CODEX_MODEL);
|
|
512
|
+
return String(text || '');
|
|
513
|
+
}
|
|
514
|
+
function isSksManagedCodexModelStamp(value = '') {
|
|
515
|
+
const model = String(value || '').trim().toLowerCase();
|
|
516
|
+
return model === REQUIRED_CODEX_MODEL || model === GPT55_CODEX_MODEL || GPT56_CODEX_MODELS.includes(model);
|
|
517
|
+
}
|
|
502
518
|
function removeTopLevelTomlKeyLocal(text, key) {
|
|
503
519
|
const lines = String(text || '').split('\n');
|
|
504
520
|
const firstTable = lines.findIndex((x) => /^\s*\[.+\]\s*$/.test(x));
|
package/dist/core/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '6.0.
|
|
1
|
+
export const PACKAGE_VERSION = '6.0.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -79,7 +79,7 @@ function assertConfig(text, label) {
|
|
|
79
79
|
...(tableKey(text, 'features', 'fast_mode_ui') ? ['features_fast_mode_ui_legacy_flag_present'] : []),
|
|
80
80
|
...(hasTable(text, 'model_providers.codex-lb') ? [] : ['codex_lb_provider_table_missing']),
|
|
81
81
|
...(tableKey(text, 'model_providers.codex-lb', 'requires_openai_auth') === 'true' ? [] : ['requires_openai_auth_not_true']),
|
|
82
|
-
...(topLevelKey(text, 'model') ? [
|
|
82
|
+
...(topLevelKey(text, 'model') === 'gpt-5.6' ? [] : ['top_level_model_not_gpt56']),
|
|
83
83
|
...(topLevelKey(text, 'model_reasoning_effort') ? ['top_level_model_reasoning_effort_forbidden'] : [])
|
|
84
84
|
];
|
|
85
85
|
return { label, ok: blockers.length === 0, blockers };
|
|
@@ -97,7 +97,7 @@ function tableKey(text, table, key) {
|
|
|
97
97
|
}
|
|
98
98
|
function topLevelKey(text, key) {
|
|
99
99
|
const top = text.split(/\n\s*\[/)[0] || '';
|
|
100
|
-
return new RegExp(`(^|\\n)\\s*${escapeRegExp(key)}\\s
|
|
100
|
+
return top.match(new RegExp(`(^|\\n)\\s*${escapeRegExp(key)}\\s*=\\s*([^\\n#]+)`))?.[2]?.trim().replace(/^"|"$/g, '') || '';
|
|
101
101
|
}
|
|
102
102
|
function escapeRegExp(value) {
|
|
103
103
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
@@ -87,6 +87,7 @@ function assertFastProfile(text, label) {
|
|
|
87
87
|
...(parsed.default_profile === undefined ? [] : ['default_profile_legacy_key_present']),
|
|
88
88
|
...(parsed.user?.fast_mode === undefined ? [] : ['user_fast_mode_legacy_table_present']),
|
|
89
89
|
...(parsed.profiles?.['sks-fast-high'] === undefined ? [] : ['sks_fast_high_legacy_profile_present']),
|
|
90
|
+
...(parsed.model === REQUIRED_CODEX_MODEL ? [] : ['codex_app_model_not_gpt56']),
|
|
90
91
|
...(provider.requires_openai_auth === true ? [] : ['codex_lb_requires_openai_auth_not_true']),
|
|
91
92
|
...(provider.wire_api === 'responses' ? [] : ['codex_lb_wire_api_not_responses']),
|
|
92
93
|
...(desktop.on ? [] : ['desktop_fast_status_off'])
|
|
@@ -95,6 +96,7 @@ function assertFastProfile(text, label) {
|
|
|
95
96
|
label,
|
|
96
97
|
ok: blockers.length === 0,
|
|
97
98
|
default_profile: parsed.default_profile || null,
|
|
99
|
+
model: parsed.model || null,
|
|
98
100
|
legacy_keys: validation.legacy_keys,
|
|
99
101
|
service_tier: parsed.service_tier || null,
|
|
100
102
|
provider_wire_api: provider.wire_api || null,
|
|
@@ -32,7 +32,7 @@ const ok = plan.fast_selector === 'manual_action_required'
|
|
|
32
32
|
&& backups.length >= 2
|
|
33
33
|
&& !/^model\s*=/m.test(projectAfter.split(/\n\s*\[/)[0] || '')
|
|
34
34
|
&& !/^model_reasoning_effort\s*=/m.test(projectAfter.split(/\n\s*\[/)[0] || '')
|
|
35
|
-
&&
|
|
35
|
+
&& /^model\s*=\s*"gpt-5\.6"$/m.test(homeTopLevel)
|
|
36
36
|
&& !/^model_reasoning_effort\s*=/m.test(homeTopLevel)
|
|
37
37
|
&& !/model_provider\s*=/.test(projectAfter)
|
|
38
38
|
&& !/service_tier\s*=/.test(homeTopLevel)
|
|
@@ -56,7 +56,7 @@ const results = [];
|
|
|
56
56
|
const after = await fs.readFile(cfg, 'utf8');
|
|
57
57
|
const topLevel = String(after).split(/\n\s*\[/)[0] || '';
|
|
58
58
|
const ok = res.status === 'updated'
|
|
59
|
-
&&
|
|
59
|
+
&& /^model\s*=\s*"gpt-5\.6"$/m.test(topLevel)
|
|
60
60
|
&& !/^model_reasoning_effort\s*=/m.test(topLevel)
|
|
61
61
|
&& !/^service_tier = "fast"/m.test(topLevel)
|
|
62
62
|
&& /\[features\]/.test(after);
|
|
@@ -13,6 +13,8 @@ const schema = await importDist('core/agents/agent-schema.js');
|
|
|
13
13
|
const roster = await importDist('core/agents/agent-roster.js');
|
|
14
14
|
const scheduler = await importDist('core/agents/agent-scheduler.js');
|
|
15
15
|
const effortPolicy = await importDist('core/agents/agent-effort-policy.js');
|
|
16
|
+
const modelGuard = await importDist('core/codex-model-guard.js');
|
|
17
|
+
const requiredModel = modelGuard.REQUIRED_CODEX_MODEL;
|
|
16
18
|
// 1) Naruto ceiling exists and is 100; standard ceiling untouched at 20.
|
|
17
19
|
assertGate(schema.MAX_NARUTO_AGENT_COUNT === 100, 'MAX_NARUTO_AGENT_COUNT must be 100', { value: schema.MAX_NARUTO_AGENT_COUNT });
|
|
18
20
|
assertGate(schema.MAX_AGENT_COUNT === 20, 'MAX_AGENT_COUNT must remain 20 (standard ceiling)', { value: schema.MAX_AGENT_COUNT });
|
|
@@ -40,8 +42,8 @@ const tiers = new Set(effortRoster.roster.map((row) => row.service_tier));
|
|
|
40
42
|
const fastFlags = new Set(effortRoster.roster.map((row) => row.fast_mode));
|
|
41
43
|
assertGate([...efforts].every((e) => e === 'low' || e === 'medium'), 'naruto clone efforts must be only low/medium (never high/xhigh)', { efforts: [...efforts] });
|
|
42
44
|
assertGate(efforts.has('low') && efforts.has('medium'), 'naruto effort must be dynamic: a no-tool prompt must yield both low and medium clones', { efforts: [...efforts] });
|
|
43
|
-
assertGate([...modelTiers].every((tier) => tier === 'gpt-5.4-mini' || tier ===
|
|
44
|
-
assertGate(modelTiers.has('gpt-5.4-mini') && modelTiers.has(
|
|
45
|
+
assertGate([...modelTiers].every((tier) => tier === 'gpt-5.4-mini' || tier === `${requiredModel}-low`), `ordinary naruto clone model tiers must be mini or ${requiredModel}-low`, { modelTiers: [...modelTiers] });
|
|
46
|
+
assertGate(modelTiers.has('gpt-5.4-mini') && modelTiers.has(`${requiredModel}-low`), `naruto model allocation must dynamically mix gpt-5.4-mini and ${requiredModel}-low`, { modelTiers: [...modelTiers] });
|
|
45
47
|
assertGate([...modelEfforts].length === 1 && modelEfforts.has('low'), 'ordinary naruto clone model reasoning must stay at low', { modelEfforts: [...modelEfforts] });
|
|
46
48
|
assertGate([...tiers].length === 1 && tiers.has('fast'), 'every naruto clone must be fast service tier', { tiers: [...tiers] });
|
|
47
49
|
assertGate([...fastFlags].length === 1 && fastFlags.has(true), 'every naruto clone must have fast_mode=true', { fastFlags: [...fastFlags] });
|
|
@@ -52,7 +54,7 @@ const toolReadCmd = effortPolicy.decideNarutoCloneEffort({ readonly: true, promp
|
|
|
52
54
|
const simpleWrite = effortPolicy.decideNarutoCloneEffort({ readonly: false, prompt: 'simple one-line typo fix' });
|
|
53
55
|
assertGate(simple.reasoning_effort === 'low' && simple.service_tier === 'fast', 'no-tool read-only work must be low + fast', { simple });
|
|
54
56
|
assertGate(simple.model === 'gpt-5.4-mini' && simple.model_reasoning_effort === 'low', 'no-tool read-only work must downshift to gpt-5.4-mini', { simple });
|
|
55
|
-
assertGate(toolWrite.reasoning_effort === 'medium' && toolWrite.service_tier === 'fast' && toolWrite.model ===
|
|
57
|
+
assertGate(toolWrite.reasoning_effort === 'medium' && toolWrite.service_tier === 'fast' && toolWrite.model === requiredModel && toolWrite.model_reasoning_effort === 'low', `writing clone (tool use) must be medium + ${requiredModel} low`, { toolWrite });
|
|
56
58
|
assertGate(simpleWrite.model === 'gpt-5.4-mini' && simpleWrite.model_reasoning_effort === 'low', 'simple write work must downshift native workers to gpt-5.4-mini', { simpleWrite });
|
|
57
59
|
assertGate(toolReadCmd.reasoning_effort === 'medium' && toolReadCmd.service_tier === 'fast' && toolReadCmd.model_reasoning_effort === 'high', 'risky read-only command/migration work must escalate model reasoning to high', { toolReadCmd });
|
|
58
60
|
// 5) System-safe concurrency: never spawn the whole count at once; throttle to host capacity.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.1",
|
|
5
5
|
"description": "Proof-first Codex trust layer for bounded agent workflows, search visibility evidence, and release integrity gates.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|