@nodaro/prompts 1.46.0 → 1.47.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/{chunk-QKD2KUZW.cjs → chunk-MGK6SFTV.cjs} +20 -6
- package/dist/chunk-MGK6SFTV.cjs.map +1 -0
- package/dist/{chunk-PUWJ2ZBG.js → chunk-RRHU6MD5.js} +20 -6
- package/dist/chunk-RRHU6MD5.js.map +1 -0
- package/dist/entries/presets.cjs +35 -35
- package/dist/entries/presets.js +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/__tests__/factory-presets.test.ts +26 -2
- package/src/__tests__/image-unwired-reference-tokens.test.ts +3 -2
- package/src/factory-presets/generate-image.ts +18 -4
- package/dist/chunk-PUWJ2ZBG.js.map +0 -1
- package/dist/chunk-QKD2KUZW.cjs.map +0 -1
package/dist/entries/presets.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMGK6SFTV_cjs = require('../chunk-MGK6SFTV.cjs');
|
|
4
4
|
require('../chunk-LXPKTI2K.cjs');
|
|
5
5
|
require('../chunk-4GKTOVFM.cjs');
|
|
6
6
|
require('../chunk-NAFD6MGH.cjs');
|
|
@@ -11,139 +11,139 @@ require('../chunk-Q7SFCCGT.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "BODY_CAPTIONS_PRESET_ID", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkMGK6SFTV_cjs.BODY_CAPTIONS_PRESET_ID; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "BRAND_PRESETS", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkMGK6SFTV_cjs.BRAND_PRESETS; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "BRAND_PRESET_IDS", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkMGK6SFTV_cjs.BRAND_PRESET_IDS; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "BRAND_PRESET_META", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkMGK6SFTV_cjs.BRAND_PRESET_META; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "CAPTION_LEVERS_BY_LANGUAGE", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkMGK6SFTV_cjs.CAPTION_LEVERS_BY_LANGUAGE; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "CAPTION_SEGMENT_LEVER_KEYS", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkMGK6SFTV_cjs.CAPTION_SEGMENT_LEVER_KEYS; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "FACTORY_PRESETS", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_PRESETS; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "FACTORY_PRESET_PREVIEW_FILES", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_PRESET_PREVIEW_FILES; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "FACTORY_PRESET_PREVIEW_LARGE_FILES", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_PRESET_PREVIEW_LARGE_FILES; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "FACTORY_SNIPPETS", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_SNIPPETS; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "HOOK_PLATE_PRESET_ID", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkMGK6SFTV_cjs.HOOK_PLATE_PRESET_ID; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "MAX_PRESET_REFERENCES", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkMGK6SFTV_cjs.MAX_PRESET_REFERENCES; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "OBJECT_ANGLE_PRESETS", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ANGLE_PRESETS; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "OBJECT_ANGLE_PROMPTS", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ANGLE_PROMPTS; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "OBJECT_ASSET_PRESETS", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ASSET_PRESETS; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "OBJECT_ASSET_PROMPTS", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ASSET_PROMPTS; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "OBJECT_MATERIAL_PRESETS", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_MATERIAL_PRESETS; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "OBJECT_MATERIAL_PROMPTS", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_MATERIAL_PROMPTS; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "OBJECT_VARIATION_PRESETS", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_VARIATION_PRESETS; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "OBJECT_VARIATION_PROMPTS", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_VARIATION_PROMPTS; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "PRESET_PREVIEW_LARGE_WIDTH", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkMGK6SFTV_cjs.PRESET_PREVIEW_LARGE_WIDTH; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "PRESET_PREVIEW_PATH", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkMGK6SFTV_cjs.PRESET_PREVIEW_PATH; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "PRESET_PREVIEW_WIDTH", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkMGK6SFTV_cjs.PRESET_PREVIEW_WIDTH; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "SNIPPET_MEDIA_VALUES", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkMGK6SFTV_cjs.SNIPPET_MEDIA_VALUES; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "STYLE_PRESETS", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkMGK6SFTV_cjs.STYLE_PRESETS; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "factoryPresetPreviewSrcSet", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkMGK6SFTV_cjs.factoryPresetPreviewSrcSet; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "factoryPresetPreviewUrl", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkMGK6SFTV_cjs.factoryPresetPreviewUrl; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "getFactoryPresets", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkMGK6SFTV_cjs.getFactoryPresets; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "getFactorySnippets", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkMGK6SFTV_cjs.getFactorySnippets; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "getStylePreset", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkMGK6SFTV_cjs.getStylePreset; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "groupFactoryPresets", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkMGK6SFTV_cjs.groupFactoryPresets; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "hookPlateCaptionSegments", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkMGK6SFTV_cjs.hookPlateCaptionSegments; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "presetMinReferences", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkMGK6SFTV_cjs.presetMinReferences; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "resolveBrandInput", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkMGK6SFTV_cjs.resolveBrandInput; }
|
|
147
147
|
});
|
|
148
148
|
//# sourceMappingURL=presets.cjs.map
|
|
149
149
|
//# sourceMappingURL=presets.cjs.map
|
package/dist/entries/presets.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BODY_CAPTIONS_PRESET_ID, BRAND_PRESETS, BRAND_PRESET_IDS, BRAND_PRESET_META, CAPTION_LEVERS_BY_LANGUAGE, CAPTION_SEGMENT_LEVER_KEYS, FACTORY_PRESETS, FACTORY_PRESET_PREVIEW_FILES, FACTORY_PRESET_PREVIEW_LARGE_FILES, FACTORY_SNIPPETS, HOOK_PLATE_PRESET_ID, MAX_PRESET_REFERENCES, OBJECT_ANGLE_PRESETS, OBJECT_ANGLE_PROMPTS, OBJECT_ASSET_PRESETS, OBJECT_ASSET_PROMPTS, OBJECT_MATERIAL_PRESETS, OBJECT_MATERIAL_PROMPTS, OBJECT_VARIATION_PRESETS, OBJECT_VARIATION_PROMPTS, PRESET_PREVIEW_LARGE_WIDTH, PRESET_PREVIEW_PATH, PRESET_PREVIEW_WIDTH, SNIPPET_MEDIA_VALUES, STYLE_PRESETS, factoryPresetPreviewSrcSet, factoryPresetPreviewUrl, getFactoryPresets, getFactorySnippets, getStylePreset, groupFactoryPresets, hookPlateCaptionSegments, presetMinReferences, resolveBrandInput } from '../chunk-
|
|
1
|
+
export { BODY_CAPTIONS_PRESET_ID, BRAND_PRESETS, BRAND_PRESET_IDS, BRAND_PRESET_META, CAPTION_LEVERS_BY_LANGUAGE, CAPTION_SEGMENT_LEVER_KEYS, FACTORY_PRESETS, FACTORY_PRESET_PREVIEW_FILES, FACTORY_PRESET_PREVIEW_LARGE_FILES, FACTORY_SNIPPETS, HOOK_PLATE_PRESET_ID, MAX_PRESET_REFERENCES, OBJECT_ANGLE_PRESETS, OBJECT_ANGLE_PROMPTS, OBJECT_ASSET_PRESETS, OBJECT_ASSET_PROMPTS, OBJECT_MATERIAL_PRESETS, OBJECT_MATERIAL_PROMPTS, OBJECT_VARIATION_PRESETS, OBJECT_VARIATION_PROMPTS, PRESET_PREVIEW_LARGE_WIDTH, PRESET_PREVIEW_PATH, PRESET_PREVIEW_WIDTH, SNIPPET_MEDIA_VALUES, STYLE_PRESETS, factoryPresetPreviewSrcSet, factoryPresetPreviewUrl, getFactoryPresets, getFactorySnippets, getStylePreset, groupFactoryPresets, hookPlateCaptionSegments, presetMinReferences, resolveBrandInput } from '../chunk-RRHU6MD5.js';
|
|
2
2
|
import '../chunk-N6VMPG5S.js';
|
|
3
3
|
import '../chunk-GILUVQQJ.js';
|
|
4
4
|
import '../chunk-T64D26P4.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMGK6SFTV_cjs = require('./chunk-MGK6SFTV.cjs');
|
|
4
4
|
var chunkVAK4RUNU_cjs = require('./chunk-VAK4RUNU.cjs');
|
|
5
5
|
var chunk2EW5B7ZV_cjs = require('./chunk-2EW5B7ZV.cjs');
|
|
6
6
|
var chunkLXPKTI2K_cjs = require('./chunk-LXPKTI2K.cjs');
|
|
@@ -30,139 +30,139 @@ require('./chunk-Q7SFCCGT.cjs');
|
|
|
30
30
|
|
|
31
31
|
Object.defineProperty(exports, "BODY_CAPTIONS_PRESET_ID", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMGK6SFTV_cjs.BODY_CAPTIONS_PRESET_ID; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "BRAND_PRESETS", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMGK6SFTV_cjs.BRAND_PRESETS; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "BRAND_PRESET_IDS", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMGK6SFTV_cjs.BRAND_PRESET_IDS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "BRAND_PRESET_META", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMGK6SFTV_cjs.BRAND_PRESET_META; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "CAPTION_LEVERS_BY_LANGUAGE", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMGK6SFTV_cjs.CAPTION_LEVERS_BY_LANGUAGE; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "CAPTION_SEGMENT_LEVER_KEYS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMGK6SFTV_cjs.CAPTION_SEGMENT_LEVER_KEYS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FACTORY_PRESETS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_PRESETS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FACTORY_PRESET_PREVIEW_FILES", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_PRESET_PREVIEW_FILES; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FACTORY_PRESET_PREVIEW_LARGE_FILES", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_PRESET_PREVIEW_LARGE_FILES; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FACTORY_SNIPPETS", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMGK6SFTV_cjs.FACTORY_SNIPPETS; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "HOOK_PLATE_PRESET_ID", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMGK6SFTV_cjs.HOOK_PLATE_PRESET_ID; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "MAX_PRESET_REFERENCES", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMGK6SFTV_cjs.MAX_PRESET_REFERENCES; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "OBJECT_ANGLE_PRESETS", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ANGLE_PRESETS; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "OBJECT_ANGLE_PROMPTS", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ANGLE_PROMPTS; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "OBJECT_ASSET_PRESETS", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ASSET_PRESETS; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "OBJECT_ASSET_PROMPTS", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_ASSET_PROMPTS; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "OBJECT_MATERIAL_PRESETS", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_MATERIAL_PRESETS; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "OBJECT_MATERIAL_PROMPTS", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_MATERIAL_PROMPTS; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "OBJECT_VARIATION_PRESETS", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_VARIATION_PRESETS; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "OBJECT_VARIATION_PROMPTS", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkMGK6SFTV_cjs.OBJECT_VARIATION_PROMPTS; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "PRESET_PREVIEW_LARGE_WIDTH", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkMGK6SFTV_cjs.PRESET_PREVIEW_LARGE_WIDTH; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "PRESET_PREVIEW_PATH", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkMGK6SFTV_cjs.PRESET_PREVIEW_PATH; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "PRESET_PREVIEW_WIDTH", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkMGK6SFTV_cjs.PRESET_PREVIEW_WIDTH; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "SNIPPET_MEDIA_VALUES", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkMGK6SFTV_cjs.SNIPPET_MEDIA_VALUES; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "STYLE_PRESETS", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkMGK6SFTV_cjs.STYLE_PRESETS; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "factoryPresetPreviewSrcSet", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkMGK6SFTV_cjs.factoryPresetPreviewSrcSet; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "factoryPresetPreviewUrl", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkMGK6SFTV_cjs.factoryPresetPreviewUrl; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "getFactoryPresets", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkMGK6SFTV_cjs.getFactoryPresets; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "getFactorySnippets", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkMGK6SFTV_cjs.getFactorySnippets; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "getStylePreset", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkMGK6SFTV_cjs.getStylePreset; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "groupFactoryPresets", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkMGK6SFTV_cjs.groupFactoryPresets; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "hookPlateCaptionSegments", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkMGK6SFTV_cjs.hookPlateCaptionSegments; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "presetMinReferences", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkMGK6SFTV_cjs.presetMinReferences; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "resolveBrandInput", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkMGK6SFTV_cjs.resolveBrandInput; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "readDirectionFields", {
|
|
168
168
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BODY_CAPTIONS_PRESET_ID, BRAND_PRESETS, BRAND_PRESET_IDS, BRAND_PRESET_META, CAPTION_LEVERS_BY_LANGUAGE, CAPTION_SEGMENT_LEVER_KEYS, FACTORY_PRESETS, FACTORY_PRESET_PREVIEW_FILES, FACTORY_PRESET_PREVIEW_LARGE_FILES, FACTORY_SNIPPETS, HOOK_PLATE_PRESET_ID, MAX_PRESET_REFERENCES, OBJECT_ANGLE_PRESETS, OBJECT_ANGLE_PROMPTS, OBJECT_ASSET_PRESETS, OBJECT_ASSET_PROMPTS, OBJECT_MATERIAL_PRESETS, OBJECT_MATERIAL_PROMPTS, OBJECT_VARIATION_PRESETS, OBJECT_VARIATION_PROMPTS, PRESET_PREVIEW_LARGE_WIDTH, PRESET_PREVIEW_PATH, PRESET_PREVIEW_WIDTH, SNIPPET_MEDIA_VALUES, STYLE_PRESETS, factoryPresetPreviewSrcSet, factoryPresetPreviewUrl, getFactoryPresets, getFactorySnippets, getStylePreset, groupFactoryPresets, hookPlateCaptionSegments, presetMinReferences, resolveBrandInput } from './chunk-
|
|
1
|
+
export { BODY_CAPTIONS_PRESET_ID, BRAND_PRESETS, BRAND_PRESET_IDS, BRAND_PRESET_META, CAPTION_LEVERS_BY_LANGUAGE, CAPTION_SEGMENT_LEVER_KEYS, FACTORY_PRESETS, FACTORY_PRESET_PREVIEW_FILES, FACTORY_PRESET_PREVIEW_LARGE_FILES, FACTORY_SNIPPETS, HOOK_PLATE_PRESET_ID, MAX_PRESET_REFERENCES, OBJECT_ANGLE_PRESETS, OBJECT_ANGLE_PROMPTS, OBJECT_ASSET_PRESETS, OBJECT_ASSET_PROMPTS, OBJECT_MATERIAL_PRESETS, OBJECT_MATERIAL_PROMPTS, OBJECT_VARIATION_PRESETS, OBJECT_VARIATION_PROMPTS, PRESET_PREVIEW_LARGE_WIDTH, PRESET_PREVIEW_PATH, PRESET_PREVIEW_WIDTH, SNIPPET_MEDIA_VALUES, STYLE_PRESETS, factoryPresetPreviewSrcSet, factoryPresetPreviewUrl, getFactoryPresets, getFactorySnippets, getStylePreset, groupFactoryPresets, hookPlateCaptionSegments, presetMinReferences, resolveBrandInput } from './chunk-RRHU6MD5.js';
|
|
2
2
|
export { readDirectionFields, readStructuredFields, readSubjectFields } from './chunk-NN4FL7SB.js';
|
|
3
3
|
export { TEXT_REQUIRED_NODE_TYPES, WIRED_OUTPUT_NODE_TYPES, computeAiWriterInput, computeNodeSendText, stripAudioTags } from './chunk-YS6HOWMW.js';
|
|
4
4
|
export { NODE_PROMPT_CANDIDATE_FIELDS, NODE_PROMPT_FIELDS, PROMPT_AFFIX_CORE_FIELD_OVERRIDES, PROMPT_AFFIX_NODE_TYPES, applyPromptAffixes, composeNegative, computeLlmChatFields, computeNodePrompt, computeScriptTopic, getPromptFields, getSnippetMedia, joinPromptParts, nodeHasInlinePrompt, nodeHasPromptField, nodeSupportsPromptAffixes, promptAffixCoreField, promptFieldCarriesAffixes, promptPartSeparator, resolvePrompt } from './chunk-N6VMPG5S.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodaro/prompts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "Nodaro's prompt-engineering layer — person/picker catalogs with prompt hints, identity-lock clauses, entity prompt builders, brand presets, and prompt/reference assembly shared by the Nodaro platform and SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"test": "vitest run"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@nodaro/shared": "^3.
|
|
73
|
+
"@nodaro/shared": "^3.48.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"tsup": "^8.5.0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest"
|
|
2
2
|
import { FACTORY_PRESETS, getFactoryPresets, groupFactoryPresets } from "../factory-presets.js"
|
|
3
|
-
import { extractPresetData, PRESET_APPLY_CLEAR_KEYS } from "@nodaro/shared/nodes"
|
|
3
|
+
import { extractPresetData, normalizeNodeModelParams, PRESET_APPLY_CLEAR_KEYS } from "@nodaro/shared/nodes"
|
|
4
|
+
import { normalizeModelInput } from "@nodaro/shared/model-catalog"
|
|
4
5
|
import { LLM_MODEL_IDS } from "@nodaro/shared/llm-models"
|
|
5
6
|
import {
|
|
6
7
|
COMPOSER_PLAN_MAP,
|
|
@@ -211,6 +212,29 @@ describe("generate-image factory preset data validity", () => {
|
|
|
211
212
|
}
|
|
212
213
|
})
|
|
213
214
|
|
|
215
|
+
// Remove People keeps the photo's shape AND renders 2K. That pair is only
|
|
216
|
+
// possible on GPT Image 2.5 Flare: GPT Image 2 drops "auto" to 1K. Pinned on
|
|
217
|
+
// the write boundary and on both models a run can send it to (the i2i
|
|
218
|
+
// sibling once the photo is connected).
|
|
219
|
+
it("Remove People keeps auto + 2K through normalization", () => {
|
|
220
|
+
const p = presets.find((x) => x.id === "generate-image/remove-people")
|
|
221
|
+
expect(p?.group).toBe("Face Privacy")
|
|
222
|
+
expect(p?.minReferences).toBeUndefined()
|
|
223
|
+
expect(p?.data).toMatchObject({ provider: "gpt-image-2-5-flare", aspectRatio: "auto", resolution: "2K" })
|
|
224
|
+
expect(p?.data.promptPrefix).toBe("remove all people from {image:1}\nkeep background exactly the same")
|
|
225
|
+
|
|
226
|
+
const written = normalizeNodeModelParams([{ id: "n", type: "generate-image", data: { ...p!.data } }])
|
|
227
|
+
expect(written.adjustments).toEqual([])
|
|
228
|
+
expect(written.nodes[0]!.data).toMatchObject({ aspectRatio: "auto", resolution: "2K" })
|
|
229
|
+
|
|
230
|
+
for (const modelId of ["gpt-image-2-5-flare", "gpt-image-2-5-flare-i2i"]) {
|
|
231
|
+
const out = normalizeModelInput(modelId, { aspectRatio: "auto", resolution: "2K" })
|
|
232
|
+
expect(out.adjustments, modelId).toEqual([])
|
|
233
|
+
expect(out.aspectRatio, modelId).toBe("auto")
|
|
234
|
+
expect(out.resolution, modelId).toBe("2K")
|
|
235
|
+
}
|
|
236
|
+
})
|
|
237
|
+
|
|
214
238
|
it("includes the Reference Sheet group with Character + Location boards", () => {
|
|
215
239
|
const char = presets.find((p) => p.id === "generate-image/character-board")
|
|
216
240
|
const loc = presets.find((p) => p.id === "generate-image/location-board")
|
|
@@ -316,7 +340,7 @@ describe("generate-image factory preset data validity", () => {
|
|
|
316
340
|
"generate-image/mirror-selfie", "generate-image/creator-at-home", "generate-image/video-call-frame",
|
|
317
341
|
"generate-image/macro-skin-study", "generate-image/product-in-hand", "generate-image/skin-detail-sheet",
|
|
318
342
|
"generate-image/add-skin-realism", "generate-image/natural-photo-finish", "generate-image/phone-camera-look",
|
|
319
|
-
"generate-image/undo-beauty-filter",
|
|
343
|
+
"generate-image/undo-beauty-filter", "generate-image/remove-people",
|
|
320
344
|
])
|
|
321
345
|
|
|
322
346
|
it("every generate-image preset has a non-empty negativePrompt (except the exempt ones, which carry none)", () => {
|
|
@@ -258,13 +258,14 @@ describe("unwired {image:N} — the Face Privacy presets' prefix", () => {
|
|
|
258
258
|
"generate-image/faceless-3d-head",
|
|
259
259
|
"generate-image/remove-faces",
|
|
260
260
|
"generate-image/transparent-faces",
|
|
261
|
+
"generate-image/remove-people",
|
|
261
262
|
])
|
|
262
263
|
for (const { data } of presets) {
|
|
263
264
|
const prompt = prefixed(data)
|
|
264
265
|
expect(prompt).toContain("{image:1}")
|
|
265
266
|
const provider = data.provider as string
|
|
266
|
-
const negativePrompt = data.negativePrompt as string
|
|
267
|
-
const avoid = `\nAvoid: ${negativePrompt}`
|
|
267
|
+
const negativePrompt = data.negativePrompt as string | undefined
|
|
268
|
+
const avoid = negativePrompt ? `\nAvoid: ${negativePrompt}` : ""
|
|
268
269
|
|
|
269
270
|
const unwired = buildImagePrompt({ prompt, provider, negativePrompt, connectedReferences: [] })
|
|
270
271
|
expect(unwired.prompt).toBe(`${resolveReferenceTokens(prompt, ZERO)}${avoid}`)
|
|
@@ -293,10 +293,10 @@ export const GENERATE_IMAGE_PRESETS: readonly FactoryPreset[] = [
|
|
|
293
293
|
},
|
|
294
294
|
},
|
|
295
295
|
// ── Face Privacy (connect the photo → {image:1}) ─────────────────────────
|
|
296
|
-
//
|
|
297
|
-
//
|
|
298
|
-
//
|
|
299
|
-
//
|
|
296
|
+
// aspectRatio "auto" so the output keeps the input photo's shape. NOTE:
|
|
297
|
+
// KIE's gpt-image-2 spec forces resolution 1K when aspect is "auto" (the
|
|
298
|
+
// config panel's fail-safe snaps any other value back), so the gpt-image-2
|
|
299
|
+
// presets pin 1K explicitly rather than shipping a self-contradicting 2K.
|
|
300
300
|
{
|
|
301
301
|
id: "generate-image/faceless-3d-head",
|
|
302
302
|
name: "Faceless · 3D Blank Head",
|
|
@@ -340,6 +340,20 @@ export const GENERATE_IMAGE_PRESETS: readonly FactoryPreset[] = [
|
|
|
340
340
|
"opaque faces, visible facial features, eyes, nose, mouth, changing the background, altering clothing, hair or body, restyling the scene, relighting, changing pose or framing, distorted anatomy, watermark, blurry",
|
|
341
341
|
},
|
|
342
342
|
},
|
|
343
|
+
// GPT Image 2.5 Flare has no auto x resolution restriction, so this one keeps
|
|
344
|
+
// the photo's shape AND renders 2K.
|
|
345
|
+
{
|
|
346
|
+
id: "generate-image/remove-people",
|
|
347
|
+
name: "Remove People",
|
|
348
|
+
description: "Remove every person from the photo; the background stays exactly the same.",
|
|
349
|
+
group: "Face Privacy",
|
|
350
|
+
data: {
|
|
351
|
+
provider: "gpt-image-2-5-flare",
|
|
352
|
+
aspectRatio: "auto",
|
|
353
|
+
resolution: "2K",
|
|
354
|
+
promptPrefix: "remove all people from {image:1}\nkeep background exactly the same",
|
|
355
|
+
},
|
|
356
|
+
},
|
|
343
357
|
// ── Photography & Cinematic ──────────────────────────────────────────────
|
|
344
358
|
{
|
|
345
359
|
id: "generate-image/cinematic-portrait",
|