@planu/cli 5.3.58 → 5.3.59
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 +10 -0
- package/dist/.planu-build.json +1 -1
- package/dist/tools/schemas/validate-output-schema.d.ts +8 -0
- package/dist/tools/schemas/validate-output-schema.js +2 -0
- package/dist/tools/validate-graph-coverage.js +19 -7
- package/dist/tools/validate.js +4 -3
- package/dist/types/project-knowledge-graph.d.ts +1 -0
- package/package.json +1 -1
- package/planu-plugin.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [5.3.59] - 2026-08-26
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
- fix(SPEC-1631): report graph coverage as unavailable instead of zero gaps
|
|
5
|
+
|
|
6
|
+
### Chores
|
|
7
|
+
- chore(planu): close SPEC-1631
|
|
8
|
+
- chore(planu): record SPEC-1631 implementing transition
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [5.3.58] - 2026-08-26
|
|
2
12
|
|
|
3
13
|
### Bug Fixes
|
package/dist/.planu-build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"commit":"
|
|
1
|
+
{"schemaVersion":1,"commit":"8ad23a1b29d2ffe8c44122aba263f9a6e9577d80"}
|
|
@@ -19,6 +19,10 @@ export declare const ValidateCompletionOutputSchema: {
|
|
|
19
19
|
failing: "failing";
|
|
20
20
|
passing: "passing";
|
|
21
21
|
}>;
|
|
22
|
+
graphAvailability: z.ZodEnum<{
|
|
23
|
+
available: "available";
|
|
24
|
+
unavailable: "unavailable";
|
|
25
|
+
}>;
|
|
22
26
|
}, z.core.$strip>;
|
|
23
27
|
counts: z.ZodObject<{
|
|
24
28
|
matches: z.ZodNumber;
|
|
@@ -198,6 +202,10 @@ export declare const ValidateCompletionOutputSchema: {
|
|
|
198
202
|
}, z.core.$strip>>;
|
|
199
203
|
}, z.core.$strip>>;
|
|
200
204
|
graphCoverage: z.ZodObject<{
|
|
205
|
+
availability: z.ZodEnum<{
|
|
206
|
+
available: "available";
|
|
207
|
+
unavailable: "unavailable";
|
|
208
|
+
}>;
|
|
201
209
|
gapsCount: z.ZodNumber;
|
|
202
210
|
gapsTop5: z.ZodArray<z.ZodString>;
|
|
203
211
|
freshness: z.ZodOptional<z.ZodObject<{
|
|
@@ -40,6 +40,7 @@ export const ValidateCompletionOutputSchema = {
|
|
|
40
40
|
failed: z.number(),
|
|
41
41
|
total: z.number(),
|
|
42
42
|
status: z.enum(['passing', 'failing']),
|
|
43
|
+
graphAvailability: z.enum(['available', 'unavailable']),
|
|
43
44
|
}),
|
|
44
45
|
counts: z.object({
|
|
45
46
|
matches: z.number(),
|
|
@@ -162,6 +163,7 @@ export const ValidateCompletionOutputSchema = {
|
|
|
162
163
|
})
|
|
163
164
|
.optional(),
|
|
164
165
|
graphCoverage: z.object({
|
|
166
|
+
availability: z.enum(['available', 'unavailable']),
|
|
165
167
|
gapsCount: z.number(),
|
|
166
168
|
gapsTop5: z.array(z.string()),
|
|
167
169
|
freshness: z
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// tools/validate-graph-coverage.ts — Graph coverage helpers for validate.
|
|
2
|
+
import { reportClassifiedDegradation } from '../errors/classified-degradation.js';
|
|
2
3
|
import { queryProjectGraphSlice } from '../engine/project-graph/index.js';
|
|
3
4
|
function graphCoverageGaps(slice) {
|
|
4
|
-
if (slice === null) {
|
|
5
|
-
return [];
|
|
6
|
-
}
|
|
7
5
|
const criteria = slice.nodes.filter((node) => node.type === 'criterion');
|
|
8
6
|
return criteria
|
|
9
7
|
.filter((criterion) => {
|
|
@@ -14,15 +12,29 @@ function graphCoverageGaps(slice) {
|
|
|
14
12
|
.slice(0, 10);
|
|
15
13
|
}
|
|
16
14
|
export async function buildGraphCoverageReport(args) {
|
|
17
|
-
|
|
15
|
+
let graphSlice;
|
|
16
|
+
try {
|
|
17
|
+
graphSlice = await queryProjectGraphSlice(args);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
reportClassifiedDegradation('GRAPH_COVERAGE_UNAVAILABLE', error);
|
|
21
|
+
graphSlice = null;
|
|
22
|
+
}
|
|
23
|
+
if (graphSlice === null) {
|
|
24
|
+
return { availability: 'unavailable', gaps: [], compactNodes: 0, compactEdges: 0 };
|
|
25
|
+
}
|
|
18
26
|
return {
|
|
19
|
-
|
|
27
|
+
availability: 'available',
|
|
28
|
+
freshness: graphSlice.freshness,
|
|
20
29
|
gaps: graphCoverageGaps(graphSlice),
|
|
21
|
-
compactNodes: graphSlice
|
|
22
|
-
compactEdges: graphSlice
|
|
30
|
+
compactNodes: graphSlice.nodes.length,
|
|
31
|
+
compactEdges: graphSlice.edges.length,
|
|
23
32
|
};
|
|
24
33
|
}
|
|
25
34
|
export function formatGraphCoverageText(report) {
|
|
35
|
+
if (report.availability === 'unavailable') {
|
|
36
|
+
return '\nGRAPH unavailable (project graph unreadable)';
|
|
37
|
+
}
|
|
26
38
|
return report.gaps.length > 0
|
|
27
39
|
? `\nGRAPH ${String(report.gaps.length)} graph-backed coverage gap(s)`
|
|
28
40
|
: '';
|
package/dist/tools/validate.js
CHANGED
|
@@ -583,7 +583,7 @@ export async function executeValidate(args, server, onProgress) {
|
|
|
583
583
|
});
|
|
584
584
|
const graphText = formatGraphCoverageText(graphCoverage);
|
|
585
585
|
// SPEC-512: Compact structuredContent — essential fields only at top level
|
|
586
|
-
const compactSummary = buildCompactSummary(specId, effectiveResult.score === null ? null : effectiveScore, passedCount, failedCount + (qualityGateSummary.passed ? 0 : 1), totalCriteria);
|
|
586
|
+
const compactSummary = buildCompactSummary(specId, effectiveResult.score === null ? null : effectiveScore, passedCount, failedCount + (qualityGateSummary.passed ? 0 : 1), totalCriteria, graphCoverage.availability);
|
|
587
587
|
const structuredBase = buildValidateStructuredContent({
|
|
588
588
|
specId,
|
|
589
589
|
title: spec.title,
|
|
@@ -718,7 +718,7 @@ function buildEffectiveValidationResult(result, specCompliance) {
|
|
|
718
718
|
indeterminate: executableCoverage.indeterminate,
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
|
-
function buildCompactSummary(specId, score, passedCount, failedCount, totalCriteria) {
|
|
721
|
+
function buildCompactSummary(specId, score, passedCount, failedCount, totalCriteria, graphAvailability) {
|
|
722
722
|
return {
|
|
723
723
|
specId,
|
|
724
724
|
score,
|
|
@@ -726,6 +726,7 @@ function buildCompactSummary(specId, score, passedCount, failedCount, totalCrite
|
|
|
726
726
|
failed: failedCount,
|
|
727
727
|
total: totalCriteria,
|
|
728
728
|
status: failedCount === 0 ? 'passing' : 'failing',
|
|
729
|
+
graphAvailability,
|
|
729
730
|
};
|
|
730
731
|
}
|
|
731
732
|
function buildValidateStructuredContent(args) {
|
|
@@ -859,10 +860,10 @@ function buildValidateStructuredContent(args) {
|
|
|
859
860
|
}
|
|
860
861
|
: undefined,
|
|
861
862
|
graphCoverage: {
|
|
863
|
+
availability: args.graphCoverage.availability,
|
|
862
864
|
gapsCount: args.graphCoverage.gaps.length,
|
|
863
865
|
gapsTop5: args.graphCoverage.gaps.slice(0, 5),
|
|
864
866
|
freshness: args.graphCoverage.freshness,
|
|
865
|
-
summary: args.graphCoverage.summary,
|
|
866
867
|
},
|
|
867
868
|
suggestionsTop5: args.suggestions.slice(0, 5),
|
|
868
869
|
});
|
package/package.json
CHANGED
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.3.
|
|
5
|
+
"version": "5.3.59",
|
|
6
6
|
"icon": "assets/plugin/icon.svg",
|
|
7
7
|
"command": ["npx", "@planu/cli@latest"],
|
|
8
8
|
"packageName": "@planu/cli",
|