Clean-room copy of the reusable engines from comiida, with all instance data, secrets, dependencies, and build output excluded: - app/ Astro theme skeleton (no comiida blog posts; hero image -> placeholder) - api/ SeedProject PHP framework (no vendor/.env/config.php) - content-pipeline/ engine only (scripts/admin/prompts; empty runtime state) - astroagent.config.json + app/.astroagent/skills Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SYHWLHihq3v9nxNwoPCKSn
20 lines
544 B
Bash
Executable file
20 lines
544 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Wrapper so cron has a sane PATH and the secrets from .env.
|
|
# Usage: run.sh <script.mjs> [args...]
|
|
# run.sh research.mjs
|
|
# run.sh write-daily.mjs
|
|
# run.sh approve.mjs <slug>
|
|
set -euo pipefail
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Tools (claude is under /root/.local/bin; node/npx under /usr/bin).
|
|
export PATH="/root/.local/bin:/usr/bin:/usr/local/bin:$PATH"
|
|
|
|
# Secrets (REPLICATE_API_TOKEN, etc.)
|
|
if [ -f "$DIR/.env" ]; then
|
|
set -a
|
|
. "$DIR/.env"
|
|
set +a
|
|
fi
|
|
|
|
exec node "$DIR/scripts/$1" "${@:2}"
|