@nodaro/shared 3.68.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.
Files changed (157) hide show
  1. package/dist/{chunk-T4GIHHXY.cjs → chunk-25C2E2GI.cjs} +6 -6
  2. package/dist/{chunk-T4GIHHXY.cjs.map → chunk-25C2E2GI.cjs.map} +1 -1
  3. package/dist/{chunk-OXTF4Y3P.cjs → chunk-3AB3YIFM.cjs} +6 -6
  4. package/dist/{chunk-OXTF4Y3P.cjs.map → chunk-3AB3YIFM.cjs.map} +1 -1
  5. package/dist/{chunk-BCY3A62O.cjs → chunk-3OHRFSQL.cjs} +51 -49
  6. package/dist/{chunk-BCY3A62O.cjs.map → chunk-3OHRFSQL.cjs.map} +1 -1
  7. package/dist/{chunk-GNLA5NTT.cjs → chunk-4IMEJQVQ.cjs} +4 -4
  8. package/dist/{chunk-GNLA5NTT.cjs.map → chunk-4IMEJQVQ.cjs.map} +1 -1
  9. package/dist/{chunk-4XR66IWF.cjs → chunk-54E2JO4E.cjs} +51 -22
  10. package/dist/chunk-54E2JO4E.cjs.map +1 -0
  11. package/dist/{chunk-HTDKEYMY.cjs → chunk-5EQRIUGI.cjs} +139 -91
  12. package/dist/chunk-5EQRIUGI.cjs.map +1 -0
  13. package/dist/{chunk-AT53ZQUC.js → chunk-5WHU7CYE.js} +3 -3
  14. package/dist/{chunk-AT53ZQUC.js.map → chunk-5WHU7CYE.js.map} +1 -1
  15. package/dist/{chunk-BNR5FKL5.js → chunk-5ZCZL73I.js} +3 -3
  16. package/dist/{chunk-BNR5FKL5.js.map → chunk-5ZCZL73I.js.map} +1 -1
  17. package/dist/{chunk-WZG6GZIL.cjs → chunk-6QJHSN6J.cjs} +4 -4
  18. package/dist/{chunk-WZG6GZIL.cjs.map → chunk-6QJHSN6J.cjs.map} +1 -1
  19. package/dist/{chunk-OFQ6CU6S.js → chunk-7EQJIGVT.js} +3 -3
  20. package/dist/{chunk-OFQ6CU6S.js.map → chunk-7EQJIGVT.js.map} +1 -1
  21. package/dist/{chunk-XEPKONJC.js → chunk-7OSUEYZ4.js} +3 -3
  22. package/dist/{chunk-XEPKONJC.js.map → chunk-7OSUEYZ4.js.map} +1 -1
  23. package/dist/{chunk-3L7GMQ4M.cjs → chunk-7PC2YHBN.cjs} +54 -49
  24. package/dist/chunk-7PC2YHBN.cjs.map +1 -0
  25. package/dist/{chunk-BMDOPJBP.cjs → chunk-AGIG5HUU.cjs} +17 -17
  26. package/dist/{chunk-BMDOPJBP.cjs.map → chunk-AGIG5HUU.cjs.map} +1 -1
  27. package/dist/{chunk-5LWYX4GV.js → chunk-AH6OQXLW.js} +3 -3
  28. package/dist/{chunk-5LWYX4GV.js.map → chunk-AH6OQXLW.js.map} +1 -1
  29. package/dist/{chunk-BHL7TAQO.js → chunk-BDW25A7Y.js} +32 -9
  30. package/dist/chunk-BDW25A7Y.js.map +1 -0
  31. package/dist/{chunk-5J2LIQYU.js → chunk-DE55SA2X.js} +5 -5
  32. package/dist/{chunk-5J2LIQYU.js.map → chunk-DE55SA2X.js.map} +1 -1
  33. package/dist/{chunk-VBP4DH37.js → chunk-DNWFFVC6.js} +130 -15
  34. package/dist/chunk-DNWFFVC6.js.map +1 -0
  35. package/dist/{chunk-MVXZP6VB.js → chunk-FUYBUT65.js} +97 -2
  36. package/dist/chunk-FUYBUT65.js.map +1 -0
  37. package/dist/{chunk-SW5ZD7BO.js → chunk-G6AOKNAY.js} +3 -3
  38. package/dist/{chunk-SW5ZD7BO.js.map → chunk-G6AOKNAY.js.map} +1 -1
  39. package/dist/{chunk-EFYWV2V5.cjs → chunk-I6TBKTW3.cjs} +61 -61
  40. package/dist/{chunk-EFYWV2V5.cjs.map → chunk-I6TBKTW3.cjs.map} +1 -1
  41. package/dist/{chunk-3YWZ5SOZ.js → chunk-KLEKJUQI.js} +5 -5
  42. package/dist/{chunk-3YWZ5SOZ.js.map → chunk-KLEKJUQI.js.map} +1 -1
  43. package/dist/{chunk-OXBU5AGH.js → chunk-LSX2OFNB.js} +3 -3
  44. package/dist/{chunk-OXBU5AGH.js.map → chunk-LSX2OFNB.js.map} +1 -1
  45. package/dist/{chunk-66QSUUB4.cjs → chunk-LY6IR5LL.cjs} +12 -12
  46. package/dist/{chunk-66QSUUB4.cjs.map → chunk-LY6IR5LL.cjs.map} +1 -1
  47. package/dist/{chunk-5GG4CG4Y.js → chunk-LZPG4XHT.js} +3 -3
  48. package/dist/{chunk-5GG4CG4Y.js.map → chunk-LZPG4XHT.js.map} +1 -1
  49. package/dist/{chunk-PGDR7CO3.cjs → chunk-MGSGLRHZ.cjs} +8 -8
  50. package/dist/{chunk-PGDR7CO3.cjs.map → chunk-MGSGLRHZ.cjs.map} +1 -1
  51. package/dist/{chunk-Z77M7Q2R.js → chunk-ML55U7WM.js} +3 -3
  52. package/dist/{chunk-Z77M7Q2R.js.map → chunk-ML55U7WM.js.map} +1 -1
  53. package/dist/{chunk-IWUW3YPM.cjs → chunk-NTCSXKZ3.cjs} +5 -5
  54. package/dist/{chunk-IWUW3YPM.cjs.map → chunk-NTCSXKZ3.cjs.map} +1 -1
  55. package/dist/{chunk-SCDE676D.js → chunk-OEOOXL3F.js} +65 -23
  56. package/dist/chunk-OEOOXL3F.js.map +1 -0
  57. package/dist/{chunk-GF7ZA26H.js → chunk-OOUJZR4K.js} +4 -4
  58. package/dist/{chunk-GF7ZA26H.js.map → chunk-OOUJZR4K.js.map} +1 -1
  59. package/dist/{chunk-5IZHECUP.js → chunk-OZA4DE23.js} +3 -3
  60. package/dist/{chunk-5IZHECUP.js.map → chunk-OZA4DE23.js.map} +1 -1
  61. package/dist/{chunk-XNJDAW3M.js → chunk-PHQVAPSD.js} +7 -5
  62. package/dist/{chunk-XNJDAW3M.js.map → chunk-PHQVAPSD.js.map} +1 -1
  63. package/dist/{chunk-5NVGKXJV.cjs → chunk-PLANUXQL.cjs} +89 -3
  64. package/dist/chunk-PLANUXQL.cjs.map +1 -0
  65. package/dist/{chunk-PJAJCFLP.cjs → chunk-QNPYYSLT.cjs} +168 -44
  66. package/dist/chunk-QNPYYSLT.cjs.map +1 -0
  67. package/dist/{chunk-G2G7XGFU.cjs → chunk-RURPG6IS.cjs} +7 -7
  68. package/dist/{chunk-G2G7XGFU.cjs.map → chunk-RURPG6IS.cjs.map} +1 -1
  69. package/dist/{chunk-PAUWEWTY.js → chunk-TDU45K6Z.js} +12 -7
  70. package/dist/chunk-TDU45K6Z.js.map +1 -0
  71. package/dist/{chunk-X2YHKP4D.cjs → chunk-TWUFC32F.cjs} +8 -8
  72. package/dist/{chunk-X2YHKP4D.cjs.map → chunk-TWUFC32F.cjs.map} +1 -1
  73. package/dist/{chunk-F6XIH3TZ.cjs → chunk-UJREE6EQ.cjs} +9 -9
  74. package/dist/{chunk-F6XIH3TZ.cjs.map → chunk-UJREE6EQ.cjs.map} +1 -1
  75. package/dist/{chunk-37ZSFS6A.cjs → chunk-WML66SUV.cjs} +9 -9
  76. package/dist/{chunk-37ZSFS6A.cjs.map → chunk-WML66SUV.cjs.map} +1 -1
  77. package/dist/{chunk-M5QY464F.cjs → chunk-XZYZYWKG.cjs} +21 -21
  78. package/dist/{chunk-M5QY464F.cjs.map → chunk-XZYZYWKG.cjs.map} +1 -1
  79. package/dist/{chunk-3QJ3UR5Z.js → chunk-YT4ZTJVC.js} +9 -9
  80. package/dist/{chunk-3QJ3UR5Z.js.map → chunk-YT4ZTJVC.js.map} +1 -1
  81. package/dist/{chunk-V6OXSXIX.js → chunk-YVQFYW2U.js} +86 -4
  82. package/dist/chunk-YVQFYW2U.js.map +1 -0
  83. package/dist/{chunk-E62W5I6A.cjs → chunk-ZWEVRMFN.cjs} +97 -2
  84. package/dist/chunk-ZWEVRMFN.cjs.map +1 -0
  85. package/dist/entries/apps.cjs +42 -42
  86. package/dist/entries/apps.js +7 -7
  87. package/dist/entries/credits.cjs +273 -225
  88. package/dist/entries/credits.d.cts +152 -66
  89. package/dist/entries/credits.d.ts +152 -66
  90. package/dist/entries/credits.js +10 -10
  91. package/dist/entries/llm-models.cjs +84 -68
  92. package/dist/entries/llm-models.d.cts +36 -3
  93. package/dist/entries/llm-models.d.ts +36 -3
  94. package/dist/entries/llm-models.js +2 -2
  95. package/dist/entries/model-catalog.cjs +133 -133
  96. package/dist/entries/model-catalog.js +4 -4
  97. package/dist/entries/models.cjs +431 -395
  98. package/dist/entries/models.d.cts +2 -2
  99. package/dist/entries/models.d.ts +2 -2
  100. package/dist/entries/models.js +6 -6
  101. package/dist/entries/nodes.cjs +212 -212
  102. package/dist/entries/nodes.js +8 -8
  103. package/dist/entries/pipeline.cjs +153 -153
  104. package/dist/entries/pipeline.d.cts +1 -1
  105. package/dist/entries/pipeline.d.ts +1 -1
  106. package/dist/entries/pipeline.js +3 -3
  107. package/dist/entries/social.cjs +177 -177
  108. package/dist/entries/social.js +2 -2
  109. package/dist/entries/ugc.cjs +71 -71
  110. package/dist/entries/ugc.js +4 -4
  111. package/dist/entries/video.cjs +152 -152
  112. package/dist/entries/video.d.cts +2 -1
  113. package/dist/entries/video.d.ts +2 -1
  114. package/dist/entries/video.js +6 -6
  115. package/dist/index.cjs +1697 -1597
  116. package/dist/index.d.cts +3 -3
  117. package/dist/index.d.ts +3 -3
  118. package/dist/index.js +21 -21
  119. package/dist/{model-constants-DZ3tPGFO.d.ts → model-constants-B5DNHIP8.d.ts} +156 -12
  120. package/dist/{model-constants-BstsUup6.d.cts → model-constants-CQr_d3Kw.d.cts} +156 -12
  121. package/package.json +1 -1
  122. package/src/__tests__/extend-providers.test.ts +43 -6
  123. package/src/__tests__/fixtures/measured-input-quote-parity.json +537 -1
  124. package/src/__tests__/fixtures/planned-length-quote-parity.json +46 -1
  125. package/src/__tests__/fixtures/probed-node-quote-parity.json +132 -0
  126. package/src/__tests__/fixtures/video-utility-quote-parity.json +112 -1
  127. package/src/__tests__/gemini-omni-extend.test.ts +110 -0
  128. package/src/__tests__/gvp-supported-providers.test.ts +3 -0
  129. package/src/__tests__/llm-models.test.ts +116 -2
  130. package/src/__tests__/llm-price-key.test.ts +2 -0
  131. package/src/__tests__/seedance-2-5-flash-catalog.test.ts +194 -0
  132. package/src/__tests__/video-character-refs.test.ts +48 -0
  133. package/src/credit-identifiers.ts +51 -32
  134. package/src/entries/credits.ts +17 -0
  135. package/src/entries/llm-models.ts +4 -0
  136. package/src/entries/models.ts +11 -0
  137. package/src/gemini-omni-extend-quote.ts +76 -0
  138. package/src/lip-sync-pricing.ts +1 -1
  139. package/src/llm-models.ts +117 -2
  140. package/src/model-catalog.ts +95 -0
  141. package/src/model-constants.ts +274 -11
  142. package/src/node-default-mappings.ts +2 -0
  143. package/src/seedance-extend-rate.ts +83 -20
  144. package/src/seedance-lip-sync.ts +68 -0
  145. package/src/video-character-refs.ts +26 -6
  146. package/dist/chunk-3L7GMQ4M.cjs.map +0 -1
  147. package/dist/chunk-4XR66IWF.cjs.map +0 -1
  148. package/dist/chunk-5NVGKXJV.cjs.map +0 -1
  149. package/dist/chunk-BHL7TAQO.js.map +0 -1
  150. package/dist/chunk-E62W5I6A.cjs.map +0 -1
  151. package/dist/chunk-HTDKEYMY.cjs.map +0 -1
  152. package/dist/chunk-MVXZP6VB.js.map +0 -1
  153. package/dist/chunk-PAUWEWTY.js.map +0 -1
  154. package/dist/chunk-PJAJCFLP.cjs.map +0 -1
  155. package/dist/chunk-SCDE676D.js.map +0 -1
  156. package/dist/chunk-V6OXSXIX.js.map +0 -1
  157. package/dist/chunk-VBP4DH37.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "$comment": "The quote before a run of the seven steps whose run measures the file it is given — Video SFX, Video Mask, Video Depth, Pitch & Tempo, Dubbing, and Video Upscale on each of its two measuring models (`topaz`, and `nodaroUpscale`, the per-second model) — read by BOTH estimates over the same graphs through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules) with each step's slack (`MEASURED_INPUT_PLANNED_CLIP_SLACK_SEC`: 0.1 s on each clip a node makes for the five that measure the container, one 24 fps frame for both Video Upscale steps: one hold counts the video stream's frames, the other bills the clip's seconds rounded up, so any slack under a second is the same figure there; a quarter second on every step after a PixVerse V6 extension, and after a Dubbing or an Audio Isolation on every step that measures the container — `LONG_OVERSHOOT_PLANNED_CLIP_SLACK_SEC`; both Video Upscale steps measure the video stream, which a dub keeps exactly, and keep their frame after one): the editor's (frontend getModelIdentifier for the row steps, PRICING_UNIT_ESTIMATORS for Dubbing and both Video Upscale providers — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the step's own line). Each case wires its sources into the step `c`; an edge with no `target` goes into `c` on the step's input (`@input`: `video`, Pitch & Tempo's `in`; `handles` overrides it). `steps` limits a case to some steps (default every step but `lipSync`, a Lip Sync priced by the seconds of its audio, which only the cases that list it name; its figure is the billed seconds, `null` a length nothing knows before the run: both estimates quote the 15 s stand-in, a minimum, the editor's line marked ≈). Expected figures: the row's seconds for Video SFX (`replicate-mmaudio:<N>s`), Video Mask (`<provider>-video:<N>s`) and Video Depth (`video-depth-anything:<N>s`); the started minutes for Pitch & Tempo (`pitch-tempo:<N>m`) and Dubbing (target `es`); the Topaz units (a 1080p target, 30 fps, a 16:9 frame); the seconds `nodaroUpscale` bills (at least 1): 0 for a clip the graph KNOWS is past its 60-second limit (an upload, a measured Library clip, a take's record — the run refuses it before anything is held, and no estimate prices it), and the 60 seconds a run bills at most for a PLANNED length past it, which is an upper bound and no proof the run refuses it. An input whose length nothing can tell before the run is quoted at the step's cap for Video SFX, Video Mask, Video Depth and Pitch & Tempo, and at a minimum for Dubbing (1 minute) and both Video Upscale providers (a 10-second clip) — those runs measure their input and are charged its real length. `whole` = a whole run (the editor's whole-run set, the server with no run set); `alone` = the step's own Run and its pill (editor) and a run of `c` alone (server); `partial` = exactly that run set on both sides. `stepData` adds settings to the step's own (a Topaz frame rate stored as text, as a workflow written through the API can carry it). A Lip Sync on a per-second model reads an AAC recording (an M4A, MP4 or AAC file, or the sound of an MP4 video) one AAC frame past its recorded length (1024 samples at its recorded rate, else at AAC's lowest, 7.35 kHz) less the 0.05 s its charge forgives, as the run bills the decoded audio; an MP3 or a WAV at its recorded length. `transcribe` and `addCaptions` (Nemotron 3.5 Transcribe, named only by the cases that list them) read their wire with no slack (their hold forgives a second) and a voice made again in the run at its take, a minimum; their figure is the started minutes, 60 for a length nothing knows. `topaz` also reads the wired clip's frame and declared rate as the run's resolver would (decided 2026-11-14): an upload's recorded size and `fps`, a take's size for a node outside the run, carried through Trim, Loop and a Combine Videos whose clips share it; a node made again in the run has no size; unknown, 16:9 at 30 fps.",
