@dawnwood/cli 0.7.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 +1 -0
- package/dist/mcp.js +1 -1
- package/dist/ops.js +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +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_delete`, `dramacenter_list` |
|
|
39
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` |
|
|
40
41
|
|
|
41
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.
|
|
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
|
@@ -83,6 +83,18 @@ export function registerOpsTools(server, call, ok, fail, agent) {
|
|
|
83
83
|
}, async ({ job_id, clip_id, ...body }) => call(`/v1/clips/jobs/${enc(job_id)}/clips/${enc(clip_id)}`, "clips_edit_clip", "PATCH", body));
|
|
84
84
|
server.tool("clips_retry", "Retry a failed clip job from where it stopped (a job that produced nothing was already refunded and is charged again on retry).", { job_id: z.string() }, async ({ job_id }) => call(`/v1/clips/jobs/${enc(job_id)}/retry`, "clips_retry", "POST", {}));
|
|
85
85
|
server.tool("clips_send_to_matrix", "Put every kept, finished clip of a job into the Matrix library (optionally under lane_id); sending twice does not duplicate. Then schedule them with matrix_plan_posts / matrix_schedule_posts.", { job_id: z.string(), lane_id: z.string().optional() }, async ({ job_id, lane_id }) => call(`/v1/clips/jobs/${enc(job_id)}/send`, "clips_send_to_matrix", "POST", lane_id ? { lane_id } : {}));
|
|
86
|
+
// ---- Drama Center Ready ---------------------------------------------------
|
|
87
|
+
server.tool("dramacenter_check", "Check a season before uploading it to TikTok Drama Center. source = {kind:'series', work_id} (your own series, every finished episode) or {kind:'upload', assets:[{asset_id, name}]} (from upload_video, ordered by the episode number in the name). level 'light' is free (specs, dark edges = code 4, end-card web text = code 6, subtitle area = code 7, cover frame, metadata); 'full' adds picture safety and story risks for 2 cr per episode. meta = {title <=35, description <=1500, free_preview, genres <=3, audience, creation_type, music_source}. Poll with dramacenter_get every >=10 s.", {
|
|
88
|
+
source: z.object({ kind: z.enum(["series", "upload"]), work_id: z.string().optional(), chapters: z.array(z.number().int()).optional(),
|
|
89
|
+
assets: z.array(z.object({ asset_id: z.string(), name: z.string().optional() })).optional() }),
|
|
90
|
+
level: z.enum(["light", "full"]).default("light"),
|
|
91
|
+
meta: z.record(z.string(), z.unknown()).optional(), poster_asset_id: z.string().optional().describe("9:16 or 3:4 poster from upload_image"),
|
|
92
|
+
}, async (a) => call("/v1/dc/jobs", "dramacenter_check", "POST", a));
|
|
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
|
+
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
|
+
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"));
|
|
97
|
+
server.tool("dramacenter_list", "Your Drama Center checks (newest first) and the price.", async () => call("/v1/dc/jobs", "dramacenter_list"));
|
|
86
98
|
// ---- Matrix:号与 lane -----------------------------------------------------
|
|
87
99
|
server.tool("matrix_status", "Whether Matrix is enabled for your workspace, platforms, default caps and posting windows.", async () => call("/v1/matrix", "matrix_status"));
|
|
88
100
|
server.tool("matrix_accounts", "Your connected social accounts with their Matrix settings: key '<platform>:<account_id>', lane, group, stage (warming/testing/scaling/retired), paused, per-account permissions (publish/insights/comments) and Instagram token expiry.", async () => call("/v1/matrix/accounts", "matrix_accounts"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dawnwood/cli",
|
|
3
|
-
"version": "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",
|