@uzooai/anime-ai-cli 0.5.0 → 0.6.1
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/.agents/skills/uzoo-anime-cli/SKILL.md +10 -4
- package/.agents/skills/uzoo-anime-cli/references/agreement-workflow.md +0 -10
- package/.agents/skills/uzoo-anime-cli/references/commands.md +8 -16
- package/.agents/skills/uzoo-anime-cli/references/generation-workflow.md +3 -13
- package/.agents/skills/uzoo-anime-cli/references/image-tools-workflow.md +5 -27
- package/.agents/skills/uzoo-anime-cli/references/interaction-workflow.md +1 -1
- package/.agents/skills/uzoo-anime-cli/references/material-graph-workflow.md +7 -17
- package/.agents/skills/uzoo-anime-cli/references/node-capabilities.md +19 -50
- package/.agents/skills/uzoo-anime-cli/references/node-workflow.md +3 -7
- package/.agents/skills/uzoo-anime-cli/references/remake-workflow.md +1 -1
- package/.agents/skills/uzoo-anime-cli/references/repaint-workflow.md +7 -294
- package/.agents/skills/uzoo-anime-cli/references/seedance-review-workflow.md +1 -5
- package/.agents/skills/uzoo-anime-cli/references/video-tools-workflow.md +3 -7
- package/CHANGELOG.md +9 -85
- package/README.md +27 -219
- package/docs/Agent/346/216/245/345/205/245/344/270/216/347/211/210/346/234/254/346/233/264/346/226/260.md +41 -0
- package/package.json +11 -13
- package/src/cli.js +5 -0
- package/src/group-membership.js +0 -1
- package/src/install.js +237 -0
- package/assets/README.md +0 -4
- package/docs/CLI/345/275/223/345/211/215/350/214/203/345/233/264/344/270/216/346/234/254/345/234/260/346/211/223/345/214/205-20261103.md +0 -134
- package/docs/CLI/346/216/210/346/235/203/346/216/245/345/217/243/344/270/216/344/273/244/347/211/214/350/207/252/345/212/250/345/210/267/346/226/260/350/256/276/350/256/241.md +0 -540
- package/docs/CLI/347/274/272/345/217/243/346/240/270/345/257/271/344/270/216/346/224/266/345/260/276-20261105.md +0 -65
- package/docs/CLI/347/275/221/351/241/265/344/277/235/345/255/230/350/212/202/347/202/271/347/274/272/345/244/261/344/272/244/346/216/245.md +0 -52
- package/docs/M0-M5/345/256/236/346/226/275/344/270/216/351/252/214/346/224/266.md +0 -89
- package/docs/npm/347/272/277/344/270/212/345/217/221/345/270/203/344/270/216/345/256/211/350/243/205/344/275/277/347/224/250.md +0 -151
- package/docs//344/270/213/350/275/275/346/216/245/345/217/243/351/200/202/351/205/215/344/270/216/351/252/214/346/224/266.md +0 -107
- package/docs//344/270/232/345/212/241/350/203/275/345/212/233/350/241/245/345/205/250/344/270/216Skill/347/273/223/346/236/204/350/247/204/345/210/222.md +0 -311
- package/docs//345/205/250/345/261/200/351/231/204/344/273/266/350/265/204/346/272/220/345/234/260/345/235/200/344/270/216/346/250/241/345/236/213/350/257/273/345/217/226/345/267/256/345/274/202.md +0 -47
- package/docs//345/206/205/351/203/250Windows/345/256/211/350/243/205/344/270/216/345/215/207/347/272/247/351/252/214/346/224/266/346/270/205/345/215/225.md +0 -34
- package/docs//345/233/276/347/211/207/346/212/240/345/233/276/346/216/245/345/205/245/344/270/216/351/252/214/346/224/266-20261104.md +0 -110
- package/docs//345/274/200/345/217/221/350/256/241/345/210/222.md +0 -127
- package/docs//345/274/202/346/255/245/346/212/240/345/233/276CLI/346/235/203/351/231/220/344/272/244/346/216/245-20261105.md +0 -50
- package/docs//345/274/202/346/255/245/346/212/240/345/233/276/347/234/237/345/256/236/351/252/214/346/224/266-20261105.md +0 -44
- package/docs//346/226/260/344/274/232/350/257/235/344/273/273/345/212/241/344/272/244/344/273/243-/351/230/266/346/256/2652A.md +0 -79
- package/docs//346/226/260/351/203/250/347/275/262/347/224/273/345/270/203/345/206/262/347/252/201/351/252/214/346/224/266-20261102.md +0 -61
- package/docs//346/231/256/351/200/232/346/265/217/350/247/210/345/231/250/347/231/273/345/275/225.md +0 -53
- package/docs//346/255/243/345/274/217/347/253/231/345/210/207/346/215/242/344/270/216/351/252/214/346/224/266-20261104.md +0 -90
- package/docs//347/224/273/345/270/203CLI/344/270/213/344/270/200/351/230/266/346/256/265/345/274/200/345/217/221/350/256/241/345/210/222.md +0 -136
- package/docs//347/224/273/345/270/203CLI/351/235/236/350/275/254/347/273/230/345/256/214/345/226/204/350/256/241/345/210/222.md +0 -183
- package/docs//347/224/273/345/270/203/350/203/275/345/212/233/345/245/221/347/272/246/346/240/270/345/257/271.md +0 -59
- package/docs//347/234/237/345/256/236/344/270/232/345/212/241/346/216/245/345/205/245/344/270/216/346/265/213/350/257/225.md +0 -1004
- package/docs//347/264/240/346/235/220/345/205/245/345/272/223/344/270/216/347/224/273/345/270/203/344/277/235/345/255/230/351/227/256/351/242/230/345/256/232/344/275/215.md +0 -52
- package/docs//351/230/266/346/256/2653B/351/252/214/346/224/266/344/272/244/346/216/245.md +0 -44
- package/docs//351/230/266/346/256/265/344/270/200/351/252/214/346/224/266.md +0 -60
- package/docs//351/235/236/350/275/254/347/273/230/346/214/201/347/273/255/345/256/214/345/226/204/344/270/216/351/252/214/346/224/266-20261103.md +0 -76
- package/docs//351/235/236/350/275/254/347/273/230/347/254/254/344/272/214/346/211/271/345/256/236/346/226/275/344/270/216/351/252/214/346/224/266.md +0 -39
- package/docs//351/235/236/350/275/254/347/273/230/350/241/245/345/205/205/346/235/241/344/273/266/351/252/214/346/224/266-20261103.md +0 -113
- package/docs//351/235/236/350/275/254/347/273/230/351/246/226/346/211/271/345/256/236/346/226/275/344/270/216/351/252/214/346/224/266.md +0 -71
- package/examples/real-business/image-request.template.json +0 -7
- package/examples/real-business/node-patch.template.json +0 -11
- package/scripts/check-package-resources.mjs +0 -56
- package/scripts/check-release.mjs +0 -19
- package/scripts/pack-local.mjs +0 -33
- package/scripts/release-policy.mjs +0 -22
package/README.md
CHANGED
|
@@ -1,242 +1,50 @@
|
|
|
1
1
|
# Uzoo Anime CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Uzoo 官方命令行工具与 Agent Skills。通过终端或 Agent 管理画布和创作素材,发起图片与视频生成,并查询和下载结果。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Uzoo 官网](https://uzooai.com/) · [npm 软件包](https://www.npmjs.com/package/@uzooai/anime-ai-cli)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 安装与更新
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
需要 **Node.js 22 或更高版本**。
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**CLI + Agent Skill**
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## npm安装、版本更新与Agent使用
|
|
16
|
-
|
|
17
|
-
正式包名为`@uzooai/anime-ai-cli`,MIT开源,本包版本`0.5.0`,公开包/`latest`通道。发布到registry后可执行`npm install --global @uzooai/anime-ai-cli@latest`;未发布时可安装维护者提供的tgz。安装后使用`uzoo-anime --version`、`uzoo-anime --help`、`uzoo-anime skill path`。
|
|
18
|
-
|
|
19
|
-
实际服务为https://uzooai.com,首次先运行service status;随后在普通浏览器`auth login`并本人授权CLI;Agent另加载随包skill。升级通过npm明确选择@latest/@next/具体版本,不后台自动安装;沿用原profile和operation,不需要升级后退出登录。旧demo包迁移、配置位置、skill同步和发布条件见[完整安装与更新指南](docs/npm线上发布与安装使用.md)。本轮不发布、不实际安装或跨版本升级。
|
|
20
|
-
|
|
21
|
-
## 环境与安装
|
|
22
|
-
|
|
23
|
-
Node.js 22+。当前实际验证平台为 Windows,使用当前用户 DPAPI 加密凭据;Linux 提供 `secret-tool` 适配(需桌面 Secret Service,尚未实机验收);macOS 适配留到跨平台发布阶段,当前会明确拒绝保存凭据。系统凭据服务失败时不会回退到明文文件。
|
|
24
|
-
|
|
25
|
-
视频截帧和图片裁剪是可选功能,另需本机 FFmpeg 软件包内的 ffmpeg 和 ffprobe 在 PATH,或通过 `--ffmpeg PATH --ffprobe PATH` 明确提供;`uzoo-anime video tools` / `image tools` 可检查。当前采用按需安装:CLI/npm 包不捆绑或自动下载二进制,缺失返回 MEDIA_UNAVAILABLE 及结构化依赖清单;配套 Agent 说明具体安装方案并询问用户,同意后才安装、复检并继续原任务。已安装则复用,用户拒绝则保留任务待处理;业务 --yes 不授权安装。详见 [依赖与安装流程](.agents/skills/uzoo-anime-cli/references/video-tools-workflow.md#本机依赖与按需安装)。维护者可运行 `npm run test:media` 验证实际图片/视频处理;普通回归不要求安装媒体工具。当前 Windows 已实测,其他系统/编码及新环境实际安装仍待验证。
|
|
26
|
-
|
|
27
|
-
运行环境为 Node.js 22+。授权使用普通浏览器,无需浏览器扩展:
|
|
28
|
-
|
|
29
|
-
```powershell
|
|
30
|
-
cd E:\anime-ai\anime-ai-cli
|
|
31
|
-
npm install
|
|
32
|
-
node src/cli.js --help
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
可选本机安装:`npm install --global .`,随后使用 `uzoo-anime`。配套 skill 位于 `.agents/skills/uzoo-anime-cli`;在本目录开启 Codex 会话即可发现,其他工作目录可将该技能文件夹复制到自己的技能目录。不要把实际登录态打包进 skill。
|
|
36
|
-
|
|
37
|
-
npm 安装 CLI 不会自动将 skill 注册到 Agent。全局安装后,可用 `npm root --global` 找到包目录,skill 在包内 `.agents/skills/uzoo-anime-cli`;将整个文件夹(含 references)放入目标 Agent 的技能目录,或目标项目的 `.agents/skills/`。当前包名以 package.json 为准,为 `@uzooai/anime-ai-cli`,版本0.5.0,MIT许可证,已配置 `private: false`/public/latest;registry版本可用性以npm view查询为准,未发布时使用维护者提供的本地包。
|
|
38
|
-
|
|
39
|
-
所有真实任务先遵循 [统一交互流程](.agents/skills/uzoo-anime-cli/references/interaction-workflow.md):优先通过宿主卡片选择新建/已有画布、模型及适用参数、素材目录和方案,再通过费用卡片确认并继续原任务。已明确或明确委托的选择不重复询问;不把等待确认写成任务结束。宿主不支持卡片时说明后使用文字,不通过 CLI 假装生成宿主 UI。`model options --space personal --type image`(团队须带 UID)提供实时模型与已接入的普通节点控件数据,保存选择后用 `generation prepare` 组装请求。
|
|
40
|
-
|
|
41
|
-
Agent 执行创建前读取 [画布流程](.agents/skills/uzoo-anime-cli/references/canvas-workflow.md),维护者遵循 仓库中的项目规则AGENTS.md(不随运行包分发),将真实业务测试发现的问题同步修正到 CLI 和 skill。用户已明确的选择和创建授权应沿用,生成仍须每次预估并确认 OO 币。
|
|
42
|
-
|
|
43
|
-
CLI 与 skill 按当前前端实际使用的节点功能、参数与流程设计,运行时由 CLI 独立调用接口,不依赖网页保持打开。模型目录提供实时可选值与能力限制,不把管理端/供应商配置自动变成用户开关。生成请求只接收 CLI 已核实接入的字段,节点 extra 不整包透传;当前没有视频“无声”开关,generate_audio 不支持。前端已有而 CLI 尚未接入的路线继续标为待完善,详见 [生成参数范围](.agents/skills/uzoo-anime-cli/references/generation-workflow.md#参数与前端使用范围)。
|
|
44
|
-
|
|
45
|
-
## 空间选择
|
|
46
|
-
|
|
47
|
-
业务开始先确认个人或团队空间;团队需从账号信息确认具体团队 UID。模型查询、画布列表和创建必须传 `--space personal` 或 `--space team --team-uid UID`,不再默认个人。以下命令以已确认的个人空间为例;团队请换对应参数。已有画布操作先检查 team_uid,预估时说明实际个人/团队 OO 币钱包,等待用户每次确认。
|
|
48
|
-
|
|
49
|
-
团队余额由成员共用,普通成员只能查看本人的消费记录;其他成员使用时,即使本人没有消费,团队额度也可能下降。CLI任务实际费用以原任务计费和本人可见记录核验,团队余额按查询时点另列,不用余额差额推断本次消费,见 [团队钱包核验](.agents/skills/uzoo-anime-cli/references/generation-workflow.md#团队共享钱包与费用核验)。
|
|
50
|
-
|
|
51
|
-
## 登录与查询
|
|
52
|
-
|
|
53
|
-
```powershell
|
|
54
|
-
node src/cli.js config set --base-url http://127.0.0.1:5174
|
|
55
|
-
node src/cli.js auth login --web-url http://127.0.0.1:5174
|
|
56
|
-
node src/cli.js auth status
|
|
57
|
-
node src/cli.js model list --space personal --type image
|
|
58
|
-
node src/cli.js canvas list --space personal
|
|
59
|
-
node src/cli.js canvas get DOC_ID
|
|
60
|
-
node src/cli.js generation list --doc DOC_ID
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### 网页授权
|
|
64
|
-
|
|
65
|
-
线上 profile 只有在服务端和前端完成上线并开启功能后才能使用;`uzooai-online` 内置 `https://uzooai.com/api/v1`。直接运行:
|
|
66
|
-
|
|
67
|
-
```powershell
|
|
68
|
-
node src/cli.js --profile uzooai-online auth login
|
|
69
|
-
node src/cli.js --profile uzooai-online auth status
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
运行 `auth login` 后,在打开的网页登录页面完成正常登录并确认账号和设备。浏览器将一次性授权码交回本机 CLI,CLI 建立独立会话并加密保存凭据。旧扩展导入的网页凭据不会自动转成 CLI 凭据,需要重新授权。
|
|
73
|
-
|
|
74
|
-
可用 `--browser msedge` / `--browser chrome` 指定浏览器,默认使用系统浏览器;`--web-url` 接受网站根地址。默认等候 5 分钟,`--timeout MS` 可调整,Ctrl+C 取消。
|
|
75
|
-
|
|
76
|
-
网页登录仍执行网站的短信、滑块与设备校验。网页与 CLI 可以同时在线,各自刷新;新 CLI 登录会替换该账号原有 CLI 会话。`auth logout` 会先撤销当前 CLI 会话,再清除本地凭据。
|
|
77
|
-
|
|
78
|
-
手动导入仍可排查:`auth import --input login-state.local.json`,文件由用户在本机准备,包含 `accessToken`、`cookie`、`deviceId`。勿将凭据提交仓库或贴入聊天。
|
|
79
|
-
|
|
80
|
-
## Seedance 协议确认
|
|
81
|
-
|
|
82
|
-
首次使用或协议版本更新后,`generation protocol-status` 可查当前状态,`generation protocol-open` 可打开《统一协议》中的《Seedance2.0模型使用承诺书》本机阅读确认页。用户亲自勾选确认后才记录签署;已获费用授权的 submit/recover --yes 会等待签署、重新核验账号/输入/费用并继续原 operation。4401 是待签署状态,不是生成任务执行失败;不同意或超时不继续生成。详见 [协议流程](.agents/skills/uzoo-anime-cli/references/agreement-workflow.md)。
|
|
83
|
-
|
|
84
|
-
## 上传与生成
|
|
85
|
-
|
|
86
|
-
素材库使用独立素材空间:`material folders/list/get/upload/use`;节点素材使用 `resource upload`,上传成功但绑定未确认可凭原响应 `resource bind`,无需重传。`graph apply --input FILE` 支持普通节点整理、打组、单节点/整组连接;整组按成员类型与目标模型能力过滤。`generation prepare` 从当前合法拓扑准备单次请求,不自动提交。完整操作与限制见 [素材、素材库与分组流程](.agents/skills/uzoo-anime-cli/references/material-graph-workflow.md)。
|
|
87
|
-
|
|
88
|
-
请求准备现已合并节点持久参考、@素材标记、文本上下文和已通过的审核关联,并对照真实前端默认值与请求放置。`review start/get/wait/recover` 支持同画布普通图片/视频的显式审核及上游批量审核,记录状态并恢复画布关联;不提交生成,响应未知不重发审核。模拟/前端兼容及真实单图片审核、回填、下游请求复用已验证,视频/批量与网页人工验收待完成;跨画布、force 重审与完整自动审核编排仍未接入。输入与边界见 [素材审核指南](.agents/skills/uzoo-anime-cli/references/seedance-review-workflow.md)。
|
|
89
|
-
|
|
90
|
-
新增 `material save/save-get/save-recover`,使用网页的原结果直接入库接口并持久化幂等恢复;真实单图片原键恢复入库、库查询和 PNG 读取已通过,重新导入/网页人工验收待完成。当前前端版本冲突后自动覆盖旧快照的风险已隔离复现;CLI 保留 CAS 停止策略,写入/同步期间应暂停同画布编辑,之后网页重新加载服务器内容。详见 [素材流程](.agents/skills/uzoo-anime-cli/references/material-graph-workflow.md)。
|
|
91
|
-
|
|
92
|
-
素材入库是用户明确发起的独立动作,须指定目标目录或明确委托选择;CLI 的 folder_id 必填,不提供内容自动分类或生成后自动入库。生成结果回填画布、入库及从库导入画布分别执行,不能将其中一个动作默认扩展为后续动作。
|
|
93
|
-
|
|
94
|
-
遇到接口问题先用 `service status` 核验同源后端进程与数据库/Redis就绪;CLI 对网络或内部错误保留原错误并追加探针结果,健康恢复不会自动重发业务操作。`video clip/clips/clip-get/clip-recover` 已实现普通视频截取和原片段恢复,默认预检;真实 2 秒剪辑、结果节点/连线与 MP4 读取通过,网页人工播放待确认。此前 code 5000 的错误和未知操作保留在测试记录。详见 [视频工具](.agents/skills/uzoo-anime-cli/references/video-tools-workflow.md)。
|
|
95
|
-
|
|
96
|
-
`video frame --input frames.json --operation NAME` 默认预检,加 `--yes` 才按 `times_ms`(1–3 帧)解码、上传到画布并保存新图片素材及来源系统线;`video frame-get/frame-recover NAME` 查询/恢复原阶段。真实 1000ms 单帧、640×640 JPEG、0 OO 上传任务与读回通过,多帧真实上传和网页人工查看待完成。结果不自动存入素材库。任务/节点的签名引用不同时,截帧通过实际媒体大小与 SHA-256 核验同一内容;其他历史路线的跨日引用兼容尚待单独补齐。
|
|
97
|
-
|
|
98
|
-
`image crop --input crop.json --operation NAME` 默认预检,使用原图像素 rect 或最大居中 aspect_ratio,加 --yes 才导出 PNG、上传并保存下游图片素材与 image-edit-link;`image crop-get/crop-recover NAME` 查询/恢复。当前支持同画布真实任务的静态 PNG/JPEG,真实 3:4/768×1024 裁剪与0 OO上传通过;原图保留、不自动入库、不继承原图审核。导出最长边4096、1600万像素,网页人工显示及其他格式/方向元数据待验证。详见 [图片工具](.agents/skills/uzoo-anime-cli/references/image-tools-workflow.md)。
|
|
99
|
-
|
|
100
|
-
`image annotate --input annotations.json --operation NAME`默认预检,支持原图像素矩形/椭圆/直线/画笔/单行文字;--yes才本地合成PNG并上传,下游类型按前端:生成图→普通图片,素材图→素材。查询/恢复用image annotate-get/annotate-recover。现有FFmpeg还须具备用到的drawvg/drawtext过滤器,文字需包含实际字形的已安装字体,缺依赖先询问;无文字无需字体。生成图面部红框、1024×1024 PNG和0 OO上传任务真实通过,中文字形/图形旋转及两类源兼容本地通过;文字旋转未接入,网页人工查看及其他真实标注子项待验收。详见[图片标注](.agents/skills/uzoo-anime-cli/references/image-tools-workflow.md#图片标注)。
|
|
101
|
-
|
|
102
|
-
可以全程使用 CLI 创建画布、添加节点、查询模型并准备请求,无需先在网页创建。创建不会提交生成;实际生成仍需预估和每次确认 OO 币。
|
|
103
|
-
|
|
104
|
-
`node add` 只直接创建普通节点:文本、图片、视频、音频、三种素材节点及视频转绘入口,共 8 种。视频重拍、分段详情及后续节点链由真实业务流程派生,不提供独立创建入口,也不能注入派生标记来创建。类型映射与核验见 [节点流程](.agents/skills/uzoo-anime-cli/references/node-workflow.md)。
|
|
105
|
-
|
|
106
|
-
视频分析、分段审核、切片及派生画布链现由 CLI 的 `repaint start/plan/confirm/wait/get/recover/operations` 编排。它调用现有后端接口,按真实任务结果保存节点、连线和分组,无需改前后端或打开网页。先运行 `repaint start --input repaint.json --operation NAME` 展示实际钱包和分析费用,获得当次确认后同命令加 `--yes`;方案也需先展示再确认。完整输入与恢复见 [视频分段流程](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md)。
|
|
107
|
-
|
|
108
|
-
该阶段产出可继续操作的分段节点链。单段反推已接入独立reverse流程;单段无附件最终/交付提示词已接入delivery流程(单段默认首轮0 OO真实通过,自定义替换真实待验);无额外参考的单段转绘视频已接入video专用流程,mini首轮生成/24 OO结算/回填恢复通过(原转绘成品现已通过专用下载入口导出及解码补验);额外参考、批量和拼接仍待完善;片段重拍已独立接入remake流程,见下方重拍指南;带附件最终提示词已接CLI流程(真实处理待地址链路确认);字幕及批量生成尚未接入。后续实际测试到对应路线时,按流程补全 CLI + skill 并逐段验收,详见[功能状态与待完善路线](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#功能状态与待完善路线)。CLI 退出后,已提交后端任务可以继续,但画布同步需 `repaint wait/recover NAME` 恢复。模拟接口、真实智能分析45 OO、单段切片/派生链与原任务恢复通过;真实快照的前端保存重开兼容通过。网页人工交互、均匀分段及改切点真实待验。详情被旧快照清除时默认停止,用户明确授权后可用`repaint recover NAME --restore-detail`预览,加`--yes`仅恢复原待审核详情和系统线,不重新分析。
|
|
109
|
-
|
|
110
|
-
CLI 业务操作直接调用后端 API,不加载或执行前端代码;浏览器用于登录授权和可选的网页验收。派生节点由 `repaint` / `remake` 的真实业务流程创建,不能把空节点保存当成业务运行通过。
|
|
111
|
-
|
|
112
|
-
```powershell
|
|
113
|
-
node src/cli.js canvas create --name "CLI 测试画布" --space personal
|
|
114
|
-
# 从响应取得 DOC_ID,再创建节点;返回 node_id
|
|
115
|
-
node src/cli.js node add --doc DOC_ID --type image --node-id IMAGE_NODE_ID
|
|
116
|
-
node src/cli.js resource upload --file cat.png --doc DOC_ID --node IMAGE_NODE_ID --type image --mime image/png
|
|
117
|
-
node src/cli.js generation estimate --input request.json
|
|
118
|
-
node src/cli.js generation submit --input request.json --operation cat-window-001
|
|
119
|
-
# 交互卡片明确确认参数、钱包与费用后,将数值填入 $confirmedOo,再提交:
|
|
120
|
-
node src/cli.js generation submit --input request.json --operation cat-window-001 --yes --expected-cost $confirmedOo
|
|
121
|
-
node src/cli.js generation wait TASK_ID
|
|
122
|
-
node src/cli.js generation download TASK_ID --output result.png
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
请求文件用 UTF-8 保存,示例中 ID 与模型名须替换为真实查询结果:
|
|
126
|
-
|
|
127
|
-
```json
|
|
128
|
-
{
|
|
129
|
-
"doc_id": "DOC_ID",
|
|
130
|
-
"node_id": "IMAGE_NODE_ID",
|
|
131
|
-
"segment_type": "image",
|
|
132
|
-
"model_name": "模型目录返回的 label",
|
|
133
|
-
"prompt": "一只坐在窗边的猫"
|
|
134
|
-
}
|
|
13
|
+
```sh
|
|
14
|
+
npx @uzooai/anime-ai-cli@latest install
|
|
135
15
|
```
|
|
136
16
|
|
|
137
|
-
|
|
17
|
+
按提示选择要接入的 Agent。支持选择 Codex、WorkBuddy 桌面版或 Claude Code,可一次选择多个。已有同版本 CLI 时,运行 `uzoo-anime install` 即可为其他 Agent 添加 Skill。
|
|
138
18
|
|
|
139
|
-
|
|
19
|
+
**仅安装 CLI**
|
|
140
20
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
提交前记录原请求与幂等键。网络中断后保留原 operation:
|
|
144
|
-
|
|
145
|
-
```powershell
|
|
146
|
-
node src/cli.js generation operations
|
|
147
|
-
node src/cli.js generation recover cat-window-001
|
|
148
|
-
# 仅在提交结果未知、且确认恢复原提交时使用:
|
|
149
|
-
node src/cli.js generation recover cat-window-001 --yes
|
|
21
|
+
```sh
|
|
22
|
+
npm install --global @uzooai/anime-ai-cli@latest
|
|
150
23
|
```
|
|
151
24
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
默认成功输出为 API 数据 JSON,提交结果为 `{operation, estimate, task}`,下载结果为 `{output, bytes, sha256}`。失败在 stderr 输出 JSON,退出码:2 参数/配置/存储错误,3 API 错误,4 提交结果未知,5 超时,6 任务失败,130 中断。`--format table` 适合人工查看,agent 使用 JSON。
|
|
25
|
+
该命令不会修改 Agent 的技能目录。若需要手动接入,运行 `uzoo-anime skill path` 找到随包 Skill,将完整目录导入对应 Agent。
|
|
155
26
|
|
|
156
|
-
|
|
27
|
+
更新 CLI 和 Skill 可重跑一键安装命令,选择要同步的 Agent。更新由用户决定,CLI 不会自动安装新版。
|
|
157
28
|
|
|
158
|
-
|
|
29
|
+
## 快速开始
|
|
159
30
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
npm test
|
|
165
|
-
npm run test:browser
|
|
166
|
-
python C:\Users\Liu\.codex\skills\.system\skill-creator\scripts\quick_validate.py .agents\skills\uzoo-anime-cli
|
|
31
|
+
```sh
|
|
32
|
+
uzoo-anime --version
|
|
33
|
+
uzoo-anime auth login
|
|
34
|
+
uzoo-anime canvas list --space personal
|
|
167
35
|
```
|
|
168
36
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
`image matting --input matting.json --operation NAME`已接入免费抠图,默认预览、--yes只提交一次;签名multipart、原PNG缓存/透明通道核验、素材节点及来源线、CAS读回与已知结果恢复。正式站7738返回0 OO,用户确认网页重开通过;未知响应无结果引用时无法服务端查回,绝不自动重做。matting-check仍仅只读预检。见[抠图流程](.agents/skills/uzoo-anime-cli/references/image-tools-workflow.md#图片抠图)。
|
|
172
|
-
|
|
173
|
-
`remake prepare --input remake.json --operation NAME`默认预检,--yes仅创建源片绑定的派生重拍配置和来源线;`remake submit NAME`实时预估,当次确认后才加--yes --expected-cost;get/wait/recover查询和同步原任务。单源视频0–4秒重拍真实完成,结果/任务/系统线与下载验证通过,网页codec保存重开通过。--expected-cost为提交前比价。无ID的未知提交不盲目重发,附加素材与批量未接入。详见[重拍指南](.agents/skills/uzoo-anime-cli/references/remake-workflow.md)。去字幕依用户说明暂停服务,本轮跳过接入和实测。
|
|
174
|
-
|
|
175
|
-
`repaint reverse PARENT --segment-index N --operation NAME`先核对原分段任务和片段,实时查询单价与首轮权益,取得当次确认后加`--yes --expected-cost OO`提交一次。`reverse-get/reverse-wait/reverse-recover NAME`查询并同步原反推节点,不重发未知任务、不处理最终提示词或视频。真实单段首轮权益0 OO、回填与前端保存重开/重复恢复通过,付费重做和多段上下文真实待验,详见[反推指南](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#单段反推提示词)。
|
|
176
|
-
|
|
177
|
-
`repaint delivery PARENT --segment-index N --operation NAME [--input rules.json]`先预估,沿用明确的替换要求或“不替换”;缺信息时由Agent交互卡片收集。单次确认后加`--yes --expected-cost OO`按前端顺序保存现有全局设置并处理最终提示词;delivery-get/wait/recover查询回填原节点。单段无附件默认处理首轮0 OO、正常结果回填、重复恢复及前端保存重开真实通过;自定义替换、非空全局规则和付费重做真实待验;回退结果明确报告fallback及未生效事项,不自动生成视频或入库。见[最终提示词指南](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#单段最终提示词与替换交互)。
|
|
178
|
-
|
|
179
|
-
`repaint video-options PARENT --segment-index N`列出专用画布转绘的实际可选模型。用交互卡片选择模型/输出参数后,`repaint video PARENT --segment-index N --input video.json --operation NAME`同时核对画布和转绘估价;当次费用确认后加`--yes --expected-cost OO`单次提交。`video-get/video-wait/video-recover NAME`查询并同步原生成节点;`video-download NAME --output FILE`通过原任务的下载权限接口导出,下载被2001拒绝不代表生成失败,不改用结果URL绕过团队限制。当前画布路径不将源视频作为模型参考发送;仅首轮、单段、无额外参考,不能据此宣称整片拼接已完成。见[单段转绘视频指南](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#单段转绘视频生成)。
|
|
180
|
-
|
|
181
|
-
`repaint settings-get PARENT`查看全局文本两端状态;`repaint settings PARENT --input settings.json --operation NAME`预览`custom_prompt`编辑,已授权后加`--yes`保存原后端设置与原全局节点,保留已有附件和结果。`settings-operation/settings-recover NAME`查询及恢复原两阶段保存,不重发未知POST、不重处理提示词或生成。真实全局文字保存、原结果保留/重复恢复及前端保存重开通过;任务素材池上传/查询和全局附件上传/挂载现已接入,见下文;带附件最终提示词的准备/费用/提交/恢复已接入(真实处理受地址限制待验),独立页素材池参考参与生成未接入、暂不实现。详见[全局规则文本编辑](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#全局规则文本编辑与恢复)。
|
|
182
|
-
|
|
183
|
-
`repaint materials PARENT`列任务素材;`repaint reference-upload PARENT --input reference.json --operation NAME [--yes]`上传file/kind/category到任务池,`repaint attachment-upload PARENT --input attachment.json --operation NAME [--yes]`上传file并挂载原全局附件。默认只准备,已授权免费动作加--yes;upload-get/upload-recover查看或按已知阶段恢复。两条图片路线、原结果保留、重复恢复及前端保存重开真实通过;不自动入普通素材库、审核、处理或生成。音频/PDF真实待验,带附件处理需先检查submission_available/blockers,当前测试的本机代理地址被拦截、真实处理待验;独立页素材池参考选择/生成未接入、暂不实现。详见[任务素材与附件指南](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#任务素材池与全局附件上传)。
|
|
184
|
-
|
|
185
|
-
带全局附件的`repaint delivery`沿用同一命令:按当前pricing与单段billing-estimate核对处理费+附件超额费,预览展示submission_available/blockers。附件保留在全局settings中,不改写进reference_images;本机/内网地址会在收费前停止,不能把网页能显示图片当作模型可读取。真实只读预估和保护通过,带附件模型处理尚未实测。详见[带全局附件的最终提示词](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#带全局附件的单段最终提示词)。
|
|
186
|
-
|
|
187
|
-
`repaint history NAME --type reverse|delivery|video`在全局配置变更后只读核验对应阶段的原operation、结果与费用,不写回、不提交或下载。提示词接口仅有当前轮,原轮被替换时返回`original_result_unavailable`,不把新结果认作旧结果。当前已完成真实原最终提示词/视频查询;配置变更后的原结果导出已接入,转绘任意轮次切换/写回仍待完善。普通图片/视频历史选择见下文。见[原运行只读查询](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#原运行只读查询)。
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
配置变化后可用`repaint export NAME --type reverse|delivery|video --output FILE`交付原结果,或`video-download NAME --output FILE`下载原视频;视频始终经过专用下载权限,不能绕过业务权限。新版下载契约取消团队白名单,是否部署须按当前服务响应核验,不能仅凭2001推断白名单原因。今后成功恢复的原提示词会保存本地快照;服务端旧轮替换后仅在已有快照时显式`--source archive`导出,并说明来源。文件不覆盖,原任务不重新生成。见[原结果导出](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#原结果导出与本地归档)。
|
|
191
|
-
|
|
192
|
-
多段可用`repaint sequence PARENT --input steps.json --operation NAME`保存逐项调度,`sequence-get NAME`只读核验,`sequence-next NAME`准备下一项;单次费用确认后加`--yes --step CHILD_OPERATION --expected-cost OO`仅执行这一项。`sequence-recover NAME --step CHILD_OPERATION`恢复原子操作,不重发未知提交。它复用画布单段流程,不接独立页批量接口,也不拼接整片;见[多段调度](.agents/skills/uzoo-anime-cli/references/repaint-workflow.md#多段的逐项调度)。
|
|
193
|
-
|
|
194
|
-
维护者可用`npm run test:package`验证实际打包、离线隔离安装、命令入口、13份skill参考的逐字节复制及Windows模拟账号DPAPI/退出,并将同一版本包覆盖重装,验证配置/凭据与各类operation及归档原字节保留,普通生成/转绘operation列表可继续查询;退出仅清凭据。跨版本升级尚未验证。不会发布或更改全局skill目录;它复用当前操作系统/Node,不代表干净机器或真实网页登录验收。
|
|
195
|
-
|
|
196
|
-
普通图片/视频可用 `generation history --doc DOC_ID --node NODE_ID --space personal --status completed` 查询真实历史(团队须带已确认的team UID)。用户选定条目后,`generation history-select --input history.json --operation NAME` 先预览;明确选择后同输入加 `--yes` 仅一次保存所选历史结果与对应提示词/模型等配置。恢复旧task同样恢复该次历史配置,不能理解为回到切换前的编辑快照。无新生成,不自动入库或重新生成下游;当前参考、其他节点及连线保留。保存未知用 `generation history-get/history-recover NAME` 只查询核验,不重发。普通视频真实切换/恢复和图片/视频前端选择、序列化重开兼容通过;普通图片真实历史切换/恢复已通过,图片网页采用1986/离开重开/恢复2071再次重开已通过。输入、分页与状态详见[普通历史指南](.agents/skills/uzoo-anime-cli/references/generation-workflow.md#普通图片与视频历史选择)。
|
|
197
|
-
|
|
198
|
-
2026-10-31下载契约适配:现有普通生成、转绘原视频导出与媒体读取支持匿名307引用续期,保留服务端完整URL/查询参数,并识别HTTP200错误JSON及安全诊断。业务下载端点与旧operation保持,失败不重做生成或写画布。新素材空间命名/格式转换接口没有自动扩成现有命令参数;当前CLI未新增转换/预览命令。素材原格式下载现已提供material download,见下文。说明涉及尚未部署改动,源码/当前服务和新版契约分别记录,见[适配与验收](docs/下载接口适配与验收.md)及[使用规则](.agents/skills/uzoo-anime-cli/references/commands.md#下载与文件凭证)。
|
|
199
|
-
|
|
200
|
-
素材原文件可用`uzoo-anime material download ASSET_ID --space personal --output FILE [--sha256 HEX]`;团队须换为`--space team --team-uid UID`。先核对空间/素材,再经专属业务入口取链接,只下载original;业务拒绝不退回列表URL,不写画布/上传/生成/入库。团队素材107原文件下载及受控非成员拒绝已真实通过;读取服务端响应文件名,当前不支持格式转换。详见[素材下载](.agents/skills/uzoo-anime-cli/references/material-graph-workflow.md#素材原文件下载)。
|
|
201
|
-
|
|
202
|
-
非转绘首批N1/N2/N5状态见[执行与验收](docs/非转绘首批实施与验收.md):两帧上传和已有素材重新导入在CLI保存时成功,但网页后续保存中新增节点缺失,已停止该画布写入且没有自动重建;N5独立环境验收清单已准备,干净机器/真正跨版本仍未验收。
|
|
203
|
-
|
|
204
|
-
### 可选:Seedance 2.5提示词优化
|
|
205
|
-
|
|
206
|
-
安装独立sd25-pe后,Agent在Seedance 2.5视频生成过程中自动按其规则组织提示词,无需用户主动调用skill。CLI继续负责素材绑定、参数校验、审核/协议、估价确认与提交。安装方式与@素材交接见[优化指南](.agents/skills/uzoo-anime-cli/references/generation-workflow.md#seedance-25提示词优化sd25-pe)。
|
|
207
|
-
|
|
208
|
-
## 2026-11-03非转绘完善
|
|
209
|
-
|
|
210
|
-
新增普通媒体单个/混合批量复制(1–100)、来源历史与任务归属隔离、分组整体移动/组框调整/组内三种重排;修正断线后保留持久参考的模式计算。单次预览/expected_version、一次CAS及读回校验保持。样片转正片新增draft prepare/submit/get/recover/wait,继承父任务并按实际报价确认,未知提交只查原任务;当前仅模拟/前端codec通过,真实闭环待有效样片。
|
|
211
|
-
|
|
212
|
-
本批真实及网页验收、费用、限制和证据见[集中记录](docs/非转绘持续完善与验收-20261103.md)。N5安装与交付专项、转绘和去字幕未开展;`npm run check:resources`仅检查离线包资源,不安装/升级/发布。
|
|
213
|
-
|
|
214
|
-
## 本地npm构建与打包(2026-11-03)
|
|
215
|
-
|
|
216
|
-
本地打包生成0.5.0归档,按已确认策略配置public/latest;生成归档不等于上传npm。原生ESM无需转译:`npm run build`执行语法及离线资源检查,`npm test`运行模拟回归,`npm run pack:local`完成构建检查后生成outputs/npm/独立时间目录中的tgz与manifest.json,并核验归档长度/摘要。白名单打包运行模块、资源、skill、文档和示例,排除测试、宿主规则、本地记录/凭据及历史归档;标准npm pack也会执行prepack构建检查。
|
|
217
|
-
|
|
218
|
-
已实现能力和剩余真实条件见[当前范围与打包说明](docs/CLI当前范围与本地打包-20261103.md)。可以制作内测包,不等于所有网页/收费专用路线验收完成;N5仍未开展,未安装、升级或发布npm包。
|
|
219
|
-
|
|
220
|
-
## 0.5.0-rc.4样片检修
|
|
221
|
-
|
|
222
|
-
真实样片2072已完成、回填及下载,修复后端基础模型名称归一导致的Draft回填误拦,保留有效期元数据与重复sync无写入保护。此前rc.1和0.4.0归档保留;当前完整正片真实闭环仍待单独费用授权,详情见[补充验收](docs/非转绘补充条件验收-20261103.md)。
|
|
223
|
-
|
|
224
|
-
## 样片到正片的真实闭环(2026-11-03)
|
|
225
|
-
|
|
226
|
-
用户先认可低画质样片,再独立确认高画质费用:2072样片52 OO→2073正片260 OO,父子关系、画布回填、原片下载、实际1440×1440及完整解码通过;两阶段合计312 OO。重复原operation恢复无新任务、无再次画布写入。正片网页展示/保存重开未冒称通过,见[真实记录](docs/非转绘补充条件验收-20261103.md)。
|
|
227
|
-
|
|
228
|
-
普通历史新增为独立结果节点使用 `generation history-add --input history-add.json --operation NAME`,默认预览,再同输入加 `--yes`;输入含历史字段、new_node_id和position,可选title/expected_version。原节点与全部输入参考不变,新节点不认领原生成任务,不继承素材/审核授权;只读恢复使用 `history-add-get/history-add-recover NAME`,保存未知不重放。图片1986、视频2069真实新增及网页重开通过;正片2073网页完整播放通过。详见[历史新增节点](.agents/skills/uzoo-anime-cli/references/generation-workflow.md#将普通历史结果添加为新节点)。
|
|
229
|
-
|
|
230
|
-
此前正式站2110/cli_auth_disabled阻塞已解除;2026-11-04本人正式授权、免费抠图执行/落图及用户确认网页重开通过,详见抠图流程及验收文档。
|
|
231
|
-
|
|
232
|
-
## 2026-11-04 正式站接入更新
|
|
37
|
+
在浏览器中登录 Uzoo 并授权 CLI 后即可使用。团队操作须选择对应团队。使用 Agent 时,可直接提出任务,例如:“列出我的个人画布,并帮我查看指定画布中的素材。”
|
|
233
38
|
|
|
234
|
-
|
|
39
|
+
## 主要功能
|
|
235
40
|
|
|
236
|
-
|
|
41
|
+
- **画布与节点**:查询和管理画布、节点、分组及连线。
|
|
42
|
+
- **素材管理**:上传、查询、导入和下载素材。
|
|
43
|
+
- **图片与视频**:准备生成请求、查询任务和获取结果;支持样片转正片,以及裁剪、标注、抠图、剪辑和截帧等工具。
|
|
44
|
+
- **任务恢复**:查询或继续原任务,保留已知任务和结果。
|
|
237
45
|
|
|
238
|
-
|
|
46
|
+
付费任务会在提交前展示报价,由用户确认。运行 `uzoo-anime --help` 查看可用命令及参数。部分媒体工具需要本机 FFmpeg。
|
|
239
47
|
|
|
240
|
-
|
|
48
|
+
## 许可证
|
|
241
49
|
|
|
242
|
-
|
|
50
|
+
CLI 源码采用 [MIT 许可证](LICENSE)。Uzoo 在线服务适用相应服务条款。
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Agent 接入与版本更新
|
|
2
|
+
|
|
3
|
+
需要 Node.js 22 或更高版本。CLI 和完整 Skill 由同一个 npm 包分发。
|
|
4
|
+
|
|
5
|
+
## 一键安装
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx @uzooai/anime-ai-cli@latest install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
安装器会列出检测到的本地 Agent,支持多选。也可明确指定:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npx @uzooai/anime-ai-cli@latest install --agent codex --agent workbuddy
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
可选名称为 `codex`、`workbuddy`(WorkBuddy 桌面版)和 `claude-code`。重复传入 `--agent` 可安装到多个宿主。自动化脚本须明确指定目标并传入 `--yes`;用 `--dry-run` 可先查看安装计划。已有同版本 CLI 时,运行 `uzoo-anime install` 即可添加 Agent Skill。
|
|
18
|
+
|
|
19
|
+
## 只安装 CLI 或手动接入
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install --global @uzooai/anime-ai-cli@latest
|
|
23
|
+
uzoo-anime --version
|
|
24
|
+
uzoo-anime skill path --format json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
普通 npm 安装不修改 Agent 的技能目录。需要手动接入时,复制完整的 `directory`,保留 `SKILL.md` 与 `references/`:
|
|
28
|
+
|
|
29
|
+
| 宿主 | 用户级目标目录 |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| Codex | `~/.agents/skills/uzoo-anime-cli` |
|
|
32
|
+
| WorkBuddy 桌面版 | `~/.workbuddy/skills/uzoo-anime-cli` |
|
|
33
|
+
| Claude Code | `~/.claude/skills/uzoo-anime-cli` |
|
|
34
|
+
|
|
35
|
+
打开新的 Agent 会话,确认能发现 Skill 并运行 `uzoo-anime --version`。找不到命令时,检查宿主的 PATH 是否包含 npm 全局命令目录。登录 Uzoo 时运行 `uzoo-anime auth login`,并在浏览器中本人授权。
|
|
36
|
+
|
|
37
|
+
## 更新与已有配置
|
|
38
|
+
|
|
39
|
+
要同时更新 CLI 和 Skill,重跑一键安装并选中要同步的 Agent。安装器不会覆盖手动安装或修改过的 Skill;先备份至技能扫描目录外,再按需要更新。只更新 CLI 可运行普通 npm 安装命令。
|
|
40
|
+
|
|
41
|
+
Agent 首次使用时可查询 npm 稳定版;有新版时由用户决定是否更新。查询失败不影响正常使用。更新时保留原 profile 和任务记录。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uzooai/anime-ai-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"pack:local": "node scripts/pack-local.mjs",
|
|
15
15
|
"prepack": "npm run build",
|
|
16
16
|
"start": "node src/cli.js",
|
|
17
|
-
"check": "node --check src/cli.js && node --check src/api.js && node --check src/canvas.js && node --check src/draft-finalize.js && node --check src/media-copy.js && node --check src/group-edit.js && node --check src/group-layout.js && node --check src/node-copy.js && node --check src/node-delete.js && node --check src/materials.js && node --check src/material-save.js && node --check src/service.js && node --check src/video-clip.js && node --check src/media.js && node --check src/image-media.js && node --check src/image-output.js && node --check src/image-crop.js && node --check src/image-annotation.js && node --check src/image-matting.js && node --check src/matting.js && node --check src/png-alpha.js && node --check src/annotation-media.js && node --check src/video-frame.js && node --check src/graph.js && node --check src/graph-disconnect.js && node --check src/group-membership.js && node --check src/model-options.js && node --check src/generation-input.js && node --check src/review.js && node --check src/resource.js && node --check src/generation-graph.js && node --check src/repaint.js && node --check src/repaint-reverse.js && node --check src/repaint-delivery.js && node --check src/repaint-video.js && node --check src/repaint-history.js && node --check src/multipart.js && node --check src/repaint-materials.js && node --check src/repaint-settings.js && node --check src/remake.js && node --check src/repaint-graph.js && node --check src/store.js && node --check src/workflows.js && node --check src/agreement.js && node --check src/agreement-page.js && node --check src/protocol.js && node --check src/cli-authorization.js && node --check src/browser-login.js && node --check src/normal-login.js && node --check extensions/uzoo-cli-login/popup.js && node --check src/local-output.js && node --check src/repaint-archive.js && node --check src/repaint-export.js && node --check src/repaint-sequence.js && node --check src/node-history.js && node --check src/history-add.js && node --check src/material-download.js && node --check src/download-name.js && node --check scripts/pack-local.mjs && node --check src/package-info.js && node --check src/matting-background.js && node --check src/matting-worker.js && node --check src/matting-jobs.js && node --check scripts/release-policy.mjs && node --check scripts/check-release.mjs",
|
|
18
|
-
"test": "node test/smoke.mjs && node test/atomic-file.mjs && node test/phase1.mjs && node test/agreement.mjs && node test/canvas.mjs && node test/material-graph.mjs && node test/graph-rename.mjs && node test/graph-ungroup.mjs && node test/graph-disconnect.mjs && node test/node-copy.mjs && node test/node-copy-batch.mjs && node test/draft-finalize.mjs && node test/media-copy.mjs && node test/group-edit.mjs && node test/node-delete.mjs && node test/material-save.mjs && node test/service.mjs && node test/video-clip.mjs && node test/video-frame.mjs && node test/image-crop.mjs && node test/image-annotation.mjs && node test/image-matting.mjs && node test/matting.mjs && node test/matting-background.mjs && node test/matting-jobs.mjs && node test/model-options.mjs && node test/generation-input.mjs && node test/review.mjs && node test/repaint.mjs && node test/repaint-reverse.mjs && node test/repaint-delivery.mjs && node test/repaint-video.mjs && node test/repaint-settings.mjs && node test/repaint-materials.mjs && node test/remake.mjs && node test/normal-login.mjs && node test/login-extension.mjs && node test/browser-login.mjs && node test/cli-authorization.mjs && node test/store-recovery.mjs && node test/store-concurrency.mjs && node test/repaint-archive.mjs && node test/node-history.mjs && node test/file-transfer.mjs && node test/material-download.mjs && node test/release-policy.mjs",
|
|
17
|
+
"check": "node --check src/cli.js && node --check src/install.js && node --check src/api.js && node --check src/canvas.js && node --check src/draft-finalize.js && node --check src/media-copy.js && node --check src/group-edit.js && node --check src/group-layout.js && node --check src/node-copy.js && node --check src/node-delete.js && node --check src/materials.js && node --check src/material-save.js && node --check src/service.js && node --check src/video-clip.js && node --check src/media.js && node --check src/image-media.js && node --check src/image-output.js && node --check src/image-crop.js && node --check src/image-annotation.js && node --check src/image-matting.js && node --check src/matting.js && node --check src/png-alpha.js && node --check src/annotation-media.js && node --check src/video-frame.js && node --check src/graph.js && node --check src/graph-disconnect.js && node --check src/group-membership.js && node --check src/model-options.js && node --check src/generation-input.js && node --check src/review.js && node --check src/resource.js && node --check src/generation-graph.js && node --check src/repaint.js && node --check src/repaint-reverse.js && node --check src/repaint-delivery.js && node --check src/repaint-video.js && node --check src/repaint-history.js && node --check src/multipart.js && node --check src/repaint-materials.js && node --check src/repaint-settings.js && node --check src/remake.js && node --check src/repaint-graph.js && node --check src/store.js && node --check src/workflows.js && node --check src/agreement.js && node --check src/agreement-page.js && node --check src/protocol.js && node --check src/cli-authorization.js && node --check src/browser-login.js && node --check src/normal-login.js && node --check extensions/uzoo-cli-login/popup.js && node --check src/local-output.js && node --check src/repaint-archive.js && node --check src/repaint-export.js && node --check src/repaint-sequence.js && node --check src/node-history.js && node --check src/history-add.js && node --check src/material-download.js && node --check src/download-name.js && node --check scripts/pack-local.mjs && node --check src/package-info.js && node --check src/matting-background.js && node --check src/matting-worker.js && node --check src/matting-jobs.js && node --check scripts/release-policy.mjs && node --check scripts/check-release.mjs",
|
|
18
|
+
"test": "node test/smoke.mjs && node test/install.mjs && node test/atomic-file.mjs && node test/phase1.mjs && node test/agreement.mjs && node test/canvas.mjs && node test/material-graph.mjs && node test/graph-rename.mjs && node test/graph-ungroup.mjs && node test/graph-disconnect.mjs && node test/node-copy.mjs && node test/node-copy-batch.mjs && node test/draft-finalize.mjs && node test/media-copy.mjs && node test/group-edit.mjs && node test/node-delete.mjs && node test/material-save.mjs && node test/service.mjs && node test/video-clip.mjs && node test/video-frame.mjs && node test/image-crop.mjs && node test/image-annotation.mjs && node test/image-matting.mjs && node test/matting.mjs && node test/matting-background.mjs && node test/matting-jobs.mjs && node test/model-options.mjs && node test/generation-input.mjs && node test/review.mjs && node test/repaint.mjs && node test/repaint-reverse.mjs && node test/repaint-delivery.mjs && node test/repaint-video.mjs && node test/repaint-settings.mjs && node test/repaint-materials.mjs && node test/remake.mjs && node test/normal-login.mjs && node test/login-extension.mjs && node test/browser-login.mjs && node test/cli-authorization.mjs && node test/store-recovery.mjs && node test/store-concurrency.mjs && node test/repaint-archive.mjs && node test/node-history.mjs && node test/file-transfer.mjs && node test/material-download.mjs && node test/release-policy.mjs",
|
|
19
19
|
"test:browser": "node test/normal-login.mjs && node test/login-extension.mjs && node test/browser-login.mjs",
|
|
20
20
|
"test:media": "node test/media.mjs && node test/image-media.mjs && node test/annotation-media.mjs",
|
|
21
21
|
"check:resources": "node scripts/check-package-resources.mjs",
|
|
@@ -25,21 +25,19 @@
|
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"src/",
|
|
28
|
-
"assets/",
|
|
28
|
+
"assets/logo-uzoo.svg",
|
|
29
|
+
"assets/favicon-uzoo.png",
|
|
30
|
+
"!assets/README.md",
|
|
29
31
|
".agents/skills/uzoo-anime-cli/",
|
|
30
32
|
"extensions/uzoo-cli-login/",
|
|
31
|
-
"examples/",
|
|
32
|
-
"docs/",
|
|
33
|
-
"!docs/阶段3B远程后端联调记录.md",
|
|
34
|
-
"scripts/check-package-resources.mjs",
|
|
35
|
-
"scripts/pack-local.mjs",
|
|
33
|
+
"examples/matting.json",
|
|
34
|
+
"docs/Agent接入与版本更新.md",
|
|
36
35
|
"README.md",
|
|
37
36
|
"CHANGELOG.md",
|
|
38
|
-
"LICENSE"
|
|
39
|
-
"scripts/release-policy.mjs",
|
|
40
|
-
"scripts/check-release.mjs"
|
|
37
|
+
"LICENSE"
|
|
41
38
|
],
|
|
42
|
-
"description": "Uzoo
|
|
39
|
+
"description": "Official Uzoo CLI and Agent Skills for canvases, media assets, and image and video generation.",
|
|
40
|
+
"homepage": "https://uzooai.com/",
|
|
43
41
|
"repository": {
|
|
44
42
|
"type": "git",
|
|
45
43
|
"url": "git+https://github.com/UzooAI/uzooai-cli.git"
|
package/src/cli.js
CHANGED
|
@@ -49,6 +49,7 @@ import { getRepaintSettings, startRepaintSettings, repaintSettingsOperation, rec
|
|
|
49
49
|
const help = `Uzoo Anime CLI — 浏览器授权与独立 CLI 会话
|
|
50
50
|
命令:
|
|
51
51
|
--version | version [--format json](本地版本,不读取登录态)
|
|
52
|
+
install [--agent NAME ...] [--yes | --dry-run](可选:安装 CLI 和所选 Agent 的 Skill)
|
|
52
53
|
skill path [--format json](定位随包skill,不自动注册或覆盖)
|
|
53
54
|
service status [--timeout MS](先检查后端连接及数据库/Redis就绪)
|
|
54
55
|
video clip --input clip.json --operation NAME [--yes](视频剪辑,保留原视频)
|
|
@@ -180,6 +181,10 @@ function query(endpoint, fields) { const q = new URLSearchParams(Object.entries(
|
|
|
180
181
|
|
|
181
182
|
let diagnosticClient
|
|
182
183
|
async function main(args) {
|
|
184
|
+
if (args[0] === 'install') {
|
|
185
|
+
const { runInstall } = await import('./install.js')
|
|
186
|
+
await runInstall(args.slice(1), { signal: cancellation.signal }); return
|
|
187
|
+
}
|
|
183
188
|
if(args[0]==='--version'||args[0]==='-v'){
|
|
184
189
|
if(args.length!==1)throw new Error('--version仅用于查看本地版本,不能与业务参数混用')
|
|
185
190
|
console.log(packageInfo.version);return
|
package/src/group-membership.js
CHANGED