@nodaro/shared 2.12.2 → 2.13.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
@@ -12195,8 +12195,28 @@ function describeNodeAdjustments(adjustments) {
12195
12195
  );
12196
12196
  }
12197
12197
 
12198
+ // src/prompt-affixes.ts
12199
+ var PROMPT_PREFIX_KEY = "promptPrefix";
12200
+ var PROMPT_SUFFIX_KEY = "promptSuffix";
12201
+ function nonBlank(v) {
12202
+ return typeof v === "string" && v.trim().length > 0 ? v : void 0;
12203
+ }
12204
+ function readPromptAffixes(data) {
12205
+ const prefix = nonBlank(data[PROMPT_PREFIX_KEY]);
12206
+ const suffix = nonBlank(data[PROMPT_SUFFIX_KEY]);
12207
+ return {
12208
+ ...prefix !== void 0 ? { prefix } : {},
12209
+ ...suffix !== void 0 ? { suffix } : {}
12210
+ };
12211
+ }
12212
+
12198
12213
  // src/node-preset-extract.ts
12199
12214
  var PRESET_APPLY_CLEAR_KEYS = [...COMPOSER_PLAN_FIELDS, "lottieUrl"];
12215
+ var PROMPT_CONTENT_KEYS = ["prompt", PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY];
12216
+ function presetApplyClearKeys(presetData) {
12217
+ const ownsPromptContent = PROMPT_CONTENT_KEYS.some((k) => presetData[k] !== void 0);
12218
+ return ownsPromptContent ? [...PRESET_APPLY_CLEAR_KEYS, PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY] : PRESET_APPLY_CLEAR_KEYS;
12219
+ }
12200
12220
  var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
12201
12221
  "label",
12202
12222
  "fieldMappings",
@@ -13026,7 +13046,24 @@ var VIDEO_ANALYSIS_VISUAL_EFFECTS = [
13026
13046
  "distortion",
13027
13047
  "double-exposure"
13028
13048
  ];
13029
- var VIDEO_ANALYSIS_TRANSITIONS = ["cut", "fade", "dissolve", "wipe", "whip"];
13049
+ var VIDEO_ANALYSIS_TRANSITIONS = [
13050
+ "cut",
13051
+ "fade",
13052
+ "dissolve",
13053
+ "wipe",
13054
+ "whip",
13055
+ // v2 (2026-08-30, recast shot craft rev 1.5 Appendix F): the common edits a
13056
+ // creator actually cuts with. `white-flash` / `digital-glitch` are spelled
13057
+ // out because `flash` / `glitch` already name in-shot EFFECTS (the axis test
13058
+ // below) — a device is the edit BETWEEN two shots, an effect is on one shot.
13059
+ "zoom",
13060
+ "slide",
13061
+ "white-flash",
13062
+ "digital-glitch",
13063
+ "morph",
13064
+ "match",
13065
+ "jump"
13066
+ ];
13030
13067
  var VIDEO_ANALYSIS_TEXT_KINDS = ["title", "caption", "lower-third", "subtitle", "logo", "other"];
13031
13068
  var VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN = ["fade"];
13032
13069
  var VIDEO_ANALYSIS_SPEED_EFFECTS = ["slow-motion", "ramp-in", "ramp-out", "timelapse", "freeze", "reverse"];
@@ -13912,6 +13949,8 @@ exports.PRESET_SETTING_KEYS = PRESET_SETTING_KEYS;
13912
13949
  exports.PRICING_DEFAULT_DURATION_SEC = PRICING_DEFAULT_DURATION_SEC;
13913
13950
  exports.PRICING_DEFAULT_RESOLUTION = PRICING_DEFAULT_RESOLUTION;
13914
13951
  exports.PROMPT_HARD_CEILING = PROMPT_HARD_CEILING;
13952
+ exports.PROMPT_PREFIX_KEY = PROMPT_PREFIX_KEY;
13953
+ exports.PROMPT_SUFFIX_KEY = PROMPT_SUFFIX_KEY;
13915
13954
  exports.PROVIDER_DIRECTIVE_DEFAULTS = PROVIDER_DIRECTIVE_DEFAULTS;
13916
13955
  exports.PROVIDER_PLACEHOLDER_PREFIX = PROVIDER_PLACEHOLDER_PREFIX;
13917
13956
  exports.PipelineCompletedEventSchema = PipelineCompletedEventSchema;
@@ -14313,9 +14352,11 @@ exports.planSheetGeneration = planSheetGeneration;
14313
14352
  exports.planSheetPanels = planSheetPanels;
14314
14353
  exports.preferredInputModeForModel = preferredInputModeForModel;
14315
14354
  exports.presentTypes = presentTypes;
14355
+ exports.presetApplyClearKeys = presetApplyClearKeys;
14316
14356
  exports.presetDataMatches = presetDataMatches;
14317
14357
  exports.presetEntries = presetEntries;
14318
14358
  exports.qualityOptionsByKind = qualityOptionsByKind;
14359
+ exports.readPromptAffixes = readPromptAffixes;
14319
14360
  exports.refHandleCategory = refHandleCategory;
14320
14361
  exports.referenceModalityForHandle = referenceModalityForHandle;
14321
14362
  exports.referenceSheetCreditId = referenceSheetCreditId;