chore: add npm entrypoints for openclawtest flows / 新增 openclawtest 流程的 npm 入口
This commit is contained in:
@@ -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
|
||||
|
||||
24
INSTALL.md
24
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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user