2
+ "$comment": "The quote before a run of the seven steps whose run measures the file it is given — Video SFX, Video Mask, Video Depth, Pitch & Tempo, Dubbing, and Video Upscale on each of its two measuring models (`topaz`, and `nodaroUpscale`, the per-second model) — read by BOTH estimates over the same graphs through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules) with each step's slack (`MEASURED_INPUT_PLANNED_CLIP_SLACK_SEC`: on each clip a node makes, 0.15 s for Video Mask and Video Depth, which measure the container and forgive the same 0.05 s on the quote and the charge, 0.1 s for Video SFX, Pitch & Tempo and Dubbing, which measure the container, quote the length exactly and forgive 0.05 s on the charge, one 24 fps frame for both Video Upscale steps: one hold counts the video stream's frames, the other bills the clip's seconds rounded up, so any slack under a second is the same figure there; a quarter second on every step after a PixVerse V6 extension, and after a Dubbing or an Audio Isolation on every step that measures the container — `LONG_OVERSHOOT_PLANNED_CLIP_SLACK_SEC`; both Video Upscale steps measure the video stream, which a dub keeps exactly, and keep their frame after one): the editor's (frontend getModelIdentifier for the row steps, PRICING_UNIT_ESTIMATORS for Dubbing and both Video Upscale providers — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the step's own line). Each case wires its sources into the step `c`; an edge with no `target` goes into `c` on the step's input (`@input`: `video`, Pitch & Tempo's `in`; `handles` overrides it). `steps` limits a case to some steps (default every step but `lipSync`, a Lip Sync priced by the seconds of its audio, which only the cases that list it name; its figure is the billed seconds, `null` a length nothing knows before the run: both estimates quote the 15 s stand-in, a minimum, the editor's line marked ≈); an `{ \"editor\", \"server\" }` pair is a figure the two engines quote on purpose apart, an AI Avatar with nothing wired: the server plays the node picked in its settings, the editor's own Run only a wired audio). Expected figures: the row's seconds for Video SFX (`replicate-mmaudio:<N>s`), Video Mask (`<provider>-video:<N>s`) and Video Depth (`video-depth-anything:<N>s`); the started minutes for Pitch & Tempo (`pitch-tempo:<N>m`) and Dubbing (target `es`); the Topaz units (a 1080p target, 30 fps, a 16:9 frame); the seconds `nodaroUpscale` bills (at least 1): 0 for a clip the graph KNOWS is past its 60-second limit (an upload, a measured Library clip, a take's record — the run refuses it before anything is held, and no estimate prices it), and the 60 seconds a run bills at most for a PLANNED length past it, which is an upper bound and no proof the run refuses it. An input whose length nothing can tell before the run is quoted at the step's cap for Video SFX, Video Mask, Video Depth and Pitch & Tempo, and at a minimum for Dubbing (1 minute) and both Video Upscale providers (a 10-second clip) — those runs measure their input and are charged its real length. `whole` = a whole run (the editor's whole-run set, the server with no run set); `alone` = the step's own Run and its pill (editor) and a run of `c` alone (server); `partial` = exactly that run set on both sides. `stepData` adds settings to the step's own (a Topaz frame rate stored as text, as a workflow written through the API can carry it). A Lip Sync on a per-second model reads an AAC recording (an M4A, MP4 or AAC file, or the sound of an MP4 video) one AAC frame past its recorded length (1024 samples at its recorded rate, else at AAC's lowest, 7.35 kHz) less the 0.05 s its charge forgives, as the run bills the decoded audio; an MP3 or a WAV at its recorded length. `transcribe` and `addCaptions` (Nemotron 3.5 Transcribe, named only by the cases that list them) read their wire with no slack (their hold forgives a second) and a voice made again in the run at its take, a minimum; their figure is the started minutes, 60 for a length nothing knows. `topaz` also reads the wired clip's frame and declared rate as the run's resolver would (decided 2026-11-14): an upload's recorded size and `fps`, a take's size for a node outside the run, carried through Trim, Loop and a Combine Videos whose clips share it; a node made again in the run has no size; unknown, 16:9 at 30 fps.",
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 (5.1 s; 5.042 s on the stream for Topaz)",
@@ -3245,6 +3245,542 @@
3245
3245
  "nodaroUpscale": 8
