Skip to content

v0.3.0 — .pencil-sync/ directory, doctor, auto-detection, setup wizard

Choose a tag to compare

@celstnblacc celstnblacc released this 18 Jun 17:54
· 17 commits to main since this release
a6e356a

What's new in v0.3.0

.pencil-sync/ per-project directory

  • Replaces flat .pencil-sync-state.json with .pencil-sync/state.json + .pencil-sync/last-run.json
  • Automatic migration on first load — existing projects just work
  • last-run.json written after every sync for inspection and tooling

pencil-sync doctor

Six preflight checks with a [✓]/[✗] checklist: Claude CLI on PATH, config valid, pen file accessible, code directory accessible, globs match files, budget > 0. Exits 0 when all pass, 1 when any fail.

Auto-detection helpers

  • detectStyling() now detects css-modules (via *.module.css scan) and plain css fallback
  • New findPenFiles() helper recursively finds .pen files, skipping node_modules and hidden directories

pencil-sync setup interactive wizard

Replaces the dumb init command with a seven-question wizard:

  • Auto-detects framework and styling, shows them as defaults
  • Finds .pen files recursively, lets you pick by number or enter manually
  • Writes pencil-sync.config.json, creates .pencil-sync/ directory
  • Reports next steps after writing config

pencil-sync init is kept as an alias.

Tests

435 → 471 passing (27 test files)

Changelog

  • feat(project-dir): replace flat state file with .pencil-sync/ directory
  • feat(doctor): add pencil-sync doctor preflight command
  • feat(detect): add detectStyling() css-modules/css detection and findPenFiles()
  • feat(setup): add interactive pencil-sync setup wizard replacing init command