vidspotai-shared 1.0.137 → 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.
- package/lib/globals/aiModels/enums.d.ts +2 -0
- package/lib/globals/aiModels/enums.d.ts.map +1 -1
- package/lib/globals/aiModels/enums.js +7 -0
- package/lib/globals/aiModels/index.d.ts.map +1 -1
- package/lib/globals/aiModels/index.js +2 -0
- package/lib/globals/aiModels/providers/falVideo.d.ts +34 -0
- package/lib/globals/aiModels/providers/falVideo.d.ts.map +1 -0
- package/lib/globals/aiModels/providers/falVideo.js +102 -0
- package/lib/globals/film/filmCatalog.d.ts +88 -0
- package/lib/globals/film/filmCatalog.d.ts.map +1 -0
- package/lib/globals/film/filmCatalog.js +218 -0
- package/lib/globals/index.d.ts +2 -0
- package/lib/globals/index.d.ts.map +1 -1
- package/lib/globals/index.js +2 -0
- package/lib/globals/reelRemake.d.ts +116 -0
- package/lib/globals/reelRemake.d.ts.map +1 -0
- package/lib/globals/reelRemake.js +142 -0
- package/lib/globals/types.d.ts +15 -1
- package/lib/globals/types.d.ts.map +1 -1
- package/lib/globals/types.js +16 -0
- package/lib/models/filmProject.model.d.ts +424 -0
- package/lib/models/filmProject.model.d.ts.map +1 -0
- package/lib/models/filmProject.model.js +14 -0
- package/lib/models/image.model.d.ts +3 -0
- package/lib/models/image.model.d.ts.map +1 -1
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -0
- package/lib/models/reelRemake.model.d.ts +222 -0
- package/lib/models/reelRemake.model.d.ts.map +1 -0
- package/lib/models/reelRemake.model.js +2 -0
- package/lib/models/video.model.d.ts +5 -0
- package/lib/models/video.model.d.ts.map +1 -1
- package/lib/schemas/film.schema.d.ts +500 -0
- package/lib/schemas/film.schema.d.ts.map +1 -0
- package/lib/schemas/film.schema.js +201 -0
- package/lib/schemas/index.d.ts +1 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +1 -0
- package/lib/services/agent/providerFallback/chains.d.ts.map +1 -1
- package/lib/services/agent/providerFallback/chains.js +13 -0
- package/lib/services/agent/tools/generateVideo.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/generateVideo.tool.js +2 -1
- package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.js +4 -0
- package/lib/services/aiGen/providers/fal/falVideo.service.d.ts +39 -0
- package/lib/services/aiGen/providers/fal/falVideo.service.d.ts.map +1 -0
- package/lib/services/aiGen/providers/fal/falVideo.service.js +266 -0
- package/lib/services/aiGen/providers/fal/index.d.ts +1 -0
- package/lib/services/aiGen/providers/fal/index.d.ts.map +1 -1
- package/lib/services/aiGen/providers/fal/index.js +1 -0
- package/lib/services/film/compileShotPrompt.d.ts +16 -0
- package/lib/services/film/compileShotPrompt.d.ts.map +1 -0
- package/lib/services/film/compileShotPrompt.js +152 -0
- package/lib/services/film/filmAssets.d.ts +73 -0
- package/lib/services/film/filmAssets.d.ts.map +1 -0
- package/lib/services/film/filmAssets.js +341 -0
- package/lib/services/film/filmCut.d.ts +159 -0
- package/lib/services/film/filmCut.d.ts.map +1 -0
- package/lib/services/film/filmCut.js +616 -0
- package/lib/services/film/filmPublic.d.ts +9 -0
- package/lib/services/film/filmPublic.d.ts.map +1 -0
- package/lib/services/film/filmPublic.js +39 -0
- package/lib/services/film/filmTakes.d.ts +65 -0
- package/lib/services/film/filmTakes.d.ts.map +1 -0
- package/lib/services/film/filmTakes.js +168 -0
- package/lib/services/film/writersRoom.d.ts +276 -0
- package/lib/services/film/writersRoom.d.ts.map +1 -0
- package/lib/services/film/writersRoom.js +431 -0
- package/lib/services/firestore.service.d.ts +7 -0
- package/lib/services/firestore.service.d.ts.map +1 -1
- package/lib/services/firestore.service.js +15 -0
- package/lib/services/index.d.ts +11 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +11 -0
- package/lib/services/reelRemake/castDetection.d.ts +56 -0
- package/lib/services/reelRemake/castDetection.d.ts.map +1 -0
- package/lib/services/reelRemake/castDetection.js +146 -0
- package/lib/services/reelRemake/castSuggestion.d.ts +43 -0
- package/lib/services/reelRemake/castSuggestion.d.ts.map +1 -0
- package/lib/services/reelRemake/castSuggestion.js +99 -0
- package/lib/services/reelRemake/keyframeSwap.d.ts +44 -0
- package/lib/services/reelRemake/keyframeSwap.d.ts.map +1 -0
- package/lib/services/reelRemake/keyframeSwap.js +139 -0
- package/lib/services/reelRemake/shootPlan.d.ts +65 -0
- package/lib/services/reelRemake/shootPlan.d.ts.map +1 -0
- package/lib/services/reelRemake/shootPlan.js +193 -0
- package/lib/services/reelRemake/stopWork.d.ts +54 -0
- package/lib/services/reelRemake/stopWork.d.ts.map +1 -0
- package/lib/services/reelRemake/stopWork.js +91 -0
- package/package.json +1 -1
|
@@ -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"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REEL_REMAKE_LINK_HOSTS = exports.REEL_REMAKE = void 0;
|
|
4
|
+
exports.isReelRemakeLinkUrl = isReelRemakeLinkUrl;
|
|
5
|
+
const enums_1 = require("./aiModels/enums");
|
|
6
|
+
/**
|
|
7
|
+
* Reel Remake — recreate a viral reel with a new cast (each person in each
|
|
8
|
+
* shot replaced by a character, scene / motion / audio kept). Limits shared by
|
|
9
|
+
* the Functions controller (upfront validation) and the REEL_REMAKE_JOBS
|
|
10
|
+
* worker (ffprobe-checked). See notes/REEL_REMAKE_PLAN.md.
|
|
11
|
+
*/
|
|
12
|
+
exports.REEL_REMAKE = {
|
|
13
|
+
/** Longest source (after trim) accepted. */
|
|
14
|
+
maxDurationSec: 60,
|
|
15
|
+
/** Shortest source worth remaking. */
|
|
16
|
+
minDurationSec: 2,
|
|
17
|
+
/** Largest source file accepted (bytes). */
|
|
18
|
+
maxBytes: 200 * 1024 * 1024,
|
|
19
|
+
/** Shots kept after detection; the weakest cuts are dropped past this. */
|
|
20
|
+
maxShots: 24,
|
|
21
|
+
/** ffmpeg `scene` score a cut must exceed (0..1). */
|
|
22
|
+
sceneThreshold: 0.3,
|
|
23
|
+
/** Cuts closer than this to each other / to the ends are flash frames, not shots. */
|
|
24
|
+
minCutGapSec: 0.4,
|
|
25
|
+
/**
|
|
26
|
+
* Longest single shot handed to one generation. Motion Control and Aleph 2
|
|
27
|
+
* both cap at 30s; a longer continuous take is split evenly.
|
|
28
|
+
*/
|
|
29
|
+
maxShotSec: 30,
|
|
30
|
+
/** Remakes a user may have in flight (pre-result) at once. */
|
|
31
|
+
maxActivePerUser: 3,
|
|
32
|
+
/** Vision model for cast detection over the shot keyframes. */
|
|
33
|
+
castModel: "gemini-3.5-flash",
|
|
34
|
+
/** Theme typed for a proposed cast ("wizard school"). */
|
|
35
|
+
maxThemeChars: 120,
|
|
36
|
+
maxCharacterNameChars: 60,
|
|
37
|
+
maxCharacterPromptChars: 600,
|
|
38
|
+
/**
|
|
39
|
+
* Reference images kept per character. Kling Omni edit takes ≤4 refer_image
|
|
40
|
+
* alongside a base video across ALL characters in a shot — the shoot stage
|
|
41
|
+
* budgets them per shot.
|
|
42
|
+
*/
|
|
43
|
+
maxCharacterRefImages: 4,
|
|
44
|
+
/**
|
|
45
|
+
* Image model for the preview (character portraits + per-shot keyframe
|
|
46
|
+
* swaps). Seedream 5 Lite: $0.035 flat, 14 refs, accepts real people (spike
|
|
47
|
+
* §3a); Seedream 5 Pro isn't activated on our Ark account.
|
|
48
|
+
*/
|
|
49
|
+
previewImageModel: "bytedance-seedream-5-lite",
|
|
50
|
+
/** Keyframe swaps run at once per remake. */
|
|
51
|
+
previewConcurrency: 4,
|
|
52
|
+
/** Regenerations a single shot allows (each billed). */
|
|
53
|
+
maxShotRegenerations: 10,
|
|
54
|
+
/** Note typed when regenerating one shot ("make the hat bigger"). */
|
|
55
|
+
maxRegenerateNoteChars: 300,
|
|
56
|
+
// ── Shoot (Stage 4) — routing from the spike, notes/REEL_REMAKE_PLAN.md §3a ──
|
|
57
|
+
/** Replace-in-place shots up to `editMaxSec`: edits the real clip (base_video). */
|
|
58
|
+
shootEditModel: enums_1.EVideoGenModels.KLING_V3_0_OMNI,
|
|
59
|
+
/** Longer shots and new-world mode: swapped keyframe + the clip's motion. */
|
|
60
|
+
shootMotionModel: enums_1.EVideoGenModels.KLING_MOTION_CONTROL,
|
|
61
|
+
/** MiniMax H3: references the clip instead of editing it. Different moderation stack from Kling. */
|
|
62
|
+
shootFallbackModel: enums_1.EVideoGenModels.MINIMAX_H3,
|
|
63
|
+
/**
|
|
64
|
+
* Replace-in-place shots up to `editMaxSec`: [first engine, its one fallback].
|
|
65
|
+
* Flipped to MiniMax-first on 2026-11-02: Kling Omni tasks sat "submitted"
|
|
66
|
+
* ~41 min and then failed ("generation time out") on both runs that day, so
|
|
67
|
+
* every remake waited ~40 min before the fallback even started. Omni stays
|
|
68
|
+
* as the fallback — Kling doesn't bill a task that fails. To go back to
|
|
69
|
+
* Omni-first: [EVideoGenModels.KLING_V3_0_OMNI, EVideoGenModels.MINIMAX_H3].
|
|
70
|
+
*/
|
|
71
|
+
replaceEngineOrder: [enums_1.EVideoGenModels.MINIMAX_H3, enums_1.EVideoGenModels.KLING_V3_0_OMNI],
|
|
72
|
+
/** Kling Omni edit takes a 3–15s clip (whole seconds). */
|
|
73
|
+
editMaxSec: 15,
|
|
74
|
+
/** Shortest clip any shoot engine takes; shorter shots are freeze-padded. */
|
|
75
|
+
minClipSec: 3,
|
|
76
|
+
/** Hailuo H3 durations are 4–15s. */
|
|
77
|
+
fallbackMinSec: 4,
|
|
78
|
+
fallbackMaxSec: 15,
|
|
79
|
+
/** Kling base_video must be at least this tall (spike: ≥700px); clips are upscaled to it. */
|
|
80
|
+
minClipShortSidePx: 720,
|
|
81
|
+
/** Reference images Kling Omni takes alongside a base video (swapped keyframe + character refs). */
|
|
82
|
+
maxShootRefImages: 4,
|
|
83
|
+
/** How often the shoot poller checks the provider tasks. */
|
|
84
|
+
shootPollMs: 20000,
|
|
85
|
+
/**
|
|
86
|
+
* Longest one poll tick may spend on status checks + collecting finished
|
|
87
|
+
* takes before the chain moves on without it (a call hung by a network blip
|
|
88
|
+
* otherwise froze the chain for good, 2026-11-02).
|
|
89
|
+
*/
|
|
90
|
+
shootTickDeadlineMs: 10 * 60000,
|
|
91
|
+
/**
|
|
92
|
+
* A take with no result this long after submit is failed and refunded. Kling
|
|
93
|
+
* Omni can sit "submitted" in the provider queue for 20+ min before it starts
|
|
94
|
+
* rendering (seen 2026-11-02), so this matches the main pipeline's ~60 min
|
|
95
|
+
* Kling budget (12 min × 5 requeues) with margin — a shorter cap throws away
|
|
96
|
+
* renders the provider still bills us for.
|
|
97
|
+
*/
|
|
98
|
+
takeTimeoutMs: 75 * 60000,
|
|
99
|
+
/** Submit attempts on transient errors before trying the fallback. */
|
|
100
|
+
maxSubmitTries: 3,
|
|
101
|
+
/** Reshoots a single shot allows (each billed). */
|
|
102
|
+
maxReshoots: 5,
|
|
103
|
+
// ── Link import (Stage 7, behind REEL_REMAKE_LINK_IMPORT) — plan §6 ──
|
|
104
|
+
/** Longest a link resolve + download may take before falling back to "upload it". */
|
|
105
|
+
linkResolveTimeoutMs: 120000,
|
|
106
|
+
// ── Stuck-job reaper (Stage 8) — no heartbeat for this long = the worker died ──
|
|
107
|
+
/** Analyze, preview, assemble and a single regenerate run in one job each; 20 min is far past any of them. */
|
|
108
|
+
staleJobMs: 20 * 60000,
|
|
109
|
+
/** The shoot poll chain heartbeats every `shootPollMs`; 5 min of silence = a broken chain. */
|
|
110
|
+
staleShootMs: 5 * 60000,
|
|
111
|
+
/** Restarts the reaper tries for one shoot / assemble before it settles what it has. */
|
|
112
|
+
maxReaperRestarts: 3,
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Hosts a pasted reel link may point at. yt-dlp fetches whatever it is given,
|
|
116
|
+
* so this is the SSRF fence: only these public social platforms (and their
|
|
117
|
+
* subdomains), https only.
|
|
118
|
+
*/
|
|
119
|
+
exports.REEL_REMAKE_LINK_HOSTS = [
|
|
120
|
+
"instagram.com",
|
|
121
|
+
"tiktok.com",
|
|
122
|
+
"youtube.com",
|
|
123
|
+
"youtu.be",
|
|
124
|
+
"x.com",
|
|
125
|
+
"twitter.com",
|
|
126
|
+
"facebook.com",
|
|
127
|
+
"fb.watch",
|
|
128
|
+
];
|
|
129
|
+
/** True for an https URL on one of `REEL_REMAKE_LINK_HOSTS` (or a subdomain). */
|
|
130
|
+
function isReelRemakeLinkUrl(raw) {
|
|
131
|
+
let u;
|
|
132
|
+
try {
|
|
133
|
+
u = new URL(raw);
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
if (u.protocol !== "https:" || u.username || u.password || u.port)
|
|
139
|
+
return false;
|
|
140
|
+
const host = u.hostname.toLowerCase();
|
|
141
|
+
return exports.REEL_REMAKE_LINK_HOSTS.some((h) => host === h || host.endsWith(`.${h}`));
|
|
142
|
+
}
|
package/lib/globals/types.d.ts
CHANGED
|
@@ -184,6 +184,13 @@ export declare enum ERedisQueues {
|
|
|
184
184
|
* generation-type split in this enum (VIDEO_JOBS vs IMAGE_JOBS, etc.).
|
|
185
185
|
*/
|
|
186
186
|
UPSCALE_VIDEO_JOBS = "upscale-video-job-queue",
|
|
187
|
+
/**
|
|
188
|
+
* Film Studio — one job per `/v1/film/:id/write` call (Writers' Room: logline
|
|
189
|
+
* → bible → episodes → shot lists, or a narrower episode/scene/shot rewrite).
|
|
190
|
+
* LLM-only and I/O-bound; progress streams onto `filmProjects.writing`.
|
|
191
|
+
* Later stages add keyframe/shoot kinds here. See notes/FILM_STUDIO_PLAN.md.
|
|
192
|
+
*/
|
|
193
|
+
FILM_JOBS = "film-job-queue",
|
|
187
194
|
/**
|
|
188
195
|
* Video photo-tools — background removal on a clip (fal BiRefNet v2 video)
|
|
189
196
|
* plus an optional ffmpeg composite onto a colour/image/blur backdrop. One
|
|
@@ -198,7 +205,14 @@ export declare enum ERedisQueues {
|
|
|
198
205
|
* stem separation, plus a lyric-sync pass on vocal tracks. Provider waits
|
|
199
206
|
* run up to a few minutes, so it gets its own queue.
|
|
200
207
|
*/
|
|
201
|
-
MUSIC_JOBS = "music-job-queue"
|
|
208
|
+
MUSIC_JOBS = "music-job-queue",
|
|
209
|
+
/**
|
|
210
|
+
* Reel Remake — one job per phase of a remake (`analyze` today: normalise,
|
|
211
|
+
* shot detection, keyframes, Gemini cast detection). Download + ffmpeg
|
|
212
|
+
* re-encode, so it sits with the heavy queues in workerRoles. See
|
|
213
|
+
* notes/REEL_REMAKE_PLAN.md.
|
|
214
|
+
*/
|
|
215
|
+
REEL_REMAKE_JOBS = "reel-remake-job-queue"
|
|
202
216
|
}
|
|
203
217
|
export declare const REDIS_QUEUES: ERedisQueues[];
|
|
204
218
|
/** X8 Social Suite — connected social platforms. Value = stable storage key. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/globals/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,WAAW;IAC1B,Q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EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,CAAC;CACf;AAED,eAAO,MAAM,oBAAoB;;;;iBAQ/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB;;;;iBAQ5B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAiB5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,yBAAyB;;;;iBAapC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/lib/globals/types.js
CHANGED
|
@@ -185,6 +185,13 @@ var ERedisQueues;
|
|
|
185
185
|
* generation-type split in this enum (VIDEO_JOBS vs IMAGE_JOBS, etc.).
|
|
186
186
|
*/
|
|
187
187
|
ERedisQueues["UPSCALE_VIDEO_JOBS"] = "upscale-video-job-queue";
|
|
188
|
+
/**
|
|
189
|
+
* Film Studio — one job per `/v1/film/:id/write` call (Writers' Room: logline
|
|
190
|
+
* → bible → episodes → shot lists, or a narrower episode/scene/shot rewrite).
|
|
191
|
+
* LLM-only and I/O-bound; progress streams onto `filmProjects.writing`.
|
|
192
|
+
* Later stages add keyframe/shoot kinds here. See notes/FILM_STUDIO_PLAN.md.
|
|
193
|
+
*/
|
|
194
|
+
ERedisQueues["FILM_JOBS"] = "film-job-queue";
|
|
188
195
|
/**
|
|
189
196
|
* Video photo-tools — background removal on a clip (fal BiRefNet v2 video)
|
|
190
197
|
* plus an optional ffmpeg composite onto a colour/image/blur backdrop. One
|
|
@@ -200,6 +207,13 @@ var ERedisQueues;
|
|
|
200
207
|
* run up to a few minutes, so it gets its own queue.
|
|
201
208
|
*/
|
|
202
209
|
ERedisQueues["MUSIC_JOBS"] = "music-job-queue";
|
|
210
|
+
/**
|
|
211
|
+
* Reel Remake — one job per phase of a remake (`analyze` today: normalise,
|
|
212
|
+
* shot detection, keyframes, Gemini cast detection). Download + ffmpeg
|
|
213
|
+
* re-encode, so it sits with the heavy queues in workerRoles. See
|
|
214
|
+
* notes/REEL_REMAKE_PLAN.md.
|
|
215
|
+
*/
|
|
216
|
+
ERedisQueues["REEL_REMAKE_JOBS"] = "reel-remake-job-queue";
|
|
203
217
|
})(ERedisQueues || (exports.ERedisQueues = ERedisQueues = {}));
|
|
204
218
|
exports.REDIS_QUEUES = [
|
|
205
219
|
ERedisQueues.VIDEO_JOBS,
|
|
@@ -223,8 +237,10 @@ exports.REDIS_QUEUES = [
|
|
|
223
237
|
ERedisQueues.MEDIA_MIRROR_JOBS,
|
|
224
238
|
ERedisQueues.UPSCALE_IMAGE_JOBS,
|
|
225
239
|
ERedisQueues.UPSCALE_VIDEO_JOBS,
|
|
240
|
+
ERedisQueues.FILM_JOBS,
|
|
226
241
|
ERedisQueues.VIDEO_TOOL_JOBS,
|
|
227
242
|
ERedisQueues.MUSIC_JOBS,
|
|
243
|
+
ERedisQueues.REEL_REMAKE_JOBS,
|
|
228
244
|
];
|
|
229
245
|
/** X8 Social Suite — connected social platforms. Value = stable storage key. */
|
|
230
246
|
var ESocialProvider;
|