@fugood/bricks-project 2.21.0-beta.23 → 2.21.0-beta.25
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/compile/action-name-map.ts +2 -0
- package/package.json +2 -2
- package/types/generators.ts +8 -187
- package/types/system.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.21.0-beta.
|
|
3
|
+
"version": "2.21.0-beta.25",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"lodash": "^4.17.4",
|
|
14
14
|
"uuid": "^8.3.1"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "ab6c290fc51b20eb046cb31b9f37ac98de2de3b7"
|
|
17
17
|
}
|
package/types/generators.ts
CHANGED
|
@@ -4054,193 +4054,6 @@ export type GeneratorBlePeripheral = Generator &
|
|
|
4054
4054
|
>
|
|
4055
4055
|
}
|
|
4056
4056
|
|
|
4057
|
-
/* Start inquire */
|
|
4058
|
-
export type GeneratorPromptActionStart = Action & {
|
|
4059
|
-
__actionName: 'GENERATOR_PROMPT_START'
|
|
4060
|
-
}
|
|
4061
|
-
|
|
4062
|
-
/* Stop inquire */
|
|
4063
|
-
export type GeneratorPromptActionStop = Action & {
|
|
4064
|
-
__actionName: 'GENERATOR_PROMPT_STOP'
|
|
4065
|
-
}
|
|
4066
|
-
|
|
4067
|
-
/* Pause inquire */
|
|
4068
|
-
export type GeneratorPromptActionPause = Action & {
|
|
4069
|
-
__actionName: 'GENERATOR_PROMPT_PAUSE'
|
|
4070
|
-
}
|
|
4071
|
-
|
|
4072
|
-
interface GeneratorPromptDef {
|
|
4073
|
-
/*
|
|
4074
|
-
Default property:
|
|
4075
|
-
{
|
|
4076
|
-
"showClose": true,
|
|
4077
|
-
"yesBtnText": "Yes",
|
|
4078
|
-
"noBtnText": "No",
|
|
4079
|
-
"titleFontSize": 4,
|
|
4080
|
-
"messageFontSize": 2,
|
|
4081
|
-
"fieldFontSize": 2,
|
|
4082
|
-
"fieldRadius": 0
|
|
4083
|
-
}
|
|
4084
|
-
*/
|
|
4085
|
-
property?: {
|
|
4086
|
-
/* Inquirer schema
|
|
4087
|
-
`key`: Field key (unique)
|
|
4088
|
-
`title`: Field title
|
|
4089
|
-
`description`: Field description
|
|
4090
|
-
`kind`: Field type
|
|
4091
|
-
`options`: Field options (for `select` and `multi-select`)
|
|
4092
|
-
`placeholder`: Field placeholder text
|
|
4093
|
-
`defaultValue`: Field default value
|
|
4094
|
-
`required`: Is field required
|
|
4095
|
-
`max`: Field maximum value (for `number` and `slider`)
|
|
4096
|
-
`min`: Field minimum value (for `number` and `slider`)
|
|
4097
|
-
`step`: Field step value (for `number` and `slider`)
|
|
4098
|
-
`invalidMessage`: Invalid message if input value is invalid */
|
|
4099
|
-
schema?:
|
|
4100
|
-
| Array<
|
|
4101
|
-
| DataLink
|
|
4102
|
-
| {
|
|
4103
|
-
key?: string | DataLink
|
|
4104
|
-
title?: string | DataLink
|
|
4105
|
-
description?: string | DataLink
|
|
4106
|
-
kind?:
|
|
4107
|
-
| 'number'
|
|
4108
|
-
| 'text'
|
|
4109
|
-
| 'phone'
|
|
4110
|
-
| 'email'
|
|
4111
|
-
| 'color'
|
|
4112
|
-
| 'uri'
|
|
4113
|
-
| 'select'
|
|
4114
|
-
| 'multi-select'
|
|
4115
|
-
| 'yesno'
|
|
4116
|
-
| DataLink
|
|
4117
|
-
options?:
|
|
4118
|
-
| Array<
|
|
4119
|
-
| DataLink
|
|
4120
|
-
| {
|
|
4121
|
-
value?: string | DataLink
|
|
4122
|
-
image?: string | DataLink
|
|
4123
|
-
label?: string | DataLink
|
|
4124
|
-
}
|
|
4125
|
-
>
|
|
4126
|
-
| DataLink
|
|
4127
|
-
placeholder?: string | DataLink
|
|
4128
|
-
defaultValue?:
|
|
4129
|
-
| string
|
|
4130
|
-
| DataLink
|
|
4131
|
-
| number
|
|
4132
|
-
| DataLink
|
|
4133
|
-
| boolean
|
|
4134
|
-
| DataLink
|
|
4135
|
-
| Array<string | DataLink>
|
|
4136
|
-
| DataLink
|
|
4137
|
-
| DataLink
|
|
4138
|
-
required?: boolean | DataLink
|
|
4139
|
-
max?: number | DataLink
|
|
4140
|
-
min?: number | DataLink
|
|
4141
|
-
step?: number | DataLink
|
|
4142
|
-
invalidMessage?: string | DataLink
|
|
4143
|
-
}
|
|
4144
|
-
>
|
|
4145
|
-
| DataLink
|
|
4146
|
-
/* Show close button */
|
|
4147
|
-
showClose?: boolean | DataLink
|
|
4148
|
-
/* Completed message */
|
|
4149
|
-
completedMessage?: string | DataLink
|
|
4150
|
-
/* "Yes" button text */
|
|
4151
|
-
yesBtnText?: string | DataLink
|
|
4152
|
-
/* "No" button text */
|
|
4153
|
-
noBtnText?: string | DataLink
|
|
4154
|
-
/* Background color */
|
|
4155
|
-
backgroundColor?: string | DataLink
|
|
4156
|
-
/* Main color (for title and button) */
|
|
4157
|
-
mainColor?: string | DataLink
|
|
4158
|
-
/* Second color (for description) */
|
|
4159
|
-
secondColor?: string | DataLink
|
|
4160
|
-
/* Field active color */
|
|
4161
|
-
fieldCheckedColor?: string | DataLink
|
|
4162
|
-
/* Field unactive color */
|
|
4163
|
-
fieldUncheckedColor?: string | DataLink
|
|
4164
|
-
/* Field background color */
|
|
4165
|
-
fieldBackgroundColor?: string | DataLink
|
|
4166
|
-
/* Field border color */
|
|
4167
|
-
fieldBorderColor?: string | DataLink
|
|
4168
|
-
/* Field text color */
|
|
4169
|
-
fieldTextColor?: string | DataLink
|
|
4170
|
-
/* Field placeholder color */
|
|
4171
|
-
fieldPlaceholderColor?: string | DataLink
|
|
4172
|
-
/* Warn color */
|
|
4173
|
-
warnColor?: string | DataLink
|
|
4174
|
-
/* Error color */
|
|
4175
|
-
errorColor?: string | DataLink
|
|
4176
|
-
/* Title font size */
|
|
4177
|
-
titleFontSize?: number | DataLink
|
|
4178
|
-
/* Message font size */
|
|
4179
|
-
messageFontSize?: number | DataLink
|
|
4180
|
-
/* Field font size */
|
|
4181
|
-
fieldFontSize?: number | DataLink
|
|
4182
|
-
/* Field radius */
|
|
4183
|
-
fieldRadius?: number | DataLink
|
|
4184
|
-
}
|
|
4185
|
-
events?: {
|
|
4186
|
-
/* Event of go next */
|
|
4187
|
-
onNextQuestion?: Array<EventAction>
|
|
4188
|
-
/* Event of go back */
|
|
4189
|
-
onBackQuestion?: Array<EventAction>
|
|
4190
|
-
/* Event of change question */
|
|
4191
|
-
onQuestionChange?: Array<EventAction>
|
|
4192
|
-
/* Event of prompt paused */
|
|
4193
|
-
onPause?: Array<EventAction>
|
|
4194
|
-
/* Event of warning showed */
|
|
4195
|
-
onWarning?: Array<EventAction>
|
|
4196
|
-
/* Event of completed inquire */
|
|
4197
|
-
onCompleted?: Array<EventAction>
|
|
4198
|
-
/* Event of error occured */
|
|
4199
|
-
onError?: Array<
|
|
4200
|
-
EventAction & {
|
|
4201
|
-
eventPropertyMapping?: {
|
|
4202
|
-
errorMessage: {
|
|
4203
|
-
type: 'string'
|
|
4204
|
-
path: string
|
|
4205
|
-
}
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
>
|
|
4209
|
-
}
|
|
4210
|
-
outlets?: {
|
|
4211
|
-
/* Result data */
|
|
4212
|
-
data?: () => Data
|
|
4213
|
-
/* Currnet question */
|
|
4214
|
-
currectKey?: () => Data
|
|
4215
|
-
/* Currnet input value */
|
|
4216
|
-
currectValue?: () => Data
|
|
4217
|
-
/* Error message */
|
|
4218
|
-
errorMessage?: () => Data
|
|
4219
|
-
}
|
|
4220
|
-
}
|
|
4221
|
-
|
|
4222
|
-
/* Inquiry prompts */
|
|
4223
|
-
export type GeneratorPrompt = Generator &
|
|
4224
|
-
GeneratorPromptDef & {
|
|
4225
|
-
templateKey: 'GENERATOR_PROMPT'
|
|
4226
|
-
switches: Array<
|
|
4227
|
-
SwitchDef &
|
|
4228
|
-
GeneratorPromptDef & {
|
|
4229
|
-
conds?: Array<{
|
|
4230
|
-
method: '==' | '!=' | '>' | '<' | '>=' | '<='
|
|
4231
|
-
cond:
|
|
4232
|
-
| SwitchCondInnerStateCurrentCanvas
|
|
4233
|
-
| SwitchCondData
|
|
4234
|
-
| {
|
|
4235
|
-
__typename: 'SwitchCondInnerStateOutlet'
|
|
4236
|
-
outlet: 'data' | 'currectKey' | 'currectValue' | 'errorMessage'
|
|
4237
|
-
value: any
|
|
4238
|
-
}
|
|
4239
|
-
}>
|
|
4240
|
-
}
|
|
4241
|
-
>
|
|
4242
|
-
}
|
|
4243
|
-
|
|
4244
4057
|
/* Start inquire */
|
|
4245
4058
|
export type GeneratorQuestionActionStart = Action & {
|
|
4246
4059
|
__actionName: 'GENERATOR_QUESTION_START'
|
|
@@ -6421,6 +6234,8 @@ Default property:
|
|
|
6421
6234
|
"gpuLayers": 0,
|
|
6422
6235
|
"useMlock": true,
|
|
6423
6236
|
"useMmap": true,
|
|
6237
|
+
"cacheKType": "f16",
|
|
6238
|
+
"cacheVType": "f16",
|
|
6424
6239
|
"transformScriptEnabled": false,
|
|
6425
6240
|
"transformScriptCode": "\/\* Global variable: inputs = { prompt, messages, variables } \*\/\nreturn inputs.prompt",
|
|
6426
6241
|
"transformScriptVariables": {},
|
|
@@ -6486,6 +6301,12 @@ Default property:
|
|
|
6486
6301
|
useMlock?: boolean | DataLink
|
|
6487
6302
|
/* Use mmap */
|
|
6488
6303
|
useMmap?: boolean | DataLink
|
|
6304
|
+
/* Use Flash Attention for inference (Recommended with GPU enabled) */
|
|
6305
|
+
useFlashAttn?: boolean | DataLink
|
|
6306
|
+
/* KV cache data type for the K (Default: f16) */
|
|
6307
|
+
cacheKType?: 'f16' | 'f32' | 'q8_0' | 'q4_0' | 'q4_1' | 'iq4_nl' | 'q5_0' | 'q5_1' | DataLink
|
|
6308
|
+
/* KV cache data type for the V (Default: f16) */
|
|
6309
|
+
cacheVType?: 'f16' | 'f32' | 'q8_0' | 'q4_0' | 'q4_1' | 'iq4_nl' | 'q5_0' | 'q5_1' | DataLink
|
|
6489
6310
|
/* Enable Transform Script for processing the prompt */
|
|
6490
6311
|
transformScriptEnabled?: boolean | DataLink
|
|
6491
6312
|
/* Code of Transform Script */
|
package/types/system.ts
CHANGED
|
@@ -143,6 +143,16 @@ export type SystemActionChangeCanvas = ActionWithParams & {
|
|
|
143
143
|
value?: string | DataLink
|
|
144
144
|
mapping?: string
|
|
145
145
|
}
|
|
146
|
+
| {
|
|
147
|
+
input: 'canvasKeyMapList'
|
|
148
|
+
value?: {} | DataLink
|
|
149
|
+
mapping?: string
|
|
150
|
+
}
|
|
151
|
+
| {
|
|
152
|
+
input: 'canvasKey'
|
|
153
|
+
value?: string | DataLink
|
|
154
|
+
mapping?: string
|
|
155
|
+
}
|
|
146
156
|
>
|
|
147
157
|
}
|
|
148
158
|
|