sneakoscope 3.1.6 → 3.1.7

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.
Files changed (31) hide show
  1. package/README.md +2 -2
  2. package/crates/sks-core/Cargo.lock +1 -1
  3. package/crates/sks-core/Cargo.toml +1 -1
  4. package/crates/sks-core/src/main.rs +1 -1
  5. package/dist/.sks-build-stamp.json +4 -4
  6. package/dist/bin/sks.js +1 -1
  7. package/dist/commands/codex-app.js +20 -2
  8. package/dist/commands/codex-native.js +18 -2
  9. package/dist/commands/doctor.js +36 -12
  10. package/dist/core/codex-app/codex-agent-role-sync.js +9 -5
  11. package/dist/core/codex-app/codex-init-deep.js +6 -2
  12. package/dist/core/codex-app/codex-skill-sync.js +4 -2
  13. package/dist/core/codex-control/codex-0138-capability.js +5 -2
  14. package/dist/core/codex-native/codex-native-feature-broker.js +74 -6
  15. package/dist/core/codex-native/codex-native-pattern-analysis.js +14 -2
  16. package/dist/core/codex-native/codex-native-reference-cache.js +98 -0
  17. package/dist/core/codex-native/codex-native-reference-source.js +50 -11
  18. package/dist/core/codex-native/codex-native-repair-transaction.js +150 -0
  19. package/dist/core/codex-plugins/codex-plugin-json.js +5 -2
  20. package/dist/core/commands/mad-sks-command.js +16 -0
  21. package/dist/core/fsx.js +1 -1
  22. package/dist/core/loops/loop-planner.js +1 -1
  23. package/dist/core/loops/loop-worker-prompts.js +2 -0
  24. package/dist/core/loops/loop-worker-runtime.js +8 -1
  25. package/dist/core/version.js +1 -1
  26. package/dist/scripts/codex-native-runtime-e2e-fixture.js +75 -0
  27. package/dist/scripts/loop-worker-fixture-child.js +2 -1
  28. package/dist/scripts/sks-3-1-5-directive-check-lib.js +1 -1
  29. package/dist/scripts/sks-3-1-6-directive-check-lib.js +2 -2
  30. package/dist/scripts/sks-3-1-7-directive-check-lib.js +58 -0
  31. package/package.json +13 -2
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env node
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+ export const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
6
+ const RELEASE_HELPERS = [
7
+ 'src/scripts/release-dag-full-coverage-check.ts',
8
+ 'src/scripts/sks-3-1-5-directive-check-lib.ts',
9
+ 'src/scripts/sks-3-1-6-directive-check-lib.ts',
10
+ 'src/scripts/sks-3-1-7-directive-check-lib.ts',
11
+ 'src/scripts/release-script-type-safety-check.ts',
12
+ 'src/scripts/no-ts-nocheck-release-scripts-check.ts'
13
+ ];
14
+ export async function runDirective317Gate(id) {
15
+ if (id === 'release-scripts:type-safe')
16
+ return releaseScriptsTypeSafe(id);
17
+ if (id === 'lint:no-ts-nocheck-release-scripts')
18
+ return noTsNoCheckReleaseScripts(id);
19
+ throw new Error(`unknown_3_1_7_gate:${id}`);
20
+ }
21
+ function releaseScriptsTypeSafe(id) {
22
+ checkNoTsNoCheckReleaseScripts();
23
+ const dag = readText('src/scripts/release-dag-full-coverage-check.ts');
24
+ for (const token of [
25
+ 'interface PackageJsonShape',
26
+ 'interface ReleaseGate',
27
+ 'interface ReleaseGateManifest',
28
+ 'function readPackageJson',
29
+ 'function readReleaseGateManifest',
30
+ 'function isReleaseGate',
31
+ 'function normalizeStringList',
32
+ 'const parsed: unknown'
33
+ ]) {
34
+ assertGate(dag.includes(token), `release DAG helper missing typed token:${token}`);
35
+ }
36
+ emitGate(id, { checked_files: RELEASE_HELPERS });
37
+ }
38
+ function noTsNoCheckReleaseScripts(id) {
39
+ checkNoTsNoCheckReleaseScripts();
40
+ emitGate(id, { checked_files: RELEASE_HELPERS });
41
+ }
42
+ function checkNoTsNoCheckReleaseScripts() {
43
+ const offenders = RELEASE_HELPERS.filter((rel) => /^\s*\/\/\s*@ts-nocheck\b/m.test(readText(rel)));
44
+ assertGate(offenders.length === 0, 'release script ts-nocheck offenders found', { offenders, checked_files: RELEASE_HELPERS });
45
+ }
46
+ function readText(rel) {
47
+ return fs.readFileSync(path.join(root, rel), 'utf8');
48
+ }
49
+ function assertGate(condition, message, detail = {}) {
50
+ if (condition)
51
+ return;
52
+ console.error(JSON.stringify({ ok: false, message, detail }, null, 2));
53
+ process.exit(1);
54
+ }
55
+ function emitGate(gate, detail = {}) {
56
+ console.log(JSON.stringify({ schema: 'sks.release-gate.v1', ok: true, gate, ...detail }, null, 2));
57
+ }
58
+ //# sourceMappingURL=sks-3-1-7-directive-check-lib.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sneakoscope",
3
3
  "displayName": "ㅅㅋㅅ",
