@pippit-dev/cli 1.0.50 → 1.0.52
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 +16 -0
- package/checksums.txt +6 -6
- package/cmd/root.go +1 -0
- package/cmd/space.go +1 -1
- package/cmd/watermark.go +38 -0
- package/dist/checksums.txt +6 -6
- package/dist/xyq-canvas-command-runtime.cjs +10 -10
- package/dist/xyq-canvas-command-runtime.cjs.LEGAL.txt +206 -0
- package/dist/xyq-canvas-command-runtime.cjs.sha256 +2 -2
- package/internal/commandnames/names.go +1 -0
- package/internal/common/watermark.go +54 -0
- package/internal/config/config.go +2 -0
- package/package.json +1 -1
- package/skills/short-drama/SKILL.md +1 -0
- package/skills/short-drama/commands/watermark.md +15 -0
- package/skills/xyq-nest-skill/SKILL.md +1 -0
- package/skills/xyq-nest-skill/commands/watermark.md +15 -0
package/README.md
CHANGED
|
@@ -77,6 +77,20 @@ pippit-tool-cli get-credit-balance --team-id 0 # 仅本次使用个人
|
|
|
77
77
|
|
|
78
78
|
`space list/use TEAM_ID` 依赖 API 部署 `/api/biz/v1/skill/get_lite_team_list` 的 AK 适配入口,业务团队使用还依赖对应 API 团队权限实现;不直连 commerce Web 接口。宿主 Agent 的选择、任务恢复与不回退规则已写入三个 Skill 的 `Space Selection` 章节。
|
|
79
79
|
|
|
80
|
+
## 账号 AIGC 水印设置
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pippit-tool-cli watermark # 查询当前账号的 AIGC 水印开关
|
|
84
|
+
pippit-tool-cli watermark off # 保存内容时去除 AIGC 水印
|
|
85
|
+
pippit-tool-cli watermark on # 恢复保留 AIGC 水印
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
查询和修改均输出 `{"enabled":true}` 或 `{"enabled":false}`,`true` 表示保留 AIGC 水印。无参数只查询,只有显式 `on` / `off` 才修改;修改接口在服务端回读后返回当前状态。
|
|
89
|
+
|
|
90
|
+
这是当前认证账号的持久设置,与 Web「保存内容去除 AIGC 水印」同步;不依赖默认个人/团队空间,也不会变成团队开关。品牌水印与最终下载权益仍由服务端决定,关闭 AIGC 开关不代表所有视频均无任何水印。修改失败或结果不明时先用无参数命令查询,不自动重复写入。
|
|
91
|
+
|
|
92
|
+
依赖 API 部署 `/api/biz/v1/skill/mget_user_setting` 和 `/api/biz/v1/skill/update_user_setting` 的 AK 接口。前者接收 `{}`,后者接收 `{"enabled":true}` 或 `{"enabled":false}`;接口仅读写 AK 所属账号的 AIGC 设置。
|
|
93
|
+
|
|
80
94
|
## 小云雀营销成片技能
|
|
81
95
|
|
|
82
96
|
入口:[skills/xyq-marketing-skill/SKILL.md](skills/xyq-marketing-skill/SKILL.md)。使用 [官网](https://xyq.jianying.com/cli?tab=api) 已开放的营销 API,支持素材上传、营销视频提交、结果查询与下载、积分查询。安装器会从 `skills/` 自动安装该 Skill,也可以单独安装:
|
|
@@ -261,6 +275,8 @@ pippit-tool-cli canvas command run create_biz_node \
|
|
|
261
275
|
|
|
262
276
|
`list [--category <category>]` 返回精简命令目录;`describe <command>` 说明入口参数,按 `--operation <name>` 查看一种领域操作、按 `--node-kind <kind>` 查看业务节点初始字段、按 `--path <schema.path>` 查看 schema 子路径。需要完整嵌套结构时使用 `schema [command]` 显式导出。`create_biz_node.nodeKind` 包含 `scene3d` 与 `timeline-composition`;字段枚举、必填项、默认值与动态来源以当前安装版本的 schema 为准。
|
|
263
277
|
|
|
278
|
+
引用边通过 `create_edge`、`reconnect_edge`、`update_edge_data` 和 `delete_edges` 显式维护,参数以当前 `describe` 为准。`create_biz_node` 不提供顶层 `references`;`update_node_data` 写入 `generation.references` 只更新草稿数据,不自动创建、替换或删除边,修改其他生成参数也无需携带引用列表。
|
|
279
|
+
|
|
264
280
|
发现输出使用 `schema_version: 2`:`list` 只包含名称、分类和摘要;`describe` 的 `schema_view: "summary"` 表示展示视图,嵌套内容通过 `schema_path` 继续展开,不能直接当作完整校验 schema。原来从 `list` 或 `describe` 读取完整 `input_schema` 的脚本应改用 `schema [command]`。默认索引预算为 16 KiB,单次字段说明预算为 32 KiB;完整导出需要显式调用,执行命令的输入与返回值不受这一发现协议调整影响。
|
|
265
281
|
|
|
266
282
|
`guide [topic]` 提供无需登录的离线帮助。无主题时仅返回索引,可选 `storyboard`、`prompt-references`、`time`、`timeline`、`scene3d`;正文包含单位、ID 来源、前置条件和最小示例。指南不启用新能力,先用 `list` 确认本机运行时支持哪些命令。故事板指南说明原生 `<duration-ms>` 标签累加与引用格式;目前没有公开的故事板脚本编辑、镜头排序或指定镜头生成领域命令,通用视频生成与资产补丁不能替代其业务流程。
|
package/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
edd2d8640d4a34b156d8c614ef5186ce91a6ea8778aee7b208d41296a840ef3f pippit-tool-cli-1.0.52-darwin-amd64.tar.gz
|
|
2
|
+
7b4b992088057f012851cd5c396d05239ad5fd6782bf93c3a7f9f5ae494b81fd pippit-tool-cli-1.0.52-darwin-arm64.tar.gz
|
|
3
|
+
aab287cc80ccab5f78f0f73df95d15b61d7e9e67205fb8b5e6386c22a35dc732 pippit-tool-cli-1.0.52-linux-amd64.tar.gz
|
|
4
|
+
a9c86c8323d9f2a4859a0280095a7cac85cdf0e7fc59aa3bc758f99332bd387e pippit-tool-cli-1.0.52-linux-arm64.tar.gz
|
|
5
|
+
a0846db0ff0f2c61337c85f50f3b746ad9a6bd1ed2862df16399ba6dcc4257e7 pippit-tool-cli-1.0.52-windows-amd64.zip
|
|
6
|
+
54dd5852b9597b3ad9405be0c63ebfa670b713c169f69649647b3afe5ed89fe1 pippit-tool-cli-1.0.52-windows-arm64.zip
|
package/cmd/root.go
CHANGED
|
@@ -119,6 +119,7 @@ func newRootCommandWithAdapter(stdout, stderr io.Writer, runner *common.Runner,
|
|
|
119
119
|
root.AddCommand(canvascmd.NewCommand(stdout, stderr, runner))
|
|
120
120
|
root.AddCommand(newDownloadResultCommand(stdout, stderr, runner))
|
|
121
121
|
root.AddCommand(newGetCreditBalanceCommand(stdout, stderr, runner))
|
|
122
|
+
root.AddCommand(newWatermarkCommand(stdout, stderr, runner))
|
|
122
123
|
root.AddCommand(newModelCommand(stdout, stderr, runner))
|
|
123
124
|
root.AddCommand(newMarketingCommand(stdout, stderr, runner, policy))
|
|
124
125
|
root.AddCommand(newGetThreadCommand(stdout, stderr, runner))
|
package/cmd/space.go
CHANGED
|
@@ -30,7 +30,7 @@ func prepareCommandSpace(cmd *cobra.Command, runner *common.Runner, stderr io.Wr
|
|
|
30
30
|
top = top.Parent()
|
|
31
31
|
}
|
|
32
32
|
switch top.Name() {
|
|
33
|
-
case commandnames.Space, commandnames.Login, commandnames.Logout, commandnames.Status, commandnames.Update, commandnames.Completion, commandnames.Help, commandnames.DownloadResult:
|
|
33
|
+
case commandnames.Space, commandnames.Login, commandnames.Logout, commandnames.Status, commandnames.Update, commandnames.Completion, commandnames.Help, commandnames.DownloadResult, commandnames.Watermark:
|
|
34
34
|
return nil
|
|
35
35
|
}
|
|
36
36
|
raw, _ := cmd.Flags().GetString("space-context")
|
package/cmd/watermark.go
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
package cmd
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"fmt"
|
|
5
|
+
"io"
|
|
6
|
+
|
|
7
|
+
"github.com/Pippit-dev/pippit-cli/internal/commandnames"
|
|
8
|
+
"github.com/Pippit-dev/pippit-cli/internal/common"
|
|
9
|
+
"github.com/spf13/cobra"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
func newWatermarkCommand(stdout, stderr io.Writer, runner *common.Runner) *cobra.Command {
|
|
13
|
+
cmd := &cobra.Command{
|
|
14
|
+
Use: commandnames.Watermark + " [on|off]",
|
|
15
|
+
Short: "Query or set the current account's AIGC watermark",
|
|
16
|
+
Long: "Without arguments, query the current account's AIGC watermark setting. Use on to retain it or off to remove it from saved content. This changes a persistent account setting; team selection does not change its scope. Final downloads remain subject to server policies.",
|
|
17
|
+
Args: cobra.MaximumNArgs(1),
|
|
18
|
+
ValidArgs: []string{"on", "off"},
|
|
19
|
+
RunE: withErrorLog(commandnames.Watermark, nil, func(cmd *cobra.Command, args []string) error {
|
|
20
|
+
var enabled *bool
|
|
21
|
+
if len(args) > 0 {
|
|
22
|
+
if args[0] != "on" && args[0] != "off" {
|
|
23
|
+
return fmt.Errorf("水印状态只支持 on 或 off")
|
|
24
|
+
}
|
|
25
|
+
value := args[0] == "on"
|
|
26
|
+
enabled = &value
|
|
27
|
+
}
|
|
28
|
+
result, err := common.Watermark(cmd.Context(), runner, enabled)
|
|
29
|
+
if err != nil {
|
|
30
|
+
return err
|
|
31
|
+
}
|
|
32
|
+
return common.WriteJSON(stdout, result)
|
|
33
|
+
}),
|
|
34
|
+
}
|
|
35
|
+
cmd.SetOut(stdout)
|
|
36
|
+
cmd.SetErr(stderr)
|
|
37
|
+
return cmd
|
|
38
|
+
}
|
package/dist/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
edd2d8640d4a34b156d8c614ef5186ce91a6ea8778aee7b208d41296a840ef3f pippit-tool-cli-1.0.52-darwin-amd64.tar.gz
|
|
2
|
+
7b4b992088057f012851cd5c396d05239ad5fd6782bf93c3a7f9f5ae494b81fd pippit-tool-cli-1.0.52-darwin-arm64.tar.gz
|
|
3
|
+
aab287cc80ccab5f78f0f73df95d15b61d7e9e67205fb8b5e6386c22a35dc732 pippit-tool-cli-1.0.52-linux-amd64.tar.gz
|
|
4
|
+
a9c86c8323d9f2a4859a0280095a7cac85cdf0e7fc59aa3bc758f99332bd387e pippit-tool-cli-1.0.52-linux-arm64.tar.gz
|
|
5
|
+
a0846db0ff0f2c61337c85f50f3b746ad9a6bd1ed2862df16399ba6dcc4257e7 pippit-tool-cli-1.0.52-windows-amd64.zip
|
|
6
|
+
54dd5852b9597b3ad9405be0c63ebfa670b713c169f69649647b3afe5ed89fe1 pippit-tool-cli-1.0.52-windows-arm64.zip
|