sneakoscope 9.2.2 → 9.2.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.
- package/README.md +1 -1
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/dist/config/skills-manifest.json +1 -1
- package/dist/core/codex-control/codex-current-core-native-exec.js +25 -0
- package/dist/core/codex-control/codex-current-image-path-real-probe.js +5 -2
- package/dist/core/codex-control/codex-current-web-search-probe.js +7 -3
- package/dist/core/codex-lb/bridge-runtime-validation/shared.js +3 -1
- package/dist/core/codex-lb/bridge-runtime-validation/status.js +2 -2
- package/dist/core/version-manager.js +8 -0
- package/dist/core/version.js +1 -1
- package/package.json +1 -1
- package/schemas/codex/desktop-bridge-status-v3.schema.json +4 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Proof-first orchestration for Codex CLI, ChatGPT Desktop, AI coding agents, mult
|
|
|
22
22
|
Sneakoscope Codex (`sks`) is an open-source trust layer for Codex CLI and ChatGPT Desktop. It coordinates bounded AI coding agents, records machine-verifiable evidence, preserves project memory, and blocks release claims that are not supported by current tests or artifacts. Search visibility outcomes are measured separately; SKS does not promise rankings or traffic.
|
|
23
23
|
<!-- END SKS SEARCH VISIBILITY MARKETING -->
|
|
24
24
|
|
|
25
|
-
This README documents package **SKS 9.2.
|
|
25
|
+
This README documents package **SKS 9.2.3** — its own identity, read from `package.json` and subject to release-gate verification, not advice about what to install.
|
|
26
26
|
|
|
27
27
|
Use the official latest stable SKS and Codex CLI releases. The Codex compatibility SSOT is always the **current latest stable** host; capability probes measure what that host can actually do. Product docs do not crown a fixed `0.x.y` string as SSOT (release pins and schema directories are measured artifacts for the current package, not a permanent product version claim). Menu Bar / Center induce updates to the latest stable build. Run `sks update-check` for what is installed and read the capability report for what is supported. Install SSOT is npm `sneakoscope@latest`; PATH `sks` and Menu Bar stamped generation must match that version or gates fail. It resolves managed SKS skills from the authoritative global install, preserves a runnable Naruto child slot when `max_threads=2`, and keeps Menu Bar repair transactional so stamped generations remain verifiable. Naruto uses stable opt-in multi-agent V2 when the host exposes it (Codex official multi-agent wrap-only; SKS does not reimplement a parallel runtime). Local code search is mode-separated (`sks search files|text|structure|symbol|context`); `context` is answered by the compiled TriWiki Context Graph (`context-graph.json` is exhaustive authority; `context-pack.json` and managed `AGENTS.md` are bounded projections) — see [docs/architecture/context-graph.md](https://github.com/mandarange/Sneakoscope-Codex/blob/main/docs/architecture/context-graph.md) and [docs/PRODUCT-CONTRACT.md](https://github.com/mandarange/Sneakoscope-Codex/blob/main/docs/PRODUCT-CONTRACT.md). See [CHANGELOG.md](https://github.com/mandarange/Sneakoscope-Codex/blob/main/CHANGELOG.md).
|
|
28
28
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const CODEX_CURRENT_CORE_NATIVE_EXEC_ARGS = [
|
|
2
|
+
'--ignore-user-config',
|
|
3
|
+
'-c',
|
|
4
|
+
'model_provider="openai"',
|
|
5
|
+
'-c',
|
|
6
|
+
'forced_login_method="chatgpt"',
|
|
7
|
+
'-c',
|
|
8
|
+
'mcp_servers={}'
|
|
9
|
+
];
|
|
10
|
+
export const CODEX_CURRENT_CORE_NATIVE_LOOPBACK_ENV_KEYS = [
|
|
11
|
+
'OPENAI_BASE_URL',
|
|
12
|
+
'CHATGPT_BASE_URL',
|
|
13
|
+
'OPENAI_API_BASE',
|
|
14
|
+
'CODEX_API_BASE',
|
|
15
|
+
'CODEX_BASE_URL'
|
|
16
|
+
];
|
|
17
|
+
export function nativeCodexCurrentCoreProbeEnv(source = process.env) {
|
|
18
|
+
const env = { ...source };
|
|
19
|
+
for (const key of CODEX_CURRENT_CORE_NATIVE_LOOPBACK_ENV_KEYS)
|
|
20
|
+
delete env[key];
|
|
21
|
+
return env;
|
|
22
|
+
}
|
|
23
|
+
export function withNativeCodexCurrentCoreExecArgs(extraArgs = []) {
|
|
24
|
+
return [...CODEX_CURRENT_CORE_NATIVE_EXEC_ARGS, ...extraArgs];
|
|
25
|
+
}
|
|
@@ -5,6 +5,7 @@ import { ensureDir, runProcess, writeBinaryAtomic } from '../fsx.js';
|
|
|
5
5
|
import { buildImageArtifactPathContract } from '../image/image-artifact-path-contract.js';
|
|
6
6
|
import { codexCurrentCoreProbeTail, skippedCodexCurrentCoreProbe } from './codex-current-core-real-probes.js';
|
|
7
7
|
import { prepareCodexAppServerRuntimeEnv } from './codex-app-server-runtime-env.js';
|
|
8
|
+
import { nativeCodexCurrentCoreProbeEnv, withNativeCodexCurrentCoreExecArgs } from './codex-current-core-native-exec.js';
|
|
8
9
|
const ONE_BY_ONE_PNG = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGP4//8/AAX+Av4N70a4AAAAAElFTkSuQmCC', 'base64');
|
|
9
10
|
export async function runCodexCurrentCoreImageReferencedPathRealProbe(input) {
|
|
10
11
|
const started = Date.now();
|
|
@@ -54,9 +55,9 @@ export async function runCodexCurrentCoreImageReferencedPathRealProbe(input) {
|
|
|
54
55
|
`Return compact JSON {"referenced_path":"${inputB.replace(/\\/g, '\\\\')}","saw_image":true}.`,
|
|
55
56
|
'Do not edit files and do not reference any other image path.'
|
|
56
57
|
].join(' ');
|
|
57
|
-
const extraArgs = ['
|
|
58
|
+
const extraArgs = withNativeCodexCurrentCoreExecArgs(['--image', inputB, '--skip-git-repo-check', '--ephemeral']);
|
|
58
59
|
const args = buildCodexExecArgs({ root: tempDir, prompt, outputFile, json: true, extraArgs });
|
|
59
|
-
const runtimeEnv = await prepareCodexAppServerRuntimeEnv({ env: input.env || process.env });
|
|
60
|
+
const runtimeEnv = await prepareCodexAppServerRuntimeEnv({ env: nativeCodexCurrentCoreProbeEnv(input.env || process.env) });
|
|
60
61
|
const result = await runCodexExec({
|
|
61
62
|
root: tempDir,
|
|
62
63
|
recoveryRoot: input.root,
|
|
@@ -97,6 +98,8 @@ export async function runCodexCurrentCoreImageReferencedPathRealProbe(input) {
|
|
|
97
98
|
process_exited_successfully: processExitedSuccessfully,
|
|
98
99
|
process_warning: processExitedSuccessfully ? null : 'Codex emitted the referenced path evidence before process timeout/nonzero exit.',
|
|
99
100
|
output_file: outputFile,
|
|
101
|
+
native_codex_only: true,
|
|
102
|
+
ignored_user_config: true,
|
|
100
103
|
desktop_bridge_launch_guard: result.desktop_bridge_launch_guard || null,
|
|
101
104
|
contract_blockers: contract.blockers
|
|
102
105
|
},
|
|
@@ -4,6 +4,7 @@ import { buildCodexExecArgs, findCodexBinary, runCodexExec } from '../codex-adap
|
|
|
4
4
|
import { ensureDir, runProcess, writeJsonAtomic, writeTextAtomic } from '../fsx.js';
|
|
5
5
|
import { codexCurrentCoreProbeTail, skippedCodexCurrentCoreProbe } from './codex-current-core-real-probes.js';
|
|
6
6
|
import { prepareCodexAppServerRuntimeEnv } from './codex-app-server-runtime-env.js';
|
|
7
|
+
import { nativeCodexCurrentCoreProbeEnv, withNativeCodexCurrentCoreExecArgs } from './codex-current-core-native-exec.js';
|
|
7
8
|
export async function runCodexCurrentCoreWebSearchRealProbe(input) {
|
|
8
9
|
const started = Date.now();
|
|
9
10
|
if (!input.allowNetwork) {
|
|
@@ -18,15 +19,16 @@ export async function runCodexCurrentCoreWebSearchRealProbe(input) {
|
|
|
18
19
|
await writeTextAtomic(path.join(tempDir, 'README.md'), 'Temporary current Codex web-search real probe workspace.\n');
|
|
19
20
|
const outputFile = path.join(tempDir, 'last-message.txt');
|
|
20
21
|
const prompt = 'In code mode, use standalone web search to find the title of https://example.com. Return JSON {"used_web_search":true,"answer":"...","sources":[...]}.';
|
|
21
|
-
const
|
|
22
|
-
const
|
|
22
|
+
const extraArgs = withNativeCodexCurrentCoreExecArgs();
|
|
23
|
+
const args = buildCodexExecArgs({ root: tempDir, prompt, outputFile, json: true, extraArgs });
|
|
24
|
+
const runtimeEnv = await prepareCodexAppServerRuntimeEnv({ env: nativeCodexCurrentCoreProbeEnv(input.env || process.env) });
|
|
23
25
|
const result = await runCodexExec({
|
|
24
26
|
root: tempDir,
|
|
25
27
|
recoveryRoot: input.root,
|
|
26
28
|
prompt,
|
|
27
29
|
outputFile,
|
|
28
30
|
json: true,
|
|
29
|
-
extraArgs
|
|
31
|
+
extraArgs,
|
|
30
32
|
timeoutMs: input.timeoutMs || 120000,
|
|
31
33
|
maxBufferBytes: 512 * 1024,
|
|
32
34
|
stdoutFile: path.join(tempDir, 'codex.stdout.log'),
|
|
@@ -75,6 +77,8 @@ export async function runCodexCurrentCoreWebSearchRealProbe(input) {
|
|
|
75
77
|
process_exited_successfully: processExitedSuccessfully,
|
|
76
78
|
process_warning: processExitedSuccessfully ? null : 'Codex emitted web-search evidence before process timeout/nonzero exit.',
|
|
77
79
|
output_file: outputFile,
|
|
80
|
+
native_codex_only: true,
|
|
81
|
+
ignored_user_config: true,
|
|
78
82
|
desktop_bridge_launch_guard: result.desktop_bridge_launch_guard || null
|
|
79
83
|
},
|
|
80
84
|
blockers: ok ? [] : [
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { BRIDGE_OFFICIAL_ROUTE_ID, BRIDGE_PROVIDER_IDS } from '../bridge-contracts.js';
|
|
2
|
+
export const PROVIDERS = BRIDGE_PROVIDER_IDS;
|
|
3
|
+
export const ROUTE_TARGET_IDS = [...BRIDGE_PROVIDER_IDS, BRIDGE_OFFICIAL_ROUTE_ID];
|
|
2
4
|
export const LEVELS = new Set(['shallow', 'transport', 'deep']);
|
|
3
5
|
export const PROBE_STATES = new Set([
|
|
4
6
|
'not_attempted', 'running', 'verified', 'degraded', 'blocked', 'failed',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { validateScope } from './capability.js';
|
|
2
2
|
import { validateCatalogState } from './catalog.js';
|
|
3
|
-
import { PROBE_STATES, PROVIDERS, booleanValue, enumValue, escapePath, exact, iso, literal, nonEmptyString, nullableInteger, nullableIso, nullableNumber, nullableString, object, stringArray } from './shared.js';
|
|
3
|
+
import { PROBE_STATES, PROVIDERS, ROUTE_TARGET_IDS, booleanValue, enumValue, escapePath, exact, iso, literal, nonEmptyString, nullableInteger, nullableIso, nullableNumber, nullableString, object, stringArray } from './shared.js';
|
|
4
4
|
export function validateManagement(value, path, issues) {
|
|
5
5
|
const row = object(value, path, issues);
|
|
6
6
|
if (!row)
|
|
@@ -225,7 +225,7 @@ function validateRouteTarget(value, path, issues) {
|
|
|
225
225
|
if (!row)
|
|
226
226
|
return;
|
|
227
227
|
exact(row, path, ['provider_id', 'upstream_model'], issues);
|
|
228
|
-
enumValue(row.provider_id, new Set(
|
|
228
|
+
enumValue(row.provider_id, new Set(ROUTE_TARGET_IDS), `${path}.provider_id`, issues);
|
|
229
229
|
nonEmptyString(row.upstream_model, `${path}.upstream_model`, issues);
|
|
230
230
|
}
|
|
231
231
|
export function validateReadiness(value, path, issues) {
|
|
@@ -363,6 +363,7 @@ async function syncSourcePackageVersion(root, version) {
|
|
|
363
363
|
.replace(/^For \d+\.\d+\.\d+, a selected codex-lb/m, `For ${version}, a selected codex-lb`)
|
|
364
364
|
.replace(/^The \d+\.\d+\.\d+ SKS menu bar/m, `The ${version} SKS menu bar`)
|
|
365
365
|
.replace(/the \d+\.\d+\.\d+ to \d+\.\d+\.\d+ upgrade smoke/g, `the ${RELEASE_UPGRADE_BASELINE_VERSION} to ${version} upgrade smoke`)
|
|
366
|
+
.replace(/to \d+\.\d+\.\d+ upgrade smoke/g, `to ${version} upgrade smoke`)
|
|
366
367
|
.replace(/under the \d+\.\d+\.\d+ release evidence root/g, `under the ${version} release evidence root`)
|
|
367
368
|
.replace(/^Do not cut \d+\.\d+\.\d+ while/m, `Do not cut ${version} while`)
|
|
368
369
|
.replace(/must agree on \d+\.\d+\.\d+\./g, `must agree on ${version}.`)
|
|
@@ -376,6 +377,13 @@ async function syncSourcePackageVersion(root, version) {
|
|
|
376
377
|
{
|
|
377
378
|
rel: 'docs/release-proof-truth.md',
|
|
378
379
|
replace: (text) => text
|
|
380
|
+
.replace(/^# Release Proof Truth — \d+\.\d+\.\d+\s*$/m, `# Release Proof Truth — ${version}`)
|
|
381
|
+
.replace(/^(## Current assertion\n\n)\d+\.\d+\.\d+ is \*\*SOURCE TAG CONDITIONAL/m, `$1${version} is **SOURCE TAG CONDITIONAL`)
|
|
382
|
+
.replace(/^New \d+\.\d+\.\d+ claims:/m, `New ${version} claims:`)
|
|
383
|
+
.replace(/treated as \d+\.\d+\.\d+ evidence\./, `treated as ${version} evidence.`)
|
|
384
|
+
.replace(/All checked version authorities report \d+\.\d+\.\d+/, `All checked version authorities report ${version}`)
|
|
385
|
+
.replace(/The reported \d+\.\d+\.\d+ package is ready to publish/, `The reported ${version} package is ready to publish`)
|
|
386
|
+
.replace(/`release:version-truth` 15 surfaces at \d+\.\d+\.\d+/, `\`release:version-truth\` 15 surfaces at ${version}`)
|
|
379
387
|
.replace(/^SKS \d+\.\d+\.\d+ release proof truth/m, `SKS ${version} release proof truth`)
|
|
380
388
|
.replace(/^SKS \d+\.\d+\.\d+ must not claim/m, `SKS ${version} must not claim`)
|
|
381
389
|
.replace(/; \d+\.\d+\.\d+ proof must additionally show/g, `; ${version} proof must additionally show`)
|
package/dist/core/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '9.2.
|
|
1
|
+
export const PACKAGE_VERSION = '9.2.3';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "9.2.
|
|
4
|
+
"version": "9.2.3",
|
|
5
5
|
"description": "Sneakoscope Codex (`sks`) is an open-source trust layer for Codex CLI and ChatGPT Desktop. It coordinates bounded AI coding agents, records machine-verifiable evidence, preserves project memory, and blocks release claims that are not supported by current tests or artifacts. Search visibility outcomes are measured separately; SKS does not promise rankings or traffic.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|
|
@@ -204,7 +204,10 @@
|
|
|
204
204
|
"additionalProperties": false,
|
|
205
205
|
"required": ["provider_id", "upstream_model"],
|
|
206
206
|
"properties": {
|
|
207
|
-
"provider_id": {
|
|
207
|
+
"provider_id": {
|
|
208
|
+
"enum": ["codex-lb", "openrouter", "openai"],
|
|
209
|
+
"description": "Registry providers plus the official ChatGPT identity route. openai is the canonical official id (OpenCodex OPENAI_CODEX_PROVIDER_ID), not a provider profile."
|
|
210
|
+
},
|
|
208
211
|
"upstream_model": { "$ref": "#/$defs/nonEmptyString" }
|
|
209
212
|
}
|
|
210
213
|
},
|