@dawnwood/cli 0.8.0 → 0.8.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/README.md CHANGED
@@ -36,7 +36,7 @@ npx @dawnwood/cli whoami
36
36
  | Account | `credits_balance`, `get_review_url` |
37
37
  | Review & rework | loaded at startup from the console agent: `render_status`, `update_shot`, `render_shot`, `rerender_group`, `retake_range`, `propose_fix`, `adopt_take`, … (spending tools need `user_message`) |
38
38
  | Clips | `upload_video`, `upload_image`, `clips_create`, `clips_get_job`, `clips_edit_clip`, `clips_send_to_matrix`, `clips_list_jobs`, `clips_series_episodes`, `clips_retry` |
39
- | Drama Center | `dramacenter_check`, `dramacenter_get`, `dramacenter_update`, `dramacenter_package`, `dramacenter_list` |
39
+ | Drama Center | `dramacenter_check`, `dramacenter_get`, `dramacenter_update`, `dramacenter_package`, `dramacenter_delete`, `dramacenter_list` |
40
40
  | Matrix (posting) | `matrix_status`, `matrix_accounts`, `matrix_update_account`, `matrix_lanes`, `matrix_update_lane`, `matrix_media`, `matrix_add_media`, `matrix_update_media`, `matrix_plan_posts`, `matrix_schedule_posts`, `matrix_posts`, `matrix_cancel_post`, `matrix_comments`, `matrix_report` |
41
41
 
42
42
  Poll with `get_run`, `art_status` or `job_status`, no more than every 10 seconds.
package/dist/mcp.js CHANGED
@@ -36,7 +36,7 @@ async function call(path, tool, method, body) {
36
36
  }
37
37
  }
38
38
  export function buildServer() {
39
- const server = new McpServer({ name: "dawnwood", version: "0.8.0" });
39
+ const server = new McpServer({ name: "dawnwood", version: "0.8.1" });
40
40
  // ---- runs 生命周期 ---------------------------------------------------------
41
41
  server.tool("list_runs", "List your runs (drafts and in progress). For browsing only — **never poll status with it**; use get_run for a single run.", async () => call("/runs", "list_runs"));
42
42
  server.tool("get_run", "Read one run's full state (wizard step, bible, scripts, pack, art progress). This is the right tool for polling (O(1) lookup); poll at most every 10 seconds (10s).", { run_id: z.string().describe("run id (snake_case)") }, async ({ run_id }) => call(`/runs/${encodeURIComponent(run_id)}`, "get_run"));
package/dist/ops.js CHANGED
@@ -93,6 +93,7 @@ export function registerOpsTools(server, call, ok, fail, agent) {
93
93
  server.tool("dramacenter_get", "One Drama Center check: the verdict, the issue queue (needs you / fixed in the package / advisory / passed, with episodes and timestamps) and, once packaged, 24-hour download links. The right tool for polling (every >=10 s).", { check_id: z.string() }, async ({ check_id }) => call(`/v1/dc/jobs/${enc(check_id)}`, "dramacenter_get"));
94
94
  server.tool("dramacenter_update", "Clear items on a Drama Center check: meta {title, description, free_preview, genres, audience, creation_type, music_source}, dismiss '<issue key>' (only after the user has looked and says it's fine), poster_asset_id.", { check_id: z.string(), meta: z.record(z.string(), z.unknown()).optional(), dismiss: z.string().optional(), poster_asset_id: z.string().optional() }, async ({ check_id, ...body }) => call(`/v1/dc/jobs/${enc(check_id)}`, "dramacenter_update", "PATCH", body));
95
95
  server.tool("dramacenter_package", "Build the upload package once nothing needs the user: every episode fixed (1 s cover opening, end card cut, edges lifted), renamed 'Episode NN - <title>', plus a 3:4 series cover, manifest.json and a field-by-field upload guide, zipped.", { check_id: z.string() }, async ({ check_id }) => call(`/v1/dc/jobs/${enc(check_id)}/package`, "dramacenter_package", "POST", {}));
96
+ server.tool("dramacenter_delete", "Delete a Drama Center check and the package it built (fixed episodes, zip). Not while it is still checking or packaging. Your uploaded source videos and your series' own masters are untouched; credits already spent on a full check are not refunded. Ask the user before deleting.", { check_id: z.string() }, async ({ check_id }) => call(`/v1/dc/jobs/${enc(check_id)}`, "dramacenter_delete", "DELETE"));
96
97
  server.tool("dramacenter_list", "Your Drama Center checks (newest first) and the price.", async () => call("/v1/dc/jobs", "dramacenter_list"));
97
98
  // ---- Matrix:号与 lane -----------------------------------------------------
98
99
  server.tool("matrix_status", "Whether Matrix is enabled for your workspace, platforms, default caps and posting windows.", async () => call("/v1/matrix", "matrix_status"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dawnwood/cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
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",