@dawnwood/cli 0.1.1 → 0.2.0

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.
Files changed (2) hide show
  1. package/dist/mcp.js +6 -0
  2. package/package.json +1 -1
package/dist/mcp.js CHANGED
@@ -70,6 +70,12 @@ export function buildServer() {
70
70
  server.tool("art_estimate", "美术/渲染的 credits 报价(动手前先看账)。", { run_id: z.string() }, async ({ run_id }) => call(`/runs/${encodeURIComponent(run_id)}/art/estimate`, "art_estimate"));
71
71
  server.tool("generate_art", "启动美术/渲染(烧 credits 的一步;先跑 art_estimate 确认)。进度用 art_status 轮询(≥10s)。", { run_id: z.string() }, async ({ run_id }) => call(`/runs/${encodeURIComponent(run_id)}/art/generate`, "generate_art", "POST"));
72
72
  server.tool("art_status", "美术/渲染进度(单 run 直取,轮询用这个,间隔 ≥10 秒)。", { run_id: z.string() }, async ({ run_id }) => call(`/runs/${encodeURIComponent(run_id)}/art/status`, "art_status"));
73
+ // ---- 签收与交付(TQ 2026-08-31:Review 不自动绿,人签字才算) ----------------
74
+ server.tool("signoff_episode", "签收一集(闸门动作:看过成片才签;发布与交付都以签收为前提)。响应带全剧进度" +
75
+ "(signed/total/all_signed)——all_signed=true 时**问用户**是否生成整剧交付包," +
76
+ "用户确认后再调 build_delivery_pack;不确认就停,绝不擅自打包。传 revoke=true 撤签。", { run_id: z.string(), episode: z.number().int(), revoke: z.boolean().optional() }, async ({ run_id, episode, revoke }) => call(`/works/${encodeURIComponent(run_id)}/chapters/${episode}/signoff`, "signoff_episode", "POST", revoke ? { revoke: true } : {}));
77
+ server.tool("build_delivery_pack", "生成整剧交付包(母带/干净母版/SRT/封面,按章异步打包,分钟级)。只在用户明确" +
78
+ "确认后调用——通常是 signoff_episode 返回 all_signed 后询问的下一步。", { run_id: z.string() }, async ({ run_id }) => call(`/works/${encodeURIComponent(run_id)}/delivery-package`, "build_delivery_pack", "POST", {}));
73
79
  // ---- 账面 ------------------------------------------------------------------
74
80
  server.tool("credits_balance", "查 credits 余额与免费额度。", async () => call("/credits", "credits_balance"));
75
81
  // ---- 人工审核动线(前提 5:console = 审核/裁决面) ---------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dawnwood/cli",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Dawnwood for agents — CLI + MCP server. Your agent drives the full short-drama pipeline (bible → scripts → pack → renders) against console.dawnwood.ai.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",