@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,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkZFIXQRBZ_cjs = require('../chunk-ZFIXQRBZ.cjs');
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, "NODE_PROMPT_CANDIDATE_FIELDS", {
12
+ Object.defineProperty(exports, "TEXT_REQUIRED_NODE_TYPES", {
12
13
  enumerable: true,
13
- get: function () { return chunkZFIXQRBZ_cjs.NODE_PROMPT_CANDIDATE_FIELDS; }
14
+ get: function () { return chunk2EW5B7ZV_cjs.TEXT_REQUIRED_NODE_TYPES; }
14
15
  });
15
- Object.defineProperty(exports, "NODE_PROMPT_FIELDS", {
16
+ Object.defineProperty(exports, "WIRED_OUTPUT_NODE_TYPES", {
16
17
  enumerable: true,
17
- get: function () { return chunkZFIXQRBZ_cjs.NODE_PROMPT_FIELDS; }
18
+ get: function () { return chunk2EW5B7ZV_cjs.WIRED_OUTPUT_NODE_TYPES; }
18
19
  });
19
- Object.defineProperty(exports, "PROMPT_AFFIX_CORE_FIELD_OVERRIDES", {
20
+ Object.defineProperty(exports, "computeAiWriterInput", {
20
21
  enumerable: true,
21
- get: function () { return chunkZFIXQRBZ_cjs.PROMPT_AFFIX_CORE_FIELD_OVERRIDES; }
22
+ get: function () { return chunk2EW5B7ZV_cjs.computeAiWriterInput; }
22
23
  });
23
- Object.defineProperty(exports, "PROMPT_AFFIX_NODE_TYPES", {
24
+ Object.defineProperty(exports, "computeNodeSendText", {
24
25
  enumerable: true,
25
- get: function () { return chunkZFIXQRBZ_cjs.PROMPT_AFFIX_NODE_TYPES; }
26
+ get: function () { return chunk2EW5B7ZV_cjs.computeNodeSendText; }
26
27
  });
27
- Object.defineProperty(exports, "TEXT_REQUIRED_NODE_TYPES", {
28
+ Object.defineProperty(exports, "stripAudioTags", {
28
29
  enumerable: true,
29
- get: function () { return chunkZFIXQRBZ_cjs.TEXT_REQUIRED_NODE_TYPES; }
30
+ get: function () { return chunk2EW5B7ZV_cjs.stripAudioTags; }
30
31
  });
31
- Object.defineProperty(exports, "WIRED_OUTPUT_NODE_TYPES", {
32
+ Object.defineProperty(exports, "NODE_PROMPT_CANDIDATE_FIELDS", {
32
33
  enumerable: true,
33
- get: function () { return chunkZFIXQRBZ_cjs.WIRED_OUTPUT_NODE_TYPES; }
34
+ get: function () { return chunkLXPKTI2K_cjs.NODE_PROMPT_CANDIDATE_FIELDS; }
34
35
  });
35
- Object.defineProperty(exports, "applyPromptAffixes", {
36
+ Object.defineProperty(exports, "NODE_PROMPT_FIELDS", {
36
37
  enumerable: true,
37
- get: function () { return chunkZFIXQRBZ_cjs.applyPromptAffixes; }
38
+ get: function () { return chunkLXPKTI2K_cjs.NODE_PROMPT_FIELDS; }
38
39
  });
39
- Object.defineProperty(exports, "composeNegative", {
40
+ Object.defineProperty(exports, "PROMPT_AFFIX_CORE_FIELD_OVERRIDES", {
40
41
  enumerable: true,
41
- get: function () { return chunkZFIXQRBZ_cjs.composeNegative; }
42
+ get: function () { return chunkLXPKTI2K_cjs.PROMPT_AFFIX_CORE_FIELD_OVERRIDES; }
42
43
  });
43
- Object.defineProperty(exports, "computeAiWriterInput", {
44
+ Object.defineProperty(exports, "PROMPT_AFFIX_NODE_TYPES", {
44
45
  enumerable: true,
45
- get: function () { return chunkZFIXQRBZ_cjs.computeAiWriterInput; }
46
+ get: function () { return chunkLXPKTI2K_cjs.PROMPT_AFFIX_NODE_TYPES; }
46
47
  });
47
- Object.defineProperty(exports, "computeLlmChatFields", {
48
+ Object.defineProperty(exports, "applyPromptAffixes", {
48
49
  enumerable: true,
49
- get: function () { return chunkZFIXQRBZ_cjs.computeLlmChatFields; }
50
+ get: function () { return chunkLXPKTI2K_cjs.applyPromptAffixes; }
50
51
  });
51
- Object.defineProperty(exports, "computeNodePrompt", {
52
+ Object.defineProperty(exports, "composeNegative", {
52
53
  enumerable: true,
53
- get: function () { return chunkZFIXQRBZ_cjs.computeNodePrompt; }
54
+ get: function () { return chunkLXPKTI2K_cjs.composeNegative; }
54
55
  });
55
- Object.defineProperty(exports, "computeNodeSendText", {
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 chunkZFIXQRBZ_cjs.computeNodeSendText; }
62
+ get: function () { return chunkLXPKTI2K_cjs.computeNodePrompt; }
58
63
  });
59
64
  Object.defineProperty(exports, "computeScriptTopic", {
60
65
  enumerable: true,
61
- get: function () { return chunkZFIXQRBZ_cjs.computeScriptTopic; }
66
+ get: function () { return chunkLXPKTI2K_cjs.computeScriptTopic; }
62
67
  });
63
68
  Object.defineProperty(exports, "getPromptFields", {
64
69
  enumerable: true,
65
- get: function () { return chunkZFIXQRBZ_cjs.getPromptFields; }
70
+ get: function () { return chunkLXPKTI2K_cjs.getPromptFields; }
66
71
  });
67
72
  Object.defineProperty(exports, "getSnippetMedia", {
68
73
  enumerable: true,
69
- get: function () { return chunkZFIXQRBZ_cjs.getSnippetMedia; }
74
+ get: function () { return chunkLXPKTI2K_cjs.getSnippetMedia; }
70
75
  });
71
76
  Object.defineProperty(exports, "joinPromptParts", {
72
77
  enumerable: true,
73
- get: function () { return chunkZFIXQRBZ_cjs.joinPromptParts; }
78
+ get: function () { return chunkLXPKTI2K_cjs.joinPromptParts; }
74
79
  });
75
80
  Object.defineProperty(exports, "nodeHasInlinePrompt", {
76
81
  enumerable: true,
77
- get: function () { return chunkZFIXQRBZ_cjs.nodeHasInlinePrompt; }
82
+ get: function () { return chunkLXPKTI2K_cjs.nodeHasInlinePrompt; }
78
83
  });
79
84
  Object.defineProperty(exports, "nodeHasPromptField", {
80
85
  enumerable: true,
81
- get: function () { return chunkZFIXQRBZ_cjs.nodeHasPromptField; }
86
+ get: function () { return chunkLXPKTI2K_cjs.nodeHasPromptField; }
82
87
  });
83
88
  Object.defineProperty(exports, "nodeSupportsPromptAffixes", {
84
89
  enumerable: true,
85
- get: function () { return chunkZFIXQRBZ_cjs.nodeSupportsPromptAffixes; }
90
+ get: function () { return chunkLXPKTI2K_cjs.nodeSupportsPromptAffixes; }
86
91
  });
87
92
  Object.defineProperty(exports, "promptAffixCoreField", {
88
93
  enumerable: true,
89
- get: function () { return chunkZFIXQRBZ_cjs.promptAffixCoreField; }
94
+ get: function () { return chunkLXPKTI2K_cjs.promptAffixCoreField; }
90
95
  });
91
96
  Object.defineProperty(exports, "promptFieldCarriesAffixes", {
92
97
  enumerable: true,
93
- get: function () { return chunkZFIXQRBZ_cjs.promptFieldCarriesAffixes; }
98
+ get: function () { return chunkLXPKTI2K_cjs.promptFieldCarriesAffixes; }
94
99
  });
95
100
  Object.defineProperty(exports, "promptPartSeparator", {
96
101
  enumerable: true,
97
- get: function () { return chunkZFIXQRBZ_cjs.promptPartSeparator; }
102
+ get: function () { return chunkLXPKTI2K_cjs.promptPartSeparator; }
98
103
  });
99
104
  Object.defineProperty(exports, "resolvePrompt", {
100
105
  enumerable: true,
101
- get: function () { return chunkZFIXQRBZ_cjs.resolvePrompt; }
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 { NODE_PROMPT_CANDIDATE_FIELDS, NODE_PROMPT_FIELDS, PROMPT_AFFIX_CORE_FIELD_OVERRIDES, PROMPT_AFFIX_NODE_TYPES, TEXT_REQUIRED_NODE_TYPES, WIRED_OUTPUT_NODE_TYPES, applyPromptAffixes, composeNegative, computeAiWriterInput, computeLlmChatFields, computeNodePrompt, computeNodeSendText, computeScriptTopic, getPromptFields, getSnippetMedia, joinPromptParts, nodeHasInlinePrompt, nodeHasPromptField, nodeSupportsPromptAffixes, promptAffixCoreField, promptFieldCarriesAffixes, promptPartSeparator, resolvePrompt, stripAudioTags } from '../chunk-4FDNVNJE.js';
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';