ugcinc 2.53.0 → 2.54.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/node-runtime.d.ts +55 -0
- package/dist/node-runtime.js +6 -0
- package/dist/types.d.ts +9 -3
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime types for node execution
|
|
3
|
+
* These types are used during workflow execution
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Media type classification
|
|
7
|
+
*/
|
|
8
|
+
export type MediaType = 'video' | 'image' | 'audio' | 'text';
|
|
9
|
+
/**
|
|
10
|
+
* Selection mode for source nodes
|
|
11
|
+
*/
|
|
12
|
+
export type SelectionMode = 'random' | 'sequential';
|
|
13
|
+
/**
|
|
14
|
+
* Behavior when all items have been used
|
|
15
|
+
*/
|
|
16
|
+
export type ExhaustionBehavior = 'restart' | 'error';
|
|
17
|
+
/**
|
|
18
|
+
* Selection configuration for source nodes (image, video, audio)
|
|
19
|
+
*/
|
|
20
|
+
export interface SelectionConfig {
|
|
21
|
+
mode: SelectionMode;
|
|
22
|
+
enforceUniqueness: boolean;
|
|
23
|
+
exhaustionBehavior: ExhaustionBehavior;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Runtime state for tracking selection progress (persisted in node config)
|
|
27
|
+
*/
|
|
28
|
+
export interface SelectionState {
|
|
29
|
+
usedIndices: number[];
|
|
30
|
+
currentIndex: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Output mode for source nodes
|
|
34
|
+
* - 'per-input': Generate a unique value for each consumer input (default)
|
|
35
|
+
* - 'single': Use the same value for all consumer inputs
|
|
36
|
+
*/
|
|
37
|
+
export type OutputMode = 'per-input' | 'single';
|
|
38
|
+
/**
|
|
39
|
+
* Output node input configuration
|
|
40
|
+
*/
|
|
41
|
+
export interface OutputInput {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
type: MediaType;
|
|
45
|
+
tag?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Output node configuration
|
|
49
|
+
*/
|
|
50
|
+
export interface OutputNodeConfig {
|
|
51
|
+
inputs: OutputInput[];
|
|
52
|
+
saveToMedia: boolean;
|
|
53
|
+
globalTag?: string;
|
|
54
|
+
makeUnique: boolean;
|
|
55
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -843,13 +843,19 @@ export interface WorkflowNodeDefinition {
|
|
|
843
843
|
}>;
|
|
844
844
|
config?: {
|
|
845
845
|
urls?: string[];
|
|
846
|
+
selectionConfig?: SelectionConfig;
|
|
847
|
+
selectionState?: SelectionState;
|
|
848
|
+
outputMode?: OutputMode;
|
|
846
849
|
textOptions?: string[];
|
|
847
850
|
videoEditor?: VideoEditorConfig;
|
|
848
851
|
imageEditor?: ImageEditorConfig | ImageEditorNodeConfig;
|
|
849
852
|
outputSchema?: Record<string, OutputSchemaProperty>;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
+
provider?: 'groq' | 'openai' | 'claude' | 'gemini';
|
|
854
|
+
model?: string;
|
|
855
|
+
temperature?: number;
|
|
856
|
+
maxTokens?: number;
|
|
857
|
+
useWebSearch?: boolean;
|
|
858
|
+
useStructuredOutput?: boolean;
|
|
853
859
|
variableType?: 'image' | 'video' | 'audio' | 'text' | 'dropdown';
|
|
854
860
|
defaultValue?: string;
|
|
855
861
|
dropdownOptions?: Array<{
|