mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-24 18:31:31 +08:00
cf5ac09320
Companion to the core `chat` 4.29.0 bump on main. Bumps every channel adapter install pin (8 /add-* SKILL.md + the setup/*.sh install scripts) and the package.json deps to the matched 4.29.0 release, so `/add-<channel>` installs an adapter whose ChatInstance matches main's Chat SDK bridge. `chat` and @chat-adapter/* are version-locked, so all are pinned exactly to 4.29.0. The Slack adapter is proven on current main at chat@4.29.0 (build + registration test green). Pre-existing standalone build/test failures on this branch (optional native-adapter packages not installed, branch behind main) are unchanged by this bump — identical failure set at the 4.26.0 baseline. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
47 lines
1.4 KiB
Bash
Executable File
47 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Setup helper: install-github — bundles the preflight + install commands
|
|
# from the /add-github skill into one idempotent script so /setup can
|
|
# run them programmatically before continuing to credentials.
|
|
#
|
|
# Copies the GitHub adapter in from the `channels` branch; appends the
|
|
# self-registration import; installs the pinned @chat-adapter/github package;
|
|
# builds. All steps are safe to re-run.
|
|
set -euo pipefail
|
|
|
|
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$PROJECT_ROOT"
|
|
|
|
echo "=== NANOCLAW SETUP: INSTALL_GITHUB ==="
|
|
|
|
needs_install=false
|
|
[[ -f src/channels/github.ts ]] || needs_install=true
|
|
grep -q "import './github.js';" src/channels/index.ts || needs_install=true
|
|
grep -q '"@chat-adapter/github"' package.json || needs_install=true
|
|
[[ -d node_modules/@chat-adapter/github ]] || needs_install=true
|
|
|
|
if ! $needs_install; then
|
|
echo "STATUS: already-installed"
|
|
echo "=== END ==="
|
|
exit 0
|
|
fi
|
|
|
|
echo "STEP: fetch-channels-branch"
|
|
git fetch origin channels
|
|
|
|
echo "STEP: copy-files"
|
|
git show origin/channels:src/channels/github.ts > src/channels/github.ts
|
|
|
|
echo "STEP: register-import"
|
|
if ! grep -q "import './github.js';" src/channels/index.ts; then
|
|
printf "import './github.js';\n" >> src/channels/index.ts
|
|
fi
|
|
|
|
echo "STEP: pnpm-install"
|
|
pnpm install @chat-adapter/github@4.29.0
|
|
|
|
echo "STEP: pnpm-build"
|
|
pnpm run build
|
|
|
|
echo "STATUS: installed"
|
|
echo "=== END ==="
|