@yandy0725/mediagen-cli 0.3.0 → 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/README.md CHANGED
@@ -28,6 +28,16 @@ mediagen image generate "a red fox in fresh snow, soft morning light" --provider
28
28
 
29
29
  Node >= 18, two runtime dependencies, a DashScope and/or Ark API key.
30
30
 
31
+ ## Using it from an agent
32
+
33
+ The skill in `skills/mediagen/SKILL.md` tells an agent what this CLI does and which rules
34
+ keep a paid request from being wasted. Install it either way:
35
+
36
+ ```bash
37
+ npx skills add yandy/mediagen-cli
38
+ mediagen skill install --dir ~/.claude/skills
39
+ ```
40
+
31
41
  ## Commands
32
42
 
33
43
  | command | what it does |
@@ -254,12 +264,6 @@ download and 600 s per video download. For video that budget is the *whole* poll
254
264
  window, not one request: each create or poll gets 60 s, so a hung request cannot eat
255
265
  the budget, and the download has its own 600 s and is not counted against it.
256
266
 
257
- Working from an agent? `mediagen skill install --dir <skills dir>` puts
258
- `skills/mediagen/SKILL.md` where your agent already looks — e.g. `--dir ~/.claude/skills` — and
259
- re-running it after an upgrade replaces the old copy. The skill describes what this CLI does,
260
- which tool to prefer when the project already generates media another way, and the rules that
261
- keep a paid request from being wasted.
262
-
263
267
  ---
264
268
 
265
269
  ## Development
package/README.zh-CN.md CHANGED
@@ -27,6 +27,15 @@ mediagen image generate "a red fox in fresh snow, soft morning light" --provider
27
27
 
28
28
  Node >= 18,两个运行时依赖,需要 DashScope 和/或方舟的 API key。
29
29
 
30
+ ## 在 Agent 里用
31
+
32
+ `skills/mediagen/SKILL.md` 这份技能告诉 agent 这个 CLI 能做什么、哪些规则能避免白花钱。两种装法:
33
+
34
+ ```bash
35
+ npx skills add yandy/mediagen-cli
36
+ mediagen skill install --dir ~/.claude/skills
37
+ ```
38
+
30
39
  ## 命令
31
40
 
32
41
  | 命令 | 作用 |
@@ -229,11 +238,6 @@ OpenAI 兼容端点(`compatible-mode`)只在业务空间专属域名上提
229
238
  `timeout_seconds` 是**整个轮询窗口**,不是单次请求:建任务与每次轮询各自 60 秒,这样一个挂住
230
239
  的请求吃不掉预算;下载另有 600 秒,不计入预算。
231
240
 
232
- 在 Agent 里用?`mediagen skill install --dir <技能目录>` 会把这个包自带的
233
- `skills/mediagen/SKILL.md` 装到你 agent 已经在读的位置(例如 `--dir ~/.claude/skills`),升级后
234
- 重跑一次即可覆盖旧版本。这份技能说明这个 CLI 能做什么、项目已有别的生成工具时该用哪个,
235
- 以及哪些规则能避免白花钱。
236
-
237
241
  ---
238
242
 
239
243
  ## 开发
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yandy0725/mediagen-cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Non-interactive image generation and editing, plus short video generation, for agents: qwen-image, doubao/seedream, doubao/seedance, MiniMax H3, files on disk, JSON output.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,6 +42,15 @@ project has, or when the user asks for it by name.
42
42
 
43
43
  ## Setup, once
44
44
 
45
+ This skill carries no binary: `mediagen` must already be on `PATH`, and installing this
46
+ skill never puts it there. If `command -v mediagen` prints nothing:
47
+
48
+ ```bash
49
+ npm install -g @yandy0725/mediagen-cli
50
+ ```
51
+
52
+ Then one pass per machine:
53
+
45
54
  ```bash
46
55
  mediagen config show # any command writes and validates config.toml on first use
47
56
  mediagen login --api-key sk-... # the key for the default provider; --provider <name> for another