vidspotai-shared 1.0.136 → 1.0.138

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 (106) hide show
  1. package/lib/globals/aiModels/enums.d.ts +2 -0
  2. package/lib/globals/aiModels/enums.d.ts.map +1 -1
  3. package/lib/globals/aiModels/enums.js +7 -0
  4. package/lib/globals/aiModels/index.d.ts.map +1 -1
  5. package/lib/globals/aiModels/index.js +2 -0
  6. package/lib/globals/film/filmCatalog.d.ts +88 -0
  7. package/lib/globals/film/filmCatalog.d.ts.map +1 -0
  8. package/lib/globals/film/filmCatalog.js +218 -0
  9. package/lib/globals/index.d.ts +2 -0
  10. package/lib/globals/index.d.ts.map +1 -1
  11. package/lib/globals/index.js +2 -0
  12. package/lib/globals/reelRemake.d.ts +116 -0
  13. package/lib/globals/reelRemake.d.ts.map +1 -0
  14. package/lib/globals/reelRemake.js +142 -0
  15. package/lib/globals/types.d.ts +15 -1
  16. package/lib/globals/types.d.ts.map +1 -1
  17. package/lib/globals/types.js +16 -0
  18. package/lib/libs/storage/cdnUrl.d.ts +1 -3
  19. package/lib/libs/storage/cdnUrl.d.ts.map +1 -1
  20. package/lib/libs/storage/cdnUrl.js +8 -6
  21. package/lib/models/filmProject.model.d.ts +424 -0
  22. package/lib/models/filmProject.model.d.ts.map +1 -0
  23. package/lib/models/filmProject.model.js +14 -0
  24. package/lib/models/image.model.d.ts +3 -0
  25. package/lib/models/image.model.d.ts.map +1 -1
  26. package/lib/models/index.d.ts +2 -0
  27. package/lib/models/index.d.ts.map +1 -1
  28. package/lib/models/index.js +2 -0
  29. package/lib/models/reelRemake.model.d.ts +222 -0
  30. package/lib/models/reelRemake.model.d.ts.map +1 -0
  31. package/lib/models/reelRemake.model.js +2 -0
  32. package/lib/models/video.model.d.ts +5 -0
  33. package/lib/models/video.model.d.ts.map +1 -1
  34. package/lib/schemas/film.schema.d.ts +500 -0
  35. package/lib/schemas/film.schema.d.ts.map +1 -0
  36. package/lib/schemas/film.schema.js +201 -0
  37. package/lib/schemas/index.d.ts +1 -0
  38. package/lib/schemas/index.d.ts.map +1 -1
  39. package/lib/schemas/index.js +1 -0
  40. package/lib/services/agent/providerFallback/chains.d.ts.map +1 -1
  41. package/lib/services/agent/providerFallback/chains.js +13 -0
  42. package/lib/services/agent/tools/generateVideo.tool.d.ts.map +1 -1
  43. package/lib/services/agent/tools/generateVideo.tool.js +2 -1
  44. package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
  45. package/lib/services/aiGen/aiGenFactory.service.js +4 -0
  46. package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts.map +1 -1
  47. package/lib/services/aiGen/providers/bytedance/bytedance.service.js +17 -0
  48. package/lib/services/aiGen/providers/fal/index.d.ts +1 -0
  49. package/lib/services/aiGen/providers/fal/index.d.ts.map +1 -1
  50. package/lib/services/aiGen/providers/fal/index.js +1 -0
  51. package/lib/services/aiGen/providers/kling/klingRequests.d.ts.map +1 -1
  52. package/lib/services/aiGen/providers/kling/klingRequests.js +3 -0
  53. package/lib/services/aiGen/providers/types.d.ts +6 -0
  54. package/lib/services/aiGen/providers/types.d.ts.map +1 -1
  55. package/lib/services/film/compileShotPrompt.d.ts +16 -0
  56. package/lib/services/film/compileShotPrompt.d.ts.map +1 -0
  57. package/lib/services/film/compileShotPrompt.js +152 -0
  58. package/lib/services/film/filmAssets.d.ts +73 -0
  59. package/lib/services/film/filmAssets.d.ts.map +1 -0
  60. package/lib/services/film/filmAssets.js +341 -0
  61. package/lib/services/film/filmCut.d.ts +159 -0
  62. package/lib/services/film/filmCut.d.ts.map +1 -0
  63. package/lib/services/film/filmCut.js +616 -0
  64. package/lib/services/film/filmPublic.d.ts +9 -0
  65. package/lib/services/film/filmPublic.d.ts.map +1 -0
  66. package/lib/services/film/filmPublic.js +39 -0
  67. package/lib/services/film/filmTakes.d.ts +65 -0
  68. package/lib/services/film/filmTakes.d.ts.map +1 -0
  69. package/lib/services/film/filmTakes.js +168 -0
  70. package/lib/services/film/writersRoom.d.ts +276 -0
  71. package/lib/services/film/writersRoom.d.ts.map +1 -0
  72. package/lib/services/film/writersRoom.js +431 -0
  73. package/lib/services/firestore.service.d.ts +7 -0
  74. package/lib/services/firestore.service.d.ts.map +1 -1
  75. package/lib/services/firestore.service.js +15 -0
  76. package/lib/services/index.d.ts +12 -0
  77. package/lib/services/index.d.ts.map +1 -1
  78. package/lib/services/index.js +12 -0
  79. package/lib/services/providerHealth.service.d.ts +12 -0
  80. package/lib/services/providerHealth.service.d.ts.map +1 -0
  81. package/lib/services/providerHealth.service.js +75 -0
  82. package/lib/services/reelRemake/castDetection.d.ts +56 -0
  83. package/lib/services/reelRemake/castDetection.d.ts.map +1 -0
  84. package/lib/services/reelRemake/castDetection.js +146 -0
  85. package/lib/services/reelRemake/castSuggestion.d.ts +43 -0
  86. package/lib/services/reelRemake/castSuggestion.d.ts.map +1 -0
  87. package/lib/services/reelRemake/castSuggestion.js +99 -0
  88. package/lib/services/reelRemake/keyframeSwap.d.ts +44 -0
  89. package/lib/services/reelRemake/keyframeSwap.d.ts.map +1 -0
  90. package/lib/services/reelRemake/keyframeSwap.js +139 -0
  91. package/lib/services/reelRemake/shootPlan.d.ts +65 -0
  92. package/lib/services/reelRemake/shootPlan.d.ts.map +1 -0
  93. package/lib/services/reelRemake/shootPlan.js +193 -0
  94. package/lib/services/reelRemake/stopWork.d.ts +54 -0
  95. package/lib/services/reelRemake/stopWork.d.ts.map +1 -0
  96. package/lib/services/reelRemake/stopWork.js +91 -0
  97. package/lib/services/translation/translation.service.d.ts +10 -1
  98. package/lib/services/translation/translation.service.d.ts.map +1 -1
  99. package/lib/services/translation/translation.service.js +34 -1
  100. package/lib/utils/errors.d.ts +3 -0
  101. package/lib/utils/errors.d.ts.map +1 -1
  102. package/lib/utils/errors.js +6 -0
  103. package/lib/utils/helpers.d.ts +1 -1
  104. package/lib/utils/helpers.d.ts.map +1 -1
  105. package/lib/utils/helpers.js +2 -1
  106. package/package.json +1 -1
