@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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [5.7.9] - 2026-09-02
2
+
3
+ ### Bug Fixes
4
+ - fix(spec-format): classify tests/ helpers by existence and share the executable-test predicate
5
+
6
+
1
7
  ## [5.7.8] - 2026-09-02
2
8
 
3
9
  ### Bug Fixes
@@ -1 +1 @@
1
- {"schemaVersion":1,"commit":"bb0b76967c77e4a602407783d6fdfcee6f0be92d"}
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 &&
@@ -0,0 +1,2 @@
1
+ export declare function isExecutableTestPath(path: string): boolean;
2
+ //# sourceMappingURL=executable-test-path.d.ts.map
@@ -0,0 +1,5 @@
1
+ const EXECUTABLE_TEST_FILE = /(?:^|\/)[^/]+\.(?:test|spec)\.(?:[cm]?[jt]sx?)$/u;
2
+ export function isExecutableTestPath(path) {
3
+ return EXECUTABLE_TEST_FILE.test(path.replaceAll('\\', '/'));
4
+ }
5
+ //# sourceMappingURL=executable-test-path.js.map
@@ -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.startsWith('tests/')) {
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 || EXECUTABLE_TEST_FILE.test(link.path);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planu/cli",
3
- "version": "5.7.8",
3
+ "version": "5.7.9",
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",
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.8",
5
+ "version": "5.7.9",
6
6
  "icon": "assets/plugin/icon.svg",
7
7
  "command": ["npx", "@planu/cli@latest"],
8
8
  "packageName": "@planu/cli",