@nodaro/prompts 1.38.0 → 1.40.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 (130) hide show
  1. package/dist/chunk-2EW5B7ZV.cjs +86 -0
  2. package/dist/chunk-2EW5B7ZV.cjs.map +1 -0
  3. package/dist/chunk-2P26SZX5.cjs +414 -0
  4. package/dist/chunk-2P26SZX5.cjs.map +1 -0
  5. package/dist/{chunk-7XKHDXCL.cjs → chunk-3U7X6JZN.cjs} +13 -12
  6. package/dist/chunk-3U7X6JZN.cjs.map +1 -0
  7. package/dist/chunk-4GKTOVFM.cjs +8 -0
  8. package/dist/chunk-4GKTOVFM.cjs.map +1 -0
  9. package/dist/{chunk-HRBBNODV.js → chunk-6GVFJLDL.js} +4 -3
  10. package/dist/chunk-6GVFJLDL.js.map +1 -0
  11. package/dist/{chunk-LVSH7K7R.cjs → chunk-C3NHNECH.cjs} +165 -88
  12. package/dist/chunk-C3NHNECH.cjs.map +1 -0
  13. package/dist/{chunk-CEPVQQVO.js → chunk-C46256GZ.js} +43 -5
  14. package/dist/chunk-C46256GZ.js.map +1 -0
  15. package/dist/{chunk-JKCR6WRZ.cjs → chunk-DQFQJECU.cjs} +43 -5
  16. package/dist/chunk-DQFQJECU.cjs.map +1 -0
  17. package/dist/{chunk-QDEWBBUR.js → chunk-DUXX6CBX.js} +12 -143
  18. package/dist/chunk-DUXX6CBX.js.map +1 -0
  19. package/dist/chunk-EAYEZXWT.js +388 -0
  20. package/dist/chunk-EAYEZXWT.js.map +1 -0
  21. package/dist/chunk-GILUVQQJ.js +6 -0
  22. package/dist/chunk-GILUVQQJ.js.map +1 -0
  23. package/dist/{chunk-KIYNOOPJ.js → chunk-GTDKDD7Y.js} +12 -6
  24. package/dist/chunk-GTDKDD7Y.js.map +1 -0
  25. package/dist/{chunk-QBEZMR2F.js → chunk-HQTHDTHN.js} +137 -62
  26. package/dist/chunk-HQTHDTHN.js.map +1 -0
  27. package/dist/{chunk-TLVX5PXD.cjs → chunk-IUCNJAHW.cjs} +13 -7
  28. package/dist/chunk-IUCNJAHW.cjs.map +1 -0
  29. package/dist/{chunk-ZFIXQRBZ.cjs → chunk-LXPKTI2K.cjs} +12 -83
  30. package/dist/chunk-LXPKTI2K.cjs.map +1 -0
  31. package/dist/{chunk-CVPB2N3Z.cjs → chunk-LZ53F5BN.cjs} +103 -5
  32. package/dist/chunk-LZ53F5BN.cjs.map +1 -0
  33. package/dist/{chunk-4FDNVNJE.js → chunk-N6VMPG5S.js} +12 -79
  34. package/dist/chunk-N6VMPG5S.js.map +1 -0
  35. package/dist/{chunk-LK2CZK5U.cjs → chunk-PWWM7Q3T.cjs} +7 -7
  36. package/dist/{chunk-LK2CZK5U.cjs.map → chunk-PWWM7Q3T.cjs.map} +1 -1
  37. package/dist/{chunk-N7TOWXDJ.js → chunk-QDUTMOF4.js} +3 -3
  38. package/dist/{chunk-N7TOWXDJ.js.map → chunk-QDUTMOF4.js.map} +1 -1
  39. package/dist/{chunk-NO6XHX4R.js → chunk-RB2F5JQF.js} +100 -7
  40. package/dist/chunk-RB2F5JQF.js.map +1 -0
  41. package/dist/{chunk-MENBHEAY.cjs → chunk-WRM52ZBN.cjs} +19 -161
  42. package/dist/chunk-WRM52ZBN.cjs.map +1 -0
  43. package/dist/chunk-YS6HOWMW.js +80 -0
  44. package/dist/chunk-YS6HOWMW.js.map +1 -0
  45. package/dist/entries/assembly.cjs +34 -25
  46. package/dist/entries/assembly.d.cts +121 -37
  47. package/dist/entries/assembly.d.ts +121 -37
  48. package/dist/entries/assembly.js +5 -4
  49. package/dist/entries/doctrine.cjs +46 -46
  50. package/dist/entries/doctrine.d.cts +3 -3
  51. package/dist/entries/doctrine.d.ts +3 -3
  52. package/dist/entries/doctrine.js +1 -1
  53. package/dist/entries/picker-catalogs.cjs +42 -42
  54. package/dist/entries/picker-catalogs.js +3 -3
  55. package/dist/entries/presets.cjs +49 -26
  56. package/dist/entries/presets.d.cts +53 -1
  57. package/dist/entries/presets.d.ts +53 -1
  58. package/dist/entries/presets.js +4 -1
  59. package/dist/entries/prompt-builder.cjs +135 -98
  60. package/dist/entries/prompt-builder.d.cts +22 -11
  61. package/dist/entries/prompt-builder.d.ts +22 -11
  62. package/dist/entries/prompt-builder.js +4 -3
  63. package/dist/entries/prompt-fields.cjs +41 -40
  64. package/dist/entries/prompt-fields.d.cts +2 -1
  65. package/dist/entries/prompt-fields.d.ts +2 -1
  66. package/dist/entries/prompt-fields.js +2 -1
  67. package/dist/index.cjs +339 -273
  68. package/dist/index.d.cts +4 -4
  69. package/dist/index.d.ts +4 -4
  70. package/dist/index.js +11 -9
  71. package/dist/{subject-registry-BUswuEVD.d.cts → subject-registry-CQi_CZfJ.d.cts} +78 -9
  72. package/dist/{subject-registry-D7V8PEG-.d.ts → subject-registry-DFiGx49v.d.ts} +78 -9
  73. package/package.json +2 -2
  74. package/src/__tests__/assemble-image-input-style-references.test.ts +173 -0
  75. package/src/__tests__/catalog-id-guard.test.ts +30 -0
  76. package/src/__tests__/factory-preset-previews.test.ts +123 -0
  77. package/src/__tests__/factory-preset-references.test.ts +222 -0
  78. package/src/__tests__/factory-presets-prototype-keys.test.ts +43 -0
  79. package/src/__tests__/frame-reference-slots.test.ts +43 -0
  80. package/src/__tests__/gemini-omni-inputs.test.ts +12 -10
  81. package/src/__tests__/provider-prompt-doctrine.test.ts +14 -0
  82. package/src/__tests__/user-direction-refs.test.ts +180 -0
  83. package/src/__tests__/veo-i2v-inputs.test.ts +16 -11
  84. package/src/assemble-image-input.ts +114 -13
  85. package/src/catalog-id-guard.ts +18 -2
  86. package/src/color-names.ts +192 -0
  87. package/src/direction-registry.ts +66 -5
  88. package/src/entries/assembly.ts +1 -0
  89. package/src/entries/prompt-builder.ts +2 -0
  90. package/src/factory-presets/generate-image.ts +29 -0
  91. package/src/factory-presets/index.ts +6 -1
  92. package/src/factory-presets/preview-files.generated.ts +4 -0
  93. package/src/factory-presets/previews.ts +40 -0
  94. package/src/factory-presets/references.ts +81 -0
  95. package/src/factory-presets/shared-image.ts +4 -0
  96. package/src/factory-presets/types.ts +8 -0
  97. package/src/frame-reference-slots.ts +92 -0
  98. package/src/gemini-omni-inputs.ts +23 -22
  99. package/src/image-reference-doctrine.ts +3 -3
  100. package/src/image-token-pattern.ts +13 -0
  101. package/src/node-prompt-fields.ts +5 -3
  102. package/src/own-entry.ts +11 -0
  103. package/src/prompt-builder.ts +4 -5
  104. package/src/prompt-style-section.ts +3 -3
  105. package/src/prompt-wizard-categories.ts +2 -0
  106. package/src/provider-prompt-doctrine.ts +45 -3
  107. package/src/ref-binding.ts +28 -3
  108. package/src/resolve-prompt.ts +2 -1
  109. package/src/seedance-2-inputs.ts +15 -40
  110. package/src/user-direction-refs.ts +110 -0
  111. package/src/veo-i2v-inputs.ts +24 -17
  112. package/src/video-reference-resolver.ts +1 -1
  113. package/dist/chunk-4FDNVNJE.js.map +0 -1
  114. package/dist/chunk-7XKHDXCL.cjs.map +0 -1
  115. package/dist/chunk-CEPVQQVO.js.map +0 -1
  116. package/dist/chunk-CVPB2N3Z.cjs.map +0 -1
  117. package/dist/chunk-HRBBNODV.js.map +0 -1
  118. package/dist/chunk-JKCR6WRZ.cjs.map +0 -1
  119. package/dist/chunk-KIYNOOPJ.js.map +0 -1
  120. package/dist/chunk-LVSH7K7R.cjs.map +0 -1
  121. package/dist/chunk-MENBHEAY.cjs.map +0 -1
  122. package/dist/chunk-NO6XHX4R.js.map +0 -1
  123. package/dist/chunk-QBEZMR2F.js.map +0 -1
  124. package/dist/chunk-QDEWBBUR.js.map +0 -1
  125. package/dist/chunk-TLVX5PXD.cjs.map +0 -1
  126. package/dist/chunk-UJKFHPZ7.js +0 -37
  127. package/dist/chunk-UJKFHPZ7.js.map +0 -1
  128. package/dist/chunk-W5SCZIOB.cjs +0 -43
  129. package/dist/chunk-W5SCZIOB.cjs.map +0 -1
  130. package/dist/chunk-ZFIXQRBZ.cjs.map +0 -1
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk7XKHDXCL_cjs = require('../chunk-7XKHDXCL.cjs');
4
- var chunkMENBHEAY_cjs = require('../chunk-MENBHEAY.cjs');
3
+ var chunk3U7X6JZN_cjs = require('../chunk-3U7X6JZN.cjs');
4
+ var chunkWRM52ZBN_cjs = require('../chunk-WRM52ZBN.cjs');
5
+ require('../chunk-4GKTOVFM.cjs');
5
6
  require('../chunk-UXDKZVNN.cjs');
