@remixmate/cli 0.13.7 → 0.13.8
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/dist/manifest.json +3 -3
- package/package.json +1 -1
- package/skills/gen-script/SKILL.md +2 -2
- package/skills/gen-script/scripts/gen_script.py +25 -2
- package/skills/gen-script/skill.json +1 -1
- package/skills/gen-script/version.json +1 -1
- package/skills/template-registry/version.json +1 -1
- package/skills/template-registry/video_dsl/runtime/dsl_validator.py +40 -0
package/dist/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.13.
|
|
4
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"version": "0.13.8",
|
|
4
|
+
"generatedAt": "2026-10-31T00:45:42.523Z",
|
|
5
5
|
"skills": [
|
|
6
6
|
{
|
|
7
7
|
"id": "doc-parse",
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
"on",
|
|
615
615
|
"off"
|
|
616
616
|
],
|
|
617
|
-
"description": "Narration on / off, overriding the template's needsNarration (auto = the template decides). Templates
|
|
617
|
+
"description": "Narration on / off, overriding the template's needsNarration (auto = the template decides). Templates declaring narration optional default to none — **must** pass `on` when the replicate card says `旁白: <名称>(narrated)`, otherwise the narration you write is dropped without an error and the video comes back silent. `off` drops narration from a narrated template."
|
|
618
618
|
},
|
|
619
619
|
"background_asset": {
|
|
620
620
|
"type": "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remixmate/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"description": "AI media generation skills for Claude Code / Codex — 12 skills covering image, video, voice, digital human, web screenshot, web recording, script, template registry, rendering, Jianying export, and video deconstruction.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -491,7 +491,7 @@ python3 <SkillDir>/scripts/gen_script.py \
|
|
|
491
491
|
| `--payload KEY=VALUE` | Template-specific card choice, repeatable. `KEY` is a dotted path in `customPayloadSchema` (or `capabilities.frameLevelKeys`), e.g. `<field>=<value>`, `<object>.<field>=<value>`. Value is converted to the declared type (true/false, numbers) and checked against enum / range; undeclared keys are rejected. Written to every scene with sibling keys kept, applied before fit-caption duration estimation. | template default |
|
|
492
492
|
| `--ending-payload KEY=VALUE` | Same as `--payload`, but written only to the ending scene, e.g. `<object>.<field>=<closing line>`. On countdown templates it also appends an ending scene after #1 (it carries the #1 index; fill its narration and the item field `capabilities.countdown.itemProp` names). Errors when the script has no ending scene. | none |
|
|
493
493
|
| `--avatar-id` | Digital-human avatar id (`dh_xxx`) for templates declaring `capabilities.digitalHuman`. Adds asset `asset-avatar` (`type: avatar`, `source: gen-digital-human`, `payload.avatarId`) and sets `visuals.avatar.assetRef` on every scene whose slot reads it — one continuous presenter driven by the narration. Placement: template default, or `--payload digitalHuman.<field>=…` (a photo-only presenter is `--payload digitalHuman.posterUrl=<url>` without this flag). | none |
|
|
494
|
-
| `--motion` | Camera motion for every scene (`animationHints.motion`): `static` / `kenburns-in` / `kenburns-out` / `pan-left` / `pan-right` / `float`. `auto` removes the motion from every scene so the template picks
|
|
494
|
+
| `--motion` | Camera motion for every scene (`animationHints.motion`): `static` / `kenburns-in` / `kenburns-out` / `pan-left` / `pan-right` / `float`. `auto` removes the motion from every scene so the template picks its own motion; nothing is locked then. | skeleton alternates in / out |
|
|
495
495
|
| `--font-id` | Font library key (`font.uniq_id`), written to `global.font.fontId`; ab-render resolves and installs the real font at render time. Pass it whenever the user picked a font — the replicate card shows it as `名字(id)`, e.g. `字体: <名字>(<uniqId>)`; pass the id in the parentheses. Never pass a CSS family or the display name: an unknown key falls back to the template font with no error. | template font |
|
|
496
496
|
| `--font-name` | Display name of the picked font → `global.font.fontName` (display only, never used for rendering). Pass it with `--font-id`. | — |
|
|
497
497
|
| `--list-fonts` | Print the live font library (`/font/page`: id, name, lang, category, license) and exit; no script is generated and `--topic` is not needed. The ids it prints are the only valid `--font-id` values — use it when the user asks which fonts exist or names a font without its id. | — |
|
|
@@ -510,7 +510,7 @@ python3 <SkillDir>/scripts/gen_script.py \
|
|
|
510
510
|
|
|
511
511
|
Values written by `--background-preset`, `--background-asset`, `--payload`, `--ending-payload`, `--avatar-id` and `--motion` are listed in `meta.lockedScenePaths` (scene-relative paths such as `customPayload.<object>.<field>`, `animationHints.motion`). When the agent later saves its own `dsl_json` in merge mode, ab-agent restores those paths from this skeleton after merging, so a model-written `customPayload` object cannot wipe a card choice. Do not hand-write these keys in `dsl_json`; pass the flag. Templates that author their own scenes (`meta.authoredScenes`) are not merged: there ab-agent writes each locked value that the skeleton holds on every scene (with one value) onto every submitted scene, and adds the skeleton assets those values reference (`asset-background`, `asset-avatar`) when the submitted `assets` lacks them.
|
|
512
512
|
|
|
513
|
-
For
|
|
513
|
+
For replicate cards exposing transition effects or duration, read the template's `customPayloadSchema` and `llmHint` for the exact field paths, units, allowed values and any paired override switch. Pass each explicit selection through `--payload <declared-path>=<value>`, preserving the chosen preset and typography; following the sample omits the overrides. These payload keys are locked into every generated scene, so do not re-author them in a saved DSL.
|
|
514
514
|
|
|
515
515
|
## DSL generation principles
|
|
516
516
|
|
|
@@ -643,6 +643,8 @@ def _template_needs_image(template_config: dict | None) -> bool:
|
|
|
643
643
|
|
|
644
644
|
|
|
645
645
|
|
|
646
|
+
|
|
647
|
+
|
|
646
648
|
|
|
647
649
|
|
|
648
650
|
|
|
@@ -707,6 +709,7 @@ def _resolve_contract(template_config: dict | None) -> dict:
|
|
|
707
709
|
"duration_strategy": duration_strategy,
|
|
708
710
|
"duration_model": caps.get("durationModel"),
|
|
709
711
|
"payload_defaults": payload_defaults,
|
|
712
|
+
"media_binding": caps.get("mediaBinding"),
|
|
710
713
|
"primary_visual_type": primary_visual_type,
|
|
711
714
|
"background_strategy": "shared" if caps.get("backgroundStrategy") == "shared" else "per-scene",
|
|
712
715
|
"default_layout": caps.get("defaultLayout"),
|
|
@@ -1275,6 +1278,8 @@ def _media_option_choice(option_schema: dict, value: str | None, flag: str,
|
|
|
1275
1278
|
|
|
1276
1279
|
|
|
1277
1280
|
|
|
1281
|
+
|
|
1282
|
+
|
|
1278
1283
|
|
|
1279
1284
|
_MEDIA_OPTION_FLAGS = {"preset": "--sequence-preset", "fit": "--sequence-fit"}
|
|
1280
1285
|
_LEGACY_MEDIA_BINDINGS = {
|
|
@@ -2493,7 +2498,7 @@ def _attach_narration(scene: dict, narration_text: str, narration_asset_id: str
|
|
|
2493
2498
|
def _visual_scene(
|
|
2494
2499
|
ctx: _SkeletonContext, idx: int, scene_id: str, plan: dict, visual_asset_id: str,
|
|
2495
2500
|
) -> dict:
|
|
2496
|
-
|
|
2501
|
+
scene = {
|
|
2497
2502
|
"id": scene_id,
|
|
2498
2503
|
"purpose": plan["purpose"],
|
|
2499
2504
|
"duration": plan["duration"],
|
|
@@ -2507,6 +2512,24 @@ def _visual_scene(
|
|
|
2507
2512
|
}
|
|
2508
2513
|
|
|
2509
2514
|
|
|
2515
|
+
|
|
2516
|
+
binding = ctx.contract.get("media_binding")
|
|
2517
|
+
if isinstance(binding, dict) and "assetRefKey" in binding:
|
|
2518
|
+
path = binding.get("itemsPath")
|
|
2519
|
+
ref_key = binding.get("assetRefKey")
|
|
2520
|
+
if not isinstance(path, str) or not all(path.split(".")) or not isinstance(ref_key, str) or not ref_key:
|
|
2521
|
+
raise ValueError("mediaBinding needs non-empty itemsPath and assetRefKey")
|
|
2522
|
+
item = deepcopy(binding.get("item", {}))
|
|
2523
|
+
if not isinstance(item, dict):
|
|
2524
|
+
raise ValueError("mediaBinding.item must be an object")
|
|
2525
|
+
item[ref_key] = visual_asset_id
|
|
2526
|
+
payload = _build_custom_payload(ctx.template_config)
|
|
2527
|
+
_write_payload(payload, [(path.split("."), [item])])
|
|
2528
|
+
scene["customPayload"] = payload
|
|
2529
|
+
del scene["visuals"]
|
|
2530
|
+
return scene
|
|
2531
|
+
|
|
2532
|
+
|
|
2510
2533
|
def _payload_scene(ctx: _SkeletonContext, scene_id: str, plan: dict) -> dict:
|
|
2511
2534
|
|
|
2512
2535
|
|
|
@@ -2979,7 +3002,7 @@ Examples:
|
|
|
2979
3002
|
"--motion", default=None,
|
|
2980
3003
|
help="Camera motion for every scene (animationHints.motion): static / kenburns-in / kenburns-out / "
|
|
2981
3004
|
"pan-left / pan-right / float. Replaces the skeleton's alternating default. `auto` removes the "
|
|
2982
|
-
"motion from every scene so the template picks
|
|
3005
|
+
"motion from every scene so the template picks its own motion.",
|
|
2983
3006
|
)
|
|
2984
3007
|
parser.add_argument("--allow-digital-human", action="store_true", help="Allow digital-human assets")
|
|
2985
3008
|
parser.add_argument("--avatar-id", default=None, help="Digital-human avatar id (dh_xxx) for templates declaring capabilities.digitalHuman: adds one gen-digital-human asset referenced by every scene's visuals.avatar.assetRef (one continuous presenter driven by the narration). Placement stays the template default unless set with --payload digitalHuman.<field>=...")
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"narration": {
|
|
68
68
|
"type": "string",
|
|
69
69
|
"enum": ["auto", "on", "off"],
|
|
70
|
-
"description": "Narration on / off, overriding the template's needsNarration (auto = the template decides). Templates
|
|
70
|
+
"description": "Narration on / off, overriding the template's needsNarration (auto = the template decides). Templates declaring narration optional default to none — **must** pass `on` when the replicate card says `旁白: <名称>(narrated)`, otherwise the narration you write is dropped without an error and the video comes back silent. `off` drops narration from a narrated template."
|
|
71
71
|
},
|
|
72
72
|
"background_asset": {
|
|
73
73
|
"type": "string",
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"skillName": "gen-script",
|
|
3
3
|
"repoName": "agent-skill-media-maker",
|
|
4
4
|
"skillId": "474",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "V26",
|
|
6
6
|
"skillDescription": "Video-script generation skill. Turns a user-supplied topic into a structured Video DSL (JSON) that describes the full video — scene structure, asset requirements, and narrative flow.\n\nUse this skill as soon as the user mentions any of these intents:\n- Write a video script, generate a video script, plan a video, write storyboards\n- Create a short video, plan video content, generate a Video DSL\n- Turn a topic into a video structure / video content plan\n\nEven when the user does not say \"generate the DSL\", use this skill whenever they want to turn a topic into a structured video plan.\n\n⚠️ Stop-and-confirm gate: after this skill returns a DSL, show the full script and wait for the user's explicit confirmation. Never call `prepare_video_assets` in the same turn."
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"skillName": "template-registry",
|
|
3
3
|
"repoName": "agent-skill-media-maker",
|
|
4
4
|
"skillId": "475",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "V32",
|
|
6
6
|
"skillDescription": "Video-template registry skill. Stores every video-template definition and lists the available templates (templateId / name / aspect ratio / style tags).\n\nUse this skill as soon as the user mentions any of these intents:\n- View available templates / list every template\n\nNote: DSL→TemplateBinding is no longer a separate exposed step — once prepare_video_assets receives a template_id it builds the binding internally."
|
|
7
7
|
}
|
|
@@ -1273,6 +1273,44 @@ def _check_narration_language_strict(dsl: dict) -> list[ValidationError]:
|
|
|
1273
1273
|
_TEXT_LAYER_SKELETON_PREFIXES = ("[骨架待填充]", "[skeleton placeholder]")
|
|
1274
1274
|
|
|
1275
1275
|
|
|
1276
|
+
def _check_presenter_visibility(dsl: dict) -> list[ValidationError]:
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
tpl = _get_template_cfg(_pick_template_id(dsl)) or {}
|
|
1282
|
+
caps = tpl.get("capabilities")
|
|
1283
|
+
caps = caps if isinstance(caps, dict) else {}
|
|
1284
|
+
spec = caps.get("digitalHuman") or {}
|
|
1285
|
+
if not isinstance(spec, dict) or spec.get("backgroundOccludes") is not True:
|
|
1286
|
+
return []
|
|
1287
|
+
presenter_scenes = []
|
|
1288
|
+
for scene in dsl.get("scenes") or []:
|
|
1289
|
+
if not isinstance(scene, dict):
|
|
1290
|
+
continue
|
|
1291
|
+
visuals = scene.get("visuals") or {}
|
|
1292
|
+
if not isinstance(visuals, dict):
|
|
1293
|
+
continue
|
|
1294
|
+
if not isinstance(visuals.get("avatar"), dict):
|
|
1295
|
+
continue
|
|
1296
|
+
if (visuals.get("avatar") or {}).get("assetRef"):
|
|
1297
|
+
presenter_scenes.append(scene)
|
|
1298
|
+
if not presenter_scenes or not all(
|
|
1299
|
+
isinstance(scene["visuals"].get("background"), dict)
|
|
1300
|
+
and scene["visuals"]["background"].get("assetRef")
|
|
1301
|
+
for scene in presenter_scenes
|
|
1302
|
+
):
|
|
1303
|
+
return []
|
|
1304
|
+
binding = caps.get("mediaBinding") or {}
|
|
1305
|
+
path = binding.get("itemsPath") if isinstance(binding, dict) else None
|
|
1306
|
+
hint = f" Use timed media items in customPayload.{path} instead." if path else " Leave presenter scenes without full-scene backgrounds."
|
|
1307
|
+
return [ValidationError(
|
|
1308
|
+
"scenes[].visuals.background.assetRef",
|
|
1309
|
+
"Full-scene backgrounds cover every presenter scene; the presenter would never be visible."
|
|
1310
|
+
+ hint,
|
|
1311
|
+
)]
|
|
1312
|
+
|
|
1313
|
+
|
|
1276
1314
|
def _check_text_layer_rules(dsl: dict) -> list[ValidationError]:
|
|
1277
1315
|
|
|
1278
1316
|
|
|
@@ -1398,6 +1436,7 @@ def validate_integrity(dsl: dict) -> list[ValidationError]:
|
|
|
1398
1436
|
errors += _check_step_narration_alignment(dsl)
|
|
1399
1437
|
errors += _check_slide_cross_field(dsl)
|
|
1400
1438
|
errors += _check_text_layer_rules(dsl)
|
|
1439
|
+
errors += _check_presenter_visibility(dsl)
|
|
1401
1440
|
|
|
1402
1441
|
errors += _check_duration_estimate(dsl)
|
|
1403
1442
|
return errors
|
|
@@ -1435,6 +1474,7 @@ def validate_dsl(dsl: dict) -> list[ValidationError]:
|
|
|
1435
1474
|
errors += _check_step_narration_alignment(dsl)
|
|
1436
1475
|
errors += _check_slide_cross_field(dsl)
|
|
1437
1476
|
errors += _check_text_layer_rules(dsl)
|
|
1477
|
+
errors += _check_presenter_visibility(dsl)
|
|
1438
1478
|
|
|
1439
1479
|
errors += _check_duration_estimate(dsl)
|
|
1440
1480
|
return errors
|