Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

safe-update

bởi hacksing

Coding Agents & IDEs
385Lượt tải do clawskills.sh công bố
2Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Update OpenClaw from source code.

Mô tả

Kỹ năng này làm gì

Automates updating OpenClaw from source by pulling the latest branch, building, and reinstalling globally. Analyzes the current git state before acting and asks for confirmation before making changes. Backs up config files automatically before each update.

Handles the full update sequence, including git strategy recommendation, config backup, build, and service reinstall, rather than requiring manual steps each time.

Khi nào nên dùng

  • Updating OpenClaw after upstream bug fixes land
  • Switching to a feature branch and rebuilding
  • Previewing what an update would do before committing
  • Recovering from a failed update by checking logs
  • Keeping a self-hosted OpenClaw instance in sync with upstream

Quy trình ví dụ

ĐẦU VÀO

User asks: update OpenClaw to the latest main branch

AGENT
  1. 1

    Check current branch for uncommitted changes and compare with upstream

  2. 2

    Recommend merge or rebase strategy based on local state

  3. 3

    Wait for user confirmation before proceeding

  4. 4

    Pull upstream changes, build with npm run build, install globally with npm i -g .

  5. 5

    Reinstall the systemd service and prompt user to confirm gateway restart

ĐẦU RA

OpenClaw updated to latest version; config backed up; user prompted to restart gateway

Cài đặt

clawhub install hacksing/safe-update

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết