Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/AI_Brain / daemon/seed_all.sh |
| Date | Not specified in source |
| Repository | Janady13/AI_Brain |
| Revision | 11aa50ef5d7692e8abd1b8d74ae31c5c29201b14 |
| Branch | codex/build-online-github-ani-irqa7y |
| Path or archive member | daemon/seed_all.sh |
| Original SHA-256 | a1275c30079144c801674cc6118da2321203a93083d53d211039ea76108977f8 |
| Git blob SHA | 376aecda11a85b525bd91d5c2b0494aba3f6cda0 |
| Reading-copy SHA-256 | a1275c30079144c801674cc6118da2321203a93083d53d211039ea76108977f8 |
Every recorded occurrence
These 5 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/AI_Brain / daemon/seed_all.sh | codex/build-online-github-ani-irqa7y | 11aa50ef5d7692e8abd1b8d74ae31c5c29201b14 | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | codex/build-online-github-ani-7v4kug | 5cd0bbf744b0aee9445913337e852889d9a8098e | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | codex/build-online-github-ani-0etkns | e250b19d446bdffd542c9eea31cead12e30800d6 | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | codex/build-online-github-ani-irqa7y | 11aa50ef5d7692e8abd1b8d74ae31c5c29201b14 | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | codex/build-online-github-ani-7v4kug | 5cd0bbf744b0aee9445913337e852889d9a8098e | Open original |
Recovered source transcript
Download complete source text ↓55 lines · 2.1 KB
#!/usr/bin/env bash
set -Eeuo pipefail
IFS=$'\n\t'
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT="${ROOT:-$SCRIPT_DIR}"
LOGDIR="${LOGDIR:-$SCRIPT_DIR/../logs/seeding}"
TS="$(date +%Y%m%d_%H%M%S)"
log() { printf '%s\n' "$*"; }
log_err() { printf 'ERR: %s\n' "$*" >&2; }
usage(){ cat <<USAGE
Usage: $0 [--dry-run] [--only categories] [--env FILE]
USAGE
}
CLI_DRY_RUN=0; ONLY=""; ENV_FILE=""
while [[ $# -gt 0 ]]; do
case "$1" in
--dry-run) CLI_DRY_RUN=1; shift ;;
--only) ONLY="${2:-}"; shift 2 ;;
--env) ENV_FILE="${2:-}"; shift 2 ;;
-h|--help) usage; exit 0 ;;
*) log_err "Unknown arg: $1"; usage; exit 2 ;;
esac
done
if [[ -n "$ENV_FILE" ]]; then set -a; source "$ENV_FILE"; set +a; fi
DRY_RUN="${DRY_RUN:-0}"; if [[ "$CLI_DRY_RUN" == "1" ]]; then DRY_RUN=1; fi
mkdir -p "$LOGDIR"
scripts=(
"seed_math_models.py:math"
"seed_agents.py:agent"
"seed_language.py:language"
"seed_prophecy.py:prophecy"
"seed_marketing.py:marketing"
"seed_statistics.py:statistics"
)
selected=()
if [[ -n "$ONLY" ]]; then IFS=',' read -r -a filter <<<"$ONLY"; for pair in "${scripts[@]}"; do s="${pair%%:*}"; c="${pair##*:}"; for f in "${filter[@]}"; do [[ "$f" == "$c" ]] && selected+=("$pair"); done; done; else selected=("${scripts[@]}"); fi
command -v python3 >/dev/null 2>&1 || { log_err "python3 not found"; exit 127; }
log "=== 🧠 Hive Seeding Launcher ==="; log "All expansions will be ATOMICALLY HASHED and inserted into atomic_facts"
rc=0
for pair in "${selected[@]}"; do s="${pair%%:*}"; base="${s%.py}"; logfile="$LOGDIR/${base}_$TS.log";
if [[ -f "$ROOT/$s" ]]; then
log "➡️ Running $s (dry-run=${DRY_RUN})"
if [[ "$DRY_RUN" == "1" ]]; then DRY_RUN=1 python3 "$ROOT/$s" >>"$logfile" 2>&1 || rc=$?; else python3 "$ROOT/$s" >>"$logfile" 2>&1 || rc=$?; fi
[[ $rc -eq 0 ]] && log "✅ Completed $s (see: $logfile)" || log_err "❌ $s failed: $rc (see: $logfile)"
else log_err "⚠️ Missing $ROOT/$s"; rc=1; fi
done
[[ $rc -eq 0 ]] && log "=== ✅ Hive expansions seeded (atomically hashed) ===" || log_err "=== ⚠️ Hive seeding completed with errors ==="; exit "$rc"