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 | 50285aff347685f043e7a72e4d72891eebaa6cd6 |
| Branch | codex/build-online-github-ani-hrtsoc |
| Path or archive member | daemon/seed_all.sh |
| Original SHA-256 | e22ebe5326610a92aff14b93892bfb3b8bde3a37a73129342298b9cc05b12ca3 |
| Git blob SHA | 023e968722df557e1a9c04fe1c33c0487233b7be |
| Reading-copy SHA-256 | e22ebe5326610a92aff14b93892bfb3b8bde3a37a73129342298b9cc05b12ca3 |
Every recorded occurrence
These 7 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-hrtsoc | 50285aff347685f043e7a72e4d72891eebaa6cd6 | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | copilot/convert-python-files-to-csharp | 6d0767aad08781eb5c4e1eb14a42ec92c437be78 | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | copilot/vscode1760283895982 | 9e1c1a5b171addb5bb4a83b2ea7dede50c1cc81e | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | feature/seeder-engine-tests | cdb497ece2d1a770ca8c83eb1de8923cfaa9eceb | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | copilot/convert-python-files-to-csharp | 6d0767aad08781eb5c4e1eb14a42ec92c437be78 | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | copilot/vscode1760283895982 | 9e1c1a5b171addb5bb4a83b2ea7dede50c1cc81e | Open original |
| Janady13/AI_Brain / daemon/seed_all.sh | codex/build-online-github-ani-hrtsoc | 50285aff347685f043e7a72e4d72891eebaa6cd6 | Open original |
Recovered source transcript
Download complete source text ↓56 lines · 2.2 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"
)
scripts=("seed_math_models.py:math" "seed_agents.py:agent" "seed_language.py:language" "seed_prophecy.py:prophecy" "seed_marketing.py:marketing")
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"