Repository navigation
v0.3.0 — .pencil-sync/ directory, doctor, auto-detection, setup wizard
What's new in v0.3.0
.pencil-sync/ per-project directory
- Replaces flat
.pencil-sync-state.jsonwith.pencil-sync/state.json+.pencil-sync/last-run.json - Automatic migration on first load — existing projects just work
last-run.jsonwritten 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 detectscss-modules(via*.module.cssscan) and plaincssfallback- New
findPenFiles()helper recursively finds.penfiles, skippingnode_modulesand 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
.penfiles 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