@nodaro/shared 3.68.0 → 3.70.0
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/dist/{chunk-5IZHECUP.js → chunk-2VOXSVIE.js} +3 -3
- package/dist/{chunk-5IZHECUP.js.map → chunk-2VOXSVIE.js.map} +1 -1
- package/dist/{chunk-OXBU5AGH.js → chunk-42ICEVUN.js} +3 -3
- package/dist/{chunk-OXBU5AGH.js.map → chunk-42ICEVUN.js.map} +1 -1
- package/dist/{chunk-EFYWV2V5.cjs → chunk-4U7QAUV3.cjs} +73 -73
- package/dist/{chunk-EFYWV2V5.cjs.map → chunk-4U7QAUV3.cjs.map} +1 -1
- package/dist/{chunk-OFQ6CU6S.js → chunk-52JNQG4K.js} +3 -3
- package/dist/{chunk-OFQ6CU6S.js.map → chunk-52JNQG4K.js.map} +1 -1
- package/dist/{chunk-PERUFUVH.cjs → chunk-5B337MCI.cjs} +15 -15
- package/dist/{chunk-PERUFUVH.cjs.map → chunk-5B337MCI.cjs.map} +1 -1
- package/dist/{chunk-66QSUUB4.cjs → chunk-5DRSENY3.cjs} +24 -24
- package/dist/{chunk-66QSUUB4.cjs.map → chunk-5DRSENY3.cjs.map} +1 -1
- package/dist/{chunk-3YWZ5SOZ.js → chunk-BIQ7COJP.js} +5 -5
- package/dist/{chunk-3YWZ5SOZ.js.map → chunk-BIQ7COJP.js.map} +1 -1
- package/dist/{chunk-4XR66IWF.cjs → chunk-BLGZW3UF.cjs} +64 -23
- package/dist/chunk-BLGZW3UF.cjs.map +1 -0
- package/dist/{chunk-KSHAAPQF.cjs → chunk-BOCHNFDU.cjs} +4 -4
- package/dist/chunk-BOCHNFDU.cjs.map +1 -0
- package/dist/{chunk-Z77M7Q2R.js → chunk-C2UHX7OF.js} +3 -3
- package/dist/{chunk-Z77M7Q2R.js.map → chunk-C2UHX7OF.js.map} +1 -1
- package/dist/{chunk-Q2LEJXLZ.cjs → chunk-C32IL6RD.cjs} +2 -2
- package/dist/{chunk-Q2LEJXLZ.cjs.map → chunk-C32IL6RD.cjs.map} +1 -1
- package/dist/{chunk-5NVGKXJV.cjs → chunk-CV2BEK52.cjs} +111 -3
- package/dist/chunk-CV2BEK52.cjs.map +1 -0
- package/dist/{chunk-G2G7XGFU.cjs → chunk-DOY47F7S.cjs} +7 -7
- package/dist/{chunk-G2G7XGFU.cjs.map → chunk-DOY47F7S.cjs.map} +1 -1
- package/dist/{chunk-5GG4CG4Y.js → chunk-EWNDK4FV.js} +3 -3
- package/dist/{chunk-5GG4CG4Y.js.map → chunk-EWNDK4FV.js.map} +1 -1
- package/dist/{chunk-T4GIHHXY.cjs → chunk-FMQ43SJP.cjs} +6 -6
- package/dist/{chunk-T4GIHHXY.cjs.map → chunk-FMQ43SJP.cjs.map} +1 -1
- package/dist/{chunk-IWUW3YPM.cjs → chunk-FWPGRC4X.cjs} +5 -5
- package/dist/{chunk-IWUW3YPM.cjs.map → chunk-FWPGRC4X.cjs.map} +1 -1
- package/dist/{chunk-37ZSFS6A.cjs → chunk-GC77W57T.cjs} +18 -18
- package/dist/{chunk-37ZSFS6A.cjs.map → chunk-GC77W57T.cjs.map} +1 -1
- package/dist/{chunk-BNR5FKL5.js → chunk-H2E4QXEZ.js} +3 -3
- package/dist/{chunk-BNR5FKL5.js.map → chunk-H2E4QXEZ.js.map} +1 -1
- package/dist/{chunk-GF7ZA26H.js → chunk-HA2PVTER.js} +5 -5
- package/dist/{chunk-GF7ZA26H.js.map → chunk-HA2PVTER.js.map} +1 -1
- package/dist/{chunk-M5QY464F.cjs → chunk-HBRDKHIW.cjs} +21 -21
- package/dist/{chunk-M5QY464F.cjs.map → chunk-HBRDKHIW.cjs.map} +1 -1
- package/dist/{chunk-E62W5I6A.cjs → chunk-HWBLZSM3.cjs} +109 -7
- package/dist/chunk-HWBLZSM3.cjs.map +1 -0
- package/dist/{chunk-5LWYX4GV.js → chunk-IKN54UGB.js} +3 -3
- package/dist/{chunk-5LWYX4GV.js.map → chunk-IKN54UGB.js.map} +1 -1
- package/dist/{chunk-UVUHVY7F.js → chunk-JCYTTTM2.js} +2 -2
- package/dist/{chunk-UVUHVY7F.js.map → chunk-JCYTTTM2.js.map} +1 -1
- package/dist/{chunk-PJAJCFLP.cjs → chunk-JEUZNHLL.cjs} +168 -44
- package/dist/chunk-JEUZNHLL.cjs.map +1 -0
- package/dist/{chunk-TAPBDT47.js → chunk-JVYDKXGY.js} +4 -4
- package/dist/{chunk-TAPBDT47.js.map → chunk-JVYDKXGY.js.map} +1 -1
- package/dist/{chunk-V6OXSXIX.js → chunk-K3YGI5IW.js} +107 -4
- package/dist/chunk-K3YGI5IW.js.map +1 -0
- package/dist/{chunk-SCDE676D.js → chunk-KKFFQUMM.js} +65 -23
- package/dist/chunk-KKFFQUMM.js.map +1 -0
- package/dist/{chunk-BHL7TAQO.js → chunk-LTBM2KMY.js} +43 -10
- package/dist/chunk-LTBM2KMY.js.map +1 -0
- package/dist/{chunk-BMDOPJBP.cjs → chunk-MZ772ZXA.cjs} +17 -17
- package/dist/{chunk-BMDOPJBP.cjs.map → chunk-MZ772ZXA.cjs.map} +1 -1
- package/dist/{chunk-SW5ZD7BO.js → chunk-NS34PZ2S.js} +3 -3
- package/dist/{chunk-SW5ZD7BO.js.map → chunk-NS34PZ2S.js.map} +1 -1
- package/dist/{chunk-6Q4BS6AR.js → chunk-NT3ZFUNJ.js} +31 -3
- package/dist/chunk-NT3ZFUNJ.js.map +1 -0
- package/dist/{chunk-VBP4DH37.js → chunk-O53P2D4V.js} +130 -15
- package/dist/chunk-O53P2D4V.js.map +1 -0
- package/dist/{chunk-AT53ZQUC.js → chunk-OW5AXH2Y.js} +51 -7
- package/dist/chunk-OW5AXH2Y.js.map +1 -0
- package/dist/{chunk-F6XIH3TZ.cjs → chunk-OZHE77T3.cjs} +9 -9
- package/dist/{chunk-F6XIH3TZ.cjs.map → chunk-OZHE77T3.cjs.map} +1 -1
- package/dist/{chunk-5J2LIQYU.js → chunk-PKWRAMVB.js} +6 -6
- package/dist/{chunk-5J2LIQYU.js.map → chunk-PKWRAMVB.js.map} +1 -1
- package/dist/{chunk-BCY3A62O.cjs → chunk-POZBRZUM.cjs} +75 -60
- package/dist/chunk-POZBRZUM.cjs.map +1 -0
- package/dist/{chunk-X2YHKP4D.cjs → chunk-PWIKUOLB.cjs} +8 -8
- package/dist/{chunk-X2YHKP4D.cjs.map → chunk-PWIKUOLB.cjs.map} +1 -1
- package/dist/{chunk-OXTF4Y3P.cjs → chunk-PYYYBINP.cjs} +6 -6
- package/dist/{chunk-OXTF4Y3P.cjs.map → chunk-PYYYBINP.cjs.map} +1 -1
- package/dist/{chunk-WZG6GZIL.cjs → chunk-QCGSL4CJ.cjs} +4 -4
- package/dist/{chunk-WZG6GZIL.cjs.map → chunk-QCGSL4CJ.cjs.map} +1 -1
- package/dist/{chunk-XEPKONJC.js → chunk-QCVQVKCI.js} +3 -3
- package/dist/{chunk-XEPKONJC.js.map → chunk-QCVQVKCI.js.map} +1 -1
- package/dist/{chunk-3L7GMQ4M.cjs → chunk-QCZYYAPZ.cjs} +54 -49
- package/dist/chunk-QCZYYAPZ.cjs.map +1 -0
- package/dist/{chunk-GNLA5NTT.cjs → chunk-QV32JI4L.cjs} +4 -4
- package/dist/{chunk-GNLA5NTT.cjs.map → chunk-QV32JI4L.cjs.map} +1 -1
- package/dist/{chunk-3QJ3UR5Z.js → chunk-QVAUBB2T.js} +11 -11
- package/dist/{chunk-3QJ3UR5Z.js.map → chunk-QVAUBB2T.js.map} +1 -1
- package/dist/{chunk-MVXZP6VB.js → chunk-R22UHRR6.js} +109 -7
- package/dist/chunk-R22UHRR6.js.map +1 -0
- package/dist/{chunk-KL6GAYTT.js → chunk-S6DXSQCV.js} +5 -3
- package/dist/chunk-S6DXSQCV.js.map +1 -0
- package/dist/{chunk-V24EPI5N.cjs → chunk-U4DIGIC3.cjs} +5 -3
- package/dist/chunk-U4DIGIC3.cjs.map +1 -0
- package/dist/{chunk-H5KHWTAE.js → chunk-UY6QZX7H.js} +4 -4
- package/dist/chunk-UY6QZX7H.js.map +1 -0
- package/dist/{chunk-XNJDAW3M.js → chunk-V6TC2NDG.js} +31 -17
- package/dist/chunk-V6TC2NDG.js.map +1 -0
- package/dist/{chunk-DBD4BCGH.cjs → chunk-VDFQKLDG.cjs} +33 -2
- package/dist/chunk-VDFQKLDG.cjs.map +1 -0
- package/dist/{chunk-PGDR7CO3.cjs → chunk-WHV7MDNC.cjs} +70 -11
- package/dist/chunk-WHV7MDNC.cjs.map +1 -0
- package/dist/{chunk-HTDKEYMY.cjs → chunk-XBHDXURR.cjs} +139 -91
- package/dist/chunk-XBHDXURR.cjs.map +1 -0
- package/dist/{chunk-PAUWEWTY.js → chunk-YLDY23N2.js} +12 -7
- package/dist/chunk-YLDY23N2.js.map +1 -0
- package/dist/entries/apps.cjs +43 -43
- package/dist/entries/apps.js +8 -8
- package/dist/entries/credits.cjs +282 -226
- package/dist/entries/credits.d.cts +167 -66
- package/dist/entries/credits.d.ts +167 -66
- package/dist/entries/credits.js +11 -11
- package/dist/entries/llm-models.cjs +88 -68
- package/dist/entries/llm-models.d.cts +73 -6
- package/dist/entries/llm-models.d.ts +73 -6
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +87 -87
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +133 -133
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +458 -406
- package/dist/entries/models.d.cts +64 -29
- package/dist/entries/models.d.ts +64 -29
- package/dist/entries/models.js +7 -7
- package/dist/entries/nodes.cjs +215 -215
- package/dist/entries/nodes.js +11 -11
- package/dist/entries/pipeline.cjs +153 -153
- package/dist/entries/pipeline.d.cts +1 -1
- package/dist/entries/pipeline.d.ts +1 -1
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/social.cjs +237 -177
- package/dist/entries/social.d.cts +183 -6
- package/dist/entries/social.d.ts +183 -6
- package/dist/entries/social.js +2 -2
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +153 -153
- package/dist/entries/video.d.cts +2 -1
- package/dist/entries/video.d.ts +2 -1
- package/dist/entries/video.js +7 -7
- package/dist/entries/workflow.cjs +152 -152
- package/dist/entries/workflow.js +4 -4
- package/dist/index.cjs +2034 -1846
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +26 -26
- package/dist/{model-constants-DZ3tPGFO.d.ts → model-constants-B5DNHIP8.d.ts} +156 -12
- package/dist/{model-constants-BstsUup6.d.cts → model-constants-CQr_d3Kw.d.cts} +156 -12
- package/package.json +1 -1
- package/src/__tests__/cast-swap-limits.test.ts +54 -20
- package/src/__tests__/competitors.test.ts +64 -0
- package/src/__tests__/extend-providers.test.ts +43 -6
- package/src/__tests__/fixtures/measured-input-quote-parity.json +537 -1
- package/src/__tests__/fixtures/planned-length-quote-parity.json +46 -1
- package/src/__tests__/fixtures/probed-node-quote-parity.json +132 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +112 -1
- package/src/__tests__/gemini-omni-extend.test.ts +110 -0
- package/src/__tests__/gvp-supported-providers.test.ts +3 -0
- package/src/__tests__/lip-sync-pricing.test.ts +29 -2
- package/src/__tests__/llm-models.test.ts +163 -6
- package/src/__tests__/llm-price-key.test.ts +2 -0
- package/src/__tests__/seedance-2-5-flash-catalog.test.ts +194 -0
- package/src/__tests__/suno-separate.test.ts +32 -0
- package/src/__tests__/video-character-refs.test.ts +48 -0
- package/src/cast-swap-limits.ts +43 -25
- package/src/competitors.ts +80 -8
- package/src/credit-identifiers.ts +51 -32
- package/src/entries/credits.ts +19 -0
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/models.ts +15 -0
- package/src/entries/social.ts +33 -0
- package/src/gemini-omni-extend-quote.ts +76 -0
- package/src/generated/unit-contracts.ts +1 -0
- package/src/lip-sync-pricing.ts +26 -1
- package/src/llm-models.ts +176 -5
- package/src/model-catalog.ts +107 -5
- package/src/model-constants.ts +274 -11
- package/src/node-default-mappings.ts +2 -0
- package/src/node-runtime-keys.ts +2 -2
- package/src/seedance-extend-rate.ts +83 -20
- package/src/seedance-lip-sync.ts +68 -0
- package/src/suno-separate.ts +51 -0
- package/src/topics.ts +162 -0
- package/src/video-character-refs.ts +26 -6
- package/src/video-face-mesh.ts +1 -1
- package/dist/chunk-3L7GMQ4M.cjs.map +0 -1
- package/dist/chunk-4XR66IWF.cjs.map +0 -1
- package/dist/chunk-5NVGKXJV.cjs.map +0 -1
- package/dist/chunk-6Q4BS6AR.js.map +0 -1
- package/dist/chunk-AT53ZQUC.js.map +0 -1
- package/dist/chunk-BCY3A62O.cjs.map +0 -1
- package/dist/chunk-BHL7TAQO.js.map +0 -1
- package/dist/chunk-DBD4BCGH.cjs.map +0 -1
- package/dist/chunk-E62W5I6A.cjs.map +0 -1
- package/dist/chunk-H5KHWTAE.js.map +0 -1
- package/dist/chunk-HTDKEYMY.cjs.map +0 -1
- package/dist/chunk-KL6GAYTT.js.map +0 -1
- package/dist/chunk-KSHAAPQF.cjs.map +0 -1
- package/dist/chunk-MVXZP6VB.js.map +0 -1
- package/dist/chunk-PAUWEWTY.js.map +0 -1
- package/dist/chunk-PGDR7CO3.cjs.map +0 -1
- package/dist/chunk-PJAJCFLP.cjs.map +0 -1
- package/dist/chunk-SCDE676D.js.map +0 -1
- package/dist/chunk-V24EPI5N.cjs.map +0 -1
- package/dist/chunk-V6OXSXIX.js.map +0 -1
- package/dist/chunk-VBP4DH37.js.map +0 -1
- package/dist/chunk-XNJDAW3M.js.map +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The id a node that its run prices from a server-side measure (or not at all before the run) is QUOTED at, on BOTH estimates over the same node: the editor's (frontend getModelIdentifier — the node's pill, its Run button, the confirm and the workflow badge) and the server's run estimate (CreditsService.estimateWorkflowCreditsAt — also the credit check before a run and an app's listing), which used to name the bare node type (priced nowhere: 0). Cinematic Avatar: the exact (resolution, duration) id its run holds, Auto at the 15 s ceiling, a duration clamped to 4–15 s (resolveCinematicCreditId). SwitchX: the 240-frame worst-case tier at the node's frame size, the most a run holds and what a workflow run holds (switchXQuoteCreditId: maxResolution 720 only for the number 720) — never a frame count the node's data carries. AI Avatar with no audio wired: the script's bucket in text mode, else the 120 s default (aiAvatarQuoteCreditId). `expected` is the credit id; the server's line is that id's price, above 0. Held by frontend/src/lib/__tests__/probed-node-quote-parity.test.ts and backend/src/ee/billing/__tests__/probed-node-quote-parity.test.ts.",
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"name": "1. Cinematic Avatar at 720p for 10 s",
|
|
6
|
+
"node": {
|
|
7
|
+
"type": "cinematic-avatar",
|
|
8
|
+
"data": {
|
|
9
|
+
"resolution": "720p",
|
|
10
|
+
"duration": 10
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"expected": "cinematic-avatar:720p:10s"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "1b. Cinematic Avatar at 1080p for 4 s",
|
|
17
|
+
"node": {
|
|
18
|
+
"type": "cinematic-avatar",
|
|
19
|
+
"data": {
|
|
20
|
+
"resolution": "1080p",
|
|
21
|
+
"duration": 4
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"expected": "cinematic-avatar:1080p:4s"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "1c. Cinematic Avatar on Auto: the 15 s ceiling (the length is the model's, known only after the run)",
|
|
28
|
+
"node": {
|
|
29
|
+
"type": "cinematic-avatar",
|
|
30
|
+
"data": {
|
|
31
|
+
"resolution": "1080p",
|
|
32
|
+
"autoDuration": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"expected": "cinematic-avatar:1080p:15s"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "1d. Cinematic Avatar with a duration past its range (an API write): clamped to 15 s, as the run holds it",
|
|
39
|
+
"node": {
|
|
40
|
+
"type": "cinematic-avatar",
|
|
41
|
+
"data": {
|
|
42
|
+
"resolution": "720p",
|
|
43
|
+
"duration": 30
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"expected": "cinematic-avatar:720p:15s"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "1e. Cinematic Avatar with no settings: its defaults",
|
|
50
|
+
"node": {
|
|
51
|
+
"type": "cinematic-avatar",
|
|
52
|
+
"data": {}
|
|
53
|
+
},
|
|
54
|
+
"expected": "cinematic-avatar:720p:10s"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "2. SwitchX at its default 1080p: the 240-frame worst-case tier",
|
|
58
|
+
"node": {
|
|
59
|
+
"type": "switchx",
|
|
60
|
+
"data": {}
|
|
61
|
+
},
|
|
62
|
+
"expected": "beeble-switchx:240f:1080p"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "2b. SwitchX at 720p",
|
|
66
|
+
"node": {
|
|
67
|
+
"type": "switchx",
|
|
68
|
+
"data": {
|
|
69
|
+
"maxResolution": 720
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"expected": "beeble-switchx:240f:720p"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "2c. SwitchX whose data carries a frame count (a client's word): still the worst-case tier",
|
|
76
|
+
"node": {
|
|
77
|
+
"type": "switchx",
|
|
78
|
+
"data": {
|
|
79
|
+
"maxResolution": 720,
|
|
80
|
+
"__probedFrameCount": 30
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"expected": "beeble-switchx:240f:720p"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "2d. SwitchX with maxResolution written as text (an API write): 1080p, as a workflow run holds it",
|
|
87
|
+
"node": {
|
|
88
|
+
"type": "switchx",
|
|
89
|
+
"data": {
|
|
90
|
+
"maxResolution": "720"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"expected": "beeble-switchx:240f:1080p"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "3. AI Avatar in audio mode with nothing wired: the 120 s default, a minimum",
|
|
97
|
+
"node": {
|
|
98
|
+
"type": "ai-avatar",
|
|
99
|
+
"data": {
|
|
100
|
+
"speechMode": "audio",
|
|
101
|
+
"avatarId": "a1"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"expected": "heygen-avatar-iv:720p:120s"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "3b. AI Avatar in text mode: its script's bucket (600 characters, about 50 s)",
|
|
108
|
+
"node": {
|
|
109
|
+
"type": "ai-avatar",
|
|
110
|
+
"data": {
|
|
111
|
+
"speechMode": "text",
|
|
112
|
+
"script": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
113
|
+
"voiceId": "v1",
|
|
114
|
+
"engine": "avatar-v",
|
|
115
|
+
"resolution": "1080p"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"expected": "heygen-avatar-v:1080p:60s"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "3c. AI Avatar whose data carries a probed length (a client's word): never read",
|
|
122
|
+
"node": {
|
|
123
|
+
"type": "ai-avatar",
|
|
124
|
+
"data": {
|
|
125
|
+
"speechMode": "audio",
|
|
126
|
+
"__probedDurationSec": 4
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"expected": "heygen-avatar-iv:720p:120s"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Trim Video, Loop Video and Combine Videos are charged by the measured length of each clip they are given (their run probes every input before it reserves). Their quote before a run reads the one measured walk Mask Composite and Video Overlay read (measuredWireLengthSec, @nodaro/render-rules), with VIDEO_UTILITY_PLANNED_CLIP_SLACK_SEC (0.15 s) on each clip a node makes in the run (a quarter second on a Dubbing, an Audio Isolation or a PixVerse V6 extension, whose files run further past their planned length: LONG_OVERSHOOT_PLANNED_CLIP_SLACK_SEC), and every clip less VIDEO_UTILITY_PRICE_GRACE_SEC (0.15 s) before the node's formula (videoUtilityUnitsOf — the rule the charge counts by, so a clip up to 0.15 s past a 5-second mark is priced as if it ended on it, on both): a generation at the length its model renders for its settings (Auto at its longest, a mapped length as the run resolves it), an Extend Video at its source plus what it adds, a node outside the run (or frozen) at the take it hands on, an upload or a Library clip at its measured length, and a clip nothing can size at the estimators' 8-second fallback (a minimum: the run is charged the length it measures). Each case names its step `t`; `whole` is a whole run (the editor's whole-run set, the server's estimate with no run set), `alone` is the step's own Run and its pill (the server's run of `t` alone), `partial` a run of exactly `runSet`. Units are the step's pricing units (each one unit of its own row). Held by frontend/src/lib/__tests__/video-utility-quote-parity.test.ts and backend/src/ee/billing/__tests__/video-utility-quote-parity.test.ts. The step settings: Trim keeps the whole clip (seconds mode, 0 + 0), Loop repeats twice, Combine joins by cuts with its default 1 + 2 frame trims, taken off only where two clips meet (decided 2026-11-14, \"charge what is cut\": the end of every clip but the last and the start of every clip but the first, n − 1 joins), cut at the rate the join conforms its clips to when the graph knows every clip's (an upload's declared `fps`: `runWireFps`), else none cut — the uncut clips, a bound (decided 2026-11-14: frame trims at the clip's real rate; the run cuts at the rate it probes). A Trim's frame trims are cut at its clip's rate the same way. A Combine's quote reads the fields a workflow run sends (combineVideosRunFields: its defaults, never per-join `transitions`, which only a request to the route carries). A case's `stepData` replaces its step's settings; a Trim is priced over the fields its run sends (trimVideoRunFields: its mode's own, an end of 0 left open, so the cut runs to the clip's end).",
|
|
2
|
+
"$comment": "Trim Video, Loop Video and Combine Videos are charged by the measured length of each clip they are given (their run probes every input before it reserves). Their quote before a run reads the one measured walk Mask Composite and Video Overlay read (measuredWireLengthSec, @nodaro/render-rules), with VIDEO_UTILITY_PLANNED_CLIP_SLACK_SEC (0.15 s) on each clip a node makes in the run (a quarter second on a Dubbing, an Audio Isolation or a PixVerse V6 extension, whose files run further past their planned length: LONG_OVERSHOOT_PLANNED_CLIP_SLACK_SEC — but a Dubbing's or an Audio Isolation's not on a Combine Videos, which measures each clip's video stream, which a dub keeps exactly: VIDEO_UTILITY_READING), and every clip less VIDEO_UTILITY_PRICE_GRACE_SEC (0.15 s) before the node's formula (videoUtilityUnitsOf — the rule the charge counts by, so a clip up to 0.15 s past a 5-second mark is priced as if it ended on it, on both): a generation at the length its model renders for its settings (Auto at its longest, a mapped length as the run resolves it), an Extend Video at its source plus what it adds, a node outside the run (or frozen) at the take it hands on, an upload or a Library clip at its measured length, and a clip nothing can size at the estimators' 8-second fallback (a minimum: the run is charged the length it measures). Each case names its step `t`; `whole` is a whole run (the editor's whole-run set, the server's estimate with no run set), `alone` is the step's own Run and its pill (the server's run of `t` alone), `partial` a run of exactly `runSet`. Units are the step's pricing units (each one unit of its own row). Held by frontend/src/lib/__tests__/video-utility-quote-parity.test.ts and backend/src/ee/billing/__tests__/video-utility-quote-parity.test.ts. The step settings: Trim keeps the whole clip (seconds mode, 0 + 0), Loop repeats twice, Combine joins by cuts with its default 1 + 2 frame trims, taken off only where two clips meet (decided 2026-11-14, \"charge what is cut\": the end of every clip but the last and the start of every clip but the first, n − 1 joins), cut at the rate the join conforms its clips to when the graph knows every clip's (an upload's declared `fps`: `runWireFps`), else none cut — the uncut clips, a bound (decided 2026-11-14: frame trims at the clip's real rate; the run cuts at the rate it probes). A Trim's frame trims are cut at its clip's rate the same way. A Combine's quote reads the fields a workflow run sends (combineVideosRunFields: its defaults, never per-join `transitions`, which only a request to the route carries). A case's `stepData` replaces its step's settings; a Trim is priced over the fields its run sends (trimVideoRunFields: its mode's own, an end of 0 left open, so the cut runs to the clip's end).",
|
|
3
3
|
"steps": {
|
|
4
4
|
"trim": {
|
|
5
5
|
"type": "trim-video",
|
|
@@ -3134,6 +3134,117 @@
|
|
|
3134
3134
|
"whole": 6,
|
|
3135
3135
|
"alone": 6
|
|
3136
3136
|
}
|
|
3137
|
+
},
|
|
3138
|
+
{
|
|
3139
|
+
"name": "32. Combine — a Dubbing of each of two 10 s uploads: Combine measures each clip's video stream, which a dub keeps exactly, so each clip takes the step's own slack, not the quarter second: 10.15 + 10.15 s less the grace, 20 s, 4 units (Trim and Loop measure the container: cases 30, 32b)",
|
|
3140
|
+
"step": "combine",
|
|
3141
|
+
"nodes": [
|
|
3142
|
+
{
|
|
3143
|
+
"id": "u",
|
|
3144
|
+
"type": "upload-video",
|
|
3145
|
+
"data": {
|
|
3146
|
+
"url": "https://cdn.example/u.mp4",
|
|
3147
|
+
"generatedResults": [
|
|
3148
|
+
{
|
|
3149
|
+
"url": "https://cdn.example/u.mp4",
|
|
3150
|
+
"duration": 10
|
|
3151
|
+
}
|
|
3152
|
+
],
|
|
3153
|
+
"activeResultIndex": 0
|
|
3154
|
+
}
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
"id": "d",
|
|
3158
|
+
"type": "dubbing",
|
|
3159
|
+
"data": {}
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"id": "v",
|
|
3163
|
+
"type": "upload-video",
|
|
3164
|
+
"data": {
|
|
3165
|
+
"url": "https://cdn.example/v.mp4",
|
|
3166
|
+
"generatedResults": [
|
|
3167
|
+
{
|
|
3168
|
+
"url": "https://cdn.example/v.mp4",
|
|
3169
|
+
"duration": 10
|
|
3170
|
+
}
|
|
3171
|
+
],
|
|
3172
|
+
"activeResultIndex": 0
|
|
3173
|
+
}
|
|
3174
|
+
},
|
|
3175
|
+
{
|
|
3176
|
+
"id": "e",
|
|
3177
|
+
"type": "dubbing",
|
|
3178
|
+
"data": {}
|
|
3179
|
+
}
|
|
3180
|
+
],
|
|
3181
|
+
"edges": [
|
|
3182
|
+
{
|
|
3183
|
+
"source": "u",
|
|
3184
|
+
"target": "d",
|
|
3185
|
+
"targetHandle": "video"
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"source": "v",
|
|
3189
|
+
"target": "e",
|
|
3190
|
+
"targetHandle": "video"
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
"source": "d",
|
|
3194
|
+
"target": "t",
|
|
3195
|
+
"targetHandle": "in"
|
|
3196
|
+
},
|
|
3197
|
+
{
|
|
3198
|
+
"source": "e",
|
|
3199
|
+
"target": "t",
|
|
3200
|
+
"targetHandle": "in"
|
|
3201
|
+
}
|
|
3202
|
+
],
|
|
3203
|
+
"expectedUnits": {
|
|
3204
|
+
"whole": 4,
|
|
3205
|
+
"alone": 4
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
"name": "32b. Loop ×2 — a Dubbing of a 10 s upload: Loop measures the container, which runs further past the input: twice 10 s plus a quarter second less the grace, 20.2 s, 5 units",
|
|
3210
|
+
"step": "loop",
|
|
3211
|
+
"nodes": [
|
|
3212
|
+
{
|
|
3213
|
+
"id": "u",
|
|
3214
|
+
"type": "upload-video",
|
|
3215
|
+
"data": {
|
|
3216
|
+
"url": "https://cdn.example/u.mp4",
|
|
3217
|
+
"generatedResults": [
|
|
3218
|
+
{
|
|
3219
|
+
"url": "https://cdn.example/u.mp4",
|
|
3220
|
+
"duration": 10
|
|
3221
|
+
}
|
|
3222
|
+
],
|
|
3223
|
+
"activeResultIndex": 0
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
"id": "d",
|
|
3228
|
+
"type": "dubbing",
|
|
3229
|
+
"data": {}
|
|
3230
|
+
}
|
|
3231
|
+
],
|
|
3232
|
+
"edges": [
|
|
3233
|
+
{
|
|
3234
|
+
"source": "u",
|
|
3235
|
+
"target": "d",
|
|
3236
|
+
"targetHandle": "video"
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"source": "d",
|
|
3240
|
+
"target": "t",
|
|
3241
|
+
"targetHandle": "in"
|
|
3242
|
+
}
|
|
3243
|
+
],
|
|
3244
|
+
"expectedUnits": {
|
|
3245
|
+
"whole": 5,
|
|
3246
|
+
"alone": 5
|
|
3247
|
+
}
|
|
3137
3248
|
}
|
|
3138
3249
|
]
|
|
3139
3250
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest"
|
|
2
|
+
import {
|
|
3
|
+
EXTEND_VIDEO_PROVIDERS,
|
|
4
|
+
extendHasSoundSwitch,
|
|
5
|
+
getMaxVideoPromptChars,
|
|
6
|
+
isCatalogExtendProvider,
|
|
7
|
+
isSeedanceExtendProvider,
|
|
8
|
+
isTailExtendProvider,
|
|
9
|
+
refVideoAspectProblem,
|
|
10
|
+
} from "../model-constants.js"
|
|
11
|
+
import { MODEL_CATALOG } from "../model-catalog.js"
|
|
12
|
+
import { buildVideoCreditModelIdentifier, tailExtendCreditId, tailExtendResolution } from "../credit-identifiers.js"
|
|
13
|
+
import { geminiOmniExtendQuoteCreditId, parseGeminiOmniExtendQuoteCreditId } from "../gemini-omni-extend-quote.js"
|
|
14
|
+
import { isSeedanceExtendPricedBySecondsSent } from "../seedance-extend-rate.js"
|
|
15
|
+
import * as credits from "../entries/credits.js"
|
|
16
|
+
|
|
17
|
+
const P = "gemini-omni-flash-1-2-extend"
|
|
18
|
+
|
|
19
|
+
describe("Gemini Omni Flash 1.2 Extend: the provider", () => {
|
|
20
|
+
it("is a tail-recipe, catalog extend provider, listed after Kling 4, with no Seedance levers", () => {
|
|
21
|
+
const at = EXTEND_VIDEO_PROVIDERS.indexOf(P)
|
|
22
|
+
expect(EXTEND_VIDEO_PROVIDERS[at - 1]).toBe("kling-4-extend")
|
|
23
|
+
expect(isTailExtendProvider(P)).toBe(true)
|
|
24
|
+
expect(isCatalogExtendProvider(P)).toBe(true)
|
|
25
|
+
expect(isSeedanceExtendProvider(P)).toBe(false)
|
|
26
|
+
expect(extendHasSoundSwitch(P)).toBe(false)
|
|
27
|
+
expect(isSeedanceExtendPricedBySecondsSent(P)).toBe(false)
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
it("offers 3–10 s added at 360p / 720p / 1080p / 4K (default 8 s), made by Google, its default run first", () => {
|
|
31
|
+
const entry = MODEL_CATALOG[P]!
|
|
32
|
+
expect(entry.modes).toEqual(["extend"])
|
|
33
|
+
expect(entry.maker).toBe("google")
|
|
34
|
+
expect(entry.durations).toEqual([3, 4, 5, 6, 7, 8, 9, 10])
|
|
35
|
+
expect(entry.defaultDuration).toBe(8)
|
|
36
|
+
expect(entry.resolutions).toEqual(["360p", "720p", "1080p", "4k"])
|
|
37
|
+
expect(entry.pricing[0]!.identifier).toBe(tailExtendCreditId(P))
|
|
38
|
+
expect(entry.pricing[0]!.identifier).toBe("gemini-omni-flash-1-2-extend:720p:sent-10s:added-8s")
|
|
39
|
+
for (const row of entry.pricing) expect(parseGeminiOmniExtendQuoteCreditId(row.identifier), row.identifier).toBeDefined()
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
it("takes fal's 20000-character prompt; the plain Gemini Omni Flash 1.2 model's reference videos are untouched", () => {
|
|
43
|
+
expect(getMaxVideoPromptChars(P)).toBe(20000)
|
|
44
|
+
expect(refVideoAspectProblem("gemini-omni-flash-1-2", 640, 640)).toBeUndefined()
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
it("prices a resolution it renders as asked, any other at 720p", () => {
|
|
48
|
+
for (const res of ["360p", "720p", "1080p", "4k"]) expect(tailExtendResolution(P, res)).toBe(res)
|
|
49
|
+
for (const other of [undefined, "480p", "540p", "4K", "2160p"]) expect(tailExtendResolution(P, other)).toBe("720p")
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
// The one id of a whole run (decided 2026-11-17): both lengths and the resolution.
|
|
54
|
+
describe("geminiOmniExtendQuoteCreditId", () => {
|
|
55
|
+
it("names the resolution, the seconds sent (the overhang rule, at most 10) and the seconds added", () => {
|
|
56
|
+
expect(geminiOmniExtendQuoteCreditId({ sourcePictureSec: 4.37, duration: 3, resolution: "720p" })).toBe("gemini-omni-flash-1-2-extend:720p:sent-4.37s:added-3s")
|
|
57
|
+
expect(geminiOmniExtendQuoteCreditId({ sourcePictureSec: 4.06, duration: 3, resolution: "720p" })).toBe("gemini-omni-flash-1-2-extend:720p:sent-4s:added-3s")
|
|
58
|
+
expect(geminiOmniExtendQuoteCreditId({ sourcePictureSec: 42, duration: 5, resolution: "4k" })).toBe("gemini-omni-flash-1-2-extend:4k:sent-10s:added-5s")
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
it("an unknown source is the whole 10 s window; no length is 8 s; another resolution is 720p; a length outside 3–10 is held in it", () => {
|
|
62
|
+
expect(geminiOmniExtendQuoteCreditId({})).toBe("gemini-omni-flash-1-2-extend:720p:sent-10s:added-8s")
|
|
63
|
+
expect(geminiOmniExtendQuoteCreditId({ sourcePictureSec: null, duration: "12", resolution: "480p" })).toBe("gemini-omni-flash-1-2-extend:720p:sent-10s:added-10s")
|
|
64
|
+
expect(geminiOmniExtendQuoteCreditId({ sourcePictureSec: -1, duration: 2, resolution: "360p" })).toBe("gemini-omni-flash-1-2-extend:360p:sent-10s:added-3s")
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
it("is what tailExtendCreditId and buildVideoCreditModelIdentifier name for a run on an unknown source", () => {
|
|
68
|
+
expect(tailExtendCreditId(P, 5, "4k")).toBe(geminiOmniExtendQuoteCreditId({ duration: 5, resolution: "4k" }))
|
|
69
|
+
expect(buildVideoCreditModelIdentifier(P, 8, undefined, undefined, undefined, "1080p")).toBe("gemini-omni-flash-1-2-extend:1080p:sent-10s:added-8s")
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
it("uses no character a URL query or an id splitter reads specially", () => {
|
|
73
|
+
const id = geminiOmniExtendQuoteCreditId({ sourcePictureSec: 4.37, duration: 3, resolution: "4k" })
|
|
74
|
+
expect(id).toMatch(/^[a-z0-9.:-]+$/)
|
|
75
|
+
expect(encodeURIComponent(id)).toBe(id.replace(/:/g, "%3A"))
|
|
76
|
+
// Not a `<rate>:<N>u` quote id.
|
|
77
|
+
expect(id.endsWith("u")).toBe(false)
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
describe("parseGeminiOmniExtendQuoteCreditId", () => {
|
|
82
|
+
it("reads back what the builder wrote", () => {
|
|
83
|
+
for (const [src, dur, res] of [[4.37, 3, "720p"], [undefined, 8, "4k"], [6, 10, "360p"]] as const) {
|
|
84
|
+
const id = geminiOmniExtendQuoteCreditId({ sourcePictureSec: src, duration: dur, resolution: res })
|
|
85
|
+
expect(parseGeminiOmniExtendQuoteCreditId(id)).toEqual({ resolution: res, sentSec: src ?? 10, addedSec: dur })
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
it("answers nothing for any other shape", () => {
|
|
90
|
+
for (const id of [
|
|
91
|
+
"gemini-omni-flash-1-2-extend:720p:per-second",
|
|
92
|
+
"gemini-omni-flash-1-2-extend:8s:720p",
|
|
93
|
+
"gemini-omni-flash-1-2-extend:720p:sent-10s:added-8.5s",
|
|
94
|
+
"gemini-omni-flash-1-2-extend:720p:sent-0s:added-8s",
|
|
95
|
+
"gemini-omni-flash-1-2-extend:720p:sent-10s+added-8s",
|
|
96
|
+
"seedance-2-5-extend:720p:per-2s:9u",
|
|
97
|
+
"",
|
|
98
|
+
]) expect(parseGeminiOmniExtendQuoteCreditId(id), id).toBeUndefined()
|
|
99
|
+
})
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
// The irrevocable grant is kept minimal (decided 2026-11-17): the id builder,
|
|
103
|
+
// its reader and its parts' type; the rule, the rows and the shape check are
|
|
104
|
+
// the server's and the editor's (@nodaro/render-rules, backend).
|
|
105
|
+
describe("what @nodaro/shared exports for it", () => {
|
|
106
|
+
it("is the builder and the reader, nothing else of the engine", () => {
|
|
107
|
+
const names = Object.keys(credits).filter((k) => /gemini/i.test(k))
|
|
108
|
+
expect(names.sort()).toEqual(["geminiOmniExtendQuoteCreditId", "parseGeminiOmniExtendQuoteCreditId"])
|
|
109
|
+
})
|
|
110
|
+
})
|
|
@@ -55,6 +55,7 @@ describe("GVP_SUPPORTED_PROVIDERS", () => {
|
|
|
55
55
|
"seedance-2-fast",
|
|
56
56
|
"seedance-2-mini",
|
|
57
57
|
"seedance-2-5",
|
|
58
|
+
"seedance-2-5-flash",
|
|
58
59
|
"minimax-h3",
|
|
59
60
|
"veo3.1",
|
|
60
61
|
"veo3_lite",
|
|
@@ -186,6 +187,7 @@ describe("GVP_EXTEND_PROVIDERS", () => {
|
|
|
186
187
|
"seedance-2-fast",
|
|
187
188
|
"seedance-2-mini",
|
|
188
189
|
"seedance-2-5",
|
|
190
|
+
"seedance-2-5-flash",
|
|
189
191
|
"minimax-h3",
|
|
190
192
|
])
|
|
191
193
|
// Behaviour-neutral swap: the derived set is exactly what the old
|
|
@@ -236,6 +238,7 @@ describe("GVP_END_FRAME_PROVIDERS", () => {
|
|
|
236
238
|
"seedance-2-fast",
|
|
237
239
|
"seedance-2-mini",
|
|
238
240
|
"seedance-2-5",
|
|
241
|
+
"seedance-2-5-flash",
|
|
239
242
|
"minimax-h3",
|
|
240
243
|
// `veo3` is absent because GVP_END_FRAME_PROVIDERS is a subset of
|
|
241
244
|
// GVP_SUPPORTED_PROVIDERS, which VEO 3.1 Quality left — see above. The
|
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
getLipSyncMaxAudioSeconds,
|
|
5
5
|
isPerSecondLipSyncProvider,
|
|
6
6
|
buildLipSyncCreditId,
|
|
7
|
+
LIP_SYNC_CHARGED_AT_RUN_COST,
|
|
8
|
+
isLipSyncChargedAtRunCost,
|
|
7
9
|
} from "../lip-sync-pricing.js"
|
|
8
10
|
|
|
9
11
|
describe("pickLipSyncBucket", () => {
|
|
@@ -81,7 +83,26 @@ describe("isPerSecondLipSyncProvider", () => {
|
|
|
81
83
|
|
|
82
84
|
it("returns false for everything else", () => {
|
|
83
85
|
expect(isPerSecondLipSyncProvider("infinitalk")).toBe(false)
|
|
84
|
-
expect(isPerSecondLipSyncProvider("
|
|
86
|
+
expect(isPerSecondLipSyncProvider("seedance-2")).toBe(false)
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
it("flags LatentSync: its work grows with its audio's length", () => {
|
|
90
|
+
expect(isPerSecondLipSyncProvider("latentsync")).toBe(true)
|
|
91
|
+
expect(getLipSyncMaxAudioSeconds("latentsync")).toBe(300)
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
describe("models charged what the run used (the bucket row is their hold)", () => {
|
|
96
|
+
it("is LatentSync, and no other", () => {
|
|
97
|
+
expect([...LIP_SYNC_CHARGED_AT_RUN_COST]).toEqual(["latentsync"])
|
|
98
|
+
expect(isLipSyncChargedAtRunCost("latentsync")).toBe(true)
|
|
99
|
+
for (const p of ["kling-avatar", "lipsync-2-pro", "omnihuman-2-0", "infinitalk", undefined, 7]) {
|
|
100
|
+
expect(isLipSyncChargedAtRunCost(p), String(p)).toBe(false)
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
it("every member is a bucketed model: the hold is its bucket row", () => {
|
|
105
|
+
for (const p of LIP_SYNC_CHARGED_AT_RUN_COST) expect(isPerSecondLipSyncProvider(p), p).toBe(true)
|
|
85
106
|
})
|
|
86
107
|
})
|
|
87
108
|
|
|
@@ -123,7 +144,13 @@ describe("buildLipSyncCreditId", () => {
|
|
|
123
144
|
|
|
124
145
|
it("returns the bare provider for non-per-second models", () => {
|
|
125
146
|
expect(buildLipSyncCreditId("infinitalk", 10)).toBe("infinitalk")
|
|
126
|
-
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
it("emits composite IDs for LatentSync (its hold)", () => {
|
|
150
|
+
expect(buildLipSyncCreditId("latentsync", 12)).toBe("latentsync:15s")
|
|
151
|
+
expect(buildLipSyncCreditId("latentsync", 26.9)).toBe("latentsync:30s")
|
|
152
|
+
expect(buildLipSyncCreditId("latentsync", 999)).toBe("latentsync:300s")
|
|
153
|
+
expect(buildLipSyncCreditId("latentsync", undefined)).toBe("latentsync:300s")
|
|
127
154
|
})
|
|
128
155
|
})
|
|
129
156
|
|