@nodaro/shared 2.0.1 → 2.0.3

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
@@ -33,11 +33,14 @@ var FREECUT_REQUEST_IMPORT = "FREECUT_REQUEST_IMPORT";
33
33
  var MODEL_RECOMMENDATIONS = [
34
34
  // image
35
35
  { intent: "best for typography / logos / text-heavy", modelIds: ["nano-banana-pro", "gpt-image-2"], note: "Nano Banana Pro for diagrams / complex text; GPT Image 2 for logos and short copy." },
36
- { intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest at 1 credit. Qwen / Imagen4 Fast for slightly higher quality." },
36
+ // Notes name the RANKING, not the price the price sits in the generated
37
+ // table directly below them and in `pricing`, so restating it here just
38
+ // creates a copy that rots (this one said "1 credit" long after it was 2).
39
+ { intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
37
40
  { intent: "highest fidelity image", modelIds: ["nano-banana-pro", "imagen4-ultra", "flux-flex"], note: "Pick by family preference; all three are premium tiers." },
38
41
  { intent: "image edit / restyle", modelIds: ["flux-kontext", "ideogram-remix", "seedream-5-pro-i2i"], note: "Flux Kontext preserves identity; Ideogram Remix is character-aware; Seedream 5 Pro for instruction-based edits (5 Lite is the budget option)." },
39
42
  { intent: "highest-resolution image (4K / 8K)", modelIds: ["topaz-image-upscale", "nano-banana-pro", "gpt-image-2"], note: "Generate at native then Topaz upscale for 8K." },
40
- { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "1 credit, no prompt needed." },
43
+ { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
41
44
  // video
42
45
  { intent: "best cinematic video", modelIds: ["veo3", "kling-3.0", "seedance-2"], note: "VEO 3.1 Quality for premium narrative; Kling 3.0 for music-synced motion; Seedance 2 for reference-driven consistency." },
43
46
  { intent: "cheap batch video clips", modelIds: ["veo3.1", "wan-turbo", "bytedance-lite"], note: "VEO 3.1 Fast is the best price/quality balance with native audio." },
@@ -1721,11 +1724,11 @@ var VIDEO_MODELS = {
1721
1724
  description: "Our most advanced analysis tier \u2014 multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
1722
1725
  useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
1723
1726
  pricing: [
1724
- { identifier: "video-analysis:mixed", credits: 630, note: "10-min ceiling (no duration given)" },
1725
- { identifier: "video-analysis:mixed:60s", credits: 110 },
1726
- { identifier: "video-analysis:mixed:180s", credits: 150 },
1727
- { identifier: "video-analysis:mixed:360s", credits: 380 },
1728
- { identifier: "video-analysis:mixed:600s", credits: 630, note: "10-min ceiling" }
1727
+ { identifier: "video-analysis:mixed", credits: 621, note: "10-min ceiling (no duration given)" },
1728
+ { identifier: "video-analysis:mixed:60s", credits: 104 },
1729
+ { identifier: "video-analysis:mixed:180s", credits: 142 },
1730
+ { identifier: "video-analysis:mixed:360s", credits: 372 },
1731
+ { identifier: "video-analysis:mixed:600s", credits: 621, note: "10-min ceiling" }
1729
1732
  ]
1730
1733
  },
1731
1734
  // SMART — the accuracy tier, and the only one that does not rely on voting.
@@ -1742,11 +1745,11 @@ var VIDEO_MODELS = {
1742
1745
  description: "Highest-accuracy analysis \u2014 a single deep pass that reads the footage frame by frame, finds its own shot boundaries, and identifies the cast by appearance. Best choice when the shot list will drive regeneration. Billed per duration bucket.",
1743
1746
  useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
1744
1747
  pricing: [
1745
- { identifier: "video-analysis:smart", credits: 3500, note: "10-min ceiling (no duration given)" },
1746
- { identifier: "video-analysis:smart:60s", credits: 460 },
1747
- { identifier: "video-analysis:smart:180s", credits: 980 },
1748
- { identifier: "video-analysis:smart:360s", credits: 2110 },
1749
- { identifier: "video-analysis:smart:600s", credits: 3500, note: "10-min ceiling" }
1748
+ { identifier: "video-analysis:smart", credits: 3496, note: "10-min ceiling (no duration given)" },
1749
+ { identifier: "video-analysis:smart:60s", credits: 454 },
1750
+ { identifier: "video-analysis:smart:180s", credits: 975 },
1751
+ { identifier: "video-analysis:smart:360s", credits: 2105 },
1752
+ { identifier: "video-analysis:smart:600s", credits: 3496, note: "10-min ceiling" }
1750
1753
  ]
1751
1754
  }
1752
1755
  };
@@ -7471,13 +7474,13 @@ var SCRAPER_ACTOR_LABELS = {
7471
7474
  "rss": "RSS Feed"
7472
7475
  };
7473
7476
  var SCRAPER_CREDIT_COSTS = {
7474
- "web-scrape": 2,
7475
- "web-scrape:google-search": 3,
7476
- "web-scrape:content-crawler": 1,
7477
- "web-scrape:content-crawler:site": 5,
7478
- "web-scrape:instagram": 1,
7479
- "web-scrape:tiktok": 1,
7480
- "web-scrape:rss": 1
7477
+ "web-scrape": 20,
7478
+ "web-scrape:google-search": 30,
7479
+ "web-scrape:content-crawler": 10,
7480
+ "web-scrape:content-crawler:site": 50,
7481
+ "web-scrape:instagram": 10,
7482
+ "web-scrape:tiktok": 10,
7483
+ "web-scrape:rss": 10
7481
7484
  };
7482
7485
  function isScraperActor(value) {
7483
7486
  return typeof value === "string" && SCRAPER_ACTOR_IDS.includes(value);
@@ -9481,10 +9484,10 @@ var TIER_PIPELINE_PARALLELISM = {
9481
9484
  };
9482
9485
  var TIER_MAX_PIPELINE_COST_CREDITS = {
9483
9486
  free: 0,
9484
- basic: 300,
9485
- standard: 800,
9486
- pro: 2e3,
9487
- business: 5e3
9487
+ basic: 3e3,
9488
+ standard: 8e3,
9489
+ pro: 2e4,
9490
+ business: 5e4
9488
9491
  };
9489
9492
  var PIPELINE_STAGE_TIMEOUT_MS = 30 * 60 * 1e3;
9490
9493
  var PIPELINE_HARD_TIMEOUT_MS = 4 * 60 * 60 * 1e3;
@@ -12628,18 +12631,18 @@ var VIDEO_ANALYSIS_BUCKET_CREDITS = {
12628
12631
  // Mixed tiers (`mixed` + `mixed-fast`) share ONE credit family — they are
12629
12632
  // variants of the same engine plan (plan internals live in the private
12630
12633
  // analysis plugin). Admin-tunable via model_pricing like every other row.
12631
- "video-analysis:mixed:60s": 110,
12632
- "video-analysis:mixed:180s": 150,
12633
- "video-analysis:mixed:360s": 380,
12634
- "video-analysis:mixed:600s": 630,
12634
+ "video-analysis:mixed:60s": 104,
12635
+ "video-analysis:mixed:180s": 142,
12636
+ "video-analysis:mixed:360s": 372,
12637
+ "video-analysis:mixed:600s": 621,
12635
12638
  // SMART — the one native-transport plan: a single pass with reasoning and
12636
12639
  // frame sampling turned all the way up. Priced well above the economy tiers
12637
12640
  // because it genuinely costs more to run, and it is the only tier whose
12638
12641
  // accuracy was measured against a hand-counted edit list.
12639
- "video-analysis:smart:60s": 460,
12640
- "video-analysis:smart:180s": 980,
12641
- "video-analysis:smart:360s": 2110,
12642
- "video-analysis:smart:600s": 3500
12642
+ "video-analysis:smart:60s": 454,
12643
+ "video-analysis:smart:180s": 975,
12644
+ "video-analysis:smart:360s": 2105,
12645
+ "video-analysis:smart:600s": 3496
12643
12646
  };
12644
12647
  function videoAnalysisCreditSegment(modelOrSentinel) {
12645
12648
  return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;