assistant-claw/scripts/mirror-nuwa-to-moments.sh
Atlas refactor bd0be97630 Refactor: drop Vega framing, promote Atlas to repo root
This repo IS Atlas (总助 Claw / 老板视角项目执行雷达). The earlier
two-profile framing (Atlas + Vega placeholder) was a misread — Vega is
the agent persona answering Multica issues, not the product. Vega has
no relationship to assistant-claw the product.

Changes:
- Move atlas/* to top-level (git mv preserves history)
- Remove empty Vega placeholders prompts/.gitkeep, tools/.gitkeep
- Delete atlas/ wrapper directory (now empty)
- Update path references in INTEGRATION-hermes.md, scripts/mirror-...sh,
  docs/decisions/0001-mirror-nuwa-skill.md
- Rewrite README.md as Atlas-only, remove dual-profile language

After this commit:
- Top-level OpenClaw 8 files (IDENTITY/SOUL/USER/AGENTS/TOOLS/MEMORY/
  BOOTSTRAP/HEARTBEAT + CLAUDE symlink + zh-CN mirrors)
- skills/{6 sub-skills + DESCRIPTION + README}
- mcp-tools/{spec + Python implementation}
- state-schemas/{project, person, customer + README}
- autopilots/{5 atlas-*.yaml}
- client-deck/, docs/decisions/, scripts/

The ~/.hermes/skills/atlas/ destination convention preserved (atlas as
a skill namespace on the operator's machine, distinct from source path).
2026-05-09 17:54:18 +08:00

43 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
# Mirror github.com/alchaincyf/nuwa-skill (MIT) into Moments private Gitea.
#
# Why we mirror: Atlas's claw-boss-distiller depends on nuwa-skill methodology
# (`references/extraction-framework.md`). For air-gapped client deployments where
# the client network cannot reach github.com, our private Gitea must serve nuwa.
#
# Prereq: a destination repo on git.moments.top must already exist (empty).
# Default target: https://git.moments.top/Moments.top/nuwa-skill.git
#
# Create it once via Gitea UI (the bot account doesn't have org-create scope):
# https://git.moments.top/repo/create → owner: Moments.top → name: nuwa-skill → empty
#
# Usage:
# ./scripts/mirror-nuwa-to-moments.sh
# ./scripts/mirror-nuwa-to-moments.sh https://git.moments.top/your-org/nuwa-skill.git
#
# After first mirror, schedule a weekly cron to re-mirror upstream changes.
set -euo pipefail
UPSTREAM="https://github.com/alchaincyf/nuwa-skill.git"
TARGET="${1:-https://git.moments.top/Moments.top/nuwa-skill.git}"
WORKDIR="$(mktemp -d -t nuwa-mirror-XXXXXX)"
echo "Mirror $UPSTREAM$TARGET"
echo "Workdir: $WORKDIR"
# Bare clone preserves all branches/tags/refs
git clone --mirror "$UPSTREAM" "$WORKDIR"
cd "$WORKDIR"
# Push everything (--mirror = all refs incl. delete on remote)
git push --mirror "$TARGET"
cd /
rm -rf "$WORKDIR"
echo "✅ Mirror complete: $TARGET"
echo
echo "Next: update skills/claw-boss-distiller/upstream/README.md to point"
echo " air-gapped deployments at the Moments mirror instead of GitHub."