Task: T12026 — Extend ProjectContext contract and JSON schema for typed lint/typecheck/audit/security-scan command overrides - #1131
Merged
Conversation
…ed lint/typecheck/audit/security-scan command overrides Add typed optional commands object (lint, typecheck, audit, securityScan) to ProjectContext interface and project-context.schema.json v1.0.0. Includes two regression validation tests for schema compliance and JSON roundtrip survivability. Resolver behavior deferred to T12027. Closes #1122 #1129
…ck/audit/security-scan.command)
Replace nested commands.{lint,typecheck,audit,securityScan}: string with
top-level object shapes matching existing testing.command / build.command
pattern. JSON key for security scan is security-scan per #1122 report.
lint.command / typecheck.command / audit.command / security-scan.command
kryptobaseddev
force-pushed
the
task/T12026
branch
from
August 2, 2026 05:00
9ea71d2 to
c79d821
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the shared
ProjectContextinterface inpackages/contracts/src/project-context.tsand the corresponding JSON schema (packages/core/schemas/project-context.schema.json) with four top-level optional command objects, consistent with the existingtesting.commandandbuild.commandpattern:lint.commandstring(optional)typecheck.commandstring(optional)audit.commandstring(optional)security-scan.commandstring(optional)Changes
packages/contracts/src/project-context.ts— addedlint,typecheck,audit,security-scantop-level{ command?: string }objects toProjectContextpackages/core/schemas/project-context.schema.json— added 4 top-level object properties with typedcommandsub-propertypackages/core/src/store/__tests__/project-detect.test.ts— 2 regression tests (schema validation + JSON roundtrip for top-level command objects)Verification
pnpm --filter @cleocode/contracts run build— passedvitest run src/store/__tests__/project-detect.test.ts— 79/79 passed (2 updated T12026 regression tests)pnpm biome check— no fixes neededWhat is NOT included
Package Boundary Check
Code placed in
packages/contracts/and the existingpackages/core/schema/tests per Package-Boundary Check, verified against AGENTS.md.Part of #1122 and #1129; runtime resolver follows in T12027.