@pippit-dev/cli 1.0.5 → 1.0.7
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 "
|
|
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` 和 `
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
a0c76ece08d3a2d862c42c5b7b7c18c26bddb70515d377f5f348b790b063c408 pippit-tool-cli-1.0.7-darwin-amd64.tar.gz
|
|
2
|
+
3ac483fd72d418dc122b1715508799d0145d5b0a4d34a67e14737b991205c5b6 pippit-tool-cli-1.0.7-darwin-arm64.tar.gz
|
|
3
|
+
b60665ff4943b78d3f471117b8102d25ccf1702f7f2be77b9a72e7165eeafd37 pippit-tool-cli-1.0.7-linux-amd64.tar.gz
|
|
4
|
+
7e8eefeb90c48add42aa4ba7e928dc45ae83d163fde263d390857dd20cf4c239 pippit-tool-cli-1.0.7-linux-arm64.tar.gz
|
|
5
|
+
9a16066735c5624720e796771fd71d76d268709f18939904619d9a51d9985654 pippit-tool-cli-1.0.7-windows-amd64.zip
|
|
6
|
+
c44215200e681f0980979178ef8a9435c22cdb64c01ce2f48168d07b9c9fe565 pippit-tool-cli-1.0.7-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"] != "
|
|
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", "
|
|
103
|
+
"--model", "Seedance_2.0_mini",
|
|
104
104
|
"--resolution", "720p",
|
|
105
105
|
})
|
|
106
106
|
|
package/package.json
CHANGED
package/scripts/version-check.js
CHANGED
|
@@ -4,7 +4,7 @@ const path = require("path");
|
|
|
4
4
|
const { runSilent } = require("./platform");
|
|
5
5
|
const { DEFAULT_PKG } = require("./skills");
|
|
6
6
|
|
|
7
|
-
const CHECK_INTERVAL_MS =
|
|
7
|
+
const CHECK_INTERVAL_MS = 60 * 60 * 1000;
|
|
8
8
|
|
|
9
9
|
function defaultCacheFile() {
|
|
10
10
|
return path.join(os.homedir(), ".pippit_tool_cli", "version-check.json");
|