@nodaro/shared 1.19.0 → 1.20.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/index.cjs +37 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +37 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/model-catalog.ts +21 -21
- package/src/video-analysis-pricing.ts +16 -16
package/dist/index.js
CHANGED
|
@@ -1662,14 +1662,14 @@ var VIDEO_MODELS = {
|
|
|
1662
1662
|
family: "Nodaro",
|
|
1663
1663
|
label: "Video Analysis (Fast \u2014 legacy)",
|
|
1664
1664
|
series: "Video Analysis",
|
|
1665
|
-
description: "Legacy fast-tier analysis model (pre-2026-07). Kept so stored raw-model configs keep running and pricing
|
|
1665
|
+
description: "Legacy fast-tier analysis model (pre-2026-07). Kept so stored raw-model configs keep running and keep pricing under their own identifier; new fast-tier runs use the current fast model.",
|
|
1666
1666
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
1667
1667
|
pricing: [
|
|
1668
|
-
{ identifier: "video-analysis:gemini-3-flash", credits:
|
|
1669
|
-
{ identifier: "video-analysis:gemini-3-flash:60s", credits:
|
|
1670
|
-
{ identifier: "video-analysis:gemini-3-flash:180s", credits:
|
|
1671
|
-
{ identifier: "video-analysis:gemini-3-flash:360s", credits:
|
|
1672
|
-
{ identifier: "video-analysis:gemini-3-flash:600s", credits:
|
|
1668
|
+
{ identifier: "video-analysis:gemini-3-flash", credits: 9, note: "10-min ceiling (no duration given)" },
|
|
1669
|
+
{ identifier: "video-analysis:gemini-3-flash:60s", credits: 2 },
|
|
1670
|
+
{ identifier: "video-analysis:gemini-3-flash:180s", credits: 3 },
|
|
1671
|
+
{ identifier: "video-analysis:gemini-3-flash:360s", credits: 6 },
|
|
1672
|
+
{ identifier: "video-analysis:gemini-3-flash:600s", credits: 9, note: "10-min ceiling" }
|
|
1673
1673
|
]
|
|
1674
1674
|
},
|
|
1675
1675
|
"gemini-3.6-flash-video-analysis": {
|
|
@@ -1682,11 +1682,11 @@ var VIDEO_MODELS = {
|
|
|
1682
1682
|
description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 fast, economy tier. Billed per duration bucket.",
|
|
1683
1683
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
1684
1684
|
pricing: [
|
|
1685
|
-
{ identifier: "video-analysis:gemini-3.6-flash", credits:
|
|
1686
|
-
{ identifier: "video-analysis:gemini-3.6-flash:60s", credits:
|
|
1687
|
-
{ identifier: "video-analysis:gemini-3.6-flash:180s", credits:
|
|
1688
|
-
{ identifier: "video-analysis:gemini-3.6-flash:360s", credits:
|
|
1689
|
-
{ identifier: "video-analysis:gemini-3.6-flash:600s", credits:
|
|
1685
|
+
{ identifier: "video-analysis:gemini-3.6-flash", credits: 25, note: "10-min ceiling (no duration given)" },
|
|
1686
|
+
{ identifier: "video-analysis:gemini-3.6-flash:60s", credits: 5 },
|
|
1687
|
+
{ identifier: "video-analysis:gemini-3.6-flash:180s", credits: 6 },
|
|
1688
|
+
{ identifier: "video-analysis:gemini-3.6-flash:360s", credits: 15 },
|
|
1689
|
+
{ identifier: "video-analysis:gemini-3.6-flash:600s", credits: 25, note: "10-min ceiling" }
|
|
1690
1690
|
]
|
|
1691
1691
|
},
|
|
1692
1692
|
"gemini-3.1-pro-video-analysis": {
|
|
@@ -1699,11 +1699,11 @@ var VIDEO_MODELS = {
|
|
|
1699
1699
|
description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 higher-fidelity, default tier. Billed per duration bucket.",
|
|
1700
1700
|
useCases: ["video-analysis", "shot-list", "cinematic"],
|
|
1701
1701
|
pricing: [
|
|
1702
|
-
{ identifier: "video-analysis:gemini-3.1-pro", credits:
|
|
1703
|
-
{ identifier: "video-analysis:gemini-3.1-pro:60s", credits:
|
|
1704
|
-
{ identifier: "video-analysis:gemini-3.1-pro:180s", credits:
|
|
1705
|
-
{ identifier: "video-analysis:gemini-3.1-pro:360s", credits:
|
|
1706
|
-
{ identifier: "video-analysis:gemini-3.1-pro:600s", credits:
|
|
1702
|
+
{ identifier: "video-analysis:gemini-3.1-pro", credits: 33, note: "10-min ceiling (no duration given)" },
|
|
1703
|
+
{ identifier: "video-analysis:gemini-3.1-pro:60s", credits: 6 },
|
|
1704
|
+
{ identifier: "video-analysis:gemini-3.1-pro:180s", credits: 8 },
|
|
1705
|
+
{ identifier: "video-analysis:gemini-3.1-pro:360s", credits: 20 },
|
|
1706
|
+
{ identifier: "video-analysis:gemini-3.1-pro:600s", credits: 33, note: "10-min ceiling" }
|
|
1707
1707
|
]
|
|
1708
1708
|
},
|
|
1709
1709
|
// Both mixed tiers are variants of the same advanced multi-engine analysis
|
|
@@ -1719,11 +1719,11 @@ var VIDEO_MODELS = {
|
|
|
1719
1719
|
description: "Our most advanced analysis tier \u2014 multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
|
|
1720
1720
|
useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
|
|
1721
1721
|
pricing: [
|
|
1722
|
-
{ identifier: "video-analysis:mixed", credits:
|
|
1723
|
-
{ identifier: "video-analysis:mixed:60s", credits:
|
|
1724
|
-
{ identifier: "video-analysis:mixed:180s", credits:
|
|
1725
|
-
{ identifier: "video-analysis:mixed:360s", credits:
|
|
1726
|
-
{ identifier: "video-analysis:mixed:600s", credits:
|
|
1722
|
+
{ identifier: "video-analysis:mixed", credits: 57, note: "10-min ceiling (no duration given)" },
|
|
1723
|
+
{ identifier: "video-analysis:mixed:60s", credits: 10 },
|
|
1724
|
+
{ identifier: "video-analysis:mixed:180s", credits: 13 },
|
|
1725
|
+
{ identifier: "video-analysis:mixed:360s", credits: 35 },
|
|
1726
|
+
{ identifier: "video-analysis:mixed:600s", credits: 57, note: "10-min ceiling" }
|
|
1727
1727
|
]
|
|
1728
1728
|
}
|
|
1729
1729
|
};
|
|
@@ -12309,27 +12309,27 @@ var WINDOW_OVERLAP = 5;
|
|
|
12309
12309
|
var VIDEO_ANALYSIS_WINDOW = { LEN: WINDOW_LEN, STRIDE: WINDOW_STRIDE, OVERLAP: WINDOW_OVERLAP, SINGLE_MAX: 180 };
|
|
12310
12310
|
var VIDEO_ANALYSIS_BUCKET_CREDITS = {
|
|
12311
12311
|
// Legacy fast-tier model (pre-2026-07) — kept for stored raw-id configs.
|
|
12312
|
-
"video-analysis:gemini-3-flash:60s":
|
|
12313
|
-
"video-analysis:gemini-3-flash:180s":
|
|
12314
|
-
"video-analysis:gemini-3-flash:360s":
|
|
12315
|
-
"video-analysis:gemini-3-flash:600s":
|
|
12312
|
+
"video-analysis:gemini-3-flash:60s": 2,
|
|
12313
|
+
"video-analysis:gemini-3-flash:180s": 3,
|
|
12314
|
+
"video-analysis:gemini-3-flash:360s": 6,
|
|
12315
|
+
"video-analysis:gemini-3-flash:600s": 9,
|
|
12316
12316
|
// Current fast tier — regenerated from the private formula for its backing
|
|
12317
12317
|
// model; higher than the legacy fast schedule but still ≤ pro per bucket.
|
|
12318
|
-
"video-analysis:gemini-3.6-flash:60s":
|
|
12319
|
-
"video-analysis:gemini-3.6-flash:180s":
|
|
12320
|
-
"video-analysis:gemini-3.6-flash:360s":
|
|
12321
|
-
"video-analysis:gemini-3.6-flash:600s":
|
|
12322
|
-
"video-analysis:gemini-3.1-pro:60s":
|
|
12323
|
-
"video-analysis:gemini-3.1-pro:180s":
|
|
12324
|
-
"video-analysis:gemini-3.1-pro:360s":
|
|
12325
|
-
"video-analysis:gemini-3.1-pro:600s":
|
|
12318
|
+
"video-analysis:gemini-3.6-flash:60s": 5,
|
|
12319
|
+
"video-analysis:gemini-3.6-flash:180s": 6,
|
|
12320
|
+
"video-analysis:gemini-3.6-flash:360s": 15,
|
|
12321
|
+
"video-analysis:gemini-3.6-flash:600s": 25,
|
|
12322
|
+
"video-analysis:gemini-3.1-pro:60s": 6,
|
|
12323
|
+
"video-analysis:gemini-3.1-pro:180s": 8,
|
|
12324
|
+
"video-analysis:gemini-3.1-pro:360s": 20,
|
|
12325
|
+
"video-analysis:gemini-3.1-pro:600s": 33,
|
|
12326
12326
|
// Mixed tiers (`mixed` + `mixed-fast`) share ONE credit family — they are
|
|
12327
12327
|
// variants of the same engine plan (plan internals live in the private
|
|
12328
12328
|
// analysis plugin). Admin-tunable via model_pricing like every other row.
|
|
12329
|
-
"video-analysis:mixed:60s":
|
|
12330
|
-
"video-analysis:mixed:180s":
|
|
12331
|
-
"video-analysis:mixed:360s":
|
|
12332
|
-
"video-analysis:mixed:600s":
|
|
12329
|
+
"video-analysis:mixed:60s": 10,
|
|
12330
|
+
"video-analysis:mixed:180s": 13,
|
|
12331
|
+
"video-analysis:mixed:360s": 35,
|
|
12332
|
+
"video-analysis:mixed:600s": 57
|
|
12333
12333
|
};
|
|
12334
12334
|
function videoAnalysisCreditSegment(modelOrSentinel) {
|
|
12335
12335
|
return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
|