@mevdragon/vidfarm-devcli 0.2.7 → 0.2.9
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/.env.example +9 -0
- package/GETTING_STARTED.developers.md +1 -30
- package/README.md +22 -5
- package/SKILL.developer.md +464 -12
- package/auto-create-templates/AUTO_CREATE_TEMPLATES.md +475 -0
- package/auto-create-templates/extractor-system-prompt.md +113 -0
- package/auto-create-templates/production-graph.schema.json +276 -0
- package/auto-create-templates/runbook.md +140 -0
- package/auto-create-templates/template-plan.schema.json +230 -0
- package/auto-create-templates/template-planner-prompt.md +75 -0
- package/dist/src/account-pages-legacy.js +9064 -0
- package/dist/src/account-pages.js +41 -620
- package/dist/src/app.js +7173 -494
- package/dist/src/cli.js +525 -29
- package/dist/src/config.js +14 -7
- package/dist/src/context.js +51 -35
- package/dist/src/db.js +1049 -55
- package/dist/src/dev-app-legacy.js +693 -0
- package/dist/src/dev-app.js +4 -904
- package/dist/src/domain.js +1 -1
- package/dist/src/editor-chat-history.js +72 -0
- package/dist/src/editor-chat.js +202 -0
- package/dist/src/frontend/flockposter-cache-store.js +116 -0
- package/dist/src/frontend/homepage-client.js +114 -0
- package/dist/src/frontend/homepage-shared.js +3 -0
- package/dist/src/frontend/homepage-store.js +27 -0
- package/dist/src/frontend/homepage-view.js +147 -0
- package/dist/src/frontend/page-runtime-client.js +100 -0
- package/dist/src/frontend/page-runtime-store.js +8 -0
- package/dist/src/frontend/template-editor-chat.js +2261 -0
- package/dist/src/homepage.js +695 -339
- package/dist/src/lib/template-paths.js +10 -4
- package/dist/src/lib/template-style-options.js +95 -15
- package/dist/src/page-runtime.js +1 -0
- package/dist/src/page-shell.js +941 -0
- package/dist/src/primitive-context.js +163 -0
- package/dist/src/primitive-registry.js +340 -0
- package/dist/src/primitive-sdk.js +3 -0
- package/dist/src/primitives/remotion/html-image.js +28 -0
- package/dist/src/react-page-shell.js +34 -0
- package/dist/src/ready-post-schedule-component.js +1514 -0
- package/dist/src/registry.js +44 -18
- package/dist/src/runtime.js +6 -1
- package/dist/src/services/api-call-history.js +245 -0
- package/dist/src/services/auth.js +27 -9
- package/dist/src/services/billing.js +248 -9
- package/dist/src/services/chat-threads.js +88 -0
- package/dist/src/services/job-logs.js +10 -3
- package/dist/src/services/jobs.js +13 -2
- package/dist/src/services/providers.js +944 -55
- package/dist/src/services/rate-limits.js +236 -0
- package/dist/src/services/remotion.js +143 -16
- package/dist/src/services/storage.js +23 -8
- package/dist/src/services/template-certification.js +26 -3
- package/dist/src/services/template-loader.js +19 -1
- package/dist/src/services/template-sources.js +316 -7
- package/dist/src/template-editor-pages.js +2309 -0
- package/dist/src/template-editor-shell.js +1507 -0
- package/dist/src/worker.js +120 -22
- package/package.json +30 -6
- package/public/assets/homepage-app.js +54 -0
- package/public/assets/homepage-client-app.js +54 -0
- package/public/assets/page-runtime-client-app.js +68 -0
- package/dist/templates/template_0000/src/lib/images.js +0 -202
- package/dist/templates/template_0000/src/remotion/Root.js +0 -33
- package/dist/templates/template_0000/src/remotion/index.js +0 -3
- package/dist/templates/template_0000/src/sdk.js +0 -3
- package/dist/templates/template_0000/src/style-options.js +0 -51
- package/dist/templates/template_0000/src/template-dna.js +0 -9
- package/dist/templates/template_0000/src/template.js +0 -1441
- package/templates/template_0000/README.md +0 -77
- package/templates/template_0000/SKILL.md +0 -225
- package/templates/template_0000/assets/Abel-Regular.ttf +0 -0
- package/templates/template_0000/assets/DMSerifDisplay-Regular.ttf +0 -0
- package/templates/template_0000/assets/Montserrat[wght].ttf +0 -0
- package/templates/template_0000/assets/SourceCodePro[wght].ttf +0 -0
- package/templates/template_0000/assets/TikTokSans-SemiBold.ttf +0 -0
- package/templates/template_0000/assets/Yesteryear-Regular.ttf +0 -0
- package/templates/template_0000/composition.json +0 -11
- package/templates/template_0000/package.json +0 -28
- package/templates/template_0000/research/preview/.gitkeep +0 -1
- package/templates/template_0000/research/source_notes.md +0 -7
- package/templates/template_0000/src/lib/images.js +0 -202
- package/templates/template_0000/src/lib/images.ts +0 -241
- package/templates/template_0000/src/remotion/Root.js +0 -33
- package/templates/template_0000/src/remotion/Root.tsx +0 -75
- package/templates/template_0000/src/remotion/index.js +0 -3
- package/templates/template_0000/src/remotion/index.tsx +0 -4
- package/templates/template_0000/src/sdk.js +0 -3
- package/templates/template_0000/src/sdk.ts +0 -122
- package/templates/template_0000/src/style-options.js +0 -51
- package/templates/template_0000/src/style-options.ts +0 -60
- package/templates/template_0000/src/template-dna.js +0 -9
- package/templates/template_0000/src/template-dna.ts +0 -15
- package/templates/template_0000/src/template.js +0 -1441
- package/templates/template_0000/src/template.ts +0 -2042
- package/templates/template_0000/template.config.json +0 -21
- package/templates/template_0000/tsconfig.json +0 -19
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Vidfarm Template Planner Prompt
|
|
2
|
+
|
|
3
|
+
You are a senior Vidfarm template engineer.
|
|
4
|
+
|
|
5
|
+
Given a production graph extracted from a TikTok or short-form video format, produce a concrete Vidfarm template implementation plan. Return only JSON matching `template-plan.schema.json`.
|
|
6
|
+
|
|
7
|
+
The template must persist and actively use the source format's viral DNA. Viral DNA is not decorative metadata; it must steer proposal generation, script/plan generation, operation prompts, validation checks, and usage docs.
|
|
8
|
+
|
|
9
|
+
## Planning Rules
|
|
10
|
+
|
|
11
|
+
- Use the existing Vidfarm template contract: `defineTemplate`, `about`, `configSchema`, `operations`, and async `jobs`.
|
|
12
|
+
- Put the viral steering contract into `about.viral_dna`, `about.proposal_generator`, `about.skeleton_prompt`, sample prompts, template-local `SKILL.md`, and prompt constants/comments in `src/template.ts`.
|
|
13
|
+
- Include an explicit visual preservation decision. Preserve visual DNA tightly only when it supports the viral DNA; otherwise allow controlled visual variation.
|
|
14
|
+
- Public operations should be coarse-grained and customer-facing.
|
|
15
|
+
- Use Remotion for deterministic video assembly, captions, overlays, UI shells, timing, zooms, and final MP4 rendering when those are actually the right abstraction.
|
|
16
|
+
- Do not force Remotion for formats whose complexity ceiling is better handled by AI-native image/video generation with source references. Use Remotion only for final stitching, captions, timing wrappers, or end cards in those cases.
|
|
17
|
+
- Expose timing controls as operation inputs or config where users will reasonably want bulk variation: scene duration, slide duration, clip slot duration, caption timing mode, transition length, hold length, and total duration target.
|
|
18
|
+
- Prefer TikTok-native caption typography. When captions or overlays matter, default to TikTok Sans Semibold or the closest available local fallback, and make font/styling configurable when the source format depends on it.
|
|
19
|
+
- Use AI providers for text, image, video, TTS, STT, and layout analysis only where needed.
|
|
20
|
+
- Store generated media with `ctx.storage`; return artifact URLs, manifests, and render inputs.
|
|
21
|
+
- Include `about.proposal_generator`, `about.skeleton_prompt`, and `about.sample_prompts`.
|
|
22
|
+
- Include smoke test payloads for every operation.
|
|
23
|
+
- Include template-local `SKILL.md` requirements and route examples.
|
|
24
|
+
|
|
25
|
+
## Strategy Selection
|
|
26
|
+
|
|
27
|
+
Choose the simplest production architecture that can reproduce the format reliably:
|
|
28
|
+
|
|
29
|
+
- static one-image format: composition or image generation
|
|
30
|
+
- slideshow: manifest + frames + optional video render
|
|
31
|
+
- captioned app demo: source/user clip + caption/highlight renderer
|
|
32
|
+
- talking-head: STT/TTS + caption renderer + optional b-roll slots
|
|
33
|
+
- UGC ad: script + shot list + generated/user clips + Remotion edit
|
|
34
|
+
- animated story/explainer: script + storyboard + generated assets + narration + Remotion edit, or AI-native reference generation when visual continuity is too complex for deterministic assembly
|
|
35
|
+
- full AI character video: character cards -> image storyboard/keyframes -> generated scene videos -> Remotion stitch/captions/audio
|
|
36
|
+
- dense illustrated/poster/organic style: AI-native prompt/reference generation, optional Remotion wrapper only
|
|
37
|
+
|
|
38
|
+
## Required Output Content
|
|
39
|
+
|
|
40
|
+
The plan must include:
|
|
41
|
+
|
|
42
|
+
- template metadata
|
|
43
|
+
- viral steering rules and where they are persisted
|
|
44
|
+
- visual preservation importance and enforcement rules
|
|
45
|
+
- architecture fit decision with Remotion ceiling rationale
|
|
46
|
+
- character-consistency workflow and operations when the source is a recurring-character AI video
|
|
47
|
+
- provider requirements
|
|
48
|
+
- config schema fields
|
|
49
|
+
- timing controls and default duration rules
|
|
50
|
+
- caption font/style defaults and override rules
|
|
51
|
+
- operations and payload schemas
|
|
52
|
+
- job workflow steps
|
|
53
|
+
- artifact manifest shape
|
|
54
|
+
- Remotion composition plan
|
|
55
|
+
- AI-native prompt/reference plan when applicable
|
|
56
|
+
- character cards, storyboard frames, scene clips, and final stitched render artifact plan when applicable
|
|
57
|
+
- generation prompts needed by the template
|
|
58
|
+
- validation checklist
|
|
59
|
+
- implementation risks
|
|
60
|
+
- suggested directory/files to create
|
|
61
|
+
|
|
62
|
+
## Quality Bar
|
|
63
|
+
|
|
64
|
+
The plan is not complete unless another agent can implement it without asking what the source format does.
|
|
65
|
+
|
|
66
|
+
The plan is also not complete unless it explains how generated outputs will remain effective, not just visually similar.
|
|
67
|
+
|
|
68
|
+
For full AI character videos, include these operations unless there is a strong reason not to:
|
|
69
|
+
|
|
70
|
+
- `create_character_cards`
|
|
71
|
+
- `create_storyboard`
|
|
72
|
+
- `generate_scene_videos`
|
|
73
|
+
- `stitch_video`
|
|
74
|
+
|
|
75
|
+
Each operation should be resumable. The caller should be able to regenerate only the character cards, only selected storyboard scenes, only selected scene videos, or only the final stitch.
|