DiagramPilot v0.2.4
DiagramPilot v0.2.4
Issue: YAML-only source support
Issue Version: 0.2.4
Tag: v0.2.4
npm: https://www.npmjs.com/package/diagrampilot/v/0.2.4
Public Website: https://diagrampilot.com
Summary
Remove *.dp.json as a DiagramPilot Source File format for v0.3.0. YAML stays
the only Authoring Format. JSON remains valid for structured CLI output,
DiagramSpec JSON Schema, SVG provenance metadata, package manifests, and other
tooling surfaces.
When users explicitly pass old JSON source files, commands should fail with a
repairable diagnostic that points them to YAML source files. Do not add a
JSON-to-YAML migration command in this issue.
Implementation Notes
- Removed
*.dp.jsonfrom recursive DiagramPilot Source File discovery. Directory
scans now discover*.dp.yamlonly, while explicit.dp.jsoncheck scopes
fail with a YAML-oriented repair hint instead of silently passing. - Added an
unsupported-source-formatsource-loading failure for explicit
legacy JSON source paths.validate,export, andrendernow reject
*.dp.jsonbefore JSON parsing and point users to*.dp.yaml. - Preserved structured
--jsoncommand output. Added focused command-planning
coverage for successful YAML validation JSON output and legacy JSON-source
repair hints in JSON output. - Preserved non-source JSON surfaces: DiagramSpec JSON Schema tests, SVG
provenance JSON tests, and package manifest readiness tests continue to pass. - Did not add a JSON-to-YAML migration command.
- Updated public docs,
README.md,llms.txt, init-generated local guidance,
maintainer docs, and the v0.3.0 PRD to present YAML-only source support and
distinguish source removal from JSON tooling compatibility. - Release-note callout: DiagramPilot
0.2.4removes*.dp.jsonas a
DiagramPilot Source File format. Convert legacy JSON sources to*.dp.yaml;
JSON remains supported for CLI--jsonoutput, DiagramSpec JSON Schema, SVG
provenance metadata, package manifests, and other tooling surfaces. - Bumped shared DiagramPilot release metadata to Issue Version
0.2.4and
refreshed checkout demo SVG provenance at0.2.4.
Validation Results
node scripts/bump-release-version.mjs 0.2.4passed.npm run buildpassed.cd demo-projects/checkout && node ../../packages/cli/dist/index.js render docs/architecture.dp.yaml --out docs/architecture.svg
passed.cd demo-projects/checkout && node ../../packages/cli/dist/index.js check
passed: 1 DiagramPilot Source File fresh.node --test --test-concurrency=1 test/repo-workflow-source-discovery.test.mjs
passed: 6 tests.node --test --test-concurrency=1 test/validated-diagramspec-loading.test.mjs
passed: 6 tests.node --test --test-concurrency=1 test/cli-smoke.test.mjs
passed: 15 tests.node --test --test-concurrency=1 test/cli-command-planning.test.mjs
passed: 28 tests.node --test --test-concurrency=1 test/cli-validate-json-output.test.mjs
passed: 2 tests.node --test --test-concurrency=1 test/diagramspec-json-schema.test.mjs test/render-svg-provenance.test.mjs test/package-readiness.test.mjs
passed: 11 tests.node --test --test-concurrency=1 test/docs-public-boundary.test.mjs
passed: 18 tests.node --test --test-concurrency=1 test/cli-command-planning.test.mjs test/cli-validate-json-output.test.mjs test/documentation-contract.test.mjs test/maintainability-file-size-gate.test.mjs
passed: 41 tests.npm testpassed: 183 tests.node packages/cli/dist/index.js validate demo-projects/checkout/docs/architecture.dp.yaml
passed.node scripts/check-release-version.mjspassed at0.2.4.node scripts/generate-release-notes.mjs --version 0.2.4 --tag v0.2.4
passed and generated release notes that call out JSON source removal.git diff --checkpassed.
User-Facing Docs Links
- https://diagrampilot.com/docs/agents/spec.md
- https://diagrampilot.com/docs/agents/quickstart.md
- https://diagrampilot.com/docs/agents/installation.md
- https://diagrampilot.com/llms.txt
Known Limitations
- No JSON-to-YAML migration command was added. Convert legacy source files to
*.dp.yamlmanually or with project-owned tooling.
Follow-Up
- None.