3246
3246
  }
3247
3247
  }
3248
+ },
3249
+ {
3250
+ "name": "72. A Face Swap of a 9.92 s video upload: a new clip, read at its input plus each step's slack — Video Mask and Video Depth (the container, their 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: the 15 s row and 11 s; Video SFX, Pitch & Tempo and Dubbing (the container, the quote reading the length exactly, the charge forgiving 0.05 s) a tenth, 10.02 s: the 15 s row, 1 minute, 1 minute; both Video Upscale steps (the video stream) one frame, 9.96 s: 7 Topaz units and 10 s",
3251
+ "nodes": [
3252
+ {
3253
+ "id": "u",
3254
+ "type": "upload-video",
3255
+ "data": {
3256
+ "url": "https://cdn.example/u.mp4",
3257
+ "generatedResults": [
3258
+ {
3259
+ "url": "https://cdn.example/u.mp4",
3260
+ "duration": 9.92
3261
+ }
3262
+ ],
3263
+ "activeResultIndex": 0
3264
+ }
3265
+ },
3266
+ {
3267
+ "id": "f",
3268
+ "type": "face-swap",
3269
+ "data": {}
3270
+ }
3271
+ ],
3272
+ "edges": [
3273
+ {
3274
+ "source": "u",
3275
+ "target": "f",
3276
+ "targetHandle": "video"
3277
+ },
3278
+ {
3279
+ "source": "f",
3280
+ "targetHandle": "@input"
3281
+ }
3282
+ ],
3283
+ "expected": {
3284
+ "whole": {
3285
+ "videoSfx": 15,
3286
+ "videoMask": 15,
3287
+ "videoDepth": 11,
3288
+ "pitchTempo": 1,
3289
+ "dubbing": 1,
3290
+ "topaz": 7,
3291
+ "nodaroUpscale": 10
3292
+ },
3293
+ "alone": {
3294
+ "videoSfx": 15,
3295
+ "videoMask": 15,
3296
+ "videoDepth": 11,
3297
+ "pitchTempo": 1,
3298
+ "dubbing": 1,
3299
+ "topaz": 7,
3300
+ "nodaroUpscale": 10
3301
+ }
3302
+ }
3303
+ },
3304
+ {
3305
+ "name": "73. Lip Sync on OmniHuman 2.0 with no audio wired, its data carrying audioDurationSec 9.5 (a length the node measured at its last run, or one an API or MCP write set): a field of the node's data, so never below the 15 s minimum: 15 s",
3306
+ "steps": [
3307
+ "lipSync"
3308
+ ],
3309
+ "stepData": {
3310
+ "lipSync": {
3311
+ "audioDurationSec": 9.5
3312
+ }
3313
+ },
3314
+ "nodes": [],
3315
+ "edges": [],
3316
+ "expected": {
3317
+ "whole": {
3318
+ "lipSync": 15
3319
+ },
3320
+ "alone": {
3321
+ "lipSync": 15
3322
+ }
3323
+ }
3324
+ },
3325
+ {
3326
+ "name": "73b. The same with audioDurationSec 1 (an API write): 15 s, the minimum — never the 4 s the field alone would quote",
3327
+ "steps": [
3328
+ "lipSync"
3329
+ ],
3330
+ "stepData": {
3331
+ "lipSync": {
3332
+ "audioDurationSec": 1
3333
+ }
3334
+ },
3335
+ "nodes": [],
3336
+ "edges": [],
3337
+ "expected": {
3338
+ "whole": {
3339
+ "lipSync": 15
3340
+ },
3341
+ "alone": {
3342
+ "lipSync": 15
3343
+ }
3344
+ }
3345
+ },
3346
+ {
3347
+ "name": "73c. The same with audioDurationSec 20: above the minimum, as set: 20 s",
3348
+ "steps": [
3349
+ "lipSync"
3350
+ ],
3351
+ "stepData": {
3352
+ "lipSync": {
3353
+ "audioDurationSec": 20
3354
+ }
3355
+ },
3356
+ "nodes": [],
3357
+ "edges": [],
3358
+ "expected": {
3359
+ "whole": {
3360
+ "lipSync": 20
3361
+ },
3362
+ "alone": {
3363
+ "lipSync": 20
3364
+ }
3365
+ }
3366
+ },
3367
+ {
3368
+ "name": "73d. A wired 4 s MP3 upload with the node's data carrying audioDurationSec 1: the wired audio is what plays, read as it is, unfloored: 4 s (the model's own minimum)",
3369
+ "steps": [
3370
+ "lipSync"
3371
+ ],
3372
+ "handles": {
3373
+ "lipSync": "audio"
3374
+ },
3375
+ "stepData": {
3376
+ "lipSync": {
3377
+ "audioDurationSec": 1
3378
+ }
3379
+ },
3380
+ "nodes": [
3381
+ {
3382
+ "id": "a",
3383
+ "type": "upload-audio",
3384
+ "data": {
3385
+ "url": "https://cdn.example/a4.mp3",
3386
+ "metadata": {
3387
+ "durationSeconds": 4
3388
+ }
3389
+ }
3390
+ }
3391
+ ],
3392
+ "edges": [
3393
+ {
3394
+ "source": "a",
3395
+ "targetHandle": "@input"
3396
+ }
3397
+ ],
3398
+ "expected": {
3399
+ "whole": {
3400
+ "lipSync": 4
3401
+ },
3402
+ "alone": {
3403
+ "lipSync": 4
3404
+ }
3405
+ }
3406
+ },
3407
+ {
3408
+ "name": "74. AI Avatar in audio mode on a 10 s MP3 upload: the audio its run plays, at the length recorded for it — the 10 s bucket its run holds",
3409
+ "steps": [
3410
+ "aiAvatar"
3411
+ ],
3412
+ "nodes": [
3413
+ {
3414
+ "id": "a",
3415
+ "type": "upload-audio",
3416
+ "data": {
3417
+ "url": "https://cdn.example/a.mp3",
3418
+ "metadata": {
3419
+ "durationSeconds": 10
3420
+ }
3421
+ }
3422
+ }
3423
+ ],
3424
+ "edges": [
3425
+ {
3426
+ "source": "a",
3427
+ "targetHandle": "@input"
3428
+ }
3429
+ ],
3430
+ "expected": {
3431
+ "whole": {
3432
+ "aiAvatar": 10
3433
+ },
3434
+ "alone": {
3435
+ "aiAvatar": 10
3436
+ }
3437
+ }
3438
+ },
3439
+ {
3440
+ "name": "74b. The same on a 300 s upload: the 360 s bucket",
3441
+ "steps": [
3442
+ "aiAvatar"
3443
+ ],
3444
+ "nodes": [
3445
+ {
3446
+ "id": "a",
3447
+ "type": "upload-audio",
3448
+ "data": {
3449
+ "url": "https://cdn.example/a.mp3",
3450
+ "metadata": {
3451
+ "durationSeconds": 300
3452
+ }
3453
+ }
3454
+ }
3455
+ ],
3456
+ "edges": [
3457
+ {
3458
+ "source": "a",
3459
+ "targetHandle": "@input"
3460
+ }
3461
+ ],
3462
+ "expected": {
3463
+ "whole": {
3464
+ "aiAvatar": 360
3465
+ },
3466
+ "alone": {
3467
+ "aiAvatar": 360
3468
+ }
3469
+ }
3470
+ },
3471
+ {
3472
+ "name": "74c. The same on a 700 s upload: the 600 s bucket, the most a run holds (the worker trims the audio to 600 s)",
3473
+ "steps": [
3474
+ "aiAvatar"
3475
+ ],
3476
+ "nodes": [
3477
+ {
3478
+ "id": "a",
3479
+ "type": "upload-audio",
3480
+ "data": {
3481
+ "url": "https://cdn.example/a.mp3",
3482
+ "metadata": {
3483
+ "durationSeconds": 700
3484
+ }
3485
+ }
3486
+ }
3487
+ ],
3488
+ "edges": [
3489
+ {
3490
+ "source": "a",
3491
+ "targetHandle": "@input"
3492
+ }
3493
+ ],
3494
+ "expected": {
3495
+ "whole": {
3496
+ "aiAvatar": 600
3497
+ },
3498
+ "alone": {
3499
+ "aiAvatar": 600
3500
+ }
3501
+ }
3502
+ },
3503
+ {
3504
+ "name": "74d. The same on an upload whose length was not recorded: nothing knows it before the run, so the 120 s default, a minimum",
3505
+ "steps": [
3506
+ "aiAvatar"
3507
+ ],
3508
+ "nodes": [
3509
+ {
3510
+ "id": "a",
3511
+ "type": "upload-audio",
3512
+ "data": {
3513
+ "url": "https://cdn.example/a.mp3"
3514
+ }
3515
+ }
3516
+ ],
3517
+ "edges": [
3518
+ {
3519
+ "source": "a",
3520
+ "targetHandle": "@input"
3521
+ }
3522
+ ],
3523
+ "expected": {
3524
+ "whole": {
3525
+ "aiAvatar": 120
3526
+ },
3527
+ "alone": {
3528
+ "aiAvatar": 120
3529
+ }
3530
+ }
3531
+ },
3532
+ {
3533
+ "name": "74e. The same on a Text to Speech made in the run: a voice made again has no length before the run, so the 120 s default, a minimum",
3534
+ "steps": [
3535
+ "aiAvatar"
3536
+ ],
3537
+ "nodes": [
3538
+ {
3539
+ "id": "t",
3540
+ "type": "text-to-speech",
3541
+ "data": {
3542
+ "text": "Hello there."
3543
+ }
3544
+ }
3545
+ ],
3546
+ "edges": [
3547
+ {
3548
+ "source": "t",
3549
+ "targetHandle": "@input"
3550
+ }
3551
+ ],
3552
+ "expected": {
3553
+ "whole": {
3554
+ "aiAvatar": 120
3555
+ },
3556
+ "alone": {
3557
+ "aiAvatar": 120
3558
+ }
3559
+ }
3560
+ },
3561
+ {
3562
+ "name": "74f. A Voice Changer of a 9.9 s recording, made in the run: its planned length plus the 0.15 s a made file can run past it (AI Avatar holds every started second, no grace): 10.05 s, 11 s, the 15 s bucket",
3563
+ "steps": [
3564
+ "aiAvatar"
3565
+ ],
3566
+ "nodes": [
3567
+ {
3568
+ "id": "a",
3569
+ "type": "upload-audio",
3570
+ "data": {
3571
+ "url": "https://cdn.example/a.mp3",
3572
+ "metadata": {
3573
+ "durationSeconds": 9.9
3574
+ }
3575
+ }
3576
+ },
3577
+ {
3578
+ "id": "v",
3579
+ "type": "voice-changer",
3580
+ "data": {}
3581
+ }
3582
+ ],
3583
+ "edges": [
3584
+ {
3585
+ "source": "a",
3586
+ "target": "v",
3587
+ "targetHandle": "audio"
3588
+ },
3589
+ {
3590
+ "source": "v",
3591
+ "targetHandle": "@input"
3592
+ }
3593
+ ],
3594
+ "expected": {
3595
+ "whole": {
3596
+ "aiAvatar": 15
3597
+ },
3598
+ "alone": {
3599
+ "aiAvatar": 15
3600
+ }
3601
+ }
3602
+ },
3603
+ {
3604
+ "name": "74g. A Dubbing of a 9.7 s recording: a dub runs a quarter second past its input, 9.95 s, the 10 s bucket",
3605
+ "steps": [
3606
+ "aiAvatar"
3607
+ ],
3608
+ "nodes": [
3609
+ {
3610
+ "id": "a",
3611
+ "type": "upload-audio",
3612
+ "data": {
3613
+ "url": "https://cdn.example/a.mp3",
3614
+ "metadata": {
3615
+ "durationSeconds": 9.7
3616
+ }
3617
+ }
3618
+ },
3619
+ {
3620
+ "id": "d",
3621
+ "type": "dubbing",
3622
+ "data": {}
3623
+ }
3624
+ ],
3625
+ "edges": [
3626
+ {
3627
+ "source": "a",
3628
+ "target": "d",
3629
+ "targetHandle": "audio"
3630
+ },
3631
+ {
3632
+ "source": "d",
3633
+ "targetHandle": "@input"
3634
+ }
3635
+ ],
3636
+ "expected": {
3637
+ "whole": {
3638
+ "aiAvatar": 10
3639
+ },
3640
+ "alone": {
3641
+ "aiAvatar": 10
3642
+ }
3643
+ }
3644
+ },
3645
+ {
3646
+ "name": "74h. A Dubbing of a 9.8 s recording: 10.05 s, the 15 s bucket",
3647
+ "steps": [
3648
+ "aiAvatar"
3649
+ ],
3650
+ "nodes": [
3651
+ {
3652
+ "id": "a",
3653
+ "type": "upload-audio",
3654
+ "data": {
3655
+ "url": "https://cdn.example/a.mp3",
3656
+ "metadata": {
3657
+ "durationSeconds": 9.8
3658
+ }
3659
+ }
3660
+ },
3661
+ {
3662
+ "id": "d",
3663
+ "type": "dubbing",
3664
+ "data": {}
3665
+ }
3666
+ ],
3667
+ "edges": [
3668
+ {
3669
+ "source": "a",
3670
+ "target": "d",
3671
+ "targetHandle": "audio"
3672
+ },
3673
+ {
3674
+ "source": "d",
3675
+ "targetHandle": "@input"
3676
+ }
3677
+ ],
3678
+ "expected": {
3679
+ "whole": {
3680
+ "aiAvatar": 15
3681
+ },
3682
+ "alone": {
3683
+ "aiAvatar": 15
3684
+ }
3685
+ }
3686
+ },
3687
+ {
3688
+ "name": "74i. Text mode with an audio wired: priced by its script as before (600 characters: about 50 s, the 60 s bucket), the audio not read",
3689
+ "steps": [
3690
+ "aiAvatar"
3691
+ ],
3692
+ "stepData": {
3693
+ "aiAvatar": {
3694
+ "speechMode": "text",
3695
+ "script": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
3696
+ "voiceId": "v1"
3697
+ }
3698
+ },
3699
+ "nodes": [
3700
+ {
3701
+ "id": "a",
3702
+ "type": "upload-audio",
3703
+ "data": {
3704
+ "url": "https://cdn.example/a.mp3",
3705
+ "metadata": {
3706
+ "durationSeconds": 300
3707
+ }
3708
+ }
3709
+ }
3710
+ ],
3711
+ "edges": [
3712
+ {
3713
+ "source": "a",
3714
+ "targetHandle": "@input"
3715
+ }
3716
+ ],
3717
+ "expected": {
3718
+ "whole": {
3719
+ "aiAvatar": 60
3720
+ },
3721
+ "alone": {
3722
+ "aiAvatar": 60
3723
+ }
3724
+ }
3725
+ },
3726
+ {
3727
+ "name": "74j. Audio mode with no audio node to play (its own link): nothing knows its length before the run, the 120 s default, a minimum",
3728
+ "steps": [
3729
+ "aiAvatar"
3730
+ ],
3731
+ "stepData": {
3732
+ "aiAvatar": {
3733
+ "audioUrl": "https://cdn.example/own.mp3"
3734
+ }
3735
+ },
3736
+ "nodes": [],
3737
+ "edges": [],
3738
+ "expected": {
3739
+ "whole": {
3740
+ "aiAvatar": 120
3741
+ },
3742
+ "alone": {
3743
+ "aiAvatar": 120
3744
+ }
3745
+ }
3746
+ },
3747
+ {
3748
+ "name": "74k. Nothing wired, the 300 s upload picked in the node's settings: the engines play different audio — a workflow, app or API run (the server) plays the picked node, at its 360 s bucket; the editor's own Run plays only a wired audio, so its figure is the 120 s default, a minimum (the run measures what it plays)",
3749
+ "steps": [
3750
+ "aiAvatar"
3751
+ ],
3752
+ "stepData": {
3753
+ "aiAvatar": {
3754
+ "selectedAudioNodeId": "a"
3755
+ }
3756
+ },
3757
+ "nodes": [
3758
+ {
3759
+ "id": "a",
3760
+ "type": "upload-audio",
3761
+ "data": {
3762
+ "url": "https://cdn.example/a.mp3",
3763
+ "metadata": {
3764
+ "durationSeconds": 300
3765
+ }
3766
+ }
3767
+ }
3768
+ ],
3769
+ "edges": [],
3770
+ "expected": {
3771
+ "whole": {
3772
+ "aiAvatar": {
3773
+ "editor": 120,
3774
+ "server": 360
3775
+ }
3776
+ },
3777
+ "alone": {
3778
+ "aiAvatar": {
3779
+ "editor": 120,
3780
+ "server": 360
3781
+ }
3782
+ }
3783
+ }
3248
3784
  }
3249
3785
  ]
3250
3786
  }
@@ -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.1 s on Mask Composite, which charges the container; 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.",
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",
@@ -678,6 +678,51 @@
678
678
  }
679
679
  }
680
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
+ },
681
726
  {
682
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",
683
728
  "nodes": [