6
7
  require('../chunk-2NJTFCKQ.cjs');
7
- require('../chunk-W5SCZIOB.cjs');
8
+ var chunk2P26SZX5_cjs = require('../chunk-2P26SZX5.cjs');
8
9
  require('../chunk-MQEXFCNU.cjs');
9
10
  require('../chunk-3UEA3UHQ.cjs');
10
11
  require('../chunk-K6NT635Z.cjs');
@@ -16,251 +17,287 @@ require('../chunk-Q7SFCCGT.cjs');
16
17
 
17
18
  Object.defineProperty(exports, "readDirectionFields", {
18
19
  enumerable: true,
19
- get: function () { return chunk7XKHDXCL_cjs.readDirectionFields; }
20
+ get: function () { return chunk3U7X6JZN_cjs.readDirectionFields; }
20
21
  });
21
22
  Object.defineProperty(exports, "readStructuredFields", {
22
23
  enumerable: true,
23
- get: function () { return chunk7XKHDXCL_cjs.readStructuredFields; }
24
+ get: function () { return chunk3U7X6JZN_cjs.readStructuredFields; }
24
25
  });
25
26
  Object.defineProperty(exports, "readSubjectFields", {
26
27
  enumerable: true,
27
- get: function () { return chunk7XKHDXCL_cjs.readSubjectFields; }
28
+ get: function () { return chunk3U7X6JZN_cjs.readSubjectFields; }
28
29
  });
29
30
  Object.defineProperty(exports, "ANGLE_LABELS", {
30
31
  enumerable: true,
31
- get: function () { return chunkMENBHEAY_cjs.ANGLE_LABELS; }
32
+ get: function () { return chunkWRM52ZBN_cjs.ANGLE_LABELS; }
32
33
  });
33
34
  Object.defineProperty(exports, "ASPECT_RATIO_LABELS", {
34
35
  enumerable: true,
35
- get: function () { return chunkMENBHEAY_cjs.ASPECT_RATIO_LABELS; }
36
- });
37
- Object.defineProperty(exports, "DIRECTION_ARRAY_CEILING", {
38
- enumerable: true,
39
- get: function () { return chunkMENBHEAY_cjs.DIRECTION_ARRAY_CEILING; }
40
- });
41
- Object.defineProperty(exports, "DIRECTION_FIELDS", {
42
- enumerable: true,
43
- get: function () { return chunkMENBHEAY_cjs.DIRECTION_FIELDS; }
44
- });
45
- Object.defineProperty(exports, "DIRECTION_ID_MAX_CHARS", {
46
- enumerable: true,
47
- get: function () { return chunkMENBHEAY_cjs.DIRECTION_ID_MAX_CHARS; }
48
- });
49
- Object.defineProperty(exports, "DIRECTION_KEYS", {
50
- enumerable: true,
51
- get: function () { return chunkMENBHEAY_cjs.DIRECTION_KEYS; }
52
- });
53
- Object.defineProperty(exports, "FILM_STYLE_KEYS", {
54
- enumerable: true,
55
- get: function () { return chunkMENBHEAY_cjs.FILM_STYLE_KEYS; }
56
- });
57
- Object.defineProperty(exports, "IMAGE_HINT_MODE_DEFAULT", {
58
- enumerable: true,
59
- get: function () { return chunkMENBHEAY_cjs.IMAGE_HINT_MODE_DEFAULT; }
36
+ get: function () { return chunkWRM52ZBN_cjs.ASPECT_RATIO_LABELS; }
60
37
  });
61
38
  Object.defineProperty(exports, "MAX_SUBJECT_KEYS", {
62
39
  enumerable: true,
63
- get: function () { return chunkMENBHEAY_cjs.MAX_SUBJECT_KEYS; }
40
+ get: function () { return chunkWRM52ZBN_cjs.MAX_SUBJECT_KEYS; }
64
41
  });
65
42
  Object.defineProperty(exports, "MOVEMENT_LABELS", {
66
43
  enumerable: true,
67
- get: function () { return chunkMENBHEAY_cjs.MOVEMENT_LABELS; }
44
+ get: function () { return chunkWRM52ZBN_cjs.MOVEMENT_LABELS; }
68
45
  });
69
46
  Object.defineProperty(exports, "SCENE_PROMPT_MAX_LENGTH", {
70
47
  enumerable: true,
71
- get: function () { return chunkMENBHEAY_cjs.SCENE_PROMPT_MAX_LENGTH; }
48
+ get: function () { return chunkWRM52ZBN_cjs.SCENE_PROMPT_MAX_LENGTH; }
72
49
  });
73
50
  Object.defineProperty(exports, "SHOT_LABELS", {
74
51
  enumerable: true,
75
- get: function () { return chunkMENBHEAY_cjs.SHOT_LABELS; }
52
+ get: function () { return chunkWRM52ZBN_cjs.SHOT_LABELS; }
76
53
  });
77
54
  Object.defineProperty(exports, "STYLE_SECTION_GAP", {
78
55
  enumerable: true,
79
- get: function () { return chunkMENBHEAY_cjs.STYLE_SECTION_GAP; }
56
+ get: function () { return chunkWRM52ZBN_cjs.STYLE_SECTION_GAP; }
80
57
  });
81
58
  Object.defineProperty(exports, "STYLE_SECTION_HEADER", {
82
59
  enumerable: true,
83
- get: function () { return chunkMENBHEAY_cjs.STYLE_SECTION_HEADER; }
60
+ get: function () { return chunkWRM52ZBN_cjs.STYLE_SECTION_HEADER; }
84
61
  });
85
62
  Object.defineProperty(exports, "SUBJECT_ARRAY_CEILING", {
86
63
  enumerable: true,
87
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_ARRAY_CEILING; }
64
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_ARRAY_CEILING; }
88
65
  });
89
66
  Object.defineProperty(exports, "SUBJECT_CUSTOM_AGE_KEY", {
90
67
  enumerable: true,
91
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_CUSTOM_AGE_KEY; }
68
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_CUSTOM_AGE_KEY; }
92
69
  });
93
70
  Object.defineProperty(exports, "SUBJECT_FIELDS", {
94
71
  enumerable: true,
95
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_FIELDS; }
72
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_FIELDS; }
96
73
  });
97
74
  Object.defineProperty(exports, "SUBJECT_FOLD_KEYS", {
98
75
  enumerable: true,
99
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_FOLD_KEYS; }
76
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_FOLD_KEYS; }
100
77
  });
101
78
  Object.defineProperty(exports, "SUBJECT_ID_MAX_CHARS", {
102
79
  enumerable: true,
103
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_ID_MAX_CHARS; }
80
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_ID_MAX_CHARS; }
104
81
  });
105
82
  Object.defineProperty(exports, "SUBJECT_IMAGE_HINT_MODE_DEFAULT", {
106
83
  enumerable: true,
107
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_IMAGE_HINT_MODE_DEFAULT; }
84
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_IMAGE_HINT_MODE_DEFAULT; }
108
85
  });
109
86
  Object.defineProperty(exports, "SUBJECT_KEYS", {
110
87
  enumerable: true,
111
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_KEYS; }
88
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_KEYS; }
112
89
  });
113
90
  Object.defineProperty(exports, "SUBJECT_KEY_MAX_CHARS", {
114
91
  enumerable: true,
115
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_KEY_MAX_CHARS; }
92
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_KEY_MAX_CHARS; }
116
93
  });
117
94
  Object.defineProperty(exports, "SUBJECT_VIDEO_HINT_MODE_DEFAULT", {
118
95
  enumerable: true,
119
- get: function () { return chunkMENBHEAY_cjs.SUBJECT_VIDEO_HINT_MODE_DEFAULT; }
120
- });
121
- Object.defineProperty(exports, "VIDEO_HINT_MODE_DEFAULT", {
122
- enumerable: true,
123
- get: function () { return chunkMENBHEAY_cjs.VIDEO_HINT_MODE_DEFAULT; }
96
+ get: function () { return chunkWRM52ZBN_cjs.SUBJECT_VIDEO_HINT_MODE_DEFAULT; }
124
97
  });
125
98
  Object.defineProperty(exports, "appendReferenceLines", {
126
99
  enumerable: true,
127
- get: function () { return chunkMENBHEAY_cjs.appendReferenceLines; }
100
+ get: function () { return chunkWRM52ZBN_cjs.appendReferenceLines; }
128
101
  });
129
102
  Object.defineProperty(exports, "applyReferenceOrderToVideo", {
130
103
  enumerable: true,
131
- get: function () { return chunkMENBHEAY_cjs.applyReferenceOrderToVideo; }
104
+ get: function () { return chunkWRM52ZBN_cjs.applyReferenceOrderToVideo; }
132
105
  });
133
106
  Object.defineProperty(exports, "asBodyClauses", {
134
107
  enumerable: true,
135
- get: function () { return chunkMENBHEAY_cjs.asBodyClauses; }
108
+ get: function () { return chunkWRM52ZBN_cjs.asBodyClauses; }
136
109
  });
137
110
  Object.defineProperty(exports, "buildIdentityDirectives", {
138
111
  enumerable: true,
139
- get: function () { return chunkMENBHEAY_cjs.buildIdentityDirectives; }
112
+ get: function () { return chunkWRM52ZBN_cjs.buildIdentityDirectives; }
140
113
  });
141
114
  Object.defineProperty(exports, "buildImagePrompt", {
142
115
  enumerable: true,
143
- get: function () { return chunkMENBHEAY_cjs.buildImagePrompt; }
116
+ get: function () { return chunkWRM52ZBN_cjs.buildImagePrompt; }
144
117
  });
145
118
  Object.defineProperty(exports, "buildImagePromptSegments", {
146
119
  enumerable: true,
147
- get: function () { return chunkMENBHEAY_cjs.buildImagePromptSegments; }
120
+ get: function () { return chunkWRM52ZBN_cjs.buildImagePromptSegments; }
148
121
  });
149
122
  Object.defineProperty(exports, "buildImagePromptWithOverflow", {
150
123
  enumerable: true,
151
- get: function () { return chunkMENBHEAY_cjs.buildImagePromptWithOverflow; }
124
+ get: function () { return chunkWRM52ZBN_cjs.buildImagePromptWithOverflow; }
152
125
  });
153
126
  Object.defineProperty(exports, "buildReferenceBlocks", {
154
127
  enumerable: true,
155
- get: function () { return chunkMENBHEAY_cjs.buildReferenceBlocks; }
128
+ get: function () { return chunkWRM52ZBN_cjs.buildReferenceBlocks; }
156
129
  });
157
130
  Object.defineProperty(exports, "buildScenePrompt", {
158
131
  enumerable: true,
159
- get: function () { return chunkMENBHEAY_cjs.buildScenePrompt; }
132
+ get: function () { return chunkWRM52ZBN_cjs.buildScenePrompt; }
160
133
  });
161
134
  Object.defineProperty(exports, "composeSectionedPrompt", {
162
135
  enumerable: true,
163
- get: function () { return chunkMENBHEAY_cjs.composeSectionedPrompt; }
164
- });
165
- Object.defineProperty(exports, "directionFieldsForSurface", {
166
- enumerable: true,
167
- get: function () { return chunkMENBHEAY_cjs.directionFieldsForSurface; }
136
+ get: function () { return chunkWRM52ZBN_cjs.composeSectionedPrompt; }
168
137
  });
169
138
  Object.defineProperty(exports, "endsInsideStyleSection", {
170
139
  enumerable: true,
171
- get: function () { return chunkMENBHEAY_cjs.endsInsideStyleSection; }
140
+ get: function () { return chunkWRM52ZBN_cjs.endsInsideStyleSection; }
172
141
  });
173
142
  Object.defineProperty(exports, "expandImagePositionRefs", {
174
143
  enumerable: true,
175
- get: function () { return chunkMENBHEAY_cjs.expandImagePositionRefs; }
144
+ get: function () { return chunkWRM52ZBN_cjs.expandImagePositionRefs; }
176
145
  });
177
146
  Object.defineProperty(exports, "expandImageRefTokens", {
178
147
  enumerable: true,
179
- get: function () { return chunkMENBHEAY_cjs.expandImageRefTokens; }
148
+ get: function () { return chunkWRM52ZBN_cjs.expandImageRefTokens; }
180
149
  });
181
150
  Object.defineProperty(exports, "getRegisteredSubjectKeys", {
182
151
  enumerable: true,
183
- get: function () { return chunkMENBHEAY_cjs.getRegisteredSubjectKeys; }
152
+ get: function () { return chunkWRM52ZBN_cjs.getRegisteredSubjectKeys; }
184
153
  });
185
154
  Object.defineProperty(exports, "insertBeforeStyleSection", {
186
155
  enumerable: true,
187
- get: function () { return chunkMENBHEAY_cjs.insertBeforeStyleSection; }
188
- });
189
- Object.defineProperty(exports, "modeForFamily", {
190
- enumerable: true,
191
- get: function () { return chunkMENBHEAY_cjs.modeForFamily; }
156
+ get: function () { return chunkWRM52ZBN_cjs.insertBeforeStyleSection; }
192
157
  });
193
158
  Object.defineProperty(exports, "normalizeSubjectFields", {
194
159
  enumerable: true,
195
- get: function () { return chunkMENBHEAY_cjs.normalizeSubjectFields; }
160
+ get: function () { return chunkWRM52ZBN_cjs.normalizeSubjectFields; }
196
161
  });
197
162
  Object.defineProperty(exports, "partitionStyleClauses", {
198
163
  enumerable: true,
199
- get: function () { return chunkMENBHEAY_cjs.partitionStyleClauses; }
164
+ get: function () { return chunkWRM52ZBN_cjs.partitionStyleClauses; }
200
165
  });
201
166
  Object.defineProperty(exports, "referenceDescriptionLine", {
202
167
  enumerable: true,
203
- get: function () { return chunkMENBHEAY_cjs.referenceDescriptionLine; }
168
+ get: function () { return chunkWRM52ZBN_cjs.referenceDescriptionLine; }
204
169
  });
205
170
  Object.defineProperty(exports, "renderDescribedReferenceLines", {
206
171
  enumerable: true,
207
- get: function () { return chunkMENBHEAY_cjs.renderDescribedReferenceLines; }
208
- });
209
- Object.defineProperty(exports, "renderDirectionHintClauses", {
210
- enumerable: true,
211
- get: function () { return chunkMENBHEAY_cjs.renderDirectionHintClauses; }
212
- });
213
- Object.defineProperty(exports, "renderDirectionHints", {
214
- enumerable: true,
215
- get: function () { return chunkMENBHEAY_cjs.renderDirectionHints; }
172
+ get: function () { return chunkWRM52ZBN_cjs.renderDescribedReferenceLines; }
216
173
  });
217
174
  Object.defineProperty(exports, "renderReferenceCaptionLines", {
218
175
  enumerable: true,
219
- get: function () { return chunkMENBHEAY_cjs.renderReferenceCaptionLines; }
176
+ get: function () { return chunkWRM52ZBN_cjs.renderReferenceCaptionLines; }
220
177
  });
221
178
  Object.defineProperty(exports, "renderStructuredFields", {
222
179
  enumerable: true,
223
- get: function () { return chunkMENBHEAY_cjs.renderStructuredFields; }
180
+ get: function () { return chunkWRM52ZBN_cjs.renderStructuredFields; }
224
181
  });
225
182
  Object.defineProperty(exports, "renderStyleSection", {
226
183
  enumerable: true,
227
- get: function () { return chunkMENBHEAY_cjs.renderStyleSection; }
184
+ get: function () { return chunkWRM52ZBN_cjs.renderStyleSection; }
228
185
  });
229
186
  Object.defineProperty(exports, "renderSubjectHints", {
230
187
  enumerable: true,
231
- get: function () { return chunkMENBHEAY_cjs.renderSubjectHints; }
188
+ get: function () { return chunkWRM52ZBN_cjs.renderSubjectHints; }
232
189
  });
233
190
  Object.defineProperty(exports, "resolveCharacterMentions", {
234
191
  enumerable: true,
235
- get: function () { return chunkMENBHEAY_cjs.resolveCharacterMentions; }
192
+ get: function () { return chunkWRM52ZBN_cjs.resolveCharacterMentions; }
236
193
  });
237
194
  Object.defineProperty(exports, "resolveLocationMentions", {
238
195
  enumerable: true,
239
- get: function () { return chunkMENBHEAY_cjs.resolveLocationMentions; }
196
+ get: function () { return chunkWRM52ZBN_cjs.resolveLocationMentions; }
240
197
  });
241
198
  Object.defineProperty(exports, "sectionedClauseCosts", {
242
199
  enumerable: true,
243
- get: function () { return chunkMENBHEAY_cjs.sectionedClauseCosts; }
200
+ get: function () { return chunkWRM52ZBN_cjs.sectionedClauseCosts; }
244
201
  });
245
202
  Object.defineProperty(exports, "splitStyleSection", {
246
203
  enumerable: true,
247
- get: function () { return chunkMENBHEAY_cjs.splitStyleSection; }
204
+ get: function () { return chunkWRM52ZBN_cjs.splitStyleSection; }
248
205
  });
249
206
  Object.defineProperty(exports, "styleSectionFromClauses", {
250
207
  enumerable: true,
251
- get: function () { return chunkMENBHEAY_cjs.styleSectionFromClauses; }
208
+ get: function () { return chunkWRM52ZBN_cjs.styleSectionFromClauses; }
252
209
  });
253
210
  Object.defineProperty(exports, "styleSlotFor", {
254
211
  enumerable: true,
255
- get: function () { return chunkMENBHEAY_cjs.styleSlotFor; }
212
+ get: function () { return chunkWRM52ZBN_cjs.styleSlotFor; }
256
213
  });
257
214
  Object.defineProperty(exports, "subjectFieldsForSurface", {
258
215
  enumerable: true,
259
- get: function () { return chunkMENBHEAY_cjs.subjectFieldsForSurface; }
216
+ get: function () { return chunkWRM52ZBN_cjs.subjectFieldsForSurface; }
260
217
  });
261
218
  Object.defineProperty(exports, "truncateText", {
262
219
  enumerable: true,
263
- get: function () { return chunkMENBHEAY_cjs.truncateText; }
220
+ get: function () { return chunkWRM52ZBN_cjs.truncateText; }
221
+ });
222
+ Object.defineProperty(exports, "DIRECTION_ARRAY_CEILING", {
223
+ enumerable: true,
224
+ get: function () { return chunk2P26SZX5_cjs.DIRECTION_ARRAY_CEILING; }
225
+ });
226
+ Object.defineProperty(exports, "DIRECTION_FIELDS", {
227
+ enumerable: true,
228
+ get: function () { return chunk2P26SZX5_cjs.DIRECTION_FIELDS; }
229
+ });
230
+ Object.defineProperty(exports, "DIRECTION_ID_MAX_CHARS", {
231
+ enumerable: true,
232
+ get: function () { return chunk2P26SZX5_cjs.DIRECTION_ID_MAX_CHARS; }
233
+ });
234
+ Object.defineProperty(exports, "DIRECTION_KEYS", {
235
+ enumerable: true,
236
+ get: function () { return chunk2P26SZX5_cjs.DIRECTION_KEYS; }
237
+ });
238
+ Object.defineProperty(exports, "FILM_STYLE_KEYS", {
239
+ enumerable: true,
240
+ get: function () { return chunk2P26SZX5_cjs.FILM_STYLE_KEYS; }
241
+ });
242
+ Object.defineProperty(exports, "IMAGE_HINT_MODE_DEFAULT", {
243
+ enumerable: true,
244
+ get: function () { return chunk2P26SZX5_cjs.IMAGE_HINT_MODE_DEFAULT; }
245
+ });
246
+ Object.defineProperty(exports, "USER_DIRECTION_REF_KINDS", {
247
+ enumerable: true,
248
+ get: function () { return chunk2P26SZX5_cjs.USER_DIRECTION_REF_KINDS; }
249
+ });
250
+ Object.defineProperty(exports, "VIDEO_HINT_MODE_DEFAULT", {
251
+ enumerable: true,
252
+ get: function () { return chunk2P26SZX5_cjs.VIDEO_HINT_MODE_DEFAULT; }
253
+ });
254
+ Object.defineProperty(exports, "directionFieldsForSurface", {
255
+ enumerable: true,
256
+ get: function () { return chunk2P26SZX5_cjs.directionFieldsForSurface; }
257
+ });
258
+ Object.defineProperty(exports, "directionKeyForUserRef", {
259
+ enumerable: true,
260
+ get: function () { return chunk2P26SZX5_cjs.directionKeyForUserRef; }
261
+ });
262
+ Object.defineProperty(exports, "modeForFamily", {
263
+ enumerable: true,
264
+ get: function () { return chunk2P26SZX5_cjs.modeForFamily; }
265
+ });
266
+ Object.defineProperty(exports, "nearestColorName", {
267
+ enumerable: true,
268
+ get: function () { return chunk2P26SZX5_cjs.nearestColorName; }
269
+ });
270
+ Object.defineProperty(exports, "parseUserDirectionRef", {
271
+ enumerable: true,
272
+ get: function () { return chunk2P26SZX5_cjs.parseUserDirectionRef; }
273
+ });
274
+ Object.defineProperty(exports, "renderDirectionHintClauses", {
275
+ enumerable: true,
276
+ get: function () { return chunk2P26SZX5_cjs.renderDirectionHintClauses; }
277
+ });
278
+ Object.defineProperty(exports, "renderDirectionHints", {
279
+ enumerable: true,
280
+ get: function () { return chunk2P26SZX5_cjs.renderDirectionHints; }
281
+ });
282
+ Object.defineProperty(exports, "renderMoodboardClause", {
283
+ enumerable: true,
284
+ get: function () { return chunk2P26SZX5_cjs.renderMoodboardClause; }
285
+ });
286
+ Object.defineProperty(exports, "renderPaletteClause", {
287
+ enumerable: true,
288
+ get: function () { return chunk2P26SZX5_cjs.renderPaletteClause; }
289
+ });
290
+ Object.defineProperty(exports, "styleReferenceDescription", {
291
+ enumerable: true,
292
+ get: function () { return chunk2P26SZX5_cjs.styleReferenceDescription; }
293
+ });
294
+ Object.defineProperty(exports, "userDirectionRefValue", {
295
+ enumerable: true,
296
+ get: function () { return chunk2P26SZX5_cjs.userDirectionRefValue; }
297
+ });
298
+ Object.defineProperty(exports, "userRefKindOfDirectionKey", {
299
+ enumerable: true,
300
+ get: function () { return chunk2P26SZX5_cjs.userRefKindOfDirectionKey; }
264
301
  });
265
302
  //# sourceMappingURL=prompt-builder.cjs.map
266
303
  //# sourceMappingURL=prompt-builder.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { DescribedReference } from '@nodaro/shared/types';
2
- import { k as DirectionFields, m as DirectionHintMode, h as DirectionFamily, o as DirectionStyleGroup, J as StructuredPromptFields, N as SubjectFields } from '../subject-registry-BUswuEVD.cjs';
3
- export { A as ANGLE_LABELS, a as ASPECT_RATIO_LABELS, B as BuildImagePromptConfig, b as BuildImagePromptOverflowResult, c as BuildImagePromptResult, d as BuildImagePromptSegmentsResult, D as DIRECTION_ARRAY_CEILING, e as DIRECTION_FIELDS, f as DIRECTION_ID_MAX_CHARS, g as DIRECTION_KEYS, i as DirectionFieldRow, j as DirectionFieldSpec, l as DirectionHintClause, n as DirectionKey, p as DirectionSurface, F as FILM_STYLE_KEYS, I as IMAGE_HINT_MODE_DEFAULT, q as ImageDirectionKey, M as MAX_SUBJECT_KEYS, r as MOVEMENT_LABELS, P as PromptSegment, s as PromptSegmentOrigin, R as ResolveCharacterMentionsResult, t as ResolveLocationMentionsResult, S as SCENE_PROMPT_MAX_LENGTH, u as SHOT_LABELS, v as SUBJECT_ARRAY_CEILING, w as SUBJECT_CUSTOM_AGE_KEY, x as SUBJECT_FIELDS, y as SUBJECT_FOLD_KEYS, z as SUBJECT_ID_MAX_CHARS, C as SUBJECT_IMAGE_HINT_MODE_DEFAULT, E as SUBJECT_KEYS, G as SUBJECT_KEY_MAX_CHARS, H as SUBJECT_VIDEO_HINT_MODE_DEFAULT, K as SubjectFieldRow, L as SubjectFieldSpec, O as SubjectGroupFieldSpec, Q as SubjectHintMode, T as SubjectIdsFieldSpec, U as SubjectSurface, V as VIDEO_HINT_MODE_DEFAULT, W as VideoDirectionKey, X as applyReferenceOrderToVideo, Y as buildIdentityDirectives, Z as buildImagePrompt, _ as buildImagePromptSegments, $ as buildImagePromptWithOverflow, a0 as buildReferenceBlocks, a1 as buildScenePrompt, a2 as directionFieldsForSurface, a3 as expandImagePositionRefs, a4 as expandImageRefTokens, a5 as getRegisteredSubjectKeys, a6 as modeForFamily, a7 as normalizeSubjectFields, a8 as renderDirectionHintClauses, a9 as renderDirectionHints, aa as renderStructuredFields, ab as renderSubjectHints, ac as resolveCharacterMentions, ad as resolveLocationMentions, ae as subjectFieldsForSurface, af as truncateText } from '../subject-registry-BUswuEVD.cjs';
2
+ import { k as DirectionFields, o as DirectionRenderOptions, h as DirectionFamily, p as DirectionStyleGroup, K as StructuredPromptFields, Q as SubjectFields } from '../subject-registry-CQi_CZfJ.cjs';
3
+ export { A as ANGLE_LABELS, a as ASPECT_RATIO_LABELS, B as BuildImagePromptConfig, b as BuildImagePromptOverflowResult, c as BuildImagePromptResult, d as BuildImagePromptSegmentsResult, D as DIRECTION_ARRAY_CEILING, e as DIRECTION_FIELDS, f as DIRECTION_ID_MAX_CHARS, g as DIRECTION_KEYS, i as DirectionFieldRow, j as DirectionFieldSpec, l as DirectionHintClause, m as DirectionHintMode, n as DirectionKey, q as DirectionSurface, F as FILM_STYLE_KEYS, I as IMAGE_HINT_MODE_DEFAULT, r as ImageDirectionKey, M as MAX_SUBJECT_KEYS, s as MOVEMENT_LABELS, P as PromptSegment, t as PromptSegmentOrigin, R as ResolveCharacterMentionsResult, u as ResolveLocationMentionsResult, S as SCENE_PROMPT_MAX_LENGTH, v as SHOT_LABELS, w as SUBJECT_ARRAY_CEILING, x as SUBJECT_CUSTOM_AGE_KEY, y as SUBJECT_FIELDS, z as SUBJECT_FOLD_KEYS, C as SUBJECT_ID_MAX_CHARS, E as SUBJECT_IMAGE_HINT_MODE_DEFAULT, G as SUBJECT_KEYS, H as SUBJECT_KEY_MAX_CHARS, J as SUBJECT_VIDEO_HINT_MODE_DEFAULT, L as StyleReferenceInput, N as SubjectFieldRow, O as SubjectFieldSpec, T as SubjectGroupFieldSpec, U as SubjectHintMode, V as SubjectIdsFieldSpec, W as SubjectSurface, X as USER_DIRECTION_REF_KINDS, Y as UserDirectionRef, Z as UserDirectionRefKind, _ as VIDEO_HINT_MODE_DEFAULT, $ as VideoDirectionKey, a0 as applyReferenceOrderToVideo, a1 as buildIdentityDirectives, a2 as buildImagePrompt, a3 as buildImagePromptSegments, a4 as buildImagePromptWithOverflow, a5 as buildReferenceBlocks, a6 as buildScenePrompt, a7 as directionFieldsForSurface, a8 as directionKeyForUserRef, a9 as expandImagePositionRefs, aa as expandImageRefTokens, ab as getRegisteredSubjectKeys, ac as modeForFamily, ad as normalizeSubjectFields, ae as parseUserDirectionRef, af as renderDirectionHintClauses, ag as renderDirectionHints, ah as renderMoodboardClause, ai as renderPaletteClause, aj as renderStructuredFields, ak as renderSubjectHints, al as resolveCharacterMentions, am as resolveLocationMentions, an as styleReferenceDescription, ao as subjectFieldsForSurface, ap as truncateText, aq as userDirectionRefValue, ar as userRefKindOfDirectionKey } from '../subject-registry-CQi_CZfJ.cjs';
4
4
  import '@nodaro/shared/entities';
5
5
  import '../term-C01_g6s1.cjs';
6
6
  import '../transitions-BLFfAJUH.cjs';
@@ -82,6 +82,23 @@ declare function renderReferenceCaptionLines(videoCaptions: readonly string[] |
82
82
  */
83
83
  declare function appendReferenceLines(prompt: string, lines: readonly string[], format: ReferenceLineFormat): string;
84
84
 
85
+ /**
86
+ * Plain colour names for a hex value — what a saved colour palette reads as
87
+ * in a prompt ("deep teal #0F4C5C"). A model follows a named colour more
88
+ * reliably than a bare hex code, and the hex keeps the exact value.
89
+ *
90
+ * NEAREST NAME, NOT A CLASSIFIER: a fixed table of everyday colour names, each
91
+ * with a representative value, and the one closest to the input in CIE Lab
92
+ * (ΔE 1976 — Euclidean distance in Lab, which tracks perceived difference far
93
+ * better than RGB). Deterministic, dependency-free, and a name is always one a
94
+ * person would say. Ties go to the earlier row.
95
+ */
96
+ /**
97
+ * The everyday name nearest to `hex` (`#RRGGBB`, any case), or `""` when the
98
+ * value is not a `#RRGGBB` colour.
99
+ */
100
+ declare function nearestColorName(hex: string): string;
101
+
85
102
  /**
86
103
  * The section header, verbatim. Lowercase and bracketed so it reads as
87
104
  * structure rather than as a sentence — and so it can be found again by
@@ -152,10 +169,7 @@ declare function asBodyClauses(texts: readonly string[]): SlottedPromptClause[];
152
169
  * composers slice this list from the tail when a cap forces a shed, and only
153
170
  * then hand the surviving prefix to `composeSectionedPrompt`.
154
171
  */
155
- declare function partitionStyleClauses(direction: DirectionFields | undefined, opts: {
156
- surface: "image" | "video";
157
- mode?: DirectionHintMode;
158
- }): SlottedPromptClause[];
172
+ declare function partitionStyleClauses(direction: DirectionFields | undefined, opts: DirectionRenderOptions): SlottedPromptClause[];
159
173
  /**
160
174
  * The section block for a set of clauses — `""` when none of them is a look
161
175
  * clause. Each line is omitted entirely when its half of the split is empty, so
@@ -166,10 +180,7 @@ declare function styleSectionFromClauses(clauses: readonly SlottedPromptClause[]
166
180
  * The section for a raw direction bag — the entry point a client renders its
167
181
  * preview through, so the preview and the server emit the same bytes.
168
182
  */
169
- declare function renderStyleSection(direction: DirectionFields | undefined, opts: {
170
- surface: "image" | "video";
171
- mode?: DirectionHintMode;
172
- }): string;
183
+ declare function renderStyleSection(direction: DirectionFields | undefined, opts: DirectionRenderOptions): string;
173
184
  /**
174
185
  * The assembled prompt for a set of clauses: body clauses `". "`-joined onto the
175
186
  * user's prompt, the structured fragment last in the body, then the section.
@@ -289,4 +300,4 @@ declare function readSubjectFields(value: unknown): SubjectFields | undefined;
289
300
  * and `undefined`-never-`{}` contract as `readDirectionFields`. */
290
301
  declare function readStructuredFields(value: unknown): StructuredPromptFields | undefined;
291
302
 
292
- export { DirectionFamily, DirectionFields, DirectionHintMode, DirectionStyleGroup, type PromptClauseSlot, type ReferenceLineFormat, STYLE_SECTION_GAP, STYLE_SECTION_HEADER, type SlottedPromptClause, StructuredPromptFields, SubjectFields, appendReferenceLines, asBodyClauses, composeSectionedPrompt, endsInsideStyleSection, insertBeforeStyleSection, partitionStyleClauses, readDirectionFields, readStructuredFields, readSubjectFields, referenceDescriptionLine, renderDescribedReferenceLines, renderReferenceCaptionLines, renderStyleSection, sectionedClauseCosts, splitStyleSection, styleSectionFromClauses, styleSlotFor };
303
+ export { DirectionFamily, DirectionFields, DirectionRenderOptions, DirectionStyleGroup, type PromptClauseSlot, type ReferenceLineFormat, STYLE_SECTION_GAP, STYLE_SECTION_HEADER, type SlottedPromptClause, StructuredPromptFields, SubjectFields, appendReferenceLines, asBodyClauses, composeSectionedPrompt, endsInsideStyleSection, insertBeforeStyleSection, nearestColorName, partitionStyleClauses, readDirectionFields, readStructuredFields, readSubjectFields, referenceDescriptionLine, renderDescribedReferenceLines, renderReferenceCaptionLines, renderStyleSection, sectionedClauseCosts, splitStyleSection, styleSectionFromClauses, styleSlotFor };
@@ -1,6 +1,6 @@
1
1
  import { DescribedReference } from '@nodaro/shared/types';
2
- import { k as DirectionFields, m as DirectionHintMode, h as DirectionFamily, o as DirectionStyleGroup, J as StructuredPromptFields, N as SubjectFields } from '../subject-registry-D7V8PEG-.js';
3
- export { A as ANGLE_LABELS, a as ASPECT_RATIO_LABELS, B as BuildImagePromptConfig, b as BuildImagePromptOverflowResult, c as BuildImagePromptResult, d as BuildImagePromptSegmentsResult, D as DIRECTION_ARRAY_CEILING, e as DIRECTION_FIELDS, f as DIRECTION_ID_MAX_CHARS, g as DIRECTION_KEYS, i as DirectionFieldRow, j as DirectionFieldSpec, l as DirectionHintClause, n as DirectionKey, p as DirectionSurface, F as FILM_STYLE_KEYS, I as IMAGE_HINT_MODE_DEFAULT, q as ImageDirectionKey, M as MAX_SUBJECT_KEYS, r as MOVEMENT_LABELS, P as PromptSegment, s as PromptSegmentOrigin, R as ResolveCharacterMentionsResult, t as ResolveLocationMentionsResult, S as SCENE_PROMPT_MAX_LENGTH, u as SHOT_LABELS, v as SUBJECT_ARRAY_CEILING, w as SUBJECT_CUSTOM_AGE_KEY, x as SUBJECT_FIELDS, y as SUBJECT_FOLD_KEYS, z as SUBJECT_ID_MAX_CHARS, C as SUBJECT_IMAGE_HINT_MODE_DEFAULT, E as SUBJECT_KEYS, G as SUBJECT_KEY_MAX_CHARS, H as SUBJECT_VIDEO_HINT_MODE_DEFAULT, K as SubjectFieldRow, L as SubjectFieldSpec, O as SubjectGroupFieldSpec, Q as SubjectHintMode, T as SubjectIdsFieldSpec, U as SubjectSurface, V as VIDEO_HINT_MODE_DEFAULT, W as VideoDirectionKey, X as applyReferenceOrderToVideo, Y as buildIdentityDirectives, Z as buildImagePrompt, _ as buildImagePromptSegments, $ as buildImagePromptWithOverflow, a0 as buildReferenceBlocks, a1 as buildScenePrompt, a2 as directionFieldsForSurface, a3 as expandImagePositionRefs, a4 as expandImageRefTokens, a5 as getRegisteredSubjectKeys, a6 as modeForFamily, a7 as normalizeSubjectFields, a8 as renderDirectionHintClauses, a9 as renderDirectionHints, aa as renderStructuredFields, ab as renderSubjectHints, ac as resolveCharacterMentions, ad as resolveLocationMentions, ae as subjectFieldsForSurface, af as truncateText } from '../subject-registry-D7V8PEG-.js';
2
+ import { k as DirectionFields, o as DirectionRenderOptions, h as DirectionFamily, p as DirectionStyleGroup, K as StructuredPromptFields, Q as SubjectFields } from '../subject-registry-DFiGx49v.js';
3
+ export { A as ANGLE_LABELS, a as ASPECT_RATIO_LABELS, B as BuildImagePromptConfig, b as BuildImagePromptOverflowResult, c as BuildImagePromptResult, d as BuildImagePromptSegmentsResult, D as DIRECTION_ARRAY_CEILING, e as DIRECTION_FIELDS, f as DIRECTION_ID_MAX_CHARS, g as DIRECTION_KEYS, i as DirectionFieldRow, j as DirectionFieldSpec, l as DirectionHintClause, m as DirectionHintMode, n as DirectionKey, q as DirectionSurface, F as FILM_STYLE_KEYS, I as IMAGE_HINT_MODE_DEFAULT, r as ImageDirectionKey, M as MAX_SUBJECT_KEYS, s as MOVEMENT_LABELS, P as PromptSegment, t as PromptSegmentOrigin, R as ResolveCharacterMentionsResult, u as ResolveLocationMentionsResult, S as SCENE_PROMPT_MAX_LENGTH, v as SHOT_LABELS, w as SUBJECT_ARRAY_CEILING, x as SUBJECT_CUSTOM_AGE_KEY, y as SUBJECT_FIELDS, z as SUBJECT_FOLD_KEYS, C as SUBJECT_ID_MAX_CHARS, E as SUBJECT_IMAGE_HINT_MODE_DEFAULT, G as SUBJECT_KEYS, H as SUBJECT_KEY_MAX_CHARS, J as SUBJECT_VIDEO_HINT_MODE_DEFAULT, L as StyleReferenceInput, N as SubjectFieldRow, O as SubjectFieldSpec, T as SubjectGroupFieldSpec, U as SubjectHintMode, V as SubjectIdsFieldSpec, W as SubjectSurface, X as USER_DIRECTION_REF_KINDS, Y as UserDirectionRef, Z as UserDirectionRefKind, _ as VIDEO_HINT_MODE_DEFAULT, $ as VideoDirectionKey, a0 as applyReferenceOrderToVideo, a1 as buildIdentityDirectives, a2 as buildImagePrompt, a3 as buildImagePromptSegments, a4 as buildImagePromptWithOverflow, a5 as buildReferenceBlocks, a6 as buildScenePrompt, a7 as directionFieldsForSurface, a8 as directionKeyForUserRef, a9 as expandImagePositionRefs, aa as expandImageRefTokens, ab as getRegisteredSubjectKeys, ac as modeForFamily, ad as normalizeSubjectFields, ae as parseUserDirectionRef, af as renderDirectionHintClauses, ag as renderDirectionHints, ah as renderMoodboardClause, ai as renderPaletteClause, aj as renderStructuredFields, ak as renderSubjectHints, al as resolveCharacterMentions, am as resolveLocationMentions, an as styleReferenceDescription, ao as subjectFieldsForSurface, ap as truncateText, aq as userDirectionRefValue, ar as userRefKindOfDirectionKey } from '../subject-registry-DFiGx49v.js';
4
4
  import '@nodaro/shared/entities';
5
5
  import '../term-C01_g6s1.js';
6
6
  import '../transitions-BgwWM37i.js';
@@ -82,6 +82,23 @@ declare function renderReferenceCaptionLines(videoCaptions: readonly string[] |
82
82
  */
83
83
  declare function appendReferenceLines(prompt: string, lines: readonly string[], format: ReferenceLineFormat): string;
84
84
 
85
+ /**
86
+ * Plain colour names for a hex value — what a saved colour palette reads as
87
+ * in a prompt ("deep teal #0F4C5C"). A model follows a named colour more
88
+ * reliably than a bare hex code, and the hex keeps the exact value.
89
+ *
90
+ * NEAREST NAME, NOT A CLASSIFIER: a fixed table of everyday colour names, each
91
+ * with a representative value, and the one closest to the input in CIE Lab
92
+ * (ΔE 1976 — Euclidean distance in Lab, which tracks perceived difference far
93
+ * better than RGB). Deterministic, dependency-free, and a name is always one a
94
+ * person would say. Ties go to the earlier row.
95
+ */
96
+ /**
97
+ * The everyday name nearest to `hex` (`#RRGGBB`, any case), or `""` when the
98
+ * value is not a `#RRGGBB` colour.
99
+ */
100
+ declare function nearestColorName(hex: string): string;
101
+
85
102
  /**
86
103
  * The section header, verbatim. Lowercase and bracketed so it reads as
87
104
  * structure rather than as a sentence — and so it can be found again by
@@ -152,10 +169,7 @@ declare function asBodyClauses(texts: readonly string[]): SlottedPromptClause[];
152
169
  * composers slice this list from the tail when a cap forces a shed, and only
153
170
  * then hand the surviving prefix to `composeSectionedPrompt`.
154
171
  */
155
- declare function partitionStyleClauses(direction: DirectionFields | undefined, opts: {
156
- surface: "image" | "video";
157
- mode?: DirectionHintMode;
158
- }): SlottedPromptClause[];
172
+ declare function partitionStyleClauses(direction: DirectionFields | undefined, opts: DirectionRenderOptions): SlottedPromptClause[];
159
173
  /**
160
174
  * The section block for a set of clauses — `""` when none of them is a look
161
175
  * clause. Each line is omitted entirely when its half of the split is empty, so
@@ -166,10 +180,7 @@ declare function styleSectionFromClauses(clauses: readonly SlottedPromptClause[]
166
180
  * The section for a raw direction bag — the entry point a client renders its
167
181
  * preview through, so the preview and the server emit the same bytes.
168
182
  */
169
- declare function renderStyleSection(direction: DirectionFields | undefined, opts: {
170
- surface: "image" | "video";
171
- mode?: DirectionHintMode;
172
- }): string;
183
+ declare function renderStyleSection(direction: DirectionFields | undefined, opts: DirectionRenderOptions): string;
173
184
  /**
174
185
  * The assembled prompt for a set of clauses: body clauses `". "`-joined onto the
175
186
  * user's prompt, the structured fragment last in the body, then the section.
@@ -289,4 +300,4 @@ declare function readSubjectFields(value: unknown): SubjectFields | undefined;
289
300
  * and `undefined`-never-`{}` contract as `readDirectionFields`. */
290
301
  declare function readStructuredFields(value: unknown): StructuredPromptFields | undefined;
291
302
 
292
- export { DirectionFamily, DirectionFields, DirectionHintMode, DirectionStyleGroup, type PromptClauseSlot, type ReferenceLineFormat, STYLE_SECTION_GAP, STYLE_SECTION_HEADER, type SlottedPromptClause, StructuredPromptFields, SubjectFields, appendReferenceLines, asBodyClauses, composeSectionedPrompt, endsInsideStyleSection, insertBeforeStyleSection, partitionStyleClauses, readDirectionFields, readStructuredFields, readSubjectFields, referenceDescriptionLine, renderDescribedReferenceLines, renderReferenceCaptionLines, renderStyleSection, sectionedClauseCosts, splitStyleSection, styleSectionFromClauses, styleSlotFor };
303
+ export { DirectionFamily, DirectionFields, DirectionRenderOptions, DirectionStyleGroup, type PromptClauseSlot, type ReferenceLineFormat, STYLE_SECTION_GAP, STYLE_SECTION_HEADER, type SlottedPromptClause, StructuredPromptFields, SubjectFields, appendReferenceLines, asBodyClauses, composeSectionedPrompt, endsInsideStyleSection, insertBeforeStyleSection, nearestColorName, partitionStyleClauses, readDirectionFields, readStructuredFields, readSubjectFields, referenceDescriptionLine, renderDescribedReferenceLines, renderReferenceCaptionLines, renderStyleSection, sectionedClauseCosts, splitStyleSection, styleSectionFromClauses, styleSlotFor };
@@ -1,8 +1,9 @@
1
- export { readDirectionFields, readStructuredFields, readSubjectFields } from '../chunk-HRBBNODV.js';
2
- export { ANGLE_LABELS, ASPECT_RATIO_LABELS, DIRECTION_ARRAY_CEILING, DIRECTION_FIELDS, DIRECTION_ID_MAX_CHARS, DIRECTION_KEYS, FILM_STYLE_KEYS, IMAGE_HINT_MODE_DEFAULT, 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, VIDEO_HINT_MODE_DEFAULT, appendReferenceLines, applyReferenceOrderToVideo, asBodyClauses, buildIdentityDirectives, buildImagePrompt, buildImagePromptSegments, buildImagePromptWithOverflow, buildReferenceBlocks, buildScenePrompt, composeSectionedPrompt, directionFieldsForSurface, endsInsideStyleSection, expandImagePositionRefs, expandImageRefTokens, getRegisteredSubjectKeys, insertBeforeStyleSection, modeForFamily, normalizeSubjectFields, partitionStyleClauses, referenceDescriptionLine, renderDescribedReferenceLines, renderDirectionHintClauses, renderDirectionHints, renderReferenceCaptionLines, renderStructuredFields, renderStyleSection, renderSubjectHints, resolveCharacterMentions, resolveLocationMentions, sectionedClauseCosts, splitStyleSection, styleSectionFromClauses, styleSlotFor, subjectFieldsForSurface, truncateText } from '../chunk-QDEWBBUR.js';
1
+ export { readDirectionFields, readStructuredFields, readSubjectFields } from '../chunk-6GVFJLDL.js';
2
+ 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, truncateText } from '../chunk-DUXX6CBX.js';
3
+ import '../chunk-GILUVQQJ.js';
3
4
  import '../chunk-35UHMDGS.js';
4
5
  import '../chunk-BQWIPLLR.js';
5
- import '../chunk-UJKFHPZ7.js';
6
+ export { DIRECTION_ARRAY_CEILING, DIRECTION_FIELDS, DIRECTION_ID_MAX_CHARS, DIRECTION_KEYS, FILM_STYLE_KEYS, IMAGE_HINT_MODE_DEFAULT, USER_DIRECTION_REF_KINDS, VIDEO_HINT_MODE_DEFAULT, directionFieldsForSurface, directionKeyForUserRef, modeForFamily, nearestColorName, parseUserDirectionRef, renderDirectionHintClauses, renderDirectionHints, renderMoodboardClause, renderPaletteClause, styleReferenceDescription, userDirectionRefValue, userRefKindOfDirectionKey } from '../chunk-EAYEZXWT.js';
6
7
  import '../chunk-SXXW4LCR.js';
7
8
  import '../chunk-DVP6ILDR.js';
8
9
  import '../chunk-TDZFXOTE.js';