@yandy0725/mediagen-cli 0.3.2 → 0.4.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
@@ -35,7 +35,7 @@ keep a paid request from being wasted. Install it either way:
35
35
 
36
36
  ```bash
37
37
  npx skills add yandy/mediagen-cli
38
- mediagen skill install --dir ~/.claude/skills
38
+ mediagen skills install --dir ~/.claude/skills
39
39
  ```
40
40
 
41
41
  ## Commands
@@ -49,7 +49,7 @@ mediagen skill install --dir ~/.claude/skills
49
49
  | `mediagen login` / `logout` / `auth status` | store, remove, inspect API keys |
50
50
  | `mediagen config show` / `config path` | resolved config, and where it lives |
51
51
  | `mediagen config add <name>` | create a provider in config.toml; everything else is a manual edit |
52
- | `mediagen skill install --dir <path>` | copy the packaged agent skill into `<path>/mediagen/`; re-run to replace it |
52
+ | `mediagen skills install --dir <path>` | copy the packaged agent skill into `<path>/mediagen/`; re-run to replace it |
53
53
 
54
54
  `mediagen image generate --help` and `mediagen video generate --help` are the
55
55
  reference: every flag, the model table, the size reference, examples. Everything below
package/README.zh-CN.md CHANGED
@@ -33,7 +33,7 @@ Node >= 18,两个运行时依赖,需要 DashScope 和/或方舟的 API key
33
33
 
34
34
  ```bash
35
35
  npx skills add yandy/mediagen-cli
36
- mediagen skill install --dir ~/.claude/skills
36
+ mediagen skills install --dir ~/.claude/skills
37
37
  ```
38
38
 
39
39
  ## 命令
@@ -47,7 +47,7 @@ mediagen skill install --dir ~/.claude/skills
47
47
  | `mediagen login` / `logout` / `auth status` | 保存、删除、查看 API key |
48
48
  | `mediagen config show` / `config path` | 解析后的配置,以及它存在哪里 |
49
49
  | `mediagen config add <name>` | 在 config.toml 里新建一条 provider(其余修改手写文件) |
50
- | `mediagen skill install --dir <path>` | 把自带的 agent 技能装到 `<path>/mediagen/`;重跑即覆盖 |
50
+ | `mediagen skills install --dir <path>` | 把自带的 agent 技能装到 `<path>/mediagen/`;重跑即覆盖 |
51
51
 
52
52
  `mediagen image generate --help` 与 `mediagen video generate --help` 才是参考手册:
53
53
  全部参数、模型表、尺寸表、示例。下面只是简化版。
package/dist/cli.js CHANGED
@@ -102,12 +102,12 @@ default_provider = "volcengine"
102
102
 
103
103
  [providers.volcengine]
104
104
  base_url = "https://ark.cn-beijing.volces.com"
105
- api_key_env = "ARK_API_KEY" # which environment variable holds this provider's key
105
+ api_key_env = "VOLCENGINE_API_KEY" # which environment variable holds this provider's key
106
106
 
107
107
  [providers.volcengine.image]
108
108
  api_type = "ark"
109
109
  default = "doubao-seedream-5-0-flash-260915"
110
- models = ["doubao-seedream-5-0-flash-260915", "doubao-seedream-5-0-pro"]
110
+ models = ["doubao-seedream-5-0-flash-260915", "doubao-seedream-5-0-pro-260628"]
111
111
 
112
112
  [providers.volcengine.video]
113
113
  api_type = "ark"
@@ -120,7 +120,7 @@ models = ["doubao-seedance-1-0-pro-250528"] # ids are dated snapshots; add m
120
120
  # instead \u2014 https://{workspace-id}.cn-beijing.maas.aliyuncs.com \u2014 which is also
121
121
  # where Alibaba recommends sending native calls.
122
122
  base_url = "https://dashscope.aliyuncs.com"
123
- api_key_env = "DASHSCOPE_API_KEY"
123
+ api_key_env = "ALIYUN_API_KEY"
124
124
 
125
125
  [providers.aliyun.image]
126
126
  api_type = "dashscope" # input.messages + parameters, output.choices[].image
@@ -2500,7 +2500,7 @@ Subcommands:
2500
2500
  config show the resolved configuration, with a source note for each value
2501
2501
  config path where config.toml lives
2502
2502
  config add create a provider in config.toml (edit the file for anything else)
2503
- skill install copy the agent skill this package ships into a directory you name
2503
+ skills install copy the agent skill this package ships into a directory you name
2504
2504
  video generate create and pay for a video task, then save the result
2505
2505
  video status look at one task once, and save its video if it finished
2506
2506
 
@@ -2746,8 +2746,8 @@ function createProgram(options = {}) {
2746
2746
  config.command("add <name>").description("Create a [providers.<name>] table in config.toml").option("--api-type <dialect>", "protocol dialect: openai, dashscope, ark or minimax").option("--base-url <url>", "the provider's origin, e.g. https://ark.cn-beijing.volces.com").option("--task <image|video>", "which task table to create (default: image)").option("--model <id>", "the model id this task defaults to").option("--api-key-env <VAR>", "environment variable holding this provider's key").option("--json", "print a JSON result").action(async (name, flags) => {
2747
2747
  runConfigAdd(name, flags);
2748
2748
  });
2749
- const skill = program.command("skill").description("Install the agent skill this package ships");
2750
- skill.command("install").description("Copy the skill into a directory an agent reads skills from, replacing an older copy").option("--dir <path>", "the skills directory, e.g. ~/.claude/skills (the skill lands in <path>/mediagen)").option("--json", "print a JSON result").action(async (flags) => {
2749
+ const skills = program.command("skills").description("Install the agent skill this package ships");
2750
+ skills.command("install").description("Copy the skill into a directory an agent reads skills from, replacing an older copy").option("--dir <path>", "the skills directory, e.g. ~/.claude/skills (the skill lands in <path>/mediagen)").option("--json", "print a JSON result").action(async (flags) => {
2751
2751
  runSkillInstall(flags);
2752
2752
  });
2753
2753
  const image = program.command("image").description("Generate and edit images");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yandy0725/mediagen-cli",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
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",