@@ -42,6 +42,8 @@ export declare enum EVideoGenModels {
42
42
  KLING_V3_0 = "kling-v3.0",
43
43
  KLING_V3_0_TURBO = "kling-v3.0-turbo",
44
44
  KLING_V3_0_OMNI = "kling-v3.0-omni",
45
+ FAL_KLING_V4_0 = "fal-kling-v4.0",
46
+ FAL_KLING_V4_0_FLASH = "fal-kling-v4.0-flash",
45
47
  KLING_V4_0 = "kling-v4.0",
46
48
  KLING_V4_0_FLASH = "kling-v4.0-flash",
47
49
  KLING_AVATAR = "kling-avatar",
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,0BAA0B,+BAA+B;IACzD,+BAA+B,oCAAoC;IACnE,0BAA0B,+BAA+B;IACzD,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;IAC3D,2BAA2B,gCAAgC;IAC3D,wBAAwB,6BAA6B;IACrD,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAK3C,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAC3B,mBAAmB,uBAAuB;IAC1C,iBAAiB,qBAAqB;IACtC,sBAAsB,0BAA0B;IAChD,sBAAsB,0BAA0B;IAChD,uBAAuB,4BAA4B;IACnD,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,cAAc,kBAAkB;IAChC,mBAAmB,uBAAuB;IAC1C,qBAAqB,0BAA0B;IAC/C,wBAAwB,6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;AACH,oBAAY,mBAAmB;IAC7B,uBAAuB,4BAA4B;CACpD;AACD,MAAM,MAAM,qBAAqB,GAAG,GAAG,mBAAmB,EAAE,CAAC;AAE7D;;;;;GAKG;AACH,oBAAY,mBAAmB;IAC7B,mBAAmB,wBAAwB;CAC5C;AACD,MAAM,MAAM,qBAAqB,GAAG,GAAG,mBAAmB,EAAE,CAAC;AAE7D,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,qBAAqB,CAAC"}
@@ -54,6 +54,13 @@ var EVideoGenModels;
54
54
  // globals/aiModels/providers/kling.ts for the full delta.
55
55
  EVideoGenModels["KLING_V3_0_TURBO"] = "kling-v3.0-turbo";
56
56
  EVideoGenModels["KLING_V3_0_OMNI"] = "kling-v3.0-omni";
57
+ // Kling 4.0 / 4.0 Flash, HOSTED ON fal.ai (FalVideoService). Kling's own
58
+ // 4.0 API isn't open to our account yet (kling.ai/dev/pricing 2026-10-27:
59
+ // "Kling 4.0 API access is not yet available"). The `fal-` prefix keeps
60
+ // getProviderKey() honest — the task id lives on fal, not Kling. Add native
61
+ // `kling-v4.0` keys alongside once Kling opens it.
62
+ EVideoGenModels["FAL_KLING_V4_0"] = "fal-kling-v4.0";
63
+ EVideoGenModels["FAL_KLING_V4_0_FLASH"] = "fal-kling-v4.0-flash";
57
64
  // Kling 4.0 / 4.0 Flash on Kling's own API 2.0 (KLING_API_KEY, Flagship
58
65
  // resource pack). The fal-hosted `fal-kling-v4.0*` keys live on dev only.
59
66
  EVideoGenModels["KLING_V4_0"] = "kling-v4.0";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC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"}
@@ -32,6 +32,7 @@ const elevenlabs_1 = require("./providers/elevenlabs");
32
32
  const anthropic_1 = require("./providers/anthropic");
33
33
  const topaz_1 = require("./providers/topaz");
34
34
  const xai_1 = require("./providers/xai");
35
+ const falVideo_1 = require("./providers/falVideo");
35
36
  const fal_1 = require("./providers/fal");
36
37
  exports.aiModelConfigs = {
37
38
  ...pixverse_1.pixverseConfigs,
@@ -47,6 +48,7 @@ exports.aiModelConfigs = {
47
48
  ...anthropic_1.anthropicConfigs,
48
49
  ...topaz_1.topazConfigs,
49
50
  ...xai_1.xaiConfigs,
51
+ ...falVideo_1.falVideoConfigs,
50
52
  ...fal_1.falConfigs,
51
53
  };
52
54
  __exportStar(require("./tierHelpers"), exports);
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Film Studio director-controls catalog — the one vocabulary the UI pickers,
3
+ * the Writers' Room (Stage 2) and the shot prompt compiler all share.
4
+ *
5
+ * Each option carries:
6
+ * - `key` stable id persisted on projects/shots (never rename; add new keys instead)
7
+ * - `label` short UI label
8
+ * - `hint` one-line tooltip explaining what it does to the picture
9
+ * - `prompt` the fragment the compiler injects into the model prompt
10
+ *
11
+ * Served to the frontend by GET /v1/film/catalog, so the frontend never keeps
12
+ * its own copy. "Auto" is represented by an unset field, not a catalog entry.
13
+ */
14
+ import type { FilmAspectRatio, FilmLook, FilmVideoModel } from "../../models/filmProject.model";
15
+ export interface FilmCatalogOption {
16
+ key: string;
17
+ label: string;
18
+ hint: string;
19
+ prompt: string;
20
+ }
21
+ export interface FilmPaletteOption extends FilmCatalogOption {
22
+ /** Display swatches, darkest to lightest. */
23
+ swatches: string[];
24
+ }
25
+ export declare const FILM_GENRES: FilmCatalogOption[];
26
+ export declare const FILM_ERAS: FilmCatalogOption[];
27
+ export declare const FILM_TEMPOS: FilmCatalogOption[];
28
+ export declare const FILM_CAMERA_BODIES: FilmCatalogOption[];
29
+ export declare const FILM_LENSES: FilmCatalogOption[];
30
+ export declare const FILM_FOCAL_LENGTHS: FilmCatalogOption[];
31
+ export declare const FILM_APERTURES: FilmCatalogOption[];
32
+ export declare const FILM_PALETTES: FilmPaletteOption[];
33
+ export declare const FILM_LIGHTING: FilmCatalogOption[];
34
+ export declare const FILM_SHOT_TYPES: FilmCatalogOption[];
35
+ export declare const FILM_CAMERA_MOVES: FilmCatalogOption[];
36
+ export interface FilmVideoModelSpec {
37
+ key: FilmVideoModel;
38
+ label: string;
39
+ hint: string;
40
+ /** Max reference images the model accepts per request. */
41
+ maxRefImages: number;
42
+ minDurationSec: number;
43
+ maxDurationSec: number;
44
+ aspectRatios: FilmAspectRatio[];
45
+ /** Generates synced dialogue/ambient audio itself. */
46
+ nativeAudio: boolean;
47
+ }
48
+ /** Mirrors the aiModels registry entries (bytedance.ts / kling.ts) for these two keys. */
49
+ export declare const FILM_VIDEO_MODELS: FilmVideoModelSpec[];
50
+ /** Look field → its catalog. Drives validation and the pickers. */
51
+ export declare const FILM_LOOK_CATALOG: Record<keyof FilmLook, FilmCatalogOption[]>;
52
+ export declare const FILM_LOOK_FIELDS: (keyof FilmLook)[];
53
+ export declare function findFilmOption(options: FilmCatalogOption[], key: string | undefined): FilmCatalogOption | undefined;
54
+ export declare function getFilmVideoModelSpec(key: FilmVideoModel): FilmVideoModelSpec;
55
+ /** Everything the frontend needs to render the pickers, in one payload. */
56
+ /**
57
+ * Image models offered for cast portraits, turnaround sheets and location
58
+ * plates. All three persist outputs to our own storage (so the URLs stay valid
59
+ * as long-lived references), take up to 14 reference images and cover every
60
+ * aspect Film Studio uses (3:4 portraits, 16:9 sheets, 16:9/21:9/9:16 plates).
61
+ */
62
+ export interface FilmImageModelSpec {
63
+ key: string;
64
+ label: string;
65
+ hint: string;
66
+ /** imageSize sent with every request ("2K" for all three today). */
67
+ imageSize: string;
68
+ }
69
+ export declare const FILM_IMAGE_MODELS: FilmImageModelSpec[];
70
+ export declare const DEFAULT_FILM_IMAGE_MODEL: string;
71
+ export declare function getFilmImageModelSpec(key?: string): FilmImageModelSpec;
72
+ export declare const FILM_CATALOG: {
73
+ genres: FilmCatalogOption[];
74
+ eras: FilmCatalogOption[];
75
+ tempos: FilmCatalogOption[];
76
+ cameraBodies: FilmCatalogOption[];
77
+ lenses: FilmCatalogOption[];
78
+ focalLengths: FilmCatalogOption[];
79
+ apertures: FilmCatalogOption[];
80
+ palettes: FilmPaletteOption[];
81
+ lighting: FilmCatalogOption[];
82
+ shotTypes: FilmCatalogOption[];
83
+ cameraMoves: FilmCatalogOption[];
84
+ videoModels: FilmVideoModelSpec[];
85
+ imageModels: FilmImageModelSpec[];
86
+ };
87
+ export type FilmCatalog = typeof FILM_CATALOG;
88
+ //# sourceMappingURL=filmCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filmCatalog.d.ts","sourceRoot":"","sources":["../../../src/globals/film/filmCatalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhG,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAe1C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,iBAAiB,EASxC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAK1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EAOjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAM1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EAOjD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE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F,eAAO,MAAM,wBAAwB,QAA4B,CAAC;AAElE,wBAAgB,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAEtE;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FILM_CATALOG = exports.DEFAULT_FILM_IMAGE_MODEL = exports.FILM_IMAGE_MODELS = exports.FILM_LOOK_FIELDS = exports.FILM_LOOK_CATALOG = exports.FILM_VIDEO_MODELS = exports.FILM_CAMERA_MOVES = exports.FILM_SHOT_TYPES = exports.FILM_LIGHTING = exports.FILM_PALETTES = exports.FILM_APERTURES = exports.FILM_FOCAL_LENGTHS = exports.FILM_LENSES = exports.FILM_CAMERA_BODIES = exports.FILM_TEMPOS = exports.FILM_ERAS = exports.FILM_GENRES = void 0;
4
+ exports.findFilmOption = findFilmOption;
5
+ exports.getFilmVideoModelSpec = getFilmVideoModelSpec;
6
+ exports.getFilmImageModelSpec = getFilmImageModelSpec;
7
+ exports.FILM_GENRES = [
8
+ { key: "drama", label: "Drama", hint: "Grounded, character-driven, emotionally honest", prompt: "grounded character drama, naturalistic performances" },
9
+ { key: "romance", label: "Romance", hint: "Intimate framing, warm tones, lingering looks", prompt: "romantic drama, intimate framing, tender lingering moments" },
10
+ { key: "thriller", label: "Thriller", hint: "Tension, tight framing, uneasy stillness", prompt: "suspense thriller, mounting tension, tight uneasy framing" },
11
+ { key: "horror", label: "Horror", hint: "Dread, deep shadow, negative space", prompt: "horror film, creeping dread, deep shadows, unsettling negative space" },
12
+ { key: "action", label: "Action", hint: "Kinetic movement, impact, clear geography", prompt: "action film, kinetic movement, visceral impact, clear spatial geography" },
13
+ { key: "comedy", label: "Comedy", hint: "Bright, clean, readable reactions", prompt: "comedy, bright even lighting, clear readable reactions and timing" },
14
+ { key: "scifi", label: "Sci-Fi", hint: "Speculative tech, scale, clean geometry", prompt: "science fiction, speculative technology, sense of scale, precise geometry" },
15
+ { key: "fantasy", label: "Fantasy", hint: "Mythic worlds, painterly light", prompt: "epic fantasy, mythic world-building, painterly light" },
16
+ { key: "noir", label: "Noir / Crime", hint: "Hard shadows, rain, moral ambiguity", prompt: "neo-noir crime film, hard shadows, wet streets, moral ambiguity" },
17
+ { key: "mystery", label: "Mystery", hint: "Clues, partial reveals, quiet tension", prompt: "mystery, deliberate partial reveals, quiet tension" },
18
+ { key: "western", label: "Western", hint: "Wide landscapes, dust, sun-bleached tones", prompt: "western, vast landscapes, dust, sun-bleached tones" },
19
+ { key: "period", label: "Period", hint: "Historical setting, authentic costume and props", prompt: "period drama, historically authentic costume, props and set dressing" },
20
+ { key: "war", label: "War", hint: "Chaos, grit, desaturated urgency", prompt: "war film, gritty chaos, desaturated urgency" },
21
+ { key: "animated", label: "Animated", hint: "Stylised 3D animated feature look", prompt: "high-end 3D animated feature film style, expressive stylised characters" },
22
+ ];
23
+ exports.FILM_ERAS = [
24
+ { key: "1940s", label: "1940s", hint: "Studio-era glamour, black-and-white sensibility", prompt: "1940s setting and filmmaking style" },
25
+ { key: "1960s", label: "1960s", hint: "Mid-century design, saturated film stock", prompt: "1960s setting, mid-century design, saturated film stock" },
26
+ { key: "1970s", label: "1970s", hint: "Earth tones, grain, zoom-lens realism", prompt: "1970s setting, earthy palette, heavy grain, gritty realism" },
27
+ { key: "1980s", label: "1980s", hint: "Neon, haze, bold colour", prompt: "1980s setting, neon, atmospheric haze, bold colour" },
28
+ { key: "1990s", label: "1990s", hint: "Grunge textures, practical light", prompt: "1990s setting, grunge textures, practical lighting" },
29
+ { key: "2000s", label: "2000s", hint: "Early digital, bleach-bypass contrast", prompt: "2000s setting, early-digital look, high contrast" },
30
+ { key: "present", label: "Present day", hint: "Contemporary world and wardrobe", prompt: "present-day contemporary setting" },
31
+ { key: "near-future", label: "Near future", hint: "Ten years out, plausible tech", prompt: "near-future setting, plausible emerging technology" },
32
+ ];
33
+ exports.FILM_TEMPOS = [
34
+ { key: "calm", label: "Calm", hint: "Long takes, slow movement, room to breathe", prompt: "calm unhurried pacing, slow deliberate movement" },
35
+ { key: "measured", label: "Measured", hint: "Steady, classical pacing", prompt: "steady classical pacing" },
36
+ { key: "dynamic", label: "Dynamic", hint: "Energetic movement and momentum", prompt: "dynamic energetic pacing, strong momentum" },
37
+ { key: "frantic", label: "Frantic", hint: "Urgent, chaotic, fast motion", prompt: "frantic urgent pacing, chaotic fast motion" },
38
+ ];
39
+ exports.FILM_CAMERA_BODIES = [
40
+ { key: "digital-cinema", label: "Digital cinema", hint: "Clean, sharp, modern large-sensor look", prompt: "shot on a large-sensor digital cinema camera, clean and sharp" },
41
+ { key: "35mm", label: "35mm film", hint: "Classic film grain and roll-off", prompt: "shot on 35mm film, organic grain, soft highlight roll-off" },
42
+ { key: "16mm", label: "16mm film", hint: "Heavier grain, documentary intimacy", prompt: "shot on 16mm film, heavy grain, intimate documentary texture" },
43
+ { key: "super8", label: "Super 8", hint: "Home-movie nostalgia, light leaks", prompt: "Super 8 home-movie footage, light leaks, flicker, faded colour" },
44
+ { key: "camcorder", label: "Camcorder", hint: "Lo-fi tape video, found-footage feel", prompt: "lo-fi consumer camcorder video, tape artefacts, found-footage feel" },
45
+ { key: "imax", label: "IMAX 65mm", hint: "Huge resolution, epic clarity", prompt: "shot on IMAX 65mm, immense detail and epic clarity" },
46
+ ];
47
+ exports.FILM_LENSES = [
48
+ { key: "spherical", label: "Clean spherical", hint: "Neutral, distortion-free", prompt: "clean spherical lens" },
49
+ { key: "anamorphic", label: "Anamorphic", hint: "Oval bokeh, horizontal flares, widescreen feel", prompt: "anamorphic lens, oval bokeh, horizontal lens flares" },
50
+ { key: "vintage", label: "Vintage glass", hint: "Soft edges, warm halation", prompt: "vintage lens, soft edges, warm halation around highlights" },
51
+ { key: "macro", label: "Macro", hint: "Extreme detail at close range", prompt: "macro lens, extreme close detail" },
52
+ { key: "fisheye", label: "Fisheye", hint: "Exaggerated barrel distortion", prompt: "fisheye lens, strong barrel distortion" },
53
+ ];
54
+ exports.FILM_FOCAL_LENGTHS = [
55
+ { key: "14mm", label: "14mm", hint: "Ultra-wide, exaggerated depth", prompt: "14mm ultra-wide focal length" },
56
+ { key: "24mm", label: "24mm", hint: "Wide, environmental", prompt: "24mm wide focal length" },
57
+ { key: "35mm", label: "35mm", hint: "Natural, slightly wide", prompt: "35mm focal length" },
58
+ { key: "50mm", label: "50mm", hint: "Closest to the human eye", prompt: "50mm normal focal length" },
59
+ { key: "85mm", label: "85mm", hint: "Flattering portrait compression", prompt: "85mm portrait focal length, flattering compression" },
60
+ { key: "135mm", label: "135mm", hint: "Telephoto, stacked background", prompt: "135mm telephoto, compressed stacked background" },
61
+ ];
62
+ exports.FILM_APERTURES = [
63
+ { key: "f1.4", label: "f/1.4", hint: "Razor-thin focus, creamy background", prompt: "shallow depth of field at f/1.4, creamy background blur" },
64
+ { key: "f2.8", label: "f/2.8", hint: "Subject isolated, background soft", prompt: "f/2.8, subject isolated against a soft background" },
65
+ { key: "f5.6", label: "f/5.6", hint: "Moderate depth", prompt: "f/5.6, moderate depth of field" },
66
+ { key: "f11", label: "f/11", hint: "Deep focus, everything sharp", prompt: "deep focus at f/11, foreground to background sharp" },
67
+ ];
68
+ exports.FILM_PALETTES = [
69
+ { key: "teal-orange", label: "Teal & Orange", hint: "Blockbuster complementary grade", prompt: "teal and orange colour grade", swatches: ["#0b2e33", "#1f6f78", "#7fb7be", "#f2a65a", "#e2711d"] },
70
+ { key: "bleach-bypass", label: "Bleach Bypass", hint: "Desaturated, silvery, high contrast", prompt: "bleach bypass grade, desaturated silvery high contrast", swatches: ["#1a1a1a", "#4a4d4f", "#8a8f91", "#c4c7c5", "#e9e7e1"] },
71
+ { key: "neon-noir", label: "Neon Noir", hint: "Magenta and cyan against black", prompt: "neon noir palette, magenta and cyan light against deep black", swatches: ["#07040f", "#3a0ca3", "#f72585", "#4cc9f0", "#b5f2ff"] },
72
+ { key: "golden-hour", label: "Golden Hour", hint: "Honeyed warmth, long shadows", prompt: "golden hour palette, honeyed warm light, long shadows", swatches: ["#3b2414", "#8c4a1f", "#d98c3a", "#f4c27a", "#fbe7c6"] },
73
+ { key: "pastel", label: "Pastel Dream", hint: "Soft, airy, symmetrical whimsy", prompt: "soft pastel palette, airy and whimsical", swatches: ["#c9b6e4", "#f6c6d8", "#fde2c9", "#c8ead3", "#bfe0f5"] },
74
+ { key: "monochrome", label: "Monochrome", hint: "Black and white", prompt: "black and white monochrome", swatches: ["#000000", "#3d3d3d", "#7a7a7a", "#bdbdbd", "#ffffff"] },
75
+ { key: "cold-steel", label: "Cold Steel", hint: "Blue-grey, clinical, wintry", prompt: "cold steel blue-grey palette, clinical and wintry", swatches: ["#0e1a24", "#2b4257", "#5d7a91", "#9fb4c4", "#dde6ec"] },
76
+ { key: "kodachrome", label: "Vintage Warm", hint: "Rich reds and yellows of old slide film", prompt: "vintage slide-film colour, rich reds and warm yellows", swatches: ["#2d1b12", "#9b2c1f", "#d9822b", "#e9c46a", "#f1ead6"] },
77
+ { key: "emerald", label: "Emerald Forest", hint: "Deep greens, mossy shadows", prompt: "deep emerald greens, mossy shadows", swatches: ["#08170f", "#14432a", "#2f7a4b", "#7fbf7f", "#d7ecd2"] },
78
+ { key: "crimson", label: "Crimson Shadow", hint: "Blood red accents in darkness", prompt: "crimson red accents against deep darkness", swatches: ["#0a0505", "#3b0a0a", "#8e1414", "#d12a2a", "#f2d0c4"] },
79
+ ];
80
+ exports.FILM_LIGHTING = [
81
+ { key: "natural", label: "Natural daylight", hint: "Soft, motivated by real sources", prompt: "natural motivated daylight" },
82
+ { key: "golden-hour", label: "Golden hour", hint: "Low warm sun, backlit rim", prompt: "low golden-hour sun, warm backlit rim light" },
83
+ { key: "overcast", label: "Overcast", hint: "Shadowless soft light", prompt: "soft overcast light, minimal shadows" },
84
+ { key: "low-key", label: "Low-key", hint: "Chiaroscuro, faces carved from dark", prompt: "low-key chiaroscuro lighting, faces carved out of darkness" },
85
+ { key: "high-key", label: "High-key", hint: "Bright, even, few shadows", prompt: "bright high-key lighting" },
86
+ { key: "silhouette", label: "Silhouette", hint: "Subject dark against bright background", prompt: "subject in silhouette against a bright background" },
87
+ { key: "neon", label: "Neon practicals", hint: "Coloured signage lighting the scene", prompt: "lit by coloured neon practicals" },
88
+ { key: "firelight", label: "Candle / firelight", hint: "Flickering warm pools of light", prompt: "flickering candle and firelight, warm pools of light" },
89
+ { key: "moonlight", label: "Moonlight", hint: "Cool blue night ambience", prompt: "cool blue moonlight" },
90
+ { key: "window", label: "Window light", hint: "Single soft source from the side", prompt: "single soft window light from the side" },
91
+ { key: "hard-noon", label: "Hard noon sun", hint: "Harsh overhead, deep eye shadows", prompt: "harsh overhead noon sun, hard shadows" },
92
+ ];
93
+ exports.FILM_SHOT_TYPES = [
94
+ { key: "establishing", label: "Establishing", hint: "Shows where we are", prompt: "establishing shot" },
95
+ { key: "extreme-wide", label: "Extreme wide", hint: "Figure tiny in a vast frame", prompt: "extreme wide shot" },
96
+ { key: "wide", label: "Wide", hint: "Full body plus surroundings", prompt: "wide shot" },
97
+ { key: "medium", label: "Medium", hint: "Waist up", prompt: "medium shot" },
98
+ { key: "medium-close", label: "Medium close-up", hint: "Chest up", prompt: "medium close-up" },
99
+ { key: "close-up", label: "Close-up", hint: "Face fills the frame", prompt: "close-up" },
100
+ { key: "extreme-close-up", label: "Extreme close-up", hint: "Eyes, hands, a detail", prompt: "extreme close-up" },
101
+ { key: "over-shoulder", label: "Over the shoulder", hint: "Conversation coverage", prompt: "over-the-shoulder shot" },
102
+ { key: "two-shot", label: "Two-shot", hint: "Two characters in frame", prompt: "two-shot" },
103
+ { key: "pov", label: "POV", hint: "Through a character's eyes", prompt: "point-of-view shot" },
104
+ { key: "insert", label: "Insert", hint: "Cutaway to an object", prompt: "insert shot of a detail" },
105
+ { key: "low-angle", label: "Low angle", hint: "Looking up: power, menace", prompt: "low-angle shot looking up" },
106
+ { key: "high-angle", label: "High angle", hint: "Looking down: vulnerability", prompt: "high-angle shot looking down" },
107
+ ];
108
+ exports.FILM_CAMERA_MOVES = [
109
+ { key: "static", label: "Static", hint: "Locked-off camera", prompt: "static locked-off camera" },
110
+ { key: "push-in", label: "Push in", hint: "Dolly toward the subject", prompt: "slow dolly push-in" },
111
+ { key: "pull-out", label: "Pull out", hint: "Dolly away to reveal", prompt: "dolly pull-out revealing the surroundings" },
112
+ { key: "pan-left", label: "Pan left", hint: "Rotate to the left", prompt: "pan left" },
113
+ { key: "pan-right", label: "Pan right", hint: "Rotate to the right", prompt: "pan right" },
114
+ { key: "tilt-up", label: "Tilt up", hint: "Rotate upward", prompt: "tilt up" },
115
+ { key: "tilt-down", label: "Tilt down", hint: "Rotate downward", prompt: "tilt down" },
116
+ { key: "truck-left", label: "Truck left", hint: "Slide sideways to the left", prompt: "camera trucks left" },
117
+ { key: "truck-right", label: "Truck right", hint: "Slide sideways to the right", prompt: "camera trucks right" },
118
+ { key: "tracking", label: "Tracking", hint: "Move alongside the subject", prompt: "tracking shot alongside the subject" },
119
+ { key: "follow", label: "Follow", hint: "Behind the subject as they move", prompt: "camera follows behind the subject" },
120
+ { key: "lead", label: "Lead", hint: "In front, moving backward", prompt: "camera leads the subject, moving backward" },
121
+ { key: "orbit", label: "Orbit", hint: "Circle around the subject", prompt: "camera orbits around the subject" },
122
+ { key: "crane-up", label: "Crane up", hint: "Rise high above", prompt: "crane up rising above the scene" },
123
+ { key: "crane-down", label: "Crane down", hint: "Descend into the scene", prompt: "crane down into the scene" },
124
+ { key: "handheld", label: "Handheld", hint: "Organic shake, immediacy", prompt: "handheld camera, organic movement" },
125
+ { key: "steadicam", label: "Steadicam", hint: "Smooth floating glide", prompt: "smooth floating steadicam" },
126
+ { key: "drone", label: "Drone flyover", hint: "Aerial sweep", prompt: "aerial drone flyover" },
127
+ { key: "aerial-pullback", label: "Aerial pullback", hint: "Rise and pull back to reveal scale", prompt: "aerial pullback revealing scale" },
128
+ { key: "whip-pan", label: "Whip pan", hint: "Blurred snap to a new subject", prompt: "fast whip pan" },
129
+ { key: "dolly-zoom", label: "Dolly zoom", hint: "Vertigo effect: background warps", prompt: "dolly zoom vertigo effect" },
130
+ { key: "rack-focus", label: "Rack focus", hint: "Focus shifts between subjects", prompt: "rack focus between foreground and background" },
131
+ { key: "slow-zoom-in", label: "Slow zoom in", hint: "Creeping optical zoom", prompt: "slow zoom in" },
132
+ { key: "slow-zoom-out", label: "Slow zoom out", hint: "Gradual optical zoom out", prompt: "slow zoom out" },
133
+ { key: "snorricam", label: "Body-mounted", hint: "Camera fixed to the actor, world moves", prompt: "body-mounted snorricam, the world sways around the subject" },
134
+ { key: "bullet-time", label: "Frozen moment", hint: "Time slows while camera circles", prompt: "frozen-time moment as the camera circles" },
135
+ ];
136
+ /** Mirrors the aiModels registry entries (bytedance.ts / kling.ts) for these two keys. */
137
+ exports.FILM_VIDEO_MODELS = [
138
+ {
139
+ key: "bytedance-seedance-2.5",
140
+ label: "Seedance 2.5",
141
+ hint: "Best cast consistency (up to 30 references), shots up to 30s, speaks dialogue natively",
142
+ maxRefImages: 30,
143
+ minDurationSec: 4,
144
+ maxDurationSec: 30,
145
+ aspectRatios: ["16:9", "21:9", "9:16"],
146
+ nativeAudio: true,
147
+ },
148
+ {
149
+ key: "kling-v3-omni-video",
150
+ label: "Kling 3.0 Omni",
151
+ hint: "Strong motion and multi-shot, up to 7 references, shots up to 15s",
152
+ maxRefImages: 7,
153
+ minDurationSec: 3,
154
+ maxDurationSec: 15,
155
+ aspectRatios: ["16:9", "9:16"],
156
+ nativeAudio: false,
157
+ },
158
+ ];
159
+ /** Look field → its catalog. Drives validation and the pickers. */
160
+ exports.FILM_LOOK_CATALOG = {
161
+ genre: exports.FILM_GENRES,
162
+ era: exports.FILM_ERAS,
163
+ tempo: exports.FILM_TEMPOS,
164
+ cameraBody: exports.FILM_CAMERA_BODIES,
165
+ lens: exports.FILM_LENSES,
166
+ focalLength: exports.FILM_FOCAL_LENGTHS,
167
+ aperture: exports.FILM_APERTURES,
168
+ palette: exports.FILM_PALETTES,
169
+ lighting: exports.FILM_LIGHTING,
170
+ };
171
+ exports.FILM_LOOK_FIELDS = Object.keys(exports.FILM_LOOK_CATALOG);
172
+ function findFilmOption(options, key) {
173
+ if (!key)
174
+ return undefined;
175
+ return options.find((o) => o.key === key);
176
+ }
177
+ function getFilmVideoModelSpec(key) {
178
+ return exports.FILM_VIDEO_MODELS.find((m) => m.key === key) ?? exports.FILM_VIDEO_MODELS[0];
179
+ }
180
+ exports.FILM_IMAGE_MODELS = [
181
+ {
182
+ key: "google-nano-banana-2",
183
+ label: "Nano Banana 2",
184
+ hint: "Sharp, consistent faces at a mid price. The default.",
185
+ imageSize: "2K",
186
+ },
187
+ {
188
+ key: "google-nano-banana-pro",
189
+ label: "Nano Banana Pro",
190
+ hint: "Highest fidelity and the best likeness across a turnaround. Costs more.",
191
+ imageSize: "2K",
192
+ },
193
+ {
194
+ key: "bytedance-seedream-4.5",
195
+ label: "Seedream 4.5",
196
+ hint: "Cheapest. Strong painterly and stylised looks.",
197
+ imageSize: "2K",
198
+ },
199
+ ];
200
+ exports.DEFAULT_FILM_IMAGE_MODEL = exports.FILM_IMAGE_MODELS[0].key;
201
+ function getFilmImageModelSpec(key) {
202
+ return exports.FILM_IMAGE_MODELS.find((m) => m.key === key) ?? exports.FILM_IMAGE_MODELS[0];
203
+ }
204
+ exports.FILM_CATALOG = {
205
+ genres: exports.FILM_GENRES,
206
+ eras: exports.FILM_ERAS,
207
+ tempos: exports.FILM_TEMPOS,
208
+ cameraBodies: exports.FILM_CAMERA_BODIES,
209
+ lenses: exports.FILM_LENSES,
210
+ focalLengths: exports.FILM_FOCAL_LENGTHS,
211
+ apertures: exports.FILM_APERTURES,
212
+ palettes: exports.FILM_PALETTES,
213
+ lighting: exports.FILM_LIGHTING,
214
+ shotTypes: exports.FILM_SHOT_TYPES,
215
+ cameraMoves: exports.FILM_CAMERA_MOVES,
216
+ videoModels: exports.FILM_VIDEO_MODELS,
217
+ imageModels: exports.FILM_IMAGE_MODELS,
218
+ };
@@ -6,7 +6,9 @@ export * from "./schemas";
6
6
  export * from "./ttsModels";
7
7
  export * from "./types";
8
8
  export * from "./unlimitedPlanFairUse";
9
+ export * from "./film/filmCatalog";
9
10
  export * from "./videoTools";
11
+ export * from "./reelRemake";
10
12
  export * from "./musicStudio";
11
13
  export * from "./posterExport";
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globals/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globals/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -22,6 +22,8 @@ __exportStar(require("./schemas"), exports);
22
22
  __exportStar(require("./ttsModels"), exports);
23
23
  __exportStar(require("./types"), exports);
24
24
  __exportStar(require("./unlimitedPlanFairUse"), exports);
25
+ __exportStar(require("./film/filmCatalog"), exports);
25
26
  __exportStar(require("./videoTools"), exports);
27
+ __exportStar(require("./reelRemake"), exports);
26
28
  __exportStar(require("./musicStudio"), exports);
27
29
  __exportStar(require("./posterExport"), exports);
@@ -0,0 +1,116 @@
1
+ import { EVideoGenModels } from "./aiModels/enums";
2
+ /**
3
+ * Reel Remake — recreate a viral reel with a new cast (each person in each
4
+ * shot replaced by a character, scene / motion / audio kept). Limits shared by
5
+ * the Functions controller (upfront validation) and the REEL_REMAKE_JOBS
6
+ * worker (ffprobe-checked). See notes/REEL_REMAKE_PLAN.md.
7
+ */
8
+ export declare const REEL_REMAKE: {
9
+ /** Longest source (after trim) accepted. */
10
+ readonly maxDurationSec: 60;
11
+ /** Shortest source worth remaking. */
12
+ readonly minDurationSec: 2;
13
+ /** Largest source file accepted (bytes). */
14
+ readonly maxBytes: number;
15
+ /** Shots kept after detection; the weakest cuts are dropped past this. */
16
+ readonly maxShots: 24;
17
+ /** ffmpeg `scene` score a cut must exceed (0..1). */
18
+ readonly sceneThreshold: 0.3;
19
+ /** Cuts closer than this to each other / to the ends are flash frames, not shots. */
20
+ readonly minCutGapSec: 0.4;
21
+ /**
22
+ * Longest single shot handed to one generation. Motion Control and Aleph 2
23
+ * both cap at 30s; a longer continuous take is split evenly.
24
+ */
25
+ readonly maxShotSec: 30;
26
+ /** Remakes a user may have in flight (pre-result) at once. */
27
+ readonly maxActivePerUser: 3;
28
+ /** Vision model for cast detection over the shot keyframes. */
29
+ readonly castModel: "gemini-3.5-flash";
30
+ /** Theme typed for a proposed cast ("wizard school"). */
31
+ readonly maxThemeChars: 120;
32
+ readonly maxCharacterNameChars: 60;
33
+ readonly maxCharacterPromptChars: 600;
34
+ /**
35
+ * Reference images kept per character. Kling Omni edit takes ≤4 refer_image
36
+ * alongside a base video across ALL characters in a shot — the shoot stage
37
+ * budgets them per shot.
38
+ */
39
+ readonly maxCharacterRefImages: 4;
40
+ /**
41
+ * Image model for the preview (character portraits + per-shot keyframe
42
+ * swaps). Seedream 5 Lite: $0.035 flat, 14 refs, accepts real people (spike
43
+ * §3a); Seedream 5 Pro isn't activated on our Ark account.
44
+ */
45
+ readonly previewImageModel: "bytedance-seedream-5-lite";
46
+ /** Keyframe swaps run at once per remake. */
47
+ readonly previewConcurrency: 4;
48
+ /** Regenerations a single shot allows (each billed). */
49
+ readonly maxShotRegenerations: 10;
50
+ /** Note typed when regenerating one shot ("make the hat bigger"). */
51
+ readonly maxRegenerateNoteChars: 300;
52
+ /** Replace-in-place shots up to `editMaxSec`: edits the real clip (base_video). */
53
+ readonly shootEditModel: EVideoGenModels.KLING_V3_0_OMNI;
54
+ /** Longer shots and new-world mode: swapped keyframe + the clip's motion. */
55
+ readonly shootMotionModel: EVideoGenModels.KLING_MOTION_CONTROL;
56
+ /** MiniMax H3: references the clip instead of editing it. Different moderation stack from Kling. */
57
+ readonly shootFallbackModel: EVideoGenModels.MINIMAX_H3;
58
+ /**
59
+ * Replace-in-place shots up to `editMaxSec`: [first engine, its one fallback].
60
+ * Flipped to MiniMax-first on 2026-11-02: Kling Omni tasks sat "submitted"
61
+ * ~41 min and then failed ("generation time out") on both runs that day, so
62
+ * every remake waited ~40 min before the fallback even started. Omni stays
63
+ * as the fallback — Kling doesn't bill a task that fails. To go back to
64
+ * Omni-first: [EVideoGenModels.KLING_V3_0_OMNI, EVideoGenModels.MINIMAX_H3].
65
+ */
66
+ readonly replaceEngineOrder: readonly [EVideoGenModels.MINIMAX_H3, EVideoGenModels.KLING_V3_0_OMNI];
67
+ /** Kling Omni edit takes a 3–15s clip (whole seconds). */
68
+ readonly editMaxSec: 15;
69
+ /** Shortest clip any shoot engine takes; shorter shots are freeze-padded. */
70
+ readonly minClipSec: 3;
71
+ /** Hailuo H3 durations are 4–15s. */
72
+ readonly fallbackMinSec: 4;
73
+ readonly fallbackMaxSec: 15;
74
+ /** Kling base_video must be at least this tall (spike: ≥700px); clips are upscaled to it. */
75
+ readonly minClipShortSidePx: 720;
76
+ /** Reference images Kling Omni takes alongside a base video (swapped keyframe + character refs). */
77
+ readonly maxShootRefImages: 4;
78
+ /** How often the shoot poller checks the provider tasks. */
79
+ readonly shootPollMs: 20000;
80
+ /**
81
+ * Longest one poll tick may spend on status checks + collecting finished
82
+ * takes before the chain moves on without it (a call hung by a network blip
83
+ * otherwise froze the chain for good, 2026-11-02).
84
+ */
85
+ readonly shootTickDeadlineMs: number;
86
+ /**
87
+ * A take with no result this long after submit is failed and refunded. Kling
88
+ * Omni can sit "submitted" in the provider queue for 20+ min before it starts
89
+ * rendering (seen 2026-11-02), so this matches the main pipeline's ~60 min
90
+ * Kling budget (12 min × 5 requeues) with margin — a shorter cap throws away
91
+ * renders the provider still bills us for.
92
+ */
93
+ readonly takeTimeoutMs: number;
94
+ /** Submit attempts on transient errors before trying the fallback. */
95
+ readonly maxSubmitTries: 3;
96
+ /** Reshoots a single shot allows (each billed). */
97
+ readonly maxReshoots: 5;
98
+ /** Longest a link resolve + download may take before falling back to "upload it". */
99
+ readonly linkResolveTimeoutMs: 120000;
100
+ /** Analyze, preview, assemble and a single regenerate run in one job each; 20 min is far past any of them. */
101
+ readonly staleJobMs: number;
102
+ /** The shoot poll chain heartbeats every `shootPollMs`; 5 min of silence = a broken chain. */
103
+ readonly staleShootMs: number;
104
+ /** Restarts the reaper tries for one shoot / assemble before it settles what it has. */
105
+ readonly maxReaperRestarts: 3;
106
+ };
107
+ /**
108
+ * Hosts a pasted reel link may point at. yt-dlp fetches whatever it is given,
109
+ * so this is the SSRF fence: only these public social platforms (and their
110
+ * subdomains), https only.
111
+ */
112
+ export declare const REEL_REMAKE_LINK_HOSTS: readonly ["instagram.com", "tiktok.com", "youtube.com", "youtu.be", "x.com", "twitter.com", "facebook.com", "fb.watch"];
113
+ /** True for an https URL on one of `REEL_REMAKE_LINK_HOSTS` (or a subdomain). */
114
+ export declare function isReelRemakeLinkUrl(raw: string): boolean;
115
+ export type ReelRemakeMode = "replace" | "new-world";
116
+ //# sourceMappingURL=reelRemake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reelRemake.d.ts","sourceRoot":"","sources":["../../src/globals/reelRemake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,WAAW;IACtB,4CAA4C;;IAE5C,sCAAsC;;IAEtC,4CAA4C;;IAE5C,0EAA0E;;IAE1E,qDAAqD;;IAErD,qFAAqF;;IAErF;;;OAGG;;IAEH,8DAA8D;;IAE9D,+DAA+D;;IAE/D,yDAAyD;;;;IAIzD;;;;OAIG;;IAEH;;;;OAIG;;IAEH,6CAA6C;;IAE7C,wDAAwD;;IAExD,qEAAqE;;IAIrE,mFAAmF;;IAEnF,6EAA6E;;IAE7E,oGAAoG;;IAEpG;;;;;;;OAOG;;IAEH,0DAA0D;;IAE1D,6EAA6E;;IAE7E,qCAAqC;;;IAGrC,6FAA6F;;IAE7F,oGAAoG;;IAEpG,4DAA4D;;IAE5D;;;;OAIG;;IAEH;;;;;;OAMG;;IAEH,sEAAsE;;IAEtE,mDAAmD;;IAInD,qFAAqF;;IAIrF,8GAA8G;;IAE9G,8FAA8F;;IAE9F,wFAAwF;;CAEhF,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,yHASzB,CAAC;AAEX,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAUxD;AAED,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,CAAC"}