Implementation:A5c ai Babysitter atlas repo sync
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Plugin_Generation, Repository_Sync |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
CLI tools for synchronizing generated atlas plugin packages to external GitHub repositories.
Description
Two sync scripts handle repository synchronization:
- sync-atlas-plugin-repos.mjs — Syncs atlas plugin packages to per-suffix GitHub repos (a5c-ai/atlas-<suffix>). Uses ATLAS_REPO_SUFFIXES map to determine repo names. Initializes git repos locally, sets remote origin, commits, and optionally pushes with gh repo create.
- sync-external-plugin-repos.mjs — Syncs external (non-atlas) plugin packages to their target repos. Same git workflow: init, remote, commit, optional push.
Both scripts default to dry-run (local git operations only). The --push flag enables GitHub push (CI only).
Usage
- Atlas plugin generation Step 5: Sync generated plugin packages to external repositories.
Code Reference
Source Location
- Repository: Babysitter
- File (atlas sync): scripts/sync-atlas-plugin-repos.mjs:L1-80+
- File (external sync):** scripts/sync-external-plugin-repos.mjs:L1-80+
Signature
# Atlas plugin repo sync
node scripts/sync-atlas-plugin-repos.mjs [--branch <b>] [--work-dir <d>] [--push]
# External plugin repo sync
node scripts/sync-external-plugin-repos.mjs [--branch <b>] [--work-dir <d>] [--push]
Import
# CLI scripts — run directly
node scripts/sync-atlas-plugin-repos.mjs
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| --branch | string | No | Target branch (default: GITHUB_REF_NAME or current git branch or develop) |
| --work-dir | string | No | Working directory (default: artifacts/atlas-external-repos) |
| --push | boolean | No | Push to GitHub (CI only; default is dry-run) |
Outputs
| Name | Type | Description |
|---|---|---|
| local repos | directories | Per-repo git repos at work-dir with remote origin set |
| GitHub repos | remote | With --push: repos created via gh, committed, pushed |
Usage Examples
Dry-Run Sync
# Dry-run: local git repos only, no push
node scripts/sync-atlas-plugin-repos.mjs
# Custom branch and work directory
node scripts/sync-atlas-plugin-repos.mjs --branch main --work-dir ./my-repos
Push to GitHub (CI)
# Push: creates repos and pushes (CI only)
node scripts/sync-atlas-plugin-repos.mjs --push --branch main
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment