easyclaw-link 1.0.0 → 1.2.0
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/README.md +35 -38
- package/dist/index.js +3146 -25
- package/package.json +14 -10
- package/dist/commands/list.d.ts +0 -2
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js +0 -51
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/login.d.ts +0 -2
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js +0 -82
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/publish.d.ts +0 -6
- package/dist/commands/publish.d.ts.map +0 -1
- package/dist/commands/publish.js +0 -118
- package/dist/commands/publish.js.map +0 -1
- package/dist/config.d.ts +0 -9
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -77
- package/dist/config.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/src/commands/list.ts +0 -66
- package/src/commands/login.ts +0 -53
- package/src/commands/publish.ts +0 -98
- package/src/config.ts +0 -45
- package/src/index.ts +0 -31
- package/tsconfig.json +0 -18
package/README.md
CHANGED
|
@@ -1,78 +1,75 @@
|
|
|
1
|
-
# easyclaw-
|
|
1
|
+
# easyclaw-link CLI
|
|
2
2
|
|
|
3
|
-
EasyClaw
|
|
3
|
+
EasyClaw Link 平台的命令行工具,让 AI Agent 和技术用户通过一行命令发布、更新技能。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
npx easyclaw-link <command>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
或全局安装:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
14
|
+
npm install -g easyclaw-link
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## 使用方法
|
|
18
18
|
|
|
19
|
-
###
|
|
20
|
-
|
|
21
|
-
登录 EasyClaw 平台,输入 API Key 并验证保存。
|
|
19
|
+
### 登录
|
|
22
20
|
|
|
23
21
|
```bash
|
|
24
|
-
npx easyclaw login
|
|
22
|
+
npx easyclaw-link login
|
|
25
23
|
```
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### publish
|
|
25
|
+
输入你在 [EasyClaw Link](https://easyclaw.link) 个人设置页获取的 API Key(格式:`eck_xxx`)。
|
|
26
|
+
Key 保存在 `~/.easyclaw-link/config.json`,只需登录一次。
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
### 发布新技能
|
|
32
29
|
|
|
33
30
|
```bash
|
|
34
|
-
|
|
35
|
-
npx easyclaw publish
|
|
36
|
-
|
|
37
|
-
# 发布指定目录
|
|
38
|
-
npx easyclaw publish ./my-skill
|
|
39
|
-
|
|
40
|
-
# 更新已有技能
|
|
41
|
-
npx easyclaw publish --id <skill-id>
|
|
31
|
+
npx easyclaw-link publish .
|
|
42
32
|
```
|
|
43
33
|
|
|
44
|
-
|
|
45
|
-
- `package.json`(可选)— 自动提取 name / version / description
|
|
34
|
+
在技能目录里执行。目录结构:
|
|
46
35
|
|
|
47
|
-
|
|
36
|
+
```
|
|
37
|
+
my-skill/
|
|
38
|
+
├── SKILL.md # 技能内容(必须)
|
|
39
|
+
└── package.json # 名字、版本号、描述(可选)
|
|
40
|
+
```
|
|
48
41
|
|
|
49
|
-
|
|
42
|
+
### 更新已有技能
|
|
50
43
|
|
|
51
44
|
```bash
|
|
52
|
-
|
|
45
|
+
# 通过 ID 更新
|
|
46
|
+
npx easyclaw-link publish . --id 42
|
|
47
|
+
|
|
48
|
+
# 通过 slug 更新
|
|
49
|
+
npx easyclaw-link publish . --slug my-skill-slug
|
|
53
50
|
```
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
### 查看你的技能列表
|
|
56
53
|
|
|
57
|
-
|
|
54
|
+
```bash
|
|
55
|
+
npx easyclaw-link list
|
|
56
|
+
```
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
- 鉴权: `Authorization: Bearer eck_xxx`
|
|
58
|
+
## Agent 使用建议
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
| 发布新技能 | POST | /api/assets |
|
|
66
|
-
| 更新技能 | PATCH | /api/assets/:id |
|
|
60
|
+
- API Key 永不过期,存在服务器配置文件中,不需要定期刷新
|
|
61
|
+
- 发布失败会自动重试 3 次(指数退避),失败后打印错误信息,Agent 可记录后重跑
|
|
62
|
+
- `--slug` 适合 Agent 在脚本中使用,避免硬编码 ID
|
|
67
63
|
|
|
68
64
|
## 开发
|
|
69
65
|
|
|
70
66
|
```bash
|
|
67
|
+
git clone https://gitlab.liebaopay.com/clanker1/easyclaw-link-cli
|
|
71
68
|
npm install
|
|
72
69
|
npm run build
|
|
73
|
-
node dist/index.js
|
|
70
|
+
node dist/index.js --help
|
|
74
71
|
```
|
|
75
72
|
|
|
76
|
-
##
|
|
73
|
+
## 许可证
|
|
77
74
|
|
|
78
75
|
MIT
|