Skip to content

feat: add devtools_restampRepo write tool and githubWrite utility#10

Merged
TMHSDigital merged 1 commit into
mainfrom
feat/restamp-repo-tool
May 24, 2026
Merged

feat: add devtools_restampRepo write tool and githubWrite utility#10
TMHSDigital merged 1 commit into
mainfrom
feat/restamp-repo-tool

Conversation

@TMHSDigital
Copy link
Copy Markdown
Owner

Summary

  • Adds devtools_restampRepo: dry-run or apply standards-version restamp across fleet repos. Dry-run delegates to the canonical Python drift checker (scripts/drift_check/cli.py) to discover drifted files. Apply mode stamps files via the canonical Phase 1 Python scripts, creates a branch per repo, opens a PR, polls the Ecosystem drift check, and squash-merges.
  • Adds githubWrite<T> utility in src/utils/github.ts for token-gated POST/PUT/PATCH/DELETE calls to the GitHub REST API.
  • 5 tests added (schema validation + DEVTOOLS_META_ROOT guard).
  • mcp-tools.json updated to 5 tools.
  • CHANGELOG and ROADMAP updated.

Dogfood result

Dry-run against full fleet (9 active repos) via canonical drift checker: errors=0 warnings=0 repos=9. Zero planned changes confirmed before shipping.

Safety posture

  • DEVTOOLS_META_ROOT required for both dry-run and apply (tool delegates file discovery to canonical stamper).
  • GH_TOKEN/GITHUB_TOKEN required for apply.
  • apply=false by default.
  • Version must match meta STANDARDS_VERSION; tool rejects stamps ahead of meta.

Signed-off-by: fOuttaMyPaint <TMhospitalitystrategies@gmail.com>
@TMHSDigital TMHSDigital merged commit 6a73640 into main May 24, 2026
7 checks passed
@TMHSDigital TMHSDigital deleted the feat/restamp-repo-tool branch May 24, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant