@tongfun/ui 0.0.1-alpha.3 → 0.0.1-alpha.4
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/agent-schema/index.d.ts +12 -0
- package/dist/agent-schema/index.js +33 -0
- package/dist/agent-schema/types.d.ts +27 -0
- package/dist/formula/index.d.ts +17 -0
- package/dist/formula/types.d.ts +136 -0
- package/dist/index.d.ts +55 -4
- package/dist/index.js +142216 -125508
- package/dist/lowcode-agent/index.js +9409 -3792
- package/dist/lowcode-agent/types.d.ts +312 -312
- package/dist/skill/golden-examples/dashboard-workbench.md +224 -0
- package/dist/skill/golden-examples/form-create.md +227 -0
- package/dist/skill/golden-examples/management-list.md +264 -0
- package/dist/skill/golden-examples/new-document.md +748 -0
- package/dist/skill/tongfun-ui-skill.json +470 -0
- package/dist/skill/tongfun-ui-skill.md +297 -0
- package/dist/style.css +1 -1
- package/package.json +99 -91
|
@@ -1,312 +1,312 @@
|
|
|
1
|
-
export type LowcodeAgentJSONPrimitive = string | number | boolean | null
|
|
2
|
-
|
|
3
|
-
export type LowcodeAgentJSONValue =
|
|
4
|
-
| LowcodeAgentJSONPrimitive
|
|
5
|
-
| LowcodeAgentJSONValue[]
|
|
6
|
-
| { [key: string]: LowcodeAgentJSONValue }
|
|
7
|
-
|
|
8
|
-
export type LowcodeAgentFramework = 'vue3'
|
|
9
|
-
|
|
10
|
-
export type LowcodeAgentComponentCategory =
|
|
11
|
-
| 'layout'
|
|
12
|
-
| 'basic'
|
|
13
|
-
| 'form'
|
|
14
|
-
| 'display'
|
|
15
|
-
| 'nav'
|
|
16
|
-
| 'feedback'
|
|
17
|
-
| 'business'
|
|
18
|
-
| 'ai'
|
|
19
|
-
|
|
20
|
-
export type LowcodeAgentControl =
|
|
21
|
-
| 'text'
|
|
22
|
-
| 'textarea'
|
|
23
|
-
| 'number'
|
|
24
|
-
| 'switch'
|
|
25
|
-
| 'select'
|
|
26
|
-
| 'multi-select'
|
|
27
|
-
| 'segmented'
|
|
28
|
-
| 'date'
|
|
29
|
-
| 'data-binding'
|
|
30
|
-
| 'state-binding'
|
|
31
|
-
| 'options-editor'
|
|
32
|
-
| 'table-column-editor'
|
|
33
|
-
| 'upload-group-editor'
|
|
34
|
-
| 'validation-rule-editor'
|
|
35
|
-
| 'ai-config-editor'
|
|
36
|
-
| 'icon-picker'
|
|
37
|
-
| 'json'
|
|
38
|
-
| (string & {})
|
|
39
|
-
|
|
40
|
-
export interface LowcodeAgentLibrarySchema {
|
|
41
|
-
name: string
|
|
42
|
-
importPath: string
|
|
43
|
-
framework: LowcodeAgentFramework | (string & {})
|
|
44
|
-
description?: string
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface LowcodeAgentGroupSchema {
|
|
48
|
-
id: string
|
|
49
|
-
title: string
|
|
50
|
-
order?: number
|
|
51
|
-
children: Array<{
|
|
52
|
-
id: string
|
|
53
|
-
title: string
|
|
54
|
-
components: string[]
|
|
55
|
-
}>
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface LowcodeAgentSourceSchema {
|
|
59
|
-
exportName: string
|
|
60
|
-
importPath: string
|
|
61
|
-
path?: string
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface LowcodeAgentPropOptionSchema {
|
|
65
|
-
value: LowcodeAgentJSONValue
|
|
66
|
-
label: string
|
|
67
|
-
disabled?: boolean
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface LowcodeAgentPropSchema {
|
|
71
|
-
name: string
|
|
72
|
-
title: string
|
|
73
|
-
type: string | string[]
|
|
74
|
-
control?: LowcodeAgentControl
|
|
75
|
-
options?: LowcodeAgentPropOptionSchema[]
|
|
76
|
-
default?: LowcodeAgentJSONValue
|
|
77
|
-
bindable: boolean
|
|
78
|
-
advanced: boolean
|
|
79
|
-
hidden: boolean
|
|
80
|
-
required: boolean
|
|
81
|
-
group?: string
|
|
82
|
-
order?: number
|
|
83
|
-
slot?: string
|
|
84
|
-
schemaRef?: string
|
|
85
|
-
description?: string
|
|
86
|
-
itemShape?: Record<string, LowcodeAgentJSONValue>
|
|
87
|
-
[key: string]: unknown
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface LowcodeAgentEventSchema {
|
|
91
|
-
name: string
|
|
92
|
-
eventName: string
|
|
93
|
-
title: string
|
|
94
|
-
payload: Record<string, LowcodeAgentJSONValue | string>
|
|
95
|
-
group?: string
|
|
96
|
-
order?: number
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface LowcodeAgentMethodSchema {
|
|
100
|
-
name: string
|
|
101
|
-
title: string
|
|
102
|
-
callable: boolean
|
|
103
|
-
returnType?: string
|
|
104
|
-
params?: Array<{
|
|
105
|
-
name: string
|
|
106
|
-
title: string
|
|
107
|
-
type: string | string[]
|
|
108
|
-
required?: boolean
|
|
109
|
-
default?: LowcodeAgentJSONValue
|
|
110
|
-
description?: string
|
|
111
|
-
}>
|
|
112
|
-
description?: string
|
|
113
|
-
actionType?: string
|
|
114
|
-
successCondition?: string
|
|
115
|
-
failureCondition?: string
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface LowcodeAgentSlotSchema {
|
|
119
|
-
name: string
|
|
120
|
-
title: string
|
|
121
|
-
kind?: 'text' | 'canvas' | 'internal'
|
|
122
|
-
accepts: string[]
|
|
123
|
-
multiple: boolean
|
|
124
|
-
required: boolean
|
|
125
|
-
editor?: {
|
|
126
|
-
droppable: boolean
|
|
127
|
-
canvasVisible: boolean
|
|
128
|
-
defaultVisible: boolean
|
|
129
|
-
textConfigurable?: boolean
|
|
130
|
-
bindable?: boolean
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface LowcodeAgentContainerSchema {
|
|
135
|
-
acceptsChildren: true
|
|
136
|
-
defaultDropSlot: string
|
|
137
|
-
allowedChildren: string[]
|
|
138
|
-
defaultChildren?: string[]
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface LowcodeAgentDynamicSlotSchema {
|
|
142
|
-
pattern: string
|
|
143
|
-
fromProp: string
|
|
144
|
-
keyField: string
|
|
145
|
-
titleField?: string
|
|
146
|
-
titleTemplate?: string
|
|
147
|
-
accepts: string[]
|
|
148
|
-
multiple: boolean
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface LowcodeAgentFieldSchema {
|
|
152
|
-
fieldType?: string
|
|
153
|
-
valueType: string | string[]
|
|
154
|
-
bindable: boolean
|
|
155
|
-
defaultFieldName?: string
|
|
156
|
-
formCompatible: boolean
|
|
157
|
-
recommendedInForm?: boolean
|
|
158
|
-
modelProp?: string
|
|
159
|
-
updateEvent?: string
|
|
160
|
-
changeEvent?: string
|
|
161
|
-
validationTriggers?: string[]
|
|
162
|
-
labelProp?: string
|
|
163
|
-
requiredRulePath?: string
|
|
164
|
-
backendSchema?: Record<string, LowcodeAgentJSONValue>
|
|
165
|
-
[key: string]: unknown
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface LowcodeAgentFieldTypeSchema {
|
|
169
|
-
name: string
|
|
170
|
-
title: string
|
|
171
|
-
component: string
|
|
172
|
-
valueType: string[]
|
|
173
|
-
modelProp: string
|
|
174
|
-
updateEvent: string
|
|
175
|
-
defaultProps?: Record<string, LowcodeAgentJSONValue>
|
|
176
|
-
configurableProps?: string[]
|
|
177
|
-
backendSchema?: Record<string, LowcodeAgentJSONValue>
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface LowcodeAgentAiCapabilitySchema {
|
|
181
|
-
id: string
|
|
182
|
-
title: string
|
|
183
|
-
preset: string
|
|
184
|
-
triggerModes: string[]
|
|
185
|
-
defaultNeedConfirm: boolean
|
|
186
|
-
input: Record<string, LowcodeAgentJSONValue | string>
|
|
187
|
-
output: Record<string, LowcodeAgentJSONValue | string>
|
|
188
|
-
defaultApply: string | null
|
|
189
|
-
backendAgentContract?: {
|
|
190
|
-
intent: string
|
|
191
|
-
expectedResponse: Record<string, LowcodeAgentJSONValue | string>
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export interface LowcodeAgentLowcodeSchema {
|
|
196
|
-
palette: {
|
|
197
|
-
icon?: string
|
|
198
|
-
order?: number
|
|
199
|
-
draggable?: boolean
|
|
200
|
-
recommended?: boolean
|
|
201
|
-
hidden?: boolean
|
|
202
|
-
}
|
|
203
|
-
editor?: {
|
|
204
|
-
canvasSlots: string[]
|
|
205
|
-
defaultEnabledSlots: string[]
|
|
206
|
-
propGroups?: Array<{
|
|
207
|
-
id: string
|
|
208
|
-
title: string
|
|
209
|
-
order?: number
|
|
210
|
-
defaultExpanded?: boolean
|
|
211
|
-
}>
|
|
212
|
-
defaultExpandedPropGroups?: string[]
|
|
213
|
-
eventGroups?: Array<{
|
|
214
|
-
id: string
|
|
215
|
-
title: string
|
|
216
|
-
order?: number
|
|
217
|
-
defaultExpanded?: boolean
|
|
218
|
-
}>
|
|
219
|
-
}
|
|
220
|
-
props: LowcodeAgentPropSchema[]
|
|
221
|
-
events: LowcodeAgentEventSchema[]
|
|
222
|
-
methods?: LowcodeAgentMethodSchema[]
|
|
223
|
-
slots: LowcodeAgentSlotSchema[]
|
|
224
|
-
container?: LowcodeAgentContainerSchema
|
|
225
|
-
dynamicSlots?: LowcodeAgentDynamicSlotSchema[]
|
|
226
|
-
field?: LowcodeAgentFieldSchema
|
|
227
|
-
fieldTypes?: LowcodeAgentFieldTypeSchema[]
|
|
228
|
-
formAdapter?: {
|
|
229
|
-
component: string
|
|
230
|
-
whenParent: string[]
|
|
231
|
-
}
|
|
232
|
-
formFieldFor?: string
|
|
233
|
-
formShell?: boolean
|
|
234
|
-
ai?: {
|
|
235
|
-
configurable: boolean
|
|
236
|
-
editor: LowcodeAgentControl
|
|
237
|
-
dslProp: string
|
|
238
|
-
runtimeProp: string
|
|
239
|
-
capabilityIds: string[]
|
|
240
|
-
stateEvent: string
|
|
241
|
-
consumption?: string
|
|
242
|
-
dslSchemaRef?: string
|
|
243
|
-
runtimeSchemaRef?: string
|
|
244
|
-
}
|
|
245
|
-
aiCapabilities?: LowcodeAgentAiCapabilitySchema[]
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export interface LowcodeAgentComponentSchema {
|
|
249
|
-
name: string
|
|
250
|
-
title: string
|
|
251
|
-
category: LowcodeAgentComponentCategory | (string & {})
|
|
252
|
-
group: string
|
|
253
|
-
source: LowcodeAgentSourceSchema
|
|
254
|
-
lowcode: LowcodeAgentLowcodeSchema
|
|
255
|
-
agent?: Record<string, unknown>
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface LowcodeAgentSceneTemplateSchema {
|
|
259
|
-
id: string
|
|
260
|
-
title: string
|
|
261
|
-
description?: string
|
|
262
|
-
recommendedComponents: string[]
|
|
263
|
-
agentIntentExamples?: string[]
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface LowcodeAgentComponentRegistry {
|
|
267
|
-
schemaVersion: string
|
|
268
|
-
library: LowcodeAgentLibrarySchema
|
|
269
|
-
groups: LowcodeAgentGroupSchema[]
|
|
270
|
-
components: LowcodeAgentComponentSchema[]
|
|
271
|
-
sceneTemplates: LowcodeAgentSceneTemplateSchema[]
|
|
272
|
-
agentCapabilityIndex: Record<string, string[]>
|
|
273
|
-
aiRuntimeContract: Record<string, unknown>
|
|
274
|
-
controlContract?: Record<string, unknown>
|
|
275
|
-
registryConventions?: Record<string, unknown>
|
|
276
|
-
formFieldContract?: Record<string, unknown>
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export interface LowcodeAgentIconGroupSchema {
|
|
280
|
-
id: string
|
|
281
|
-
title: string
|
|
282
|
-
order?: number
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface LowcodeAgentIconSchema {
|
|
286
|
-
name: string
|
|
287
|
-
label: string
|
|
288
|
-
category: string
|
|
289
|
-
keywords?: string[]
|
|
290
|
-
aliases?: string[]
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export interface LowcodeAgentIconRegistry {
|
|
294
|
-
schemaVersion: string
|
|
295
|
-
library: {
|
|
296
|
-
name: string
|
|
297
|
-
packageName: string
|
|
298
|
-
importPath: string
|
|
299
|
-
}
|
|
300
|
-
valueShape: {
|
|
301
|
-
library: string
|
|
302
|
-
name: string
|
|
303
|
-
}
|
|
304
|
-
groups: LowcodeAgentIconGroupSchema[]
|
|
305
|
-
icons: LowcodeAgentIconSchema[]
|
|
306
|
-
runtimeContract: {
|
|
307
|
-
saveAs: string
|
|
308
|
-
resolver: string
|
|
309
|
-
fallback: string
|
|
310
|
-
renderHint: string
|
|
311
|
-
}
|
|
312
|
-
}
|
|
1
|
+
export type LowcodeAgentJSONPrimitive = string | number | boolean | null
|
|
2
|
+
|
|
3
|
+
export type LowcodeAgentJSONValue =
|
|
4
|
+
| LowcodeAgentJSONPrimitive
|
|
5
|
+
| LowcodeAgentJSONValue[]
|
|
6
|
+
| { [key: string]: LowcodeAgentJSONValue }
|
|
7
|
+
|
|
8
|
+
export type LowcodeAgentFramework = 'vue3'
|
|
9
|
+
|
|
10
|
+
export type LowcodeAgentComponentCategory =
|
|
11
|
+
| 'layout'
|
|
12
|
+
| 'basic'
|
|
13
|
+
| 'form'
|
|
14
|
+
| 'display'
|
|
15
|
+
| 'nav'
|
|
16
|
+
| 'feedback'
|
|
17
|
+
| 'business'
|
|
18
|
+
| 'ai'
|
|
19
|
+
|
|
20
|
+
export type LowcodeAgentControl =
|
|
21
|
+
| 'text'
|
|
22
|
+
| 'textarea'
|
|
23
|
+
| 'number'
|
|
24
|
+
| 'switch'
|
|
25
|
+
| 'select'
|
|
26
|
+
| 'multi-select'
|
|
27
|
+
| 'segmented'
|
|
28
|
+
| 'date'
|
|
29
|
+
| 'data-binding'
|
|
30
|
+
| 'state-binding'
|
|
31
|
+
| 'options-editor'
|
|
32
|
+
| 'table-column-editor'
|
|
33
|
+
| 'upload-group-editor'
|
|
34
|
+
| 'validation-rule-editor'
|
|
35
|
+
| 'ai-config-editor'
|
|
36
|
+
| 'icon-picker'
|
|
37
|
+
| 'json'
|
|
38
|
+
| (string & {})
|
|
39
|
+
|
|
40
|
+
export interface LowcodeAgentLibrarySchema {
|
|
41
|
+
name: string
|
|
42
|
+
importPath: string
|
|
43
|
+
framework: LowcodeAgentFramework | (string & {})
|
|
44
|
+
description?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface LowcodeAgentGroupSchema {
|
|
48
|
+
id: string
|
|
49
|
+
title: string
|
|
50
|
+
order?: number
|
|
51
|
+
children: Array<{
|
|
52
|
+
id: string
|
|
53
|
+
title: string
|
|
54
|
+
components: string[]
|
|
55
|
+
}>
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface LowcodeAgentSourceSchema {
|
|
59
|
+
exportName: string
|
|
60
|
+
importPath: string
|
|
61
|
+
path?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface LowcodeAgentPropOptionSchema {
|
|
65
|
+
value: LowcodeAgentJSONValue
|
|
66
|
+
label: string
|
|
67
|
+
disabled?: boolean
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface LowcodeAgentPropSchema {
|
|
71
|
+
name: string
|
|
72
|
+
title: string
|
|
73
|
+
type: string | string[]
|
|
74
|
+
control?: LowcodeAgentControl
|
|
75
|
+
options?: LowcodeAgentPropOptionSchema[]
|
|
76
|
+
default?: LowcodeAgentJSONValue
|
|
77
|
+
bindable: boolean
|
|
78
|
+
advanced: boolean
|
|
79
|
+
hidden: boolean
|
|
80
|
+
required: boolean
|
|
81
|
+
group?: string
|
|
82
|
+
order?: number
|
|
83
|
+
slot?: string
|
|
84
|
+
schemaRef?: string
|
|
85
|
+
description?: string
|
|
86
|
+
itemShape?: Record<string, LowcodeAgentJSONValue>
|
|
87
|
+
[key: string]: unknown
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface LowcodeAgentEventSchema {
|
|
91
|
+
name: string
|
|
92
|
+
eventName: string
|
|
93
|
+
title: string
|
|
94
|
+
payload: Record<string, LowcodeAgentJSONValue | string>
|
|
95
|
+
group?: string
|
|
96
|
+
order?: number
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface LowcodeAgentMethodSchema {
|
|
100
|
+
name: string
|
|
101
|
+
title: string
|
|
102
|
+
callable: boolean
|
|
103
|
+
returnType?: string
|
|
104
|
+
params?: Array<{
|
|
105
|
+
name: string
|
|
106
|
+
title: string
|
|
107
|
+
type: string | string[]
|
|
108
|
+
required?: boolean
|
|
109
|
+
default?: LowcodeAgentJSONValue
|
|
110
|
+
description?: string
|
|
111
|
+
}>
|
|
112
|
+
description?: string
|
|
113
|
+
actionType?: string
|
|
114
|
+
successCondition?: string
|
|
115
|
+
failureCondition?: string
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface LowcodeAgentSlotSchema {
|
|
119
|
+
name: string
|
|
120
|
+
title: string
|
|
121
|
+
kind?: 'text' | 'canvas' | 'internal'
|
|
122
|
+
accepts: string[]
|
|
123
|
+
multiple: boolean
|
|
124
|
+
required: boolean
|
|
125
|
+
editor?: {
|
|
126
|
+
droppable: boolean
|
|
127
|
+
canvasVisible: boolean
|
|
128
|
+
defaultVisible: boolean
|
|
129
|
+
textConfigurable?: boolean
|
|
130
|
+
bindable?: boolean
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface LowcodeAgentContainerSchema {
|
|
135
|
+
acceptsChildren: true
|
|
136
|
+
defaultDropSlot: string
|
|
137
|
+
allowedChildren: string[]
|
|
138
|
+
defaultChildren?: string[]
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface LowcodeAgentDynamicSlotSchema {
|
|
142
|
+
pattern: string
|
|
143
|
+
fromProp: string
|
|
144
|
+
keyField: string
|
|
145
|
+
titleField?: string
|
|
146
|
+
titleTemplate?: string
|
|
147
|
+
accepts: string[]
|
|
148
|
+
multiple: boolean
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface LowcodeAgentFieldSchema {
|
|
152
|
+
fieldType?: string
|
|
153
|
+
valueType: string | string[]
|
|
154
|
+
bindable: boolean
|
|
155
|
+
defaultFieldName?: string
|
|
156
|
+
formCompatible: boolean
|
|
157
|
+
recommendedInForm?: boolean
|
|
158
|
+
modelProp?: string
|
|
159
|
+
updateEvent?: string
|
|
160
|
+
changeEvent?: string
|
|
161
|
+
validationTriggers?: string[]
|
|
162
|
+
labelProp?: string
|
|
163
|
+
requiredRulePath?: string
|
|
164
|
+
backendSchema?: Record<string, LowcodeAgentJSONValue>
|
|
165
|
+
[key: string]: unknown
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface LowcodeAgentFieldTypeSchema {
|
|
169
|
+
name: string
|
|
170
|
+
title: string
|
|
171
|
+
component: string
|
|
172
|
+
valueType: string[]
|
|
173
|
+
modelProp: string
|
|
174
|
+
updateEvent: string
|
|
175
|
+
defaultProps?: Record<string, LowcodeAgentJSONValue>
|
|
176
|
+
configurableProps?: string[]
|
|
177
|
+
backendSchema?: Record<string, LowcodeAgentJSONValue>
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface LowcodeAgentAiCapabilitySchema {
|
|
181
|
+
id: string
|
|
182
|
+
title: string
|
|
183
|
+
preset: string
|
|
184
|
+
triggerModes: string[]
|
|
185
|
+
defaultNeedConfirm: boolean
|
|
186
|
+
input: Record<string, LowcodeAgentJSONValue | string>
|
|
187
|
+
output: Record<string, LowcodeAgentJSONValue | string>
|
|
188
|
+
defaultApply: string | null
|
|
189
|
+
backendAgentContract?: {
|
|
190
|
+
intent: string
|
|
191
|
+
expectedResponse: Record<string, LowcodeAgentJSONValue | string>
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface LowcodeAgentLowcodeSchema {
|
|
196
|
+
palette: {
|
|
197
|
+
icon?: string
|
|
198
|
+
order?: number
|
|
199
|
+
draggable?: boolean
|
|
200
|
+
recommended?: boolean
|
|
201
|
+
hidden?: boolean
|
|
202
|
+
}
|
|
203
|
+
editor?: {
|
|
204
|
+
canvasSlots: string[]
|
|
205
|
+
defaultEnabledSlots: string[]
|
|
206
|
+
propGroups?: Array<{
|
|
207
|
+
id: string
|
|
208
|
+
title: string
|
|
209
|
+
order?: number
|
|
210
|
+
defaultExpanded?: boolean
|
|
211
|
+
}>
|
|
212
|
+
defaultExpandedPropGroups?: string[]
|
|
213
|
+
eventGroups?: Array<{
|
|
214
|
+
id: string
|
|
215
|
+
title: string
|
|
216
|
+
order?: number
|
|
217
|
+
defaultExpanded?: boolean
|
|
218
|
+
}>
|
|
219
|
+
}
|
|
220
|
+
props: LowcodeAgentPropSchema[]
|
|
221
|
+
events: LowcodeAgentEventSchema[]
|
|
222
|
+
methods?: LowcodeAgentMethodSchema[]
|
|
223
|
+
slots: LowcodeAgentSlotSchema[]
|
|
224
|
+
container?: LowcodeAgentContainerSchema
|
|
225
|
+
dynamicSlots?: LowcodeAgentDynamicSlotSchema[]
|
|
226
|
+
field?: LowcodeAgentFieldSchema
|
|
227
|
+
fieldTypes?: LowcodeAgentFieldTypeSchema[]
|
|
228
|
+
formAdapter?: {
|
|
229
|
+
component: string
|
|
230
|
+
whenParent: string[]
|
|
231
|
+
}
|
|
232
|
+
formFieldFor?: string
|
|
233
|
+
formShell?: boolean
|
|
234
|
+
ai?: {
|
|
235
|
+
configurable: boolean
|
|
236
|
+
editor: LowcodeAgentControl
|
|
237
|
+
dslProp: string
|
|
238
|
+
runtimeProp: string
|
|
239
|
+
capabilityIds: string[]
|
|
240
|
+
stateEvent: string
|
|
241
|
+
consumption?: string
|
|
242
|
+
dslSchemaRef?: string
|
|
243
|
+
runtimeSchemaRef?: string
|
|
244
|
+
}
|
|
245
|
+
aiCapabilities?: LowcodeAgentAiCapabilitySchema[]
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface LowcodeAgentComponentSchema {
|
|
249
|
+
name: string
|
|
250
|
+
title: string
|
|
251
|
+
category: LowcodeAgentComponentCategory | (string & {})
|
|
252
|
+
group: string
|
|
253
|
+
source: LowcodeAgentSourceSchema
|
|
254
|
+
lowcode: LowcodeAgentLowcodeSchema
|
|
255
|
+
agent?: Record<string, unknown>
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface LowcodeAgentSceneTemplateSchema {
|
|
259
|
+
id: string
|
|
260
|
+
title: string
|
|
261
|
+
description?: string
|
|
262
|
+
recommendedComponents: string[]
|
|
263
|
+
agentIntentExamples?: string[]
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface LowcodeAgentComponentRegistry {
|
|
267
|
+
schemaVersion: string
|
|
268
|
+
library: LowcodeAgentLibrarySchema
|
|
269
|
+
groups: LowcodeAgentGroupSchema[]
|
|
270
|
+
components: LowcodeAgentComponentSchema[]
|
|
271
|
+
sceneTemplates: LowcodeAgentSceneTemplateSchema[]
|
|
272
|
+
agentCapabilityIndex: Record<string, string[]>
|
|
273
|
+
aiRuntimeContract: Record<string, unknown>
|
|
274
|
+
controlContract?: Record<string, unknown>
|
|
275
|
+
registryConventions?: Record<string, unknown>
|
|
276
|
+
formFieldContract?: Record<string, unknown>
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface LowcodeAgentIconGroupSchema {
|
|
280
|
+
id: string
|
|
281
|
+
title: string
|
|
282
|
+
order?: number
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface LowcodeAgentIconSchema {
|
|
286
|
+
name: string
|
|
287
|
+
label: string
|
|
288
|
+
category: string
|
|
289
|
+
keywords?: string[]
|
|
290
|
+
aliases?: string[]
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export interface LowcodeAgentIconRegistry {
|
|
294
|
+
schemaVersion: string
|
|
295
|
+
library: {
|
|
296
|
+
name: string
|
|
297
|
+
packageName: string
|
|
298
|
+
importPath: string
|
|
299
|
+
}
|
|
300
|
+
valueShape: {
|
|
301
|
+
library: string
|
|
302
|
+
name: string
|
|
303
|
+
}
|
|
304
|
+
groups: LowcodeAgentIconGroupSchema[]
|
|
305
|
+
icons: LowcodeAgentIconSchema[]
|
|
306
|
+
runtimeContract: {
|
|
307
|
+
saveAs: string
|
|
308
|
+
resolver: string
|
|
309
|
+
fallback: string
|
|
310
|
+
renderHint: string
|
|
311
|
+
}
|
|
312
|
+
}
|