@nodaro/shared 3.67.0 → 3.69.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-T4GIHHXY.cjs → chunk-25C2E2GI.cjs} +6 -6
- package/dist/{chunk-T4GIHHXY.cjs.map → chunk-25C2E2GI.cjs.map} +1 -1
- package/dist/{chunk-OXTF4Y3P.cjs → chunk-3AB3YIFM.cjs} +6 -6
- package/dist/{chunk-OXTF4Y3P.cjs.map → chunk-3AB3YIFM.cjs.map} +1 -1
- package/dist/{chunk-23IKLMRL.cjs → chunk-3OHRFSQL.cjs} +53 -51
- package/dist/{chunk-23IKLMRL.cjs.map → chunk-3OHRFSQL.cjs.map} +1 -1
- package/dist/{chunk-GNLA5NTT.cjs → chunk-4IMEJQVQ.cjs} +4 -4
- package/dist/{chunk-GNLA5NTT.cjs.map → chunk-4IMEJQVQ.cjs.map} +1 -1
- package/dist/{chunk-JTYCJ5OL.cjs → chunk-54E2JO4E.cjs} +100 -33
- package/dist/chunk-54E2JO4E.cjs.map +1 -0
- package/dist/{chunk-HTDKEYMY.cjs → chunk-5EQRIUGI.cjs} +139 -91
- package/dist/chunk-5EQRIUGI.cjs.map +1 -0
- package/dist/{chunk-AT53ZQUC.js → chunk-5WHU7CYE.js} +3 -3
- package/dist/{chunk-AT53ZQUC.js.map → chunk-5WHU7CYE.js.map} +1 -1
- package/dist/{chunk-BNR5FKL5.js → chunk-5ZCZL73I.js} +3 -3
- package/dist/{chunk-BNR5FKL5.js.map → chunk-5ZCZL73I.js.map} +1 -1
- package/dist/{chunk-6FQBKI2A.cjs → chunk-6JSYNKFL.cjs} +4 -4
- package/dist/{chunk-6FQBKI2A.cjs.map → chunk-6JSYNKFL.cjs.map} +1 -1
- package/dist/{chunk-WZG6GZIL.cjs → chunk-6QJHSN6J.cjs} +4 -4
- package/dist/{chunk-WZG6GZIL.cjs.map → chunk-6QJHSN6J.cjs.map} +1 -1
- package/dist/{chunk-OFQ6CU6S.js → chunk-7EQJIGVT.js} +3 -3
- package/dist/{chunk-OFQ6CU6S.js.map → chunk-7EQJIGVT.js.map} +1 -1
- package/dist/{chunk-XEPKONJC.js → chunk-7OSUEYZ4.js} +3 -3
- package/dist/{chunk-XEPKONJC.js.map → chunk-7OSUEYZ4.js.map} +1 -1
- package/dist/{chunk-3L7GMQ4M.cjs → chunk-7PC2YHBN.cjs} +54 -49
- package/dist/chunk-7PC2YHBN.cjs.map +1 -0
- package/dist/{chunk-BMDOPJBP.cjs → chunk-AGIG5HUU.cjs} +17 -17
- package/dist/{chunk-BMDOPJBP.cjs.map → chunk-AGIG5HUU.cjs.map} +1 -1
- package/dist/{chunk-5LWYX4GV.js → chunk-AH6OQXLW.js} +3 -3
- package/dist/{chunk-5LWYX4GV.js.map → chunk-AH6OQXLW.js.map} +1 -1
- package/dist/{chunk-RVQW623D.js → chunk-BDW25A7Y.js} +72 -18
- package/dist/chunk-BDW25A7Y.js.map +1 -0
- package/dist/{chunk-5J2LIQYU.js → chunk-DE55SA2X.js} +5 -5
- package/dist/{chunk-5J2LIQYU.js.map → chunk-DE55SA2X.js.map} +1 -1
- package/dist/{chunk-VBP4DH37.js → chunk-DNWFFVC6.js} +130 -15
- package/dist/chunk-DNWFFVC6.js.map +1 -0
- package/dist/{chunk-CLAKSLXF.js → chunk-E3PU7YC6.js} +3 -3
- package/dist/{chunk-CLAKSLXF.js.map → chunk-E3PU7YC6.js.map} +1 -1
- package/dist/{chunk-MVXZP6VB.js → chunk-FUYBUT65.js} +97 -2
- package/dist/chunk-FUYBUT65.js.map +1 -0
- package/dist/{chunk-SW5ZD7BO.js → chunk-G6AOKNAY.js} +3 -3
- package/dist/{chunk-SW5ZD7BO.js.map → chunk-G6AOKNAY.js.map} +1 -1
- package/dist/{chunk-EFYWV2V5.cjs → chunk-I6TBKTW3.cjs} +61 -61
- package/dist/{chunk-EFYWV2V5.cjs.map → chunk-I6TBKTW3.cjs.map} +1 -1
- package/dist/{chunk-3YWZ5SOZ.js → chunk-KLEKJUQI.js} +5 -5
- package/dist/{chunk-3YWZ5SOZ.js.map → chunk-KLEKJUQI.js.map} +1 -1
- package/dist/{chunk-OXBU5AGH.js → chunk-LSX2OFNB.js} +3 -3
- package/dist/{chunk-OXBU5AGH.js.map → chunk-LSX2OFNB.js.map} +1 -1
- package/dist/{chunk-66QSUUB4.cjs → chunk-LY6IR5LL.cjs} +12 -12
- package/dist/{chunk-66QSUUB4.cjs.map → chunk-LY6IR5LL.cjs.map} +1 -1
- package/dist/{chunk-5GG4CG4Y.js → chunk-LZPG4XHT.js} +3 -3
- package/dist/{chunk-5GG4CG4Y.js.map → chunk-LZPG4XHT.js.map} +1 -1
- package/dist/{chunk-PGDR7CO3.cjs → chunk-MGSGLRHZ.cjs} +8 -8
- package/dist/{chunk-PGDR7CO3.cjs.map → chunk-MGSGLRHZ.cjs.map} +1 -1
- package/dist/{chunk-Z77M7Q2R.js → chunk-ML55U7WM.js} +3 -3
- package/dist/{chunk-Z77M7Q2R.js.map → chunk-ML55U7WM.js.map} +1 -1
- package/dist/{chunk-ALRXY4QH.cjs → chunk-N7ZJD4CK.cjs} +6 -2
- package/dist/chunk-N7ZJD4CK.cjs.map +1 -0
- package/dist/{chunk-O2QOBA6Q.js → chunk-NPGP6FMU.js} +43 -3
- package/dist/chunk-NPGP6FMU.js.map +1 -0
- package/dist/{chunk-IWUW3YPM.cjs → chunk-NTCSXKZ3.cjs} +5 -5
- package/dist/{chunk-IWUW3YPM.cjs.map → chunk-NTCSXKZ3.cjs.map} +1 -1
- package/dist/chunk-NWNRATS3.js +13 -0
- package/dist/chunk-NWNRATS3.js.map +1 -0
- package/dist/{chunk-SCDE676D.js → chunk-OEOOXL3F.js} +65 -23
- package/dist/chunk-OEOOXL3F.js.map +1 -0
- package/dist/{chunk-GF7ZA26H.js → chunk-OOUJZR4K.js} +4 -4
- package/dist/{chunk-GF7ZA26H.js.map → chunk-OOUJZR4K.js.map} +1 -1
- package/dist/{chunk-5IZHECUP.js → chunk-OZA4DE23.js} +3 -3
- package/dist/{chunk-5IZHECUP.js.map → chunk-OZA4DE23.js.map} +1 -1
- package/dist/{chunk-GTBW2KAY.js → chunk-PHQVAPSD.js} +8 -6
- package/dist/{chunk-GTBW2KAY.js.map → chunk-PHQVAPSD.js.map} +1 -1
- package/dist/{chunk-5NVGKXJV.cjs → chunk-PLANUXQL.cjs} +89 -3
- package/dist/chunk-PLANUXQL.cjs.map +1 -0
- package/dist/{chunk-ZQ2BHOFH.cjs → chunk-Q2LEJXLZ.cjs} +6 -6
- package/dist/{chunk-ZQ2BHOFH.cjs.map → chunk-Q2LEJXLZ.cjs.map} +1 -1
- package/dist/{chunk-PJAJCFLP.cjs → chunk-QNPYYSLT.cjs} +168 -44
- package/dist/chunk-QNPYYSLT.cjs.map +1 -0
- package/dist/{chunk-G2G7XGFU.cjs → chunk-RURPG6IS.cjs} +7 -7
- package/dist/{chunk-G2G7XGFU.cjs.map → chunk-RURPG6IS.cjs.map} +1 -1
- package/dist/{chunk-PAUWEWTY.js → chunk-TDU45K6Z.js} +12 -7
- package/dist/chunk-TDU45K6Z.js.map +1 -0
- package/dist/{chunk-X2YHKP4D.cjs → chunk-TWUFC32F.cjs} +8 -8
- package/dist/{chunk-X2YHKP4D.cjs.map → chunk-TWUFC32F.cjs.map} +1 -1
- package/dist/{chunk-O6TBB4IF.cjs → chunk-TZWXZDSX.cjs} +48 -2
- package/dist/chunk-TZWXZDSX.cjs.map +1 -0
- package/dist/{chunk-F6XIH3TZ.cjs → chunk-UJREE6EQ.cjs} +9 -9
- package/dist/{chunk-F6XIH3TZ.cjs.map → chunk-UJREE6EQ.cjs.map} +1 -1
- package/dist/{chunk-CFTXW3ZL.js → chunk-UVUHVY7F.js} +3 -3
- package/dist/{chunk-CFTXW3ZL.js.map → chunk-UVUHVY7F.js.map} +1 -1
- package/dist/{chunk-37ZSFS6A.cjs → chunk-WML66SUV.cjs} +9 -9
- package/dist/{chunk-37ZSFS6A.cjs.map → chunk-WML66SUV.cjs.map} +1 -1
- package/dist/{chunk-M5QY464F.cjs → chunk-XZYZYWKG.cjs} +21 -21
- package/dist/{chunk-M5QY464F.cjs.map → chunk-XZYZYWKG.cjs.map} +1 -1
- package/dist/{chunk-3QJ3UR5Z.js → chunk-YT4ZTJVC.js} +9 -9
- package/dist/{chunk-3QJ3UR5Z.js.map → chunk-YT4ZTJVC.js.map} +1 -1
- package/dist/{chunk-V6OXSXIX.js → chunk-YVQFYW2U.js} +86 -4
- package/dist/chunk-YVQFYW2U.js.map +1 -0
- package/dist/{chunk-E62W5I6A.cjs → chunk-ZWEVRMFN.cjs} +97 -2
- package/dist/chunk-ZWEVRMFN.cjs.map +1 -0
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +295 -219
- package/dist/entries/credits.d.cts +233 -70
- package/dist/entries/credits.d.ts +233 -70
- package/dist/entries/credits.js +11 -11
- package/dist/entries/llm-models.cjs +84 -68
- package/dist/entries/llm-models.d.cts +36 -3
- package/dist/entries/llm-models.d.ts +36 -3
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +111 -107
- package/dist/entries/media.d.cts +17 -2
- package/dist/entries/media.d.ts +17 -2
- package/dist/entries/media.js +3 -3
- package/dist/entries/model-catalog.cjs +133 -133
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +433 -397
- package/dist/entries/models.d.cts +2 -2
- package/dist/entries/models.d.ts +2 -2
- package/dist/entries/models.js +8 -8
- package/dist/entries/nodes.cjs +212 -212
- package/dist/entries/nodes.js +8 -8
- 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/runtime-config.cjs +53 -29
- package/dist/entries/runtime-config.d.cts +53 -1
- package/dist/entries/runtime-config.d.ts +53 -1
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/types.d.cts +12 -5
- package/dist/entries/types.d.ts +12 -5
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +152 -152
- package/dist/entries/video.d.cts +2 -1
- package/dist/entries/video.d.ts +2 -1
- package/dist/entries/video.js +6 -6
- package/dist/index.cjs +1882 -1726
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +25 -25
- 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__/add-captions-nemotron-pricing.test.ts +13 -1
- package/src/__tests__/extend-providers.test.ts +43 -6
- package/src/__tests__/fixtures/measured-input-quote-parity.json +2352 -1
- package/src/__tests__/fixtures/planned-length-quote-parity.json +100 -10
- package/src/__tests__/fixtures/probed-node-quote-parity.json +132 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +945 -38
- package/src/__tests__/gemini-omni-extend.test.ts +110 -0
- package/src/__tests__/gvp-supported-providers.test.ts +3 -0
- package/src/__tests__/llm-models.test.ts +116 -2
- package/src/__tests__/llm-price-key.test.ts +2 -0
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +32 -0
- package/src/__tests__/runtime-config-lists.test.ts +92 -0
- package/src/__tests__/seedance-2-5-flash-catalog.test.ts +194 -0
- package/src/__tests__/video-character-refs.test.ts +48 -0
- package/src/catalog-projection.ts +12 -5
- package/src/credit-estimators/add-captions-nemotron.ts +11 -1
- package/src/credit-estimators/index.ts +6 -1
- package/src/credit-estimators/nemotron-transcribe.ts +35 -3
- package/src/credit-estimators/pitch-tempo.ts +14 -0
- package/src/credit-estimators/video-sfx.ts +15 -0
- package/src/credit-estimators/video-utils.ts +48 -12
- package/src/credit-identifiers.ts +51 -32
- package/src/entries/credits.ts +18 -0
- package/src/entries/llm-models.ts +4 -0
- package/src/entries/models.ts +11 -0
- package/src/entries/runtime-config.ts +10 -1
- package/src/gemini-omni-extend-quote.ts +76 -0
- package/src/lip-sync-pricing.ts +16 -1
- package/src/llm-models.ts +117 -2
- package/src/model-catalog.ts +95 -0
- package/src/model-constants.ts +274 -11
- package/src/node-default-mappings.ts +2 -0
- package/src/priced-clip-seconds.ts +19 -1
- package/src/runtime-config/lists.ts +87 -0
- package/src/runtime-config/worlds.ts +10 -0
- package/src/seedance-extend-rate.ts +83 -20
- package/src/seedance-lip-sync.ts +68 -0
- package/src/video-character-refs.ts +26 -6
- package/dist/chunk-3L7GMQ4M.cjs.map +0 -1
- package/dist/chunk-5NVGKXJV.cjs.map +0 -1
- package/dist/chunk-ALRXY4QH.cjs.map +0 -1
- package/dist/chunk-E62W5I6A.cjs.map +0 -1
- package/dist/chunk-HTDKEYMY.cjs.map +0 -1
- package/dist/chunk-JTYCJ5OL.cjs.map +0 -1
- package/dist/chunk-MVXZP6VB.js.map +0 -1
- package/dist/chunk-O2QOBA6Q.js.map +0 -1
- package/dist/chunk-O6TBB4IF.cjs.map +0 -1
- package/dist/chunk-PAUWEWTY.js.map +0 -1
- package/dist/chunk-PJAJCFLP.cjs.map +0 -1
- package/dist/chunk-RVQW623D.js.map +0 -1
- package/dist/chunk-SCDE676D.js.map +0 -1
- package/dist/chunk-SMOO5FAH.js +0 -10
- package/dist/chunk-SMOO5FAH.js.map +0 -1
- package/dist/chunk-V6OXSXIX.js.map +0 -1
- package/dist/chunk-VBP4DH37.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Mask Composite's and Video Overlay's quote before a run when what reaches them is made by another node — read by BOTH estimates over the same graphs, through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules): the editor's (frontend maskCompositePricingUnits / videoOverlayPricingUnits — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the composite's own line). Each case wires its sources into the step `c` (an edge with no `target` goes into `c`), which is a Mask Composite with default settings, or a Video Overlay with one stored video layer (so it quotes on its video row) and the case's `video` wire as its base. `expectedUnits` holds the 5-second units both quote, for two run sets (and, where a case gives `partial`, a third: exactly its `runSet`, passed as the editor's run set and the server's `runNodeIds`): `whole` (the editor's whole-run badge and confirm, which pass every executable node, frozen ones included; the server's estimate with no run set, which leaves frozen nodes out) and `alone` (the step's own Run and its pill on the editor; a server run of only `c`). Mask Composite's cap is 60 units (300 s), Video Overlay's 12 (60 s). A video made in the run is read at its planned length plus each step's slack once for every clip a node makes on the way (0.
|
|
2
|
+
"$comment": "Mask Composite's and Video Overlay's quote before a run when what reaches them is made by another node — read by BOTH estimates over the same graphs, through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules): the editor's (frontend maskCompositePricingUnits / videoOverlayPricingUnits — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the composite's own line). Each case wires its sources into the step `c` (an edge with no `target` goes into `c`), which is a Mask Composite with default settings, or a Video Overlay with one stored video layer (so it quotes on its video row) and the case's `video` wire as its base. `expectedUnits` holds the 5-second units both quote, for two run sets (and, where a case gives `partial`, a third: exactly its `runSet`, passed as the editor's run set and the server's `runNodeIds`): `whole` (the editor's whole-run badge and confirm, which pass every executable node, frozen ones included; the server's estimate with no run set, which leaves frozen nodes out) and `alone` (the step's own Run and its pill on the editor; a server run of only `c`). Mask Composite's cap is 60 units (300 s), Video Overlay's 12 (60 s). A video made in the run is read at its planned length plus each step's slack once for every clip a node makes on the way (0.15 s on Mask Composite, which charges the container and forgives the same 0.05 s on its quote and its charge; 1/24 s on Video Overlay, which charges the video stream; a quarter second on both after a PixVerse V6 extension, whose file runs further past its planned length, picture and sound; after a Dubbing or an Audio Isolation a quarter second on Mask Composite only, since a dub keeps its input's video stream exactly and Video Overlay charges the stream) — a step that only passes its input on adds none; a node that does not run hands on its take, at the length recorded with it.",
|
|
3
3
|
"cases": [
|
|
4
4
|
{
|
|
5
5
|
"name": "1. Generate Video on Kling 4.0 set to 5 s, never run: 5 s planned, plus the slack",
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
|
-
"name": "2d. A 10 s upload extended on PixVerse V6 set to 5 s: 15 s, plus
|
|
357
|
+
"name": "2d. A 10 s upload extended on PixVerse V6 set to 5 s: 15 s, plus a quarter second on both steps (a PixVerse V6 extension runs further past its length than Seedance 2.5's): 15.25 s, a unit past Video Overlay's 15 s",
|
|
358
358
|
"nodes": [
|
|
359
359
|
{
|
|
360
360
|
"id": "u",
|
|
@@ -393,16 +393,16 @@
|
|
|
393
393
|
"expectedUnits": {
|
|
394
394
|
"whole": {
|
|
395
395
|
"maskComposite": 4,
|
|
396
|
-
"videoOverlay":
|
|
396
|
+
"videoOverlay": 4
|
|
397
397
|
},
|
|
398
398
|
"alone": {
|
|
399
399
|
"maskComposite": 4,
|
|
400
|
-
"videoOverlay":
|
|
400
|
+
"videoOverlay": 4
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
|
-
"name": "2e. PixVerse V6 set to 40 s is held to its 15 s: a 10 s upload reads 25 s, plus
|
|
405
|
+
"name": "2e. PixVerse V6 set to 40 s is held to its 15 s: a 10 s upload reads 25 s, plus a quarter second: 25.25 s",
|
|
406
406
|
"nodes": [
|
|
407
407
|
{
|
|
408
408
|
"id": "u",
|
|
@@ -441,16 +441,16 @@
|
|
|
441
441
|
"expectedUnits": {
|
|
442
442
|
"whole": {
|
|
443
443
|
"maskComposite": 6,
|
|
444
|
-
"videoOverlay":
|
|
444
|
+
"videoOverlay": 6
|
|
445
445
|
},
|
|
446
446
|
"alone": {
|
|
447
447
|
"maskComposite": 6,
|
|
448
|
-
"videoOverlay":
|
|
448
|
+
"videoOverlay": 6
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
|
-
"name": "2f. PixVerse V6 with no length set adds its default 5 s: a 30 s upload reads 35 s, plus
|
|
453
|
+
"name": "2f. PixVerse V6 with no length set adds its default 5 s: a 30 s upload reads 35 s, plus a quarter second: 35.25 s",
|
|
454
454
|
"nodes": [
|
|
455
455
|
{
|
|
456
456
|
"id": "u",
|
|
@@ -488,11 +488,11 @@
|
|
|
488
488
|
"expectedUnits": {
|
|
489
489
|
"whole": {
|
|
490
490
|
"maskComposite": 8,
|
|
491
|
-
"videoOverlay":
|
|
491
|
+
"videoOverlay": 8
|
|
492
492
|
},
|
|
493
493
|
"alone": {
|
|
494
494
|
"maskComposite": 8,
|
|
495
|
-
"videoOverlay":
|
|
495
|
+
"videoOverlay": 8
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
},
|
|
@@ -633,6 +633,96 @@
|
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
|
+
{
|
|
637
|
+
"name": "2j. A Dubbing of a 10 s video upload: its sound runs further past its input, its picture does not — Mask Composite (the container) reads 10.25 s, 3 units; Video Overlay (the video stream, which a dub keeps exactly) keeps its frame, 10.04 s, 2 units",
|
|
638
|
+
"nodes": [
|
|
639
|
+
{
|
|
640
|
+
"id": "u",
|
|
641
|
+
"type": "upload-video",
|
|
642
|
+
"data": {
|
|
643
|
+
"url": "https://cdn.example/u.mp4",
|
|
644
|
+
"generatedResults": [
|
|
645
|
+
{
|
|
646
|
+
"url": "https://cdn.example/u.mp4",
|
|
647
|
+
"duration": 10
|
|
648
|
+
}
|
|
649
|
+
],
|
|
650
|
+
"activeResultIndex": 0
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"id": "d",
|
|
655
|
+
"type": "dubbing",
|
|
656
|
+
"data": {}
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"edges": [
|
|
660
|
+
{
|
|
661
|
+
"source": "u",
|
|
662
|
+
"target": "d",
|
|
663
|
+
"targetHandle": "video"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"source": "d",
|
|
667
|
+
"targetHandle": "video"
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
"expectedUnits": {
|
|
671
|
+
"whole": {
|
|
672
|
+
"maskComposite": 3,
|
|
673
|
+
"videoOverlay": 2
|
|
674
|
+
},
|
|
675
|
+
"alone": {
|
|
676
|
+
"maskComposite": 3,
|
|
677
|
+
"videoOverlay": 2
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "2k. A Face Swap of a 9.92 s video upload: a new clip, read at its input plus each step's slack — Mask Composite (the container, its quote and charge forgiving the same 0.05 s) the whole 0.15 s a made clip's container can run past: 10.07 s, 3 units; Video Overlay (the video stream) its frame, 9.96 s, 2 units",
|
|
683
|
+
"nodes": [
|
|
684
|
+
{
|
|
685
|
+
"id": "u",
|
|
686
|
+
"type": "upload-video",
|
|
687
|
+
"data": {
|
|
688
|
+
"url": "https://cdn.example/u.mp4",
|
|
689
|
+
"generatedResults": [
|
|
690
|
+
{
|
|
691
|
+
"url": "https://cdn.example/u.mp4",
|
|
692
|
+
"duration": 9.92
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"activeResultIndex": 0
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"id": "f",
|
|
700
|
+
"type": "face-swap",
|
|
701
|
+
"data": {}
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"edges": [
|
|
705
|
+
{
|
|
706
|
+
"source": "u",
|
|
707
|
+
"target": "f",
|
|
708
|
+
"targetHandle": "video"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"source": "f",
|
|
712
|
+
"targetHandle": "video"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"expectedUnits": {
|
|
716
|
+
"whole": {
|
|
717
|
+
"maskComposite": 3,
|
|
718
|
+
"videoOverlay": 2
|
|
719
|
+
},
|
|
720
|
+
"alone": {
|
|
721
|
+
"maskComposite": 3,
|
|
722
|
+
"videoOverlay": 2
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
636
726
|
{
|
|
637
727
|
"name": "3. A generation with an old 5.042 s take, now set to 10 s: re-run, its 10 s; not run, the take it hands on",
|
|
638
728
|
"nodes": [
|
|
@@ -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
|
+
}
|