@nodaro/shared 2.0.2 → 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.d.cts CHANGED
@@ -2280,7 +2280,12 @@ declare function evaluateConditionGroup(parsedItem: unknown, rawItem: string, co
2280
2280
  declare const SCRAPER_ACTOR_IDS: readonly ["content-crawler", "google-search", "instagram", "tiktok", "rss"];
2281
2281
  type ScraperActorId = (typeof SCRAPER_ACTOR_IDS)[number];
2282
2282
  declare const SCRAPER_ACTOR_LABELS: Record<ScraperActorId, string>;
2283
- /** Credit costs per composite SKU — must stay in sync with STATIC_CREDIT_COSTS in backend. */
2283
+ /** Credit costs per composite SKU — must stay in sync with STATIC_CREDIT_COSTS in backend.
2284
+ *
2285
+ * "Must stay in sync" was doing no work: these were left at the pre-2026-07-30
2286
+ * credit base while the backend moved, so every SKU here read a tenth of the
2287
+ * real price. Values below are copied from `model_pricing`, which is what the
2288
+ * user is actually charged. */
2284
2289
  declare const SCRAPER_CREDIT_COSTS: Record<string, number>;
2285
2290
  declare function isScraperActor(value: unknown): value is ScraperActorId;
2286
2291
  interface ScraperCreditInput {
package/dist/index.d.ts CHANGED
@@ -2280,7 +2280,12 @@ declare function evaluateConditionGroup(parsedItem: unknown, rawItem: string, co
2280
2280
  declare const SCRAPER_ACTOR_IDS: readonly ["content-crawler", "google-search", "instagram", "tiktok", "rss"];
2281
2281
  type ScraperActorId = (typeof SCRAPER_ACTOR_IDS)[number];
2282
2282
  declare const SCRAPER_ACTOR_LABELS: Record<ScraperActorId, string>;
2283
- /** Credit costs per composite SKU — must stay in sync with STATIC_CREDIT_COSTS in backend. */
2283
+ /** Credit costs per composite SKU — must stay in sync with STATIC_CREDIT_COSTS in backend.
2284
+ *
2285
+ * "Must stay in sync" was doing no work: these were left at the pre-2026-07-30
2286
+ * credit base while the backend moved, so every SKU here read a tenth of the
2287
+ * real price. Values below are copied from `model_pricing`, which is what the
2288
+ * user is actually charged. */
2284
2289
  declare const SCRAPER_CREDIT_COSTS: Record<string, number>;
2285
2290
  declare function isScraperActor(value: unknown): value is ScraperActorId;
2286
2291
  interface ScraperCreditInput {
package/dist/index.js CHANGED
@@ -31,11 +31,14 @@ var FREECUT_REQUEST_IMPORT = "FREECUT_REQUEST_IMPORT";
31
31
  var MODEL_RECOMMENDATIONS = [
32
32
  // image
33
33
  { 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." },
34
- { 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." },
34
+ // Notes name the RANKING, not the price the price sits in the generated
35
+ // table directly below them and in `pricing`, so restating it here just
36
+ // creates a copy that rots (this one said "1 credit" long after it was 2).
37
+ { intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
35
38
  { intent: "highest fidelity image", modelIds: ["nano-banana-pro", "imagen4-ultra", "flux-flex"], note: "Pick by family preference; all three are premium tiers." },
36
39
  { 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)." },
37
40
  { 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." },
38
- { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "1 credit, no prompt needed." },
41
+ { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
39
42
  // video
40
43
  { 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." },
41
44
  { 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." },
@@ -7469,13 +7472,13 @@ var SCRAPER_ACTOR_LABELS = {
7469
7472
  "rss": "RSS Feed"
7470
7473
  };
7471
7474
  var SCRAPER_CREDIT_COSTS = {
7472
- "web-scrape": 2,
7473
- "web-scrape:google-search": 3,
7474
- "web-scrape:content-crawler": 1,
7475
- "web-scrape:content-crawler:site": 5,
7476
- "web-scrape:instagram": 1,
7477
- "web-scrape:tiktok": 1,
7478
- "web-scrape:rss": 1
7475
+ "web-scrape": 20,
7476
+ "web-scrape:google-search": 30,
7477
+ "web-scrape:content-crawler": 10,
7478
+ "web-scrape:content-crawler:site": 50,
7479
+ "web-scrape:instagram": 10,
7480
+ "web-scrape:tiktok": 10,
7481
+ "web-scrape:rss": 10
7479
7482
  };
7480
7483
  function isScraperActor(value) {
7481
7484
  return typeof value === "string" && SCRAPER_ACTOR_IDS.includes(value);
@@ -9479,10 +9482,10 @@ var TIER_PIPELINE_PARALLELISM = {
9479
9482
  };
9480
9483
  var TIER_MAX_PIPELINE_COST_CREDITS = {
9481
9484
  free: 0,
9482
- basic: 300,
9483
- standard: 800,
9484
- pro: 2e3,
9485
- business: 5e3
9485
+ basic: 3e3,
9486
+ standard: 8e3,
9487
+ pro: 2e4,
9488
+ business: 5e4
9486
9489
  };
9487
9490
  var PIPELINE_STAGE_TIMEOUT_MS = 30 * 60 * 1e3;
9488
9491
  var PIPELINE_HARD_TIMEOUT_MS = 4 * 60 * 60 * 1e3;