@nodaro/shared 1.17.0 → 1.19.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
@@ -4354,7 +4354,11 @@ var LLM_MODELS = [
4354
4354
  {
4355
4355
  id: "claude-opus-4.7",
4356
4356
  displayName: "Claude Opus 4.7",
4357
- desc: "Highest quality, complex tasks",
4357
+ // Superlatives belong to the CURRENT top model only — `desc` renders in every
4358
+ // model picker, so leaving "highest quality" on an older Opus steers
4359
+ // quality-critical work backwards (all three Opus entries bill premium, so
4360
+ // the mis-steer is invisible on the invoice).
4361
+ desc: "Older Opus, complex tasks",
4358
4362
  tier: "premium",
4359
4363
  kieFormat: "messages",
4360
4364
  kieSlugOrModel: "claude-opus-4-7",
@@ -4456,7 +4460,7 @@ var LLM_MODELS = [
4456
4460
  {
4457
4461
  id: "claude-opus-4.8",
4458
4462
  displayName: "Claude Opus 4.8",
4459
- desc: "Most capable Claude, long-horizon work",
4463
+ desc: "Previous-gen Opus, long-horizon work",
4460
4464
  tier: "premium",
4461
4465
  kieFormat: "messages",
4462
4466
  kieSlugOrModel: "claude-opus-4-8",
@@ -4469,6 +4473,28 @@ var LLM_MODELS = [
4469
4473
  supportsTemperature: false,
4470
4474
  preferKie: true
4471
4475
  },
4476
+ {
4477
+ id: "claude-opus-5",
4478
+ displayName: "Claude Opus 5",
4479
+ desc: "Latest Opus, deepest agentic reasoning",
4480
+ tier: "premium",
4481
+ kieFormat: "messages",
4482
+ // KIE serves Opus 5 on the Claude-native messages dialect under the plain
4483
+ // id (docs.kie.ai/market/claude/claude-opus-5.md) — same path shape as
4484
+ // claude-opus-4-8 / claude-fable-5.
4485
+ kieSlugOrModel: "claude-opus-5",
4486
+ vendor: "anthropic",
4487
+ structuredOutputMode: "anthropic-tool",
4488
+ supportsImages: true,
4489
+ maxOutputTokens: 16384,
4490
+ directFallbackModel: "claude-opus-5",
4491
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
4492
+ supportsTemperature: false,
4493
+ preferKie: true,
4494
+ // Opus 5 reasons with NO thinking param sent (vendor default flipped from
4495
+ // Opus 4.8/4.7) — so every call needs output headroom, not just xhigh/max.
4496
+ thinkingDefaultOn: true
4497
+ },
4472
4498
  {
4473
4499
  id: "claude-fable-5",
4474
4500
  displayName: "Claude Fable 5",
@@ -4504,7 +4530,7 @@ var LLM_FEATURE_DEFAULTS = {
4504
4530
  "lottie-overlay": "claude-sonnet-4.6",
4505
4531
  "3d-title": "claude-sonnet-4.6",
4506
4532
  "image-to-text": "claude-sonnet-4.6",
4507
- "describe-to-picker": "claude-opus-4.7",
4533
+ "describe-to-picker": "claude-opus-5",
4508
4534
  "qa-check": "gemini-3.6-flash",
4509
4535
  "generate-script": "gemini-3.6-flash",
4510
4536
  "translate": "gemini-3.6-flash",
@@ -4525,6 +4551,7 @@ var LLM_MODALITY_CAPS = {
4525
4551
  "gpt-5.6-sol": { image: true, video: false, audio: false },
4526
4552
  "claude-sonnet-5": { image: true, video: false, audio: false },
4527
4553
  "claude-opus-4.8": { image: true, video: false, audio: false },
4554
+ "claude-opus-5": { image: true, video: false, audio: false },
4528
4555
  "claude-fable-5": { image: true, video: false, audio: false }
4529
4556
  };
4530
4557
  function getLlmModalityCaps(modelId) {
@@ -9636,7 +9663,8 @@ var PIPELINE_PINNABLE_VIDEO_MODELS = [
9636
9663
  var PIPELINE_PINNABLE_SCRIPT_LLMS = [
9637
9664
  "claude-haiku-4-5",
9638
9665
  "claude-sonnet-4-6",
9639
- "claude-opus-4-7"
9666
+ "claude-opus-4-7",
9667
+ "claude-opus-5"
9640
9668
  ];
9641
9669
  var ImageModelEnum = zod.z.enum(PIPELINE_PINNABLE_IMAGE_MODELS);
9642
9670
  var VideoModelEnum = zod.z.enum(PIPELINE_PINNABLE_VIDEO_MODELS);
@@ -12324,6 +12352,18 @@ function videoAnalysisNumWindows(bucketSec) {
12324
12352
  return bucketSec <= VIDEO_ANALYSIS_WINDOW.SINGLE_MAX ? 1 : 1 + Math.ceil((bucketSec - WINDOW_LEN) / WINDOW_STRIDE);
12325
12353
  }
12326
12354
 
12355
+ // src/smart-cut-windows.ts
12356
+ var SMART_CUT_WINDOW_MAX = 24;
12357
+ var SMART_CUT_WINDOW_MIN = 1;
12358
+ var SMART_CUT_WINDOW_DEFAULT = 8;
12359
+ function clampSmartCutWindow(value) {
12360
+ if (typeof value !== "number" || !Number.isFinite(value)) return void 0;
12361
+ const n = Math.round(value);
12362
+ if (n < SMART_CUT_WINDOW_MIN) return SMART_CUT_WINDOW_MIN;
12363
+ if (n > SMART_CUT_WINDOW_MAX) return SMART_CUT_WINDOW_MAX;
12364
+ return n;
12365
+ }
12366
+
12327
12367
  exports.ACTIVE_SCENE_HELPERS = ACTIVE_SCENE_HELPERS;
12328
12368
  exports.AGGREGATEABLE_TYPES = AGGREGATEABLE_TYPES;
12329
12369
  exports.AI_AVATAR_DURATION_BUCKETS = AI_AVATAR_DURATION_BUCKETS;
@@ -12637,6 +12677,9 @@ exports.SHORT_FILM_ANGLE_COUNT = SHORT_FILM_ANGLE_COUNT;
12637
12677
  exports.SHORT_FILM_EXPRESSION_COUNT = SHORT_FILM_EXPRESSION_COUNT;
12638
12678
  exports.SHORT_FILM_VARIANT_THRESHOLD_SEC = SHORT_FILM_VARIANT_THRESHOLD_SEC;
12639
12679
  exports.SLOT_TOKEN_RE = SLOT_TOKEN_RE;
12680
+ exports.SMART_CUT_WINDOW_DEFAULT = SMART_CUT_WINDOW_DEFAULT;
12681
+ exports.SMART_CUT_WINDOW_MAX = SMART_CUT_WINDOW_MAX;
12682
+ exports.SMART_CUT_WINDOW_MIN = SMART_CUT_WINDOW_MIN;
12640
12683
  exports.SOCIAL_POST_NODE_TYPES = SOCIAL_POST_NODE_TYPES;
12641
12684
  exports.STAGE_PATCH_SCHEMA = STAGE_PATCH_SCHEMA;
12642
12685
  exports.STATIC_CAPTION_STYLES = STATIC_CAPTION_STYLES;
@@ -12777,6 +12820,7 @@ exports.characterSheetRefItems = characterSheetRefItems;
12777
12820
  exports.characterVariantAssetArrays = characterVariantAssetArrays;
12778
12821
  exports.cinematicCreditId = cinematicCreditId;
12779
12822
  exports.clampCinematicDuration = clampCinematicDuration;
12823
+ exports.clampSmartCutWindow = clampSmartCutWindow;
12780
12824
  exports.cleanOrphanedItems = cleanOrphanedItems;
12781
12825
  exports.clearImageCriticMetadata = clearImageCriticMetadata;
12782
12826
  exports.clearVideoCriticMetadata = clearVideoCriticMetadata;