feat(tools): add loop-sync CLI for drift detection and configuration …#47
feat(tools): add loop-sync CLI for drift detection and configuration …#47hsms4710-pixel wants to merge 2 commits into
Conversation
…sync - Detect drift between STATE.md ↔ LOOP.md - Check for missing required files (STATE.md, LOOP.md, AGENTS.md) - Scan skills directory for version information - Calculate consistency score (0-100) with health levels - Provide actionable suggestions for fixing issues - Support JSON and human-readable output formats - Include comprehensive test suite This tool helps teams maintain consistent Loop configurations across their repositories and detect configuration drift early. Closes #none (new feature)
cobusgreyling
left a comment
There was a problem hiding this comment.
Thanks for the contribution. CI passed on our side. Before merge please:
-
Add built dist/ files (see how loop-init / loop-audit do it package.json points at dist/cli.js but no dist is committed)
-
Wire into repo CI / root tooling like the other tools
-
Complete the PR checklist
Audit Check Failure - Permission IssueThe Root CauseThis is not a code issue with this PR. It is a GitHub Actions permission limitation for fork PRs:
NoteThe The workflow permissions may need to be adjusted to handle fork PRs correctly. |
- Build dist/ directory for loop-sync CLI - Add !tools/loop-sync/dist/ to .gitignore - Add test:loop-sync and update test:tools, build:tools scripts - Fix TypeScript types in sync.ts (add help? and json? to SyncOptions)
|
All 3 requirements are now met:
|
Summary
Adds
loop-syncCLI tool for detecting drift betweenSTATE.mdandLOOP.mdfiles, and synchronizing them. Addresses a common pain point where state and loop definitions become out of sync over time.Changes
templates/pattern-template.md+ updatedregistry.yaml)Checklist (from CONTRIBUTING)
STATE.md*examples use.examplesuffixdocs/safety.mdnode tools/loop-audit/dist/cli.js .(score: 100/100) and addressed findingsTesting / Dogfood
loop-auditpasses on this repo (score: 100/100)loop-sync .and test suite passScreenshots / Examples (if UI or command output)
Real
loop-sync .output against this repo: