Skip to content

Commit b30d04d

Browse files
committed
refactor: rename installer package
1 parent 8d6b280 commit b30d04d

17 files changed

Lines changed: 54 additions & 54 deletions

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ jobs:
6161
- name: Check installer package publish state
6262
id: installer_publish_state
6363
run: |
64-
if npm view "@aitoearn/aitoearn-openclaw-cli@${{ steps.versions.outputs.installer_version }}" version >/dev/null 2>&1; then
64+
if npm view "@aitoearn/openclaw-plugin-cli@${{ steps.versions.outputs.installer_version }}" version >/dev/null 2>&1; then
6565
echo "should_publish=false" >> "$GITHUB_OUTPUT"
6666
else
6767
echo "should_publish=true" >> "$GITHUB_OUTPUT"
6868
fi
6969
70-
- name: Publish runtime package
71-
if: steps.runtime_publish_state.outputs.should_publish == 'true'
72-
run: npm publish --workspace @aitoearn/openclaw-plugin --provenance --access public
70+
- name: Publish installer package
71+
if: steps.installer_publish_state.outputs.should_publish == 'true'
72+
run: npm publish --workspace @aitoearn/openclaw-plugin-cli --provenance --access public
7373
env:
7474
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7575

76-
- name: Publish installer package
77-
if: steps.installer_publish_state.outputs.should_publish == 'true'
78-
run: npm publish --workspace @aitoearn/aitoearn-openclaw-cli --provenance --access public
76+
- name: Publish runtime package
77+
if: steps.runtime_publish_state.outputs.should_publish == 'true'
78+
run: npm publish --workspace @aitoearn/openclaw-plugin --provenance --access public
7979
env:
8080
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8181

@@ -85,5 +85,5 @@ jobs:
8585
echo "Runtime package @aitoearn/openclaw-plugin@${{ steps.versions.outputs.runtime_version }} is already published; skipping."
8686
fi
8787
if [ "${{ steps.installer_publish_state.outputs.should_publish }}" != "true" ]; then
88-
echo "Installer package @aitoearn/aitoearn-openclaw-cli@${{ steps.versions.outputs.installer_version }} is already published; skipping."
88+
echo "Installer package @aitoearn/openclaw-plugin-cli@${{ steps.versions.outputs.installer_version }} is already published; skipping."
8989
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
这个仓库现在拆成三个部分:
44

55
- `packages/runtime`:真正发布给 OpenClaw 的运行时插件包 `@aitoearn/openclaw-plugin`
6-
- `packages/installer`:负责 `npx` 安装与配置引导的 CLI 包 `@aitoearn/aitoearn-openclaw-cli`
6+
- `packages/installer`:负责 `npx` 安装与配置引导的 CLI 包 `@aitoearn/openclaw-plugin-cli`
77
- `packages/shared`:内部共享的 setup / config / MCP 客户端逻辑,不单独发布
88

99
常用命令:

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aitoearn-openclaw-workspace",
33
"private": true,
4-
"version": "1.0.9",
4+
"version": "1.0.10",
55
"type": "module",
66
"workspaces": [
77
"packages/shared",
@@ -12,7 +12,7 @@
1212
"verify:versions": "node ./scripts/check-workspace-versions.mjs",
1313
"build": "npm run verify:versions && npm run build --workspaces --if-present",
1414
"test": "npm run verify:versions && npm run test --workspaces --if-present",
15-
"pack:check": "npm run verify:versions && npm pack --dry-run --workspace @aitoearn/openclaw-plugin && npm pack --dry-run --workspace @aitoearn/aitoearn-openclaw-cli"
15+
"pack:check": "npm run verify:versions && npm pack --dry-run --workspace @aitoearn/openclaw-plugin && npm pack --dry-run --workspace @aitoearn/openclaw-plugin-cli"
1616
},
1717
"devDependencies": {
1818
"typescript": "^5.4.0",

packages/installer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
用这个包提供 `npx` 安装体验:
44

55
```bash
6-
npx -y @aitoearn/aitoearn-openclaw-cli
6+
npx -y @aitoearn/openclaw-plugin-cli
77
```
88

99
升级已通过 npm 安装的 AiToEarn OpenClaw 插件:
1010

1111
```bash
12-
npx -y @aitoearn/aitoearn-openclaw-cli upgrade
12+
npx -y @aitoearn/openclaw-plugin-cli upgrade
1313
```
1414

1515
运行时插件包是 `@aitoearn/openclaw-plugin`,安装与更新由宿主 `openclaw plugins install/update` 完成。

packages/installer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@aitoearn/aitoearn-openclaw-cli",
3-
"version": "1.0.9",
2+
"name": "@aitoearn/openclaw-plugin-cli",
3+
"version": "1.0.10",
44
"type": "module",
55
"main": "./dist/installer/src/cli.js",
66
"types": "./dist/installer/src/cli.d.ts",

packages/installer/src/cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("runSetupCli", () => {
3838
packageContext = {
3939
rootDir: "/tmp/aitoearn-installer",
4040
manifest: {
41-
name: "@aitoearn/aitoearn-openclaw-cli",
41+
name: "@aitoearn/openclaw-plugin-cli",
4242
version: "1.2.3",
4343
},
4444
openclawCliPath: "/tmp/node_modules/openclaw/openclaw.mjs",

packages/installer/src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ interface CliDependencies {
4646
runSetupFlow: (options?: { showIntro?: boolean }) => Promise<SetupFlowResult>;
4747
}
4848

49-
const HELP_TEXT = `Usage: npx -y @aitoearn/aitoearn-openclaw-cli [upgrade]
49+
const HELP_TEXT = `Usage: npx -y @aitoearn/openclaw-plugin-cli [upgrade]
5050
5151
Bootstrap installer for the AiToEarn OpenClaw plugin.
5252
5353
Examples:
54-
npx -y @aitoearn/aitoearn-openclaw-cli
55-
npx -y @aitoearn/aitoearn-openclaw-cli upgrade`;
54+
npx -y @aitoearn/openclaw-plugin-cli
55+
npx -y @aitoearn/openclaw-plugin-cli upgrade`;
5656

5757
export async function runSetupCli(
5858
args: string[],

packages/installer/src/openclaw-install.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ describe("installPluginWithOpenClaw", () => {
8989
const packageContext: PackageContext = {
9090
rootDir: "/tmp/installer",
9191
manifest: {
92-
name: "@aitoearn/aitoearn-openclaw-cli",
93-
version: "1.0.9",
92+
name: "@aitoearn/openclaw-plugin-cli",
93+
version: "1.0.10",
9494
},
9595
openclawCliPath: "/tmp/node_modules/openclaw/openclaw.mjs",
96-
runtimeInstallSpec: "@aitoearn/openclaw-plugin@1.0.9",
96+
runtimeInstallSpec: "@aitoearn/openclaw-plugin@1.0.10",
9797
runtimeTrackSpec: "@aitoearn/openclaw-plugin",
9898
};
9999

@@ -104,8 +104,8 @@ describe("installPluginWithOpenClaw", () => {
104104
installs: {
105105
aitoearn: {
106106
source: "npm",
107-
spec: "@aitoearn/openclaw-plugin@1.0.9",
108-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.9",
107+
spec: "@aitoearn/openclaw-plugin@1.0.10",
108+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.10",
109109
},
110110
},
111111
},
@@ -133,7 +133,7 @@ describe("installPluginWithOpenClaw", () => {
133133
expect(runOpenClaw).toHaveBeenCalledWith(packageContext.openclawCliPath, [
134134
"plugins",
135135
"install",
136-
"@aitoearn/openclaw-plugin@1.0.9",
136+
"@aitoearn/openclaw-plugin@1.0.10",
137137
]);
138138
expect(writeConfig).toHaveBeenCalledWith(
139139
{
@@ -142,7 +142,7 @@ describe("installPluginWithOpenClaw", () => {
142142
aitoearn: {
143143
source: "npm",
144144
spec: "@aitoearn/openclaw-plugin",
145-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.9",
145+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.10",
146146
},
147147
},
148148
},
@@ -198,8 +198,8 @@ describe("installPluginWithOpenClaw", () => {
198198
installs: {
199199
aitoearn: {
200200
source: "npm",
201-
spec: "@aitoearn/openclaw-plugin@1.0.9",
202-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.9",
201+
spec: "@aitoearn/openclaw-plugin@1.0.10",
202+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.10",
203203
},
204204
},
205205
},
@@ -238,7 +238,7 @@ describe("installPluginWithOpenClaw", () => {
238238
expect(runOpenClaw).toHaveBeenCalledWith(packageContext.openclawCliPath, [
239239
"plugins",
240240
"install",
241-
"@aitoearn/openclaw-plugin@1.0.9",
241+
"@aitoearn/openclaw-plugin@1.0.10",
242242
]);
243243
expect(rm).toHaveBeenCalledWith(
244244
"/tmp/.openclaw/extensions/aitoearn.legacy-backup-4321-12345",
@@ -251,7 +251,7 @@ describe("installPluginWithOpenClaw", () => {
251251
aitoearn: {
252252
source: "npm",
253253
spec: "@aitoearn/openclaw-plugin",
254-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.9",
254+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.10",
255255
},
256256
},
257257
},

packages/runtime/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AiToEarn 社交媒体管理工具的 OpenClaw 运行时插件包。
55
## 推荐安装
66

77
```bash
8-
npx -y @aitoearn/aitoearn-openclaw-cli
8+
npx -y @aitoearn/openclaw-plugin-cli
99
```
1010

1111
兼容旧入口:
@@ -19,7 +19,7 @@ npx -y @aitoearn/openclaw-plugin
1919
升级已通过 npm 安装的插件:
2020

2121
```bash
22-
npx -y @aitoearn/aitoearn-openclaw-cli upgrade
22+
npx -y @aitoearn/openclaw-plugin-cli upgrade
2323
```
2424

2525
这个 CLI 会调用宿主 `openclaw plugins install/update`,并在首次安装时引导写入 `plugins.entries.aitoearn.config`

0 commit comments

Comments
 (0)