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