sneakoscope 2.0.13 → 2.0.15
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 +6 -3
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/crates/sks-core/src/main.rs +1 -1
- package/dist/.sks-build-stamp.json +4 -4
- package/dist/bin/sks.js +1 -1
- package/dist/cli/command-registry.js +1 -0
- package/dist/commands/mad-db.js +5 -0
- package/dist/commands/zellij-slot-pane.js +3 -1
- package/dist/core/agents/agent-orchestrator.js +11 -4
- package/dist/core/agents/agent-output-validator.js +1 -1
- package/dist/core/agents/agent-plan.js +3 -2
- package/dist/core/agents/native-cli-session-swarm.js +118 -0
- package/dist/core/agents/native-cli-worker.js +85 -0
- package/dist/core/codex-control/codex-fake-sdk-adapter.js +3 -3
- package/dist/core/codex-control/gpt-final-review-schema.js +61 -14
- package/dist/core/commands/basic-cli.js +1 -1
- package/dist/core/commands/command-suggestions.js +1 -1
- package/dist/core/commands/mad-db-command.js +106 -0
- package/dist/core/commands/mad-sks-command.js +50 -13
- package/dist/core/commands/naruto-command.js +82 -1
- package/dist/core/commands/research-command.js +83 -17
- package/dist/core/commands/team-command.js +25 -1
- package/dist/core/db-safety.js +26 -0
- package/dist/core/fsx.js +1 -1
- package/dist/core/mad-db/mad-db-capability.js +84 -0
- package/dist/core/mad-db/mad-db-ledger.js +17 -0
- package/dist/core/mad-db/mad-db-policy-resolver.js +46 -0
- package/dist/core/naruto/naruto-real-worker-child.js +11 -3
- package/dist/core/naruto/naruto-real-worker-runtime.js +4 -0
- package/dist/core/pipeline/final-gpt-patch-stage.js +20 -3
- package/dist/core/pipeline-internals/runtime-core.js +74 -8
- package/dist/core/pipeline-internals/runtime-gates.js +44 -0
- package/dist/core/proof/route-proof-gate.js +5 -3
- package/dist/core/proof/route-proof-policy.js +9 -1
- package/dist/core/release/release-gate-affected-selector.js +113 -0
- package/dist/core/release/release-gate-batch-runner.js +67 -0
- package/dist/core/release/release-gate-dag.js +22 -3
- package/dist/core/release/release-gate-resource-governor.js +23 -11
- package/dist/core/research/implementation-blueprint-densifier.js +124 -0
- package/dist/core/research/implementation-blueprint-markdown.js +1 -1
- package/dist/core/research/implementation-blueprint.js +68 -7
- package/dist/core/research/research-claim-builder.js +114 -0
- package/dist/core/research/research-cycle-runner.js +115 -11
- package/dist/core/research/research-final-reviewer.js +181 -1
- package/dist/core/research/research-handoff.js +69 -5
- package/dist/core/research/research-realistic-report.js +162 -0
- package/dist/core/research/research-repetition-detector.js +75 -0
- package/dist/core/research/research-report-quality.js +27 -5
- package/dist/core/research/research-source-ledger-merge.js +186 -0
- package/dist/core/research/research-source-shards.js +176 -0
- package/dist/core/research/research-stage-runner.js +537 -11
- package/dist/core/research/research-synthesis-prompt.js +52 -0
- package/dist/core/research/research-synthesis-writer.js +208 -0
- package/dist/core/research/research-work-graph.js +114 -23
- package/dist/core/research.js +72 -48
- package/dist/core/routes.js +23 -19
- package/dist/core/update/update-notice.js +120 -0
- package/dist/core/version.js +1 -1
- package/dist/core/zellij/zellij-dashboard-renderer.js +2 -0
- package/dist/core/zellij/zellij-slot-column-anchor.js +35 -1
- package/dist/core/zellij/zellij-slot-pane-renderer.js +57 -0
- package/dist/core/zellij/zellij-slot-telemetry.js +182 -0
- package/dist/scripts/release-gate-dag-runner.js +5 -0
- package/dist/scripts/release-speed-summary.js +25 -0
- package/package.json +67 -5
- package/schemas/codex/agent-result.schema.json +1 -1
- package/schemas/mad-db/mad-db-capability.schema.json +31 -0
- package/schemas/mad-db/mad-db-ledger.schema.json +14 -0
- package/schemas/research/implementation-blueprint.schema.json +6 -1
- package/schemas/research/research-final-review.schema.json +10 -0
- package/schemas/research/research-source-shard.schema.json +46 -0
- package/schemas/research/research-synthesis-output.schema.json +62 -0
- package/schemas/update/update-notice.schema.json +19 -0
- package/schemas/zellij/zellij-slot-telemetry.schema.json +89 -0
- package/dist/build-manifest.json +0 -1184
- package/dist/scripts/agent-ast-aware-work-graph-check.js +0 -25
- package/dist/scripts/agent-backfill-replenishment-check.js +0 -13
- package/dist/scripts/agent-backfill-route-blackbox.js +0 -5
- package/dist/scripts/agent-background-terminals-check.js +0 -16
- package/dist/scripts/agent-cleanup-command-ux-check.js +0 -12
- package/dist/scripts/agent-cleanup-executor-check.js +0 -53
- package/dist/scripts/agent-cleanup-executor-v2-check.js +0 -39
- package/dist/scripts/agent-cli-options-to-task-graph-check.js +0 -5
- package/dist/scripts/agent-codex-app-cockpit-check.js +0 -91
- package/dist/scripts/agent-codex-child-overlap-check.js +0 -21
- package/dist/scripts/agent-dynamic-cockpit-check.js +0 -10
- package/dist/scripts/agent-dynamic-pool-check.js +0 -13
- package/dist/scripts/agent-dynamic-pool-route-blackbox.js +0 -5
- package/dist/scripts/agent-fast-mode-default-check.js +0 -62
- package/dist/scripts/agent-fast-mode-worker-propagation-check.js +0 -7
- package/dist/scripts/agent-follow-up-work-schema-check.js +0 -80
- package/dist/scripts/agent-goal-mode-propagation-check.js +0 -9
- package/dist/scripts/agent-intelligent-work-graph-check.js +0 -25
- package/dist/scripts/agent-janitor-check.js +0 -76
- package/dist/scripts/agent-main-no-scout-check.js +0 -11
- package/dist/scripts/agent-model-authored-patch-envelope-check.js +0 -15
- package/dist/scripts/agent-multi-project-isolation-check.js +0 -86
- package/dist/scripts/agent-native-cli-session-proof-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-10-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-20-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-check.js +0 -7
- package/dist/scripts/agent-no-subagent-scaling-check.js +0 -7
- package/dist/scripts/agent-parallel-write-blackbox.js +0 -56
- package/dist/scripts/agent-parallel-write-kernel-check.js +0 -103
- package/dist/scripts/agent-patch-conflict-rebase-check.js +0 -198
- package/dist/scripts/agent-patch-envelope-extraction-check.js +0 -17
- package/dist/scripts/agent-patch-proof-check.js +0 -41
- package/dist/scripts/agent-patch-proof-runtime-check.js +0 -63
- package/dist/scripts/agent-patch-queue-runtime-check.js +0 -36
- package/dist/scripts/agent-patch-rollback-check.js +0 -38
- package/dist/scripts/agent-patch-rollback-dag-check.js +0 -14
- package/dist/scripts/agent-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/agent-patch-swarm-runtime-check.js +0 -10
- package/dist/scripts/agent-patch-swarm-runtime-truth-check.js +0 -76
- package/dist/scripts/agent-patch-transaction-journal-check.js +0 -57
- package/dist/scripts/agent-patch-verification-dag-check.js +0 -14
- package/dist/scripts/agent-proof-contract-reconciled-check.js +0 -5
- package/dist/scripts/agent-real-codex-dynamic-smoke-check.js +0 -166
- package/dist/scripts/agent-real-codex-dynamic-smoke-v2-check.js +0 -14
- package/dist/scripts/agent-real-codex-in-zellij-worker-pane-check.js +0 -229
- package/dist/scripts/agent-real-codex-parallel-workers-10-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-20-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-5-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-check.js +0 -5
- package/dist/scripts/agent-role-config-repair-check.js +0 -33
- package/dist/scripts/agent-rollback-command-check.js +0 -86
- package/dist/scripts/agent-route-truth-backfill-check.js +0 -5
- package/dist/scripts/agent-scheduler-proof-check.js +0 -13
- package/dist/scripts/agent-scheduler-proof-hardening-check.js +0 -22
- package/dist/scripts/agent-session-generation-check.js +0 -21
- package/dist/scripts/agent-slot-pane-binding-proof-check.js +0 -64
- package/dist/scripts/agent-source-intelligence-propagation-check.js +0 -9
- package/dist/scripts/agent-strategy-to-lease-wiring-check.js +0 -32
- package/dist/scripts/agent-strategy-to-patch-strict-check.js +0 -54
- package/dist/scripts/agent-task-graph-expansion-check.js +0 -14
- package/dist/scripts/agent-terminal-generations-check.js +0 -23
- package/dist/scripts/agent-visual-consistency-check.js +0 -9
- package/dist/scripts/agent-wiki-context-proof-check.js +0 -62
- package/dist/scripts/agent-worker-backend-router-check.js +0 -63
- package/dist/scripts/agent-worker-scout-limited-check.js +0 -17
- package/dist/scripts/agent-zellij-dynamic-backfill-panes-check.js +0 -34
- package/dist/scripts/agent-zellij-runtime-check.js +0 -84
- package/dist/scripts/all-feature-deep-completion-check.js +0 -31
- package/dist/scripts/appshots-capability-check.js +0 -18
- package/dist/scripts/appshots-evidence-check.js +0 -48
- package/dist/scripts/appshots-operator-policy-check.js +0 -25
- package/dist/scripts/appshots-privacy-safety-check.js +0 -48
- package/dist/scripts/appshots-source-intelligence-check.js +0 -53
- package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -87
- package/dist/scripts/appshots-triwiki-voxel-check.js +0 -46
- package/dist/scripts/architecture-guard-check.js +0 -55
- package/dist/scripts/changelog-check.js +0 -47
- package/dist/scripts/codex-0-133-official-compat-report.js +0 -53
- package/dist/scripts/codex-0-134-official-compat-report.js +0 -110
- package/dist/scripts/codex-0-134-runner-truth-check.js +0 -66
- package/dist/scripts/codex-0-135-compat-check.js +0 -57
- package/dist/scripts/codex-0-136-compat-check.js +0 -30
- package/dist/scripts/codex-0-137-compat-check.js +0 -27
- package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -32
- package/dist/scripts/codex-app-provider-badge-check.js +0 -37
- package/dist/scripts/codex-app-ui-clobber-guard-check.js +0 -22
- package/dist/scripts/codex-app-ui-preservation-check.js +0 -96
- package/dist/scripts/codex-control-all-pipelines-check.js +0 -36
- package/dist/scripts/codex-control-capability-check.js +0 -10
- package/dist/scripts/codex-control-empty-result-retry-check.js +0 -43
- package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -10
- package/dist/scripts/codex-control-keepalive-no-cot-leak-check.js +0 -14
- package/dist/scripts/codex-control-no-legacy-fallback-check.js +0 -31
- package/dist/scripts/codex-control-side-effect-scope-check.js +0 -26
- package/dist/scripts/codex-control-stream-idle-watchdog-check.js +0 -18
- package/dist/scripts/codex-control-structured-output-check.js +0 -11
- package/dist/scripts/codex-control-thread-registry-check.js +0 -11
- package/dist/scripts/codex-control-tool-call-sequence-repair-check.js +0 -14
- package/dist/scripts/codex-environment-scoped-approvals-check.js +0 -10
- package/dist/scripts/codex-exec-output-schema-actual-syntax-check.js +0 -33
- package/dist/scripts/codex-fast-mode-profile-propagation-check.js +0 -12
- package/dist/scripts/codex-history-search-check.js +0 -19
- package/dist/scripts/codex-hook-semantic-check.js +0 -15
- package/dist/scripts/codex-hook-strict-subset-check.js +0 -61
- package/dist/scripts/codex-lb-config-toml-safety-check.js +0 -85
- package/dist/scripts/codex-lb-persistence-truth-check.js +0 -96
- package/dist/scripts/codex-lb-setup-fixture-check.js +0 -91
- package/dist/scripts/codex-lb-setup-truthfulness-check.js +0 -84
- package/dist/scripts/codex-legacy-profile-consumers-removed-check.js +0 -24
- package/dist/scripts/codex-managed-proxy-env-check.js +0 -17
- package/dist/scripts/codex-output-schema-fixture-check.js +0 -25
- package/dist/scripts/codex-permission-profiles-check.js +0 -36
- package/dist/scripts/codex-plugin-list-json-check.js +0 -8
- package/dist/scripts/codex-profile-primary-check.js +0 -13
- package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -51
- package/dist/scripts/codex-resume-cwd-truth-check.js +0 -17
- package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -32
- package/dist/scripts/codex-sdk-backend-router-check.js +0 -65
- package/dist/scripts/codex-sdk-capability-check.js +0 -11
- package/dist/scripts/codex-sdk-core-skill-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-dfix-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -9
- package/dist/scripts/codex-sdk-no-legacy-fallback-check.js +0 -33
- package/dist/scripts/codex-sdk-qa-pipeline-check.js +0 -8
- package/dist/scripts/codex-sdk-real-smoke-check.js +0 -39
- package/dist/scripts/codex-sdk-release-review-pipeline-check.js +0 -13
- package/dist/scripts/codex-sdk-research-pipeline-check.js +0 -15
- package/dist/scripts/codex-sdk-sandbox-policy-check.js +0 -21
- package/dist/scripts/codex-sdk-structured-output-check.js +0 -10
- package/dist/scripts/codex-sdk-team-naruto-agent-pipeline-check.js +0 -12
- package/dist/scripts/codex-sdk-thread-registry-check.js +0 -11
- package/dist/scripts/codex-sdk-ux-ppt-review-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +0 -13
- package/dist/scripts/codex-thread-runtime-choice-check.js +0 -10
- package/dist/scripts/codex-web-adapter-check.js +0 -12
- package/dist/scripts/computer-use-live-evidence-check.js +0 -55
- package/dist/scripts/computer-use-live-optional-check.js +0 -32
- package/dist/scripts/computer-use-policy-check.js +0 -69
- package/dist/scripts/computer-use-visual-route-fixture-check.js +0 -37
- package/dist/scripts/core-skill-card-schema-check.js +0 -61
- package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -54
- package/dist/scripts/core-skill-heldout-validation-check.js +0 -49
- package/dist/scripts/core-skill-no-inference-optimizer-check.js +0 -75
- package/dist/scripts/core-skill-patch-check.js +0 -79
- package/dist/scripts/core-skill-promotion-side-effect-ledger-check.js +0 -64
- package/dist/scripts/core-skill-rollout-scoring-check.js +0 -72
- package/dist/scripts/core-skill-route-runtime-integration-check.js +0 -49
- package/dist/scripts/dfix-fast-blackbox-check.js +0 -37
- package/dist/scripts/dfix-fast-kernel-check.js +0 -26
- package/dist/scripts/dfix-fixture-check.js +0 -6
- package/dist/scripts/dfix-parallel-write-blackbox.js +0 -48
- package/dist/scripts/dfix-patch-handoff-check.js +0 -13
- package/dist/scripts/dfix-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/dfix-performance-check.js +0 -15
- package/dist/scripts/dfix-verification-check.js +0 -9
- package/dist/scripts/dfix-verification-recommendation-check.js +0 -15
- package/dist/scripts/docs-truthfulness-check.js +0 -61
- package/dist/scripts/doctor-codex-doctor-parity-check.js +0 -17
- package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -64
- package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +0 -122
- package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -39
- package/dist/scripts/evidence-fixture-check.js +0 -26
- package/dist/scripts/evidence-flagship-coverage-check.js +0 -55
- package/dist/scripts/fake-real-proof-policy-v2-check.js +0 -27
- package/dist/scripts/fake-vs-real-proof-policy-check.js +0 -14
- package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -42
- package/dist/scripts/flagship-proof-graph-v2-check.js +0 -48
- package/dist/scripts/flagship-proof-graph-v3-check.js +0 -67
- package/dist/scripts/flagship-proof-graph-v4-check.js +0 -61
- package/dist/scripts/git-precommit-fixture-check.js +0 -41
- package/dist/scripts/git-worktree-cache-performance-check.js +0 -25
- package/dist/scripts/git-worktree-capability-check.js +0 -27
- package/dist/scripts/git-worktree-checkpoint-check.js +0 -20
- package/dist/scripts/git-worktree-cleanup-check.js +0 -27
- package/dist/scripts/git-worktree-cross-rebase-check.js +0 -39
- package/dist/scripts/git-worktree-diff-envelope-check.js +0 -17
- package/dist/scripts/git-worktree-diff-export-check.js +0 -43
- package/dist/scripts/git-worktree-dirty-lock-check.js +0 -17
- package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -14
- package/dist/scripts/git-worktree-integration-primary-check.js +0 -24
- package/dist/scripts/git-worktree-integration-primary-runtime-check.js +0 -20
- package/dist/scripts/git-worktree-manager-check.js +0 -37
- package/dist/scripts/git-worktree-manifest-append-check.js +0 -18
- package/dist/scripts/git-worktree-merge-queue-check.js +0 -31
- package/dist/scripts/git-worktree-pool-performance-check.js +0 -20
- package/dist/scripts/git-worktree-untracked-diff-check.js +0 -18
- package/dist/scripts/goal-mode-official-default-check.js +0 -12
- package/dist/scripts/gpt-final-arbiter-check.js +0 -63
- package/dist/scripts/gpt-final-arbiter-performance-check.js +0 -36
- package/dist/scripts/gpt-image-2-request-validator-check.js +0 -35
- package/dist/scripts/hooks-0.134-context-parity-check.js +0 -20
- package/dist/scripts/hooks-actual-parity-check.js +0 -17
- package/dist/scripts/hooks-actual-parity-v2-check.js +0 -21
- package/dist/scripts/hooks-latest-schema-check.js +0 -20
- package/dist/scripts/hooks-managed-install-fixture-check.js +0 -21
- package/dist/scripts/hooks-official-hash-oracle-check.js +0 -35
- package/dist/scripts/hooks-official-hash-parity-check.js +0 -17
- package/dist/scripts/hooks-subagent-events-check.js +0 -17
- package/dist/scripts/hooks-trust-state-check.js +0 -14
- package/dist/scripts/image-fidelity-fixture-check.js +0 -24
- package/dist/scripts/imagegen-capability-check.js +0 -30
- package/dist/scripts/imagegen-real-smoke-check.js +0 -155
- package/dist/scripts/install-update-preserves-config-check.js +0 -87
- package/dist/scripts/json-schema-recursive-check.js +0 -78
- package/dist/scripts/legacy-multiagent-removal-check.js +0 -85
- package/dist/scripts/legacy-upgrade-matrix-check.js +0 -300
- package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +0 -21
- package/dist/scripts/local-collab-gpt-final-availability-check.js +0 -58
- package/dist/scripts/local-collab-no-local-only-final-check.js +0 -27
- package/dist/scripts/local-collab-policy-check.js +0 -17
- package/dist/scripts/local-collab-worktree-gpt-final-apply-policy-check.js +0 -63
- package/dist/scripts/local-llm-all-pipelines-check.js +0 -11
- package/dist/scripts/local-llm-cache-performance-check.js +0 -10
- package/dist/scripts/local-llm-capability-check.js +0 -14
- package/dist/scripts/local-llm-smoke-check.js +0 -23
- package/dist/scripts/local-llm-structured-output-check.js +0 -11
- package/dist/scripts/local-llm-throughput-check.js +0 -10
- package/dist/scripts/local-llm-tool-call-repair-check.js +0 -10
- package/dist/scripts/local-llm-warmup-check.js +0 -11
- package/dist/scripts/loop-blocker-check.js +0 -15
- package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -35
- package/dist/scripts/mad-sks-actual-executor-blackbox.js +0 -5
- package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +0 -92
- package/dist/scripts/mad-sks-audit-proof-check.js +0 -34
- package/dist/scripts/mad-sks-db-executor-check.js +0 -5
- package/dist/scripts/mad-sks-executor-proof-graph-check.js +0 -5
- package/dist/scripts/mad-sks-fast-mode-propagation-check.js +0 -24
- package/dist/scripts/mad-sks-file-write-executor-check.js +0 -5
- package/dist/scripts/mad-sks-immutable-harness-check.js +0 -36
- package/dist/scripts/mad-sks-no-harness-modification-check.js +0 -25
- package/dist/scripts/mad-sks-package-executor-check.js +0 -5
- package/dist/scripts/mad-sks-permission-model-check.js +0 -22
- package/dist/scripts/mad-sks-rollback-apply-check.js +0 -5
- package/dist/scripts/mad-sks-service-executor-check.js +0 -5
- package/dist/scripts/mad-sks-shell-executor-check.js +0 -5
- package/dist/scripts/mad-sks-write-guard-check.js +0 -28
- package/dist/scripts/mad-sks-zellij-default-pane-worker-check.js +0 -37
- package/dist/scripts/mad-sks-zellij-launch-check.js +0 -102
- package/dist/scripts/mcp-0-134-modernization-check.js +0 -55
- package/dist/scripts/mcp-readonly-concurrency-check.js +0 -17
- package/dist/scripts/mcp-readonly-runtime-scheduler-check.js +0 -20
- package/dist/scripts/mcp-tool-naming-parity-check.js +0 -16
- package/dist/scripts/memory-summary-rebuild-check.js +0 -22
- package/dist/scripts/mutation-callsite-coverage-check.js +0 -180
- package/dist/scripts/naruto-active-pool-check.js +0 -39
- package/dist/scripts/naruto-actual-worker-control-plane-check.js +0 -56
- package/dist/scripts/naruto-allocation-policy-check.js +0 -33
- package/dist/scripts/naruto-allocation-runtime-wiring-check.js +0 -92
- package/dist/scripts/naruto-concurrency-governor-check.js +0 -53
- package/dist/scripts/naruto-extreme-parallelism-check.js +0 -22
- package/dist/scripts/naruto-extreme-parallelism-real-check.js +0 -43
- package/dist/scripts/naruto-gpt-final-pack-check.js +0 -34
- package/dist/scripts/naruto-orchestrator-runtime-source-check.js +0 -70
- package/dist/scripts/naruto-parallel-patch-apply-check.js +0 -41
- package/dist/scripts/naruto-readonly-routing-check.js +0 -116
- package/dist/scripts/naruto-real-active-pool-check.js +0 -39
- package/dist/scripts/naruto-real-active-pool-runtime-check.js +0 -55
- package/dist/scripts/naruto-rebalance-policy-check.js +0 -41
- package/dist/scripts/naruto-role-distribution-check.js +0 -23
- package/dist/scripts/naruto-shadow-clone-swarm-check.js +0 -153
- package/dist/scripts/naruto-verification-pool-check.js +0 -36
- package/dist/scripts/naruto-work-graph-check.js +0 -24
- package/dist/scripts/naruto-worktree-coding-blackbox.js +0 -29
- package/dist/scripts/naruto-worktree-coding-check.js +0 -44
- package/dist/scripts/naruto-worktree-gpt-final-check.js +0 -45
- package/dist/scripts/naruto-worktree-zellij-ui-check.js +0 -28
- package/dist/scripts/naruto-zellij-dynamic-right-column-check.js +0 -48
- package/dist/scripts/naruto-zellij-massive-ui-check.js +0 -23
- package/dist/scripts/non-recursive-pipeline-check.js +0 -68
- package/dist/scripts/npm-publish-performance-check.js +0 -65
- package/dist/scripts/official-docs-compat-report.js +0 -304
- package/dist/scripts/packlist-performance-check.js +0 -83
- package/dist/scripts/parallel-verification-engine-check.js +0 -85
- package/dist/scripts/postinstall-safe-side-effects-check.js +0 -65
- package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +0 -40
- package/dist/scripts/ppt-full-e2e-blackbox-check.js +0 -109
- package/dist/scripts/ppt-image-voxel-relations-check.js +0 -9
- package/dist/scripts/ppt-imagegen-blackbox-check.js +0 -46
- package/dist/scripts/ppt-imagegen-review-fixture-check.js +0 -6
- package/dist/scripts/ppt-issue-extraction-fixture-check.js +0 -7
- package/dist/scripts/ppt-no-mock-as-real-check.js +0 -8
- package/dist/scripts/ppt-no-text-fallback-check.js +0 -7
- package/dist/scripts/ppt-proof-trust-fixture-check.js +0 -10
- package/dist/scripts/ppt-real-export-adapter-check.js +0 -13
- package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -42
- package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -16
- package/dist/scripts/ppt-reexport-rereview-check.js +0 -19
- package/dist/scripts/ppt-slide-export-fixture-check.js +0 -7
- package/dist/scripts/prepublish-fast-check.js +0 -128
- package/dist/scripts/priority-full-closure-check.js +0 -12
- package/dist/scripts/product-design-auto-install-check.js +0 -119
- package/dist/scripts/product-design-plugin-routing-check.js +0 -101
- package/dist/scripts/prompt-placeholder-guard-check.js +0 -33
- package/dist/scripts/provider-badge-context-check.js +0 -26
- package/dist/scripts/provider-context-config-toml-check.js +0 -63
- package/dist/scripts/python-codex-sdk-all-pipelines-check.js +0 -47
- package/dist/scripts/python-codex-sdk-capability-check.js +0 -75
- package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +0 -10
- package/dist/scripts/python-codex-sdk-stream-bridge-check.js +0 -12
- package/dist/scripts/python-tools-smoke-check.js +0 -71
- package/dist/scripts/qa-actual-route-backfill-check.js +0 -5
- package/dist/scripts/qa-backfill-route-blackbox.js +0 -5
- package/dist/scripts/qa-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/readme-architecture-imagegen-official-check.js +0 -448
- package/dist/scripts/release-cache-glob-hashing-check.js +0 -42
- package/dist/scripts/release-dag-full-coverage-check.js +0 -53
- package/dist/scripts/release-dist-freshness-check.js +0 -8
- package/dist/scripts/release-dynamic-performance-check.js +0 -103
- package/dist/scripts/release-gate-budget-check.js +0 -36
- package/dist/scripts/release-gate-dag-runner-check.js +0 -17
- package/dist/scripts/release-metadata-1-11-check.js +0 -37
- package/dist/scripts/release-metadata-1-12-check.js +0 -48
- package/dist/scripts/release-metadata-1-13-check.js +0 -53
- package/dist/scripts/release-metadata-1-14-check.js +0 -63
- package/dist/scripts/release-metadata-1-16-check.js +0 -81
- package/dist/scripts/release-metadata-1-17-check.js +0 -51
- package/dist/scripts/release-metadata-1-19-check.js +0 -371
- package/dist/scripts/release-metadata-check.js +0 -7
- package/dist/scripts/release-native-agent-fixture-check.js +0 -41
- package/dist/scripts/release-parallel-check.js +0 -374
- package/dist/scripts/release-parallel-full-coverage-check.js +0 -13
- package/dist/scripts/release-parallel-speed-budget-check.js +0 -79
- package/dist/scripts/release-provenance-check.js +0 -150
- package/dist/scripts/release-readiness-report.js +0 -1146
- package/dist/scripts/release-real-check.js +0 -330
- package/dist/scripts/release-registry-check.js +0 -344
- package/dist/scripts/release-runtime-truth-matrix-check.js +0 -47
- package/dist/scripts/release-stability-report-check.js +0 -99
- package/dist/scripts/release-version-truth-check.js +0 -134
- package/dist/scripts/research-actual-route-backfill-check.js +0 -5
- package/dist/scripts/research-backfill-route-blackbox.js +0 -5
- package/dist/scripts/research-quality-gate-check.js +0 -86
- package/dist/scripts/responses-retry-policy-centralized-check.js +0 -19
- package/dist/scripts/retention-cleanup-safety-check.js +0 -155
- package/dist/scripts/route-blackbox-realism-check.js +0 -21
- package/dist/scripts/route-proof-artifact-structure-check.js +0 -145
- package/dist/scripts/runtime-dist-parity-check.js +0 -78
- package/dist/scripts/runtime-no-mjs-scripts-check.js +0 -45
- package/dist/scripts/runtime-no-src-mjs-check.js +0 -32
- package/dist/scripts/runtime-no-tmux-check.js +0 -113
- package/dist/scripts/runtime-ts-python-boundary-check.js +0 -59
- package/dist/scripts/runtime-ts-rust-boundary-check.js +0 -74
- package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -55
- package/dist/scripts/safety-check.js +0 -23
- package/dist/scripts/shared-memory-fixture-check.js +0 -27
- package/dist/scripts/side-effect-runtime-report-check.js +0 -19
- package/dist/scripts/side-effect-zero-gate-check.js +0 -226
- package/dist/scripts/sks-1-11-fixture-check.js +0 -130
- package/dist/scripts/source-intelligence-all-modes-check.js +0 -32
- package/dist/scripts/source-intelligence-policy-check.js +0 -13
- package/dist/scripts/strategy-adhd-orchestrating-gate-check.js +0 -22
- package/dist/scripts/strategy-file-ownership-plan-check.js +0 -18
- package/dist/scripts/strategy-parallel-modification-plan-check.js +0 -19
- package/dist/scripts/strategy-verification-rollback-dag-check.js +0 -19
- package/dist/scripts/team-actual-route-backfill-check.js +0 -5
- package/dist/scripts/team-backfill-route-blackbox.js +0 -5
- package/dist/scripts/team-parallel-write-blackbox.js +0 -55
- package/dist/scripts/team-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/terminal-keyboard-enhancement-safety-check.js +0 -12
- package/dist/scripts/terminal-tui-output-stability-check.js +0 -35
- package/dist/scripts/test-no-orphan-dist-imports-check.js +0 -73
- package/dist/scripts/trust-fixture-check.js +0 -33
- package/dist/scripts/typescript-migration-report.js +0 -78
- package/dist/scripts/ultra-router-auto-router-check.js +0 -33
- package/dist/scripts/ultra-router-classification-check.js +0 -28
- package/dist/scripts/ux-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/ux-ppt-structured-extraction-check.js +0 -21
- package/dist/scripts/ux-review-extract-real-callouts-fixture-check.js +0 -8
- package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -15
- package/dist/scripts/ux-review-generate-callouts-fixture-check.js +0 -9
- package/dist/scripts/ux-review-image-voxel-relations-check.js +0 -31
- package/dist/scripts/ux-review-imagegen-blackbox-check.js +0 -67
- package/dist/scripts/ux-review-no-fake-callouts-check.js +0 -8
- package/dist/scripts/ux-review-no-text-fallback-check.js +0 -25
- package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -20
- package/dist/scripts/ux-review-patch-handoff-fixture-check.js +0 -8
- package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -31
- package/dist/scripts/ux-review-real-loop-fixture-check.js +0 -24
- package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +0 -8
- package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -11
- package/dist/scripts/worker-pane-communication-contract-check.js +0 -54
- package/dist/scripts/wrongness-fixture-check.js +0 -65
- package/dist/scripts/xai-mcp-capability-check.js +0 -14
- package/dist/scripts/zellij-capability-check.js +0 -15
- package/dist/scripts/zellij-dashboard-pane-check.js +0 -70
- package/dist/scripts/zellij-developer-controls-check.js +0 -20
- package/dist/scripts/zellij-doctor-readiness-check.js +0 -63
- package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +0 -21
- package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -20
- package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -356
- package/dist/scripts/zellij-initial-main-only-blackbox.js +0 -28
- package/dist/scripts/zellij-lane-renderer-check.js +0 -65
- package/dist/scripts/zellij-launch-command-truth-check.js +0 -75
- package/dist/scripts/zellij-layout-valid-check.js +0 -90
- package/dist/scripts/zellij-pane-proof-check.js +0 -59
- package/dist/scripts/zellij-real-session-cleanup-check.js +0 -21
- package/dist/scripts/zellij-real-session-heartbeat-check.js +0 -49
- package/dist/scripts/zellij-real-session-launch-check.js +0 -57
- package/dist/scripts/zellij-right-column-headless-overflow-check.js +0 -22
- package/dist/scripts/zellij-right-column-manager-check.js +0 -27
- package/dist/scripts/zellij-screen-proof-check.js +0 -45
- package/dist/scripts/zellij-slot-column-anchor-check.js +0 -66
- package/dist/scripts/zellij-slot-only-ui-check.js +0 -26
- package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -106
- package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +0 -59
- package/dist/scripts/zellij-spawn-on-demand-layout-check.js +0 -40
- package/dist/scripts/zellij-ui-design-check.js +0 -105
- package/dist/scripts/zellij-worker-pane-manager-check.js +0 -109
- package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +0 -47
- package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +0 -202
- package/dist/scripts/zellij-worker-pane-spawn-order-check.js +0 -35
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/permission-request.command.input.schema.json +0 -61
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/permission-request.command.output.schema.json +0 -103
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-compact.command.input.schema.json +0 -52
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-compact.command.output.schema.json +0 -24
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-tool-use.command.input.schema.json +0 -67
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-tool-use.command.output.schema.json +0 -84
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-compact.command.input.schema.json +0 -52
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-compact.command.output.schema.json +0 -24
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-tool-use.command.input.schema.json +0 -65
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-tool-use.command.output.schema.json +0 -105
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/session-start.command.input.schema.json +0 -59
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/session-start.command.output.schema.json +0 -63
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/snapshot-metadata.json +0 -31
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/stop.command.input.schema.json +0 -63
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/stop.command.output.schema.json +0 -45
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/user-prompt-submit.command.input.schema.json +0 -59
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/user-prompt-submit.command.output.schema.json +0 -81
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
7
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
8
|
-
const issues = [];
|
|
9
|
-
for (const rel of [
|
|
10
|
-
'src/core/proof/route-proof-gate.ts',
|
|
11
|
-
'src/core/agents/agent-proof-evidence.ts',
|
|
12
|
-
'src/core/agents/agent-gate.ts',
|
|
13
|
-
'src/core/agents/agent-ledger-schemas.ts'
|
|
14
|
-
]) {
|
|
15
|
-
if (!fs.existsSync(path.join(root, rel)))
|
|
16
|
-
issues.push(`missing:${rel}`);
|
|
17
|
-
}
|
|
18
|
-
const gateText = read('src/core/proof/route-proof-gate.ts');
|
|
19
|
-
for (const token of [
|
|
20
|
-
"agents.status !== 'passed' || agents.ok !== true",
|
|
21
|
-
'agent_no_overlap_not_ok',
|
|
22
|
-
'agent_ledger_hash_chain_not_ok',
|
|
23
|
-
'agent_consensus_not_ok',
|
|
24
|
-
'agent_blockers_present',
|
|
25
|
-
'agent_proof_evidence_missing',
|
|
26
|
-
'agent_count_below_5',
|
|
27
|
-
'agent_count_above_20'
|
|
28
|
-
]) {
|
|
29
|
-
if (!gateText.includes(token))
|
|
30
|
-
issues.push(`route_gate_missing:${token}`);
|
|
31
|
-
}
|
|
32
|
-
const agentGateText = read('src/core/agents/agent-gate.ts');
|
|
33
|
-
for (const token of ['agent_proof_not_ok', 'agent_proof_status_not_passed', 'agent_count_below_5', 'agent_janitor_missing_or_not_ok']) {
|
|
34
|
-
if (!agentGateText.includes(token))
|
|
35
|
-
issues.push(`agent_gate_missing:${token}`);
|
|
36
|
-
}
|
|
37
|
-
await runNegativeFixture();
|
|
38
|
-
const result = {
|
|
39
|
-
schema: 'sks.route-proof-artifact-structure-check.v1',
|
|
40
|
-
ok: issues.length === 0,
|
|
41
|
-
issues
|
|
42
|
-
};
|
|
43
|
-
console.log(JSON.stringify(result, null, 2));
|
|
44
|
-
if (!result.ok)
|
|
45
|
-
process.exitCode = 1;
|
|
46
|
-
function read(rel) {
|
|
47
|
-
try {
|
|
48
|
-
return fs.readFileSync(path.join(root, rel), 'utf8');
|
|
49
|
-
}
|
|
50
|
-
catch {
|
|
51
|
-
return '';
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
async function runNegativeFixture() {
|
|
55
|
-
const built = path.join(root, 'dist', 'core', 'proof', 'route-proof-gate.js');
|
|
56
|
-
if (!fs.existsSync(built)) {
|
|
57
|
-
issues.push('runtime_gate_import_missing');
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-route-proof-'));
|
|
61
|
-
const mission = 'M-fixture';
|
|
62
|
-
const missionDir = path.join(tmp, '.sneakoscope', 'missions', mission);
|
|
63
|
-
fs.mkdirSync(missionDir, { recursive: true });
|
|
64
|
-
const proofPath = path.join(missionDir, 'completion-proof.json');
|
|
65
|
-
const baseProof = {
|
|
66
|
-
schema: 'sks.completion-proof.v1',
|
|
67
|
-
version: 'fixture',
|
|
68
|
-
generated_at: '2026-05-25T00:00:00.000Z',
|
|
69
|
-
mission_id: mission,
|
|
70
|
-
status: 'verified',
|
|
71
|
-
route: '$Team',
|
|
72
|
-
summary: { files_changed: 0, commands_run: 0, tests_passed: 0, tests_failed: 0, manual_review_required: false },
|
|
73
|
-
evidence: {
|
|
74
|
-
agents: {
|
|
75
|
-
schema: 'sks.agent-proof-evidence.v1',
|
|
76
|
-
ok: true,
|
|
77
|
-
status: 'blocked',
|
|
78
|
-
agent_count: 5,
|
|
79
|
-
all_sessions_closed: true,
|
|
80
|
-
no_overlap_ok: true,
|
|
81
|
-
ledger_hash_chain_ok: true,
|
|
82
|
-
consensus_ok: true,
|
|
83
|
-
janitor_ok: true,
|
|
84
|
-
blockers: []
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
claims: [],
|
|
88
|
-
unverified: [],
|
|
89
|
-
blockers: [],
|
|
90
|
-
next_human_actions: []
|
|
91
|
-
};
|
|
92
|
-
fs.writeFileSync(proofPath, JSON.stringify(baseProof, null, 2));
|
|
93
|
-
const { validateRouteCompletionProof } = await import(pathToFileURL(built).href);
|
|
94
|
-
const result = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team', state: { agents_required: true } });
|
|
95
|
-
if (result.ok || !result.issues.includes('agent_gate_not_passed'))
|
|
96
|
-
issues.push('negative_fixture_false_passed_agent_status');
|
|
97
|
-
fs.writeFileSync(proofPath, JSON.stringify({ ...baseProof, evidence: {} }, null, 2));
|
|
98
|
-
const missingAgents = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team' });
|
|
99
|
-
if (missingAgents.ok || !missingAgents.issues.includes('agent_proof_evidence_missing'))
|
|
100
|
-
issues.push('negative_fixture_false_passed_missing_agents');
|
|
101
|
-
fs.writeFileSync(proofPath, JSON.stringify({
|
|
102
|
-
...baseProof,
|
|
103
|
-
evidence: {
|
|
104
|
-
agents: {
|
|
105
|
-
schema: 'sks.agent-proof-evidence.v1',
|
|
106
|
-
ok: true,
|
|
107
|
-
status: 'passed',
|
|
108
|
-
agent_count: 8,
|
|
109
|
-
all_sessions_closed: true,
|
|
110
|
-
no_overlap_ok: true,
|
|
111
|
-
ledger_hash_chain_ok: true,
|
|
112
|
-
consensus_ok: true,
|
|
113
|
-
janitor_ok: true,
|
|
114
|
-
blockers: []
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, null, 2));
|
|
118
|
-
const scaledAgents = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team' });
|
|
119
|
-
if (!scaledAgents.ok || scaledAgents.issues.includes('agent_count_not_5'))
|
|
120
|
-
issues.push('positive_fixture_scaled_agents_failed');
|
|
121
|
-
fs.writeFileSync(proofPath, JSON.stringify({
|
|
122
|
-
...baseProof,
|
|
123
|
-
evidence: {
|
|
124
|
-
agents: {
|
|
125
|
-
schema: 'sks.agent-proof-evidence.v1',
|
|
126
|
-
ok: true,
|
|
127
|
-
status: 'passed',
|
|
128
|
-
agent_count: 5,
|
|
129
|
-
all_sessions_closed: true,
|
|
130
|
-
no_overlap_ok: true,
|
|
131
|
-
ledger_hash_chain_ok: true,
|
|
132
|
-
consensus_ok: true,
|
|
133
|
-
blockers: []
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}, null, 2));
|
|
137
|
-
const missingJanitor = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team' });
|
|
138
|
-
if (missingJanitor.ok || !missingJanitor.issues.includes('agent_janitor_missing_or_not_ok'))
|
|
139
|
-
issues.push('negative_fixture_missing_janitor_false_passed');
|
|
140
|
-
fs.writeFileSync(proofPath, JSON.stringify({ ...baseProof, route: '$Release-Review', evidence: {} }, null, 2));
|
|
141
|
-
const releaseReview = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Release-Review' });
|
|
142
|
-
if (releaseReview.ok || !releaseReview.issues.includes('agent_proof_evidence_missing'))
|
|
143
|
-
issues.push('negative_fixture_release_review_missing_agents_false_passed');
|
|
144
|
-
}
|
|
145
|
-
//# sourceMappingURL=route-proof-artifact-structure-check.js.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import crypto from 'node:crypto';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
|
-
import { currentDistFreshness, sourceSnapshot } from './lib/ensure-dist-fresh.js';
|
|
8
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
9
|
-
const manifestPath = path.join(root, 'dist', 'build-manifest.json');
|
|
10
|
-
const issues = [];
|
|
11
|
-
const freshness = currentDistFreshness();
|
|
12
|
-
const source = sourceSnapshot();
|
|
13
|
-
const manifest = readJson(manifestPath);
|
|
14
|
-
const pkg = readJson(path.join(root, 'package.json'));
|
|
15
|
-
if (!manifest)
|
|
16
|
-
issues.push('build_manifest_missing');
|
|
17
|
-
if (!freshness.ok)
|
|
18
|
-
issues.push(...freshness.issues);
|
|
19
|
-
if (manifest) {
|
|
20
|
-
if (manifest.package_version !== pkg.version || manifest.version !== pkg.version)
|
|
21
|
-
issues.push('manifest_version_mismatch');
|
|
22
|
-
if (manifest.source_digest !== source.digest)
|
|
23
|
-
issues.push('manifest_source_digest_stale');
|
|
24
|
-
if (manifest.source_file_count !== source.file_count)
|
|
25
|
-
issues.push('manifest_source_file_count_stale');
|
|
26
|
-
if (manifest.source_list_hash !== sha256(source.files.join('\n')))
|
|
27
|
-
issues.push('manifest_source_list_hash_stale');
|
|
28
|
-
if (Number(manifest.src_mjs_runtime_files) !== 0)
|
|
29
|
-
issues.push(`manifest_src_mjs_runtime_files:${manifest.src_mjs_runtime_files}`);
|
|
30
|
-
if (Number(manifest.compiled_js_count) <= 0)
|
|
31
|
-
issues.push('manifest_compiled_js_count_missing');
|
|
32
|
-
if (!Number.isFinite(Number(manifest.compiled_dts_count)))
|
|
33
|
-
issues.push('manifest_compiled_dts_count_invalid');
|
|
34
|
-
}
|
|
35
|
-
const srcMjs = walk(path.join(root, 'src')).filter((file) => file.endsWith('.mjs'));
|
|
36
|
-
if (srcMjs.length)
|
|
37
|
-
issues.push(`src_mjs_runtime_files:${srcMjs.length}`);
|
|
38
|
-
const distMjs = walk(path.join(root, 'dist')).filter((file) => file.endsWith('.mjs'));
|
|
39
|
-
if (distMjs.length)
|
|
40
|
-
issues.push(`dist_mjs_runtime_files:${distMjs.length}`);
|
|
41
|
-
const result = {
|
|
42
|
-
schema: 'sks.runtime-dist-parity.v1',
|
|
43
|
-
ok: issues.length === 0,
|
|
44
|
-
package_version: pkg.version,
|
|
45
|
-
source_digest: source.digest,
|
|
46
|
-
source_file_count: source.file_count,
|
|
47
|
-
src_mjs_runtime_files: srcMjs.length,
|
|
48
|
-
dist_mjs_runtime_files: distMjs.length,
|
|
49
|
-
manifest,
|
|
50
|
-
issues
|
|
51
|
-
};
|
|
52
|
-
console.log(JSON.stringify(result, null, 2));
|
|
53
|
-
if (!result.ok)
|
|
54
|
-
process.exitCode = 1;
|
|
55
|
-
function readJson(file) {
|
|
56
|
-
try {
|
|
57
|
-
return JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function walk(dir, out = []) {
|
|
64
|
-
if (!fs.existsSync(dir))
|
|
65
|
-
return out;
|
|
66
|
-
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
67
|
-
const file = path.join(dir, entry.name);
|
|
68
|
-
if (entry.isDirectory())
|
|
69
|
-
walk(file, out);
|
|
70
|
-
else if (entry.isFile())
|
|
71
|
-
out.push(file);
|
|
72
|
-
}
|
|
73
|
-
return out;
|
|
74
|
-
}
|
|
75
|
-
function sha256(text) {
|
|
76
|
-
return crypto.createHash('sha256').update(text).digest('hex');
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=runtime-dist-parity-check.js.map
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { packageRoot } from '../core/fsx.js';
|
|
5
|
-
const root = packageRoot();
|
|
6
|
-
const scriptsDir = path.join(root, 'scripts');
|
|
7
|
-
const binDir = path.join(root, 'bin');
|
|
8
|
-
const mjs = [...await collectMjs(scriptsDir), ...await collectMjs(binDir)].sort();
|
|
9
|
-
const packageJson = JSON.parse(await fs.readFile(path.join(root, 'package.json'), 'utf8'));
|
|
10
|
-
const scriptRefs = Object.entries(packageJson.scripts || {})
|
|
11
|
-
.filter(([, command]) => typeof command === 'string' && /(^|[\s;&|])\.\/(?:scripts|bin)\/[^ ]+\.mjs\b/.test(command))
|
|
12
|
-
.map(([name, command]) => ({ name, command }));
|
|
13
|
-
const ok = mjs.length === 0 && scriptRefs.length === 0;
|
|
14
|
-
emit({
|
|
15
|
-
schema: 'sks.runtime-no-mjs-scripts-check.v1',
|
|
16
|
-
ok,
|
|
17
|
-
production_mjs_count: mjs.length,
|
|
18
|
-
production_mjs_sample: mjs.slice(0, 20).map((file) => path.relative(root, file)),
|
|
19
|
-
package_script_mjs_refs: scriptRefs.slice(0, 40),
|
|
20
|
-
blockers: ok ? [] : ['runtime_mjs_scripts_remaining']
|
|
21
|
-
});
|
|
22
|
-
async function collectMjs(dir) {
|
|
23
|
-
const out = [];
|
|
24
|
-
let entries;
|
|
25
|
-
try {
|
|
26
|
-
entries = await fs.readdir(dir, { withFileTypes: true });
|
|
27
|
-
}
|
|
28
|
-
catch {
|
|
29
|
-
return out;
|
|
30
|
-
}
|
|
31
|
-
for (const entry of entries) {
|
|
32
|
-
const full = path.join(dir, entry.name);
|
|
33
|
-
if (entry.isDirectory())
|
|
34
|
-
out.push(...await collectMjs(full));
|
|
35
|
-
else if (entry.name.endsWith('.mjs'))
|
|
36
|
-
out.push(full);
|
|
37
|
-
}
|
|
38
|
-
return out.sort();
|
|
39
|
-
}
|
|
40
|
-
function emit(report) {
|
|
41
|
-
console.log(JSON.stringify(report, null, 2));
|
|
42
|
-
if (!report.ok)
|
|
43
|
-
process.exitCode = 1;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=runtime-no-mjs-scripts-check.js.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
7
|
-
const files = walk(path.join(root, 'src'))
|
|
8
|
-
.filter((file) => file.endsWith('.mjs'))
|
|
9
|
-
.map((file) => path.relative(root, file).split(path.sep).join('/'))
|
|
10
|
-
.sort();
|
|
11
|
-
const result = {
|
|
12
|
-
schema: 'sks.runtime-no-src-mjs.v1',
|
|
13
|
-
ok: files.length === 0,
|
|
14
|
-
src_mjs_runtime_files: files.length,
|
|
15
|
-
files
|
|
16
|
-
};
|
|
17
|
-
console.log(JSON.stringify(result, null, 2));
|
|
18
|
-
if (!result.ok)
|
|
19
|
-
process.exitCode = 1;
|
|
20
|
-
function walk(dir, out = []) {
|
|
21
|
-
if (!fs.existsSync(dir))
|
|
22
|
-
return out;
|
|
23
|
-
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
24
|
-
const file = path.join(dir, entry.name);
|
|
25
|
-
if (entry.isDirectory())
|
|
26
|
-
walk(file, out);
|
|
27
|
-
else if (entry.isFile())
|
|
28
|
-
out.push(file);
|
|
29
|
-
}
|
|
30
|
-
return out;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=runtime-no-src-mjs-check.js.map
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const scanRoots = ['src', 'scripts', 'package.json', 'README.md', 'docs'];
|
|
7
|
-
const migrationOnlyFiles = new Set([
|
|
8
|
-
'docs/migration/tmux-to-zellij.md',
|
|
9
|
-
'dist/scripts/runtime-no-tmux-check.js',
|
|
10
|
-
'dist/scripts/tmux-removal-inventory.js',
|
|
11
|
-
'src/scripts/runtime-no-tmux-check.ts',
|
|
12
|
-
'src/cli/command-registry.ts',
|
|
13
|
-
'src/commands/tmux.ts',
|
|
14
|
-
'src/core/commands/basic-cli.ts',
|
|
15
|
-
'src/core/commands/team-command.ts'
|
|
16
|
-
]);
|
|
17
|
-
const legacyFixtureFileRe = /^(scripts|test)\/.*(?:tmux|real-tmux|warp-right-lane).*$/;
|
|
18
|
-
const runtimePatterns = [
|
|
19
|
-
['tmux_binary_spawn', /(?:runProcess|spawnSync|spawn|execFile)\(\s*['"]tmux['"]/],
|
|
20
|
-
['tmux_import', /(?:from\s+['"][^'"]*tmux[^'"]*['"]|import\s*\([^)]*['"][^'"]*tmux[^'"]*['"])/],
|
|
21
|
-
['launchMadTmuxUi', /\blaunchMadTmuxUi\b/],
|
|
22
|
-
['agent-runner-tmux', /\bagent-runner-tmux\b/],
|
|
23
|
-
['tmux-physical-proof', /\btmux-physical-proof\b/],
|
|
24
|
-
['tmux-lane', /\btmux-lane\b/],
|
|
25
|
-
['real-tmux', /\breal-tmux\b/],
|
|
26
|
-
['warp-right-lane', /\bwarp-right-lane\b/]
|
|
27
|
-
];
|
|
28
|
-
const docRecommendationRe = /\b(?:sks\s+tmux|sks\s+deps\s+install\s+tmux|brew\s+install\s+tmux|install\s+tmux|requires?\s+tmux|tmux\s+for\s+the\s+CLI|opens?.{0,60}tmux|npm\s+run\s+(?:tmux:|agent:tmux)|cleanup-tmux|open-tmux|attach-tmux)\b/i;
|
|
29
|
-
const issues = [];
|
|
30
|
-
const legacy_fixture_allowlist = [];
|
|
31
|
-
const checked_files = [];
|
|
32
|
-
for (const base of scanRoots) {
|
|
33
|
-
for (const file of await listFiles(path.join(root, base))) {
|
|
34
|
-
const rel = path.relative(root, file);
|
|
35
|
-
checked_files.push(rel);
|
|
36
|
-
const text = await fs.readFile(file, 'utf8');
|
|
37
|
-
if (rel === 'package.json') {
|
|
38
|
-
inspectPackageJson(text);
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (migrationOnlyFiles.has(rel))
|
|
42
|
-
continue;
|
|
43
|
-
if (legacyFixtureFileRe.test(rel)) {
|
|
44
|
-
legacy_fixture_allowlist.push(rel);
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
if (rel.startsWith('docs/') || rel === 'README.md') {
|
|
48
|
-
inspectDocs(rel, text);
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
for (const [name, re] of runtimePatterns) {
|
|
52
|
-
if (re.test(text))
|
|
53
|
-
issues.push({ file: rel, pattern: name });
|
|
54
|
-
}
|
|
55
|
-
inspectRuntimeRecommendations(rel, text);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const ok = issues.length === 0;
|
|
59
|
-
emit({
|
|
60
|
-
schema: 'sks.runtime-no-tmux-check.v1',
|
|
61
|
-
ok,
|
|
62
|
-
scan_roots: scanRoots,
|
|
63
|
-
issues,
|
|
64
|
-
checked_file_count: checked_files.length,
|
|
65
|
-
migration_only_files: [...migrationOnlyFiles],
|
|
66
|
-
legacy_fixture_allowlist
|
|
67
|
-
});
|
|
68
|
-
async function listFiles(target) {
|
|
69
|
-
const out = [];
|
|
70
|
-
const stat = await fs.stat(target).catch(() => null);
|
|
71
|
-
if (!stat)
|
|
72
|
-
return out;
|
|
73
|
-
if (stat.isFile())
|
|
74
|
-
return [target];
|
|
75
|
-
for (const entry of await fs.readdir(target, { withFileTypes: true })) {
|
|
76
|
-
if (entry.name === 'node_modules' || entry.name === 'dist' || entry.name === '.git')
|
|
77
|
-
continue;
|
|
78
|
-
const file = path.join(target, entry.name);
|
|
79
|
-
if (entry.isDirectory())
|
|
80
|
-
out.push(...await listFiles(file));
|
|
81
|
-
else if (entry.isFile() && /\.(ts|tsx|js|mjs|json|md)$/.test(entry.name))
|
|
82
|
-
out.push(file);
|
|
83
|
-
}
|
|
84
|
-
return out;
|
|
85
|
-
}
|
|
86
|
-
function inspectPackageJson(text) {
|
|
87
|
-
const pkg = JSON.parse(text);
|
|
88
|
-
for (const [name, command] of Object.entries(pkg.scripts || {})) {
|
|
89
|
-
if (name === 'runtime:no-tmux')
|
|
90
|
-
continue;
|
|
91
|
-
if (/^(tmux:|agent:tmux-)|warp-right-lane|real-tmux/i.test(name)) {
|
|
92
|
-
issues.push({ file: 'package.json', script: name, pattern: 'tmux_script_name' });
|
|
93
|
-
}
|
|
94
|
-
if (/(?:npm\s+run\s+tmux:|agent-tmux|real-tmux|tmux-physical-proof|tmux-lane|warp-right-lane|mad-sks:warp-right-lane-attach)/i.test(String(command))) {
|
|
95
|
-
issues.push({ file: 'package.json', script: name, pattern: 'tmux_script_command' });
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function inspectDocs(rel, text) {
|
|
100
|
-
inspectRuntimeRecommendations(rel, text);
|
|
101
|
-
}
|
|
102
|
-
function inspectRuntimeRecommendations(rel, text) {
|
|
103
|
-
const lines = String(text).split(/\r?\n/);
|
|
104
|
-
lines.forEach((line, index) => {
|
|
105
|
-
if (/\bremoved[-_ ]runtime\b|migration notice|Use Zellij instead|replacement:\s*['"]zellij['"]/i.test(line))
|
|
106
|
-
return;
|
|
107
|
-
if (docRecommendationRe.test(line))
|
|
108
|
-
issues.push({ file: rel, line: index + 1, pattern: 'tmux_runtime_recommendation' });
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
112
|
-
process.exitCode = 1; }
|
|
113
|
-
//# sourceMappingURL=runtime-no-tmux-check.js.map
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { packageRoot } from '../core/fsx.js';
|
|
5
|
-
import { probePythonTools } from '../core/python-tools/python-tool-runner.js';
|
|
6
|
-
const root = packageRoot();
|
|
7
|
-
const probe = await probePythonTools(root);
|
|
8
|
-
const packageJson = JSON.parse(await fs.readFile(path.join(root, 'package.json'), 'utf8'));
|
|
9
|
-
const scriptCommands = Object.values(packageJson.scripts || {}).map(String);
|
|
10
|
-
const pythonRuntimeRefs = scriptCommands.filter((command) => /(^|[\s;&|])python(?:3)?(?:\s|$)/.test(command) && /\b(?:postinstall|publish|prepack|prepublishOnly)\b/.test(command));
|
|
11
|
-
const pytoolsFiles = await collectPython(path.join(root, 'pytools'));
|
|
12
|
-
const forbiddenWrites = await findForbiddenPythonWrites(pytoolsFiles);
|
|
13
|
-
const ok = probe.ok
|
|
14
|
-
&& probe.core_runtime_requires_python === false
|
|
15
|
-
&& pythonRuntimeRefs.length === 0
|
|
16
|
-
&& forbiddenWrites.length === 0;
|
|
17
|
-
emit({
|
|
18
|
-
schema: 'sks.runtime-ts-python-boundary-check.v1',
|
|
19
|
-
ok,
|
|
20
|
-
probe,
|
|
21
|
-
pytools_files: pytoolsFiles.map((file) => path.relative(root, file)),
|
|
22
|
-
python_runtime_refs: pythonRuntimeRefs,
|
|
23
|
-
forbidden_python_writes: forbiddenWrites,
|
|
24
|
-
blockers: ok ? [] : ['runtime_ts_python_boundary_check_failed']
|
|
25
|
-
});
|
|
26
|
-
async function collectPython(dir) {
|
|
27
|
-
const out = [];
|
|
28
|
-
let entries;
|
|
29
|
-
try {
|
|
30
|
-
entries = await fs.readdir(dir, { withFileTypes: true });
|
|
31
|
-
}
|
|
32
|
-
catch {
|
|
33
|
-
return out;
|
|
34
|
-
}
|
|
35
|
-
for (const entry of entries) {
|
|
36
|
-
const full = path.join(dir, entry.name);
|
|
37
|
-
if (entry.isDirectory())
|
|
38
|
-
out.push(...await collectPython(full));
|
|
39
|
-
else if (entry.name.endsWith('.py'))
|
|
40
|
-
out.push(full);
|
|
41
|
-
}
|
|
42
|
-
return out.sort();
|
|
43
|
-
}
|
|
44
|
-
async function findForbiddenPythonWrites(files) {
|
|
45
|
-
const out = [];
|
|
46
|
-
for (const file of files) {
|
|
47
|
-
const text = await fs.readFile(file, 'utf8');
|
|
48
|
-
if (/(\.codex|config\.toml|auth\.json|os\.environ|subprocess\.(?:run|Popen))/.test(text) && /\b(open|write_text|write_bytes|remove|unlink|rename)\b/.test(text)) {
|
|
49
|
-
out.push(path.relative(packageRoot(), file));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return out;
|
|
53
|
-
}
|
|
54
|
-
function emit(report) {
|
|
55
|
-
console.log(JSON.stringify(report, null, 2));
|
|
56
|
-
if (!report.ok)
|
|
57
|
-
process.exitCode = 1;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=runtime-ts-python-boundary-check.js.map
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import crypto from 'node:crypto';
|
|
4
|
-
import fs from 'node:fs';
|
|
5
|
-
import os from 'node:os';
|
|
6
|
-
import path from 'node:path';
|
|
7
|
-
import { root, assertGate, emitGate, importDist, readText, readJson } from './sks-1-18-gate-lib.js';
|
|
8
|
-
// Proves TypeScript is the runtime source-of-truth and Rust is an OPTIONAL accelerator:
|
|
9
|
-
// - publish/build never compiles Rust,
|
|
10
|
-
// - the JS fallback is always available and produces identical results,
|
|
11
|
-
// - the native binary is never required to ship or run SKS.
|
|
12
|
-
// 1) No cargo/rustc anywhere in build or publish.
|
|
13
|
-
assertGate(!/cargo|rustc/.test(readText('src/scripts/build-dist.ts')), 'build-dist must not invoke cargo/rustc');
|
|
14
|
-
assertGate(!/cargo|rustc/.test(readText('src/scripts/clean-dist.ts')), 'clean-dist must not invoke cargo/rustc');
|
|
15
|
-
const pkg = readJson('package.json');
|
|
16
|
-
for (const s of ['prepack', 'prepublishOnly', 'publish:dry', 'publish:npm']) {
|
|
17
|
-
assertGate(!String(pkg.scripts?.[s] || '').includes('cargo'), `publish_script_compiles_rust:${s}`);
|
|
18
|
-
}
|
|
19
|
-
// 2) The published binary is JS; no prebuilt native artifact is shipped or required.
|
|
20
|
-
assertGate(pkg.bin?.sks === 'dist/bin/sks.js', 'package bin.sks must point at the JS entrypoint dist/bin/sks.js');
|
|
21
|
-
assertGate(!(pkg.files || []).some((f) => f === 'native' || f.includes('target') || f.endsWith('.node')), 'package files must not ship a prebuilt native binary (native/target/*.node)');
|
|
22
|
-
// 3) Doctor readiness has no Rust dependency (audit confirmed zero rust references).
|
|
23
|
-
const matrix = readText('src/core/doctor/doctor-readiness-matrix.ts');
|
|
24
|
-
assertGate(!/rust/i.test(matrix), 'doctor readiness matrix must not depend on Rust');
|
|
25
|
-
// 4) Behavioral: JS fallback parity. The normalized result hash must equal the TS sha256.
|
|
26
|
-
const acc = await importDist('core/rust-accelerator.js');
|
|
27
|
-
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-rust-boundary-'));
|
|
28
|
-
const tempFile = path.join(tmpDir, 'sneakoscope-rust-boundary.bin');
|
|
29
|
-
const fileBytes = Buffer.from('sneakoscope-rust-boundary');
|
|
30
|
-
fs.writeFileSync(tempFile, fileBytes);
|
|
31
|
-
const tsHash = crypto.createHash('sha256').update(fileBytes).digest('hex');
|
|
32
|
-
const r = await acc.rustImageHash(tempFile);
|
|
33
|
-
// The result shape: { command, engine, available, rust_error, stdout, result }.
|
|
34
|
-
// The 64-hex sha256 lives inside `result` (result.sha256 for the JS fallback, or the
|
|
35
|
-
// rust JSON payload's hash field). Extract robustly: prefer known fields, fall back to a
|
|
36
|
-
// regex scan over the whole normalized object.
|
|
37
|
-
const directHash = (r.result && (r.result.sha256 || r.result.hash || r.result.image_hash)) || null;
|
|
38
|
-
const scannedHash = (JSON.stringify(r).match(/\b[0-9a-f]{64}\b/) || [])[0] || null;
|
|
39
|
-
const acceleratorHash = (typeof directHash === 'string' && /^[0-9a-f]{64}$/.test(directHash))
|
|
40
|
-
? directHash
|
|
41
|
-
: scannedHash;
|
|
42
|
-
assertGate(acceleratorHash === tsHash, 'rust_ts_hash_mismatch', {
|
|
43
|
-
engine: r.engine,
|
|
44
|
-
accelerator_hash: acceleratorHash,
|
|
45
|
-
ts_hash: tsHash
|
|
46
|
-
});
|
|
47
|
-
// 5) Accelerator status must report a known mode; JS fallback readiness must be true when present.
|
|
48
|
-
const info = await acc.rustInfo();
|
|
49
|
-
assertGate(['js_fallback', 'rust_accelerated'].includes(info.mode), 'rust accelerator mode must be js_fallback or rust_accelerated', {
|
|
50
|
-
mode: info.mode
|
|
51
|
-
});
|
|
52
|
-
if (typeof info.js_fallback_ready !== 'undefined') {
|
|
53
|
-
assertGate(info.js_fallback_ready === true, 'js fallback must be ready when reported');
|
|
54
|
-
}
|
|
55
|
-
try {
|
|
56
|
-
fs.rmSync(tmpDir, { recursive: true, force: true });
|
|
57
|
-
}
|
|
58
|
-
catch {
|
|
59
|
-
// temp cleanup is best-effort
|
|
60
|
-
}
|
|
61
|
-
const report = {
|
|
62
|
-
schema: 'sks.runtime-ts-rust-boundary.v1',
|
|
63
|
-
ok: true,
|
|
64
|
-
engine: r.engine,
|
|
65
|
-
mode: info.mode,
|
|
66
|
-
no_cargo_in_publish: true,
|
|
67
|
-
native_binary_required: false,
|
|
68
|
-
js_fallback_parity: true
|
|
69
|
-
};
|
|
70
|
-
const out = path.join(root, '.sneakoscope/reports/runtime-ts-rust-boundary.json');
|
|
71
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
72
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
73
|
-
emitGate('runtime:ts-rust-boundary', { engine: r.engine, no_cargo_in_publish: true });
|
|
74
|
-
//# sourceMappingURL=runtime-ts-rust-boundary-check.js.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
7
|
-
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|
|
8
|
-
const issues = [];
|
|
9
|
-
if (pkg.bin?.sks !== 'dist/bin/sks.js')
|
|
10
|
-
issues.push('package_bin_sks_not_dist');
|
|
11
|
-
if (pkg.bin?.sneakoscope !== 'dist/bin/sks.js')
|
|
12
|
-
issues.push('package_bin_sneakoscope_not_dist');
|
|
13
|
-
if ((pkg.files || []).includes('src'))
|
|
14
|
-
issues.push('package_files_include_src');
|
|
15
|
-
if (!pkg.scripts?.['dev:sks'])
|
|
16
|
-
issues.push('missing_dev_sks');
|
|
17
|
-
for (const file of walk(path.join(root, 'src'))) {
|
|
18
|
-
const rel = path.relative(root, file).split(path.sep).join('/');
|
|
19
|
-
if (rel.endsWith('.mjs'))
|
|
20
|
-
issues.push(`src_mjs_runtime_shadow:${rel}`);
|
|
21
|
-
if (!rel.endsWith('.ts'))
|
|
22
|
-
continue;
|
|
23
|
-
const text = fs.readFileSync(file, 'utf8');
|
|
24
|
-
if (/from\s+['"][^'"]+\.mjs['"]|import\(\s*['"][^'"]+\.mjs['"]\s*\)/.test(text)) {
|
|
25
|
-
issues.push(`ts_imports_mjs:${rel}`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const binShim = path.join(root, 'bin', 'sks.mjs');
|
|
29
|
-
if (fs.existsSync(binShim)) {
|
|
30
|
-
const text = fs.readFileSync(binShim, 'utf8');
|
|
31
|
-
if (text.includes('/src/') || text.includes('../src/') || text.includes('FAST_PACKAGE_VERSION')) {
|
|
32
|
-
issues.push('bin_sks_mjs_not_dist_only');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
const result = {
|
|
36
|
-
schema: 'sks.runtime-ts-source-of-truth.v1',
|
|
37
|
-
ok: issues.length === 0,
|
|
38
|
-
issues
|
|
39
|
-
};
|
|
40
|
-
console.log(JSON.stringify(result, null, 2));
|
|
41
|
-
if (!result.ok)
|
|
42
|
-
process.exitCode = 1;
|
|
43
|
-
function walk(dir, out = []) {
|
|
44
|
-
if (!fs.existsSync(dir))
|
|
45
|
-
return out;
|
|
46
|
-
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
47
|
-
const file = path.join(dir, entry.name);
|
|
48
|
-
if (entry.isDirectory())
|
|
49
|
-
walk(file, out);
|
|
50
|
-
else if (entry.isFile())
|
|
51
|
-
out.push(file);
|
|
52
|
-
}
|
|
53
|
-
return out;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=runtime-ts-source-of-truth-check.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { runProcess } from '../core/fsx.js';
|
|
4
|
-
const shards = [
|
|
5
|
-
['node', ['--test', 'test/unit/db-safety.test.mjs', 'test/unit/db-safety-golden.test.mjs']],
|
|
6
|
-
['node', ['--test', 'test/integration/hooks-replay.test.mjs', 'test/unit/hooks-replay-policy.test.mjs', 'test/unit/hook-command-output.test.mjs']],
|
|
7
|
-
['node', ['--test', 'test/unit/proof-redaction.test.mjs', 'test/unit/codex-access-token-redaction.test.mjs']]
|
|
8
|
-
];
|
|
9
|
-
const results = [];
|
|
10
|
-
for (const [cmd, args] of shards) {
|
|
11
|
-
const result = await runProcess(cmd, args, {
|
|
12
|
-
cwd: process.cwd(),
|
|
13
|
-
timeoutMs: 60_000,
|
|
14
|
-
maxOutputBytes: 512 * 1024,
|
|
15
|
-
env: { SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' }
|
|
16
|
-
});
|
|
17
|
-
results.push({ command: [cmd, ...args].join(' '), ok: result.code === 0, code: result.code, stderr_tail: result.stderr.slice(-1000), stdout_tail: result.stdout.slice(-1000) });
|
|
18
|
-
}
|
|
19
|
-
const ok = results.every((row) => row.ok);
|
|
20
|
-
console.log(JSON.stringify({ schema: 'sks.safety-check.v1', ok, results }, null, 2));
|
|
21
|
-
if (!ok)
|
|
22
|
-
process.exitCode = 1;
|
|
23
|
-
//# sourceMappingURL=safety-check.js.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import os from 'node:os';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import assert from 'node:assert/strict';
|
|
6
|
-
import { runProcess } from '../core/fsx.js';
|
|
7
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-shared-memory-fixture-'));
|
|
8
|
-
const bin = path.join(process.cwd(), 'dist', 'bin', 'sks.js');
|
|
9
|
-
await fs.writeFile(path.join(root, 'package.json'), '{"name":"fixture","private":true}\n');
|
|
10
|
-
await runProcess('git', ['init'], { cwd: root });
|
|
11
|
-
await runSks(['git', 'install', '--json']);
|
|
12
|
-
await fs.mkdir(path.join(root, '.sneakoscope', 'wiki'), { recursive: true });
|
|
13
|
-
await fs.writeFile(path.join(root, '.sneakoscope', 'wiki', 'context-pack.json'), JSON.stringify({
|
|
14
|
-
schema: 'fixture',
|
|
15
|
-
claims: [{ id: 'shared-memory-check-claim', text: 'Shared memory check claim.', status: 'supported', source: 'docs/shared-triwiki.md' }]
|
|
16
|
-
}, null, 2));
|
|
17
|
-
const publish = await runSks(['wiki', 'publish', 'latest', '--shared', '--json']);
|
|
18
|
-
assert.equal(publish.ok, true);
|
|
19
|
-
const validation = await runSks(['wiki', 'validate-shared', '--json']);
|
|
20
|
-
assert.equal(validation.ok, true);
|
|
21
|
-
console.log(JSON.stringify({ ok: true, schema: 'sks.shared-memory-fixture.v1', files: validation.files.length }, null, 2));
|
|
22
|
-
async function runSks(args) {
|
|
23
|
-
const result = await runProcess(process.execPath, [bin, ...args], { cwd: root, env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' } });
|
|
24
|
-
assert.equal(result.code, 0, result.stdout || result.stderr);
|
|
25
|
-
return JSON.parse(result.stdout);
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=shared-memory-fixture-check.js.map
|