4
- "version": "3.1.6",
4
+ "version": "3.1.7",
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",
@@ -55,7 +55,7 @@
55
55
  "agent:janitor": "node ./dist/scripts/agent-janitor-check.js",
56
56
  "agent:multi-project-isolation": "node ./dist/scripts/agent-multi-project-isolation-check.js",
57
57
  "verification:parallel-engine": "node ./dist/scripts/parallel-verification-engine-check.js",
58
- "release:check:parallel": "npm run build --silent && node ./dist/scripts/release-check-stamp.js write && node ./dist/scripts/release-parallel-check.js",
58
+ "release:check:parallel": "npm run build --silent && node ./dist/scripts/release-parallel-check.js && node ./dist/scripts/release-check-stamp.js write",
59
59
  "typecheck": "tsc -p tsconfig.json --noEmit",
60
60
  "typecheck:suppressions": "node ./dist/scripts/check-ts-suppressions.js",
61
61
  "typescript:migration-report": "node ./dist/scripts/typescript-migration-report.js",
@@ -854,6 +854,7 @@
854
854
  "brand-neutrality:rename-map": "node ./dist/scripts/brand-neutrality-rename-map-check.js",
855
855
  "brand-neutrality:zero-leakage": "node ./dist/scripts/brand-neutrality-zero-leakage-check.js",
856
856
  "brand-neutrality:zero-leakage-blackbox": "node ./dist/scripts/brand-neutrality-zero-leakage-blackbox.js",
857
+ "brand-neutrality:generated-artifacts": "node ./dist/scripts/brand-neutrality-generated-artifacts-check.js",
857
858
  "docs:brand-neutrality": "node ./dist/scripts/docs-brand-neutrality-check.js",
858
859
  "codex-native:feature-broker": "node ./dist/scripts/codex-native-feature-broker-check.js",
859
860
  "codex-native:harness-compat": "node ./dist/scripts/codex-native-harness-compat-check.js",
@@ -865,13 +866,23 @@
865
866
  "pipeline:codex-native-research-routing": "node ./dist/scripts/pipeline-codex-native-research-routing-check.js",
866
867
  "pipeline:codex-native-image-routing": "node ./dist/scripts/pipeline-codex-native-image-routing-check.js",
867
868
  "pipeline:codex-native-doctor-mad-routing": "node ./dist/scripts/pipeline-codex-native-doctor-mad-routing-check.js",
869
+ "pipeline:codex-native-loop-routing-real-blackbox": "node ./dist/scripts/pipeline-codex-native-loop-routing-real-blackbox.js",
870
+ "pipeline:codex-native-qa-routing-real-blackbox": "node ./dist/scripts/pipeline-codex-native-qa-routing-real-blackbox.js",
871
+ "pipeline:codex-native-research-routing-real-blackbox": "node ./dist/scripts/pipeline-codex-native-research-routing-real-blackbox.js",
872
+ "pipeline:codex-native-image-routing-real-blackbox": "node ./dist/scripts/pipeline-codex-native-image-routing-real-blackbox.js",
873
+ "pipeline:codex-native-doctor-mad-routing-real-blackbox": "node ./dist/scripts/pipeline-codex-native-doctor-mad-routing-real-blackbox.js",
868
874
  "codex-native:pattern-analysis": "node ./dist/scripts/codex-native-pattern-analysis-check.js",
875
+ "codex-native:reference-cache": "node ./dist/scripts/codex-native-reference-cache-check.js",
876
+ "codex-native:reference-cache-blackbox": "node ./dist/scripts/codex-native-reference-cache-blackbox.js",
869
877
  "codex-native:reference-evidence": "node ./dist/scripts/codex-native-reference-evidence-check.js",
870
878
  "codex-native:pattern-analysis-blackbox": "node ./dist/scripts/codex-native-pattern-analysis-blackbox.js",
871
879
  "codex-native:interop-policy": "node ./dist/scripts/codex-native-interop-policy-check.js",
872
880
  "codex-native:skill-content": "node ./dist/scripts/codex-native-skill-content-check.js",
873
881
  "codex-native:agent-role-content": "node ./dist/scripts/codex-native-agent-role-content-check.js",
874
882
  "codex-native:hook-lifecycle-proof": "node ./dist/scripts/codex-native-hook-lifecycle-proof-check.js",
883
+ "codex-native:broker-read-only": "node ./dist/scripts/codex-native-broker-read-only-check.js",
884
+ "codex-native:repair-transaction": "node ./dist/scripts/codex-native-repair-transaction-check.js",
885
+ "codex-native:read-repair-split-blackbox": "node ./dist/scripts/codex-native-read-repair-split-blackbox.js",
875
886
  "init-deep:backup-retention": "node ./dist/scripts/init-deep-backup-retention-check.js",
876
887
  "init-deep:memory-scope-safety": "node ./dist/scripts/init-deep-memory-scope-safety-check.js",
877
888
  "release-scripts:type-safe": "node ./dist/scripts/release-script-type-safety-check.js",