@nodaro/shared 2.12.1 → 2.12.2

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.js CHANGED
@@ -1808,11 +1808,11 @@ var VIDEO_MODELS = {
1808
1808
  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.",
1809
1809
  useCases: ["video-analysis", "shot-list", "fast"],
1810
1810
  pricing: [
1811
- { identifier: "video-analysis:gemini-3-flash", credits: 846, note: "10-min ceiling (no duration given)" },
1811
+ { identifier: "video-analysis:gemini-3-flash", credits: 847, note: "10-min ceiling (no duration given)" },
1812
1812
  { identifier: "video-analysis:gemini-3-flash:60s", credits: 180 },
1813
1813
  { identifier: "video-analysis:gemini-3-flash:180s", credits: 185 },
1814
- { identifier: "video-analysis:gemini-3-flash:360s", credits: 514 },
1815
- { identifier: "video-analysis:gemini-3-flash:600s", credits: 846, note: "10-min ceiling" }
1814
+ { identifier: "video-analysis:gemini-3-flash:360s", credits: 515 },
1815
+ { identifier: "video-analysis:gemini-3-flash:600s", credits: 847, note: "10-min ceiling" }
1816
1816
  ]
1817
1817
  },
1818
1818
  "gemini-3.6-flash-video-analysis": {
@@ -1825,11 +1825,11 @@ var VIDEO_MODELS = {
1825
1825
  description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 fast, economy tier. Billed per duration bucket.",
1826
1826
  useCases: ["video-analysis", "shot-list", "fast"],
1827
1827
  pricing: [
1828
- { identifier: "video-analysis:gemini-3.6-flash", credits: 986, note: "10-min ceiling (no duration given)" },
1829
- { identifier: "video-analysis:gemini-3.6-flash:60s", credits: 203 },
1828
+ { identifier: "video-analysis:gemini-3.6-flash", credits: 990, note: "10-min ceiling (no duration given)" },
1829
+ { identifier: "video-analysis:gemini-3.6-flash:60s", credits: 204 },
1830
1830
  { identifier: "video-analysis:gemini-3.6-flash:180s", credits: 218 },
1831
- { identifier: "video-analysis:gemini-3.6-flash:360s", credits: 598 },
1832
- { identifier: "video-analysis:gemini-3.6-flash:600s", credits: 986, note: "10-min ceiling" }
1831
+ { identifier: "video-analysis:gemini-3.6-flash:360s", credits: 600 },
1832
+ { identifier: "video-analysis:gemini-3.6-flash:600s", credits: 990, note: "10-min ceiling" }
1833
1833
  ]
1834
1834
  },
1835
1835
  "gemini-3.1-pro-video-analysis": {
@@ -1842,11 +1842,11 @@ var VIDEO_MODELS = {
1842
1842
  description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 higher-fidelity, default tier. Billed per duration bucket.",
1843
1843
  useCases: ["video-analysis", "shot-list", "cinematic"],
1844
1844
  pricing: [
1845
- { identifier: "video-analysis:gemini-3.1-pro", credits: 1050, note: "10-min ceiling (no duration given)" },
1846
- { identifier: "video-analysis:gemini-3.1-pro:60s", credits: 215 },
1847
- { identifier: "video-analysis:gemini-3.1-pro:180s", credits: 231 },
1848
- { identifier: "video-analysis:gemini-3.1-pro:360s", credits: 636 },
1849
- { identifier: "video-analysis:gemini-3.1-pro:600s", credits: 1050, note: "10-min ceiling" }
1845
+ { identifier: "video-analysis:gemini-3.1-pro", credits: 1053, note: "10-min ceiling (no duration given)" },
1846
+ { identifier: "video-analysis:gemini-3.1-pro:60s", credits: 216 },
1847
+ { identifier: "video-analysis:gemini-3.1-pro:180s", credits: 232 },
1848
+ { identifier: "video-analysis:gemini-3.1-pro:360s", credits: 639 },
1849
+ { identifier: "video-analysis:gemini-3.1-pro:600s", credits: 1053, note: "10-min ceiling" }
1850
1850
  ]
1851
1851
  },
1852
1852
  // Both mixed tiers are variants of the same advanced multi-engine analysis
@@ -1862,11 +1862,11 @@ var VIDEO_MODELS = {
1862
1862
  description: "Our most advanced analysis tier \u2014 multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
1863
1863
  useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
1864
1864
  pricing: [
1865
- { identifier: "video-analysis:mixed", credits: 1169, note: "10-min ceiling (no duration given)" },
1866
- { identifier: "video-analysis:mixed:60s", credits: 268 },
1867
- { identifier: "video-analysis:mixed:180s", credits: 289 },
1868
- { identifier: "video-analysis:mixed:360s", credits: 724 },
1869
- { identifier: "video-analysis:mixed:600s", credits: 1169, note: "10-min ceiling" }
1865
+ { identifier: "video-analysis:mixed", credits: 1174, note: "10-min ceiling (no duration given)" },
1866
+ { identifier: "video-analysis:mixed:60s", credits: 269 },
1867
+ { identifier: "video-analysis:mixed:180s", credits: 290 },
1868
+ { identifier: "video-analysis:mixed:360s", credits: 727 },
1869
+ { identifier: "video-analysis:mixed:600s", credits: 1174, note: "10-min ceiling" }
1870
1870
  ]
1871
1871
  },
1872
1872
  // SMART — the accuracy tier. Since the 2026-08-03 hybrid re-plan it is a
@@ -1884,11 +1884,11 @@ var VIDEO_MODELS = {
1884
1884
  description: "Highest-accuracy analysis \u2014 a hybrid pass that blends a native skeleton read with several donor analysis rolls, then always refines the merged result to find shot boundaries and identify the cast by appearance. Best choice when the shot list will drive regeneration. Billed per duration bucket.",
1885
1885
  useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
1886
1886
  pricing: [
1887
- { identifier: "video-analysis:smart", credits: 2064, note: "10-min ceiling (no duration given)" },
1888
- { identifier: "video-analysis:smart:60s", credits: 410 },
1889
- { identifier: "video-analysis:smart:180s", credits: 500 },
1890
- { identifier: "video-analysis:smart:360s", credits: 1259 },
1891
- { identifier: "video-analysis:smart:600s", credits: 2064, note: "10-min ceiling" }
1887
+ { identifier: "video-analysis:smart", credits: 2071, note: "10-min ceiling (no duration given)" },
1888
+ { identifier: "video-analysis:smart:60s", credits: 412 },
1889
+ { identifier: "video-analysis:smart:180s", credits: 502 },
1890
+ { identifier: "video-analysis:smart:360s", credits: 1264 },
1891
+ { identifier: "video-analysis:smart:600s", credits: 2071, note: "10-min ceiling" }
1892
1892
  ]
1893
1893
  },
1894
1894
  // ── AI Audit (`video-audit`) ── a SEPARATE node from video-analysis (own
@@ -1912,11 +1912,11 @@ var VIDEO_MODELS = {
1912
1912
  description: "Re-watches a clip against a wired analysis, applies video-verified corrections under guards, and returns a disclosed report of what changed. Billed per duration bucket.",
1913
1913
  useCases: ["video-audit", "qa", "shot-list", "verification"],
1914
1914
  pricing: [
1915
- { identifier: "video-audit", credits: 1066, note: "10-min ceiling (no duration given)" },
1916
- { identifier: "video-audit:60s", credits: 213 },
1917
- { identifier: "video-audit:180s", credits: 289 },
1918
- { identifier: "video-audit:360s", credits: 659 },
1919
- { identifier: "video-audit:600s", credits: 1066, note: "10-min ceiling" }
1915
+ { identifier: "video-audit", credits: 1070, note: "10-min ceiling (no duration given)" },
1916
+ { identifier: "video-audit:60s", credits: 214 },
1917
+ { identifier: "video-audit:180s", credits: 290 },
1918
+ { identifier: "video-audit:360s", credits: 661 },
1919
+ { identifier: "video-audit:600s", credits: 1070, note: "10-min ceiling" }
1920
1920
  ]
1921
1921
  },
1922
1922
  "video-audit-auto": {
@@ -1928,11 +1928,11 @@ var VIDEO_MODELS = {
1928
1928
  description: "Same video-verified audit as AI Audit, but auto-runs a fast analysis first when none is wired in, then applies corrections under guards and returns a disclosed report. Billed per duration bucket.",
1929
1929
  useCases: ["video-audit", "qa", "shot-list", "verification", "auto-analysis"],
1930
1930
  pricing: [
1931
- { identifier: "video-audit:auto", credits: 1912, note: "10-min ceiling (no duration given)" },
1932
- { identifier: "video-audit:auto:60s", credits: 393 },
1933
- { identifier: "video-audit:auto:180s", credits: 474 },
1934
- { identifier: "video-audit:auto:360s", credits: 1173 },
1935
- { identifier: "video-audit:auto:600s", credits: 1912, note: "10-min ceiling" }
1931
+ { identifier: "video-audit:auto", credits: 1917, note: "10-min ceiling (no duration given)" },
1932
+ { identifier: "video-audit:auto:60s", credits: 394 },
1933
+ { identifier: "video-audit:auto:180s", credits: 475 },
1934
+ { identifier: "video-audit:auto:360s", credits: 1176 },
1935
+ { identifier: "video-audit:auto:600s", credits: 1917, note: "10-min ceiling" }
1936
1936
  ]
1937
1937
  }
1938
1938
  };
@@ -13363,35 +13363,35 @@ var VIDEO_ANALYSIS_BUCKET_CREDITS = {
13363
13363
  // Legacy fast-tier model (pre-2026-07) — kept for stored raw-id configs.
13364
13364
  "video-analysis:gemini-3-flash:60s": 180,
13365
13365
  "video-analysis:gemini-3-flash:180s": 185,
13366
- "video-analysis:gemini-3-flash:360s": 514,
13367
- "video-analysis:gemini-3-flash:600s": 846,
13366
+ "video-analysis:gemini-3-flash:360s": 515,
13367
+ "video-analysis:gemini-3-flash:600s": 847,
13368
13368
  // Current fast tier — regenerated from the private formula for its backing
13369
13369
  // model; higher than the legacy fast schedule but still ≤ pro per bucket.
13370
- "video-analysis:gemini-3.6-flash:60s": 203,
13370
+ "video-analysis:gemini-3.6-flash:60s": 204,
13371
13371
  "video-analysis:gemini-3.6-flash:180s": 218,
13372
- "video-analysis:gemini-3.6-flash:360s": 598,
13373
- "video-analysis:gemini-3.6-flash:600s": 986,
13374
- "video-analysis:gemini-3.1-pro:60s": 215,
13375
- "video-analysis:gemini-3.1-pro:180s": 231,
13376
- "video-analysis:gemini-3.1-pro:360s": 636,
13377
- "video-analysis:gemini-3.1-pro:600s": 1050,
13372
+ "video-analysis:gemini-3.6-flash:360s": 600,
13373
+ "video-analysis:gemini-3.6-flash:600s": 990,
13374
+ "video-analysis:gemini-3.1-pro:60s": 216,
13375
+ "video-analysis:gemini-3.1-pro:180s": 232,
13376
+ "video-analysis:gemini-3.1-pro:360s": 639,
13377
+ "video-analysis:gemini-3.1-pro:600s": 1053,
13378
13378
  // Mixed tiers (`mixed` + `mixed-fast`) share ONE credit family — they are
13379
13379
  // variants of the same engine plan (plan internals live in the private
13380
13380
  // analysis plugin). Admin-tunable via model_pricing like every other row.
13381
- "video-analysis:mixed:60s": 268,
13382
- "video-analysis:mixed:180s": 289,
13383
- "video-analysis:mixed:360s": 724,
13384
- "video-analysis:mixed:600s": 1169,
13381
+ "video-analysis:mixed:60s": 269,
13382
+ "video-analysis:mixed:180s": 290,
13383
+ "video-analysis:mixed:360s": 727,
13384
+ "video-analysis:mixed:600s": 1174,
13385
13385
  // SMART — the accuracy tier, and since the 2026-08-03 re-plan a multi-roll
13386
13386
  // plan like the others, always refined (`selectionMode` does not apply
13387
13387
  // here — smart always refines; it never offers a cheaper "choose" path).
13388
13388
  // Priced above the economy tiers because it genuinely costs more to run;
13389
13389
  // the only tier whose accuracy is validated against a hand-counted edit
13390
13390
  // list, re-validated at the current plan before this schedule shipped.
13391
- "video-analysis:smart:60s": 410,
13392
- "video-analysis:smart:180s": 500,
13393
- "video-analysis:smart:360s": 1259,
13394
- "video-analysis:smart:600s": 2064
13391
+ "video-analysis:smart:60s": 412,
13392
+ "video-analysis:smart:180s": 502,
13393
+ "video-analysis:smart:360s": 1264,
13394
+ "video-analysis:smart:600s": 2071
13395
13395
  };
13396
13396
  function videoAnalysisCreditSegment(modelOrSentinel) {
13397
13397
  return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
@@ -13412,14 +13412,14 @@ function videoAnalysisNumWindows(bucketSec) {
13412
13412
  return bucketSec <= VIDEO_ANALYSIS_WINDOW.SINGLE_MAX ? 1 : 1 + Math.ceil((bucketSec - WINDOW_LEN) / WINDOW_STRIDE);
13413
13413
  }
13414
13414
  var VIDEO_AUDIT_BUCKET_CREDITS = {
13415
- "video-audit:60s": 213,
13416
- "video-audit:180s": 289,
13417
- "video-audit:360s": 659,
13418
- "video-audit:600s": 1066,
13419
- "video-audit:auto:60s": 393,
13420
- "video-audit:auto:180s": 474,
13421
- "video-audit:auto:360s": 1173,
13422
- "video-audit:auto:600s": 1912
13415
+ "video-audit:60s": 214,
13416
+ "video-audit:180s": 290,
13417
+ "video-audit:360s": 661,
13418
+ "video-audit:600s": 1070,
13419
+ "video-audit:auto:60s": 394,
13420
+ "video-audit:auto:180s": 475,
13421
+ "video-audit:auto:360s": 1176,
13422
+ "video-audit:auto:600s": 1917
13423
13423
  };
13424
13424
  function buildVideoAuditCreditId(args) {
13425
13425
  const { analysisProvided, durationSec } = args;