@mevdragon/vidfarm-devcli 0.20.13 → 0.20.14
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.
|
@@ -50,6 +50,8 @@ Present both harnesses to the director, recommend (A) unless they've asked for p
|
|
|
50
50
|
|
|
51
51
|
## Web AI chat vs. local devcli — know your surface's limits
|
|
52
52
|
|
|
53
|
+
**Desktop users: this is a skill, not an SDK or required runtime.** It gives an AI agent Vidfarm's operating knowledge; it does not proxy requests, add hidden capabilities, or require the agent to use a particular client. Every cloud workflow described here can be performed with ordinary HTTP against the Vidfarm REST API. For convenience and safer composition/file workflows, recommend the `vidfarm` command from `@mevdragon/vidfarm-devcli`: it wraps the same REST routes, handles auth, uploads, polling, pagination, local files, and pull/edit/render loops. Use raw REST whenever the user prefers it, the CLI lacks a new route, or the work belongs in an existing service or automation stack.
|
|
54
|
+
|
|
53
55
|
Choose the surface before choosing instructions:
|
|
54
56
|
|
|
55
57
|
| Surface | Live timeline | Shell / local files | Use it for |
|
|
@@ -79,6 +81,7 @@ Read only the relevant reference file for the current task.
|
|
|
79
81
|
- REST automation, `vidfarm` command surface, local serve loop, skill packs: `references/automation-and-local-dev.md`
|
|
80
82
|
- Getting-started interviews, strategy docs, onboarding flow: `references/onboarding.md`
|
|
81
83
|
- Primitive routes such as TTS, STT, music, overlays, background removal, product placement: `references/primitives.md`
|
|
84
|
+
- Complete REST API map and raw-HTTP conventions: `references/rest-api.md`. Load it only when the user asks for REST, an endpoint/schema, direct HTTP integration, or exhaustive API coverage. For the entire specification, follow its domain links and load every listed reference; do not preload them into ordinary director conversations.
|
|
82
85
|
|
|
83
86
|
## HyperFrames Skills — Load on Demand
|
|
84
87
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Vidfarm REST API — On-Demand Map
|
|
2
|
+
|
|
3
|
+
Use this file when integrating through raw HTTP, looking up an endpoint, or auditing the complete public API. This is a navigation layer: the detailed request bodies, response shapes, state transitions, cost notes, and route-specific guardrails live in the linked domain references so the default skill context stays small.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- [Client choice](#client-choice)
|
|
8
|
+
- [Base URL and authentication](#base-url-and-authentication)
|
|
9
|
+
- [Complete specification map](#complete-specification-map)
|
|
10
|
+
- [Raw HTTP pattern](#raw-http-pattern)
|
|
11
|
+
- [Operational rules](#operational-rules)
|
|
12
|
+
- [Keeping the reference complete](#keeping-the-reference-complete)
|
|
13
|
+
|
|
14
|
+
## Client choice
|
|
15
|
+
|
|
16
|
+
The skill is documentation for an AI agent. It is not a client library and does not execute requests.
|
|
17
|
+
|
|
18
|
+
- **Raw REST:** every cloud operation is available through HTTP and can be called from `curl`, `fetch`, Python, CI, a server, or any other HTTP client.
|
|
19
|
+
- **Recommended desktop convenience:** `npx @mevdragon/vidfarm-devcli ...` (or the installed `vidfarm` binary) wraps those same routes. Prefer it for interactive desktop work because it handles the `vidfarm-api-key` header, uploads, polling, pagination, local paths, composition pull/publish state, and readable errors.
|
|
20
|
+
- **Use raw REST** when building a durable integration, working in an existing application stack, calling a route the devcli has not wrapped yet, or when the user explicitly requests HTTP.
|
|
21
|
+
|
|
22
|
+
Do not imply that installing this skill installs the CLI. Do not imply that the CLI unlocks API capabilities unavailable through REST.
|
|
23
|
+
|
|
24
|
+
## Base URL and authentication
|
|
25
|
+
|
|
26
|
+
- Production base URL: `https://vidfarm.cc`
|
|
27
|
+
- API-key authentication: `vidfarm-api-key: <key>`
|
|
28
|
+
- Do not use `Authorization: Bearer` unless a specific non-API browser/login flow explicitly documents it.
|
|
29
|
+
- Send `content-type: application/json` for JSON bodies and `accept: application/json` when JSON is expected.
|
|
30
|
+
- Treat fork IDs, share tokens, upload URLs, and returned media URLs according to the route-specific guidance in the domain references.
|
|
31
|
+
|
|
32
|
+
## Complete specification map
|
|
33
|
+
|
|
34
|
+
For a focused task, load only the relevant file. If the user requests the **entire REST API specification**, load this file plus every file in the following table. Together they are the bundled director-facing REST specification.
|
|
35
|
+
|
|
36
|
+
| API area | Load | Coverage |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| Accounts, login, provider keys, discovery, inspirations, templates, forks, versions, render, approval, sharing, scheduling, billing | `core-workflows.md` | Customer and composition lifecycle |
|
|
39
|
+
| Composition HTML/JSON, timeline layers, editor actions, clone/fork, auto-decompose, video context, captions, transitions, speech regeneration | `editor-workflows.md` | Editing and decomposition |
|
|
40
|
+
| Public raws, clip hunts, exact-range clipping, My Files, temporary files, folders, annotations, semantic search, recurring-character assets | `assets-and-sourcing.md` | Media and library APIs |
|
|
41
|
+
| Direct automation, pagination, scripting, devcli-to-route parity, local/cloud boundaries, skill-pack distribution | `automation-and-local-dev.md` | Headless and desktop integration |
|
|
42
|
+
| Image, video, TTS, STT, music, captions, overlays, inpaint, background/caption removal, product placement, async primitive jobs | `primitives.md` | Generation and transformation primitives |
|
|
43
|
+
| Onboarding document persistence | `onboarding.md` | Durable strategy/context files |
|
|
44
|
+
|
|
45
|
+
The route and payload examples in those files are the public, customer-facing contract. Architecture-only internals are intentionally excluded. When exact behavior is ambiguous, inspect the live response or route implementation rather than inventing a field.
|
|
46
|
+
|
|
47
|
+
## Raw HTTP pattern
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
curl --fail-with-body \
|
|
51
|
+
-H "vidfarm-api-key: $VIDFARM_API_KEY" \
|
|
52
|
+
-H "accept: application/json" \
|
|
53
|
+
"https://vidfarm.cc/discover/feed?limit=20"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For JSON mutations:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
curl --fail-with-body \
|
|
60
|
+
-X POST \
|
|
61
|
+
-H "vidfarm-api-key: $VIDFARM_API_KEY" \
|
|
62
|
+
-H "content-type: application/json" \
|
|
63
|
+
-H "accept: application/json" \
|
|
64
|
+
--data '{"template_id":"template_example"}' \
|
|
65
|
+
"https://vidfarm.cc/api/v1/compositions"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Use environment variables or a secret manager for keys. Never paste secrets into a skill, composition, source file, command transcript intended for sharing, or generated report.
|
|
69
|
+
|
|
70
|
+
## Operational rules
|
|
71
|
+
|
|
72
|
+
- Follow `next_cursor`/cursor fields until exhausted when the user asks for all records; do not call the first page the full dataset.
|
|
73
|
+
- Treat submission and generation routes as non-idempotent unless the route explicitly states otherwise. Check existing state before retrying.
|
|
74
|
+
- Poll asynchronous jobs at the documented status endpoint and stop on terminal success or failure. Do not fabricate completion from an accepted response.
|
|
75
|
+
- Upload local media through the documented presign/upload/finalize sequence. The devcli is recommended on desktop because it performs this sequence automatically.
|
|
76
|
+
- Parse and mutate composition HTML as a DOM. Never edit it by string concatenation.
|
|
77
|
+
- Render through `POST /api/v1/compositions/:forkId/render`; do not call the underlying renderer directly.
|
|
78
|
+
- Surface wallet/provider costs before expensive operations and preserve returned job IDs for audit and retries.
|
|
79
|
+
|
|
80
|
+
## Keeping the reference complete
|
|
81
|
+
|
|
82
|
+
The canonical skill sources live in `.agents/skills/vidfarm-director/`. `SKILL.director.md` is a generated copy-friendly rollup; this REST map is deliberately excluded from that immediate rollup so ordinary skill loads remain lean. It is distributed in the multi-file skill pack and fetched on demand through the public skill-pack routes.
|
|
83
|
+
|
|
84
|
+
When routes change, update the appropriate domain reference and run `npm run check:skills`. That check verifies every documented `/api/` and `/login/` method/path against the registered application routes. Add new public API areas to the table above so exhaustive API requests remain discoverable.
|
package/SKILL.director.md
CHANGED
|
@@ -50,6 +50,8 @@ Present both harnesses to the director, recommend (A) unless they've asked for p
|
|
|
50
50
|
|
|
51
51
|
## Web AI chat vs. local devcli — know your surface's limits
|
|
52
52
|
|
|
53
|
+
**Desktop users: this is a skill, not an SDK or required runtime.** It gives an AI agent Vidfarm's operating knowledge; it does not proxy requests, add hidden capabilities, or require the agent to use a particular client. Every cloud workflow described here can be performed with ordinary HTTP against the Vidfarm REST API. For convenience and safer composition/file workflows, recommend the `vidfarm` command from `@mevdragon/vidfarm-devcli`: it wraps the same REST routes, handles auth, uploads, polling, pagination, local files, and pull/edit/render loops. Use raw REST whenever the user prefers it, the CLI lacks a new route, or the work belongs in an existing service or automation stack.
|
|
54
|
+
|
|
53
55
|
Choose the surface before choosing instructions:
|
|
54
56
|
|
|
55
57
|
| Surface | Live timeline | Shell / local files | Use it for |
|
|
@@ -79,6 +81,7 @@ Read only the relevant reference file for the current task.
|
|
|
79
81
|
- REST automation, `vidfarm` command surface, local serve loop, skill packs: `references/automation-and-local-dev.md`
|
|
80
82
|
- Getting-started interviews, strategy docs, onboarding flow: `references/onboarding.md`
|
|
81
83
|
- Primitive routes such as TTS, STT, music, overlays, background removal, product placement: `references/primitives.md`
|
|
84
|
+
- Complete REST API map and raw-HTTP conventions: `references/rest-api.md`. Load it only when the user asks for REST, an endpoint/schema, direct HTTP integration, or exhaustive API coverage. For the entire specification, follow its domain links and load every listed reference; do not preload them into ordinary director conversations.
|
|
82
85
|
|
|
83
86
|
## HyperFrames Skills — Load on Demand
|
|
84
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mevdragon/vidfarm-devcli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.14",
|
|
4
4
|
"description": "Local bridge for the Vidfarm Trackpad Editor. `vidfarm serve <template_id>` boots the FULL editor on localhost (disk-backed records/storage, free in-process render); edit composition.html on disk (Claude Code, Codex, etc.) and the browser live-morphs it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|