@planu/cli 5.7.11 → 5.7.12
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/CHANGELOG.md +27 -0
- package/dist/.planu-build.json +1 -1
- package/dist/cli/commands/package-handoff.js +10 -3
- package/dist/config/runtime-policy.json +2 -1
- package/dist/engine/abortable-process-runner.js +1 -0
- package/dist/engine/bump-carrier-binding.d.ts +10 -0
- package/dist/engine/bump-carrier-binding.js +276 -0
- package/dist/engine/handoff-artifacts/schemas.d.ts +20 -0
- package/dist/engine/handoff-artifacts/schemas.js +12 -0
- package/dist/engine/runtime-policy.js +4 -0
- package/dist/engine/source-quality-binding.d.ts +26 -0
- package/dist/engine/source-quality-binding.js +162 -0
- package/dist/engine/source-quality-receipt-reader.d.ts +3 -0
- package/dist/engine/source-quality-receipt-reader.js +51 -0
- package/dist/engine/spec-format/bdd-parser.js +7 -4
- package/dist/engine/spec-format/technical-md-populator.js +114 -3
- package/dist/engine/spec-format/unified-spec-builder.js +33 -6
- package/dist/engine/validator/blast-radius-gate.d.ts +3 -0
- package/dist/engine/validator/blast-radius-gate.js +139 -0
- package/dist/engine/validator/spec-compliance-runner.d.ts +1 -0
- package/dist/engine/validator/spec-compliance-runner.js +3 -0
- package/dist/engine/validator/validation-report-writer.d.ts +2 -0
- package/dist/engine/validator/validation-report-writer.js +68 -30
- package/dist/storage/runtime-db.js +7 -3
- package/dist/storage/spec-store.js +6 -2
- package/dist/tools/challenge-spec/scenarios-data.js +2 -2
- package/dist/tools/challenge-spec/scenarios-utils.d.ts +2 -0
- package/dist/tools/challenge-spec/scenarios-utils.js +36 -3
- package/dist/tools/validate-lint.js +19 -0
- package/dist/tools/validate.js +46 -4
- package/dist/types/abortable-process.d.ts +1 -0
- package/dist/types/handoff-artifacts.d.ts +10 -0
- package/dist/types/runtime-policy.d.ts +1 -0
- package/dist/types/spec-format.d.ts +9 -0
- package/dist/types/validation-evidence.d.ts +21 -0
- package/package.json +2 -2
- package/planu-plugin.json +1 -1
|
@@ -7,9 +7,7 @@ const CAPABILITY_SIGNALS = {
|
|
|
7
7
|
/\bfetch(?:es|ing)?\s+(?:from\s+)?(?:an?\s+)?(?:endpoint|service|url)\b/i,
|
|
8
8
|
],
|
|
9
9
|
database: [
|
|
10
|
-
/\b(?:database|postgres(?:ql)?|mysql|sqlite|mongodb|dynamodb|supabase)\b/i,
|
|
11
10
|
/\b(?:sql|nosql)\s+(?:query|statement|table|database)\b/i,
|
|
12
|
-
/\b(?:database|persistence)\s+(?:query|schema|table|migration|transaction)\b/i,
|
|
13
11
|
/\b(?:orm|prisma|drizzle|typeorm|sequelize)\b/i,
|
|
14
12
|
],
|
|
15
13
|
authentication: [/\b(?:login|sign[ -]?in|password|jwt|oauth2?|session\s+auth)\b/i],
|
|
@@ -42,7 +40,12 @@ const CAPABILITY_SIGNALS = {
|
|
|
42
40
|
/\b(?:state-changing|data\s+mutation|atomic\s+database\s+writes?)\b/i,
|
|
43
41
|
/\b(?:transaction|atomic\s+writes?|update\s+(?:record|state)|modify\s+(?:record|state))\b/i,
|
|
44
42
|
],
|
|
45
|
-
cache: [
|
|
43
|
+
cache: [
|
|
44
|
+
/\bcach(?:e|es|ed|ing)\s+(?:the|responses|results|entries|data)\b/i,
|
|
45
|
+
/\bcache\s+invalidat(?:e|es|ed|ing|ion)\b/i,
|
|
46
|
+
/\b(?:responses|results|entries|data)\s+(?:are|is|were)\s+cached\b/i,
|
|
47
|
+
/\bredis\b/i,
|
|
48
|
+
],
|
|
46
49
|
duplicateOperation: [
|
|
47
50
|
/\b(?:double[ -]?click|duplicate\s+(?:request|submission|operation|record)|idempoten)/i,
|
|
48
51
|
],
|
|
@@ -104,6 +107,8 @@ const CAPABILITY_SIGNALS = {
|
|
|
104
107
|
/\bdeployment\s+strategy\b/i,
|
|
105
108
|
],
|
|
106
109
|
};
|
|
110
|
+
/** Shared with scenarios-data.ts so the stale-cache scenario uses the same caching-action anchor. */
|
|
111
|
+
export const CACHE_ACTION_SIGNALS = CAPABILITY_SIGNALS.cache;
|
|
107
112
|
const AUTHENTICATION_BARE_TOKEN_RE = /\bauth(?:entication|enticate)?\b/i;
|
|
108
113
|
// A bare "auth" token next to registry/package-manager vocabulary describes a
|
|
109
114
|
// dependency-registry failure, not a product authentication contract, in either
|
|
@@ -118,6 +123,33 @@ function hasProductAuthenticationEvidence(contract) {
|
|
|
118
123
|
return (hasAffirmedMatch(contract, AUTHENTICATION_BARE_TOKEN_RE) &&
|
|
119
124
|
!REGISTRY_AUTH_CONTEXT_RE.test(contract));
|
|
120
125
|
}
|
|
126
|
+
const DATABASE_PRODUCT_TOKEN_RE = '(?:database|postgres(?:ql)?|mysql|sqlite|mongodb|dynamodb|supabase)';
|
|
127
|
+
const DATABASE_PERSISTENCE_VERB_RE = '(?:stor(?:e|es|ed|ing)|persist(?:s|ed|ing)?|writ(?:e|es|ing|ten)|read(?:s|ing)?|quer(?:y|ies|ying)|insert(?:s|ing|ed)?|updat(?:e|es|ing|ed)|delet(?:e|es|ing|ed)|migrat(?:e|es|ing|ed|ion|ions))';
|
|
128
|
+
const DATABASE_TEST_GUARD_RE = '(?:test|fixture|mock(?:s|ed|ing)?|stub(?:s|bed|bing)?)';
|
|
129
|
+
const DATABASE_PRODUCT_RE = new RegExp(`\\b${DATABASE_PRODUCT_TOKEN_RE}\\b`, 'i');
|
|
130
|
+
const DATABASE_DDL_VERB_RE = /\b(?:add|adds|added|adding)\b/i;
|
|
131
|
+
const DATABASE_DDL_CONTEXT_RE = /\b(?:migration|schema|column|table)\b/i;
|
|
132
|
+
const DATABASE_PERSISTENCE_ACTION_RE = new RegExp(`\\b${DATABASE_PERSISTENCE_VERB_RE}\\b(?:\\W+\\w+){0,4}?\\W+\\b${DATABASE_PRODUCT_TOKEN_RE}\\b|` +
|
|
133
|
+
`\\b${DATABASE_PRODUCT_TOKEN_RE}\\b(?:\\W+\\w+){0,4}?\\W+\\b${DATABASE_PERSISTENCE_VERB_RE}\\b`, 'i');
|
|
134
|
+
const DATABASE_TEST_CONTEXT_RE = new RegExp(`\\b${DATABASE_TEST_GUARD_RE}\\b(?:\\W+\\w+){0,6}?\\W+\\b(?:${DATABASE_PRODUCT_TOKEN_RE}|${DATABASE_PERSISTENCE_VERB_RE})\\b|` +
|
|
135
|
+
`\\b(?:${DATABASE_PRODUCT_TOKEN_RE}|${DATABASE_PERSISTENCE_VERB_RE})\\b(?:\\W+\\w+){0,6}?\\W+\\b${DATABASE_TEST_GUARD_RE}\\b`, 'i');
|
|
136
|
+
function hasDatabasePersistenceEvidenceInClause(clause) {
|
|
137
|
+
if (DATABASE_TEST_CONTEXT_RE.test(clause)) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
if (hasAffirmedMatch(clause, DATABASE_PERSISTENCE_ACTION_RE)) {
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
return (DATABASE_PRODUCT_RE.test(clause) &&
|
|
144
|
+
DATABASE_DDL_CONTEXT_RE.test(clause) &&
|
|
145
|
+
DATABASE_DDL_VERB_RE.test(clause));
|
|
146
|
+
}
|
|
147
|
+
function hasProductDatabaseEvidence(contract) {
|
|
148
|
+
if (hasAnyAffirmedMatch(contract, CAPABILITY_SIGNALS.database)) {
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
return contract.split(/[.;\n]/).some(hasDatabasePersistenceEvidenceInClause);
|
|
152
|
+
}
|
|
121
153
|
const NETWORK_API_BARE_TOKEN_RE = /(?<!compiler\s)\bapi\b(?!\s+(?:compatibility|surface|package|type))/i;
|
|
122
154
|
const NETWORK_API_CONTEXT_RE = /\b(?:endpoint|route|http|https|rest|fetch|url|socket|request|response|timeout|retry|webhook|payload|keys?)\b(?:\W+\w+){0,6}?\W+api\b|\bapi\b(?:\W+\w+){0,6}?\W+\b(?:endpoint|route|http|https|rest|fetch|url|socket|request|response|timeout|retry|webhook|payload|keys?)\b/i;
|
|
123
155
|
function hasProductNetworkEvidence(contract) {
|
|
@@ -162,6 +194,7 @@ export function detectChallengeCapabilities(spec, specContent) {
|
|
|
162
194
|
]));
|
|
163
195
|
capabilities.authentication = hasProductAuthenticationEvidence(contract);
|
|
164
196
|
capabilities.networkApi = hasProductNetworkEvidence(contract);
|
|
197
|
+
capabilities.database = hasProductDatabaseEvidence(contract);
|
|
165
198
|
return capabilities;
|
|
166
199
|
}
|
|
167
200
|
export function hasAnyChallengeCapability(capabilities, names) {
|
|
@@ -4,6 +4,7 @@ import { formatLintFailureDiagnostics, resolveProjectCommandPlan, runProjectComm
|
|
|
4
4
|
import { getToolExecutionSignal } from './safe-handler.js';
|
|
5
5
|
import { VALIDATION_COMMANDS } from '../engine/validation-impact-planner.js';
|
|
6
6
|
import { boundedEnvironmentDuration, getRuntimePolicy } from '../engine/runtime-policy.js';
|
|
7
|
+
import { readMatchingSourceQualityReceipt } from '../engine/source-quality-receipt-reader.js';
|
|
7
8
|
/** Allowlist: alphanumerics, spaces, and safe shell chars. Rejects ; | $ ` & < > */
|
|
8
9
|
const SAFE_COMMAND_RE = /^[\w\s./:@~=-]+$/;
|
|
9
10
|
function isSafeCommand(cmd) {
|
|
@@ -80,6 +81,24 @@ export async function runLintCheck(projectPath, lintCommand, context = {}) {
|
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
}
|
|
84
|
+
const sourceQualityMatch = readMatchingSourceQualityReceipt(projectPath, command);
|
|
85
|
+
if (sourceQualityMatch) {
|
|
86
|
+
const output = `(reused source-quality receipt ${sourceQualityMatch.key})`;
|
|
87
|
+
if (context.projectId) {
|
|
88
|
+
recordSuccessfulValidationEvidence({
|
|
89
|
+
projectId: context.projectId,
|
|
90
|
+
input: evidenceInput,
|
|
91
|
+
expectedKey,
|
|
92
|
+
producer: 'planu-validate',
|
|
93
|
+
durationMs: 0,
|
|
94
|
+
output,
|
|
95
|
+
reason: context.specId
|
|
96
|
+
? `Lint reused the source-quality receipt while validating ${context.specId}.`
|
|
97
|
+
: 'Lint reused the source-quality receipt during canonical validation.',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
return { passed: true, command, issueCount: 0, output };
|
|
101
|
+
}
|
|
83
102
|
const timeoutMs = Math.min(lintCheckTimeoutMs(), context.maximumTimeoutMs ?? Number.MAX_SAFE_INTEGER);
|
|
84
103
|
try {
|
|
85
104
|
const startedAt = Date.now();
|
package/dist/tools/validate.js
CHANGED
|
@@ -69,8 +69,12 @@ import { validateContractCompliance } from '../engine/test-scaffold-generator.js
|
|
|
69
69
|
import { parseConventions, scanConventions } from '../engine/convention-scanner/index.js';
|
|
70
70
|
import { validateScopeCompliance } from '../engine/scope-boundaries/index.js';
|
|
71
71
|
import { compareWithBaseline } from '../storage/convention-baseline.js';
|
|
72
|
+
import { readFile } from 'node:fs/promises';
|
|
73
|
+
import { isAbsolute, join } from 'node:path';
|
|
72
74
|
import { writeImplementationReviewReport } from '../engine/validator/validation-report-writer.js';
|
|
73
75
|
import { runReliabilityGate } from '../engine/validator/reliability-gate.js';
|
|
76
|
+
import { runBlastRadiusGate } from '../engine/validator/blast-radius-gate.js';
|
|
77
|
+
import { collectDeclaredSpecFiles } from '../engine/validator/spec-compliance-runner.js';
|
|
74
78
|
import { buildGraphCoverageReport, formatGraphCoverageText } from './validate-graph-coverage.js';
|
|
75
79
|
import { buildMinimalityReport } from './validate-minimality.js';
|
|
76
80
|
import { buildValidateFailureFallback, validateStrictLayoutOrError } from './validate-helpers.js';
|
|
@@ -87,7 +91,7 @@ import { getRuntimePolicy } from '../engine/runtime-policy.js';
|
|
|
87
91
|
import { resolveValidationWorktree, ValidationWorktreeError, } from '../engine/validation/validation-worktree.js';
|
|
88
92
|
// Re-export for external use (SPEC-018)
|
|
89
93
|
export { validateContractCompliance };
|
|
90
|
-
const VALIDATION_GATE_TOTAL =
|
|
94
|
+
const VALIDATION_GATE_TOTAL = 10;
|
|
91
95
|
const GATE_DEADLINE_EXEMPT_PHASES = new Set(['lint', 'compliance']);
|
|
92
96
|
async function runWithGateDeadline(phase, command, work) {
|
|
93
97
|
if (GATE_DEADLINE_EXEMPT_PHASES.has(phase)) {
|
|
@@ -368,9 +372,20 @@ export async function executeValidate(args, server, onProgress) {
|
|
|
368
372
|
});
|
|
369
373
|
const implementationQualityScore = calcQualityScore(result.qualityIssues);
|
|
370
374
|
const auditedFiles = [...new Set(result.qualityIssues.map((i) => i.file))];
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
|
|
375
|
+
const codeState = await scanCodeForSpec(executionSpec, projectPath);
|
|
376
|
+
const reliabilityGate = await runStage('reliability', 'scripts/check-reliability-policies.mjs --json', () => runReliabilityGate(projectPath, codeState.affectedFiles));
|
|
377
|
+
const blastRadiusGate = await runStage('blast-radius', "vitest related over the spec's affected source files", async () => {
|
|
378
|
+
const absoluteSpecPath = isAbsolute(executionSpec.specPath)
|
|
379
|
+
? executionSpec.specPath
|
|
380
|
+
: join(projectPath, executionSpec.specPath);
|
|
381
|
+
const raw = await readFile(absoluteSpecPath, 'utf-8');
|
|
382
|
+
const candidateFiles = [
|
|
383
|
+
...new Set([...collectDeclaredSpecFiles(raw), ...codeState.affectedFiles]),
|
|
384
|
+
];
|
|
385
|
+
return runBlastRadiusGate(projectPath, candidateFiles, {
|
|
386
|
+
timeoutMs: getRuntimePolicy().validation.blastRadiusTimeoutMs,
|
|
387
|
+
signal: getToolExecutionSignal(),
|
|
388
|
+
});
|
|
374
389
|
});
|
|
375
390
|
const { conventionViolations, regressionDetected } = await runStage('conventions', 'validate project conventions', () => scanProjectConventions(projectId, projectPath));
|
|
376
391
|
const lintCheck = await runStage('lint', knowledge.lintCommand ?? 'pnpm lint', () => runLintCheck(projectPath, knowledge.lintCommand ?? null, {
|
|
@@ -401,6 +416,7 @@ export async function executeValidate(args, server, onProgress) {
|
|
|
401
416
|
conventionRegression: regressionDetected,
|
|
402
417
|
minimalityReport: minimalityReport ?? undefined,
|
|
403
418
|
signal: getToolExecutionSignal(),
|
|
419
|
+
blastRadius: blastRadiusGate,
|
|
404
420
|
}));
|
|
405
421
|
const effectiveResult = buildEffectiveValidationResult(result, validationReport.specCompliance);
|
|
406
422
|
const qualityGateSummary = buildQualityGateSummary({
|
|
@@ -410,6 +426,7 @@ export async function executeValidate(args, server, onProgress) {
|
|
|
410
426
|
assurancePassed: assuranceGates.newCode.passed,
|
|
411
427
|
minimalityBlocked: minimalityReport?.blocked === true,
|
|
412
428
|
reliabilityPassed: reliabilityGate.passed,
|
|
429
|
+
blastRadiusPassed: blastRadiusGate.passed,
|
|
413
430
|
score: effectiveResult.score,
|
|
414
431
|
});
|
|
415
432
|
const output = {
|
|
@@ -525,6 +542,26 @@ export async function executeValidate(args, server, onProgress) {
|
|
|
525
542
|
suggestion: 'Not blocking this spec — file is outside the spec Files section.',
|
|
526
543
|
});
|
|
527
544
|
}
|
|
545
|
+
for (const failure of blastRadiusGate.failures) {
|
|
546
|
+
output.qualityIssues.push({
|
|
547
|
+
file: failure.file,
|
|
548
|
+
line: 0,
|
|
549
|
+
severity: 'critical',
|
|
550
|
+
rule: 'blast-radius',
|
|
551
|
+
message: `Blast radius test failure: ${failure.message}`,
|
|
552
|
+
suggestion: 'Fix the failing importer tests (or raise validation.blastRadiusTimeoutMs) before marking this spec done.',
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
if (blastRadiusGate.skipped !== null) {
|
|
556
|
+
output.qualityIssues.push({
|
|
557
|
+
file: 'blast-radius',
|
|
558
|
+
line: 0,
|
|
559
|
+
severity: 'warning',
|
|
560
|
+
rule: 'blast-radius-skipped',
|
|
561
|
+
message: `Blast radius gate skipped: ${blastRadiusGate.skipped}`,
|
|
562
|
+
suggestion: 'No importer regression coverage ran for this validate call.',
|
|
563
|
+
});
|
|
564
|
+
}
|
|
528
565
|
// Auto-suggest corrective actions based on validation results
|
|
529
566
|
// score is null when no criteria can be extracted — treat as 0 for comparisons.
|
|
530
567
|
const scoreValue = effectiveResult.score ?? 0;
|
|
@@ -562,6 +599,9 @@ export async function executeValidate(args, server, onProgress) {
|
|
|
562
599
|
else if (!reliabilityGate.passed) {
|
|
563
600
|
suggestions.push(`Reliability gate failed: ${String(reliabilityGate.failures.length)} violation(s) in this spec's files. Fix before marking as done.`);
|
|
564
601
|
}
|
|
602
|
+
if (blastRadiusGate.skipped === null && !blastRadiusGate.passed) {
|
|
603
|
+
suggestions.push('Fix the failing importer tests (or raise validation.blastRadiusTimeoutMs) before marking this spec done.');
|
|
604
|
+
}
|
|
565
605
|
if (!assuranceGates.newCode.passed) {
|
|
566
606
|
suggestions.push(`Assurance gate failed: ${String(assuranceGates.newCode.findings.length)} new-code domain inference issue(s) found.`);
|
|
567
607
|
}
|
|
@@ -713,6 +753,7 @@ function buildQualityGateSummary(input) {
|
|
|
713
753
|
...(!input.assurancePassed ? ['assurance'] : []),
|
|
714
754
|
...(input.minimalityBlocked ? ['minimality'] : []),
|
|
715
755
|
...(!input.reliabilityPassed ? ['reliability'] : []),
|
|
756
|
+
...(!input.blastRadiusPassed ? ['blast-radius'] : []),
|
|
716
757
|
];
|
|
717
758
|
return {
|
|
718
759
|
passed: failures.length === 0,
|
|
@@ -724,6 +765,7 @@ function buildQualityGateSummary(input) {
|
|
|
724
765
|
assurancePassed: input.assurancePassed,
|
|
725
766
|
minimalityPassed: !input.minimalityBlocked,
|
|
726
767
|
reliabilityPassed: input.reliabilityPassed,
|
|
768
|
+
blastRadiusPassed: input.blastRadiusPassed,
|
|
727
769
|
};
|
|
728
770
|
}
|
|
729
771
|
function buildExecutableCoverage(specCompliance) {
|
|
@@ -12,6 +12,7 @@ export interface AbortableProcessOptions {
|
|
|
12
12
|
timeoutMs: number;
|
|
13
13
|
maxBufferBytes: number;
|
|
14
14
|
signal?: AbortSignal;
|
|
15
|
+
env?: NodeJS.ProcessEnv;
|
|
15
16
|
/** Called synchronously after process-group termination has been requested. */
|
|
16
17
|
onCancellationAcknowledged?: () => void;
|
|
17
18
|
}
|
|
@@ -95,6 +95,16 @@ export interface ValidationReportV1 {
|
|
|
95
95
|
completedAt: string;
|
|
96
96
|
receiptId?: string;
|
|
97
97
|
receiptKey?: string;
|
|
98
|
+
blastRadius?: {
|
|
99
|
+
selectedFiles: number;
|
|
100
|
+
passed: boolean;
|
|
101
|
+
timedOut: boolean;
|
|
102
|
+
skipped?: string;
|
|
103
|
+
failures: {
|
|
104
|
+
file: string;
|
|
105
|
+
message: string;
|
|
106
|
+
}[];
|
|
107
|
+
};
|
|
98
108
|
}
|
|
99
109
|
export type ReconciliationReceiptState = 'prepared' | 'committed' | 'aborted';
|
|
100
110
|
/** Mutable, atomically replaced recovery record for a reconciliation transaction. */
|
|
@@ -59,6 +59,10 @@ export interface LeanFileEntry {
|
|
|
59
59
|
path: string;
|
|
60
60
|
status: 'pending' | 'done';
|
|
61
61
|
}
|
|
62
|
+
/** Bucket a labelled "Files to create/modify" or "Create:/Modify:/Test:" entry belongs to. */
|
|
63
|
+
export type LabeledFileBucketKind = 'create' | 'modify' | 'test';
|
|
64
|
+
/** Paths parsed from labelled Files lists, grouped by bucket. */
|
|
65
|
+
export type LabeledFileLists = Record<LabeledFileBucketKind, string[]>;
|
|
62
66
|
/** Result of a planu/ cleanup operation (SPEC-466). */
|
|
63
67
|
export interface CleanupResult {
|
|
64
68
|
deletedRootFiles: string[];
|
|
@@ -195,6 +199,11 @@ export interface UnifiedSpecCandidateValidation {
|
|
|
195
199
|
valid: boolean;
|
|
196
200
|
issues: UnifiedSpecCandidateIssue[];
|
|
197
201
|
}
|
|
202
|
+
/** The first non-canonical author section found in a source description (SPEC-1753). */
|
|
203
|
+
export interface AuthorSection {
|
|
204
|
+
name: string;
|
|
205
|
+
body: string;
|
|
206
|
+
}
|
|
198
207
|
export interface CanonicalUnifiedSpecInput {
|
|
199
208
|
leanSpecBody: string;
|
|
200
209
|
sourceDescription: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AbortableProcessOptions, AbortableProcessResult } from './abortable-process.js';
|
|
1
2
|
export declare const VALIDATION_EVIDENCE_SCHEMA_VERSION: '1.0.0';
|
|
2
3
|
export type ValidationGateCapability = 'typecheck' | 'lint' | 'test-related' | 'test-full' | 'contract' | 'coverage' | 'migration' | 'fault-injection' | 'security' | 'native' | 'website' | 'reproducibility';
|
|
3
4
|
export type ValidationEvidenceStatus = 'passed' | 'failed' | 'cancelled' | 'invalidated';
|
|
@@ -110,6 +111,10 @@ export interface ExecutableEvidence {
|
|
|
110
111
|
unmappedCriteria: string[];
|
|
111
112
|
ignoredCriteriaTitles: string[];
|
|
112
113
|
}
|
|
114
|
+
export interface SourceQualityReceiptMatch {
|
|
115
|
+
key: string;
|
|
116
|
+
path: string;
|
|
117
|
+
}
|
|
113
118
|
export interface ReliabilityGateViolation {
|
|
114
119
|
file: string;
|
|
115
120
|
line: number;
|
|
@@ -122,4 +127,20 @@ export interface ReliabilityGateResult {
|
|
|
122
127
|
warnings: ReliabilityGateViolation[];
|
|
123
128
|
executionError?: string;
|
|
124
129
|
}
|
|
130
|
+
export interface BlastRadiusGateFailure {
|
|
131
|
+
file: string;
|
|
132
|
+
message: string;
|
|
133
|
+
}
|
|
134
|
+
export interface BlastRadiusGateResult {
|
|
135
|
+
skipped: 'no-importable-files' | 'vitest-not-installed' | null;
|
|
136
|
+
selectedFiles: string[];
|
|
137
|
+
passed: boolean;
|
|
138
|
+
timedOut: boolean;
|
|
139
|
+
failures: BlastRadiusGateFailure[];
|
|
140
|
+
}
|
|
141
|
+
export interface RunBlastRadiusGateOptions {
|
|
142
|
+
timeoutMs: number;
|
|
143
|
+
signal?: AbortSignal;
|
|
144
|
+
runProcess?: (command: string, args: string[], options: AbortableProcessOptions) => Promise<AbortableProcessResult>;
|
|
145
|
+
}
|
|
125
146
|
//# sourceMappingURL=validation-evidence.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planu/cli",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.12",
|
|
4
4
|
"description": "Planu — MCP Server for Spec Driven Development. Cross-platform (Linux/macOS/Windows, x64/arm64).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"prepack": "pnpm build:ts && pnpm package:size",
|
|
90
90
|
"test:debug": "vitest run --inspect-brk --single-thread",
|
|
91
91
|
"validate": "pnpm build && pnpm verify:typescript-migration",
|
|
92
|
-
"validate:full": "pnpm build && pnpm
|
|
92
|
+
"validate:full": "pnpm build && pnpm verify:typescript-migration && (bash scripts/release-preflight.sh --verify || (pnpm typecheck && pnpm lint:gate && pnpm format:check && pnpm test:coverage))",
|
|
93
93
|
"docker:build": "docker build -t planu .",
|
|
94
94
|
"docker:run": "docker compose up",
|
|
95
95
|
"publish:blog": "node scripts/publish-blog.mjs",
|
package/planu-plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dev.planu.cli",
|
|
3
3
|
"displayName": "Planu — Spec Driven Development",
|
|
4
4
|
"description": "Manage software specs, estimations, and autonomous SDD workflows. Language-agnostic MCP server for Claude Code.",
|
|
5
|
-
"version": "5.7.
|
|
5
|
+
"version": "5.7.12",
|
|
6
6
|
"icon": "assets/plugin/icon.svg",
|
|
7
7
|
"command": ["npx", "@planu/cli@latest"],
|
|
8
8
|
"packageName": "@planu/cli",
|