@mevdragon/vidfarm-devcli 0.2.14 → 0.3.1

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.
Files changed (204) hide show
  1. package/README.md +11 -4
  2. package/SKILL.director.md +100 -0
  3. package/SKILL.platform.md +66 -6
  4. package/dist/src/cli.js +135 -1527
  5. package/package.json +5 -24
  6. package/.env.example +0 -60
  7. package/auto-create-hyperframe-templates/AUTO_CREATE_HYPERFRAME_TEMPLATES.md +0 -275
  8. package/auto-create-hyperframe-templates/extractor-system-prompt.md +0 -128
  9. package/auto-create-hyperframe-templates/input-manifest.schema.json +0 -56
  10. package/auto-create-hyperframe-templates/lambda-memory-estimator.md +0 -118
  11. package/auto-create-hyperframe-templates/production-graph.schema.json +0 -314
  12. package/auto-create-hyperframe-templates/runbook.md +0 -198
  13. package/auto-create-hyperframe-templates/scripts/create-hyperframe-template.mjs +0 -368
  14. package/auto-create-hyperframe-templates/template-plan.schema.json +0 -311
  15. package/auto-create-hyperframe-templates/template-planner-prompt.md +0 -144
  16. package/auto-create-templates/AUTO_CREATE_TEMPLATES.md +0 -599
  17. package/auto-create-templates/extractor-system-prompt.md +0 -119
  18. package/auto-create-templates/production-graph.schema.json +0 -276
  19. package/auto-create-templates/runbook.md +0 -140
  20. package/auto-create-templates/template-plan.schema.json +0 -301
  21. package/auto-create-templates/template-planner-prompt.md +0 -137
  22. package/dist/src/account-pages-legacy.js +0 -9338
  23. package/dist/src/account-pages-legacy.js.map +0 -1
  24. package/dist/src/account-pages.js +0 -52
  25. package/dist/src/account-pages.js.map +0 -1
  26. package/dist/src/app.js +0 -13711
  27. package/dist/src/app.js.map +0 -1
  28. package/dist/src/cli.js.map +0 -1
  29. package/dist/src/composition-runtime.js +0 -581
  30. package/dist/src/composition-runtime.js.map +0 -1
  31. package/dist/src/config.js +0 -140
  32. package/dist/src/config.js.map +0 -1
  33. package/dist/src/context.js +0 -492
  34. package/dist/src/context.js.map +0 -1
  35. package/dist/src/dev-app-legacy.js +0 -694
  36. package/dist/src/dev-app-legacy.js.map +0 -1
  37. package/dist/src/dev-app.js +0 -6
  38. package/dist/src/dev-app.js.map +0 -1
  39. package/dist/src/dev-serve.js.map +0 -1
  40. package/dist/src/domain.js +0 -2
  41. package/dist/src/domain.js.map +0 -1
  42. package/dist/src/editor-chat-history.js +0 -82
  43. package/dist/src/editor-chat-history.js.map +0 -1
  44. package/dist/src/editor-chat.js +0 -312
  45. package/dist/src/editor-chat.js.map +0 -1
  46. package/dist/src/editor-dark-theme.js +0 -1128
  47. package/dist/src/editor-dark-theme.js.map +0 -1
  48. package/dist/src/frontend/flockposter-cache-store.js +0 -124
  49. package/dist/src/frontend/flockposter-cache-store.js.map +0 -1
  50. package/dist/src/frontend/homepage-client.js +0 -117
  51. package/dist/src/frontend/homepage-client.js.map +0 -1
  52. package/dist/src/frontend/homepage-shared.js +0 -4
  53. package/dist/src/frontend/homepage-shared.js.map +0 -1
  54. package/dist/src/frontend/homepage-store.js +0 -28
  55. package/dist/src/frontend/homepage-store.js.map +0 -1
  56. package/dist/src/frontend/homepage-view.js +0 -260
  57. package/dist/src/frontend/homepage-view.js.map +0 -1
  58. package/dist/src/frontend/page-runtime-client.js +0 -124
  59. package/dist/src/frontend/page-runtime-client.js.map +0 -1
  60. package/dist/src/frontend/page-runtime-store.js +0 -9
  61. package/dist/src/frontend/page-runtime-store.js.map +0 -1
  62. package/dist/src/frontend/sentry.js +0 -42
  63. package/dist/src/frontend/sentry.js.map +0 -1
  64. package/dist/src/frontend/template-editor-chat.js +0 -3760
  65. package/dist/src/frontend/template-editor-chat.js.map +0 -1
  66. package/dist/src/help-page.js +0 -333
  67. package/dist/src/help-page.js.map +0 -1
  68. package/dist/src/homepage.js +0 -919
  69. package/dist/src/homepage.js.map +0 -1
  70. package/dist/src/hyperframes/composition.js +0 -180
  71. package/dist/src/hyperframes/composition.js.map +0 -1
  72. package/dist/src/index.js +0 -16
  73. package/dist/src/index.js.map +0 -1
  74. package/dist/src/instrument.js +0 -30
  75. package/dist/src/instrument.js.map +0 -1
  76. package/dist/src/lib/crypto.js +0 -45
  77. package/dist/src/lib/crypto.js.map +0 -1
  78. package/dist/src/lib/dev-log.js +0 -54
  79. package/dist/src/lib/dev-log.js.map +0 -1
  80. package/dist/src/lib/display-name.js +0 -11
  81. package/dist/src/lib/display-name.js.map +0 -1
  82. package/dist/src/lib/ids.js +0 -24
  83. package/dist/src/lib/ids.js.map +0 -1
  84. package/dist/src/lib/images.js +0 -19
  85. package/dist/src/lib/images.js.map +0 -1
  86. package/dist/src/lib/json.js +0 -15
  87. package/dist/src/lib/json.js.map +0 -1
  88. package/dist/src/lib/template-dna.js +0 -543
  89. package/dist/src/lib/template-dna.js.map +0 -1
  90. package/dist/src/lib/template-paths.js +0 -28
  91. package/dist/src/lib/template-paths.js.map +0 -1
  92. package/dist/src/lib/template-style-options.js +0 -203
  93. package/dist/src/lib/template-style-options.js.map +0 -1
  94. package/dist/src/lib/time.js +0 -7
  95. package/dist/src/lib/time.js.map +0 -1
  96. package/dist/src/lib/video-quality-harness.js +0 -60
  97. package/dist/src/lib/video-quality-harness.js.map +0 -1
  98. package/dist/src/page-runtime.js +0 -2
  99. package/dist/src/page-runtime.js.map +0 -1
  100. package/dist/src/page-shell.js +0 -1315
  101. package/dist/src/page-shell.js.map +0 -1
  102. package/dist/src/primitive-context.js +0 -299
  103. package/dist/src/primitive-context.js.map +0 -1
  104. package/dist/src/primitive-registry.js +0 -2181
  105. package/dist/src/primitive-registry.js.map +0 -1
  106. package/dist/src/primitive-sdk.js +0 -4
  107. package/dist/src/primitive-sdk.js.map +0 -1
  108. package/dist/src/primitives/remotion/html-image.js +0 -30
  109. package/dist/src/primitives/remotion/html-image.js.map +0 -1
  110. package/dist/src/primitives/remotion/media-slideshow.js +0 -60
  111. package/dist/src/primitives/remotion/media-slideshow.js.map +0 -1
  112. package/dist/src/react-page-shell.js +0 -35
  113. package/dist/src/react-page-shell.js.map +0 -1
  114. package/dist/src/ready-post-schedule-component.js +0 -1515
  115. package/dist/src/ready-post-schedule-component.js.map +0 -1
  116. package/dist/src/registry.js +0 -296
  117. package/dist/src/registry.js.map +0 -1
  118. package/dist/src/runtime.js +0 -31
  119. package/dist/src/runtime.js.map +0 -1
  120. package/dist/src/services/api-call-history.js +0 -249
  121. package/dist/src/services/api-call-history.js.map +0 -1
  122. package/dist/src/services/auth.js +0 -152
  123. package/dist/src/services/auth.js.map +0 -1
  124. package/dist/src/services/billing.js +0 -231
  125. package/dist/src/services/billing.js.map +0 -1
  126. package/dist/src/services/chat-threads.js +0 -92
  127. package/dist/src/services/chat-threads.js.map +0 -1
  128. package/dist/src/services/fork-access.js +0 -93
  129. package/dist/src/services/fork-access.js.map +0 -1
  130. package/dist/src/services/fork-manifest.js +0 -43
  131. package/dist/src/services/fork-manifest.js.map +0 -1
  132. package/dist/src/services/ghostcut.js +0 -132
  133. package/dist/src/services/ghostcut.js.map +0 -1
  134. package/dist/src/services/hyperframes.js +0 -1014
  135. package/dist/src/services/hyperframes.js.map +0 -1
  136. package/dist/src/services/job-capacity.js +0 -14
  137. package/dist/src/services/job-capacity.js.map +0 -1
  138. package/dist/src/services/job-logs.js +0 -197
  139. package/dist/src/services/job-logs.js.map +0 -1
  140. package/dist/src/services/jobs.js +0 -136
  141. package/dist/src/services/jobs.js.map +0 -1
  142. package/dist/src/services/media-processing.js +0 -743
  143. package/dist/src/services/media-processing.js.map +0 -1
  144. package/dist/src/services/primitive-media-lambda.js +0 -280
  145. package/dist/src/services/primitive-media-lambda.js.map +0 -1
  146. package/dist/src/services/providers.js +0 -2870
  147. package/dist/src/services/providers.js.map +0 -1
  148. package/dist/src/services/rate-limits.js +0 -237
  149. package/dist/src/services/rate-limits.js.map +0 -1
  150. package/dist/src/services/remotion.js +0 -688
  151. package/dist/src/services/remotion.js.map +0 -1
  152. package/dist/src/services/serverless-auth.js +0 -374
  153. package/dist/src/services/serverless-auth.js.map +0 -1
  154. package/dist/src/services/serverless-jobs.js +0 -1074
  155. package/dist/src/services/serverless-jobs.js.map +0 -1
  156. package/dist/src/services/serverless-provider-keys.js +0 -401
  157. package/dist/src/services/serverless-provider-keys.js.map +0 -1
  158. package/dist/src/services/serverless-records.js +0 -1088
  159. package/dist/src/services/serverless-records.js.map +0 -1
  160. package/dist/src/services/serverless-template-configs.js +0 -67
  161. package/dist/src/services/serverless-template-configs.js.map +0 -1
  162. package/dist/src/services/storage.js +0 -383
  163. package/dist/src/services/storage.js.map +0 -1
  164. package/dist/src/services/template-certification.js +0 -475
  165. package/dist/src/services/template-certification.js.map +0 -1
  166. package/dist/src/services/template-loader.js +0 -99
  167. package/dist/src/services/template-loader.js.map +0 -1
  168. package/dist/src/services/template-runtime-bundles.js +0 -217
  169. package/dist/src/services/template-runtime-bundles.js.map +0 -1
  170. package/dist/src/services/template-sources.js +0 -1017
  171. package/dist/src/services/template-sources.js.map +0 -1
  172. package/dist/src/services/video-normalization.js +0 -2
  173. package/dist/src/services/video-normalization.js.map +0 -1
  174. package/dist/src/services/webhooks.js +0 -62
  175. package/dist/src/services/webhooks.js.map +0 -1
  176. package/dist/src/template-editor-pages.js +0 -2491
  177. package/dist/src/template-editor-pages.js.map +0 -1
  178. package/dist/src/template-editor-shell.js +0 -2702
  179. package/dist/src/template-editor-shell.js.map +0 -1
  180. package/dist/src/template-sdk.js +0 -4
  181. package/dist/src/template-sdk.js.map +0 -1
  182. package/dist/src/worker.js +0 -17
  183. package/dist/src/worker.js.map +0 -1
  184. package/public/assets/homepage-app.js +0 -54
  185. package/public/assets/homepage-client-app.js +0 -80
  186. package/public/assets/page-runtime-client-app.js +0 -94
  187. package/readme.secret.md +0 -89
  188. package/templates/vidfarm_template_0000/README.md +0 -106
  189. package/templates/vidfarm_template_0000/SKILL.md +0 -266
  190. package/templates/vidfarm_template_0000/assets/Abel-Regular.ttf +0 -0
  191. package/templates/vidfarm_template_0000/assets/DMSerifDisplay-Regular.ttf +0 -0
  192. package/templates/vidfarm_template_0000/assets/Montserrat[wght].ttf +0 -0
  193. package/templates/vidfarm_template_0000/assets/SourceCodePro[wght].ttf +0 -0
  194. package/templates/vidfarm_template_0000/assets/TikTokSans-SemiBold.ttf +0 -0
  195. package/templates/vidfarm_template_0000/assets/Yesteryear-Regular.ttf +0 -0
  196. package/templates/vidfarm_template_0000/composition.json +0 -11
  197. package/templates/vidfarm_template_0000/src/lib/images.js +0 -221
  198. package/templates/vidfarm_template_0000/src/remotion/Root.js +0 -33
  199. package/templates/vidfarm_template_0000/src/remotion/index.js +0 -3
  200. package/templates/vidfarm_template_0000/src/sdk.js +0 -3
  201. package/templates/vidfarm_template_0000/src/style-options.js +0 -200
  202. package/templates/vidfarm_template_0000/src/template-dna.js +0 -9
  203. package/templates/vidfarm_template_0000/src/template.js +0 -1566
  204. package/templates/vidfarm_template_0000/template.config.json +0 -21
@@ -1,203 +0,0 @@
1
- export const CAPTION_STANDARD_VERSION = "2026-05-31";
2
- export const TIKTOK_CAPTION_FONT_OPTIONS = [
3
- {
4
- id: "tiktok_sans_semibold",
5
- label: "TikTok Sans SemiBold",
6
- family: "TikTok Sans",
7
- weight: 600,
8
- assetFile: "TikTokSans-SemiBold.ttf",
9
- fontsourceFile: "@fontsource/tiktok-sans/files/tiktok-sans-latin-600-normal.woff",
10
- source: "fontsource_or_bundled_asset",
11
- role: "tiktok_native_default"
12
- },
13
- {
14
- id: "montserrat_semibold",
15
- label: "Montserrat SemiBold",
16
- family: "Montserrat",
17
- weight: 600,
18
- assetFile: "Montserrat[wght].ttf",
19
- fontsourceFile: "@fontsource/montserrat/files/montserrat-latin-600-normal.woff",
20
- source: "fontsource_or_bundled_asset",
21
- role: "rounded_modern_caption"
22
- },
23
- {
24
- id: "source_code_pro_bold",
25
- label: "Source Code Pro Bold",
26
- family: "Source Code Pro",
27
- weight: 700,
28
- assetFile: "SourceCodePro[wght].ttf",
29
- fontsourceFile: "@fontsource/source-code-pro/files/source-code-pro-latin-700-normal.woff",
30
- source: "fontsource_or_bundled_asset",
31
- role: "monospace_caption"
32
- },
33
- {
34
- id: "yesteryear",
35
- label: "Yesteryear",
36
- family: "Yesteryear",
37
- weight: 400,
38
- assetFile: "Yesteryear-Regular.ttf",
39
- source: "bundled_asset",
40
- role: "script_caption"
41
- },
42
- {
43
- id: "georgia_bold",
44
- label: "Georgia-style Bold",
45
- family: "Libre Baskerville",
46
- weight: 700,
47
- fontsourceFile: "@fontsource/libre-baskerville/files/libre-baskerville-latin-700-normal.woff",
48
- source: "fontsource",
49
- role: "serif_caption"
50
- },
51
- {
52
- id: "abel",
53
- label: "Abel",
54
- family: "Abel",
55
- weight: 400,
56
- assetFile: "Abel-Regular.ttf",
57
- source: "bundled_asset",
58
- role: "condensed_caption"
59
- },
60
- {
61
- id: "source_code_pro",
62
- label: "Source Code Pro",
63
- family: "Source Code Pro",
64
- weight: 700,
65
- assetFile: "SourceCodePro[wght].ttf",
66
- fontsourceFile: "@fontsource/source-code-pro/files/source-code-pro-latin-700-normal.woff",
67
- source: "fontsource_or_bundled_asset",
68
- role: "legacy_alias",
69
- aliasOf: "source_code_pro_bold"
70
- },
71
- {
72
- id: "montserrat",
73
- label: "Montserrat",
74
- family: "Montserrat",
75
- weight: 600,
76
- assetFile: "Montserrat[wght].ttf",
77
- fontsourceFile: "@fontsource/montserrat/files/montserrat-latin-600-normal.woff",
78
- source: "fontsource_or_bundled_asset",
79
- role: "legacy_alias",
80
- aliasOf: "montserrat_semibold"
81
- }
82
- ];
83
- export const STARTER_TEMPLATE_FONT_OPTIONS = TIKTOK_CAPTION_FONT_OPTIONS;
84
- export const TIKTOK_TEXT_BACKGROUND_COLOR_OPTIONS = [
85
- { id: "black", label: "Black", hex: "#000000" },
86
- { id: "red", label: "Red", hex: "#EA403F" },
87
- { id: "orange", label: "Orange", hex: "#FF933D" },
88
- { id: "yellow", label: "Yellow", hex: "#F2CD46" },
89
- { id: "lime_green", label: "Lime Green", hex: "#78C25E" },
90
- { id: "teal", label: "Teal", hex: "#77C8A6" },
91
- { id: "light_blue", label: "Light Blue", hex: "#3496F0" },
92
- { id: "dark_blue", label: "Dark Blue", hex: "#3496F0" },
93
- { id: "violet", label: "Violet", hex: "#5756D4" },
94
- { id: "pink", label: "Pink", hex: "#F7D7E9" },
95
- { id: "brown", label: "Brown", hex: "#A3895B" },
96
- { id: "dark_green", label: "Dark Green", hex: "#32523B" },
97
- { id: "blue_gray", label: "Blue Gray", hex: "#2F688C" },
98
- { id: "light_gray", label: "Light Gray", hex: "#92979E" },
99
- { id: "dark_gray", label: "Dark Gray", hex: "#333333" }
100
- ];
101
- export const STARTER_TEMPLATE_TEXT_BACKGROUND_COLOR_OPTIONS = TIKTOK_TEXT_BACKGROUND_COLOR_OPTIONS;
102
- export const TIKTOK_TEXT_BACKGROUND_RENDERING = {
103
- mode: "inline_highlight_chip",
104
- rule: "Text background colors must render as inline highlight chips that hug the text only.",
105
- padding: "Use visible per-line padding around measured glyph bounds; do not render full-width bars, paragraph washes, or loose caption boxes.",
106
- shape: "Use slightly curved corners, similar to native TikTok text highlight chips.",
107
- implementation: "Wrap and measure the full caption block first. For every rendered line, draw one chip from that line's measured text bounds plus padding. The chip width must vary with the text line; it must not use the caption block width.",
108
- strengths: {
109
- none: {
110
- paddingX: 0,
111
- paddingY: 0,
112
- radius: 0,
113
- opacity: 0
114
- },
115
- subtle: {
116
- paddingX: 14,
117
- paddingY: 8,
118
- radius: 9,
119
- opacity: 0.72
120
- },
121
- standard: {
122
- paddingX: 20,
123
- paddingY: 12,
124
- radius: 12,
125
- opacity: 0.86
126
- },
127
- strong: {
128
- paddingX: 26,
129
- paddingY: 14,
130
- radius: 14,
131
- opacity: 0.94
132
- }
133
- }
134
- };
135
- export const TIKTOK_CAPTION_SHADOWS = {
136
- native_black_shadow: {
137
- mode: "radial_micro_shadow",
138
- rule: "Native TikTok-style white captions need a soft black halo/outline around the glyphs, not a strong directional web drop shadow.",
139
- cssTextShadow: "0 0 2px rgba(0,0,0,0.85), 0 0 4px rgba(0,0,0,0.72), 0 0 8px rgba(0,0,0,0.48)",
140
- sharpCompositing: "Build shadow layers from the full multiline text block alpha mask, blur them, and composite them centered at the text block origin. Do not offset the shadow down/right except for source formats that explicitly require directional lighting.",
141
- maxDirectionalOffsetPx: 1,
142
- validation: "On a solid mid-gray background, the caption edge should darken evenly around all sides of each glyph. A shadow visible mainly below the text is a failure."
143
- },
144
- none: {
145
- mode: "none",
146
- rule: "Use no shadow only when the source format uses dark text on a light inline chip or another high-contrast container."
147
- }
148
- };
149
- export const TIKTOK_CAPTION_RENDERING_RULES = {
150
- multilineText: {
151
- rule: "Render each caption as one multiline text block after wrapping, not as independently trimmed per-line text images.",
152
- reason: "Per-line trimmed rendering makes line height, trim bounds, and shadow placement vary per line, which can make shorter wrapped lines look heavier or larger at the same nominal font size.",
153
- implementation: "Choose the font size, line height, wrap width, and line breaks once for the whole caption; render the full block on a stable canvas; apply the native radial shadow/outline to the whole text block; then place optional line chips from measured line bounds.",
154
- validation: "Test a wrapped caption with one short line and one long line; both lines must keep the same glyph scale, weight, baseline rhythm, and shadow strength."
155
- },
156
- inlineHighlightChips: {
157
- rule: "If a caption has a text background color, render inline highlight chips per wrapped line from measured glyph bounds.",
158
- implementation: "Draw chips behind each measured line before the shadow and text layers. Chip geometry comes from measured line width plus standard padding; never draw a full-width caption panel or one rectangle behind the whole paragraph.",
159
- validation: "Test a two-line caption where one line is much shorter. The shorter line's background must be visibly shorter too."
160
- },
161
- nativeShadow: {
162
- rule: "Use a radial black halo/outline for native white TikTok captions. Avoid one-direction CSS or canvas shadows such as only 0 8px 24px.",
163
- implementation: "Use multiple centered low-radius shadows or blurred alpha masks around the full multiline text block. Keep directional offsets at 0-1 px.",
164
- validation: "The shadow must radiate around left, right, top, and bottom glyph edges; it must not read as a web card drop shadow."
165
- },
166
- tiktokSansSizing: {
167
- rule: "Tune TikTok Sans wrapping, font size, and line spacing separately from Montserrat or generic sans defaults.",
168
- reason: "TikTok Sans metrics differ enough from Montserrat that reused sizing assumptions can produce wrong wrap points, cramped leading, or off-weight captions."
169
- }
170
- };
171
- export const TIKTOK_CAPTION_STYLE_PRESETS = [
172
- {
173
- id: "tiktok_native_white",
174
- label: "TikTok Native White",
175
- fontId: "tiktok_sans_semibold",
176
- fill: "#ffffff",
177
- backgroundColorId: "none",
178
- shadow: "native_black_shadow"
179
- },
180
- {
181
- id: "tiktok_native_chip",
182
- label: "TikTok Native Color Chip",
183
- fontId: "tiktok_sans_semibold",
184
- fill: "#ffffff",
185
- defaultBackgroundColorId: "red",
186
- backgroundRendering: "inline_highlight_chip",
187
- chipStrength: "standard",
188
- shadow: "native_black_shadow"
189
- },
190
- {
191
- id: "tiktok_editor_gray",
192
- label: "TikTok Editor Gray",
193
- fontId: "tiktok_sans_semibold",
194
- fill: "#111111",
195
- defaultBackgroundColorId: "light_gray",
196
- backgroundRendering: "inline_highlight_chip",
197
- chipStrength: "subtle",
198
- shadow: "none"
199
- }
200
- ];
201
- export const TIKTOK_CAPTION_FONT_IDS = TIKTOK_CAPTION_FONT_OPTIONS.map((option) => option.id);
202
- export const TIKTOK_TEXT_BACKGROUND_COLOR_IDS = TIKTOK_TEXT_BACKGROUND_COLOR_OPTIONS.map((option) => option.id);
203
- //# sourceMappingURL=template-style-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-style-options.js","sourceRoot":"","sources":["../../../src/lib/template-style-options.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAErD,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC;QACE,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,sBAAsB;QAC7B,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,yBAAyB;QACpC,cAAc,EAAE,iEAAiE;QACjF,MAAM,EAAE,6BAA6B;QACrC,IAAI,EAAE,uBAAuB;KAC9B;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,qBAAqB;QAC5B,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Q;QACtB,MAAM,EAAE,MAAM;KACf;CACO,CAAC;AAOX,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC,GAAG,CACpE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAC6B,CAAC;AAErD,MAAM,CAAC,MAAM,gCAAgC,GAAG,oCAAoC,CAAC,GAAG,CACtF,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAC6C,CAAC"}
@@ -1,7 +0,0 @@
1
- export function nowIso() {
2
- return new Date().toISOString();
3
- }
4
- export function addSeconds(date, seconds) {
5
- return new Date(date.getTime() + seconds * 1000).toISOString();
6
- }
7
- //# sourceMappingURL=time.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"time.js","sourceRoot":"","sources":["../../../src/lib/time.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM;IACpB,OAAO,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAU,EAAE,OAAe;IACpD,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AACjE,CAAC"}
@@ -1,60 +0,0 @@
1
- export const VIDFARM_QUALITY_STANDARD_VERSION = "2026-06-29";
2
- export const VIDFARM_CAPTION_FONT_POLICY = {
3
- defaultRule: "Caption and overlay text must use an approved font ID unless the template documents a source-format reason for a custom font.",
4
- approvedFontIds: [
5
- "tiktok_sans_semibold",
6
- "montserrat_semibold",
7
- "source_code_pro_bold",
8
- "georgia_bold",
9
- "abel"
10
- ],
11
- legacyAliases: ["montserrat", "source_code_pro"],
12
- defaultCaptionFontId: "tiktok_sans_semibold",
13
- customFontException: "Use custom fonts only for source-critical poster, UI, or brand typography. The template plan and SKILL.md must name the font, asset path, role, fallback, and why an approved font would damage the format.",
14
- generatedTextRule: "Do not ask image or video models to render important captions, UI labels, prices, claims, or CTA text unless the entire source format is AI-native poster art and OCR/readability checks are part of the harness.",
15
- deterministicTextRule: "For TikTok captions, subtitles, app UI, product claims, prices, offers, and CTAs, generate clean background media first and composite text deterministically with Remotion, SVG, canvas, or Sharp."
16
- };
17
- export const VIDFARM_OUTPUT_QUALITY_HARNESS = {
18
- objective: "Move quality control from prompt taste into explicit preflight, composition, final-output, and retry gates.",
19
- requiredReportFields: [
20
- "viralCompliance",
21
- "visualPreservation",
22
- "fontPolicy",
23
- "captionReadability",
24
- "safeArea",
25
- "assetIntegrity",
26
- "finalOutput",
27
- "retryPlan"
28
- ],
29
- preflightChecks: [
30
- "The first-frame hook is stated as exact on-screen text, visual subject, and viewer promise.",
31
- "The viral mechanism names the click driver, retention driver, and payoff behavior.",
32
- "Visual preservation is classified as critical, supportive, optional, or low, with enforced rules separated from allowed variation.",
33
- "All required text surfaces are listed as deterministic text, generated poster text, or source-media text.",
34
- "Every caption or overlay selects an approved font ID or records a custom-font exception.",
35
- "Every media slot has an owner: user_upload, generated_asset, external_clip, deterministic_layer, or AI-native scene."
36
- ],
37
- compositionChecks: [
38
- "Captions stay inside the template's TikTok safe area unless a source format explicitly requires another placement.",
39
- "Important text is readable at phone size, with no line longer than the template's configured wrap rule.",
40
- "White TikTok-native captions use a radial black halo/outline, not a large one-direction web shadow.",
41
- "Background chips hug each wrapped line; they are not full-width bars or paragraph rectangles.",
42
- "Multiline captions use one shared font size, line height, and shadow treatment for the whole block.",
43
- "No generated image/video contains duplicated, misspelled, or malformed important text unless that text is replaced by deterministic compositing before final output."
44
- ],
45
- finalOutputChecks: [
46
- "The final artifact URL, manifest URL, render inputs, and source assets are stored as URLs, not base64 JSON.",
47
- "The first second communicates the hook without needing audio.",
48
- "The final output preserves the template's viral DNA, not just the approximate visual style.",
49
- "The output does not look like a generic polished ad when the source format is creator-native or UGC-native.",
50
- "Timing, cuts, holds, and transitions match the plan's explicit duration clamps.",
51
- "The ending provides the planned payoff, loop, save/share reason, or CTA."
52
- ],
53
- retryRules: [
54
- "Retry only the smallest failed stage: prompt plan, single asset, caption layout, scene clip, or final stitch.",
55
- "A font, safe-area, caption, storage, or deterministic layout failure must be fixed in code/config, not by regenerating the whole creative.",
56
- "If AI-native generation fails the same visual rule twice, switch to stronger references, storyboard/keyframes, or deterministic compositing for that surface.",
57
- "If the viral hook/payoff fails, regenerate the script or plan before spending more image/video generations."
58
- ]
59
- };
60
- //# sourceMappingURL=video-quality-harness.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-quality-harness.js","sourceRoot":"","sources":["../../../src/lib/video-quality-harness.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gCAAgC,GAAG,YAAY,CAAC;AAE7D,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,WAAW,EACT,+HAA+H;IACjI,eAAe,EAAE;QACf,sBAAsB;QACtB,qBAAqB;QACrB,sBAAsB;QACtB,cAAc;QACd,MAAM;KACP;IACD,aAAa,EAAE,CAAC,YAAY,EAAE,iBAAiB,CAAC;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EACjB,6MAA6M;IAC/M,iBAAiB,EACf,mNAAmN;IACrN,qBAAqB,EACnB,oMAAoM;CAC9L,CAAC;AAEX,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,SAAS,EACP,6GAA6G;IAC/G,oBAAoB,EAAE;QACpB,iBAAiB;QACjB,oBAAoB;QACpB,YAAY;QACZ,oBAAoB;QACpB,UAAU;QACV,gBAAgB;QAChB,aAAa;QACb,WAAW;KACZ;IACD,eAAe,EAAE;QACf,6FAA6F;QAC7F,oFAAoF;QACpF,oIAAoI;QACpI,2GAA2G;QAC3G,0FAA0F;QAC1F,sHAAsH;KACvH;IACD,iBAAiB,EAAE;QACjB,oHAAoH;QACpH,yGAAyG;QACzG,qGAAqG;QACrG,+FAA+F;QAC/F,qGAAqG;QACrG,sKAAsK;KACvK;IACD,iBAAiB,EAAE;QACjB,6GAA6G;QAC7G,+DAA+D;QAC/D,6FAA6F;QAC7F,6GAA6G;QAC7G,iFAAiF;QACjF,0EAA0E;KAC3E;IACD,UAAU,EAAE;QACV,+GAA+G;QAC/G,4IAA4I;QAC5I,+JAA+J;QAC/J,6GAA6G;KAC9G;CACO,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=page-runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-runtime.js","sourceRoot":"","sources":["../../src/page-runtime.ts"],"names":[],"mappings":""}