Some checks failed
CI / validate (pull_request) Failing after 13s
- Add install.sh to copy self-improvement files to ~/.hermes/ - Update allegro-cycle-state.json: mark init cycle complete, start deploy cycle - Fix burn-mode-validator.py to auto-create burn-logs directory - Install executed; files now live in /root/.hermes/ Refs #845 #842
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# Allegro Self-Improvement Infrastructure Installer
|
|
# Deploys operational files from the-nexus fleet/allegro/ to ~/.hermes/
|
|
# Part of Epic #842 (M2-M7)
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
HOME_DIR="${HOME:-$(eval echo ~$(whoami))}"
|
|
TARGET_DIR="${HOME_DIR}/.hermes"
|
|
LOG_DIR="${TARGET_DIR}/burn-logs"
|
|
|
|
echo "[install] Deploying Allegro self-improvement infrastructure..."
|
|
|
|
mkdir -p "${TARGET_DIR}"
|
|
mkdir -p "${LOG_DIR}"
|
|
|
|
# Copy operational files (not symlinks; these need to survive repo checkouts)
|
|
cp -v "${SCRIPT_DIR}/allegro-wake-checklist.md" "${TARGET_DIR}/"
|
|
cp -v "${SCRIPT_DIR}/allegro-lane.md" "${TARGET_DIR}/"
|
|
cp -v "${SCRIPT_DIR}/allegro-failure-log.md" "${TARGET_DIR}/"
|
|
cp -v "${SCRIPT_DIR}/allegro-handoff-template.md" "${TARGET_DIR}/"
|
|
cp -v "${SCRIPT_DIR}/allegro-hands-off-registry.json" "${TARGET_DIR}/"
|
|
cp -v "${SCRIPT_DIR}/allegro-cycle-state.json" "${TARGET_DIR}/"
|
|
|
|
# Copy executable scripts
|
|
chmod +x "${SCRIPT_DIR}/burn-mode-validator.py"
|
|
cp -v "${SCRIPT_DIR}/burn-mode-validator.py" "${TARGET_DIR}/"
|
|
|
|
echo "[install] Done. Files installed to ${TARGET_DIR}"
|
|
echo "[install] Run ${TARGET_DIR}/burn-mode-validator.py at the end of each cycle."
|