@nodaro/prompts 1.48.0 → 1.50.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.
Files changed (100) hide show
  1. package/dist/{catalog-packs-BDsrv8St.d.cts → catalog-packs-DeMcSVCR.d.cts} +1 -1
  2. package/dist/{catalog-packs-CAK42voB.d.ts → catalog-packs-DjqvicAR.d.ts} +1 -1
  3. package/dist/{chunk-RRHU6MD5.js → chunk-34JK2G34.js} +4 -4
  4. package/dist/{chunk-RRHU6MD5.js.map → chunk-34JK2G34.js.map} +1 -1
  5. package/dist/{chunk-LD47QOKS.js → chunk-3XSB5YDY.js} +92 -53
  6. package/dist/chunk-3XSB5YDY.js.map +1 -0
  7. package/dist/{chunk-XZXUU3YH.js → chunk-5XPELUES.js} +10 -5
  8. package/dist/chunk-5XPELUES.js.map +1 -0
  9. package/dist/{chunk-XBRW75LM.js → chunk-BWDQEAX2.js} +4 -4
  10. package/dist/{chunk-XBRW75LM.js.map → chunk-BWDQEAX2.js.map} +1 -1
  11. package/dist/{chunk-JHRVNWBS.js → chunk-C5LP7DAQ.js} +6 -6
  12. package/dist/{chunk-JHRVNWBS.js.map → chunk-C5LP7DAQ.js.map} +1 -1
  13. package/dist/{chunk-BTV2I7EN.js → chunk-DB6A5I6V.js} +3 -3
  14. package/dist/{chunk-BTV2I7EN.js.map → chunk-DB6A5I6V.js.map} +1 -1
  15. package/dist/{chunk-GZVCBSFG.js → chunk-FEOVUTFC.js} +10 -7
  16. package/dist/{chunk-GZVCBSFG.js.map → chunk-FEOVUTFC.js.map} +1 -1
  17. package/dist/{chunk-UNR34GYU.cjs → chunk-FFPFBNXH.cjs} +10 -5
  18. package/dist/chunk-FFPFBNXH.cjs.map +1 -0
  19. package/dist/chunk-GZ5SL2BI.js +30 -0
  20. package/dist/chunk-GZ5SL2BI.js.map +1 -0
  21. package/dist/{chunk-IMQB7GIK.cjs → chunk-HR4TFBU2.cjs} +35 -35
  22. package/dist/{chunk-IMQB7GIK.cjs.map → chunk-HR4TFBU2.cjs.map} +1 -1
  23. package/dist/{chunk-Z755PH3K.cjs → chunk-IADAATZK.cjs} +49 -49
  24. package/dist/{chunk-Z755PH3K.cjs.map → chunk-IADAATZK.cjs.map} +1 -1
  25. package/dist/{chunk-CMEUYFBZ.js → chunk-IXBTD2LW.js} +4 -4
  26. package/dist/{chunk-CMEUYFBZ.js.map → chunk-IXBTD2LW.js.map} +1 -1
  27. package/dist/{chunk-JV2WSMAA.cjs → chunk-JGEBO6L6.cjs} +8 -8
  28. package/dist/{chunk-JV2WSMAA.cjs.map → chunk-JGEBO6L6.cjs.map} +1 -1
  29. package/dist/{chunk-KNAKOSKV.cjs → chunk-KYKCHOOS.cjs} +13 -13
  30. package/dist/{chunk-KNAKOSKV.cjs.map → chunk-KYKCHOOS.cjs.map} +1 -1
  31. package/dist/{chunk-XGNUOU4F.cjs → chunk-MJIKM4YZ.cjs} +130 -127
  32. package/dist/{chunk-XGNUOU4F.cjs.map → chunk-MJIKM4YZ.cjs.map} +1 -1
  33. package/dist/{chunk-MGK6SFTV.cjs → chunk-RVBO63D5.cjs} +4 -4
  34. package/dist/{chunk-MGK6SFTV.cjs.map → chunk-RVBO63D5.cjs.map} +1 -1
  35. package/dist/{chunk-PJFX3MFI.cjs → chunk-TYJCCODP.cjs} +18 -18
  36. package/dist/{chunk-PJFX3MFI.cjs.map → chunk-TYJCCODP.cjs.map} +1 -1
  37. package/dist/{chunk-YXJSPQC6.js → chunk-VJYKE6AY.js} +3 -3
  38. package/dist/{chunk-YXJSPQC6.js.map → chunk-VJYKE6AY.js.map} +1 -1
  39. package/dist/{chunk-MYVJVOPB.cjs → chunk-VYCTRGJ7.cjs} +39 -39
  40. package/dist/{chunk-MYVJVOPB.cjs.map → chunk-VYCTRGJ7.cjs.map} +1 -1
  41. package/dist/{chunk-54BYDWAM.cjs → chunk-WLN2MJ7F.cjs} +102 -55
  42. package/dist/chunk-WLN2MJ7F.cjs.map +1 -0
  43. package/dist/chunk-XBY53RF5.cjs +33 -0
  44. package/dist/chunk-XBY53RF5.cjs.map +1 -0
  45. package/dist/{chunk-36XMRVY4.js → chunk-ZZ6UOK2P.js} +4 -4
  46. package/dist/{chunk-36XMRVY4.js.map → chunk-ZZ6UOK2P.js.map} +1 -1
  47. package/dist/entries/assembly.cjs +29 -29
  48. package/dist/entries/assembly.js +6 -6
  49. package/dist/entries/catalog-packs.d.cts +4 -4
  50. package/dist/entries/catalog-packs.d.ts +4 -4
  51. package/dist/entries/person.d.cts +3 -3
  52. package/dist/entries/person.d.ts +3 -3
  53. package/dist/entries/picker-art.cjs +28 -20
  54. package/dist/entries/picker-art.d.cts +18 -2
  55. package/dist/entries/picker-art.d.ts +18 -2
  56. package/dist/entries/picker-art.js +2 -2
  57. package/dist/entries/picker-catalogs.cjs +57 -57
  58. package/dist/entries/picker-catalogs.d.cts +5 -3
  59. package/dist/entries/picker-catalogs.d.ts +5 -3
  60. package/dist/entries/picker-catalogs.js +5 -5
  61. package/dist/entries/pickers.cjs +407 -375
  62. package/dist/entries/pickers.d.cts +59 -3
  63. package/dist/entries/pickers.d.ts +59 -3
  64. package/dist/entries/pickers.js +3 -3
  65. package/dist/entries/presets.cjs +35 -35
  66. package/dist/entries/presets.js +1 -1
  67. package/dist/entries/prompt-builder.cjs +76 -76
  68. package/dist/entries/prompt-builder.js +5 -5
  69. package/dist/{images-DrbQB9Yh.d.cts → images-ChAOLY5V.d.cts} +5 -4
  70. package/dist/{images-DrbQB9Yh.d.ts → images-ChAOLY5V.d.ts} +5 -4
  71. package/dist/index.cjs +621 -581
  72. package/dist/index.d.cts +5 -5
  73. package/dist/index.d.ts +5 -5
  74. package/dist/index.js +11 -11
  75. package/dist/{picker-catalogs-BiRCs_5G.d.cts → picker-catalogs-DzLCu6qQ.d.cts} +10 -1
  76. package/dist/{picker-catalogs-CX8pHi8q.d.ts → picker-catalogs-SDSWrufc.d.ts} +10 -1
  77. package/package.json +2 -2
  78. package/src/__tests__/fixtures/root-exports.baseline.json +5 -0
  79. package/src/__tests__/picker-art-images.test.ts +39 -0
  80. package/src/__tests__/style-display-name.test.ts +153 -0
  81. package/src/__tests__/style-media.test.ts +141 -0
  82. package/src/__tests__/style-video-wording.test.ts +22 -7
  83. package/src/factory-presets/generate-image.ts +1 -1
  84. package/src/factory-presets/generate-video.ts +1 -1
  85. package/src/picker-analyzer-registry.ts +9 -2
  86. package/src/picker-art/images.ts +6 -5
  87. package/src/picker-art/index.ts +1 -0
  88. package/src/picker-art/look-preview-sets.ts +5 -0
  89. package/src/picker-art/restyle-previews.ts +47 -0
  90. package/src/picker-catalogs.ts +19 -0
  91. package/src/setting.ts +1 -1
  92. package/src/style.ts +140 -50
  93. package/dist/chunk-54BYDWAM.cjs.map +0 -1
  94. package/dist/chunk-HOMR5XFP.js +0 -3
  95. package/dist/chunk-HOMR5XFP.js.map +0 -1
  96. package/dist/chunk-LD47QOKS.js.map +0 -1
  97. package/dist/chunk-T4OJFIJK.cjs +0 -4
  98. package/dist/chunk-T4OJFIJK.cjs.map +0 -1
  99. package/dist/chunk-UNR34GYU.cjs.map +0 -1
  100. package/dist/chunk-XZXUU3YH.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ var chunkFFPFBNXH_cjs = require('./chunk-FFPFBNXH.cjs');
4
+
5
+ // src/picker-art/restyle-previews.ts
6
+ var RESTYLE_PREVIEWS = {
7
+ // Source shot: https://cdn.nodaro.ai/picker-renders/4054a0e1-af60-47f9-86bd-a78ab93f3800.mp4
8
+ // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/9dc6b337-58b4-4a63-889f-70561a8f1f00.mp4
9
+ anime: { url: "https://cdn.nodaro.ai/picker-renders/7fbad6e4-023f-4282-ac3d-d186f2cbb37b.mp4", stillAtSeconds: 7 },
10
+ // Source shot: https://cdn.nodaro.ai/picker-renders/4ffff922-e807-42cc-a2a0-c66c3a8d492c.mp4
11
+ // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/fca5d96d-ee9c-430e-ba82-2795c0adb8d6.mp4
12
+ claymation: { url: "https://cdn.nodaro.ai/picker-renders/2916a2f7-114c-4c7e-9be0-5bf229d76133.mp4" },
13
+ // Source shot: https://cdn.nodaro.ai/picker-renders/41faaa51-5e77-4097-aa9b-bef6738328b7.mp4
14
+ // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/5a28da72-f3ee-49a8-b732-f73e79741b62.mp4
15
+ "comic-book": { url: "https://cdn.nodaro.ai/picker-renders/7a2cd17c-b02f-4ae4-9723-ef48d0eda52a.mp4" },
16
+ // Source shot: https://cdn.nodaro.ai/picker-renders/4a70c22d-04f0-4b5a-90d4-e9dd7ddb01c4.mp4
17
+ // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/5ab33529-ef2a-42bc-a625-d6b1abfeef1c.mp4
18
+ "felt-puppet": { url: "https://cdn.nodaro.ai/picker-renders/3aa3c81b-ba19-4776-becc-e0c47c700699.mp4" },
19
+ // Source shot: https://cdn.nodaro.ai/picker-renders/d9e12a4a-677e-4e36-8f44-8503f14dd6b8.mp4
20
+ // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/d4dad451-802a-4795-9cc3-71ff3ed70c69.mp4
21
+ "pixar-3d": { url: "https://cdn.nodaro.ai/picker-renders/c5ea2111-3283-4f80-ab05-8ab4450946ce.mp4" },
22
+ // Source shot: https://cdn.nodaro.ai/picker-renders/789f4330-660b-42bd-8d11-6e638e8c7c88.mp4
23
+ // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/10471107-b26a-42e9-a3a5-068a42436d3c.mp4
24
+ watercolor: { url: "https://cdn.nodaro.ai/picker-renders/61a26588-d09a-4959-b677-ee8b32e3281a.mp4" }
25
+ };
26
+ function restylePreviewStillUrl(preview, width) {
27
+ return chunkFFPFBNXH_cjs.lookPreviewStillUrl(preview.url, width, preview.stillAtSeconds);
28
+ }
29
+
30
+ exports.RESTYLE_PREVIEWS = RESTYLE_PREVIEWS;
31
+ exports.restylePreviewStillUrl = restylePreviewStillUrl;
32
+ //# sourceMappingURL=chunk-XBY53RF5.cjs.map
33
+ //# sourceMappingURL=chunk-XBY53RF5.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/picker-art/restyle-previews.ts"],"names":["lookPreviewStillUrl"],"mappings":";;;;;AAsBO,IAAM,gBAAA,GAA6D;AAAA;AAAA;AAAA,EAGxE,KAAA,EAAO,EAAE,GAAA,EAAK,+EAAA,EAAiF,gBAAgB,CAAA,EAAE;AAAA;AAAA;AAAA,EAGjH,UAAA,EAAY,EAAE,GAAA,EAAK,+EAAA,EAAgF;AAAA;AAAA;AAAA,EAGnG,YAAA,EAAc,EAAE,GAAA,EAAK,+EAAA,EAAgF;AAAA;AAAA;AAAA,EAGrG,aAAA,EAAe,EAAE,GAAA,EAAK,+EAAA,EAAgF;AAAA;AAAA;AAAA,EAGtG,UAAA,EAAY,EAAE,GAAA,EAAK,+EAAA,EAAgF;AAAA;AAAA;AAAA,EAGnG,UAAA,EAAY,EAAE,GAAA,EAAK,+EAAA;AACrB;AAGO,SAAS,sBAAA,CAAuB,SAAyB,KAAA,EAAoC;AAClG,EAAA,OAAOA,qCAAA,CAAoB,OAAA,CAAQ,GAAA,EAAK,KAAA,EAAO,QAAQ,cAAc,CAAA;AACvE","file":"chunk-XBY53RF5.cjs","sourcesContent":["// Restyle previews: for each art style, a short clip of real footage wiping\n// into that style, for a picker that restyles a video. Keyed by the `style`\n// catalog's option id. An entry exists only for an approved clip: a style\n// without one has no preview here.\n//\n// Each approved style keeps the URLs of its source shot and its generated clip\n// (no wipe) in a comment beside its entry, so the clip can be composed again if\n// the switch animation changes.\n//\n// Separate from LOOK_PREVIEW_SETS.style, whose stills every other art style\n// picker keeps showing. Like every render, a clip lives under picker-renders/\n// on the CDN, a key no user owns; a test holds this.\nimport { lookPreviewStillUrl } from \"./images.js\"\n\n/** One style's preview clip. */\nexport interface RestylePreview {\n readonly url: string\n /** The moment of the clip its still is cut from, for a clip whose usual moment frames it badly. Absent: the usual moment (`lookPreviewStillUrl`). */\n readonly stillAtSeconds?: number\n}\n\n/** Art style id → its restyle preview clip. */\nexport const RESTYLE_PREVIEWS: Readonly<Record<string, RestylePreview>> = {\n // Source shot: https://cdn.nodaro.ai/picker-renders/4054a0e1-af60-47f9-86bd-a78ab93f3800.mp4\n // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/9dc6b337-58b4-4a63-889f-70561a8f1f00.mp4\n anime: { url: \"https://cdn.nodaro.ai/picker-renders/7fbad6e4-023f-4282-ac3d-d186f2cbb37b.mp4\", stillAtSeconds: 7 },\n // Source shot: https://cdn.nodaro.ai/picker-renders/4ffff922-e807-42cc-a2a0-c66c3a8d492c.mp4\n // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/fca5d96d-ee9c-430e-ba82-2795c0adb8d6.mp4\n claymation: { url: \"https://cdn.nodaro.ai/picker-renders/2916a2f7-114c-4c7e-9be0-5bf229d76133.mp4\" },\n // Source shot: https://cdn.nodaro.ai/picker-renders/41faaa51-5e77-4097-aa9b-bef6738328b7.mp4\n // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/5a28da72-f3ee-49a8-b732-f73e79741b62.mp4\n \"comic-book\": { url: \"https://cdn.nodaro.ai/picker-renders/7a2cd17c-b02f-4ae4-9723-ef48d0eda52a.mp4\" },\n // Source shot: https://cdn.nodaro.ai/picker-renders/4a70c22d-04f0-4b5a-90d4-e9dd7ddb01c4.mp4\n // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/5ab33529-ef2a-42bc-a625-d6b1abfeef1c.mp4\n \"felt-puppet\": { url: \"https://cdn.nodaro.ai/picker-renders/3aa3c81b-ba19-4776-becc-e0c47c700699.mp4\" },\n // Source shot: https://cdn.nodaro.ai/picker-renders/d9e12a4a-677e-4e36-8f44-8503f14dd6b8.mp4\n // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/d4dad451-802a-4795-9cc3-71ff3ed70c69.mp4\n \"pixar-3d\": { url: \"https://cdn.nodaro.ai/picker-renders/c5ea2111-3283-4f80-ab05-8ab4450946ce.mp4\" },\n // Source shot: https://cdn.nodaro.ai/picker-renders/789f4330-660b-42bd-8d11-6e638e8c7c88.mp4\n // Generated, no wipe: https://cdn.nodaro.ai/picker-renders/10471107-b26a-42e9-a3a5-068a42436d3c.mp4\n watercolor: { url: \"https://cdn.nodaro.ai/picker-renders/61a26588-d09a-4959-b677-ee8b32e3281a.mp4\" },\n}\n\n/** A preview clip's still, a frame the CDN cuts from it at the clip's own moment. */\nexport function restylePreviewStillUrl(preview: RestylePreview, width?: number): string | undefined {\n return lookPreviewStillUrl(preview.url, width, preview.stillAtSeconds)\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  import { IMAGE_TOKEN_PATTERN } from './chunk-GILUVQQJ.js';
2
2
  import { joinPromptHints } from './chunk-35UHMDGS.js';
3
3
  import { resolveTemplate, applyTemplate, buildIdentityLockLine, withForcedIdentityLock } from './chunk-BQWIPLLR.js';
4
- import { DIRECTION_ARRAY_CEILING, DIRECTION_ID_MAX_CHARS, renderDirectionHintClauses, curatedAnimalTerm, curatedAnimalPromptHint } from './chunk-YXJSPQC6.js';
5
- import { STYLING_DIMENSION_ORDER, STYLING_FIELD_BY_DIMENSION, isDeniedStyleId, getStylePromptHint, buildStylingHints, buildHeldPropHints, buildMaterialHints, getStylingDimensionLimit } from './chunk-LD47QOKS.js';
4
+ import { DIRECTION_ARRAY_CEILING, DIRECTION_ID_MAX_CHARS, renderDirectionHintClauses, curatedAnimalTerm, curatedAnimalPromptHint } from './chunk-VJYKE6AY.js';
5
+ import { STYLING_DIMENSION_ORDER, STYLING_FIELD_BY_DIMENSION, isDeniedStyleId, getStylePromptHint, buildStylingHints, buildHeldPropHints, buildMaterialHints, getStylingDimensionLimit } from './chunk-3XSB5YDY.js';
6
6
  import { joinSentences } from './chunk-DVP6ILDR.js';
7
7
  import { PERSON_DIMENSION_ORDER, PERSON_FIELD_BY_DIMENSION, buildPersonHints, getRegisteredPersonFieldByDimension, getRegisteredPersonDimensionOrder, getPersonDimensionLimit } from './chunk-TDZFXOTE.js';
8
8
  import { imageReferenceLimit, NATIVE_NEGATIVE_PROMPT_MODELS, getMaxNegativePromptChars, getMaxImagePromptChars, MODELS_WITH_REFERENCE_IMAGE_SUPPORT } from '@nodaro/shared/models';
@@ -1945,5 +1945,5 @@ function renderSubjectHints(subject, opts) {
1945
1945
  }
1946
1946
 
1947
1947
  export { ANGLE_LABELS, ASPECT_RATIO_LABELS, MAX_SUBJECT_KEYS, MOVEMENT_LABELS, SCENE_PROMPT_MAX_LENGTH, SHOT_LABELS, STYLE_SECTION_GAP, STYLE_SECTION_HEADER, SUBJECT_ARRAY_CEILING, SUBJECT_CUSTOM_AGE_KEY, SUBJECT_FIELDS, SUBJECT_FOLD_KEYS, SUBJECT_ID_MAX_CHARS, SUBJECT_IMAGE_HINT_MODE_DEFAULT, SUBJECT_KEYS, SUBJECT_KEY_MAX_CHARS, SUBJECT_VIDEO_HINT_MODE_DEFAULT, appendReferenceLines, applyReferenceOrderToVideo, asBodyClauses, buildIdentityDirectives, buildImagePrompt, buildImagePromptSegments, buildImagePromptWithOverflow, buildReferenceBlocks, buildScenePrompt, composeSectionedPrompt, endsInsideStyleSection, expandImagePositionRefs, expandImageRefTokens, getRegisteredSubjectKeys, insertBeforeStyleSection, normalizeSubjectFields, partitionStyleClauses, referenceDescriptionLine, renderDescribedReferenceLines, renderReferenceCaptionLines, renderStructuredFields, renderStyleSection, renderSubjectHints, resolveCharacterMentions, resolveLocationMentions, sectionedClauseCosts, splitStyleSection, styleSectionFromClauses, styleSlotFor, subjectFieldsForSurface, tidyReferenceTokenGaps, truncateText, unboundReferenceTokenText };
1948
- //# sourceMappingURL=chunk-36XMRVY4.js.map
1949
- //# sourceMappingURL=chunk-36XMRVY4.js.map
1948
+ //# sourceMappingURL=chunk-ZZ6UOK2P.js.map
1949
+ //# sourceMappingURL=chunk-ZZ6UOK2P.js.map