@amaster.ai/pi-video-gen 0.1.9 → 0.1.10

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
@@ -1,12 +1,6 @@
1
1
  # pi-video-gen
2
2
 
3
- Pi extension for agentic video generation. Ships the single-clip primitive
4
- (`video_generate`), the multi-shot render pipeline (`video_render`), local
5
- lossless clip composing and mixed-media promo timelines with overlays, TTS,
6
- soft or burned subtitles, source-video audio, and BGM (`video_compose`), the read-only
7
- `video_capabilities` query, a `/video-gen` command, and the `video-gen` skill
8
- that orchestrates the full shot-book workflow together with
9
- [pi-image-gen](../pi-image-gen) (all image work).
3
+ Pi extension for agentic video generation. Ships the single-clip primitive (`video_generate`), the multi-shot render pipeline (`video_render`), local lossless clip composing and mixed-media promo timelines with overlays, TTS, soft or burned subtitles, source-video audio, and BGM (`video_compose`), the read-only `video_capabilities` query, a `/video-gen` command, and the `video-gen` skill that orchestrates the full shot-book workflow together with [pi-image-gen](../pi-image-gen) (all image work).
10
4
 
11
5
  ## Providers
12
6
 
@@ -20,11 +14,11 @@ that orchestrates the full shot-book workflow together with
20
14
  | `newapi` | self-hosted NewAPI relay (Kling / Jimeng / Vidu / Gemini channels) | ✅ via `customProviders` — `baseUrl` **required** |
21
15
  | custom | your own endpoints | ✅ via `customProviders` |
22
16
 
23
- Registry entries are written against provider documentation (each adapter's
24
- header notes the source) and are pending live smoke tests against real
25
- accounts — verify with `/video-gen doctor` + one small paid clip before heavy
26
- use. Seedance 2.5 stays on the roadmap until its official API ID and parameter
27
- contract are published.
17
+ Registry entries are written against provider documentation (each adapter's header notes the source) and are pending live smoke tests against real accounts — verify with `/video-gen doctor` + one small paid clip before heavy use. Seedance 2.5 stays on the roadmap until its official API ID and parameter contract are published.
18
+
19
+ **Seedance trusted portrait assets**: Seedance may reject ordinary image/video references containing recognizable real people. For those shots, select a preset avatar or an Active authorized-person asset in the same Volcengine Ark account/project used for generation, then pass its `asset-...` ID (or `asset://asset-...` URI) through `referenceAssets`. The extension supports trusted `image`, `video`, and `audio` assets for the built-in Seedance 2.0 models and maps them to Ark's `asset://` request format. Prompt text refers to their order as `Image 1`, `Video 1`, and `Audio 1` — never by Asset ID.
20
+
21
+ This package ships dated snapshots of the public material cards and preset persona library under `skills/video-gen/references/`, including the Asset IDs needed by `referenceAssets`. Volcengine does not document those IDs as permanent or cross-account, so retry with an ID copied from the active account's library if a snapshot ID is rejected. Private or authorized-person assets always require the user to provide the current account/project's actual ID. Identity verification, authorization H5 flows, activation, uploading, and asset-library management remain outside this package. See Volcengine's [preset-avatar guide](https://docs.volcengine.com/docs/82379/2608626?lang=zh#preset-avatar), [authorized-person asset guide](https://docs.volcengine.com/docs/82379/2223965?lang=zh), and [Seedance request format](https://console.volcengine.com/ark/region:cn-beijing/docs/82379/2333589?projectName=default&lang=zh#d9a7d853).
28
22
 
29
23
  ## Setup
30
24
 
@@ -43,14 +37,7 @@ Global settings (`~/.pi/agent/settings.json`):
43
37
  }
44
38
  ```
45
39
 
46
- **Custom providers** (same idea as pi-image-gen's — point any Ark-compatible
47
- endpoint at your own models; string models get conservative capabilities,
48
- object models declare them). When a custom model's `id` names a built-in
49
- model (e.g. `"MiniMax-H3"` behind your relay), the built-in capability table
50
- and defaults are inherited automatically — undeclared `capabilities`,
51
- `defaultResolution`/`defaultAspectRatio`/`defaultDurationSec` fall back to
52
- the registry values instead of the conservative 720p/16:9 profile, and any
53
- field you do declare overrides the inherited one:
40
+ **Custom providers** (same idea as pi-image-gen's — point any Ark-compatible endpoint at your own models; string models get conservative capabilities, object models declare them). When a custom model's `id` names a built-in model (e.g. `"MiniMax-H3"` behind your relay), the built-in capability table and defaults are inherited automatically — undeclared `capabilities`, `defaultResolution`/`defaultAspectRatio`/`defaultDurationSec` fall back to the registry values instead of the conservative 720p/16:9 profile, and any field you do declare overrides the inherited one:
54
41
 
55
42
  ```jsonc
56
43
  {
@@ -64,9 +51,11 @@ field you do declare overrides the inherited one:
64
51
  "models": [
65
52
  "seedance-lite-x",
66
53
  { "id": "remote-model-9", "alias": "fast9",
67
- "capabilities": { "maxReferenceImages": 2, "durations": [2, 30],
54
+ "capabilities": { "maxReferenceImages": 9,
55
+ "maxReferenceVideos": 3, "maxReferenceAudios": 3, "durations": [2, 30],
68
56
  "resolutions": ["480p", "720p", "1080p"], "aspectRatios": ["16:9", "9:16"],
69
- "nativeAudio": true, "supportsFirstLastFrame": true } }
57
+ "nativeAudio": true, "supportsFirstLastFrame": true,
58
+ "referenceAssetModalities": ["image", "video", "audio"] } }
70
59
  ]
71
60
  }
72
61
  }
@@ -74,17 +63,7 @@ field you do declare overrides the inherited one:
74
63
  }
75
64
  ```
76
65
 
77
- **NewAPI notes** ([video format docs](https://www.newapi.ai/zh/docs/api/ai-model/videos/createvideogeneration)):
78
- NewAPI is a self-hosted relay, so the `newapi` wire format has NO default
79
- endpoint — `baseUrl` is mandatory and resolution fails with the exact
80
- settings path to fix when it is absent. Both the server root
81
- (`"https://newapi.example.com"`) and the OpenAI-style `"…/v1"` form are
82
- accepted. Channel-specific parameters ride in `metadata` following the
83
- upstream doc examples: `aspect_ratio` + `resolution` (Jimeng/Vidu style),
84
- `image_tail` for the last frame (Kling style) and `image_urls` for extra
85
- reference images (Jimeng style); the first frame goes in the top-level
86
- `image` field. There is no documented audio toggle or idempotency key, so
87
- ambiguous submits are parked for manual resolution rather than auto-retried:
66
+ **NewAPI notes** ([video format docs](https://www.newapi.ai/zh/docs/api/ai-model/videos/createvideogeneration)): NewAPI is a self-hosted relay, so the `newapi` wire format has NO default endpoint — `baseUrl` is mandatory and resolution fails with the exact settings path to fix when it is absent. Both the server root (`"https://newapi.example.com"`) and the OpenAI-style `"…/v1"` form are accepted. Channel-specific parameters ride in `metadata` following the upstream doc examples: `aspect_ratio` + `resolution` (Jimeng/Vidu style), `image_tail` for the last frame (Kling style) and `image_urls` for extra reference images (Jimeng style); the first frame goes in the top-level `image` field. There is no documented audio toggle or idempotency key, so ambiguous submits are parked for manual resolution rather than auto-retried:
88
67
 
89
68
  ```jsonc
90
69
  {
@@ -102,79 +81,53 @@ ambiguous submits are parked for manual resolution rather than auto-retried:
102
81
  }
