@nodaro/shared 1.18.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",
@@ -4486,7 +4490,10 @@ var LLM_MODELS = [
4486
4490
  directFallbackModel: "claude-opus-5",
4487
4491
  reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
4488
4492
  supportsTemperature: false,
4489
- preferKie: true
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
4490
4497
  },
4491
4498
  {
4492
4499
  id: "claude-fable-5",
@@ -12345,6 +12352,18 @@ function videoAnalysisNumWindows(bucketSec) {
12345
12352
  return bucketSec <= VIDEO_ANALYSIS_WINDOW.SINGLE_MAX ? 1 : 1 + Math.ceil((bucketSec - WINDOW_LEN) / WINDOW_STRIDE);
12346
12353
  }
12347
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
+
12348
12367
  exports.ACTIVE_SCENE_HELPERS = ACTIVE_SCENE_HELPERS;
12349
12368
  exports.AGGREGATEABLE_TYPES = AGGREGATEABLE_TYPES;
12350
12369
  exports.AI_AVATAR_DURATION_BUCKETS = AI_AVATAR_DURATION_BUCKETS;
@@ -12658,6 +12677,9 @@ exports.SHORT_FILM_ANGLE_COUNT = SHORT_FILM_ANGLE_COUNT;
12658
12677
  exports.SHORT_FILM_EXPRESSION_COUNT = SHORT_FILM_EXPRESSION_COUNT;
12659
12678
  exports.SHORT_FILM_VARIANT_THRESHOLD_SEC = SHORT_FILM_VARIANT_THRESHOLD_SEC;
12660
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;
12661
12683
  exports.SOCIAL_POST_NODE_TYPES = SOCIAL_POST_NODE_TYPES;
12662
12684
  exports.STAGE_PATCH_SCHEMA = STAGE_PATCH_SCHEMA;
12663
12685
  exports.STATIC_CAPTION_STYLES = STATIC_CAPTION_STYLES;
@@ -12798,6 +12820,7 @@ exports.characterSheetRefItems = characterSheetRefItems;
12798
12820
  exports.characterVariantAssetArrays = characterVariantAssetArrays;
12799
12821
  exports.cinematicCreditId = cinematicCreditId;
12800
12822
  exports.clampCinematicDuration = clampCinematicDuration;
12823
+ exports.clampSmartCutWindow = clampSmartCutWindow;
12801
12824
  exports.cleanOrphanedItems = cleanOrphanedItems;
12802
12825
  exports.clearImageCriticMetadata = clearImageCriticMetadata;
12803
12826
  exports.clearVideoCriticMetadata = clearVideoCriticMetadata;