@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
|
@@ -304,6 +304,212 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
304
304
|
See the License for the specific language governing permissions and
|
|
305
305
|
limitations under the License.
|
|
306
306
|
|
|
307
|
+
===== @swc/helpers@0.5.6 =====
|
|
308
|
+
License metadata: Apache-2.0
|
|
309
|
+
|
|
310
|
+
--- LICENSE ---
|
|
311
|
+
Apache License
|
|
312
|
+
Version 2.0, January 2004
|
|
313
|
+
http://www.apache.org/licenses/
|
|
314
|
+
|
|
315
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
316
|
+
|
|
317
|
+
1. Definitions.
|
|
318
|
+
|
|
319
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
320
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
321
|
+
|
|
322
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
323
|
+
the copyright owner that is granting the License.
|
|
324
|
+
|
|
325
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
326
|
+
other entities that control, are controlled by, or are under common
|
|
327
|
+
control with that entity. For the purposes of this definition,
|
|
328
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
329
|
+
direction or management of such entity, whether by contract or
|
|
330
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
331
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
332
|
+
|
|
333
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
334
|
+
exercising permissions granted by this License.
|
|
335
|
+
|
|
336
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
337
|
+
including but not limited to software source code, documentation
|
|
338
|
+
source, and configuration files.
|
|
339
|
+
|
|
340
|
+
"Object" form shall mean any form resulting from mechanical
|
|
341
|
+
transformation or translation of a Source form, including but
|
|
342
|
+
not limited to compiled object code, generated documentation,
|
|
343
|
+
and conversions to other media types.
|
|
344
|
+
|
|
345
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
346
|
+
Object form, made available under the License, as indicated by a
|
|
347
|
+
copyright notice that is included in or attached to the work
|
|
348
|
+
(an example is provided in the Appendix below).
|
|
349
|
+
|
|
350
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
351
|
+
form, that is based on (or derived from) the Work and for which the
|
|
352
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
353
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
354
|
+
of this License, Derivative Works shall not include works that remain
|
|
355
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
356
|
+
the Work and Derivative Works thereof.
|
|
357
|
+
|
|
358
|
+
"Contribution" shall mean any work of authorship, including
|
|
359
|
+
the original version of the Work and any modifications or additions
|
|
360
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
361
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
362
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
363
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
364
|
+
means any form of electronic, verbal, or written communication sent
|
|
365
|
+
to the Licensor or its representatives, including but not limited to
|
|
366
|
+
communication on electronic mailing lists, source code control systems,
|
|
367
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
368
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
369
|
+
excluding communication that is conspicuously marked or otherwise
|
|
370
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
371
|
+
|
|
372
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
373
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
374
|
+
subsequently incorporated within the Work.
|
|
375
|
+
|
|
376
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
377
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
378
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
379
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
380
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
381
|
+
Work and such Derivative Works in Source or Object form.
|
|
382
|
+
|
|
383
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
384
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
385
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
386
|
+
(except as stated in this section) patent license to make, have made,
|
|
387
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
388
|
+
where such license applies only to those patent claims licensable
|
|
389
|
+
by such Contributor that are necessarily infringed by their
|
|
390
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
391
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
392
|
+
institute patent litigation against any entity (including a
|
|
393
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
394
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
395
|
+
or contributory patent infringement, then any patent licenses
|
|
396
|
+
granted to You under this License for that Work shall terminate
|
|
397
|
+
as of the date such litigation is filed.
|
|
398
|
+
|
|
399
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
400
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
401
|
+
modifications, and in Source or Object form, provided that You
|
|
402
|
+
meet the following conditions:
|
|
403
|
+
|
|
404
|
+
(a) You must give any other recipients of the Work or
|
|
405
|
+
Derivative Works a copy of this License; and
|
|
406
|
+
|
|
407
|
+
(b) You must cause any modified files to carry prominent notices
|
|
408
|
+
stating that You changed the files; and
|
|
409
|
+
|
|
410
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
411
|
+
that You distribute, all copyright, patent, trademark, and
|
|
412
|
+
attribution notices from the Source form of the Work,
|
|
413
|
+
excluding those notices that do not pertain to any part of
|
|
414
|
+
the Derivative Works; and
|
|
415
|
+
|
|
416
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
417
|
+
distribution, then any Derivative Works that You distribute must
|
|
418
|
+
include a readable copy of the attribution notices contained
|
|
419
|
+
within such NOTICE file, excluding those notices that do not
|
|
420
|
+
pertain to any part of the Derivative Works, in at least one
|
|
421
|
+
of the following places: within a NOTICE text file distributed
|
|
422
|
+
as part of the Derivative Works; within the Source form or
|
|
423
|
+
documentation, if provided along with the Derivative Works; or,
|
|
424
|
+
within a display generated by the Derivative Works, if and
|
|
425
|
+
wherever such third-party notices normally appear. The contents
|
|
426
|
+
of the NOTICE file are for informational purposes only and
|
|
427
|
+
do not modify the License. You may add Your own attribution
|
|
428
|
+
notices within Derivative Works that You distribute, alongside
|
|
429
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
430
|
+
that such additional attribution notices cannot be construed
|
|
431
|
+
as modifying the License.
|
|
432
|
+
|
|
433
|
+
You may add Your own copyright statement to Your modifications and
|
|
434
|
+
may provide additional or different license terms and conditions
|
|
435
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
436
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
437
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
438
|
+
the conditions stated in this License.
|
|
439
|
+
|
|
440
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
441
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
442
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
443
|
+
this License, without any additional terms or conditions.
|
|
444
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
445
|
+
the terms of any separate license agreement you may have executed
|
|
446
|
+
with Licensor regarding such Contributions.
|
|
447
|
+
|
|
448
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
449
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
450
|
+
except as required for reasonable and customary use in describing the
|
|
451
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
452
|
+
|
|
453
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
454
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
455
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
456
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
457
|
+
implied, including, without limitation, any warranties or conditions
|
|
458
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
459
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
460
|
+
appropriateness of using or redistributing the Work and assume any
|
|
461
|
+
risks associated with Your exercise of permissions under this License.
|
|
462
|
+
|
|
463
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
464
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
465
|
+
unless required by applicable law (such as deliberate and grossly
|
|
466
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
467
|
+
liable to You for damages, including any direct, indirect, special,
|
|
468
|
+
incidental, or consequential damages of any character arising as a
|
|
469
|
+
result of this License or out of the use or inability to use the
|
|
470
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
471
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
472
|
+
other commercial damages or losses), even if such Contributor
|
|
473
|
+
has been advised of the possibility of such damages.
|
|
474
|
+
|
|
475
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
476
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
477
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
478
|
+
or other liability obligations and/or rights consistent with this
|
|
479
|
+
License. However, in accepting such obligations, You may act only
|
|
480
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
481
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
482
|
+
defend, and hold each Contributor harmless for any liability
|
|
483
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
484
|
+
of your accepting any such warranty or additional liability.
|
|
485
|
+
|
|
486
|
+
END OF TERMS AND CONDITIONS
|
|
487
|
+
|
|
488
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
489
|
+
|
|
490
|
+
To apply the Apache License to your work, attach the following
|
|
491
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
492
|
+
replaced with your own identifying information. (Don't include
|
|
493
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
494
|
+
comment syntax for the file format. We also recommend that a
|
|
495
|
+
file or class name and description of purpose be included on the
|
|
496
|
+
same "printed page" as the copyright notice for easier
|
|
497
|
+
identification within third-party archives.
|
|
498
|
+
|
|
499
|
+
Copyright [yyyy] [name of copyright owner]
|
|
500
|
+
|
|
501
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
502
|
+
you may not use this file except in compliance with the License.
|
|
503
|
+
You may obtain a copy of the License at
|
|
504
|
+
|
|
505
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
506
|
+
|
|
507
|
+
Unless required by applicable law or agreed to in writing, software
|
|
508
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
509
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
510
|
+
See the License for the specific language governing permissions and
|
|
511
|
+
limitations under the License.
|
|
512
|
+
|
|
307
513
|
===== dagre@0.8.5 =====
|
|
308
514
|
License metadata: MIT
|
|
309
515
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
7e45eb4e7bb2323fd1a0f5bc56b731247076f9ae8171f46d01ba4d6774de1b0f xyq-canvas-command-runtime.cjs
|
|
2
|
+
c29b5a61e7c48ec377826ec7ff6a6f2b16f0824e5a4b7f278f622524c694e047 xyq-canvas-command-runtime.cjs.LEGAL.txt
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
package common
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"context"
|
|
5
|
+
"fmt"
|
|
6
|
+
|
|
7
|
+
"github.com/Pippit-dev/pippit-cli/internal/config"
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
type WatermarkResult struct {
|
|
11
|
+
Enabled bool `json:"enabled"`
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type watermarkResponse struct {
|
|
15
|
+
Ret string `json:"ret"`
|
|
16
|
+
Errmsg string `json:"errmsg"`
|
|
17
|
+
LogID string `json:"log_id"`
|
|
18
|
+
Data *struct {
|
|
19
|
+
Enabled *bool `json:"enabled"`
|
|
20
|
+
} `json:"data"`
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Watermark queries when enabled is nil; updates return the server's readback in the same request.
|
|
24
|
+
func Watermark(ctx context.Context, runner *Runner, enabled *bool) (*WatermarkResult, error) {
|
|
25
|
+
if runner == nil || runner.Client == nil {
|
|
26
|
+
return nil, fmt.Errorf("水印设置运行器客户端缺失")
|
|
27
|
+
}
|
|
28
|
+
path := config.GetWatermarkSettingPath
|
|
29
|
+
var body any = struct{}{}
|
|
30
|
+
if enabled != nil {
|
|
31
|
+
path = config.UpdateWatermarkSettingPath
|
|
32
|
+
body = struct {
|
|
33
|
+
Enabled bool `json:"enabled"`
|
|
34
|
+
}{Enabled: *enabled}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var resp watermarkResponse
|
|
38
|
+
if err := runner.Client.SendRequest(ctx, path, body, &resp); err != nil {
|
|
39
|
+
if enabled != nil {
|
|
40
|
+
return nil, fmt.Errorf("设置水印请求失败,结果可能已生效,请运行 watermark 查询确认: %w", err)
|
|
41
|
+
}
|
|
42
|
+
return nil, fmt.Errorf("查询水印设置请求失败: %w", err)
|
|
43
|
+
}
|
|
44
|
+
if resp.Ret != "0" {
|
|
45
|
+
if resp.Errmsg == "" {
|
|
46
|
+
resp.Errmsg = "未知错误"
|
|
47
|
+
}
|
|
48
|
+
return nil, NewLogIDError(fmt.Sprintf("水印设置请求返回失败: ret=%s errmsg=%s", resp.Ret, resp.Errmsg), resp.LogID)
|
|
49
|
+
}
|
|
50
|
+
if resp.Data == nil || resp.Data.Enabled == nil {
|
|
51
|
+
return nil, NewLogIDError("水印设置响应缺少 data.enabled;请查询确认当前状态", resp.LogID)
|
|
52
|
+
}
|
|
53
|
+
return &WatermarkResult{Enabled: *resp.Data.Enabled}, nil
|
|
54
|
+
}
|
|
@@ -21,6 +21,8 @@ const (
|
|
|
21
21
|
SubmitMarketingRunPath = "/api/biz/v1/agent/submit_marketing_run"
|
|
22
22
|
QueryGenerateVideoResultPath = "/api/biz/v1/agent/query_generate_video_result"
|
|
23
23
|
GetCreditBalancePath = "/api/biz/v1/skill/get_credit_balance"
|
|
24
|
+
GetWatermarkSettingPath = "/api/biz/v1/skill/mget_user_setting"
|
|
25
|
+
UpdateWatermarkSettingPath = "/api/biz/v1/skill/update_user_setting"
|
|
24
26
|
GetLiteTeamListPath = "/api/biz/v1/skill/get_lite_team_list"
|
|
25
27
|
GetAvailableModelListPath = "/api/biz/v1/skill/get_available_model_list"
|
|
26
28
|
GetThreadPath = "/api/biz/v1/skill/get_thread"
|
package/package.json
CHANGED
|
@@ -32,6 +32,7 @@ metadata:
|
|
|
32
32
|
| 用户意图 | CLI | 必读文档 |
|
|
33
33
|
| --- | --- | --- |
|
|
34
34
|
| 查看登录、登录、退出或切换账号 | `status` / `login` / `logout` | [授权](commands/auth.md) |
|
|
35
|
+
| 查询或修改当前账号的 AIGC 水印开关 | `watermark [on\|off]` | [账号水印设置](commands/watermark.md) |
|
|
35
36
|
| 新建短剧、续写、改写、回复后端问题 | `short-drama +submit-run` | [提交任务](commands/submit-run.md) |
|
|
36
37
|
| 上传本地参考剧本 | `short-drama +upload-file` | [上传文件](commands/upload-file.md) |
|
|
37
38
|
| 查询角色、场景、外观、画布、分镜等业务内容 | 同一会话 `short-drama +submit-run`,再用 `get-thread` 获取回答 | [业务内容查询](workflows/creation.md#业务内容查询) |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# 账号 AIGC 水印设置
|
|
2
|
+
|
|
3
|
+
先用 `pippit-tool-cli watermark --help` 检查命令。缺失时按[安装说明](../scripts/install.md)通过宿主升级,独立 CLI 可执行 `update`;改用升级后的绝对路径重查。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pippit-tool-cli watermark # 查询
|
|
7
|
+
pippit-tool-cli watermark off # 关闭
|
|
8
|
+
pippit-tool-cli watermark on # 保留
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
返回 `{"enabled":true}` 或 `{"enabled":false}`,`true` 表示保留。设置后返回服务端回读状态。
|
|
12
|
+
|
|
13
|
+
设置与 Web 同步,按当前账号持续生效,与团队选择无关。用户明确要求修改账号设置时才执行 `on/off`;只要求本次视频无水印时,先确认是否接受修改账号默认值。
|
|
14
|
+
|
|
15
|
+
此开关控制 AIGC 水印,品牌水印与最终下载权益由服务端决定。修改报错或结果未知时先查询确认。
|
|
@@ -45,6 +45,7 @@ metadata:
|
|
|
45
45
|
| 去除已有视频字幕 | `erase-video-subtitle` | [擦字幕](commands/erase-video-subtitle.md) |
|
|
46
46
|
| 查询已有任务进度、下载生成结果 | `query-result` | [查询结果](commands/query-result.md) |
|
|
47
47
|
| 查询当前空间积分余额、剩余 credits | `get-credit-balance` | [积分](commands/get-credit-balance.md) |
|
|
48
|
+
| 查询或修改当前账号的 AIGC 水印开关 | `watermark [on\|off]` | [账号水印设置](commands/watermark.md) |
|
|
48
49
|
|
|
49
50
|
- 普通生图、生视频也走对应生成命令,无需用户额外声明“模型直出”。
|
|
50
51
|
- 明确要求修改现有画布或其中节点时优先走 Canvas;普通生图、生视频不自动创建画布。“修改节点提示词”只修改配置,不隐含生成;指定节点生成或导出须先确认当前命令目录有对应能力。
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# 账号 AIGC 水印设置
|
|
2
|
+
|
|
3
|
+
先用 `pippit-tool-cli watermark --help` 检查命令。缺失时按[安装说明](../scripts/install.md)通过宿主升级,独立 CLI 可执行 `update`;改用升级后的绝对路径重查。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pippit-tool-cli watermark # 查询
|
|
7
|
+
pippit-tool-cli watermark off # 关闭
|
|
8
|
+
pippit-tool-cli watermark on # 保留
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
返回 `{"enabled":true}` 或 `{"enabled":false}`,`true` 表示保留。设置后返回服务端回读状态。
|
|
12
|
+
|
|
13
|
+
设置与 Web 同步,按当前账号持续生效,与团队选择无关。用户明确要求修改账号设置时才执行 `on/off`;只要求本次视频无水印时,先确认是否接受修改账号默认值。
|
|
14
|
+
|
|
15
|
+
此开关控制 AIGC 水印,品牌水印与最终下载权益由服务端决定。修改报错或结果未知时先查询确认。
|