103
82
  ```
104
83
 
105
- **MiniMax notes** (v2 API, [create](https://platform.minimax.io/docs/api-reference/video-generation-v2-create) / [query](https://platform.minimax.io/docs/api-reference/video-generation-v2-query)):
106
- MiniMax-H3 speaks a multimodal task API — prompt + frames ride in one
107
- `content` array with `first_frame` / `last_frame` / `reference_image` roles
108
- (first/last frames and reference images are mutually exclusive; a last frame
109
- requires a first frame). Resolution is `768P` or `2K`, duration 4–15s, ratio
110
- `16:9|4:3|1:1|3:4|9:16|21:9` — required and non-adaptive for text-to-video,
111
- ignored (forced adaptive) once a first frame is present. There is no audio
112
- toggle, no idempotency key and no documented cancel endpoint, so ambiguous
113
- submits are parked for manual resolution rather than auto-retried. Auth is a
114
- plain Bearer key (`providers.minimax.apiKey`, env `MINIMAX_API_KEY`), and keys
115
- are region-locked: the default endpoint is international
116
- `api.minimax.io` — mainland-China keys need `providers.minimax.baseUrl` set
117
- to `https://api.minimaxi.com` (and vice versa a 401 means wrong region).
118
- Result URLs are time-limited; clips are downloaded immediately, and tasks
119
- stay queryable for 7 days.
120
-
121
- **Kling notes** (verified against kling.ai/document-api via browser, 2026-07):
122
- current Kling API 2.0 uses a plain API key (`providers.kling.apiKey`, env
123
- `KLING_API_KEY`) — the JWT ak/sk scheme is legacy. The model lives in the URL
124
- path (`kling-3.0-turbo` / `kling-3.0`); default base is
125
- `api-singapore.klingai.com` (regional endpoints via `baseUrl`). Kling 3.0 Omni
126
- supports last-frame, native audio and 4k; Turbo is first-frame-only and
127
- silent. Submits carry `external_task_id` (our request fingerprint), so
128
- ambiguous failures are looked up first; an inconclusive lookup is parked for
129
- manual resolution rather than blindly resubmitted.
130
-
131
- **HappyHorse notes**: no native audio and no last-frame interpolation
132
- (`nativeAudio: false`, `supportsFirstLastFrame: false` in the capability table,
133
- so the tools hide/reject those options). One call takes either a first frame
134
- (i2v) OR reference images (r2v, prompt them as `[Image 1]`, `[Image 2]`, …),
135
- not both. The default endpoint is the classic `dashscope.aliyuncs.com` (no
136
- workspace id needed); if you use a new Bailian workspace, set
137
- `providers.dashscope.baseUrl` to `https://{workspaceId}.cn-beijing.maas.aliyuncs.com`.
138
- Video/task URLs expire after 24h — clips are downloaded immediately.
139
-
140
- **Trust boundary**: `providers.*`, `customProviders.*` and `ffmpegPath` are
141
- honored ONLY from global / agent-dir settings — project-level
142
- `.pi/settings.json` can set `outputDir`, `defaultModel`, `rateLimit`,
143
- `concurrency` only (and only when the project is trusted). A malicious repo
144
- cannot redirect your API key or swap binaries.
145
-
146
- **ffmpeg**: required for multi-shot concat and installed automatically with
147
- the plugin through a platform-specific optional npm package. The main plugin
148
- stays small, while `pi install npm:@amaster.ai/pi-video-gen` downloads only
149
- the platform payload matching the current OS and CPU. That payload contains a
150
- default LGPL build plus separately named GPL `ffmpeg-gpl`/`ffprobe-gpl`
151
- binaries with libx264 for requested H.264 timeline output. Supported bundled
152
- targets are macOS 11+ arm64/x64, glibc Linux arm64/x64 (built on Ubuntu 22.04),
153
- and Windows x64; musl Linux uses a system FFmpeg through PATH. Resolution order:
154
- `ffmpegPath` setting → `FFMPEG_PATH` env → installed platform package →
155
- ffmpeg-static (development only) → PATH. An automatic bundled candidate that
156
- is present but not runnable is skipped so it cannot mask a working PATH
157
- installation. Check with `/video-gen doctor`.
158
- Release CI builds every platform package from the pinned official FFmpeg
159
- source with external-library autodetection disabled; the exact FFmpeg, zlib,
160
- and x264 source archives, build script, licenses, and provenance ship beside
161
- the binaries.
84
+ **MiniMax notes** (v2 API, [create](https://platform.minimax.io/docs/api-reference/video-generation-v2-create) / [query](https://platform.minimax.io/docs/api-reference/video-generation-v2-query)): MiniMax-H3 speaks a multimodal task API — prompt + frames ride in one `content` array with `first_frame` / `last_frame` / `reference_image` roles (first/last frames and reference images are mutually exclusive; a last frame requires a first frame). Resolution is `768P` or `2K`, duration 4–15s, ratio `16:9|4:3|1:1|3:4|9:16|21:9` — required and non-adaptive for text-to-video, ignored (forced adaptive) once a first frame is present. There is no audio toggle, no idempotency key and no documented cancel endpoint, so ambiguous submits are parked for manual resolution rather than auto-retried. Auth is a plain Bearer key (`providers.minimax.apiKey`, env `MINIMAX_API_KEY`), and keys are region-locked: the default endpoint is international `api.minimax.io` — mainland-China keys need `providers.minimax.baseUrl` set to `https://api.minimaxi.com` (and vice versa a 401 means wrong region). Result URLs are time-limited; clips are downloaded immediately, and tasks stay queryable for 7 days.
85
+
86
+ **Kling notes** (verified against kling.ai/document-api via browser, 2026-07): current Kling API 2.0 uses a plain API key (`providers.kling.apiKey`, env `KLING_API_KEY`) — the JWT ak/sk scheme is legacy. The model lives in the URL path (`kling-3.0-turbo` / `kling-3.0`); default base is `api-singapore.klingai.com` (regional endpoints via `baseUrl`). Kling 3.0 Omni supports last-frame, native audio and 4k; Turbo is first-frame-only and silent. Submits carry `external_task_id` (our request fingerprint), so ambiguous failures are looked up first; an inconclusive lookup is parked for manual resolution rather than blindly resubmitted.
87
+
88
+ **HappyHorse notes**: no native audio and no last-frame interpolation (`nativeAudio: false`, `supportsFirstLastFrame: false` in the capability table, so the tools hide/reject those options). One call takes either a first frame (i2v) OR reference images (r2v, prompt them as `[Image 1]`, `[Image 2]`, …), not both. The default endpoint is the classic `dashscope.aliyuncs.com` (no workspace id needed); if you use a new Bailian workspace, set `providers.dashscope.baseUrl` to `https://{workspaceId}.cn-beijing.maas.aliyuncs.com`. Video/task URLs expire after 24h — clips are downloaded immediately.
89
+
90
+ **Trust boundary**: `providers.*`, `customProviders.*` and `ffmpegPath` are honored ONLY from global / agent-dir settings — project-level `.pi/settings.json` can set `outputDir`, `defaultModel`, `rateLimit`, `concurrency` only (and only when the project is trusted). A malicious repo cannot redirect your API key or swap binaries.
91
+
92
+ **ffmpeg**: required for multi-shot concat and installed automatically with the plugin through a platform-specific optional npm package. The main plugin stays small, while `pi install npm:@amaster.ai/pi-video-gen` downloads only the platform payload matching the current OS and CPU. That payload contains a default LGPL build plus separately named GPL `ffmpeg-gpl`/`ffprobe-gpl` binaries with libx264 for requested H.264 timeline output. Supported bundled targets are macOS 11+ arm64/x64, glibc Linux arm64/x64 (built on Ubuntu 22.04), and Windows x64; musl Linux uses a system FFmpeg through PATH. Resolution order: `ffmpegPath` setting → `FFMPEG_PATH` env → installed platform package → ffmpeg-static (development only) → PATH. An automatic bundled candidate that is present but not runnable is skipped so it cannot mask a working PATH installation. Check with `/video-gen doctor`. Release CI builds every platform package from the pinned official FFmpeg source with external-library autodetection disabled; the exact FFmpeg, zlib, and x264 source archives, build script, licenses, and provenance ship beside the binaries.
162
93
 
163
94
  ## Tools
164
95
 
165
96
  | Tool | What it does |
166
97
  |---|---|
167
98
  | `video_compose` | **Local video assembly, no paid video models.** C0 (`compose-input.json`) concatenates compatible clips. Timeline media, overlays, transitions, subtitles, source audio, and BGM render locally. Narration is an explicit network feature: setting `voice` to `edge-tts:<voice-name>` sends narration text to Microsoft Edge TTS. |
168
- | `video_generate` | One short clip from a prompt (+ optional first/last frame images). Paid, minutes per clip. Interrupted after receiving a task id? Resume with the returned `jobId`; an ambiguous submit is parked and never resubmitted automatically. |
169
- | `video_render` | Multi-shot film from `<jobDir>/render-input.json`: snapshots + hashes all frames, submits one paid task per shot (resume-aware, finished shots never re-bill), downloads clips, ffmpeg-concats into `final_video.mp4`. |
170
- | `video_capabilities` | Read-only: active model's capability table + registered models. Call before composing prompts or shot books. |
99
+ | `video_generate` | One short clip from a structured prompt plus optional first/last frames or current-account trusted `referenceAssets`. Paid, minutes per clip. Interrupted after receiving a task id? Resume with the returned `jobId`; an ambiguous submit is parked and never resubmitted automatically. |
100
+ | `video_render` | Multi-shot film from `<jobDir>/render-input.json`: every shot requires a local first frame or at least one trusted asset; snapshots + hashes local frames, submits one paid task per shot (resume-aware, finished shots never re-bill), downloads clips, ffmpeg-concats into `final_video.mp4`. |
101
+ | `video_capabilities` | Read-only: active model's capability table, trusted asset modalities, and registered models. Call before composing prompts or shot books. |
102
+
103
+ ## Structured prompts
104
+
105
+ Both paid tools take structured prompt fields, never a pre-joined string. The plugin assembles the labeled prompt text (`[Style]` / `[Character]` / `[Scene]` / `[Visuals]` / `[Action]` / `[Effects]` / `[Audio]` + consistency/negative directives), so every shot reliably carries the film-level directives:
106
+
107
+ - **Film level** — `style` (genre/quality/texture), `characters`
108
+ (`{id, description}` registry), `consistency` (identity/no-drift directive),
109
+ `negative` (e.g. "no text, watermarks, or subtitles").
110
+ - **Shot level** (`prompt` object) — `visuals` (camera/framing) and `action`
111
+ are always required; `scene` plus film-level `style` are **required when no
112
+ first frame anchors the shot** (text-to-video must not go out action-only);
113
+ `effects` carries time-varying content a static frame cannot express
114
+ (transformations, lighting shifts, atmosphere); `audio` takes
115
+ `[Sound Effect] … / [Speaker] …` cues; `visibleCharacters` inlines the
116
+ referenced character descriptions.
117
+ - **Trusted asset references** — `referenceAssets` is an ordered array of
118
+ `{modality: "image"|"video"|"audio", assetId: "asset-..."}`. The public API
119
+ also accepts `asset://asset-...` and normalizes it. Only models declaring the
120
+ requested modality accept it; unsupported inputs fail before a paid submit.
121
+ Built-in Seedance 2.0 models enforce separate request maxima: 9 image
122
+ references total (local frames plus image assets), 3 video assets, and 3
123
+ audio assets.
171
124
 
172
125
  ## Commands
173
126
 
174
127
  | Command | What it does |
175
128
  |---|---|
176
129
  | `/video-gen compose <spec>` | Same as the `video_compose` tool |
177
- | `/video-gen generate <prompt>` | Same as the `video_generate` tool |
130
+ | `/video-gen generate --visuals ".." --action ".." [--style ".." --scene ".."]` | Structured-prompt flags for `video_generate` (also `--effects/--audio/--consistency/--negative/--first-frame/--last-frame/--asset-images/--asset-videos/--asset-audios/--duration/--ratio`). Asset flags take comma-separated current-account IDs; request order is images, videos, then audios. The `characters` registry is tool/render-spec only. |
178
131
  | `/video-gen render <spec>` | Same as the `video_render` tool |
179
132
  | `/video-gen recover <jobId>` | List ambiguous render shots; explicitly `reset` a confirmed-absent task or `adopt <taskId>` found in the provider console |
180
133
  | `/video-gen models` | List registered models + key readiness |
@@ -186,11 +139,12 @@ the binaries.
186
139
  Driven by the `video-gen` skill in conversation:
187
140
 
188
141
  1. **Shot book** — the agent authors a shot book (characters + shots with
189
- first/last-frame descriptions, motion, audio, continuity) and you review it
190
- in chat. Default small: 1 scene, 3–5 shots.
191
- 2. **Frames** — the agent generates character portraits and per-shot frames via
192
- `image_generate` (pi-image-gen), tracking real returned paths in
193
- `assets.json`.
142
+ first/last-frame descriptions, visuals+action, effects, audio, continuity)
143
+ and you review it in chat. Default small: 1 scene, 3–5 shots.
144
+ 2. **Sources** — the agent uses current-account trusted portrait assets when
145
+ Seedance will receive recognizable real people; otherwise it generates
146
+ character portraits and per-shot frames via `image_generate`, tracking local
147
+ returned paths in `assets.json`.
194
148
  3. **Render** — after explicit confirmation, ONE `video_render` call pays for
195
149
  and stitches everything.
196
150
 
@@ -201,18 +155,10 @@ Driven by the `video-gen` skill in conversation:
201
155
  ├── render-input.json # immutable spec (revisions = new job dir)
202
156
  ├── assets.json # semantic assets ↔ image_generate's real returned paths
203
157
  ├── manifest.json # state + per-shot remote handles + frame SHA-256 (atomic, single writer)
204
- ├── shots/<shotId>/first_frame.png|last_frame.png|video.mp4
158
+ ├── shots/<shotId>/first_frame.png|last_frame.png|video.mp4 # frames optional for asset-only shots
205
159
  └── final_video.mp4
206
160
  ```
207
161
 
208
- Crash or cancel mid-render? Rerun the same spec path — the input fingerprint
209
- (spec + frame hashes + model/provider) is verified, then persisted handles
210
- resume via `inspect` without re-billing. NOTE: cancelling stops local polling
211
- only; the remote task may keep running and billable (Ark cancellation support
212
- is unverified). If submit completion is ambiguous, rerun is blocked until
213
- `/video-gen recover <jobId>` explicitly resets or adopts the affected shot.
214
- Single-clip ambiguous submits are also persisted and blocked; check the provider
215
- console before starting another generation. Single-job resume independently
216
- recomputes the request fingerprint from its frozen `input.json`; an inspect 404
217
- keeps the remote handle and parks the job as ambiguous instead of declaring it
218
- safe to resubmit.
162
+ Crash or cancel mid-render? Rerun the same spec path — the input fingerprint (spec + frame hashes + model/provider) is verified, then persisted handles resume via `inspect` without re-billing. NOTE: cancelling stops local polling only; the remote task may keep running and billable (Ark cancellation support is unverified). If submit completion is ambiguous, rerun is blocked until `/video-gen recover <jobId>` explicitly resets or adopts the affected shot. Single-clip ambiguous submits are also persisted and blocked; check the provider console before starting another generation. Single-job resume independently recomputes the request fingerprint from its frozen `input.json`; an inspect 404 keeps the remote handle and parks the job as ambiguous instead of declaring it safe to resubmit.
163
+
164
+ **Upgrading from the pre-structured format**: render jobs whose `render-input.json` still uses the old `videoPrompt` string can no longer be parsed or resumed (the structured `prompt` object replaced it deliberately, with no compatibility layer). If an in-flight paid task is stranded by the upgrade, download its clip manually from the provider console — task URLs expire (Ark: 24h). Single-clip jobs are unaffected: their frozen `input.json` is read, not re-parsed.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAEV,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AAIpB;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AA8OnE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,GAAG,gBAAgB,CAmB3F;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,aAAa,GACnB,gBAAgB,CAQlB;AA8FD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAW/F;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,GAAG;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,E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gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhF"}
package/dist/config.js CHANGED
@@ -90,6 +90,8 @@ function validateCapabilities(value, path) {
90
90
  return;
91
91
  const caps = settingsSection(value, path);
92
92
  nonNegativeInteger(caps.maxReferenceImages, `${path}.maxReferenceImages`);
93
+ nonNegativeInteger(caps.maxReferenceVideos, `${path}.maxReferenceVideos`);
94
+ nonNegativeInteger(caps.maxReferenceAudios, `${path}.maxReferenceAudios`);
93
95
  if (caps.durations !== undefined) {
94
96
  if (!Array.isArray(caps.durations) ||
95
97
  caps.durations.length !== 2 ||
@@ -103,6 +105,13 @@ function validateCapabilities(value, path) {
103
105
  stringArray(caps.resolutions, `${path}.resolutions`);
104
106
  if (caps.aspectRatios !== undefined)
105
107
  stringArray(caps.aspectRatios, `${path}.aspectRatios`);
108
+ if (caps.referenceAssetModalities !== undefined) {
109
+ stringArray(caps.referenceAssetModalities, `${path}.referenceAssetModalities`);
110
+ const valid = ['image', 'video', 'audio'];
111
+ if (caps.referenceAssetModalities.some((item) => !valid.includes(item))) {
112
+ throw new VideoGenError(`${path}.referenceAssetModalities may contain only image, video, and audio.`, `config: invalid ${path}.referenceAssetModalities`);
113
+ }
114
+ }
106
115
  for (const key of ['nativeAudio', 'supportsFirstLastFrame']) {
107
116
  if (caps[key] !== undefined && typeof caps[key] !== 'boolean') {
108
117
  throw new VideoGenError(`${path}.${key} must be a boolean in pi-video-gen settings.`, `config: invalid ${path}.${key}`);
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,0BAA0B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,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE,CAC/E,CAAC,EAAE,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC1B,MAAM,KAAK,GAAqB,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtE,OAAO;oBACL,EAAE,EAAE,KAAK,CAAC,EAAE;oBACZ,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;oBACzC,QAAQ,EAAE,GAAG,YAAY,IAAI,EAAE,CAAC,GAAG,GAAG;oBACtC,QAAQ,EAAE,EAAE,CAAC,MAAM,IAAI,IAAI;iBAC5B,CAAC;YACJ,CAAC,CAAC,CACH;SACF;KACF,CAAC;AACJ,CAAC;AAED,qCAAqC;AACrC,MAAM,UAAU,gBAAgB,CAAC,QAA0B,EAAE,GAAW;IACtE,OAAO,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,IAAI,YAAY,CAAC,CAAC;AAC1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,iCAAiC,CAAC;AA2JzC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAw+BlE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,iCAAiC,CAAC;AAsRzC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAslClE"}