docs: update upstream sync workflow branding

This commit is contained in:
ThanhNguyxn 2026-01-30 13:41:17 +07:00
parent 3a65afed76
commit 0f5facebe5

View File

@ -1,8 +1,8 @@
--- ---
description: Update Clawdbot from upstream when branch has diverged (ahead/behind) description: Update OpenClaw from upstream when branch has diverged (ahead/behind)
--- ---
# Clawdbot Upstream Sync Workflow # OpenClaw Upstream Sync Workflow
Use this workflow when your fork has diverged from upstream (e.g., "18 commits ahead, 29 commits behind"). Use this workflow when your fork has diverged from upstream (e.g., "18 commits ahead, 29 commits behind").
@ -110,7 +110,7 @@ pnpm build
pnpm ui:build pnpm ui:build
# Run diagnostics # Run diagnostics
pnpm clawdbot doctor pnpm openclaw doctor
``` ```
--- ---
@ -129,16 +129,16 @@ pnpm mac:package
```bash ```bash
# Kill running app # Kill running app
pkill -x "Clawdbot" || true pkill -x "OpenClaw" || true
# Move old version # Move old version
mv /Applications/Clawdbot.app /tmp/Clawdbot-backup.app mv /Applications/OpenClaw.app /tmp/OpenClaw-backup.app
# Install new build # Install new build
cp -R dist/Clawdbot.app /Applications/ cp -R dist/OpenClaw.app /Applications/
# Launch # Launch
open /Applications/Clawdbot.app open /Applications/OpenClaw.app
``` ```
--- ---
@ -149,13 +149,13 @@ After rebuilding the macOS app, always verify it works correctly:
```bash ```bash
# Check gateway health # Check gateway health
pnpm clawdbot health pnpm openclaw health
# Verify no zombie processes # Verify no zombie processes
ps aux | grep -E "(clawdbot|gateway)" | grep -v grep ps aux | grep -E "(openclaw|gateway)" | grep -v grep
# Test agent functionality by sending a verification message # Test agent functionality by sending a verification message
pnpm clawdbot agent --message "Verification: macOS app rebuild successful - agent is responding." --session-id YOUR_TELEGRAM_SESSION_ID pnpm openclaw agent --message "Verification: macOS app rebuild successful - agent is responding." --session-id YOUR_TELEGRAM_SESSION_ID
# Confirm the message was received on Telegram # Confirm the message was received on Telegram
# (Check your Telegram chat with the bot) # (Check your Telegram chat with the bot)
@ -225,7 +225,7 @@ If upstream introduced new model configurations:
# Check for OpenRouter API key requirements # Check for OpenRouter API key requirements
grep -r "openrouter\|OPENROUTER" src/ --include="*.ts" --include="*.js" grep -r "openrouter\|OPENROUTER" src/ --include="*.ts" --include="*.js"
# Update clawdbot.json with fallback chains # Update openclaw.json with fallback chains
# Add model fallback configurations as needed # Add model fallback configurations as needed
``` ```
@ -235,7 +235,7 @@ grep -r "openrouter\|OPENROUTER" src/ --include="*.ts" --include="*.js"
```bash ```bash
# Verify everything works # Verify everything works
pnpm clawdbot health pnpm openclaw health
pnpm test pnpm test
# Push (force required after rebase) # Push (force required after rebase)
@ -342,13 +342,13 @@ pnpm build
pnpm ui:build pnpm ui:build
echo "==> Running doctor..." echo "==> Running doctor..."
pnpm clawdbot doctor pnpm openclaw doctor
echo "==> Rebuilding macOS app..." echo "==> Rebuilding macOS app..."
./scripts/restart-mac.sh ./scripts/restart-mac.sh
echo "==> Verifying gateway health..." echo "==> Verifying gateway health..."
pnpm clawdbot health pnpm openclaw health
echo "==> Checking for Swift 6.2 compatibility issues..." echo "==> Checking for Swift 6.2 compatibility issues..."
if grep -r "FileManager\.default\|Thread\.isMainThread" src/ apps/ --include="*.swift" --quiet; then if grep -r "FileManager\.default\|Thread\.isMainThread" src/ apps/ --include="*.swift" --quiet; then
@ -360,7 +360,7 @@ fi
echo "==> Testing agent functionality..." echo "==> Testing agent functionality..."
# Note: Update YOUR_TELEGRAM_SESSION_ID with actual session ID # Note: Update YOUR_TELEGRAM_SESSION_ID with actual session ID
pnpm clawdbot agent --message "Verification: Upstream sync and macOS rebuild completed successfully." --session-id YOUR_TELEGRAM_SESSION_ID || echo "Warning: Agent test failed - check Telegram for verification message" pnpm openclaw agent --message "Verification: Upstream sync and macOS rebuild completed successfully." --session-id YOUR_TELEGRAM_SESSION_ID || echo "Warning: Agent test failed - check Telegram for verification message"
echo "==> Done! Check Telegram for verification message, then run 'git push --force-with-lease' when ready." echo "==> Done! Check Telegram for verification message, then run 'git push --force-with-lease' when ready."
``` ```