@mevdragon/vidfarm-devcli 0.2.8 → 0.2.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/.env.example +9 -0
- package/GETTING_STARTED.developers.md +1 -26
- package/README.md +3 -0
- package/SKILL.developer.md +419 -8
- 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 +6627 -244
- package/dist/src/cli.js +386 -26
- package/dist/src/config.js +12 -2
- package/dist/src/context.js +35 -35
- package/dist/src/db.js +1016 -53
- 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 -371
- 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 +36 -17
- package/dist/src/runtime.js +6 -1
- package/dist/src/services/api-call-history.js +245 -0
- package/dist/src/services/auth.js +25 -3
- package/dist/src/services/billing.js +248 -9
- package/dist/src/services/chat-threads.js +88 -0
- package/dist/src/services/job-logs.js +14 -7
- package/dist/src/services/jobs.js +13 -2
- package/dist/src/services/providers.js +552 -133
- package/dist/src/services/rate-limits.js +236 -0
- package/dist/src/services/remotion.js +143 -16
- package/dist/src/services/storage.js +10 -8
- package/dist/src/services/template-certification.js +11 -2
- package/dist/src/services/template-loader.js +3 -1
- package/dist/src/services/template-sources.js +68 -3
- 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 +27 -4
- 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/vidfarm_template_0000/src/lib/images.js +0 -202
- package/dist/templates/vidfarm_template_0000/src/remotion/Root.js +0 -34
- package/dist/templates/vidfarm_template_0000/src/remotion/index.js +0 -3
- package/dist/templates/vidfarm_template_0000/src/sdk.js +0 -3
- package/dist/templates/vidfarm_template_0000/src/style-options.js +0 -51
- package/dist/templates/vidfarm_template_0000/src/template-dna.js +0 -9
- package/dist/templates/vidfarm_template_0000/src/template.js +0 -1447
- package/templates/vidfarm_template_0000/README.md +0 -100
- package/templates/vidfarm_template_0000/SKILL.md +0 -225
- package/templates/vidfarm_template_0000/assets/Abel-Regular.ttf +0 -0
- package/templates/vidfarm_template_0000/assets/DMSerifDisplay-Regular.ttf +0 -0
- package/templates/vidfarm_template_0000/assets/Montserrat[wght].ttf +0 -0
- package/templates/vidfarm_template_0000/assets/SourceCodePro[wght].ttf +0 -0
- package/templates/vidfarm_template_0000/assets/TikTokSans-SemiBold.ttf +0 -0
- package/templates/vidfarm_template_0000/assets/Yesteryear-Regular.ttf +0 -0
- package/templates/vidfarm_template_0000/composition.json +0 -11
- package/templates/vidfarm_template_0000/package.json +0 -27
- package/templates/vidfarm_template_0000/research/preview/.gitkeep +0 -1
- package/templates/vidfarm_template_0000/research/source_notes.md +0 -7
- package/templates/vidfarm_template_0000/src/lib/images.js +0 -202
- package/templates/vidfarm_template_0000/src/lib/images.ts +0 -241
- package/templates/vidfarm_template_0000/src/remotion/Root.js +0 -33
- package/templates/vidfarm_template_0000/src/remotion/Root.tsx +0 -75
- package/templates/vidfarm_template_0000/src/remotion/index.js +0 -3
- package/templates/vidfarm_template_0000/src/remotion/index.tsx +0 -4
- package/templates/vidfarm_template_0000/src/sdk.js +0 -3
- package/templates/vidfarm_template_0000/src/sdk.ts +0 -140
- package/templates/vidfarm_template_0000/src/style-options.js +0 -51
- package/templates/vidfarm_template_0000/src/style-options.ts +0 -60
- package/templates/vidfarm_template_0000/src/template-dna.js +0 -9
- package/templates/vidfarm_template_0000/src/template-dna.ts +0 -15
- package/templates/vidfarm_template_0000/src/template.js +0 -1447
- package/templates/vidfarm_template_0000/src/template.ts +0 -2049
- package/templates/vidfarm_template_0000/template.config.json +0 -21
- package/templates/vidfarm_template_0000/tmp/solobacterium-moorei-slideshow.request.json +0 -31
- package/templates/vidfarm_template_0000/tsconfig.json +0 -19
package/.env.example
CHANGED
|
@@ -6,10 +6,19 @@ OPENROUTER_API_KEY=""
|
|
|
6
6
|
GEMINI_API_KEY=""
|
|
7
7
|
PERPLEXITY_API_KEY=""
|
|
8
8
|
|
|
9
|
+
# Optional. Production CDK wires these automatically for the EC2 app and ZIP Lambda.
|
|
10
|
+
VIDFARM_ZIP_LAMBDA_URL=""
|
|
11
|
+
VIDFARM_ZIP_LAMBDA_SECRET=""
|
|
12
|
+
VIDFARM_BILLING_URL=""
|
|
13
|
+
VIDFARM_BILLING_SECRET=""
|
|
14
|
+
VIDFARM_RATE_LIMITS_TABLE_NAME=""
|
|
15
|
+
|
|
9
16
|
# Optional when calling a hosted Vidfarm API directly.
|
|
10
17
|
VIDFARM_USER_ID=""
|
|
11
18
|
VIDFARM_API_KEY=""
|
|
12
19
|
|
|
13
20
|
# Optional local overrides. The CLI will choose sensible local defaults.
|
|
14
21
|
PUBLIC_BASE_URL="http://localhost:3310"
|
|
22
|
+
# Optional public browser-facing chat endpoint. Leave empty locally unless you want the UI to hit a separate chat host directly.
|
|
23
|
+
PUBLIC_EDITOR_CHAT_URL=""
|
|
15
24
|
REMOTION_MODE="local"
|
|
@@ -46,7 +46,7 @@ https://calendly.com/zoom-gtm/creative-director-interviews
|
|
|
46
46
|
|
|
47
47
|
0. Tell your manager your email so he can whitelist you access to Vidfarm. After he confirms you have access, login at https://vidfarm.cloud.zoomgtm.com
|
|
48
48
|
|
|
49
|
-
1. Open VSCode in a new project
|
|
49
|
+
1. Open VSCode in a new project and create a new project folder "Vidfarm-Developer"
|
|
50
50
|
|
|
51
51
|
2. Open terminal and login to github cli and npm cli (ask ai/codex if you need help). ask your manager if they gave you npm access to "vidfarm-devcli" yet.
|
|
52
52
|
|
|
@@ -85,28 +85,3 @@ That will populate with a reference folder of what a template code looks like. W
|
|
|
85
85
|
8. Create a new folder beside src called `drafts/` which is where we will put messy files when needed.
|
|
86
86
|
|
|
87
87
|
9. Now find an easy winning format from https://winning-formats-gallery-tiktok.cloud.zoomgtm.com/ and save the image to your drafts/ folder. then tell Codex to look at that image (right click, copy relative path, paste to codex), then tell codex please make a new template based on the image.
|
|
88
|
-
|
|
89
|
-
## Shipping Updates
|
|
90
|
-
|
|
91
|
-
For a brand-new template, register the source once.
|
|
92
|
-
|
|
93
|
-
For an update to an already-registered template:
|
|
94
|
-
|
|
95
|
-
1. Push the exact commit to GitHub.
|
|
96
|
-
2. Submit that exact commit SHA to Vidfarm for review.
|
|
97
|
-
3. Wait for platform admin approval and activation.
|
|
98
|
-
|
|
99
|
-
Developer CLI example:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
node dist/src/cli.js publish-update-hosted \
|
|
103
|
-
--env-file .env \
|
|
104
|
-
--template-id YOUR_TEMPLATE_ID \
|
|
105
|
-
--slug-id vidfarm_template_your_slug \
|
|
106
|
-
--repo-url https://github.com/your-org/your-repo.git \
|
|
107
|
-
--branch main \
|
|
108
|
-
--template-module-path src/vidfarm_template_your_slug/src/template.ts \
|
|
109
|
-
--commit-sha YOUR_GITHUB_COMMIT_SHA
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
This does not make the template live. The CLI packages that exact commit locally, uploads the artifact to Vidfarm-managed S3, and creates or refreshes the reviewable release so a platform admin can approve and activate it.
|
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@ npx @mevdragon/vidfarm-devcli dev --port 3310 --reset
|
|
|
30
30
|
npx @mevdragon/vidfarm-devcli session
|
|
31
31
|
npx @mevdragon/vidfarm-devcli validate-template --template-id template_0000
|
|
32
32
|
npx @mevdragon/vidfarm-devcli copy-reference-template --template-dir ./src/vidfarm_template_0000
|
|
33
|
+
npx @mevdragon/vidfarm-devcli autocreate-template ./drafts/my_format ./templates/vidfarm_template_my_format
|
|
33
34
|
npx @mevdragon/vidfarm-devcli generate-template --slug-id template_0001 --template-dir ./templates/vidfarm_template_0001
|
|
34
35
|
npx @mevdragon/vidfarm-devcli analyze-viral-dna --template-dir ./templates/vidfarm_template_0001
|
|
35
36
|
npx @mevdragon/vidfarm-devcli analyze-visual-dna --template-dir ./templates/vidfarm_template_0001
|
|
@@ -38,6 +39,8 @@ npx @mevdragon/vidfarm-devcli presign-preview-media --file ./drafts/preview/exam
|
|
|
38
39
|
|
|
39
40
|
After install, the package exposes both `vidfarm` and `vidfarm-devcli` as local binaries.
|
|
40
41
|
|
|
42
|
+
`autocreate-template` prepares the auto-create harness run folder, stages media from the input path, snapshots the current harness files, scaffolds the output template, and writes an agent handoff prompt at `auto-create-templates/runs/<run_id>/agent_prompt.md`. Keep improving `auto-create-templates/AUTO_CREATE_TEMPLATES.md`; each new run uses the current harness and stores a per-run snapshot for traceability.
|
|
43
|
+
|
|
41
44
|
## What The Local CLI Does
|
|
42
45
|
|
|
43
46
|
The local CLI runs the same template contract used by the hosted platform, but with local-first defaults:
|