Skip to content

Task: T12026 — Extend ProjectContext contract and JSON schema for typed lint/typecheck/audit/security-scan command overrides - #1131

Merged
kryptobaseddev merged 2 commits into
mainfrom
task/T12026
Aug 2, 2026
Merged

Task: T12026 — Extend ProjectContext contract and JSON schema for typed lint/typecheck/audit/security-scan command overrides#1131
kryptobaseddev merged 2 commits into
mainfrom
task/T12026

Conversation

@kryptobaseddev

@kryptobaseddev kryptobaseddev commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Extends the shared ProjectContext interface in packages/contracts/src/project-context.ts and the corresponding JSON schema (packages/core/schemas/project-context.schema.json) with four top-level optional command objects, consistent with the existing testing.command and build.command pattern:

Field Type Purpose
lint.command string (optional) Static analysis / lint command override
typecheck.command string (optional) Type checking command override
audit.command string (optional) Dependency/module audit command override
security-scan.command string (optional) Security vulnerability scan command override

Changes

  • 3 files, +64 / -34 lines
  • packages/contracts/src/project-context.ts — added lint, typecheck, audit, security-scan top-level { command?: string } objects to ProjectContext
  • packages/core/schemas/project-context.schema.json — added 4 top-level object properties with typed command sub-property
  • packages/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 — passed
  • vitest run src/store/__tests__/project-detect.test.ts — 79/79 passed (2 updated T12026 regression tests)
  • pnpm biome check — no fixes needed

What is NOT included

  • Resolver/runner behavior for these command overrides — deferred to dependent task T12027.

Package Boundary Check

Code placed in packages/contracts/ and the existing packages/core/ schema/tests per Package-Boundary Check, verified against AGENTS.md.

Part of #1122 and #1129; runtime resolver follows in T12027.

…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
kryptobaseddev merged commit 3b3ac3b into main Aug 2, 2026
131 of 133 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant