@fugood/bricks-project 2.23.0-beta.26 → 2.23.0-beta.28
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.
|
@@ -486,6 +486,16 @@ export const templateActionNameMap = {
|
|
|
486
486
|
packageName: 'GENERATOR_INTENT_PACKAGE_NAME',
|
|
487
487
|
category: 'GENERATOR_INTENT_CATEGORY',
|
|
488
488
|
},
|
|
489
|
+
GENERATOR_INTENT_START_SERVICE: {
|
|
490
|
+
action: 'GENERATOR_INTENT_ACTION',
|
|
491
|
+
data: 'GENERATOR_INTENT_DATA',
|
|
492
|
+
type: 'GENERATOR_INTENT_TYPE',
|
|
493
|
+
extra: 'GENERATOR_INTENT_EXTRA',
|
|
494
|
+
className: 'GENERATOR_INTENT_CLASS_NAME',
|
|
495
|
+
packageName: 'GENERATOR_INTENT_PACKAGE_NAME',
|
|
496
|
+
category: 'GENERATOR_INTENT_CATEGORY',
|
|
497
|
+
foreground: 'GENERATOR_INTENT_FOREGROUND',
|
|
498
|
+
},
|
|
489
499
|
},
|
|
490
500
|
GENERATOR_CASTLES_PAY: {
|
|
491
501
|
GENERATOR_CASTLES_PAY_SALE: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.23.0-beta.
|
|
3
|
+
"version": "2.23.0-beta.28",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "bun scripts/build.js"
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"lodash": "^4.17.4",
|
|
15
15
|
"uuid": "^8.3.1"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "70dc90287c23f791bc1ed079b80586071e439d15"
|
|
18
18
|
}
|
|
@@ -21,7 +21,10 @@ Default property:
|
|
|
21
21
|
"type": "image",
|
|
22
22
|
"resizeMode": "cover",
|
|
23
23
|
"provider": "openai",
|
|
24
|
-
"freepikClassicImageSize": "square_1_1"
|
|
24
|
+
"freepikClassicImageSize": "square_1_1",
|
|
25
|
+
"geminiVeoModel": "veo-3.1-generate-preview",
|
|
26
|
+
"geminiVeoResolution": "720p",
|
|
27
|
+
"geminiVeoDuration": 8
|
|
25
28
|
}
|
|
26
29
|
*/
|
|
27
30
|
property?: BrickBasicProperty & {
|
|
@@ -163,6 +166,16 @@ Default property:
|
|
|
163
166
|
geminiAspectRatio?: '1:1' | '16:9' | '9:16' | '3:2' | '2:3' | DataLink
|
|
164
167
|
/* Gemini model to use for image generation */
|
|
165
168
|
geminiModel?: 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | DataLink
|
|
169
|
+
/* Gemini Veo model to use for video generation */
|
|
170
|
+
geminiVeoModel?: 'veo-3.1-generate-preview' | 'veo-3.1-fast-generate-preview' | DataLink
|
|
171
|
+
/* Gemini Veo video resolution (720p or 1080p) */
|
|
172
|
+
geminiVeoResolution?: '720p' | '1080p' | DataLink
|
|
173
|
+
/* Gemini Veo video duration in seconds (4, 6, 8) */
|
|
174
|
+
geminiVeoDuration?: 4 | 6 | 8 | DataLink
|
|
175
|
+
/* Gemini Veo negative prompt (attributes to avoid) */
|
|
176
|
+
geminiVeoNegativePrompt?: string | DataLink
|
|
177
|
+
/* Gemini Veo person generation control */
|
|
178
|
+
geminiVeoPersonGeneration?: 'allow_all' | 'allow_adult' | DataLink
|
|
166
179
|
}
|
|
167
180
|
events?: BrickBasicEvents & {
|
|
168
181
|
/* Event of the brick press */
|
package/types/data-calc.ts
CHANGED
|
@@ -3850,6 +3850,48 @@ export type DataCommandStringTitleCase = DataCommand & {
|
|
|
3850
3850
|
}>
|
|
3851
3851
|
}
|
|
3852
3852
|
|
|
3853
|
+
/*
|
|
3854
|
+
TOON Decode
|
|
3855
|
+
Decode TOON string. Return undefined if decode failed.
|
|
3856
|
+
*/
|
|
3857
|
+
export type DataCommandStringToolDecode = DataCommand & {
|
|
3858
|
+
__commandName: 'STRING_TOOL_DECODE'
|
|
3859
|
+
inputs?: Array<{
|
|
3860
|
+
// Default value: "{}"
|
|
3861
|
+
key: 'subject'
|
|
3862
|
+
source: (() => DataCalculationData | DataCommand) | string
|
|
3863
|
+
sourceKey: string
|
|
3864
|
+
trigger?: boolean
|
|
3865
|
+
}>
|
|
3866
|
+
outputs?: Array<{
|
|
3867
|
+
key: 'result'
|
|
3868
|
+
// target type: any
|
|
3869
|
+
target: () => DataCalculationData | DataCommand
|
|
3870
|
+
targetKey: string
|
|
3871
|
+
}>
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
/*
|
|
3875
|
+
TOON Encode
|
|
3876
|
+
Encode TOON string. Return undefined if encode failed.
|
|
3877
|
+
*/
|
|
3878
|
+
export type DataCommandStringToolEncode = DataCommand & {
|
|
3879
|
+
__commandName: 'STRING_TOOL_ENCODE'
|
|
3880
|
+
inputs?: Array<{
|
|
3881
|
+
// Default value: {}
|
|
3882
|
+
key: 'subject'
|
|
3883
|
+
source: (() => DataCalculationData | DataCommand) | any
|
|
3884
|
+
sourceKey: string
|
|
3885
|
+
trigger?: boolean
|
|
3886
|
+
}>
|
|
3887
|
+
outputs?: Array<{
|
|
3888
|
+
key: 'result'
|
|
3889
|
+
// target type: string
|
|
3890
|
+
target: () => DataCalculationData | DataCommand
|
|
3891
|
+
targetKey: string
|
|
3892
|
+
}>
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3853
3895
|
/*
|
|
3854
3896
|
Trim
|
|
3855
3897
|
Removes whitespaces from left and right sides of the subject.
|
|
@@ -52,6 +52,53 @@ export type GeneratorIntentActionSendIntent = ActionWithParams & {
|
|
|
52
52
|
>
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/* Start intent service */
|
|
56
|
+
export type GeneratorIntentActionStartService = ActionWithParams & {
|
|
57
|
+
__actionName: 'GENERATOR_INTENT_START_SERVICE'
|
|
58
|
+
params?: Array<
|
|
59
|
+
| {
|
|
60
|
+
input: 'action'
|
|
61
|
+
value?: string | DataLink | EventProperty
|
|
62
|
+
mapping?: string
|
|
63
|
+
}
|
|
64
|
+
| {
|
|
65
|
+
input: 'data'
|
|
66
|
+
value?: string | DataLink | EventProperty
|
|
67
|
+
mapping?: string
|
|
68
|
+
}
|
|
69
|
+
| {
|
|
70
|
+
input: 'type'
|
|
71
|
+
value?: string | DataLink | EventProperty
|
|
72
|
+
mapping?: string
|
|
73
|
+
}
|
|
74
|
+
| {
|
|
75
|
+
input: 'extra'
|
|
76
|
+
value?: {} | DataLink | EventProperty
|
|
77
|
+
mapping?: string
|
|
78
|
+
}
|
|
79
|
+
| {
|
|
80
|
+
input: 'className'
|
|
81
|
+
value?: string | DataLink | EventProperty
|
|
82
|
+
mapping?: string
|
|
83
|
+
}
|
|
84
|
+
| {
|
|
85
|
+
input: 'packageName'
|
|
86
|
+
value?: string | DataLink | EventProperty
|
|
87
|
+
mapping?: string
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
input: 'category'
|
|
91
|
+
value?: string | DataLink | EventProperty
|
|
92
|
+
mapping?: string
|
|
93
|
+
}
|
|
94
|
+
| {
|
|
95
|
+
input: 'foreground'
|
|
96
|
+
value?: boolean | DataLink | EventProperty
|
|
97
|
+
mapping?: string
|
|
98
|
+
}
|
|
99
|
+
>
|
|
100
|
+
}
|
|
101
|
+
|
|
55
102
|
interface GeneratorIntentDef {
|
|
56
103
|
/*
|
|
57
104
|
Default property:
|
|
@@ -72,6 +119,8 @@ Default property:
|
|
|
72
119
|
packageName?: string | DataLink
|
|
73
120
|
/* Intent category */
|
|
74
121
|
category?: string | DataLink
|
|
122
|
+
/* Intent start foreground service */
|
|
123
|
+
foregroundService?: boolean | DataLink
|
|
75
124
|
}
|
|
76
125
|
events?: {
|
|
77
126
|
/* On intent return a result trigger */
|