@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.cjs +16 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/scraper-actors.test.ts +9 -6
- package/src/model-catalog.ts +5 -2
- package/src/pipeline-defaults.ts +10 -4
- package/src/scraper-actors.ts +13 -8
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
|
-
|
|
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: "
|
|
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." },
|
|
@@ -7471,13 +7474,13 @@ var SCRAPER_ACTOR_LABELS = {
|
|
|
7471
7474
|
"rss": "RSS Feed"
|
|
7472
7475
|
};
|
|
7473
7476
|
var SCRAPER_CREDIT_COSTS = {
|
|
7474
|
-
"web-scrape":
|
|
7475
|
-
"web-scrape:google-search":
|
|
7476
|
-
"web-scrape:content-crawler":
|
|
7477
|
-
"web-scrape:content-crawler:site":
|
|
7478
|
-
"web-scrape:instagram":
|
|
7479
|
-
"web-scrape:tiktok":
|
|
7480
|
-
"web-scrape:rss":
|
|
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:
|
|
9485
|
-
standard:
|
|
9486
|
-
pro:
|
|
9487
|
-
business:
|
|
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;
|