sneakoscope 4.7.1 → 4.7.3

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.
@@ -46,9 +46,14 @@ async function runSetup(name, args, input = 'sk-clb-test\n') {
46
46
  }
47
47
  {
48
48
  const row = await runSetup('no-env', ['--no-env-file']);
49
+ const actions = row.json.applied_actions?.map((action) => action.type) || [];
49
50
  results.push({
50
51
  name: 'no_env_file',
51
- ok: row.code === 0 && row.json.ok === true && !(await exists(row.envPath))
52
+ ok: row.code === 0
53
+ && row.json.status === 'process_env'
54
+ && row.json.persistence?.applied_modes?.includes('process_only_ephemeral')
55
+ && !actions.includes('write_env_file')
56
+ && !(await exists(row.envPath))
52
57
  });
53
58
  }
54
59
  {
@@ -8,7 +8,7 @@ const codexHome = path.join(root, 'home', '.codex');
8
8
  await fs.mkdir(path.join(root, '.codex'), { recursive: true });
9
9
  await fs.mkdir(codexHome, { recursive: true });
10
10
  await fs.writeFile(path.join(root, '.codex', 'config.toml'), 'model = "gpt-5.5"\nmodel_reasoning_effort = "medium"\nmodel_provider = "codex-lb"\n');
11
- await fs.writeFile(path.join(codexHome, 'config.toml'), '# SKS forced fast UI during legacy install\nmodel = "z-ai/glm-5.2"\nmodel_reasoning_effort = "xhigh"\nmodel_provider = "codex-lb"\nservice_tier = "fast"\n[features]\nfast_mode = false # user disabled, must remain untouched\n\n[profiles.sks-fast-high]\nmodel = "gpt-5.5"\nservice_tier = "fast"\n\n[model_providers.codex-lb]\nname = "OpenAI"\nbase_url = "https://lb.example.test/backend-api/codex"\nwire_api = "responses"\nenv_key = "CODEX_LB_API_KEY"\nsupports_websockets = true\nrequires_openai_auth = false\n');
11
+ await fs.writeFile(path.join(codexHome, 'config.toml'), '# SKS forced fast UI during legacy install\nmodel = "z-ai/glm-5.2"\nmodel_reasoning_effort = "xhigh"\nmodel_provider = "codex-lb"\nservice_tier = "fast"\n[features]\nfast_mode = false # user disabled, must remain untouched\n\n[profiles.sks-fast-high]\nmodel = "gpt-5.5"\nservice_tier = "fast"\n\n[model_providers.codex-lb]\nname = "openai"\nbase_url = "https://lb.example.test/backend-api/codex"\nwire_api = "responses"\nenv_key = "CODEX_LB_API_KEY"\nsupports_websockets = true\nrequires_openai_auth = true\n');
12
12
  const plan = await repairCodexAppFastUi(root, { codexHome, apply: false });
13
13
  const repaired = await repairCodexAppFastUi(root, { codexHome, apply: true });
14
14
  const projectAfter = await fs.readFile(path.join(root, '.codex', 'config.toml'), 'utf8');
@@ -22,8 +22,12 @@ await fs.mkdir(unsafeCodexHome, { recursive: true });
22
22
  await fs.writeFile(path.join(unsafeCodexHome, 'config.toml'), 'service_tier = "standard"\n');
23
23
  const unsafePlan = await repairCodexAppFastUi(unsafeRoot, { codexHome: unsafeCodexHome, apply: false });
24
24
  const ok = plan.fast_selector === 'manual_action_required'
25
+ && plan.provider_selector === 'manual_action_required'
26
+ && plan.provider_actions.includes('sks codex-app set-openrouter-key --api-key-stdin')
27
+ && plan.provider_actions.includes('sks codex-lb setup --host <domain> --api-key-stdin --yes')
25
28
  && plan.safe_auto_apply === true
26
29
  && repaired.fast_selector === 'repaired'
30
+ && repaired.provider_selector === 'manual_action_required'
27
31
  && repaired.safe_auto_apply === true
28
32
  && backups.length >= 2
29
33
  && !/^model\s*=/m.test(projectAfter.split(/\n\s*\[/)[0] || '')
@@ -92,7 +92,7 @@ function authState() {
92
92
  };
93
93
  }
94
94
  const codexLb = readCodexLbAuth();
95
- if (codexLb.selected && codexLb.provider_configured && codexLb.requires_openai_auth === false && codexLb.key && codexLb.base_url) {
95
+ if (codexLb.selected && codexLb.provider_configured && codexLb.requires_openai_auth === true && codexLb.key && codexLb.base_url) {
96
96
  return {
97
97
  ok: true,
98
98
  provider: 'openai_responses_image_generation',
@@ -102,7 +102,7 @@ function authState() {
102
102
  codex_lb: {
103
103
  selected: true,
104
104
  provider_configured: true,
105
- requires_openai_auth: false,
105
+ requires_openai_auth: true,
106
106
  base_url: codexLb.base_url,
107
107
  env_key: codexLb.env_key,
108
108
  env_path: codexLb.env_path,
@@ -10,11 +10,11 @@ const codexLbConfig = [
10
10
  'model_provider = "codex-lb"',
11
11
  '',
12
12
  '[model_providers.codex-lb]',
13
- 'name = "OpenAI"',
13
+ 'name = "openai"',
14
14
  'base_url = "https://lb.example.test"',
15
15
  'wire_api = "responses"',
16
16
  'env_key = "CODEX_LB_API_KEY"',
17
- 'requires_openai_auth = false',
17
+ 'requires_openai_auth = true',
18
18
  ''
19
19
  ].join('\n');
20
20
  await fs.writeFile(path.join(codexHome, 'config.toml'), codexLbConfig);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sneakoscope",
3
3
  "displayName": "ㅅㅋㅅ",
4
- "version": "4.7.1",
4
+ "version": "4.7.3",
5
5
  "description": "Sneakoscope Codex: fast proof-first Codex trust layer with image-based Voxel TriWiki.",
6
6
  "type": "module",
7
7
  "homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
@@ -114,6 +114,7 @@
114
114
  "codex-app:fast-ui-preservation": "node ./dist/scripts/codex-app-fast-ui-preservation-check.js",
115
115
  "codex-app:ui-clobber-guard": "node ./dist/scripts/codex-app-ui-clobber-guard-check.js",
116
116
  "doctor:fixes-codex-app-fast-ui": "node ./dist/scripts/doctor-fixes-codex-app-fast-ui-check.js",
117
+ "codex-app:provider-model-ui": "node ./dist/scripts/codex-app-provider-model-ui-check.js",
117
118
  "mad-sks:app-ui-no-mutation": "node ./dist/scripts/mad-sks-app-ui-no-mutation-check.js",
118
119
  "provider:badge-context": "node ./dist/scripts/provider-badge-context-check.js",
119
120
  "provider:context-config-toml": "node ./dist/scripts/provider-context-config-toml-check.js",
@@ -303,6 +304,7 @@
303
304
  "codex-lb:setup-truthfulness": "node ./dist/scripts/codex-lb-setup-truthfulness-check.js",
304
305
  "codex-lb:persistence-truth": "node ./dist/scripts/codex-lb-persistence-truth-check.js",
305
306
  "codex-lb:missing-env-regression": "node ./dist/scripts/codex-lb-missing-env-regression.js",
307
+ "codex-lb:fast-mode-truth": "node ./dist/scripts/codex-lb-fast-mode-truth-check.js",
306
308
  "computer-use:policy-check": "node ./dist/scripts/computer-use-policy-check.js",
307
309
  "computer-use:visual-route-fixture": "node ./dist/scripts/computer-use-visual-route-fixture-check.js",
308
310
  "computer-use:live-optional": "node ./dist/scripts/computer-use-live-optional-check.js",