@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.
- package/dist/chunk-2EW5B7ZV.cjs +86 -0
- package/dist/chunk-2EW5B7ZV.cjs.map +1 -0
- package/dist/chunk-2P26SZX5.cjs +414 -0
- package/dist/chunk-2P26SZX5.cjs.map +1 -0
- package/dist/{chunk-7XKHDXCL.cjs → chunk-3U7X6JZN.cjs} +13 -12
- package/dist/chunk-3U7X6JZN.cjs.map +1 -0
- package/dist/chunk-4GKTOVFM.cjs +8 -0
- package/dist/chunk-4GKTOVFM.cjs.map +1 -0
- package/dist/{chunk-HRBBNODV.js → chunk-6GVFJLDL.js} +4 -3
- package/dist/chunk-6GVFJLDL.js.map +1 -0
- package/dist/{chunk-LVSH7K7R.cjs → chunk-C3NHNECH.cjs} +165 -88
- package/dist/chunk-C3NHNECH.cjs.map +1 -0
- package/dist/{chunk-CEPVQQVO.js → chunk-C46256GZ.js} +43 -5
- package/dist/chunk-C46256GZ.js.map +1 -0
- package/dist/{chunk-JKCR6WRZ.cjs → chunk-DQFQJECU.cjs} +43 -5
- package/dist/chunk-DQFQJECU.cjs.map +1 -0
- package/dist/{chunk-QDEWBBUR.js → chunk-DUXX6CBX.js} +12 -143
- package/dist/chunk-DUXX6CBX.js.map +1 -0
- package/dist/chunk-EAYEZXWT.js +388 -0
- package/dist/chunk-EAYEZXWT.js.map +1 -0
- package/dist/chunk-GILUVQQJ.js +6 -0
- package/dist/chunk-GILUVQQJ.js.map +1 -0
- package/dist/{chunk-KIYNOOPJ.js → chunk-GTDKDD7Y.js} +12 -6
- package/dist/chunk-GTDKDD7Y.js.map +1 -0
- package/dist/{chunk-QBEZMR2F.js → chunk-HQTHDTHN.js} +137 -62
- package/dist/chunk-HQTHDTHN.js.map +1 -0
- package/dist/{chunk-TLVX5PXD.cjs → chunk-IUCNJAHW.cjs} +13 -7
- package/dist/chunk-IUCNJAHW.cjs.map +1 -0
- package/dist/{chunk-ZFIXQRBZ.cjs → chunk-LXPKTI2K.cjs} +12 -83
- package/dist/chunk-LXPKTI2K.cjs.map +1 -0
- package/dist/{chunk-CVPB2N3Z.cjs → chunk-LZ53F5BN.cjs} +103 -5
- package/dist/chunk-LZ53F5BN.cjs.map +1 -0
- package/dist/{chunk-4FDNVNJE.js → chunk-N6VMPG5S.js} +12 -79
- package/dist/chunk-N6VMPG5S.js.map +1 -0
- package/dist/{chunk-LK2CZK5U.cjs → chunk-PWWM7Q3T.cjs} +7 -7
- package/dist/{chunk-LK2CZK5U.cjs.map → chunk-PWWM7Q3T.cjs.map} +1 -1
- package/dist/{chunk-N7TOWXDJ.js → chunk-QDUTMOF4.js} +3 -3
- package/dist/{chunk-N7TOWXDJ.js.map → chunk-QDUTMOF4.js.map} +1 -1
- package/dist/{chunk-NO6XHX4R.js → chunk-RB2F5JQF.js} +100 -7
- package/dist/chunk-RB2F5JQF.js.map +1 -0
- package/dist/{chunk-MENBHEAY.cjs → chunk-WRM52ZBN.cjs} +19 -161
- package/dist/chunk-WRM52ZBN.cjs.map +1 -0
- package/dist/chunk-YS6HOWMW.js +80 -0
- package/dist/chunk-YS6HOWMW.js.map +1 -0
- package/dist/entries/assembly.cjs +34 -25
- package/dist/entries/assembly.d.cts +121 -37
- package/dist/entries/assembly.d.ts +121 -37
- package/dist/entries/assembly.js +5 -4
- package/dist/entries/doctrine.cjs +46 -46
- package/dist/entries/doctrine.d.cts +3 -3
- package/dist/entries/doctrine.d.ts +3 -3
- package/dist/entries/doctrine.js +1 -1
- package/dist/entries/picker-catalogs.cjs +42 -42
- package/dist/entries/picker-catalogs.js +3 -3
- package/dist/entries/presets.cjs +49 -26
- package/dist/entries/presets.d.cts +53 -1
- package/dist/entries/presets.d.ts +53 -1
- package/dist/entries/presets.js +4 -1
- package/dist/entries/prompt-builder.cjs +135 -98
- package/dist/entries/prompt-builder.d.cts +22 -11
- package/dist/entries/prompt-builder.d.ts +22 -11
- package/dist/entries/prompt-builder.js +4 -3
- package/dist/entries/prompt-fields.cjs +41 -40
- package/dist/entries/prompt-fields.d.cts +2 -1
- package/dist/entries/prompt-fields.d.ts +2 -1
- package/dist/entries/prompt-fields.js +2 -1
- package/dist/index.cjs +339 -273
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +11 -9
- package/dist/{subject-registry-BUswuEVD.d.cts → subject-registry-CQi_CZfJ.d.cts} +78 -9
- package/dist/{subject-registry-D7V8PEG-.d.ts → subject-registry-DFiGx49v.d.ts} +78 -9
- package/package.json +2 -2
- package/src/__tests__/assemble-image-input-style-references.test.ts +173 -0
- package/src/__tests__/catalog-id-guard.test.ts +30 -0
- package/src/__tests__/factory-preset-previews.test.ts +123 -0
- package/src/__tests__/factory-preset-references.test.ts +222 -0
- package/src/__tests__/factory-presets-prototype-keys.test.ts +43 -0
- package/src/__tests__/frame-reference-slots.test.ts +43 -0
- package/src/__tests__/gemini-omni-inputs.test.ts +12 -10
- package/src/__tests__/provider-prompt-doctrine.test.ts +14 -0
- package/src/__tests__/user-direction-refs.test.ts +180 -0
- package/src/__tests__/veo-i2v-inputs.test.ts +16 -11
- package/src/assemble-image-input.ts +114 -13
- package/src/catalog-id-guard.ts +18 -2
- package/src/color-names.ts +192 -0
- package/src/direction-registry.ts +66 -5
- package/src/entries/assembly.ts +1 -0
- package/src/entries/prompt-builder.ts +2 -0
- package/src/factory-presets/generate-image.ts +29 -0
- package/src/factory-presets/index.ts +6 -1
- package/src/factory-presets/preview-files.generated.ts +4 -0
- package/src/factory-presets/previews.ts +40 -0
- package/src/factory-presets/references.ts +81 -0
- package/src/factory-presets/shared-image.ts +4 -0
- package/src/factory-presets/types.ts +8 -0
- package/src/frame-reference-slots.ts +92 -0
- package/src/gemini-omni-inputs.ts +23 -22
- package/src/image-reference-doctrine.ts +3 -3
- package/src/image-token-pattern.ts +13 -0
- package/src/node-prompt-fields.ts +5 -3
- package/src/own-entry.ts +11 -0
- package/src/prompt-builder.ts +4 -5
- package/src/prompt-style-section.ts +3 -3
- package/src/prompt-wizard-categories.ts +2 -0
- package/src/provider-prompt-doctrine.ts +45 -3
- package/src/ref-binding.ts +28 -3
- package/src/resolve-prompt.ts +2 -1
- package/src/seedance-2-inputs.ts +15 -40
- package/src/user-direction-refs.ts +110 -0
- package/src/veo-i2v-inputs.ts +24 -17
- package/src/video-reference-resolver.ts +1 -1
- package/dist/chunk-4FDNVNJE.js.map +0 -1
- package/dist/chunk-7XKHDXCL.cjs.map +0 -1
- package/dist/chunk-CEPVQQVO.js.map +0 -1
- package/dist/chunk-CVPB2N3Z.cjs.map +0 -1
- package/dist/chunk-HRBBNODV.js.map +0 -1
- package/dist/chunk-JKCR6WRZ.cjs.map +0 -1
- package/dist/chunk-KIYNOOPJ.js.map +0 -1
- package/dist/chunk-LVSH7K7R.cjs.map +0 -1
- package/dist/chunk-MENBHEAY.cjs.map +0 -1
- package/dist/chunk-NO6XHX4R.js.map +0 -1
- package/dist/chunk-QBEZMR2F.js.map +0 -1
- package/dist/chunk-QDEWBBUR.js.map +0 -1
- package/dist/chunk-TLVX5PXD.cjs.map +0 -1
- package/dist/chunk-UJKFHPZ7.js +0 -37
- package/dist/chunk-UJKFHPZ7.js.map +0 -1
- package/dist/chunk-W5SCZIOB.cjs +0 -43
- package/dist/chunk-W5SCZIOB.cjs.map +0 -1
- package/dist/chunk-ZFIXQRBZ.cjs.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2EW5B7ZV_cjs = require('../chunk-2EW5B7ZV.cjs');
|
|
4
|
+
var chunkLXPKTI2K_cjs = require('../chunk-LXPKTI2K.cjs');
|
|
4
5
|
var chunkXUZXBY75_cjs = require('../chunk-XUZXBY75.cjs');
|
|
5
6
|
var chunkUXDKZVNN_cjs = require('../chunk-UXDKZVNN.cjs');
|
|
6
7
|
var chunk3UEA3UHQ_cjs = require('../chunk-3UEA3UHQ.cjs');
|
|
@@ -8,101 +9,101 @@ require('../chunk-Q7SFCCGT.cjs');
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "TEXT_REQUIRED_NODE_TYPES", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2EW5B7ZV_cjs.TEXT_REQUIRED_NODE_TYPES; }
|
|
14
15
|
});
|
|
15
|
-
Object.defineProperty(exports, "
|
|
16
|
+
Object.defineProperty(exports, "WIRED_OUTPUT_NODE_TYPES", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2EW5B7ZV_cjs.WIRED_OUTPUT_NODE_TYPES; }
|
|
18
19
|
});
|
|
19
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "computeAiWriterInput", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2EW5B7ZV_cjs.computeAiWriterInput; }
|
|
22
23
|
});
|
|
23
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "computeNodeSendText", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk2EW5B7ZV_cjs.computeNodeSendText; }
|
|
26
27
|
});
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
+
Object.defineProperty(exports, "stripAudioTags", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk2EW5B7ZV_cjs.stripAudioTags; }
|
|
30
31
|
});
|
|
31
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "NODE_PROMPT_CANDIDATE_FIELDS", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkLXPKTI2K_cjs.NODE_PROMPT_CANDIDATE_FIELDS; }
|
|
34
35
|
});
|
|
35
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "NODE_PROMPT_FIELDS", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkLXPKTI2K_cjs.NODE_PROMPT_FIELDS; }
|
|
38
39
|
});
|
|
39
|
-
Object.defineProperty(exports, "
|
|
40
|
+
Object.defineProperty(exports, "PROMPT_AFFIX_CORE_FIELD_OVERRIDES", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkLXPKTI2K_cjs.PROMPT_AFFIX_CORE_FIELD_OVERRIDES; }
|
|
42
43
|
});
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "PROMPT_AFFIX_NODE_TYPES", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkLXPKTI2K_cjs.PROMPT_AFFIX_NODE_TYPES; }
|
|
46
47
|
});
|
|
47
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "applyPromptAffixes", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkLXPKTI2K_cjs.applyPromptAffixes; }
|
|
50
51
|
});
|
|
51
|
-
Object.defineProperty(exports, "
|
|
52
|
+
Object.defineProperty(exports, "composeNegative", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkLXPKTI2K_cjs.composeNegative; }
|
|
54
55
|
});
|
|
55
|
-
Object.defineProperty(exports, "
|
|
56
|
+
Object.defineProperty(exports, "computeLlmChatFields", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkLXPKTI2K_cjs.computeLlmChatFields; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "computeNodePrompt", {
|
|
56
61
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkLXPKTI2K_cjs.computeNodePrompt; }
|
|
58
63
|
});
|
|
59
64
|
Object.defineProperty(exports, "computeScriptTopic", {
|
|
60
65
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkLXPKTI2K_cjs.computeScriptTopic; }
|
|
62
67
|
});
|
|
63
68
|
Object.defineProperty(exports, "getPromptFields", {
|
|
64
69
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkLXPKTI2K_cjs.getPromptFields; }
|
|
66
71
|
});
|
|
67
72
|
Object.defineProperty(exports, "getSnippetMedia", {
|
|
68
73
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkLXPKTI2K_cjs.getSnippetMedia; }
|
|
70
75
|
});
|
|
71
76
|
Object.defineProperty(exports, "joinPromptParts", {
|
|
72
77
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkLXPKTI2K_cjs.joinPromptParts; }
|
|
74
79
|
});
|
|
75
80
|
Object.defineProperty(exports, "nodeHasInlinePrompt", {
|
|
76
81
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkLXPKTI2K_cjs.nodeHasInlinePrompt; }
|
|
78
83
|
});
|
|
79
84
|
Object.defineProperty(exports, "nodeHasPromptField", {
|
|
80
85
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkLXPKTI2K_cjs.nodeHasPromptField; }
|
|
82
87
|
});
|
|
83
88
|
Object.defineProperty(exports, "nodeSupportsPromptAffixes", {
|
|
84
89
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkLXPKTI2K_cjs.nodeSupportsPromptAffixes; }
|
|
86
91
|
});
|
|
87
92
|
Object.defineProperty(exports, "promptAffixCoreField", {
|
|
88
93
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkLXPKTI2K_cjs.promptAffixCoreField; }
|
|
90
95
|
});
|
|
91
96
|
Object.defineProperty(exports, "promptFieldCarriesAffixes", {
|
|
92
97
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkLXPKTI2K_cjs.promptFieldCarriesAffixes; }
|
|
94
99
|
});
|
|
95
100
|
Object.defineProperty(exports, "promptPartSeparator", {
|
|
96
101
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkLXPKTI2K_cjs.promptPartSeparator; }
|
|
98
103
|
});
|
|
99
104
|
Object.defineProperty(exports, "resolvePrompt", {
|
|
100
105
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, "stripAudioTags", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () { return chunkZFIXQRBZ_cjs.stripAudioTags; }
|
|
106
|
+
get: function () { return chunkLXPKTI2K_cjs.resolvePrompt; }
|
|
106
107
|
});
|
|
107
108
|
Object.defineProperty(exports, "keepableDirectionHints", {
|
|
108
109
|
enumerable: true,
|
|
@@ -258,7 +258,8 @@ interface PromptFieldSpec {
|
|
|
258
258
|
readonly affixes?: false;
|
|
259
259
|
}
|
|
260
260
|
declare const NODE_PROMPT_FIELDS: Readonly<Record<string, PromptFieldSpec>>;
|
|
261
|
-
/** The prompt-field spec for a node type, or undefined if it has none
|
|
261
|
+
/** The prompt-field spec for a node type, or undefined if it has none (an
|
|
262
|
+
* Object.prototype member name such as `constructor` has none). */
|
|
262
263
|
declare function getPromptFields(nodeType: string | undefined): PromptFieldSpec | undefined;
|
|
263
264
|
/** True when this node type has a registered, quick-editable prompt field. */
|
|
264
265
|
declare function nodeHasPromptField(nodeType: string | undefined): boolean;
|
|
@@ -258,7 +258,8 @@ interface PromptFieldSpec {
|
|
|
258
258
|
readonly affixes?: false;
|
|
259
259
|
}
|
|
260
260
|
declare const NODE_PROMPT_FIELDS: Readonly<Record<string, PromptFieldSpec>>;
|
|
261
|
-
/** The prompt-field spec for a node type, or undefined if it has none
|
|
261
|
+
/** The prompt-field spec for a node type, or undefined if it has none (an
|
|
262
|
+
* Object.prototype member name such as `constructor` has none). */
|
|
262
263
|
declare function getPromptFields(nodeType: string | undefined): PromptFieldSpec | undefined;
|
|
263
264
|
/** True when this node type has a registered, quick-editable prompt field. */
|
|
264
265
|
declare function nodeHasPromptField(nodeType: string | undefined): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { TEXT_REQUIRED_NODE_TYPES, WIRED_OUTPUT_NODE_TYPES, computeAiWriterInput, computeNodeSendText, stripAudioTags } from '../chunk-YS6HOWMW.js';
|
|
2
|
+
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';
|
|
2
3
|
export { keepableDirectionHints } from '../chunk-JZOPMVGY.js';
|
|
3
4
|
export { PROMPT_HINT_SEPARATOR, joinPromptHints } from '../chunk-35UHMDGS.js';
|
|
4
5
|
export { appendPromptHints, joinHintFragments, joinSentences } from '../chunk-DVP6ILDR.js';
|