@planu/cli 5.7.8 → 5.7.9
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 +6 -0
- package/dist/.planu-build.json +1 -1
- package/dist/engine/evidence-gates/artifact-reader.js +1 -3
- package/dist/engine/spec-format/executable-test-path.d.ts +2 -0
- package/dist/engine/spec-format/executable-test-path.js +5 -0
- package/dist/engine/spec-format/technical-md-populator.js +2 -1
- package/dist/engine/validator/spec-compliance-runner.js +2 -2
- package/package.json +1 -1
- package/planu-plugin.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/.planu-build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"commit":"
|
|
1
|
+
{"schemaVersion":1,"commit":"9ddcdc47f75373526e7030970205000a1b7a4c70"}
|
|
@@ -9,6 +9,7 @@ import { projectDataDir } from '../../storage/base-store.js';
|
|
|
9
9
|
import { computeValidationEvidenceIdentity, computeValidationEvidenceKey, normalizeValidationCommand, readMatchingValidationEvidence, } from '../validation-evidence-ledger.js';
|
|
10
10
|
import { VALIDATION_COMMANDS } from '../validation-impact-planner.js';
|
|
11
11
|
import { renderSchemaSkeleton } from '../handoff-artifacts/schema-skeleton.js';
|
|
12
|
+
import { isExecutableTestPath } from '../spec-format/executable-test-path.js';
|
|
12
13
|
const DIGEST = /^sha256:[a-f0-9]{64}$/u;
|
|
13
14
|
const SPEC_ID = /^SPEC-[1-9]\d*$/u;
|
|
14
15
|
const ISSUER_ID = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;
|
|
@@ -196,9 +197,6 @@ function repositoryEvidencePathsAreCurrent(row, projectPath, additionalPaths = [
|
|
|
196
197
|
}
|
|
197
198
|
}));
|
|
198
199
|
}
|
|
199
|
-
function isExecutableTestPath(path) {
|
|
200
|
-
return /(?:^|\/)[^/]+\.(?:test|spec)\.[cm]?[jt]sx?$/u.test(path.replaceAll('\\', '/'));
|
|
201
|
-
}
|
|
202
200
|
/** Verify legacy test-backed evidence without admitting prose-only traceability rows. */
|
|
203
201
|
export function traceabilityRowHasCurrentTestEvidence(row, args) {
|
|
204
202
|
return (row.commandEvidence === undefined &&
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// engine/spec-format/technical-md-populator.ts — SPEC-586: Parse spec body to populate ## Technical
|
|
2
2
|
import { stat } from 'node:fs/promises';
|
|
3
3
|
import { dirname, extname, join } from 'node:path';
|
|
4
|
+
import { isExecutableTestPath } from './executable-test-path.js';
|
|
4
5
|
import { findMarkdownSectionRange } from './markdown-sections.js';
|
|
5
6
|
const FILE_PATH_RE = /(?<![\w/.:-])\.?[\w-]+(?:\.[\w-]+)*(?:\/\.?[\w-]+(?:\.[\w-]+)*)+/g;
|
|
6
7
|
function stripFencedBlocks(content) {
|
|
@@ -66,7 +67,7 @@ async function categorizeByExistence(paths, projectPath) {
|
|
|
66
67
|
const modify = [];
|
|
67
68
|
const test = [];
|
|
68
69
|
for (const p of paths) {
|
|
69
|
-
if (p
|
|
70
|
+
if (isExecutableTestPath(p)) {
|
|
70
71
|
test.push({ path: p, status: 'pending' });
|
|
71
72
|
continue;
|
|
72
73
|
}
|
|
@@ -8,6 +8,7 @@ import { technologyValue } from '../technology-registry.js';
|
|
|
8
8
|
import { readMatchingValidationEvidence } from '../validation-evidence-ledger.js';
|
|
9
9
|
import { readEvidenceArtifacts, traceabilityRowHasCurrentCommandEvidence, } from '../evidence-gates/artifact-reader.js';
|
|
10
10
|
import { normalizeCriterionText } from '../criterion-identity.js';
|
|
11
|
+
import { isExecutableTestPath } from '../spec-format/executable-test-path.js';
|
|
11
12
|
import { normalizeExecutableEvidence } from './executable-evidence.js';
|
|
12
13
|
/** A sanitized terminal adapter failure that cannot be mistaken for a failed test verdict. */
|
|
13
14
|
export class ComplianceCommandTerminalError extends Error {
|
|
@@ -432,9 +433,8 @@ async function resolveLink(link, projectPath) {
|
|
|
432
433
|
function groupKey(link) {
|
|
433
434
|
return `${link.runner}\0${link.config ?? ''}`;
|
|
434
435
|
}
|
|
435
|
-
const EXECUTABLE_TEST_FILE = /(?:^|\/)[^/]+\.(?:test|spec)\.(?:[cm]?[jt]sx?)$/u;
|
|
436
436
|
function isExecutableTestLink(link) {
|
|
437
|
-
return link.runner !== undefined ||
|
|
437
|
+
return link.runner !== undefined || isExecutableTestPath(link.path);
|
|
438
438
|
}
|
|
439
439
|
function normalizedEvidencePath(path) {
|
|
440
440
|
return path.trim().replaceAll('\\', '/').replace(/^\.\//u, '');
|
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.7.
|
|
5
|
+
"version": "5.7.9",
|
|
6
6
|
"icon": "assets/plugin/icon.svg",
|
|
7
7
|
"command": ["npx", "@planu/cli@latest"],
|
|
8
8
|
"packageName": "@planu/cli",
|