sneakoscope 2.0.14 → 2.0.16
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 +2 -1
- package/dist/commands/mad-db.js +5 -0
- package/dist/commands/zellij-slot-pane.js +3 -1
- package/dist/core/agents/agent-orchestrator.js +66 -3
- package/dist/core/agents/agent-plan.js +3 -2
- package/dist/core/agents/agent-scheduler.js +204 -86
- package/dist/core/agents/agent-schema.js +1 -1
- package/dist/core/agents/native-cli-session-swarm.js +199 -15
- package/dist/core/agents/native-cli-worker.js +85 -0
- package/dist/core/agents/parallel-runtime-proof.js +217 -0
- package/dist/core/codex-control/codex-task-runner.js +32 -4
- package/dist/core/codex-control/model-call-concurrency.js +106 -0
- 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 +128 -5
- package/dist/core/commands/research-command.js +13 -1
- package/dist/core/commands/team-command.js +23 -175
- package/dist/core/db-safety.js +55 -1
- package/dist/core/fsx.js +1 -1
- package/dist/core/git/git-worktree-capability.js +18 -0
- package/dist/core/git/git-worktree-manager.js +80 -0
- package/dist/core/git/git-worktree-pool.js +4 -0
- package/dist/core/mad-db/mad-db-capability.js +116 -0
- package/dist/core/mad-db/mad-db-ledger.js +31 -0
- package/dist/core/mad-db/mad-db-policy-resolver.js +48 -0
- package/dist/core/naruto/naruto-concurrency-governor.js +14 -1
- 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 +1 -1
- package/dist/core/research/implementation-blueprint-markdown.js +1 -1
- package/dist/core/research/implementation-blueprint.js +68 -7
- package/dist/core/research/research-final-reviewer.js +27 -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-stage-runner.js +40 -13
- package/dist/core/research/research-synthesis-prompt.js +52 -0
- package/dist/core/research/research-synthesis-writer.js +208 -0
- package/dist/core/research.js +60 -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 +237 -0
- package/dist/scripts/release-gate-dag-runner.js +5 -0
- package/dist/scripts/release-speed-summary.js +27 -0
- package/package.json +76 -5
- package/schemas/agents/parallel-runtime-proof.schema.json +48 -0
- 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-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/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 -47
- 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 -66
- 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 -84
- package/dist/scripts/release-provenance-check.js +0 -150
- 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-blueprint-densifier-check.js +0 -21
- package/dist/scripts/research-claim-builder-check.js +0 -19
- package/dist/scripts/research-complete-package-fixture-check.js +0 -23
- package/dist/scripts/research-final-reviewer-blackbox.js +0 -22
- package/dist/scripts/research-parallel-source-shards-check.js +0 -22
- package/dist/scripts/research-quality-gate-check.js +0 -111
- package/dist/scripts/research-real-cycle-no-legacy-final-md-check.js +0 -14
- package/dist/scripts/research-short-report-rejection-check.js +0 -46
- package/dist/scripts/research-source-ledger-merge-check.js +0 -26
- package/dist/scripts/research-stage-cycle-runtime-blackbox.js +0 -24
- 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
|
@@ -1,109 +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 { spawnSync } from 'node:child_process';
|
|
7
|
-
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-ppt-e2e-'));
|
|
8
|
-
const deck = path.join(tmp, 'synthetic-two-slide.pptx');
|
|
9
|
-
fs.writeFileSync(deck, [
|
|
10
|
-
'ppt/slides/slide1.xml',
|
|
11
|
-
'<p:sld><p:cSld><p:spTree><a:t>SKS 1.14.1 Synthetic Slide 1</a:t></p:spTree></p:cSld></p:sld>',
|
|
12
|
-
'ppt/slides/slide2.xml',
|
|
13
|
-
'<p:sld><p:cSld><p:spTree><a:t>SKS 1.14.1 Synthetic Slide 2</a:t></p:spTree></p:cSld></p:sld>'
|
|
14
|
-
].join('\n'));
|
|
15
|
-
const repoRoot = process.cwd();
|
|
16
|
-
const run = spawnSync(process.execPath, [path.join(repoRoot, 'dist/bin/sks.js'), 'ppt', 'review', '--deck', deck, '--mock', '--imagegen', '--json'], {
|
|
17
|
-
cwd: tmp,
|
|
18
|
-
env: { ...process.env, SKS_TEST_FAKE_IMAGEGEN: '1', SKS_TEST_FAKE_EXTRACTOR: '1' },
|
|
19
|
-
encoding: 'utf8',
|
|
20
|
-
maxBuffer: 8 * 1024 * 1024
|
|
21
|
-
});
|
|
22
|
-
const parsed = parseJson(run.stdout);
|
|
23
|
-
const missionDir = parsed?.mission_id ? path.join(tmp, '.sneakoscope', 'missions', parsed.mission_id) : null;
|
|
24
|
-
const inventory = (missionDir ? readJson(path.join(missionDir, 'ppt-deck-inventory.json')) : null)
|
|
25
|
-
|| parsed?.artifacts?.deck_inventory
|
|
26
|
-
|| parsed?.artifacts?.deckInventory
|
|
27
|
-
|| null;
|
|
28
|
-
const exportLedger = (missionDir ? readJson(path.join(missionDir, 'ppt-slide-export-ledger.json')) : null)
|
|
29
|
-
|| parsed?.artifacts?.slide_export_ledger
|
|
30
|
-
|| parsed?.artifacts?.slideExportLedger
|
|
31
|
-
|| null;
|
|
32
|
-
const callouts = missionDir ? readJson(path.join(missionDir, 'ppt-slide-callout-ledger.json')) : null;
|
|
33
|
-
const slideIssues = missionDir ? readJson(path.join(missionDir, 'ppt-slide-issue-ledger.json')) : null;
|
|
34
|
-
const deckIssues = missionDir ? readJson(path.join(missionDir, 'ppt-deck-issue-ledger.json')) : null;
|
|
35
|
-
const proof = missionDir ? readJson(path.join(missionDir, 'completion-proof.json')) : null;
|
|
36
|
-
const trust = missionDir ? readJson(path.join(missionDir, 'trust-report.json')) : null;
|
|
37
|
-
const fakeNotReal = !JSON.stringify(callouts || {}).includes('"real_generated":true');
|
|
38
|
-
const proofStatusOk = proof?.schema === 'sks.completion-proof.v1' && ['verified', 'verified_partial'].includes(String(proof?.status || ''));
|
|
39
|
-
const trustStatusOk = trust?.schema === 'sks.trust-report.v1' && trust?.ok === true && !['blocked', 'failed', 'not_verified'].includes(String(trust?.status || ''));
|
|
40
|
-
const ok = Boolean(parsed?.mission_id)
|
|
41
|
-
&& inventory?.deck_present === true
|
|
42
|
-
&& inventory?.slide_count >= 1
|
|
43
|
-
&& exportLedger?.exported_slide_images_count >= 1
|
|
44
|
-
&& callouts?.generated_slide_callout_images_count >= exportLedger.exported_slide_images_count
|
|
45
|
-
&& Array.isArray(slideIssues?.issues)
|
|
46
|
-
&& slideIssues.issues.length > 0
|
|
47
|
-
&& deckIssues?.schema === 'sks.ppt-deck-issue-ledger.v1'
|
|
48
|
-
&& proofStatusOk
|
|
49
|
-
&& trustStatusOk
|
|
50
|
-
&& fakeNotReal;
|
|
51
|
-
const result = {
|
|
52
|
-
schema: 'sks.ppt-full-e2e-blackbox.v1',
|
|
53
|
-
ok,
|
|
54
|
-
process_status: run.status,
|
|
55
|
-
mission_id: parsed?.mission_id || null,
|
|
56
|
-
deck,
|
|
57
|
-
synthetic_deck: true,
|
|
58
|
-
manual_slide_images_used: false,
|
|
59
|
-
slide_count: inventory?.slide_count || 0,
|
|
60
|
-
exported_slide_images_count: exportLedger?.exported_slide_images_count || 0,
|
|
61
|
-
generated_slide_review_count: callouts?.generated_slide_callout_images_count || 0,
|
|
62
|
-
issue_extraction_count: slideIssues?.issues?.length || 0,
|
|
63
|
-
mock_fake_not_verified_real: fakeNotReal,
|
|
64
|
-
completion_proof_linked: proofStatusOk,
|
|
65
|
-
trust_report_linked: trustStatusOk,
|
|
66
|
-
wrongness_linked: true,
|
|
67
|
-
proof_status: proof?.status || null,
|
|
68
|
-
trust_ok: trust?.ok ?? null,
|
|
69
|
-
trust_status: trust?.status || null,
|
|
70
|
-
trust_blockers: trust?.blockers || [],
|
|
71
|
-
blockers: [
|
|
72
|
-
...(!proofStatusOk ? [`completion_proof_status_${proof?.status || 'missing'}`] : []),
|
|
73
|
-
...(!trustStatusOk ? [`trust_report_status_${trust?.status || 'missing'}`] : []),
|
|
74
|
-
...(!fakeNotReal ? ['mock_or_fake_marked_real'] : [])
|
|
75
|
-
],
|
|
76
|
-
artifacts: {
|
|
77
|
-
inventory,
|
|
78
|
-
exportLedger,
|
|
79
|
-
callouts,
|
|
80
|
-
slideIssues,
|
|
81
|
-
deckIssues,
|
|
82
|
-
proof_schema: proof?.schema || null,
|
|
83
|
-
proof_status: proof?.status || null,
|
|
84
|
-
trust_schema: trust?.schema || null,
|
|
85
|
-
trust_ok: trust?.ok ?? null,
|
|
86
|
-
trust_status: trust?.status || null
|
|
87
|
-
},
|
|
88
|
-
stdout_tail: run.stdout.slice(-2000),
|
|
89
|
-
stderr_tail: run.stderr.slice(-2000)
|
|
90
|
-
};
|
|
91
|
-
const out = path.join(repoRoot, '.sneakoscope', 'reports', 'ppt-full-e2e-blackbox.json');
|
|
92
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
93
|
-
fs.writeFileSync(out, `${JSON.stringify(result, null, 2)}\n`);
|
|
94
|
-
console.log(JSON.stringify(result, null, 2));
|
|
95
|
-
if (!ok)
|
|
96
|
-
process.exitCode = 1;
|
|
97
|
-
function parseJson(text) { try {
|
|
98
|
-
return JSON.parse(text);
|
|
99
|
-
}
|
|
100
|
-
catch {
|
|
101
|
-
return null;
|
|
102
|
-
} }
|
|
103
|
-
function readJson(file) { try {
|
|
104
|
-
return JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
105
|
-
}
|
|
106
|
-
catch {
|
|
107
|
-
return null;
|
|
108
|
-
} }
|
|
109
|
-
//# sourceMappingURL=ppt-full-e2e-blackbox-check.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, hasRelationType, runPptReview } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('review');
|
|
5
|
-
for (const type of ['slide_callout_review_of', 'slide_issue_detected_in', 'deck_patch_attempt_for_issue', 'fixed_slide_after', 'slide_re_review_of_after', 'slide_issue_resolved_by_recheck']) {
|
|
6
|
-
assertGate(hasRelationType(result.mission_id, type), `ppt image voxel relation missing: ${type}`, { mission_id: result.mission_id });
|
|
7
|
-
}
|
|
8
|
-
emitGate('ppt:image-voxel-relations', { mission_id: result.mission_id });
|
|
9
|
-
//# sourceMappingURL=ppt-image-voxel-relations-check.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { spawnSync } from 'node:child_process';
|
|
6
|
-
import { osTempPngFixtureArg } from './lib/valid-png-fixture.js';
|
|
7
|
-
const sourceImage = osTempPngFixtureArg('ppt-imagegen-blackbox-source.png');
|
|
8
|
-
const run = spawnSync(process.execPath, ['./dist/bin/sks.js', 'ppt', 'review', '--manual-slide-images', sourceImage, '--json'], {
|
|
9
|
-
cwd: process.cwd(),
|
|
10
|
-
env: { ...process.env, SKS_TEST_FAKE_IMAGEGEN: '1', SKS_TEST_FAKE_EXTRACTOR: '1' },
|
|
11
|
-
encoding: 'utf8',
|
|
12
|
-
maxBuffer: 4 * 1024 * 1024
|
|
13
|
-
});
|
|
14
|
-
const parsed = parseJson(run.stdout);
|
|
15
|
-
const missionDir = parsed?.mission_id ? path.join(process.cwd(), '.sneakoscope', 'missions', parsed.mission_id) : null;
|
|
16
|
-
const callouts = missionDir ? readJson(path.join(missionDir, 'ppt-slide-callout-ledger.json')) : null;
|
|
17
|
-
const slideIssues = missionDir ? readJson(path.join(missionDir, 'ppt-slide-issue-ledger.json')) : null;
|
|
18
|
-
const deckIssues = missionDir ? readJson(path.join(missionDir, 'ppt-deck-issue-ledger.json')) : null;
|
|
19
|
-
const proofEvidence = parsed?.proof_evidence || null;
|
|
20
|
-
const ok = Boolean(parsed?.mission_id)
|
|
21
|
-
&& callouts?.generated_slide_callout_images_count === 1
|
|
22
|
-
&& callouts?.generated_review_images?.[0]?.mock === true
|
|
23
|
-
&& Array.isArray(slideIssues?.issues)
|
|
24
|
-
&& slideIssues.issues.length > 0
|
|
25
|
-
&& deckIssues?.schema === 'sks.ppt-deck-issue-ledger.v1'
|
|
26
|
-
&& proofEvidence?.schema === 'sks.ppt-review-proof-evidence.v1';
|
|
27
|
-
console.log(JSON.stringify({ schema: 'sks.ppt-imagegen-blackbox-check.v1', ok, process_status: run.status, mission_id: parsed?.mission_id || null, gate_status: parsed?.status || null, source_image: sourceImage, generated_count: callouts?.generated_slide_callout_images_count || 0, issue_count: slideIssues?.issues?.length || 0, proof_status: proofEvidence?.status || null }, null, 2));
|
|
28
|
-
if (!ok)
|
|
29
|
-
process.exitCode = 1;
|
|
30
|
-
function parseJson(text) {
|
|
31
|
-
try {
|
|
32
|
-
return JSON.parse(text);
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function readJson(file) {
|
|
39
|
-
try {
|
|
40
|
-
return JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
41
|
-
}
|
|
42
|
-
catch {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=ppt-imagegen-blackbox-check.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, runPptReview } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('review');
|
|
5
|
-
emitGate('ppt:imagegen-review-fixture', { mission_id: result.mission_id, relations: result.proof_evidence.image_voxel_relation_count });
|
|
6
|
-
//# sourceMappingURL=ppt-imagegen-review-fixture-check.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, runPptReview } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('extract-issues');
|
|
5
|
-
assertGate(result.artifacts.slideIssues?.issues?.length > 0 && result.proof_evidence.slide_issue_extraction_status === 'valid', 'ppt issue extraction fixture invalid', result.artifacts.slideIssues);
|
|
6
|
-
emitGate('ppt:issue-extraction-fixture', { mission_id: result.mission_id, issues: result.artifacts.slideIssues.issues.length });
|
|
7
|
-
//# sourceMappingURL=ppt-issue-extraction-fixture-check.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runPptReview } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('review');
|
|
5
|
-
const proof = readMissionJson(result.mission_id, 'completion-proof.json');
|
|
6
|
-
assertGate(proof.status !== 'verified' && result.proof_evidence.status === 'verified_partial', 'ppt mock fixture was allowed to claim fully real evidence', { proof_status: proof.status, evidence_status: result.proof_evidence.status });
|
|
7
|
-
emitGate('ppt:no-mock-as-real', { mission_id: result.mission_id, proof_status: proof.status });
|
|
8
|
-
//# sourceMappingURL=ppt-no-mock-as-real-check.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, runPptReview } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('callouts');
|
|
5
|
-
assertGate(result.artifacts.callouts?.no_text_fallback === true, 'ppt text-only fallback was not blocked by fixture policy', result.artifacts.callouts);
|
|
6
|
-
emitGate('ppt:no-text-fallback', { mission_id: result.mission_id });
|
|
7
|
-
//# sourceMappingURL=ppt-no-text-fallback-check.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runPptReview, runSksJson } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('proof');
|
|
5
|
-
const proof = readMissionJson(result.mission_id, 'completion-proof.json');
|
|
6
|
-
const trust = runSksJson(['trust', 'report', result.mission_id, '--json']);
|
|
7
|
-
assertGate(Boolean(proof.evidence?.ppt_review), 'ppt review evidence missing from completion proof', proof.evidence);
|
|
8
|
-
assertGate(JSON.stringify(trust).includes('ppt_review'), 'ppt review evidence missing from trust report', trust);
|
|
9
|
-
emitGate('ppt:proof-trust-fixture', { mission_id: result.mission_id, proof_status: proof.status });
|
|
10
|
-
//# sourceMappingURL=ppt-proof-trust-fixture-check.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
|
|
4
|
-
requireContains('ppt:real-export-adapter', 'src/core/ppt-review/slide-exporter.ts', [
|
|
5
|
-
'soffice',
|
|
6
|
-
'libreoffice',
|
|
7
|
-
'powerpoint_osascript',
|
|
8
|
-
'partial_export',
|
|
9
|
-
'slide_export_unavailable',
|
|
10
|
-
'manual_slide_image_attach'
|
|
11
|
-
]);
|
|
12
|
-
emitGate('ppt:real-export-adapter', { adapters: ['LibreOffice/soffice', 'PowerPoint/osascript', 'manual_attach'] });
|
|
13
|
-
//# sourceMappingURL=ppt-real-export-adapter-check.js.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { spawnSync } from 'node:child_process';
|
|
4
|
-
import { osTempPngFixtureArg } from './lib/valid-png-fixture.js';
|
|
5
|
-
const enabled = process.env.SKS_TEST_REAL_IMAGEGEN === '1' || process.env.SKS_REAL_IMAGEGEN === '1';
|
|
6
|
-
const hasKey = Boolean(process.env.OPENAI_API_KEY || process.env.SKS_CODEX_APP_IMAGEGEN === '1');
|
|
7
|
-
if (!enabled || !hasKey) {
|
|
8
|
-
const result = {
|
|
9
|
-
schema: 'sks.ppt-real-imagegen-smoke.v1',
|
|
10
|
-
ok: true,
|
|
11
|
-
status: 'integration_optional',
|
|
12
|
-
reason: !enabled ? 'SKS_TEST_REAL_IMAGEGEN=1 not set' : 'OPENAI_API_KEY or Codex App imagegen capability not configured',
|
|
13
|
-
fake_adapter: false,
|
|
14
|
-
real_generated: false
|
|
15
|
-
};
|
|
16
|
-
console.log(JSON.stringify(result, null, 2));
|
|
17
|
-
process.exit(0);
|
|
18
|
-
}
|
|
19
|
-
const sourceImage = osTempPngFixtureArg('ppt-real-imagegen-smoke-source.png');
|
|
20
|
-
const run = spawnSync(process.execPath, ['./dist/bin/sks.js', 'ppt', 'review', '--manual-slide-images', sourceImage, '--json'], {
|
|
21
|
-
cwd: process.cwd(),
|
|
22
|
-
env: process.env,
|
|
23
|
-
encoding: 'utf8',
|
|
24
|
-
timeout: Number(process.env.SKS_PPT_REAL_IMAGEGEN_SMOKE_TIMEOUT_MS || 180000),
|
|
25
|
-
maxBuffer: 8 * 1024 * 1024
|
|
26
|
-
});
|
|
27
|
-
const result = {
|
|
28
|
-
schema: 'sks.ppt-real-imagegen-smoke.v1',
|
|
29
|
-
ok: run.status === 0,
|
|
30
|
-
status: run.status === 0 ? 'passed' : 'blocked',
|
|
31
|
-
fake_adapter: false,
|
|
32
|
-
source_image: sourceImage,
|
|
33
|
-
real_generated: run.status === 0,
|
|
34
|
-
process_error: run.error?.message || null,
|
|
35
|
-
process_signal: run.signal || null,
|
|
36
|
-
stdout_tail: run.stdout.slice(-4000),
|
|
37
|
-
stderr_tail: run.stderr.slice(-4000)
|
|
38
|
-
};
|
|
39
|
-
console.log(JSON.stringify(result, null, 2));
|
|
40
|
-
if (!result.ok)
|
|
41
|
-
process.exitCode = 1;
|
|
42
|
-
//# sourceMappingURL=ppt-real-imagegen-smoke-check.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
|
|
4
|
-
requireContains('ppt:real-imagegen-wiring', 'src/core/ppt-review/slide-imagegen-review.ts', [
|
|
5
|
-
'generateGptImage2CalloutReview',
|
|
6
|
-
'PPT_SLIDE_IMAGEGEN_REQUEST_ARTIFACT',
|
|
7
|
-
'PPT_SLIDE_IMAGEGEN_RESPONSE_ARTIFACT',
|
|
8
|
-
'extraction_pending_count',
|
|
9
|
-
'callout_extraction_status'
|
|
10
|
-
]);
|
|
11
|
-
requireContains('ppt:real-imagegen-wiring', 'src/core/ppt-review/index.ts', [
|
|
12
|
-
'buildSlideImagegenRequestArtifact',
|
|
13
|
-
'buildSlideImagegenResponseArtifact'
|
|
14
|
-
]);
|
|
15
|
-
emitGate('ppt:real-imagegen-wiring', { adapter: 'shared UX generateGptImage2CalloutReview' });
|
|
16
|
-
//# sourceMappingURL=ppt-real-imagegen-wiring-check.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
|
|
4
|
-
requireContains('ppt:reexport-rereview', 'src/core/commands/ppt-command.ts', [
|
|
5
|
-
'attach-fixed-deck',
|
|
6
|
-
'fixedDeckPath',
|
|
7
|
-
'recheck'
|
|
8
|
-
]);
|
|
9
|
-
requireContains('ppt:reexport-rereview', 'src/core/ppt-review/index.ts', [
|
|
10
|
-
'changed_slides_rechecked',
|
|
11
|
-
'ppt_slide_recheck_missing',
|
|
12
|
-
'fixedDeckPath'
|
|
13
|
-
]);
|
|
14
|
-
requireContains('ppt:reexport-rereview', 'src/core/ppt-review/ppt-patch-handoff.ts', [
|
|
15
|
-
'deck_binary_edit_unavailable_manual_handoff_required',
|
|
16
|
-
're_export_required'
|
|
17
|
-
]);
|
|
18
|
-
emitGate('ppt:reexport-rereview', { recheck: 'fixed-deck-or-slide-evidence-required' });
|
|
19
|
-
//# sourceMappingURL=ppt-reexport-rereview-check.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, runPptReview } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runPptReview('slide-export');
|
|
5
|
-
assertGate(result.proof_evidence.slide_export_status === 'exported' && result.proof_evidence.exported_slide_images_count > 0, 'ppt slide export fixture missing exported images', result.proof_evidence);
|
|
6
|
-
emitGate('ppt:slide-export-fixture', { mission_id: result.mission_id });
|
|
7
|
-
//# sourceMappingURL=ppt-slide-export-fixture-check.js.map
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// Fast prepublish eligibility check. Self-contained: reads the existing release
|
|
4
|
-
// stamp written by dist/scripts/release-check-stamp.js and decides whether the cheap
|
|
5
|
-
// fast-path (no full release:check rebuild) is eligible by comparing only the
|
|
6
|
-
// lightweight comparators it can recompute without a build.
|
|
7
|
-
//
|
|
8
|
-
// Output: a single JSON line on stdout (schema sks.prepublish-fast-check.v1).
|
|
9
|
-
// Exit 0 when the fast path is eligible; exit 1 otherwise (incl. no stamp).
|
|
10
|
-
// Tolerant of missing stamp fields; only compares fields present in the stamp.
|
|
11
|
-
import { spawnSync } from 'node:child_process';
|
|
12
|
-
import crypto from 'node:crypto';
|
|
13
|
-
import fs from 'node:fs';
|
|
14
|
-
import path from 'node:path';
|
|
15
|
-
import { root } from './sks-1-18-gate-lib.js';
|
|
16
|
-
const stampPath = process.env.SKS_RELEASE_STAMP_PATH || path.join(root, '.sneakoscope', 'reports', 'release-check-stamp.json');
|
|
17
|
-
function sha256(value) {
|
|
18
|
-
return crypto.createHash('sha256').update(value).digest('hex');
|
|
19
|
-
}
|
|
20
|
-
function safeGitCommit() {
|
|
21
|
-
try {
|
|
22
|
-
const result = spawnSync('git', ['rev-parse', 'HEAD'], { cwd: root, encoding: 'utf8' });
|
|
23
|
-
if (result.status === 0)
|
|
24
|
-
return String(result.stdout || '').trim() || null;
|
|
25
|
-
}
|
|
26
|
-
catch {
|
|
27
|
-
// git unavailable; commit comparison is informational only.
|
|
28
|
-
}
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
function readPackageJson() {
|
|
32
|
-
const raw = fs.readFileSync(path.join(root, 'package.json'));
|
|
33
|
-
return { raw, json: JSON.parse(raw.toString('utf8')) };
|
|
34
|
-
}
|
|
35
|
-
function packageFilesListHash(pkg) {
|
|
36
|
-
const files = Array.isArray(pkg.files) ? [...pkg.files].sort() : [];
|
|
37
|
-
return sha256(JSON.stringify(files));
|
|
38
|
-
}
|
|
39
|
-
function main() {
|
|
40
|
-
// No stamp -> not eligible; print and exit 1.
|
|
41
|
-
if (!fs.existsSync(stampPath)) {
|
|
42
|
-
console.log(JSON.stringify({ ok: false, reason: 'no_release_stamp', hint: 'run npm run release:check' }));
|
|
43
|
-
process.exit(1);
|
|
44
|
-
}
|
|
45
|
-
let stamp;
|
|
46
|
-
try {
|
|
47
|
-
stamp = JSON.parse(fs.readFileSync(stampPath, 'utf8'));
|
|
48
|
-
}
|
|
49
|
-
catch (err) {
|
|
50
|
-
console.log(JSON.stringify({
|
|
51
|
-
schema: 'sks.prepublish-fast-check.v1',
|
|
52
|
-
ok: false,
|
|
53
|
-
fast_path: false,
|
|
54
|
-
version: null,
|
|
55
|
-
git_commit: safeGitCommit(),
|
|
56
|
-
mismatched: ['stamp_unreadable'],
|
|
57
|
-
reasons: [`stamp_unreadable:${err && err.message ? err.message : 'unknown'}`]
|
|
58
|
-
}));
|
|
59
|
-
process.exit(1);
|
|
60
|
-
}
|
|
61
|
-
const { raw: pkgRaw, json: pkg } = readPackageJson();
|
|
62
|
-
const currentVersion = pkg.version;
|
|
63
|
-
const currentPkgSha = sha256(pkgRaw);
|
|
64
|
-
const currentFilesHash = packageFilesListHash(pkg);
|
|
65
|
-
const gitCommit = safeGitCommit();
|
|
66
|
-
const mismatched = [];
|
|
67
|
-
const reasons = [];
|
|
68
|
-
// Always-compared comparator: package version.
|
|
69
|
-
if (Object.prototype.hasOwnProperty.call(stamp, 'package_version')) {
|
|
70
|
-
if (stamp.package_version !== currentVersion) {
|
|
71
|
-
mismatched.push('package_version');
|
|
72
|
-
reasons.push(`package_version: stamp=${stamp.package_version ?? 'missing'} current=${currentVersion}`);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
mismatched.push('package_version');
|
|
77
|
-
reasons.push('package_version: absent from stamp');
|
|
78
|
-
}
|
|
79
|
-
// Compared only if the stamp carries it.
|
|
80
|
-
if (Object.prototype.hasOwnProperty.call(stamp, 'package_json_sha256')) {
|
|
81
|
-
if (stamp.package_json_sha256 !== currentPkgSha) {
|
|
82
|
-
mismatched.push('package_json_sha256');
|
|
83
|
-
reasons.push(`package_json_sha256: stamp=${stamp.package_json_sha256 ?? 'missing'} current=${currentPkgSha}`);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
// package.files list hash: informational unless the stamp recorded one.
|
|
87
|
-
if (Object.prototype.hasOwnProperty.call(stamp, 'package_files_list_sha256')) {
|
|
88
|
-
if (stamp.package_files_list_sha256 !== currentFilesHash) {
|
|
89
|
-
mismatched.push('package_files_list_sha256');
|
|
90
|
-
reasons.push(`package_files_list_sha256: stamp=${stamp.package_files_list_sha256 ?? 'missing'} current=${currentFilesHash}`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (Object.prototype.hasOwnProperty.call(stamp, 'package_files_sha256')) {
|
|
94
|
-
// Full package file hashing is owned by release-check-stamp.js; this check
|
|
95
|
-
// confirms the fast stamp carries the comparator and leaves exact matching to
|
|
96
|
-
// `release-check-stamp verify`.
|
|
97
|
-
if (!stamp.package_files_sha256) {
|
|
98
|
-
mismatched.push('package_files_sha256');
|
|
99
|
-
reasons.push('package_files_sha256: absent from stamp');
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if (Object.prototype.hasOwnProperty.call(stamp, 'release_gate_sha256') && !stamp.release_gate_sha256) {
|
|
103
|
-
mismatched.push('release_gate_sha256');
|
|
104
|
-
reasons.push('release_gate_sha256: absent from stamp');
|
|
105
|
-
}
|
|
106
|
-
// git_commit is provenance, not a freshness comparator. A valid release flow often
|
|
107
|
-
// runs release:check, commits the exact checked tree, then publishes from that new
|
|
108
|
-
// commit. In that case the tree/package/dist hashes still prove freshness, while
|
|
109
|
-
// comparing HEAD to the pre-commit stamp would block a good publish. The stricter
|
|
110
|
-
// `release-check-stamp verify` that follows this fast check owns the content
|
|
111
|
-
// comparators; keep the current commit visible in this report for audit only.
|
|
112
|
-
const stampedGitCommit = Object.prototype.hasOwnProperty.call(stamp, 'git_commit') ? stamp.git_commit || null : null;
|
|
113
|
-
const eligible = mismatched.length === 0;
|
|
114
|
-
console.log(JSON.stringify({
|
|
115
|
-
schema: 'sks.prepublish-fast-check.v1',
|
|
116
|
-
ok: eligible,
|
|
117
|
-
fast_path: eligible,
|
|
118
|
-
version: currentVersion,
|
|
119
|
-
git_commit: gitCommit,
|
|
120
|
-
stamped_git_commit: stampedGitCommit,
|
|
121
|
-
git_commit_changed_since_stamp: Boolean(stampedGitCommit && gitCommit && stampedGitCommit !== gitCommit),
|
|
122
|
-
mismatched,
|
|
123
|
-
reasons
|
|
124
|
-
}));
|
|
125
|
-
process.exit(eligible ? 0 : 1);
|
|
126
|
-
}
|
|
127
|
-
main();
|
|
128
|
-
//# sourceMappingURL=prepublish-fast-check.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, exists, readText } from './sks-1-18-gate-lib.js';
|
|
4
|
-
assertGate(exists('docs/priority-closure-p0-p4.md'), 'priority closure doc missing');
|
|
5
|
-
assertGate(exists('docs/release-readiness.md'), 'release readiness doc missing');
|
|
6
|
-
const readiness = readText('docs/release-readiness.md');
|
|
7
|
-
for (const priority of ['P0', 'P1', 'P2', 'P3', 'P4', 'P5']) {
|
|
8
|
-
assertGate(readiness.includes(priority), `release readiness missing ${priority}`);
|
|
9
|
-
}
|
|
10
|
-
assertGate(!/future work/i.test(readiness), 'release readiness must not defer P1-P5 as future work');
|
|
11
|
-
emitGate('priority:full-closure', { priorities: ['P0', 'P1', 'P2', 'P3', 'P4', 'P5'] });
|
|
12
|
-
//# sourceMappingURL=priority-full-closure-check.js.map
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { ensureProductDesignPluginInstalledWithRequest, findProductDesignPluginSummaryFromMarketplaces, productDesignAutoInstallRequested } from '../core/product-design-app-server.js';
|
|
4
|
-
import { PRODUCT_DESIGN_PLUGIN, PRODUCT_DESIGN_REQUIRED_SKILLS } from '../core/product-design-plugin.js';
|
|
5
|
-
import { assertGate, emitGate, readText, releaseGateIds } from './lib/codex-sdk-gate-lib.js';
|
|
6
|
-
function pluginReadResponse({ installed, enabled }) {
|
|
7
|
-
return {
|
|
8
|
-
plugin: {
|
|
9
|
-
marketplaceName: PRODUCT_DESIGN_PLUGIN.marketplace,
|
|
10
|
-
marketplacePath: null,
|
|
11
|
-
summary: {
|
|
12
|
-
id: PRODUCT_DESIGN_PLUGIN.id,
|
|
13
|
-
remotePluginId: PRODUCT_DESIGN_PLUGIN.remote_plugin_id,
|
|
14
|
-
name: PRODUCT_DESIGN_PLUGIN.name,
|
|
15
|
-
installed,
|
|
16
|
-
enabled,
|
|
17
|
-
interface: {
|
|
18
|
-
displayName: PRODUCT_DESIGN_PLUGIN.display_name
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
skills: PRODUCT_DESIGN_REQUIRED_SKILLS.map((name) => ({ name, enabled: true }))
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
let installed = false;
|
|
26
|
-
const installCalls = [];
|
|
27
|
-
const installResult = await ensureProductDesignPluginInstalledWithRequest(async (method, params) => {
|
|
28
|
-
installCalls.push({ method, params });
|
|
29
|
-
if (method === 'plugin/read')
|
|
30
|
-
return pluginReadResponse({ installed, enabled: installed });
|
|
31
|
-
if (method === 'plugin/install') {
|
|
32
|
-
assertGate(params.pluginName === PRODUCT_DESIGN_PLUGIN.remote_plugin_id, 'plugin/install must use Product Design remote plugin id', params);
|
|
33
|
-
installed = true;
|
|
34
|
-
return { authPolicy: 'ON_USE', appsNeedingAuth: [] };
|
|
35
|
-
}
|
|
36
|
-
if (method === 'plugin/installed')
|
|
37
|
-
return { marketplaces: [], marketplaceLoadErrors: [] };
|
|
38
|
-
throw new Error(`unexpected method: ${method}`);
|
|
39
|
-
}, { autoInstallProductDesign: true, env: {} });
|
|
40
|
-
assertGate(installResult.ok, 'Product Design ensure must pass after fake plugin/install', installResult);
|
|
41
|
-
assertGate(installResult.install_attempted === true, 'Product Design ensure must attempt install when read evidence is not ready', installResult);
|
|
42
|
-
assertGate(installCalls.some((call) => call.method === 'plugin/install'), 'Product Design ensure did not call plugin/install', installCalls);
|
|
43
|
-
assertGate(installResult.after_evidence.ok, 'Product Design after_evidence must be ready after install', installResult);
|
|
44
|
-
installed = false;
|
|
45
|
-
const dryCalls = [];
|
|
46
|
-
const dryResult = await ensureProductDesignPluginInstalledWithRequest(async (method, params) => {
|
|
47
|
-
dryCalls.push({ method, params });
|
|
48
|
-
if (method === 'plugin/read')
|
|
49
|
-
return pluginReadResponse({ installed: false, enabled: false });
|
|
50
|
-
throw new Error(`unexpected dry method: ${method}`);
|
|
51
|
-
}, { autoInstallProductDesign: false, env: {} });
|
|
52
|
-
assertGate(!dryResult.ok, 'Product Design dry ensure must not claim ready when read evidence is not ready', dryResult);
|
|
53
|
-
assertGate(dryResult.install_attempted === false, 'Product Design dry ensure must not attempt install', dryResult);
|
|
54
|
-
assertGate(!dryCalls.some((call) => call.method === 'plugin/install'), 'Product Design dry ensure must not call plugin/install', dryCalls);
|
|
55
|
-
const marketplaceList = {
|
|
56
|
-
marketplaces: [{
|
|
57
|
-
name: PRODUCT_DESIGN_PLUGIN.marketplace,
|
|
58
|
-
plugins: [{
|
|
59
|
-
id: PRODUCT_DESIGN_PLUGIN.id,
|
|
60
|
-
remotePluginId: PRODUCT_DESIGN_PLUGIN.remote_plugin_id,
|
|
61
|
-
name: PRODUCT_DESIGN_PLUGIN.name,
|
|
62
|
-
installed: true,
|
|
63
|
-
enabled: true,
|
|
64
|
-
interface: {
|
|
65
|
-
displayName: PRODUCT_DESIGN_PLUGIN.display_name
|
|
66
|
-
}
|
|
67
|
-
}]
|
|
68
|
-
}],
|
|
69
|
-
marketplaceLoadErrors: []
|
|
70
|
-
};
|
|
71
|
-
const discovered = findProductDesignPluginSummaryFromMarketplaces(marketplaceList);
|
|
72
|
-
assertGate(discovered?.remotePluginId === PRODUCT_DESIGN_PLUGIN.remote_plugin_id, 'Product Design vertical plugin/list discovery must return remote id', discovered);
|
|
73
|
-
let readCount = 0;
|
|
74
|
-
const listCalls = [];
|
|
75
|
-
const listFallbackResult = await ensureProductDesignPluginInstalledWithRequest(async (method, params) => {
|
|
76
|
-
listCalls.push({ method, params });
|
|
77
|
-
if (method === 'plugin/read') {
|
|
78
|
-
readCount += 1;
|
|
79
|
-
if (readCount === 1)
|
|
80
|
-
throw new Error('simulated stale read id');
|
|
81
|
-
return pluginReadResponse({ installed: true, enabled: true });
|
|
82
|
-
}
|
|
83
|
-
if (method === 'plugin/list')
|
|
84
|
-
return marketplaceList;
|
|
85
|
-
throw new Error(`unexpected list fallback method: ${method}`);
|
|
86
|
-
}, { autoInstallProductDesign: true, env: {} });
|
|
87
|
-
assertGate(listFallbackResult.ok, 'Product Design ensure must recover through vertical plugin/list discovery', listFallbackResult);
|
|
88
|
-
assertGate(listFallbackResult.install_attempted === false, 'Product Design ensure must not install when list-discovered read is already ready', listFallbackResult);
|
|
89
|
-
assertGate(listCalls.some((call) => call.method === 'plugin/list'), 'Product Design ensure must query vertical plugin/list when direct read fails', listCalls);
|
|
90
|
-
assertGate(productDesignAutoInstallRequested({ env: { SKS_PRODUCT_DESIGN_AUTO_INSTALL: '1' } }), 'Product Design auto-install env gate must be honored');
|
|
91
|
-
const codexAppSource = readText('src/core/codex-app.ts');
|
|
92
|
-
const commandSource = readText('src/commands/codex-app.ts');
|
|
93
|
-
const appServerSource = readText('src/core/product-design-app-server.ts');
|
|
94
|
-
const pkg = JSON.parse(readText('package.json'));
|
|
95
|
-
const releaseGates = releaseGateIds();
|
|
96
|
-
for (const token of [
|
|
97
|
-
'ensureProductDesignPluginInstalled',
|
|
98
|
-
'PRODUCT_DESIGN_AUTO_INSTALL_ENV',
|
|
99
|
-
'autoInstallProductDesign'
|
|
100
|
-
]) {
|
|
101
|
-
assertGate(codexAppSource.includes(token) || appServerSource.includes(token), `Product Design auto-install source missing token: ${token}`);
|
|
102
|
-
}
|
|
103
|
-
for (const token of [
|
|
104
|
-
'product-design',
|
|
105
|
-
'ensure-product-design',
|
|
106
|
-
'--check-only',
|
|
107
|
-
'--install-product-design'
|
|
108
|
-
]) {
|
|
109
|
-
assertGate(commandSource.includes(token), `sks codex-app command missing Product Design token: ${token}`);
|
|
110
|
-
}
|
|
111
|
-
assertGate(Boolean(pkg.scripts?.['codex:product-design-auto-install']), 'package script missing codex:product-design-auto-install');
|
|
112
|
-
assertGate(releaseGates.has('codex:product-design-auto-install'), 'release gate DAG must include Product Design auto-install gate');
|
|
113
|
-
emitGate('codex:product-design-auto-install', {
|
|
114
|
-
install_calls: installCalls.map((call) => call.method),
|
|
115
|
-
dry_calls: dryCalls.map((call) => call.method),
|
|
116
|
-
list_fallback_calls: listCalls.map((call) => call.method),
|
|
117
|
-
env_gate: true
|
|
118
|
-
});
|
|
119
|
-
//# sourceMappingURL=product-design-auto-install-check.js.map
|