@nodaro/prompts 1.52.0 → 1.53.1
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-M6EXNY42.cjs → chunk-EKRO42T3.cjs} +21 -7
- package/dist/chunk-EKRO42T3.cjs.map +1 -0
- package/dist/{chunk-CDTEETF3.js → chunk-RBRCJTDJ.js} +5 -2
- package/dist/chunk-RBRCJTDJ.js.map +1 -0
- package/dist/{chunk-GJV7KTDX.cjs → chunk-TYRIHUID.cjs} +5 -2
- package/dist/chunk-TYRIHUID.cjs.map +1 -0
- package/dist/{chunk-HETYHGGW.js → chunk-XR7RAHZI.js} +21 -7
- package/dist/chunk-XR7RAHZI.js.map +1 -0
- package/dist/entries/assembly.cjs +24 -24
- package/dist/entries/assembly.d.cts +21 -6
- package/dist/entries/assembly.d.ts +21 -6
- package/dist/entries/assembly.js +1 -1
- package/dist/entries/picker-art.cjs +3 -3
- package/dist/entries/picker-art.js +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/__tests__/frame-reference-slots.test.ts +16 -0
- package/src/frame-reference-slots.ts +4 -4
- package/src/picker-art/restyle-previews.ts +3 -0
- package/src/ref-binding.ts +44 -7
- package/src/video-reference-resolver.ts +1 -1
- package/dist/chunk-CDTEETF3.js.map +0 -1
- package/dist/chunk-GJV7KTDX.cjs.map +0 -1
- package/dist/chunk-HETYHGGW.js.map +0 -1
- package/dist/chunk-M6EXNY42.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEKRO42T3_cjs = require('../chunk-EKRO42T3.cjs');
|
|
4
4
|
require('../chunk-PWYASBX2.cjs');
|
|
5
5
|
require('../chunk-4GKTOVFM.cjs');
|
|
6
6
|
require('../chunk-XUZXBY75.cjs');
|
|
@@ -19,95 +19,95 @@ require('../chunk-Q7SFCCGT.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "REF_BINDING", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkEKRO42T3_cjs.REF_BINDING; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "SEEDANCE_VIDEO_EDIT_PREFIX", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEKRO42T3_cjs.SEEDANCE_VIDEO_EDIT_PREFIX; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "appendField", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkEKRO42T3_cjs.appendField; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "appendMusicMeta", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkEKRO42T3_cjs.appendMusicMeta; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "assembleImageInput", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkEKRO42T3_cjs.assembleImageInput; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "assembleSunoInput", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkEKRO42T3_cjs.assembleSunoInput; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "buildSeedanceVideoEditPrompt", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkEKRO42T3_cjs.buildSeedanceVideoEditPrompt; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "buildSurroundFillPrompt", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkEKRO42T3_cjs.buildSurroundFillPrompt; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "composeSoundHintFromConnections", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkEKRO42T3_cjs.composeSoundHintFromConnections; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "composeVideoPromptText", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkEKRO42T3_cjs.composeVideoPromptText; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getEffectiveSunoCustomMode", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkEKRO42T3_cjs.getEffectiveSunoCustomMode; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "identityRefsSentence", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkEKRO42T3_cjs.identityRefsSentence; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "imageBindingFor", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkEKRO42T3_cjs.imageBindingFor; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "placeFramesAfterReferences", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkEKRO42T3_cjs.placeFramesAfterReferences; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "planFrameDelivery", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkEKRO42T3_cjs.planFrameDelivery; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "promptBindsFirstFrame", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkEKRO42T3_cjs.promptBindsFirstFrame; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "resolveGeminiOmniI2vInputs", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkEKRO42T3_cjs.resolveGeminiOmniI2vInputs; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "resolveRefIdTokens", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkEKRO42T3_cjs.resolveRefIdTokens; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "resolveReferenceTokens", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkEKRO42T3_cjs.resolveReferenceTokens; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "resolveSeedance2Inputs", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkEKRO42T3_cjs.resolveSeedance2Inputs; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "resolveVeoI2vInputs", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkEKRO42T3_cjs.resolveVeoI2vInputs; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "resolveVideoReferenceCore", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkEKRO42T3_cjs.resolveVideoReferenceCore; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "truncateForField", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkEKRO42T3_cjs.truncateForField; }
|
|
111
111
|
});
|
|
112
112
|
//# sourceMappingURL=assembly.cjs.map
|
|
113
113
|
//# sourceMappingURL=assembly.cjs.map
|
|
@@ -42,18 +42,33 @@ declare const REF_BINDING: {
|
|
|
42
42
|
readonly ordinal: (n: number) => string;
|
|
43
43
|
readonly frame: (n: number, role: "opening" | "closing") => string;
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
45
|
+
/** How a video provider addresses its images in the prompt, by array order
|
|
46
|
+
* (`VideoReferenceSyntax` in @nodaro/shared). */
|
|
47
|
+
type ImageReferenceSyntax = "@image_N" | "@image(n)" | "[Image N]" | "image N";
|
|
48
|
+
/** The binding sentences — frames and identity references — in one provider syntax. */
|
|
46
49
|
interface ImageBinding {
|
|
47
50
|
ordinal: (n: number) => string;
|
|
51
|
+
/** One frame: the opening or the closing one. */
|
|
48
52
|
frame: (n: number, role: "opening" | "closing") => string;
|
|
53
|
+
/** A start and an end frame together. */
|
|
54
|
+
frames: (first: number, last: number) => string;
|
|
55
|
+
/** Seats `first`..`last` are references, not frames. */
|
|
56
|
+
identities: (first: number, last: number) => string;
|
|
49
57
|
}
|
|
50
58
|
/**
|
|
51
59
|
* The image binding in a provider's OWN reference syntax
|
|
52
60
|
* (`videoProviderReferenceSyntax` in @nodaro/shared). `@image_N` IS
|
|
53
|
-
* {@link REF_BINDING} — the platform swap point, byte for byte;
|
|
54
|
-
* spell the same
|
|
61
|
+
* {@link REF_BINDING} — the platform swap point, byte for byte; `@image(n)` and
|
|
62
|
+
* `[Image N]` spell the same sentences in the form the provider documents.
|
|
63
|
+
*
|
|
64
|
+
* `image N` (Gemini Omni Flash 1.2) is plain words, each sentence stating what
|
|
65
|
+
* an image IS: "image 3 is the opening (first) frame of the video. image 1 and
|
|
66
|
+
* image 2 are references for the subject; they are not frames." It is the form
|
|
67
|
+
* KIE's own example uses. In staging runs neither wording made 1.2 open on the
|
|
68
|
+
* frame: beside references the frame is one more reference, so the sentence
|
|
69
|
+
* guides the clip and never makes the frame exact.
|
|
55
70
|
*/
|
|
56
|
-
declare function imageBindingFor(syntax:
|
|
71
|
+
declare function imageBindingFor(syntax: ImageReferenceSyntax): ImageBinding;
|
|
57
72
|
/**
|
|
58
73
|
* The instruction that makes Seedance EDIT a wired clip rather than use it as a
|
|
59
74
|
* style reference — the Video to Video node's Seedance lane prepends it to the
|
|
@@ -886,7 +901,7 @@ interface FrameReferenceSlotsArgs {
|
|
|
886
901
|
/** The provider's image cap — frames and references together. */
|
|
887
902
|
imageCap: number;
|
|
888
903
|
/** The provider's reference syntax (`videoProviderReferenceSyntax`). */
|
|
889
|
-
syntax?:
|
|
904
|
+
syntax?: ImageReferenceSyntax;
|
|
890
905
|
bindIdentities?: boolean;
|
|
891
906
|
}
|
|
892
907
|
interface FrameReferenceSlotsResult {
|
|
@@ -1103,4 +1118,4 @@ interface FrameDeliveryPlan {
|
|
|
1103
1118
|
*/
|
|
1104
1119
|
declare function planFrameDelivery(args: FrameDeliveryPlanArgs): FrameDeliveryPlan;
|
|
1105
1120
|
|
|
1106
|
-
export { type AssembleImageInput, type AssembleImageResult, type AssembleSunoInput, type AssembleSunoResult, type CharacterMeta, DirectionFields, type FrameDeliveryPlan, type FrameDeliveryPlanArgs, type FrameReferenceSlotsArgs, type FrameReferenceSlotsResult, type GeminiOmniI2vInputsArgs, type GeminiOmniI2vInputsResult, type ImageBinding, REF_BINDING, type RefIdTokenContext, type ReferenceCounts, type ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, type Seedance2InputsArgs, type Seedance2InputsResult, type Seedance2Mode, type SoundComposition, type SoundCompositionFields, type SoundConsumerType, SubjectFields, type VeoI2vInputsArgs, type VeoI2vInputsResult, type VideoExtraRef, type VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField };
|
|
1121
|
+
export { type AssembleImageInput, type AssembleImageResult, type AssembleSunoInput, type AssembleSunoResult, type CharacterMeta, DirectionFields, type FrameDeliveryPlan, type FrameDeliveryPlanArgs, type FrameReferenceSlotsArgs, type FrameReferenceSlotsResult, type GeminiOmniI2vInputsArgs, type GeminiOmniI2vInputsResult, type ImageBinding, type ImageReferenceSyntax, REF_BINDING, type RefIdTokenContext, type ReferenceCounts, type ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, type Seedance2InputsArgs, type Seedance2InputsResult, type Seedance2Mode, type SoundComposition, type SoundCompositionFields, type SoundConsumerType, SubjectFields, type VeoI2vInputsArgs, type VeoI2vInputsResult, type VideoExtraRef, type VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField };
|
|
@@ -42,18 +42,33 @@ declare const REF_BINDING: {
|
|
|
42
42
|
readonly ordinal: (n: number) => string;
|
|
43
43
|
readonly frame: (n: number, role: "opening" | "closing") => string;
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
45
|
+
/** How a video provider addresses its images in the prompt, by array order
|
|
46
|
+
* (`VideoReferenceSyntax` in @nodaro/shared). */
|
|
47
|
+
type ImageReferenceSyntax = "@image_N" | "@image(n)" | "[Image N]" | "image N";
|
|
48
|
+
/** The binding sentences — frames and identity references — in one provider syntax. */
|
|
46
49
|
interface ImageBinding {
|
|
47
50
|
ordinal: (n: number) => string;
|
|
51
|
+
/** One frame: the opening or the closing one. */
|
|
48
52
|
frame: (n: number, role: "opening" | "closing") => string;
|
|
53
|
+
/** A start and an end frame together. */
|
|
54
|
+
frames: (first: number, last: number) => string;
|
|
55
|
+
/** Seats `first`..`last` are references, not frames. */
|
|
56
|
+
identities: (first: number, last: number) => string;
|
|
49
57
|
}
|
|
50
58
|
/**
|
|
51
59
|
* The image binding in a provider's OWN reference syntax
|
|
52
60
|
* (`videoProviderReferenceSyntax` in @nodaro/shared). `@image_N` IS
|
|
53
|
-
* {@link REF_BINDING} — the platform swap point, byte for byte;
|
|
54
|
-
* spell the same
|
|
61
|
+
* {@link REF_BINDING} — the platform swap point, byte for byte; `@image(n)` and
|
|
62
|
+
* `[Image N]` spell the same sentences in the form the provider documents.
|
|
63
|
+
*
|
|
64
|
+
* `image N` (Gemini Omni Flash 1.2) is plain words, each sentence stating what
|
|
65
|
+
* an image IS: "image 3 is the opening (first) frame of the video. image 1 and
|
|
66
|
+
* image 2 are references for the subject; they are not frames." It is the form
|
|
67
|
+
* KIE's own example uses. In staging runs neither wording made 1.2 open on the
|
|
68
|
+
* frame: beside references the frame is one more reference, so the sentence
|
|
69
|
+
* guides the clip and never makes the frame exact.
|
|
55
70
|
*/
|
|
56
|
-
declare function imageBindingFor(syntax:
|
|
71
|
+
declare function imageBindingFor(syntax: ImageReferenceSyntax): ImageBinding;
|
|
57
72
|
/**
|
|
58
73
|
* The instruction that makes Seedance EDIT a wired clip rather than use it as a
|
|
59
74
|
* style reference — the Video to Video node's Seedance lane prepends it to the
|
|
@@ -886,7 +901,7 @@ interface FrameReferenceSlotsArgs {
|
|
|
886
901
|
/** The provider's image cap — frames and references together. */
|
|
887
902
|
imageCap: number;
|
|
888
903
|
/** The provider's reference syntax (`videoProviderReferenceSyntax`). */
|
|
889
|
-
syntax?:
|
|
904
|
+
syntax?: ImageReferenceSyntax;
|
|
890
905
|
bindIdentities?: boolean;
|
|
891
906
|
}
|
|
892
907
|
interface FrameReferenceSlotsResult {
|
|
@@ -1103,4 +1118,4 @@ interface FrameDeliveryPlan {
|
|
|
1103
1118
|
*/
|
|
1104
1119
|
declare function planFrameDelivery(args: FrameDeliveryPlanArgs): FrameDeliveryPlan;
|
|
1105
1120
|
|
|
1106
|
-
export { type AssembleImageInput, type AssembleImageResult, type AssembleSunoInput, type AssembleSunoResult, type CharacterMeta, DirectionFields, type FrameDeliveryPlan, type FrameDeliveryPlanArgs, type FrameReferenceSlotsArgs, type FrameReferenceSlotsResult, type GeminiOmniI2vInputsArgs, type GeminiOmniI2vInputsResult, type ImageBinding, REF_BINDING, type RefIdTokenContext, type ReferenceCounts, type ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, type Seedance2InputsArgs, type Seedance2InputsResult, type Seedance2Mode, type SoundComposition, type SoundCompositionFields, type SoundConsumerType, SubjectFields, type VeoI2vInputsArgs, type VeoI2vInputsResult, type VideoExtraRef, type VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField };
|
|
1121
|
+
export { type AssembleImageInput, type AssembleImageResult, type AssembleSunoInput, type AssembleSunoResult, type CharacterMeta, DirectionFields, type FrameDeliveryPlan, type FrameDeliveryPlanArgs, type FrameReferenceSlotsArgs, type FrameReferenceSlotsResult, type GeminiOmniI2vInputsArgs, type GeminiOmniI2vInputsResult, type ImageBinding, type ImageReferenceSyntax, REF_BINDING, type RefIdTokenContext, type ReferenceCounts, type ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, type Seedance2InputsArgs, type Seedance2InputsResult, type Seedance2Mode, type SoundComposition, type SoundCompositionFields, type SoundConsumerType, SubjectFields, type VeoI2vInputsArgs, type VeoI2vInputsResult, type VideoExtraRef, type VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField };
|
package/dist/entries/assembly.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { REF_BINDING, SEEDANCE_VIDEO_EDIT_PREFIX, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from '../chunk-
|
|
1
|
+
export { REF_BINDING, SEEDANCE_VIDEO_EDIT_PREFIX, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from '../chunk-XR7RAHZI.js';
|
|
2
2
|
import '../chunk-YAIPYPMM.js';
|
|
3
3
|
import '../chunk-GILUVQQJ.js';
|
|
4
4
|
import '../chunk-JZOPMVGY.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTYRIHUID_cjs = require('../chunk-TYRIHUID.cjs');
|
|
4
4
|
var chunkFFPFBNXH_cjs = require('../chunk-FFPFBNXH.cjs');
|
|
5
5
|
require('../chunk-Q7SFCCGT.cjs');
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ require('../chunk-Q7SFCCGT.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "RESTYLE_PREVIEWS", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkTYRIHUID_cjs.RESTYLE_PREVIEWS; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "restylePreviewStillUrl", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkTYRIHUID_cjs.restylePreviewStillUrl; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CHARACTER_ART_FAMILIES", {
|
|
18
18
|
enumerable: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RESTYLE_PREVIEWS, restylePreviewStillUrl } from '../chunk-
|
|
1
|
+
export { RESTYLE_PREVIEWS, restylePreviewStillUrl } from '../chunk-RBRCJTDJ.js';
|
|
2
2
|
export { CHARACTER_ART_FAMILIES, CHARACTER_ART_FILES, CHARACTER_ART_PATH, LOOK_PREVIEW_SETS, PICKER_ART_PATH, RENDER_WIDTH_LADDER, SOUND_ART, SOUND_ART_FILES, SOUND_RENDER_SETS, characterArtPath, characterSectionArtPath, characterSectionSlug, lookPreviewStillUrl, pickerOptionImage, pickerOptionImageUrl, pickerSectionImageUrl, soundArtFilePath, soundArtPath } from '../chunk-5XPELUES.js';
|
|
3
3
|
import '../chunk-PZ5AY32C.js';
|
|
4
4
|
//# sourceMappingURL=picker-art.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var chunkGRSKB3P7_cjs = require('./chunk-GRSKB3P7.cjs');
|
|
|
4
4
|
var chunkP4BXE4OA_cjs = require('./chunk-P4BXE4OA.cjs');
|
|
5
5
|
var chunk2EW5B7ZV_cjs = require('./chunk-2EW5B7ZV.cjs');
|
|
6
6
|
var chunkLXPKTI2K_cjs = require('./chunk-LXPKTI2K.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkEKRO42T3_cjs = require('./chunk-EKRO42T3.cjs');
|
|
8
8
|
var chunkPWYASBX2_cjs = require('./chunk-PWYASBX2.cjs');
|
|
9
9
|
require('./chunk-4GKTOVFM.cjs');
|
|
10
10
|
var chunkXUZXBY75_cjs = require('./chunk-XUZXBY75.cjs');
|
|
@@ -14,7 +14,7 @@ var chunkXRCK3BCF_cjs = require('./chunk-XRCK3BCF.cjs');
|
|
|
14
14
|
var chunkNAFD6MGH_cjs = require('./chunk-NAFD6MGH.cjs');
|
|
15
15
|
var chunk2NJTFCKQ_cjs = require('./chunk-2NJTFCKQ.cjs');
|
|
16
16
|
require('./chunk-TUHVGM6V.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkTYRIHUID_cjs = require('./chunk-TYRIHUID.cjs');
|
|
18
18
|
var chunk7BWDATUZ_cjs = require('./chunk-7BWDATUZ.cjs');
|
|
19
19
|
var chunkOQ3J7OGR_cjs = require('./chunk-OQ3J7OGR.cjs');
|
|
20
20
|
var chunkKTNCB2IE_cjs = require('./chunk-KTNCB2IE.cjs');
|
|
@@ -274,95 +274,95 @@ Object.defineProperty(exports, "resolvePrompt", {
|
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "REF_BINDING", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkEKRO42T3_cjs.REF_BINDING; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "SEEDANCE_VIDEO_EDIT_PREFIX", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkEKRO42T3_cjs.SEEDANCE_VIDEO_EDIT_PREFIX; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "appendField", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkEKRO42T3_cjs.appendField; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "appendMusicMeta", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkEKRO42T3_cjs.appendMusicMeta; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "assembleImageInput", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkEKRO42T3_cjs.assembleImageInput; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "assembleSunoInput", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkEKRO42T3_cjs.assembleSunoInput; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "buildSeedanceVideoEditPrompt", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkEKRO42T3_cjs.buildSeedanceVideoEditPrompt; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "buildSurroundFillPrompt", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkEKRO42T3_cjs.buildSurroundFillPrompt; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "composeSoundHintFromConnections", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkEKRO42T3_cjs.composeSoundHintFromConnections; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "composeVideoPromptText", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkEKRO42T3_cjs.composeVideoPromptText; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "getEffectiveSunoCustomMode", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkEKRO42T3_cjs.getEffectiveSunoCustomMode; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "identityRefsSentence", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkEKRO42T3_cjs.identityRefsSentence; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "imageBindingFor", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkEKRO42T3_cjs.imageBindingFor; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "placeFramesAfterReferences", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkEKRO42T3_cjs.placeFramesAfterReferences; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "planFrameDelivery", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkEKRO42T3_cjs.planFrameDelivery; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "promptBindsFirstFrame", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkEKRO42T3_cjs.promptBindsFirstFrame; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "resolveGeminiOmniI2vInputs", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkEKRO42T3_cjs.resolveGeminiOmniI2vInputs; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "resolveRefIdTokens", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkEKRO42T3_cjs.resolveRefIdTokens; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "resolveReferenceTokens", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkEKRO42T3_cjs.resolveReferenceTokens; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "resolveSeedance2Inputs", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkEKRO42T3_cjs.resolveSeedance2Inputs; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "resolveVeoI2vInputs", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkEKRO42T3_cjs.resolveVeoI2vInputs; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "resolveVideoReferenceCore", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkEKRO42T3_cjs.resolveVideoReferenceCore; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "truncateForField", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkEKRO42T3_cjs.truncateForField; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "ANGLE_LABELS", {
|
|
368
368
|
enumerable: true,
|
|
@@ -850,11 +850,11 @@ Object.defineProperty(exports, "withForcedIdentityLock", {
|
|
|
850
850
|
});
|
|
851
851
|
Object.defineProperty(exports, "RESTYLE_PREVIEWS", {
|
|
852
852
|
enumerable: true,
|
|
853
|
-
get: function () { return
|
|
853
|
+
get: function () { return chunkTYRIHUID_cjs.RESTYLE_PREVIEWS; }
|
|
854
854
|
});
|
|
855
855
|
Object.defineProperty(exports, "restylePreviewStillUrl", {
|
|
856
856
|
enumerable: true,
|
|
857
|
-
get: function () { return
|
|
857
|
+
get: function () { return chunkTYRIHUID_cjs.restylePreviewStillUrl; }
|
|
858
858
|
});
|
|
859
859
|
Object.defineProperty(exports, "ALL_PICKER_WIRING", {
|
|
860
860
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { P as PICKER_CATALOGS, a as PickerCatalog, b as PickerCatalogDetail, c as PickerCatalogSummary, d as PickerDimension, e as PickerOption, f as ProjectPickerCatalogOptions, g as ProjectedPickerCatalog, h as ProjectedPickerDimension, i as ProjectedPickerOption, j as getPickerCatalog, k as getRegisteredPickerCatalogs, l as listPickerCatalogs, p as projectAllCatalogs, m as projectPickerCatalog, s as summarizePickerCatalogs } from './picker-catalogs-DzLCu6qQ.cjs';
|
|
2
|
-
export { AssembleImageInput, AssembleImageResult, AssembleSunoInput, AssembleSunoResult, CharacterMeta, FrameDeliveryPlan, FrameDeliveryPlanArgs, FrameReferenceSlotsArgs, FrameReferenceSlotsResult, GeminiOmniI2vInputsArgs, GeminiOmniI2vInputsResult, ImageBinding, REF_BINDING, RefIdTokenContext, ReferenceCounts, ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, Seedance2InputsArgs, Seedance2InputsResult, Seedance2Mode, SoundComposition, SoundCompositionFields, SoundConsumerType, VeoI2vInputsArgs, VeoI2vInputsResult, VideoExtraRef, VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from './entries/assembly.cjs';
|
|
2
|
+
export { AssembleImageInput, AssembleImageResult, AssembleSunoInput, AssembleSunoResult, CharacterMeta, FrameDeliveryPlan, FrameDeliveryPlanArgs, FrameReferenceSlotsArgs, FrameReferenceSlotsResult, GeminiOmniI2vInputsArgs, GeminiOmniI2vInputsResult, ImageBinding, ImageReferenceSyntax, REF_BINDING, RefIdTokenContext, ReferenceCounts, ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, Seedance2InputsArgs, Seedance2InputsResult, Seedance2Mode, SoundComposition, SoundCompositionFields, SoundConsumerType, VeoI2vInputsArgs, VeoI2vInputsResult, VideoExtraRef, VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from './entries/assembly.cjs';
|
|
3
3
|
export { P as PickerHintMode, S as SuspiciousTermOptions, T as TERM_MAX_CHARS, a as TermCarrier, d as deriveTerm, i as isSuspiciousDerivedTerm, r as resolveTerm } from './term-C01_g6s1.cjs';
|
|
4
4
|
export { C as CatalogPack, a as CatalogPackMode, P as PickerCatalogInput, b as PickerDimensionInput, c as PickerOptionInput, d as catalogPacksVersion, e as composePickerCatalogs, g as getRegisteredCatalogPacks, h as hasCatalogPacksFor, r as registerCatalogPack, f as resetCatalogPacks, s as subscribeCatalogPacks } from './catalog-packs-DeMcSVCR.cjs';
|
|
5
5
|
export { SidecarCoverageReport, computePackSidecarCoverage } from './entries/catalog-packs.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { P as PICKER_CATALOGS, a as PickerCatalog, b as PickerCatalogDetail, c as PickerCatalogSummary, d as PickerDimension, e as PickerOption, f as ProjectPickerCatalogOptions, g as ProjectedPickerCatalog, h as ProjectedPickerDimension, i as ProjectedPickerOption, j as getPickerCatalog, k as getRegisteredPickerCatalogs, l as listPickerCatalogs, p as projectAllCatalogs, m as projectPickerCatalog, s as summarizePickerCatalogs } from './picker-catalogs-SDSWrufc.js';
|
|
2
|
-
export { AssembleImageInput, AssembleImageResult, AssembleSunoInput, AssembleSunoResult, CharacterMeta, FrameDeliveryPlan, FrameDeliveryPlanArgs, FrameReferenceSlotsArgs, FrameReferenceSlotsResult, GeminiOmniI2vInputsArgs, GeminiOmniI2vInputsResult, ImageBinding, REF_BINDING, RefIdTokenContext, ReferenceCounts, ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, Seedance2InputsArgs, Seedance2InputsResult, Seedance2Mode, SoundComposition, SoundCompositionFields, SoundConsumerType, VeoI2vInputsArgs, VeoI2vInputsResult, VideoExtraRef, VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from './entries/assembly.js';
|
|
2
|
+
export { AssembleImageInput, AssembleImageResult, AssembleSunoInput, AssembleSunoResult, CharacterMeta, FrameDeliveryPlan, FrameDeliveryPlanArgs, FrameReferenceSlotsArgs, FrameReferenceSlotsResult, GeminiOmniI2vInputsArgs, GeminiOmniI2vInputsResult, ImageBinding, ImageReferenceSyntax, REF_BINDING, RefIdTokenContext, ReferenceCounts, ResolveVideoReferenceCoreArgs, SEEDANCE_VIDEO_EDIT_PREFIX, Seedance2InputsArgs, Seedance2InputsResult, Seedance2Mode, SoundComposition, SoundCompositionFields, SoundConsumerType, VeoI2vInputsArgs, VeoI2vInputsResult, VideoExtraRef, VideoPromptCapOptions, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from './entries/assembly.js';
|
|
3
3
|
export { P as PickerHintMode, S as SuspiciousTermOptions, T as TERM_MAX_CHARS, a as TermCarrier, d as deriveTerm, i as isSuspiciousDerivedTerm, r as resolveTerm } from './term-C01_g6s1.js';
|
|
4
4
|
export { C as CatalogPack, a as CatalogPackMode, P as PickerCatalogInput, b as PickerDimensionInput, c as PickerOptionInput, d as catalogPacksVersion, e as composePickerCatalogs, g as getRegisteredCatalogPacks, h as hasCatalogPacksFor, r as registerCatalogPack, f as resetCatalogPacks, s as subscribeCatalogPacks } from './catalog-packs-DjqvicAR.js';
|
|
5
5
|
export { SidecarCoverageReport, computePackSidecarCoverage } from './entries/catalog-packs.js';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { BODY_CAPTIONS_PRESET_ID, BRAND_PRESETS, BRAND_PRESET_IDS, BRAND_PRESET_
|
|
|
2
2
|
export { readDirectionFields, readStructuredFields, readSubjectFields } from './chunk-ZRORO6OM.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';
|
|
5
|
-
export { REF_BINDING, SEEDANCE_VIDEO_EDIT_PREFIX, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from './chunk-
|
|
5
|
+
export { REF_BINDING, SEEDANCE_VIDEO_EDIT_PREFIX, appendField, appendMusicMeta, assembleImageInput, assembleSunoInput, buildSeedanceVideoEditPrompt, buildSurroundFillPrompt, composeSoundHintFromConnections, composeVideoPromptText, getEffectiveSunoCustomMode, identityRefsSentence, imageBindingFor, placeFramesAfterReferences, planFrameDelivery, promptBindsFirstFrame, resolveGeminiOmniI2vInputs, resolveRefIdTokens, resolveReferenceTokens, resolveSeedance2Inputs, resolveVeoI2vInputs, resolveVideoReferenceCore, truncateForField } from './chunk-XR7RAHZI.js';
|
|
6
6
|
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-YAIPYPMM.js';
|
|
7
7
|
import './chunk-GILUVQQJ.js';
|
|
8
8
|
export { keepableDirectionHints } from './chunk-JZOPMVGY.js';
|
|
@@ -12,7 +12,7 @@ export { AD_CREATIVE_ANALYSIS_FIELDS, AD_CREATIVE_ANALYSIS_SYSTEM_PROMPT, AUDIO_
|
|
|
12
12
|
export { CINEMATIC_LOOK_TAIL, FILM_STILL_PREFIX, NEUTRAL_PERSON, REALISM_FINISH, REALISM_PASS_INSTRUCTION, REALISM_SKIN, REFERENCE_RULES, REFERENCE_RULES_MULTI_PERSON, SCENE_FRAME_RULE, filmStillPrefix, realismEmptyHands, realismViewpoint, referenceRulesBlock } from './chunk-T64D26P4.js';
|
|
13
13
|
export { DEFAULT_IDENTITY_LOCK, DEFAULT_TEMPLATES, applyTemplate, buildIdentityLockLine, characterLockToRefLock, collectIdentityLockClause, getIdentityLockClause, hasUpstreamCharacter, resolveTemplate, toIdentityLockMode, withForcedIdentityLock } from './chunk-BQWIPLLR.js';
|
|
14
14
|
import './chunk-ADMHDFHB.js';
|
|
15
|
-
export { RESTYLE_PREVIEWS, restylePreviewStillUrl } from './chunk-
|
|
15
|
+
export { RESTYLE_PREVIEWS, restylePreviewStillUrl } from './chunk-RBRCJTDJ.js';
|
|
16
16
|
export { ALL_PICKER_WIRING, ANALYZABLE_PICKER_TYPES, GAPS_SCHEMA, MULTI_PICKER_WIRING, PICKER_ANALYZER_FAMILIES, PICKER_ANALYZER_REGISTRY, PICKER_TYPES, SINGLE_PICKER_WIRING, __resetCatalogIdGuardForTests, applyPickerJson, buildMultiPickerAnalyzerSpec, buildPickerAnalyzerSpec, buildPickerLegend, buildPickerZodSchema, catalogGuardActive, findForeignCatalogIds, findForeignCatalogIdsInBody, foreignCatalogIdMessage, getPickerAnalyzer, getPickerWiring, isAnalyzablePicker, pickerFanoutTargets } from './chunk-HOZPYHRA.js';
|
|
17
17
|
export { ADULT_SWEPT_CATALOG_IDS, FLOORED_PICKER_KEYS, RETIRED_ADULT_ONLY_HINT_STRINGS, applyMinorAgeFloorToPickerValues, buildNeedleAlternationSource, containsMinorAgeHint, getAdultOnlyEntries, getAdultOnlyHintStrings, getAdultOnlyIds, getCharacterMotionBindings, getMinorAgeHintStrings, getParameterPromptHint } from './chunk-EUU5W7XR.js';
|
|
18
18
|
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, curatedAnimalPromptHint, curatedAnimalTerm, curatedFurnitureText, curatedVehicleText, curatedWeaponText, directionFieldsForSurface, directionKeyForUserRef, modeForFamily, nearestColorName, parseUserDirectionRef, renderDirectionHintClauses, renderDirectionHints, renderMoodboardClause, renderPaletteClause, styleReferenceDescription, userDirectionRefValue, userRefKindOfDirectionKey } from './chunk-VBCVQPQ4.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodaro/prompts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.1",
|
|
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.59.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"tsup": "^8.5.0",
|
|
@@ -30,6 +30,22 @@ describe("placeFramesAfterReferences", () => {
|
|
|
30
30
|
)
|
|
31
31
|
})
|
|
32
32
|
|
|
33
|
+
it("writes plain `image N` sentences that say what each image is", () => {
|
|
34
|
+
const start = placeFramesAfterReferences({ firstFrameUrl: "F", refImageUrls: R(2), imageCap: 6, syntax: "image N", bindIdentities: true })
|
|
35
|
+
expect(start.promptSuffix).toBe(
|
|
36
|
+
"image 3 is the opening (first) frame of the video. image 1 and image 2 are references for the subject; they are not frames.",
|
|
37
|
+
)
|
|
38
|
+
const both = placeFramesAfterReferences({ firstFrameUrl: "F", lastFrameUrl: "L", refImageUrls: R(3), imageCap: 6, syntax: "image N", bindIdentities: true })
|
|
39
|
+
expect(both.promptSuffix).toBe(
|
|
40
|
+
"image 4 is the opening (first) frame and image 5 is the closing (last) frame of the video. image 1, image 2 and image 3 are references for the subject; they are not frames.",
|
|
41
|
+
)
|
|
42
|
+
const one = placeFramesAfterReferences({ lastFrameUrl: "L", refImageUrls: R(1), imageCap: 6, syntax: "image N", bindIdentities: true })
|
|
43
|
+
expect(one.promptSuffix).toBe("image 2 is the closing (last) frame of the video. image 1 is a reference for the subject; it is not a frame.")
|
|
44
|
+
// Never the platform's `@image_N` duplicate check: a prompt carrying it is not this syntax's binding.
|
|
45
|
+
const prompted = placeFramesAfterReferences({ prompt: "use @image_2 as the first frame", firstFrameUrl: "F", refImageUrls: R(1), imageCap: 6, syntax: "image N" })
|
|
46
|
+
expect(prompted.promptSuffix).toBe("image 2 is the opening (first) frame of the video.")
|
|
47
|
+
})
|
|
48
|
+
|
|
33
49
|
it("skips the opening sentence when the prompt already binds it (@image_N form)", () => {
|
|
34
50
|
const r = placeFramesAfterReferences({ prompt: "use @image_2 as the first frame", firstFrameUrl: "F", refImageUrls: R(1), imageCap: 9 })
|
|
35
51
|
expect(r.promptSuffix).toBe("")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { imageBindingFor, type ImageReferenceSyntax } from "./ref-binding.js"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* WHERE A START / END FRAME GOES WHEN IT SHARES A MODEL'S REFERENCE LIST — the
|
|
@@ -29,7 +29,7 @@ export interface FrameReferenceSlotsArgs {
|
|
|
29
29
|
/** The provider's image cap — frames and references together. */
|
|
30
30
|
imageCap: number
|
|
31
31
|
/** The provider's reference syntax (`videoProviderReferenceSyntax`). */
|
|
32
|
-
syntax?:
|
|
32
|
+
syntax?: ImageReferenceSyntax
|
|
33
33
|
bindIdentities?: boolean
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -65,14 +65,14 @@ export function placeFramesAfterReferences(args: FrameReferenceSlotsArgs): Frame
|
|
|
65
65
|
if (promptBindsStart && firstFrameOrdinal > 0 && lastFrameOrdinal === 0) {
|
|
66
66
|
// The prompt already binds the first frame at its own (working) position.
|
|
67
67
|
} else if (firstFrameOrdinal > 0 && lastFrameOrdinal > 0) {
|
|
68
|
-
frameSentence =
|
|
68
|
+
frameSentence = binding.frames(firstFrameOrdinal, lastFrameOrdinal)
|
|
69
69
|
} else if (firstFrameOrdinal > 0) {
|
|
70
70
|
frameSentence = binding.frame(firstFrameOrdinal, "opening")
|
|
71
71
|
} else if (lastFrameOrdinal > 0) {
|
|
72
72
|
frameSentence = binding.frame(lastFrameOrdinal, "closing")
|
|
73
73
|
}
|
|
74
74
|
const identitySentence = args.bindIdentities && kept.length > 0 && frameCount > 0
|
|
75
|
-
?
|
|
75
|
+
? binding.identities(1, kept.length)
|
|
76
76
|
: ""
|
|
77
77
|
const promptSuffix = [frameSentence, identitySentence].filter(Boolean).join(" ")
|
|
78
78
|
return { imageUrls, promptSuffix, droppedRefImages, firstFrameOrdinal, lastFrameOrdinal }
|
|
@@ -45,6 +45,9 @@ export const RESTYLE_PREVIEWS: Readonly<Record<string, RestylePreview>> = {
|
|
|
45
45
|
// Source shot: https://cdn.nodaro.ai/picker-renders/71d9ab7a-7396-48ff-8bc3-80454b0edd07.mp4
|
|
46
46
|
// Generated, no wipe: https://cdn.nodaro.ai/picker-renders/b11ab600-ec62-4cb6-82b4-b0006374164b.mp4
|
|
47
47
|
"pop-art": { url: "https://cdn.nodaro.ai/picker-renders/0659dbe5-9dfe-45d8-9abd-6ccf88481dd8.mp4", stillAtSeconds: 7 },
|
|
48
|
+
// Source shot: https://cdn.nodaro.ai/picker-renders/f832aab2-5f30-48cc-81dd-e6a4b84128b3.mp4
|
|
49
|
+
// Generated, no wipe: https://cdn.nodaro.ai/picker-renders/67386080-e6f5-4fba-a7bc-cfb6de462804.mp4
|
|
50
|
+
"toy-figure-3d": { url: "https://cdn.nodaro.ai/picker-renders/eaebd242-7e53-4018-ba85-00673e2a9b2b.mp4", stillAtSeconds: 7 },
|
|
48
51
|
// Source shot: https://cdn.nodaro.ai/picker-renders/789f4330-660b-42bd-8d11-6e638e8c7c88.mp4
|
|
49
52
|
// Generated, no wipe: https://cdn.nodaro.ai/picker-renders/10471107-b26a-42e9-a3a5-068a42436d3c.mp4
|
|
50
53
|
watercolor: { url: "https://cdn.nodaro.ai/picker-renders/61a26588-d09a-4959-b677-ee8b32e3281a.mp4" },
|