From 25a351321e96d762e48ae2c0145bcb02c8199909 Mon Sep 17 00:00:00 2001 From: "Alice (OpenClaw)" Date: Thu, 14 May 2026 10:19:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20add=20npm=20entrypoints=20for=20opencl?= =?UTF-8?q?awtest=20flows=20/=20=E6=96=B0=E5=A2=9E=20openclawtest=20?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=9A=84=20npm=20=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HANDOFF.md | 3 +++ INSTALL.md | 24 ++++++++++++++++++++++++ package.json | 3 +++ 3 files changed, 30 insertions(+) diff --git a/HANDOFF.md b/HANDOFF.md index ba518cc..1ec2bcf 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -63,8 +63,11 @@ Read these files first: For another engineering agent, the most useful command entrypoints are now: - `bash scripts/install-openclawtest-poc.sh` +- `npm run install:openclawtest` - `npm run apply:openclawtest` +- `npm run refresh:openclawtest` - `npm run verify:openclawtest` +- `npm run rollback:openclawtest` - `npm run test` ## Repo structure diff --git a/INSTALL.md b/INSTALL.md index 3f137ec..b949911 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -29,6 +29,12 @@ Fastest path: bash scripts/install-openclawtest-poc.sh ``` +Equivalent npm script: + +```bash +npm run install:openclawtest +``` + This does two things: 1. refreshes the live `openclawtest` PoC by reapplying the patch and restarting the gateway @@ -55,6 +61,12 @@ bash scripts/apply-openclaw-poc-patch.sh /home/openclawtest/.nvm/versions/node/v bash scripts/refresh-openclawtest-poc.sh ``` +Equivalent npm script: + +```bash +npm run refresh:openclawtest +``` + ### Verify current live state ```bash @@ -63,12 +75,24 @@ bash scripts/verify-openclaw-poc.sh \ /home/openclawtest/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/dist ``` +Equivalent npm script: + +```bash +npm run verify:openclawtest +``` + ### Rollback ```bash bash scripts/rollback-openclaw-poc-patch.sh /home/openclawtest/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/dist ``` +Equivalent npm script: + +```bash +npm run rollback:openclawtest +``` + ## What success looks like After install/refresh: diff --git a/package.json b/package.json index c577fea..4564a0e 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,9 @@ "type": "module", "scripts": { "apply:openclawtest": "bash ./scripts/refresh-openclawtest-poc.sh", + "install:openclawtest": "bash ./scripts/install-openclawtest-poc.sh", + "refresh:openclawtest": "bash ./scripts/refresh-openclawtest-poc.sh", + "rollback:openclawtest": "bash ./scripts/rollback-openclaw-poc-patch.sh /home/openclawtest/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/dist", "verify:openclawtest": "bash ./scripts/verify-openclaw-poc.sh /home/openclawtest/.openclaw /home/openclawtest/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/dist", "test": "tsx --test tests/**/*.test.mjs", "typecheck": "tsc --noEmit"