Skip to content

DiagramPilot v0.2.5

Choose a tag to compare

@github-actions github-actions released this 07 Jun 12:57
3312423

DiagramPilot v0.2.5

Issue: Repo Workflow Configuration foundation
Issue Version: 0.2.5
Tag: v0.2.5
npm: https://www.npmjs.com/package/diagrampilot/v/0.2.5
Public Website: https://diagrampilot.com

Summary

Add optional Repo Workflow Configuration with diagrampilot.config.yaml.
Zero-config behavior must remain intact, but configured repos should be able to
validate configuration before source processing, discover config upward from the
command scope, apply source ignore patterns, and constrain configured paths to
the config directory tree.

diagrampilot init should not create config by default. diagrampilot init --config should create a minimal config and fail with a repairable message if
one already exists, unless a future --force is added.

Implementation Notes

  • Added optional Repo Workflow Configuration loading for
    diagrampilot.config.yaml with top-level version: 1 and a closed
    foundation schema for sources.ignore.
  • Added upward config discovery from the command scope, stopping at the first
    config found or at the Git root/filesystem root boundary.
  • Validated config before source discovery and source loading in
    checkDiagramPilotRepoWorkflow; invalid config returns repairable
    diagnostics naming the config path and invalid field.
  • Threaded config-root-relative sources.ignore patterns into source
    discovery only. Absolute patterns and .. traversal are invalid config, and
    zero-config next-to-source SVG behavior is unchanged.
  • Kept check read-only and added config.path to structured --json output
    when config is used, displayed relative to the current working directory when
    possible.
  • Added diagrampilot init --config to create minimal version: 1 config;
    normal diagrampilot init still writes no config, and existing config fails
    with repair guidance.
  • Updated public/current-state docs, bumped Issue Version metadata to 0.2.5,
    and refreshed checkout demo SVG provenance.

Validation Results

  • node scripts/bump-release-version.mjs 0.2.5 passed.
  • npm run build && 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.
  • cd demo-projects/checkout && node ../../packages/cli/dist/index.js check --json
    passed with diagramPilotVersion 0.2.5.
  • npm test passed: 191 tests.
  • node scripts/check-release-version.mjs passed at 0.2.5.
  • node packages/cli/dist/index.js check demo-projects/checkout --json
    passed with 1 fresh source.
  • git diff --check passed.
  • npm run check:package-readiness passed for 7 public packages.
  • node scripts/generate-release-notes.mjs --version 0.2.5 --tag v0.2.5
    passed.

User-Facing Docs Links

Known Limitations

  • Configured artifact mappings, source globs, output templates, and configured
    artifact freshness remain scoped to issue 69.