@videorebirth/skills 0.0.0-stage → 0.1.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.
- package/package.json +24 -3
- package/skills/bach/AGENTS.md.fragment +1 -0
- package/skills/bach/SKILL.md +60 -0
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@videorebirth/skills",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "BACH agent skill and Codex AGENTS.md fragment",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"skills"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
"./bach/SKILL.md": {
|
|
14
|
+
"default": "./skills/bach/SKILL.md"
|
|
15
|
+
},
|
|
16
|
+
"./bach/AGENTS.md.fragment": {
|
|
17
|
+
"default": "./skills/bach/AGENTS.md.fragment"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"registry": "https://registry.npmjs.org/"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "node -e \"process.exit(0)\""
|
|
26
|
+
}
|
|
6
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use the `bach` skill and the `bach` MCP server to create and query BACH video tasks. Follow the skill for models, parameters, polling, and errors. Do not invent API endpoints.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bach
|
|
3
|
+
description: Create and query BACH video generation tasks with the bach MCP tools when the user wants AI video from text, frames, or references.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BACH video generation
|
|
7
|
+
|
|
8
|
+
Use the `bach` MCP server to submit a video task and poll it until it finishes. Do not call the HTTP API yourself, and do not invent endpoints.
|
|
9
|
+
|
|
10
|
+
## Tools
|
|
11
|
+
|
|
12
|
+
- `create_video_task` submits a task to `POST /video/v2`.
|
|
13
|
+
- `get_video_task` reads `GET /video/v2/{task_id}`.
|
|
14
|
+
|
|
15
|
+
## Models
|
|
16
|
+
|
|
17
|
+
Pass one of these `model_name` values unless the user names a different model that the API documents:
|
|
18
|
+
|
|
19
|
+
- `Bach-1.0-Pro`
|
|
20
|
+
- `Bach-1.0-Pro-Ads`
|
|
21
|
+
- `Bach-1.0-Pro-Film`
|
|
22
|
+
|
|
23
|
+
## Task types
|
|
24
|
+
|
|
25
|
+
`input.task` is forwarded as given. The documented values are:
|
|
26
|
+
|
|
27
|
+
- `t2v`: text to video. This is the default when `task` is omitted.
|
|
28
|
+
- `i2v`: first and/or last frame. Provide `image_url`, `end_image_url`, or both. `aspect_ratio` is `auto`.
|
|
29
|
+
- `r2v`: image, video, or audio references in `reference_inputs`. Mention them in the prompt as `@Image1`, `@Video1`, and `@Audio1` in the order the assets appear.
|
|
30
|
+
|
|
31
|
+
Reference URLs must be public `http` or `https` links. Do not send base64.
|
|
32
|
+
|
|
33
|
+
## Parameters
|
|
34
|
+
|
|
35
|
+
- `prompt` is required and must be at most 6500 characters.
|
|
36
|
+
- `duration` is seconds, from 5 to 15. The API default is 8.
|
|
37
|
+
- `resolution` is `720p` or `1080p`. The default is `720p`.
|
|
38
|
+
- `aspect_ratio` is `16:9`, `9:16`, `1:1`, or `auto`. Text and reference tasks default to `16:9`.
|
|
39
|
+
- `generate_audio` defaults to false.
|
|
40
|
+
- `seed` is an integer from 1 to 100000.
|
|
41
|
+
- `enhance_prompt` defaults to true.
|
|
42
|
+
- `callback_url` is optional and must be an HTTP or HTTPS URL of at most 500 characters.
|
|
43
|
+
|
|
44
|
+
## Polling
|
|
45
|
+
|
|
46
|
+
After `create_video_task` returns `task_id`, call `get_video_task` until `status` is terminal.
|
|
47
|
+
|
|
48
|
+
- `TASK_PENDING` and `TASK_PROCESSING`: wait several seconds, then query again.
|
|
49
|
+
- `TASK_SUCCEEDED`: return `video_url` to the user.
|
|
50
|
+
- `TASK_FAILED`: stop and report the failure. Do not immediately submit the same request again.
|
|
51
|
+
|
|
52
|
+
## Errors
|
|
53
|
+
|
|
54
|
+
Judge the HTTP status and the business `code` together. HTTP 200 can still be a failure when `code` is not 200.
|
|
55
|
+
|
|
56
|
+
- HTTP 401, or business code 1100, 1101, 1102, or 1103: the access key, secret, or signed token is missing or invalid. Do not retry until the credentials are corrected.
|
|
57
|
+
- HTTP 402, or business code 1302: the account does not have enough credits. Do not retry until the account is topped up.
|
|
58
|
+
- HTTP 429, or business code 1800: the account queue or in-flight task limit is full. Wait for existing tasks to finish, then retry with backoff.
|
|
59
|
+
- HTTP 404, or business code 1200: the task id does not exist for this account.
|
|
60
|
+
- Other 4xx responses are parameter errors. Change the request before trying again.
|
package/README.md
DELETED