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 CHANGED
@@ -1,78 +1,75 @@
1
- # easyclaw-cli
1
+ # easyclaw-link CLI
2
2
 
3
- EasyClaw 平台命令行工具,用于发布和管理技能。
3
+ EasyClaw Link 平台的命令行工具,让 AI Agent 和技术用户通过一行命令发布、更新技能。
4
4
 
5
5
  ## 安装
6
6
 
7
7
  ```bash
8
- npm install -g easyclaw
8
+ npx easyclaw-link <command>
9
9
  ```
10
10
 
11
- 或直接使用 npx:
11
+ 或全局安装:
12
12
 
13
13
  ```bash
14
- npx easyclaw <command>
14
+ npm install -g easyclaw-link
15
15
  ```
16
16
 
17
- ## 命令
17
+ ## 使用方法
18
18
 
19
- ### login
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
- API Key `eck_` 开头,保存在 `~/.easyclaw/config.json`。
28
-
29
- ### publish
25
+ 输入你在 [EasyClaw Link](https://easyclaw.link) 个人设置页获取的 API Key(格式:`eck_xxx`)。
26
+ Key 保存在 `~/.easyclaw-link/config.json`,只需登录一次。
30
27
 
31
- 发布或更新技能。需要目录中包含 `SKILL.md` 文件。
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
- - `SKILL.md`(必须)— 技能内容
45
- - `package.json`(可选)— 自动提取 name / version / description
34
+ 在技能目录里执行。目录结构:
46
35
 
47
- ### list
36
+ ```
37
+ my-skill/
38
+ ├── SKILL.md # 技能内容(必须)
39
+ └── package.json # 名字、版本号、描述(可选)
40
+ ```
48
41
 
49
- 查看已发布的所有技能。
42
+ ### 更新已有技能
50
43
 
51
44
  ```bash
52
- npx easyclaw list
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
- 输出包含 ID、Title、Status、Calls 的表格。
52
+ ### 查看你的技能列表
56
53
 
57
- ## 平台 API
54
+ ```bash
55
+ npx easyclaw-link list
56
+ ```
58
57
 
59
- - Base URL: `https://easyclaw.link`
60
- - 鉴权: `Authorization: Bearer eck_xxx`
58
+ ## Agent 使用建议
61
59
 
62
- | 操作 | 方法 | 路径 |
63
- | ---------- | ------- | -------------------- |
64
- | 查询我的技能 | GET | /api/assets/mine |
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 login
70
+ node dist/index.js --help
74
71
  ```
75
72
 
76
- ## License
73
+ ## 许可证
77
74
 
78
75
  MIT