@nodaro/shared 1.12.0 → 1.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
@@ -4474,8 +4474,18 @@ function getLlmModalityCaps(modelId) {
4474
4474
  if (!modelId) return { image: true, video: false, audio: false };
4475
4475
  return LLM_MODALITY_CAPS[modelId] ?? { image: true, video: false, audio: false };
4476
4476
  }
4477
+ function dashAliasToCanonical(id) {
4478
+ return id.replace(/-(\d+)-(\d+)$/, "-$1.$2");
4479
+ }
4477
4480
  function getLlmModel(id) {
4478
- return LLM_MODELS.find((m) => m.id === id);
4481
+ const exact = LLM_MODELS.find((m) => m.id === id);
4482
+ if (exact) return exact;
4483
+ const canonical = dashAliasToCanonical(id);
4484
+ if (canonical !== id) {
4485
+ const aliased = LLM_MODELS.find((m) => m.id === canonical);
4486
+ if (aliased) return aliased;
4487
+ }
4488
+ return LLM_MODELS.find((m) => m.kieSlugOrModel === id || m.directFallbackModel === id);
4479
4489
  }
4480
4490
  function getLlmTier(id) {
4481
4491
  return getLlmModel(id)?.tier ?? "standard";
@@ -6237,6 +6247,12 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
6237
6247
  "voice-character",
6238
6248
  "voice-delivery"
6239
6249
  ]);
6250
+ var HINT_EXEMPT_PARAMETER_TYPES = /* @__PURE__ */ new Set([
6251
+ "motion",
6252
+ "scene-count",
6253
+ "duration",
6254
+ "aspect-ratio"
6255
+ ]);
6240
6256
  function getParameterValue(data, nodeType) {
6241
6257
  switch (nodeType) {
6242
6258
  case "text-prompt":
@@ -12324,6 +12340,7 @@ exports.GenerateMotionResultSchema = GenerateMotionResultSchema;
12324
12340
  exports.HANDLE_PORT_SEPARATOR = HANDLE_PORT_SEPARATOR;
12325
12341
  exports.HELPERS_SHIPPED_IN_1B3 = HELPERS_SHIPPED_IN_1B3;
12326
12342
  exports.HIGH_QUALITY_PROVIDERS = HIGH_QUALITY_PROVIDERS;
12343
+ exports.HINT_EXEMPT_PARAMETER_TYPES = HINT_EXEMPT_PARAMETER_TYPES;
12327
12344
  exports.I2I_MASK_SUPPORT = I2I_MASK_SUPPORT;
12328
12345
  exports.I2I_STRENGTH_SUPPORT = I2I_STRENGTH_SUPPORT;
12329
12346
  exports.IDEOGRAM_PROVIDERS = IDEOGRAM_PROVIDERS;