@pippit-dev/cli 1.0.4 → 1.0.6

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
@@ -223,11 +223,11 @@ pippit-tool-cli generate-video \
223
223
  --video "~/images/video2.mp4" \
224
224
  --duration 5 \
225
225
  --ratio "9:16" \
226
- --model "seedance2.0_direct" \
226
+ --model "Seedance_2.0_mini" \
227
227
  --resolution "720p"
228
228
  ```
229
229
 
230
- 命令输出 `thread_id`、`run_id` 和 `web_thread_link`。提交生视频 HTTP 请求时,参考图和参考视频会使用上传接口返回的 `pippit_asset_id`。图片最多 9 张,支持 `.jpg`、`.jpeg`、`.png`、`.gif`、`.bmp`、`.webp`、`.svg`;视频最多 3 个,支持 `.mp4`、`.avi`、`.mov`、`.wmv`、`.flv`、`.webm`、`.mkv`、`.m4v`。普通用户支持模型 `seedance2.0_direct` 和 `seedance2.0_fast_direct`;VIP 用户额外支持 `seedance2.0_vision` 和 `seedance2.0_fast_vision`。模型、比例、分辨率、素材数量等参数的语义校验当前预留在后续实现。
230
+ 命令输出 `thread_id`、`run_id` 和 `web_thread_link`。提交生视频 HTTP 请求时,参考图和参考视频会使用上传接口返回的 `pippit_asset_id`。图片最多 9 张,支持 `.jpg`、`.jpeg`、`.png`、`.gif`、`.bmp`、`.webp`、`.svg`;视频最多 3 个,支持 `.mp4`、`.avi`、`.mov`、`.wmv`、`.flv`、`.webm`、`.mkv`、`.m4v`。普通用户支持模型 `seedance2.0_direct` 和 `seedance2.0_fast_direct`;VIP 用户额外支持 `seedance2.0_vision`、`seedance2.0_fast_vision` 和 `Seedance_2.0_mini`。模型、比例、分辨率、素材数量等参数的语义校验当前预留在后续实现。
231
231
 
232
232
  查询并下载生视频结果:
233
233
 
package/checksums.txt CHANGED
@@ -1,6 +1,6 @@
1
- 889fabfbe3bd94cfeb34f9e3ee5fd9c2b39d5ab57f13e8b2c257dfca142bb2ce pippit-tool-cli-1.0.4-darwin-amd64.tar.gz
2
- 8c54acc247b9f7050697fd2c52f3df84558fcfe01db3c7e186b4741294738236 pippit-tool-cli-1.0.4-darwin-arm64.tar.gz
3
- 45de9614ed9b4241775f0451e603ab833484810def2eed31e4b3673a9cfe283d pippit-tool-cli-1.0.4-linux-amd64.tar.gz
4
- 44852e1542b44085d543f2f2672ae9793e6e6bf7457ec90f7efcf46e3e252820 pippit-tool-cli-1.0.4-linux-arm64.tar.gz
5
- 4b921069137fbe129973dbceae7fdbaa8a8f5cc2803ff3347b1e21452c3b9946 pippit-tool-cli-1.0.4-windows-amd64.zip
6
- adf357fab99845e47933669d0fef8395189e023f69546454f61e4aca14392195 pippit-tool-cli-1.0.4-windows-arm64.zip
1
+ 4a91568122037aef82ae4f4503d8aa32ec9b08a36fcdfa126ba2c5abd9883393 pippit-tool-cli-1.0.6-darwin-amd64.tar.gz
2
+ 1e8361815dcebac9a7a5f47d7d4d22509be0ec40988f8930bf87259388a5124d pippit-tool-cli-1.0.6-darwin-arm64.tar.gz
3
+ 7f1100d92609ccba09c6702a36972f266ba9c2efbd11cb42848ffb0f2caa9381 pippit-tool-cli-1.0.6-linux-amd64.tar.gz
4
+ cd62aec82919c293a12f94ea7884f2e304022188792d89385047643f67ddfb08 pippit-tool-cli-1.0.6-linux-arm64.tar.gz
5
+ 8951e38595e2b825ef85910452c9d3cbd8f91eb9453cf284e4f0e97f89d64166 pippit-tool-cli-1.0.6-windows-amd64.zip
6
+ 4a52b208d52c0c81186e38b066c0c0f503ca1b881bc9980b700e146d5d5ceb67 pippit-tool-cli-1.0.6-windows-arm64.zip
@@ -42,7 +42,7 @@ func NewCommand(stdout, stderr io.Writer, runner *common.Runner) *cobra.Command
42
42
  flags.StringArrayVar(&opts.VideoPaths, "video", nil, "local reference video path; repeat for multiple videos, up to 3")
43
43
  flags.IntVar(&durationSec, "duration", 0, "video duration in seconds")
44
44
  flags.StringVar(&opts.Ratio, "ratio", "", "video ratio, such as 9:16, 16:9, 3:4, 4:3")
45
- flags.StringVar(&opts.Model, "model", "", "video model; normal users: seedance2.0_direct, seedance2.0_fast_direct; VIP users: seedance2.0_direct, seedance2.0_fast_direct, seedance2.0_vision, seedance2.0_fast_vision")
45
+ flags.StringVar(&opts.Model, "model", "", "video model; normal users: seedance2.0_direct, seedance2.0_fast_direct; VIP users: seedance2.0_direct, seedance2.0_fast_direct, seedance2.0_vision, seedance2.0_fast_vision, Seedance_2.0_mini")
46
46
  flags.StringVar(&opts.Resolution, "resolution", "", "video resolution, such as 720p, 1080p")
47
47
  return cmd
48
48
  }
@@ -66,7 +66,7 @@ func TestGenerateVideo(t *testing.T) {
66
66
  if param["duration_sec"] != float64(5) {
67
67
  t.Fatalf("duration_sec = %v, want 5", param["duration_sec"])
68
68
  }
69
- if param["ratio"] != "9:16" || param["model"] != "seedance2.0_vision" || param["resolution"] != "720p" {
69
+ if param["ratio"] != "9:16" || param["model"] != "Seedance_2.0_mini" || param["resolution"] != "720p" {
70
70
  t.Fatalf("param = %#v, want ratio/model/resolution", param)
71
71
  }
72
72
  assertAssetRefs(t, param["images"], []string{"image_asset_1", "image_asset_2"})
@@ -100,7 +100,7 @@ func TestGenerateVideo(t *testing.T) {
100
100
  "--video", video2,
101
101
  "--duration", "5",
102
102
  "--ratio", "9:16",
103
- "--model", "seedance2.0_vision",
103
+ "--model", "Seedance_2.0_mini",
104
104
  "--resolution", "720p",
105
105
  })
106
106
 
@@ -89,9 +89,6 @@ func UploadFile(ctx context.Context, opts UploadFileOptions, runner *Runner) (*U
89
89
  }
90
90
 
91
91
  assetID := strings.TrimSpace(resp.Data.PippitAssetID)
92
- if assetID == "" {
93
- assetID = strings.TrimSpace(resp.Data.AssetID)
94
- }
95
92
  if assetID == "" {
96
93
  return nil, fmt.Errorf("上传文件响应缺少 pippit_asset_id")
97
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pippit-dev/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Pippit CLI",
5
5
  "bin": {
6
6
  "pippit-tool-cli": "scripts/run.js"