@planu/cli 5.7.14 → 5.7.15
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 +9 -0
- package/README.md +3 -6
- package/dist/.planu-build.json +1 -1
- package/dist/config/runtime-policy.json +1 -1
- package/dist/engine/mcp-config/mcp-config-writer.d.ts +1 -0
- package/dist/engine/mcp-config/mcp-config-writer.js +11 -0
- package/dist/tools/init-project/handler.js +3 -1
- package/package.json +1 -1
- package/planu-plugin.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [5.7.15] - 2026-09-03
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
- fix(docker): build from the Node toolchain only and drop orphaned native metadata (SPEC-1784)
|
|
5
|
+
- fix(validate): give the blast-radius integration pass a 600 s budget (SPEC-1782)
|
|
6
|
+
- fix(release): never republish an acknowledged version and accept the already-published 403 (SPEC-1782)
|
|
7
|
+
- fix(init-project): pin legacy npx @latest MCP entry on init (SPEC-1783)
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [5.7.14] - 2026-09-03
|
|
2
11
|
|
|
3
12
|
### Features
|
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@planu/cli)
|
|
6
6
|

|
|
7
|
-

|
|
8
7
|

|
|
9
8
|
|
|
10
9
|
**[Documentation](https://planu.dev)** · **[Español (Latinoamérica)](https://planu.dev/es)** · **[Español (España)](https://planu.dev/es-ES)** · **[Português](https://planu.dev/pt)**
|
|
@@ -13,11 +12,10 @@
|
|
|
13
12
|
|
|
14
13
|
## What is Planu?
|
|
15
14
|
|
|
16
|
-
Planu is a Spec Driven Development stack for AI coding agents: an MCP server and local CLI that move work from a reviewed specification to validation evidence.
|
|
15
|
+
Planu is a Spec Driven Development stack for AI coding agents: an MCP server and local CLI that move work from a reviewed specification to validation evidence.
|
|
17
16
|
|
|
18
17
|
**Spec first, always.** No approved spec means no code. This eliminates vibe-coding debt at scale.
|
|
19
18
|
|
|
20
|
-
- **Native Rust Engine** — accelerates supported project scanning, hashing, and extraction paths.
|
|
21
19
|
- **Local change detection** — observes project changes without requiring a hosted configuration service.
|
|
22
20
|
- **Unified Spec Format** — Requirements and technical details in a single, context-efficient `spec.md`.
|
|
23
21
|
- **Atomic Integrity** — Indestructible writes and **Freeze-on-done** immutability (P0).
|
|
@@ -41,7 +39,7 @@ Add to your MCP client config (Claude Desktop: `~/Library/Application Support/Cl
|
|
|
41
39
|
}
|
|
42
40
|
```
|
|
43
41
|
|
|
44
|
-
**Requirements:** Node.js >= 22.13.
|
|
42
|
+
**Requirements:** Node.js >= 22.13.
|
|
45
43
|
|
|
46
44
|
**Upgrade safety:** stop every running Planu process before upgrading. Current releases use a single transactional SQLite lock authority with monotonic fencing; concurrent mixed-version execution is intentionally unsupported because older file-lock clients cannot participate in the same atomic protocol.
|
|
47
45
|
|
|
@@ -93,8 +91,7 @@ The external root follows the operating system's application-data convention and
|
|
|
93
91
|
|
|
94
92
|
```
|
|
95
93
|
src/
|
|
96
|
-
├── engine/ #
|
|
97
|
-
│ └── planu-core.node # High-performance native module
|
|
94
|
+
├── engine/ # Business logic: estimator, analyzer, validator
|
|
98
95
|
├── tools/ # Canonical SDD MCP tools + internal workflow handlers
|
|
99
96
|
├── storage/ # Atomic persistence layer
|
|
100
97
|
└── types/ # Strict TypeScript contracts
|
package/dist/.planu-build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"commit":"
|
|
1
|
+
{"schemaVersion":1,"commit":"c98d593f0b05bdf5da7ae4ff737b7757c0a76b6c"}
|
|
@@ -17,6 +17,7 @@ export declare function isPlanuDirectlyConfigured(configPath: string, expectedVe
|
|
|
17
17
|
* Does not overwrite unrelated keys.
|
|
18
18
|
*/
|
|
19
19
|
export declare function injectDirectPlanuEntry(configPath: string, currentVersion: string, latestVersion: string): Promise<void>;
|
|
20
|
+
export declare function healLegacyLatestEntry(projectPath: string, version: string): Promise<boolean>;
|
|
20
21
|
/**
|
|
21
22
|
* Checks if a version gap exists and, if so, injects the direct Planu MCP entry.
|
|
22
23
|
* Returns a structured result for the tool response.
|
|
@@ -5,6 +5,7 @@ import { readFile, writeFile } from 'node:fs/promises';
|
|
|
5
5
|
import { join } from 'node:path';
|
|
6
6
|
import { homedir } from 'node:os';
|
|
7
7
|
import { buildPinnedEntry } from '../auto-updater/config-patcher.js';
|
|
8
|
+
import { detectInstallMethod } from '../auto-updater/config-detector.js';
|
|
8
9
|
import { fileExistsByRead } from '../../core/shared/fs.js';
|
|
9
10
|
// ---------------------------------------------------------------------------
|
|
10
11
|
// Constants
|
|
@@ -95,6 +96,16 @@ export async function injectDirectPlanuEntry(configPath, currentVersion, latestV
|
|
|
95
96
|
};
|
|
96
97
|
await writeFile(configPath, JSON.stringify(updated, null, 2) + '\n', 'utf-8');
|
|
97
98
|
}
|
|
99
|
+
export async function healLegacyLatestEntry(projectPath, version) {
|
|
100
|
+
const configPath = join(projectPath, '.mcp.json');
|
|
101
|
+
const config = await readJsonFile(configPath);
|
|
102
|
+
const planuEntry = config.mcpServers?.[PLANU_KEY];
|
|
103
|
+
if (planuEntry === undefined || detectInstallMethod(planuEntry) !== 'npx-latest') {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
await injectDirectPlanuEntry(configPath, version, version);
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
98
109
|
// ---------------------------------------------------------------------------
|
|
99
110
|
// High-level orchestrator
|
|
100
111
|
// ---------------------------------------------------------------------------
|
|
@@ -13,7 +13,8 @@ import { detectMissingAreas, buildRequestPrompt } from '../../engine/context-mer
|
|
|
13
13
|
import { detectProjectPrivacyConfig, maybeGenerateEnvExample, buildBeginnerEnvGuide, } from './helpers.js';
|
|
14
14
|
import { buildDefaultPrivacyConfig } from '../../engine/pii-detector.js';
|
|
15
15
|
import { checkBundledVersionGap } from '../../engine/version-detector/bundled-version-checker.js';
|
|
16
|
-
import { checkAndFixBundledVersion } from '../../engine/mcp-config/mcp-config-writer.js';
|
|
16
|
+
import { checkAndFixBundledVersion, healLegacyLatestEntry, } from '../../engine/mcp-config/mcp-config-writer.js';
|
|
17
|
+
import { planuVersion } from '../../config/version.js';
|
|
17
18
|
import { buildInitProjectResult } from './result-builder.js';
|
|
18
19
|
import { fetchRecommendedSkills } from '../suggest-tooling/skills-fetcher.js';
|
|
19
20
|
import { autoCompleteSpecs } from '../git/auto-complete-ops.js';
|
|
@@ -223,6 +224,7 @@ export async function handleInitProject(params, server) {
|
|
|
223
224
|
// SPEC-1699: Sweep runtime residue on every init_project run, including the
|
|
224
225
|
// already-initialized early-return path below — not just the fresh-init path.
|
|
225
226
|
scheduleHousekeepingSweeps(projectPath);
|
|
227
|
+
void healLegacyLatestEntry(projectPath, planuVersion()).catch(() => undefined);
|
|
226
228
|
const authorizedMigrations = params.authorizedMigrations ?? [];
|
|
227
229
|
if (isUpdate && authorizedMigrations.length === 0) {
|
|
228
230
|
const reconciliation = await reconcilePortableSpecIndex(projectPath, projectId);
|
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.15",
|
|
6
6
|
"icon": "assets/plugin/icon.svg",
|
|
7
7
|
"command": ["npx", "@planu/cli@latest"],
|
|
8
8
|
"packageName": "@planu/cli",
|