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:
|
|
@hsms4710-pixel — friendly ping on this one. It's been open since June 26 with no updates since the review feedback. Still needed before we can merge:
The Closing as stale for now to keep the queue clean. Reopen anytime when ready — no need to open a new PR. |
|
@hsms4710-pixel — sorry we missed your June 26 update before closing this as stale. You'd already addressed all three review items ( Please reopen when you have a moment and rebase onto latest If easier, push a fresh branch and we'll merge from there. Thanks for sticking with it — |
|
@hsms4710-pixel — merged in #88. Sorry again for the premature stale close. Your June 26 update had already addressed the review — we rebased, fixed tests/CI wiring, and landed |
feat(tools): add loop-sync CLI (#47)
- Resolve package.json conflict (loop-sync + mcp-server in test:tools) - Wire loop-sync into ci-validate-gates.sh - Fix sync.ts syntax + multi-tool skills scan (.grok/.claude/.codex) - Fix tests: use dist/, node:test API, npm run build - Add @types/node devDependency - README Quick Links entry Thanks @hsms4710-pixel
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: