mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
36 lines
927 B
Bash
Executable File
36 lines
927 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd /repo
|
|
|
|
export BOT_STATE_DIR="/tmp/openclaw-test"
|
|
export BOT_CONFIG_PATH="${BOT_STATE_DIR}/openclaw.json"
|
|
|
|
echo "==> Build"
|
|
pnpm build
|
|
|
|
echo "==> Seed state"
|
|
mkdir -p "${BOT_STATE_DIR}/credentials"
|
|
mkdir -p "${BOT_STATE_DIR}/agents/main/sessions"
|
|
echo '{}' >"${BOT_CONFIG_PATH}"
|
|
echo 'creds' >"${BOT_STATE_DIR}/credentials/marker.txt"
|
|
echo 'session' >"${BOT_STATE_DIR}/agents/main/sessions/sessions.json"
|
|
|
|
echo "==> Reset (config+creds+sessions)"
|
|
pnpm hanzo-bot reset --scope config+creds+sessions --yes --non-interactive
|
|
|
|
test ! -f "${BOT_CONFIG_PATH}"
|
|
test ! -d "${BOT_STATE_DIR}/credentials"
|
|
test ! -d "${BOT_STATE_DIR}/agents/main/sessions"
|
|
|
|
echo "==> Recreate minimal config"
|
|
mkdir -p "${BOT_STATE_DIR}/credentials"
|
|
echo '{}' >"${BOT_CONFIG_PATH}"
|
|
|
|
echo "==> Uninstall (state only)"
|
|
pnpm hanzo-bot uninstall --state --yes --non-interactive
|
|
|
|
test ! -d "${BOT_STATE_DIR}"
|
|
|
|
echo "OK"
|