Repository navigation
Fixed — version source-of-truth + INSTALL TODO
External review of the freshly-shipped v0.5.0 bundle surfaced three
real findings: the human-facing docs still claimed v0.1.x / v0.2.0,
the MCP server announced itself as 0.2.0 regardless of package
version, and INSTALL.md carried an unimplemented
pd init --regenerate-schemas command marked TODO: не реализована.
All three patched in one go.
- Docs versioned and machine-checked.
README.md,OVERVIEW.md,
andINSTALL.mdnow declarev0.5.1on a line tagged with the
<!-- pd:version -->marker. The version source-of-truth vitest
scans those markers and asserts the embedded semver matches the
CLI manifest — future drift breakspnpm testinstead of slipping
to an external reviewer. - MCP
SERVER_VERSIONfollowspackage.json. Mirrors the
pattern already used byCLI_VERSION: a tinypackages/mcp/src/version.ts
loads the manifest viacreateRequire, the constant re-exports
from there. No more hardcoded literal, no more drift on bump. pd schemas regen [<dir>]— new CLI command that refreshes
<space>/schemas/*.jsonfrom the current Zod source. Drop-in
replacement for the old "delete schemas/ and re-init in a temp
dir" workaround documented inINSTALL.md. Useful after upgrading
thepdbinary on an existing space.
Notes
Plain pd validate spaces/pizza-shop-demo stays 0 errors / 0 warnings.
Tests: 355/355 plus three new version-source-of-truth assertions
(MCP parity + doc markers).