provider-runners
Plugin-wide SDK runners that execute fal.ai and WaveSpeedAI models — take a model id plus JSON input, queue and poll the job, download the outputs, and print one JSON envelope. The execution path every ai-video-producer generation skill (text-to-image-to-video, text-to-video-direct, voice-to-lip-sync, upscale-and-interpolate) uses for fal and WaveSpeed models. Use when a pipeline step needs to run a hosted fal.ai or WaveSpeed model.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- provider-runners
- description
- Plugin-wide SDK runners that execute fal.ai and WaveSpeedAI models — take a model id plus JSON input, queue and poll the job, download the outputs, and print one JSON envelope. The execution path every ai-video-producer generation skill (text-to-image-to-video, text-to-video-direct, voice-to-lip-sync, upscale-and-interpolate) uses for fal and WaveSpeed models. Use when a pipeline step needs to run a hosted fal.ai or WaveSpeed model.
02 资源文件 5
- 其他env.example1.5 KB
- 脚本fal_run.mjs3.1 KB
- 参考文档package.json255 B
- 参考文档requirements.txt17 B
- 脚本wavespeed_run.py3.1 KB
03 SKILL.md 正文
Provider runners
Thin SDK wrappers the generation skills shell out to. The scripts sit next to this file. Find the installed skill folder by name; some tools prefix it, e.g. ai-video-producer__provider-runners.
| Provider | Runner | Auth env var | Bootstrap (in this folder) |
|---|---|---|---|
| fal.ai | fal_run.mjs |
FAL_KEY |
npm install |
| WaveSpeed | wavespeed_run.py |
WAVESPEED_API_KEY |
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt |
Replicate and MiniMax have no runner: use their MCP servers (replicate-mcp, minimax-mcp) where the harness has them registered.
/setup-credentials stores the keys and bootstraps both toolchains. env.example lists every variable.
Before calling
Check the key is in the environment without printing it:
printenv FAL_KEY >/dev/null && echo "FAL_KEY set" || echo "FAL_KEY missing"
If it's missing, stop and point the user at /setup-credentials. Don't read or source credential files yourself.
Invocation contract
node <folder>/fal_run.mjs <model_id> <input.json|-|inline-json> [--output <dir>] [--no-download]
<folder>/.venv/bin/python <folder>/wavespeed_run.py <model_id> <input.json|-|inline-json> [--output <dir>] [--no-download] [--sync]
<input>is a path to a JSON file,-for stdin, or an inline JSON string.--output <dir>downloads returned media into that directory (e.g.generation/text-to-image/) and lists the files inoutput_files.- Without
--output, only the URLs indatacome back. - fal ids look like
fal-ai/<slug>; WaveSpeed ids likewavespeed-ai/<family>/<variant>.
stdout is one JSON envelope; progress goes to stderr:
{ "model": "...", "output_files": [absolute paths], "data": <raw provider output> }
Rename the downloaded file to the skill's naming scheme (NN-shortname-vN.<ext>) and log the call as the calling skill says. A non-zero exit means the call failed: show the stderr line and don't retry a paid call without asking.
04 同仓库更多 Skills
no-description
暂无简介
good-skill
Fixture skill that satisfies every rule.
broken-link
Links to a reference file that does not exist.
Bad_Name
Name violates the kebab-case rule and does not match the directory.
skill-authoring
Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.
weigh-bags
Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts/reconcile.py.