qclaw-cli 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1 -1
- package/README.aiclaw.md +1 -1
- package/README.aliclaw.md +1 -1
- package/README.amazonclaw.md +12 -0
- package/README.amzclaw.md +12 -0
- package/README.anthropicclaw.md +12 -0
- package/README.appleclaw.md +12 -0
- package/README.autoopenclaw.md +1 -1
- package/README.awsclaw.md +12 -0
- package/README.bdclaw.md +12 -0
- package/README.blclaw.md +12 -0
- package/README.bytclaw.md +12 -0
- package/README.claw-open.md +1 -1
- package/README.clawjs.md +1 -1
- package/README.coclaw.md +12 -0
- package/README.copaw.md +12 -0
- package/README.ddclaw.md +12 -0
- package/README.duclaw.md +12 -0
- package/README.dyclaw.md +12 -0
- package/README.easyclaw.md +12 -0
- package/README.fastclaw.md +1 -1
- package/README.fbclaw.md +12 -0
- package/README.googleclaw.md +12 -0
- package/README.hwclaw.md +12 -0
- package/README.jdclaw.md +12 -0
- package/README.kimiclaw.md +12 -0
- package/README.ksclaw.md +12 -0
- package/README.maxclaw.md +12 -0
- package/README.md +1 -1
- package/README.megaclaw.md +1 -1
- package/README.metaclaw.md +12 -0
- package/README.miclaw.md +12 -0
- package/README.msclaw.md +12 -0
- package/README.mtclaw.md +12 -0
- package/README.nflxclaw.md +12 -0
- package/README.nvdaclaw.md +12 -0
- package/README.open-claw.md +1 -1
- package/README.openaiclaw.md +12 -0
- package/README.openclaw-cli.md +1 -1
- package/README.openclaw-daemon.md +1 -1
- package/README.openclaw-gateway.md +1 -1
- package/README.openclaw-health.md +1 -1
- package/README.openclaw-helper.md +1 -1
- package/README.openclaw-install.md +1 -1
- package/README.openclaw-manage.md +1 -1
- package/README.openclaw-monitor.md +1 -1
- package/README.openclaw-run.md +1 -1
- package/README.openclaw-service.md +1 -1
- package/README.openclaw-setup.md +1 -1
- package/README.openclaw-start.md +1 -1
- package/README.openclaw-tools.md +1 -1
- package/README.openclaw-upgrade.md +1 -1
- package/README.openclaw-utils.md +1 -1
- package/README.openclaw-watch.md +1 -1
- package/README.pddclaw.md +12 -0
- package/README.qclaw-cli.md +1 -1
- package/README.qclaw.md +1 -1
- package/README.smartclaw.md +1 -1
- package/README.ttclaw.md +12 -0
- package/README.txclaw.md +12 -0
- package/README.uberclaw.md +12 -0
- package/README.volclaw.md +1 -1
- package/README.wxclaw.md +12 -0
- package/README.xclaw.md +12 -0
- package/README.zh-CN.md +2 -2
- package/README.zhclaw.md +12 -0
- package/dist/{chunk-LIZ6XXW3.js → chunk-U6JVOA5H.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/{server-ZYSNFLSO.js → server-GHEIPQJV.js} +1 -1
- package/package.json +3 -3
- package/README.md.bak +0 -242
- package/app-dist/main.js +0 -300
- package/app-dist/package.json +0 -3
- package/app-dist/server-process.js +0 -95
- package/assets/demo.gif +0 -0
- package/assets/welcome.png +0 -0
- package/demo.tape +0 -28
- package/homebrew/README.md +0 -37
- package/homebrew/openclaw-cli.rb +0 -22
- package/homebrew/openclaw-doctor.rb +0 -26
- package/package.aiclaw.json +0 -25
- package/package.aliclaw.json +0 -25
- package/package.autoopenclaw.json +0 -25
- package/package.claw-open.json +0 -25
- package/package.clawjs.json +0 -25
- package/package.fastclaw.json +0 -25
- package/package.json.bak +0 -51
- package/package.megaclaw.json +0 -25
- package/package.open-claw.json +0 -25
- package/package.openclaw-cli.json +0 -51
- package/package.openclaw-daemon.json +0 -51
- package/package.openclaw-gateway.json +0 -51
- package/package.openclaw-health.json +0 -51
- package/package.openclaw-helper.json +0 -51
- package/package.openclaw-install.json +0 -51
- package/package.openclaw-manage.json +0 -51
- package/package.openclaw-monitor.json +0 -51
- package/package.openclaw-run.json +0 -51
- package/package.openclaw-service.json +0 -51
- package/package.openclaw-setup.json +0 -51
- package/package.openclaw-start.json +0 -51
- package/package.openclaw-tools.json +0 -51
- package/package.openclaw-upgrade.json +0 -50
- package/package.openclaw-utils.json +0 -51
- package/package.openclaw-watch.json +0 -51
- package/package.qclaw-cli.json +0 -25
- package/package.qclaw.json +0 -25
- package/package.smartclaw.json +0 -25
- package/package.volclaw.json +0 -25
- package/scripts/post-app-compile.cjs +0 -3
- package/scripts/post-app-compile.js +0 -7
- package/scripts/publish.sh +0 -120
- package/scripts/publish.sh.bak +0 -63
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "openclaw-start",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "Health check and auto-restart daemon for local OpenClaw services",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"openclaw-start": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsup",
|
|
11
|
-
"dev": "tsx src/index.ts",
|
|
12
|
-
"start": "node dist/index.js",
|
|
13
|
-
"lint": "tsc --noEmit"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"openclaw",
|
|
17
|
-
"health-check",
|
|
18
|
-
"daemon",
|
|
19
|
-
"doctor",
|
|
20
|
-
"cli"
|
|
21
|
-
],
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/Sobranier/openclaw-doctor.git"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"README.md",
|
|
30
|
-
"README.zh-CN.md",
|
|
31
|
-
"LICENSE"
|
|
32
|
-
],
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=22"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"chalk": "^5.6.2",
|
|
38
|
-
"commander": "^14.0.3"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@types/node": "^25.3.3",
|
|
42
|
-
"tsup": "^8.5.1",
|
|
43
|
-
"tsx": "^4.21.0",
|
|
44
|
-
"typescript": "^5.9.3"
|
|
45
|
-
},
|
|
46
|
-
"author": "pdd <ywq1991@gmail.com>",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/Sobranier/openclaw-doctor/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor#readme"
|
|
51
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "openclaw-tools",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "Health check and auto-restart daemon for local OpenClaw services",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"openclaw-tools": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsup",
|
|
11
|
-
"dev": "tsx src/index.ts",
|
|
12
|
-
"start": "node dist/index.js",
|
|
13
|
-
"lint": "tsc --noEmit"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"openclaw",
|
|
17
|
-
"health-check",
|
|
18
|
-
"daemon",
|
|
19
|
-
"doctor",
|
|
20
|
-
"cli"
|
|
21
|
-
],
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/Sobranier/openclaw-doctor.git"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"README.md",
|
|
30
|
-
"README.zh-CN.md",
|
|
31
|
-
"LICENSE"
|
|
32
|
-
],
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=22"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"chalk": "^5.6.2",
|
|
38
|
-
"commander": "^14.0.3"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@types/node": "^25.3.3",
|
|
42
|
-
"tsup": "^8.5.1",
|
|
43
|
-
"tsx": "^4.21.0",
|
|
44
|
-
"typescript": "^5.9.3"
|
|
45
|
-
},
|
|
46
|
-
"author": "pdd <ywq1991@gmail.com>",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/Sobranier/openclaw-doctor/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor#readme"
|
|
51
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "openclaw-upgrade",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "Upgrade helper for local OpenClaw services",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"openclaw-upgrade": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsup",
|
|
11
|
-
"dev": "tsx src/index.ts",
|
|
12
|
-
"start": "node dist/index.js",
|
|
13
|
-
"lint": "tsc --noEmit"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"openclaw",
|
|
17
|
-
"upgrade",
|
|
18
|
-
"update",
|
|
19
|
-
"health-check"
|
|
20
|
-
],
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/Sobranier/openclaw-doctor.git"
|
|
25
|
-
},
|
|
26
|
-
"files": [
|
|
27
|
-
"dist",
|
|
28
|
-
"README.md",
|
|
29
|
-
"README.zh-CN.md",
|
|
30
|
-
"LICENSE"
|
|
31
|
-
],
|
|
32
|
-
"engines": {
|
|
33
|
-
"node": ">=22"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"chalk": "^5.6.2",
|
|
37
|
-
"commander": "^14.0.3"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@types/node": "^25.3.3",
|
|
41
|
-
"tsup": "^8.5.1",
|
|
42
|
-
"tsx": "^4.21.0",
|
|
43
|
-
"typescript": "^5.9.3"
|
|
44
|
-
},
|
|
45
|
-
"author": "pdd <ywq1991@gmail.com>",
|
|
46
|
-
"bugs": {
|
|
47
|
-
"url": "https://github.com/Sobranier/openclaw-doctor/issues"
|
|
48
|
-
},
|
|
49
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor#readme"
|
|
50
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "openclaw-utils",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "Health check and auto-restart daemon for local OpenClaw services",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"openclaw-utils": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsup",
|
|
11
|
-
"dev": "tsx src/index.ts",
|
|
12
|
-
"start": "node dist/index.js",
|
|
13
|
-
"lint": "tsc --noEmit"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"openclaw",
|
|
17
|
-
"health-check",
|
|
18
|
-
"daemon",
|
|
19
|
-
"doctor",
|
|
20
|
-
"cli"
|
|
21
|
-
],
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/Sobranier/openclaw-doctor.git"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"README.md",
|
|
30
|
-
"README.zh-CN.md",
|
|
31
|
-
"LICENSE"
|
|
32
|
-
],
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=22"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"chalk": "^5.6.2",
|
|
38
|
-
"commander": "^14.0.3"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@types/node": "^25.3.3",
|
|
42
|
-
"tsup": "^8.5.1",
|
|
43
|
-
"tsx": "^4.21.0",
|
|
44
|
-
"typescript": "^5.9.3"
|
|
45
|
-
},
|
|
46
|
-
"author": "pdd <ywq1991@gmail.com>",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/Sobranier/openclaw-doctor/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor#readme"
|
|
51
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "openclaw-watch",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "Health check and auto-restart daemon for local OpenClaw services",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"openclaw-watch": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsup",
|
|
11
|
-
"dev": "tsx src/index.ts",
|
|
12
|
-
"start": "node dist/index.js",
|
|
13
|
-
"lint": "tsc --noEmit"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"openclaw",
|
|
17
|
-
"health-check",
|
|
18
|
-
"daemon",
|
|
19
|
-
"doctor",
|
|
20
|
-
"cli"
|
|
21
|
-
],
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/Sobranier/openclaw-doctor.git"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"README.md",
|
|
30
|
-
"README.zh-CN.md",
|
|
31
|
-
"LICENSE"
|
|
32
|
-
],
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=22"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"chalk": "^5.6.2",
|
|
38
|
-
"commander": "^14.0.3"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@types/node": "^25.3.3",
|
|
42
|
-
"tsup": "^8.5.1",
|
|
43
|
-
"tsx": "^4.21.0",
|
|
44
|
-
"typescript": "^5.9.3"
|
|
45
|
-
},
|
|
46
|
-
"author": "pdd <ywq1991@gmail.com>",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/Sobranier/openclaw-doctor/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor#readme"
|
|
51
|
-
}
|
package/package.qclaw-cli.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qclaw-cli",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "CLI and health-watch daemon for OpenClaw AI assistant gateway",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"openclaw",
|
|
7
|
-
"cli",
|
|
8
|
-
"ai",
|
|
9
|
-
"daemon",
|
|
10
|
-
"health-check"
|
|
11
|
-
],
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"bin": {
|
|
14
|
-
"qclaw-cli": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/Sobranier/openclaw-doctor.git"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor",
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=22"
|
|
24
|
-
}
|
|
25
|
-
}
|
package/package.qclaw.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qclaw",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "CLI and health-watch daemon for OpenClaw AI assistant gateway",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"openclaw",
|
|
7
|
-
"cli",
|
|
8
|
-
"ai",
|
|
9
|
-
"daemon",
|
|
10
|
-
"health-check"
|
|
11
|
-
],
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"bin": {
|
|
14
|
-
"qclaw": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/Sobranier/openclaw-doctor.git"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor",
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=22"
|
|
24
|
-
}
|
|
25
|
-
}
|
package/package.smartclaw.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "smartclaw",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "CLI and health-watch daemon for OpenClaw AI assistant gateway",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"openclaw",
|
|
7
|
-
"cli",
|
|
8
|
-
"ai",
|
|
9
|
-
"daemon",
|
|
10
|
-
"health-check"
|
|
11
|
-
],
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"bin": {
|
|
14
|
-
"smartclaw": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/Sobranier/openclaw-doctor.git"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor",
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=22"
|
|
24
|
-
}
|
|
25
|
-
}
|
package/package.volclaw.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "volclaw",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"description": "CLI and health-watch daemon for OpenClaw AI assistant gateway",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"openclaw",
|
|
7
|
-
"cli",
|
|
8
|
-
"ai",
|
|
9
|
-
"daemon",
|
|
10
|
-
"health-check"
|
|
11
|
-
],
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"bin": {
|
|
14
|
-
"volclaw": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/Sobranier/openclaw-doctor.git"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://github.com/Sobranier/openclaw-doctor",
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=22"
|
|
24
|
-
}
|
|
25
|
-
}
|
package/scripts/publish.sh
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
|
|
4
|
-
REGISTRY="https://registry.npmjs.org"
|
|
5
|
-
HOMEBREW_TAP_DIR="$HOME/Documents/project/github/homebrew-openclaw"
|
|
6
|
-
|
|
7
|
-
ALL_ALIASES=(
|
|
8
|
-
openclaw-cli
|
|
9
|
-
openclaw-upgrade
|
|
10
|
-
openclaw-manage
|
|
11
|
-
openclaw-service
|
|
12
|
-
openclaw-daemon
|
|
13
|
-
openclaw-monitor
|
|
14
|
-
openclaw-helper
|
|
15
|
-
openclaw-tools
|
|
16
|
-
openclaw-utils
|
|
17
|
-
openclaw-gateway
|
|
18
|
-
openclaw-install
|
|
19
|
-
openclaw-run
|
|
20
|
-
openclaw-start
|
|
21
|
-
openclaw-watch
|
|
22
|
-
openclaw-health
|
|
23
|
-
# new aliases
|
|
24
|
-
qclaw
|
|
25
|
-
qclaw-cli
|
|
26
|
-
autoopenclaw
|
|
27
|
-
claw-open
|
|
28
|
-
open-claw
|
|
29
|
-
clawjs
|
|
30
|
-
aliclaw
|
|
31
|
-
fastclaw
|
|
32
|
-
smartclaw
|
|
33
|
-
aiclaw
|
|
34
|
-
megaclaw
|
|
35
|
-
volclaw
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
# Sync version from main package.json to all alias package.json files
|
|
39
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
40
|
-
echo "🔄 Syncing version $VERSION to all alias packages..."
|
|
41
|
-
for pkg in "${ALL_ALIASES[@]}"; do
|
|
42
|
-
if [ -f "package.${pkg}.json" ]; then
|
|
43
|
-
node -e "
|
|
44
|
-
const fs = require('fs');
|
|
45
|
-
const p = JSON.parse(fs.readFileSync('package.${pkg}.json', 'utf8'));
|
|
46
|
-
p.version = '$VERSION';
|
|
47
|
-
fs.writeFileSync('package.${pkg}.json', JSON.stringify(p, null, 2) + '\n');
|
|
48
|
-
"
|
|
49
|
-
fi
|
|
50
|
-
done
|
|
51
|
-
|
|
52
|
-
echo "🔨 Building..."
|
|
53
|
-
npm run build
|
|
54
|
-
|
|
55
|
-
echo ""
|
|
56
|
-
echo "📦 Publishing openclaw-doctor..."
|
|
57
|
-
npm publish --registry $REGISTRY
|
|
58
|
-
|
|
59
|
-
for pkg in "${ALL_ALIASES[@]}"; do
|
|
60
|
-
echo ""
|
|
61
|
-
echo "📦 Publishing $pkg..."
|
|
62
|
-
cp package.json package.json.bak
|
|
63
|
-
cp README.md README.md.bak
|
|
64
|
-
cp "package.${pkg}.json" package.json
|
|
65
|
-
cp "README.${pkg}.md" README.md
|
|
66
|
-
npm publish --registry $REGISTRY || {
|
|
67
|
-
mv package.json.bak package.json
|
|
68
|
-
mv README.md.bak README.md
|
|
69
|
-
echo "⚠️ $pkg publish failed (skipping, continuing...)"
|
|
70
|
-
}
|
|
71
|
-
mv package.json.bak package.json
|
|
72
|
-
mv README.md.bak README.md
|
|
73
|
-
done
|
|
74
|
-
|
|
75
|
-
echo ""
|
|
76
|
-
echo "✅ All 16 packages published successfully"
|
|
77
|
-
|
|
78
|
-
# ─── Homebrew tap update ───────────────────────────────────────────────────
|
|
79
|
-
echo ""
|
|
80
|
-
echo "🍺 Updating Homebrew tap..."
|
|
81
|
-
|
|
82
|
-
if [ ! -d "$HOMEBREW_TAP_DIR" ]; then
|
|
83
|
-
echo "⚠️ Homebrew tap not found at $HOMEBREW_TAP_DIR, skipping."
|
|
84
|
-
else
|
|
85
|
-
TAG="v$VERSION"
|
|
86
|
-
|
|
87
|
-
# Create GitHub Release tag first (requires git push --tags done before this script)
|
|
88
|
-
TARBALL_URL="https://github.com/Sobranier/openclaw-doctor/archive/refs/tags/${TAG}.tar.gz"
|
|
89
|
-
|
|
90
|
-
echo "⏳ Fetching tarball to compute sha256: $TARBALL_URL"
|
|
91
|
-
SHA256=$(curl -sL "$TARBALL_URL" | shasum -a 256 | awk '{print $1}')
|
|
92
|
-
|
|
93
|
-
if [ -z "$SHA256" ] || [ "$SHA256" = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ]; then
|
|
94
|
-
echo "❌ sha256 is empty or invalid — did you push the git tag before running release?"
|
|
95
|
-
echo " Run: git tag v$VERSION && git push origin v$VERSION"
|
|
96
|
-
exit 1
|
|
97
|
-
fi
|
|
98
|
-
|
|
99
|
-
echo "🔑 sha256: $SHA256"
|
|
100
|
-
|
|
101
|
-
for formula in "$HOMEBREW_TAP_DIR/Formula/openclaw-cli.rb" "$HOMEBREW_TAP_DIR/Formula/openclaw-doctor.rb"; do
|
|
102
|
-
if [ -f "$formula" ]; then
|
|
103
|
-
# Update url tag
|
|
104
|
-
sed -i '' "s|/tags/v[0-9.]*\.tar\.gz|/tags/${TAG}.tar.gz|g" "$formula"
|
|
105
|
-
# Update sha256
|
|
106
|
-
sed -i '' "s/sha256 \"[a-f0-9]*\"/sha256 \"$SHA256\"/" "$formula"
|
|
107
|
-
echo "✅ Updated $(basename $formula)"
|
|
108
|
-
fi
|
|
109
|
-
done
|
|
110
|
-
|
|
111
|
-
cd "$HOMEBREW_TAP_DIR"
|
|
112
|
-
git add Formula/
|
|
113
|
-
git commit -m "chore: update formulas to $VERSION" && git push origin main
|
|
114
|
-
cd - > /dev/null
|
|
115
|
-
|
|
116
|
-
echo "🍺 Homebrew tap updated!"
|
|
117
|
-
fi
|
|
118
|
-
|
|
119
|
-
echo ""
|
|
120
|
-
echo "🎉 Release $VERSION complete!"
|
package/scripts/publish.sh.bak
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
|
|
4
|
-
REGISTRY="https://registry.npmjs.org"
|
|
5
|
-
|
|
6
|
-
ALL_ALIASES=(
|
|
7
|
-
openclaw-cli
|
|
8
|
-
openclaw-upgrade
|
|
9
|
-
openclaw-manage
|
|
10
|
-
openclaw-service
|
|
11
|
-
openclaw-daemon
|
|
12
|
-
openclaw-monitor
|
|
13
|
-
openclaw-helper
|
|
14
|
-
openclaw-tools
|
|
15
|
-
openclaw-utils
|
|
16
|
-
openclaw-gateway
|
|
17
|
-
openclaw-install
|
|
18
|
-
openclaw-run
|
|
19
|
-
openclaw-start
|
|
20
|
-
openclaw-watch
|
|
21
|
-
openclaw-health
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
# Sync version from main package.json to all alias package.json files
|
|
25
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
26
|
-
echo "🔄 Syncing version $VERSION to all alias packages..."
|
|
27
|
-
for pkg in "${ALL_ALIASES[@]}"; do
|
|
28
|
-
if [ -f "package.${pkg}.json" ]; then
|
|
29
|
-
node -e "
|
|
30
|
-
const fs = require('fs');
|
|
31
|
-
const p = JSON.parse(fs.readFileSync('package.${pkg}.json', 'utf8'));
|
|
32
|
-
p.version = '$VERSION';
|
|
33
|
-
fs.writeFileSync('package.${pkg}.json', JSON.stringify(p, null, 2) + '\n');
|
|
34
|
-
"
|
|
35
|
-
fi
|
|
36
|
-
done
|
|
37
|
-
|
|
38
|
-
echo "🔨 Building..."
|
|
39
|
-
npm run build
|
|
40
|
-
|
|
41
|
-
echo ""
|
|
42
|
-
echo "📦 Publishing openclaw-doctor..."
|
|
43
|
-
npm publish --registry $REGISTRY
|
|
44
|
-
|
|
45
|
-
for pkg in "${ALL_ALIASES[@]}"; do
|
|
46
|
-
echo ""
|
|
47
|
-
echo "📦 Publishing $pkg..."
|
|
48
|
-
cp package.json package.json.bak
|
|
49
|
-
cp README.md README.md.bak
|
|
50
|
-
cp "package.${pkg}.json" package.json
|
|
51
|
-
cp "README.${pkg}.md" README.md
|
|
52
|
-
npm publish --registry $REGISTRY || {
|
|
53
|
-
mv package.json.bak package.json
|
|
54
|
-
mv README.md.bak README.md
|
|
55
|
-
echo "❌ $pkg publish failed"
|
|
56
|
-
exit 1
|
|
57
|
-
}
|
|
58
|
-
mv package.json.bak package.json
|
|
59
|
-
mv README.md.bak README.md
|
|
60
|
-
done
|
|
61
|
-
|
|
62
|
-
echo ""
|
|
63
|
-
echo "✅ All 16 packages published successfully"
|