@nodaro/prompts 1.32.0 → 1.34.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ANIMAL_SUBCATEGORY_LABELS, ANIMAL_SUBCATEGORY_ORDER, VEHICLE_SUBCATEGORY_LABELS, VEHICLE_SUBCATEGORY_ORDER, WEAPON_SUBCATEGORY_LABELS, WEAPON_SUBCATEGORY_ORDER, FURNITURE_SUBCATEGORY_LABELS, FURNITURE_SUBCATEGORY_ORDER, SOCIAL_POST_NODE_TYPES, FURNITURE, WEAPONS, VEHICLES, ANIMALS, getAnimalPromptHint, PASSTHROUGH_TYPES, registerCatalogSidecars, resetCatalogSidecars, pickIds, getAnimalTerm, getVehicle, getWeapon, getFurniture, DEFAULT_USAGE_MODE, usageModeDirective, DEFAULT_LOCATION_USAGE_MODE, imageReferenceLimit, knownImageSlugsFromRefs, findImageMentionTokens, knownEntitySlugsFromRefs, findEntityMentionTokens, findCharacterMentionTokens, findLocationMentionTokens, NATIVE_NEGATIVE_PROMPT_MODELS, getMaxNegativePromptChars, getMaxImagePromptChars, MODELS_WITH_REFERENCE_IMAGE_SUPPORT, roleToPhrase, resolveDefaultRole, SEEDANCE_2_REF_LIMITS, NON_EN_LOCALE_IDS, readPromptAffixes, resolveFrameDelivery, VIDEO_REF_LIMITS_BY_PROVIDER, setRegisteredPersonPackFields, PLACEHOLDER_CHARACTER_NAME, REFERENCE_ROLE_PRESETS, imageMentionSlugForRef, entityMentionSlugForRef, defaultRoleForSource, locationReferencePhotoKindLabel, resolveNodeRefs, normalizeRoleSlug } from '@nodaro/shared';
1
+ import { ANIMAL_SUBCATEGORY_LABELS, ANIMAL_SUBCATEGORY_ORDER, VEHICLE_SUBCATEGORY_LABELS, VEHICLE_SUBCATEGORY_ORDER, WEAPON_SUBCATEGORY_LABELS, WEAPON_SUBCATEGORY_ORDER, FURNITURE_SUBCATEGORY_LABELS, FURNITURE_SUBCATEGORY_ORDER, SOCIAL_POST_NODE_TYPES, FURNITURE, WEAPONS, VEHICLES, ANIMALS, getAnimalPromptHint, PASSTHROUGH_TYPES, registerCatalogSidecars, resetCatalogSidecars, pickIds, getAnimalTerm, getVehicle, getWeapon, getFurniture, DEFAULT_USAGE_MODE, usageModeDirective, DEFAULT_LOCATION_USAGE_MODE, imageReferenceLimit, knownImageSlugsFromRefs, findImageMentionTokens, knownEntitySlugsFromRefs, findEntityMentionTokens, findCharacterMentionTokens, findLocationMentionTokens, NATIVE_NEGATIVE_PROMPT_MODELS, getMaxNegativePromptChars, getMaxImagePromptChars, MODELS_WITH_REFERENCE_IMAGE_SUPPORT, roleToPhrase, resolveDefaultRole, SEEDANCE_2_REF_LIMITS, NON_EN_LOCALE_IDS, readPromptAffixes, resolveFrameDelivery, VIDEO_REF_LIMITS_BY_PROVIDER, resolveNodeRefs, setRegisteredPersonPackFields, PLACEHOLDER_CHARACTER_NAME, REFERENCE_ROLE_PRESETS, imageMentionSlugForRef, entityMentionSlugForRef, defaultRoleForSource, locationReferencePhotoKindLabel, normalizeRoleSlug } from '@nodaro/shared';
2
2
 
3
3
  var __defProp = Object.defineProperty;
4
4
  var __export = (target, all) => {
@@ -41646,6 +41646,7 @@ var PROVIDER_CAPABILITIES = {
41646
41646
  "nano-banana": "Fast generation, style flexibility, reference image support",
41647
41647
  "nano-banana-pro": "Higher quality Nano Banana with better detail",
41648
41648
  "nano-banana-2": "Latest Nano Banana with resolution options (1K/2K/4K)",
41649
+ "nano-banana-2-1": "Nano Banana 2.1 \u2014 sharper quality, prompt adherence, character consistency and text rendering, 1K/2K/4K",
41649
41650
  "nano-banana-2-lite": "Fast, low-cost 1K generation for drafts and iteration",
41650
41651
  "gpt-image": "Creative concepts, illustration, variable quality tiers",
41651
41652
  "gpt-image-2": "Latest GPT Image \u2014 sharp text, photorealism, 1K/2K/4K resolution",
@@ -42364,15 +42365,16 @@ var GENERATE_IMAGE_PRESETS = [
42364
42365
  // ── Cast & Consistency (clean grids per the multi-character workflow:
42365
42366
  // sterile neutral-background reference grids built to be FED BACK as identity
42366
42367
  // anchors — unlike the editorial boards above, decoration here is noise.
42367
- // nano-banana-2 per the source guide: cheaper/faster per attempt with strong
42368
- // practical consistency; 4K so panel faces stay sharp when reused as refs.) ──
42368
+ // Nano Banana 2.1 (decided 2026-10-08 — it replaced Nano Banana 2, which the
42369
+ // source guide recommended: cheaper/faster per attempt with strong practical
42370
+ // consistency); 4K so panel faces stay sharp when reused as refs.) ──
42369
42371
  {
42370
42372
  id: "generate-image/character-reference-grid",
42371
42373
  name: "Character Reference Grid",
42372
42374
  description: "Connect a photo \u2192 clean 4-angle identity grid (no decorations) \u2014 the strongest consistency anchor.",
42373
42375
  group: "Cast & Consistency",
42374
42376
  data: {
42375
- provider: "nano-banana-2",
42377
+ provider: "nano-banana-2-1",
42376
42378
  aspectRatio: "3:4",
42377
42379
  resolution: "4K",
42378
42380
  promptPrefix: `Create a clean character reference grid using the attached photo of the person as the single source of truth for face, hair, eyes, skin tone, build and outfit. Four equal panels arranged in a tidy two-by-two grid on a single seamless neutral light-grey studio background: a tight front-facing portrait close-up, a 3/4-view portrait, a full-body shot from the front in a relaxed neutral stance, and a full-body shot from the back. The SAME person in every panel \u2014 identical age, features, hairstyle and outfit from the attached photo. Identical soft, even studio lighting in all four panels with no dramatic shadows. No decorations, no background props, no text, no UI elements \u2014 a sterile, production-neutral reference sheet built to be reused as an identity reference in later generations.`,
@@ -42386,7 +42388,7 @@ var GENERATE_IMAGE_PRESETS = [
42386
42388
  description: "Connect 2\u20134 character refs \u2192 one labeled cast sheet; then reference cast members by name in scenes.",
42387
42389
  group: "Cast & Consistency",
42388
42390
  data: {
42389
- provider: "nano-banana-2",
42391
+ provider: "nano-banana-2-1",
42390
42392
  aspectRatio: "3:4",
42391
42393
  resolution: "4K",
42392
42394
  prompt: `Create a clean multi-character cast reference sheet composed as horizontal strips stacked vertically in one image \u2014 one strip per character from the attached reference images, in the order they are attached, using exactly as many strips as there are attached characters. Each strip shows that character in four aligned studio panels: tight front portrait close-up \xB7 3/4 portrait \xB7 full body front \xB7 full body back, all in a relaxed neutral stance. Label each strip on the left edge with the character's name in clean bold lettering: {character names || ALEX \xB7 MAYA \xB7 SAM}. Every character must match their attached reference exactly \u2014 same face, hair, skin tone, build and outfit \u2014 with no identity blending between rows. Single seamless neutral light-grey studio background across the whole sheet, identical soft even lighting in every panel, consistent panel sizing and alignment. No decorations, no props, no UI elements beyond the row name labels. A sterile production casting sheet built to be reused as the single identity reference for this cast in later generations. Photorealistic, sharp focus, natural skin texture, true-to-life color.`,
@@ -42399,7 +42401,7 @@ var GENERATE_IMAGE_PRESETS = [
42399
42401
  description: "Connect a cast grid \u2192 stage a scene naming the characters; never re-describe their looks.",
42400
42402
  group: "Cast & Consistency",
42401
42403
  data: {
42402
- provider: "nano-banana-2",
42404
+ provider: "nano-banana-2-1",
42403
42405
  aspectRatio: "16:9",
42404
42406
  resolution: "2K",
42405
42407
  prompt: `Using the attached character reference sheet as the single source of truth for every named character's face, hair, build and outfit, generate one photorealistic scene: {scene || ALEX and MAYA share a quiet laugh at the counter of a sunlit ramen bar while SAM studies the menu}. Refer to the characters ONLY by the names labeled on the reference sheet and keep each one perfectly consistent with their reference row \u2014 do not invent new physical traits, do not blend identities, and do not alter outfits unless the scene says so. Stage them naturally in the environment with believable eye-lines, interactions and spacing. Cinematic photography, 35mm lens look with gentle depth of field, soft motivated lighting that matches the location, cohesive filmic color grade, natural skin texture, sharp detail on every character.`,
@@ -47627,7 +47629,7 @@ function computeNodeSendText(nodeType, data, args) {
47627
47629
  case "generate-image":
47628
47630
  return computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap });
47629
47631
  case "collection-write": {
47630
- const typed = [data.title, data.text, data.link].find((v) => present2(v));
47632
+ const typed = [data.title, data.text, data.link].map((v) => typeof v === "string" ? resolveNodeRefs(v, args.refMap) : v).find((v) => present2(v));
47631
47633
  return [args.override, args.wired, typed].find(present2) ?? "";
47632
47634
  }
47633
47635
  default: