@tongfun/ui 0.0.1-alpha.3 → 0.0.1-alpha.5
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 +166 -4
- package/dist/index.js +176655 -128808
- package/dist/lowcode-agent/icons.d.ts +2 -1
- package/dist/lowcode-agent/icons.js +76 -0
- package/dist/lowcode-agent/index.d.ts +2 -0
- package/dist/lowcode-agent/index.js +45305 -14735
- package/dist/lowcode-agent/types.d.ts +469 -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 +100 -91
|
@@ -1,312 +1,469 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
| '
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
| '
|
|
22
|
-
| '
|
|
23
|
-
| '
|
|
24
|
-
| '
|
|
25
|
-
| '
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
| '
|
|
29
|
-
| '
|
|
30
|
-
| '
|
|
31
|
-
| '
|
|
32
|
-
| '
|
|
33
|
-
| '
|
|
34
|
-
| '
|
|
35
|
-
| '
|
|
36
|
-
| '
|
|
37
|
-
| '
|
|
38
|
-
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
+
/**
|
|
11
|
+
* Material icons use the PascalCase export names exposed by lucide-vue-next.
|
|
12
|
+
* The registry and icon picker must resolve this value without a kebab-case
|
|
13
|
+
* conversion or a custom alias table.
|
|
14
|
+
*/
|
|
15
|
+
export type LowcodeAgentLucideIconName = `${Uppercase<string>}${string}`
|
|
16
|
+
|
|
17
|
+
export type LowcodeAgentComponentCategory =
|
|
18
|
+
| 'layout'
|
|
19
|
+
| 'basic'
|
|
20
|
+
| 'form'
|
|
21
|
+
| 'display'
|
|
22
|
+
| 'nav'
|
|
23
|
+
| 'feedback'
|
|
24
|
+
| 'business'
|
|
25
|
+
| 'ai'
|
|
26
|
+
|
|
27
|
+
export type LowcodeAgentControl =
|
|
28
|
+
| 'text'
|
|
29
|
+
| 'textarea'
|
|
30
|
+
| 'number'
|
|
31
|
+
| 'switch'
|
|
32
|
+
| 'select'
|
|
33
|
+
| 'multi-select'
|
|
34
|
+
| 'segmented'
|
|
35
|
+
| 'date'
|
|
36
|
+
| 'data-binding'
|
|
37
|
+
| 'state-binding'
|
|
38
|
+
| 'options-editor'
|
|
39
|
+
| 'table-column-editor'
|
|
40
|
+
| 'upload-group-editor'
|
|
41
|
+
| 'validation-rule-editor'
|
|
42
|
+
| 'ai-config-editor'
|
|
43
|
+
| 'icon-picker'
|
|
44
|
+
| 'json'
|
|
45
|
+
| (string & {})
|
|
46
|
+
|
|
47
|
+
export interface LowcodeAgentLibrarySchema {
|
|
48
|
+
name: string
|
|
49
|
+
importPath: string
|
|
50
|
+
framework: LowcodeAgentFramework | (string & {})
|
|
51
|
+
description?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface LowcodeAgentGroupSchema {
|
|
55
|
+
id: string
|
|
56
|
+
title: string
|
|
57
|
+
order?: number
|
|
58
|
+
children: Array<{
|
|
59
|
+
id: string
|
|
60
|
+
title: string
|
|
61
|
+
components: string[]
|
|
62
|
+
}>
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface LowcodeAgentSourceSchema {
|
|
66
|
+
exportName: string
|
|
67
|
+
importPath: string
|
|
68
|
+
path?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface LowcodeAgentPropOptionSchema {
|
|
72
|
+
value: LowcodeAgentJSONValue
|
|
73
|
+
label: string
|
|
74
|
+
disabled?: boolean
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface LowcodeAgentPropSchema {
|
|
78
|
+
name: string
|
|
79
|
+
title: string
|
|
80
|
+
type: string | string[]
|
|
81
|
+
control?: LowcodeAgentControl
|
|
82
|
+
options?: LowcodeAgentPropOptionSchema[]
|
|
83
|
+
default?: LowcodeAgentJSONValue
|
|
84
|
+
bindable: boolean
|
|
85
|
+
advanced: boolean
|
|
86
|
+
hidden: boolean
|
|
87
|
+
required: boolean
|
|
88
|
+
group?: string
|
|
89
|
+
order?: number
|
|
90
|
+
slot?: string
|
|
91
|
+
schemaRef?: string
|
|
92
|
+
description?: string
|
|
93
|
+
itemShape?: Record<string, LowcodeAgentJSONValue>
|
|
94
|
+
[key: string]: unknown
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface LowcodeAgentEventSchema {
|
|
98
|
+
name: string
|
|
99
|
+
eventName: string
|
|
100
|
+
title: string
|
|
101
|
+
payload: Record<string, LowcodeAgentJSONValue | string>
|
|
102
|
+
group?: string
|
|
103
|
+
order?: number
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface LowcodeAgentMethodSchema {
|
|
107
|
+
name: string
|
|
108
|
+
title: string
|
|
109
|
+
callable: boolean
|
|
110
|
+
returnType?: string
|
|
111
|
+
params?: Array<{
|
|
112
|
+
name: string
|
|
113
|
+
title: string
|
|
114
|
+
type: string | string[]
|
|
115
|
+
required?: boolean
|
|
116
|
+
default?: LowcodeAgentJSONValue
|
|
117
|
+
description?: string
|
|
118
|
+
}>
|
|
119
|
+
description?: string
|
|
120
|
+
actionType?: string
|
|
121
|
+
successCondition?: string
|
|
122
|
+
failureCondition?: string
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface LowcodeAgentSlotSchema {
|
|
126
|
+
name: string
|
|
127
|
+
title: string
|
|
128
|
+
kind?: 'text' | 'canvas' | 'internal'
|
|
129
|
+
accepts: string[]
|
|
130
|
+
multiple: boolean
|
|
131
|
+
required: boolean
|
|
132
|
+
editor?: {
|
|
133
|
+
droppable: boolean
|
|
134
|
+
canvasVisible: boolean
|
|
135
|
+
defaultVisible: boolean
|
|
136
|
+
textConfigurable?: boolean
|
|
137
|
+
bindable?: boolean
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface LowcodeAgentContainerSchema {
|
|
142
|
+
acceptsChildren: true
|
|
143
|
+
defaultDropSlot: string
|
|
144
|
+
allowedChildren: string[]
|
|
145
|
+
defaultChildren?: string[]
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface LowcodeAgentDynamicSlotSchema {
|
|
149
|
+
pattern: string
|
|
150
|
+
fromProp: string
|
|
151
|
+
keyField: string
|
|
152
|
+
titleField?: string
|
|
153
|
+
titleTemplate?: string
|
|
154
|
+
accepts: string[]
|
|
155
|
+
multiple: boolean
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface LowcodeAgentRelationshipSchema {
|
|
159
|
+
type: string
|
|
160
|
+
source: {
|
|
161
|
+
component: string
|
|
162
|
+
path: string
|
|
163
|
+
field?: string
|
|
164
|
+
}
|
|
165
|
+
target: {
|
|
166
|
+
component: string
|
|
167
|
+
path: string
|
|
168
|
+
field?: string
|
|
169
|
+
}
|
|
170
|
+
scope?: string
|
|
171
|
+
validation?: string
|
|
172
|
+
description?: string
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface LowcodeAgentFieldSchema {
|
|
176
|
+
fieldType?: string
|
|
177
|
+
valueType: string | string[]
|
|
178
|
+
bindable: boolean
|
|
179
|
+
defaultFieldName?: string
|
|
180
|
+
formCompatible: boolean
|
|
181
|
+
recommendedInForm?: boolean
|
|
182
|
+
modelProp?: string
|
|
183
|
+
updateEvent?: string
|
|
184
|
+
changeEvent?: string
|
|
185
|
+
validationTriggers?: string[]
|
|
186
|
+
labelProp?: string
|
|
187
|
+
requiredRulePath?: string
|
|
188
|
+
backendSchema?: Record<string, LowcodeAgentJSONValue>
|
|
189
|
+
wrappedBaseComponent?: string
|
|
190
|
+
wrapperComponent?: string
|
|
191
|
+
formFieldWrapper?: boolean
|
|
192
|
+
[key: string]: unknown
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export type LowcodeDataRole =
|
|
196
|
+
| 'object'
|
|
197
|
+
| 'collection'
|
|
198
|
+
| 'scalar'
|
|
199
|
+
| 'tree'
|
|
200
|
+
| 'options'
|
|
201
|
+
| 'pagination'
|
|
202
|
+
| 'status'
|
|
203
|
+
|
|
204
|
+
export type LowcodeRequestPolicy =
|
|
205
|
+
| 'controlled'
|
|
206
|
+
| 'runtime-only'
|
|
207
|
+
| 'disabled'
|
|
208
|
+
|
|
209
|
+
export type LowcodeErrorConsumer =
|
|
210
|
+
| 'external'
|
|
211
|
+
| 'prop'
|
|
212
|
+
| 'slot'
|
|
213
|
+
|
|
214
|
+
export interface LowcodeErrorChannel {
|
|
215
|
+
consumer: LowcodeErrorConsumer
|
|
216
|
+
stateRole: 'ui' | 'diagnostic'
|
|
217
|
+
visibleProp?: string
|
|
218
|
+
titleProp?: string
|
|
219
|
+
descriptionProp?: string
|
|
220
|
+
retryEvent?: string
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface LowcodeNestedDataBinding {
|
|
224
|
+
key: string
|
|
225
|
+
path: string
|
|
226
|
+
role: LowcodeDataRole
|
|
227
|
+
valueType: string
|
|
228
|
+
bindable: boolean
|
|
229
|
+
writable?: boolean
|
|
230
|
+
default?: LowcodeAgentJSONValue
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface LowcodeDataBinding {
|
|
234
|
+
prop: string
|
|
235
|
+
path?: string
|
|
236
|
+
role: LowcodeDataRole
|
|
237
|
+
valueType: string
|
|
238
|
+
bindable: boolean
|
|
239
|
+
writable?: boolean
|
|
240
|
+
default?: LowcodeAgentJSONValue
|
|
241
|
+
nested?: LowcodeNestedDataBinding[]
|
|
242
|
+
updateEvent?: string
|
|
243
|
+
valueEventPath?: string
|
|
244
|
+
errorChannel?: LowcodeErrorChannel
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface LowcodeDesignDataPolicy {
|
|
248
|
+
requestPolicy: LowcodeRequestPolicy
|
|
249
|
+
emptyStateProps?: Record<string, LowcodeAgentJSONValue>
|
|
250
|
+
disabledInternalRequests?: string[]
|
|
251
|
+
note?: string
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface LowcodeColumnContractRef {
|
|
255
|
+
prop: 'columns'
|
|
256
|
+
type: 'PersistableTfColumnDef[]'
|
|
257
|
+
schemaRef: 'TfColumnDef.persistable'
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface LowcodeDataCapability {
|
|
261
|
+
roles: LowcodeDataRole[]
|
|
262
|
+
extends?: string[]
|
|
263
|
+
bindings: LowcodeDataBinding[]
|
|
264
|
+
design: LowcodeDesignDataPolicy
|
|
265
|
+
columnContract?: LowcodeColumnContractRef
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface LowcodePersistableColumnPropertySchema {
|
|
269
|
+
type: string | string[]
|
|
270
|
+
required?: boolean
|
|
271
|
+
default?: LowcodeAgentJSONValue
|
|
272
|
+
options?: LowcodeAgentPropOptionSchema[]
|
|
273
|
+
description?: string
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface LowcodePersistableColumnContractSchema {
|
|
277
|
+
kind: 'interface'
|
|
278
|
+
runtimeType: 'TfColumnDef'
|
|
279
|
+
persistableType: 'PersistableTfColumnDef'
|
|
280
|
+
jsonSafe: true
|
|
281
|
+
fields: Record<string, LowcodePersistableColumnPropertySchema>
|
|
282
|
+
disallowedRuntimeFields: string[]
|
|
283
|
+
description?: string
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface PersistableTfColumnDef {
|
|
287
|
+
field?: string
|
|
288
|
+
fieldId?: string | number
|
|
289
|
+
headerName?: string
|
|
290
|
+
width?: number
|
|
291
|
+
editable?: boolean
|
|
292
|
+
fieldType?: string
|
|
293
|
+
elementPosition?: 'left' | 'center' | 'right'
|
|
294
|
+
required?: boolean
|
|
295
|
+
isQuery?: boolean
|
|
296
|
+
isSum?: boolean
|
|
297
|
+
isChooseSum?: boolean
|
|
298
|
+
isFreeze?: boolean
|
|
299
|
+
isShow?: boolean
|
|
300
|
+
fieldWidth?: number
|
|
301
|
+
fieldIndex?: number
|
|
302
|
+
options?: Array<{ label: string; value: string | number | boolean | null; disabled?: boolean }>
|
|
303
|
+
numberConfig?: Record<string, LowcodeAgentJSONValue>
|
|
304
|
+
decimalConfig?: Record<string, LowcodeAgentJSONValue>
|
|
305
|
+
selectConfig?: Record<string, LowcodeAgentJSONValue>
|
|
306
|
+
basicDataConfig?: Record<string, LowcodeAgentJSONValue>
|
|
307
|
+
tagConfig?: Record<string, LowcodeAgentJSONValue>
|
|
308
|
+
statusConfig?: Record<string, LowcodeAgentJSONValue>
|
|
309
|
+
props?: Record<string, LowcodeAgentJSONValue>
|
|
310
|
+
events?: Record<string, LowcodeAgentJSONValue[]>
|
|
311
|
+
carryMappings?: LowcodeAgentJSONValue[]
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface LowcodeAgentFieldTypeSchema {
|
|
315
|
+
name: string
|
|
316
|
+
title: string
|
|
317
|
+
component: string
|
|
318
|
+
valueType: string[]
|
|
319
|
+
modelProp: string
|
|
320
|
+
updateEvent: string
|
|
321
|
+
defaultProps?: Record<string, LowcodeAgentJSONValue>
|
|
322
|
+
configurableProps?: string[]
|
|
323
|
+
backendSchema?: Record<string, LowcodeAgentJSONValue>
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export interface LowcodeAgentAiCapabilitySchema {
|
|
327
|
+
id: string
|
|
328
|
+
title: string
|
|
329
|
+
preset: string
|
|
330
|
+
triggerModes: string[]
|
|
331
|
+
defaultNeedConfirm: boolean
|
|
332
|
+
input: Record<string, LowcodeAgentJSONValue | string>
|
|
333
|
+
output: Record<string, LowcodeAgentJSONValue | string>
|
|
334
|
+
defaultApply: string | null
|
|
335
|
+
backendAgentContract?: {
|
|
336
|
+
intent: string
|
|
337
|
+
expectedResponse: Record<string, LowcodeAgentJSONValue | string>
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export interface LowcodeAgentLowcodeSchema {
|
|
342
|
+
layout?: {
|
|
343
|
+
heightPolicy?: string
|
|
344
|
+
fallbackMinHeight?: number
|
|
345
|
+
[key: string]: unknown
|
|
346
|
+
}
|
|
347
|
+
palette: {
|
|
348
|
+
/** A registered PascalCase export name from lucide-vue-next. */
|
|
349
|
+
icon?: LowcodeAgentLucideIconName
|
|
350
|
+
order?: number
|
|
351
|
+
draggable?: boolean
|
|
352
|
+
recommended?: boolean
|
|
353
|
+
hidden?: boolean
|
|
354
|
+
}
|
|
355
|
+
editor?: {
|
|
356
|
+
canvasSlots: string[]
|
|
357
|
+
defaultEnabledSlots: string[]
|
|
358
|
+
propGroups?: Array<{
|
|
359
|
+
id: string
|
|
360
|
+
title: string
|
|
361
|
+
order?: number
|
|
362
|
+
defaultExpanded?: boolean
|
|
363
|
+
}>
|
|
364
|
+
defaultExpandedPropGroups?: string[]
|
|
365
|
+
eventGroups?: Array<{
|
|
366
|
+
id: string
|
|
367
|
+
title: string
|
|
368
|
+
order?: number
|
|
369
|
+
defaultExpanded?: boolean
|
|
370
|
+
}>
|
|
371
|
+
}
|
|
372
|
+
props: LowcodeAgentPropSchema[]
|
|
373
|
+
events: LowcodeAgentEventSchema[]
|
|
374
|
+
methods?: LowcodeAgentMethodSchema[]
|
|
375
|
+
slots: LowcodeAgentSlotSchema[]
|
|
376
|
+
container?: LowcodeAgentContainerSchema
|
|
377
|
+
dynamicSlots?: LowcodeAgentDynamicSlotSchema[]
|
|
378
|
+
relationships?: LowcodeAgentRelationshipSchema[]
|
|
379
|
+
composition?: Record<string, LowcodeAgentJSONValue>
|
|
380
|
+
customTypes?: Record<string, LowcodeAgentJSONValue>
|
|
381
|
+
field?: LowcodeAgentFieldSchema
|
|
382
|
+
data?: LowcodeDataCapability
|
|
383
|
+
design?: Record<string, LowcodeAgentJSONValue>
|
|
384
|
+
fieldTypes?: LowcodeAgentFieldTypeSchema[]
|
|
385
|
+
formAdapter?: {
|
|
386
|
+
component: string
|
|
387
|
+
whenParent: string[]
|
|
388
|
+
}
|
|
389
|
+
formFieldFor?: string
|
|
390
|
+
formShell?: boolean
|
|
391
|
+
ai?: {
|
|
392
|
+
configurable: boolean
|
|
393
|
+
editor: LowcodeAgentControl
|
|
394
|
+
dslProp: string
|
|
395
|
+
runtimeProp: string
|
|
396
|
+
capabilityIds: string[]
|
|
397
|
+
stateEvent: string
|
|
398
|
+
consumption?: string
|
|
399
|
+
dslSchemaRef?: string
|
|
400
|
+
runtimeSchemaRef?: string
|
|
401
|
+
}
|
|
402
|
+
aiCapabilities?: LowcodeAgentAiCapabilitySchema[]
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export interface LowcodeAgentComponentSchema {
|
|
406
|
+
name: string
|
|
407
|
+
title: string
|
|
408
|
+
category: LowcodeAgentComponentCategory | (string & {})
|
|
409
|
+
group: string
|
|
410
|
+
source: LowcodeAgentSourceSchema
|
|
411
|
+
lowcode: LowcodeAgentLowcodeSchema
|
|
412
|
+
agent?: Record<string, unknown>
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface LowcodeAgentSceneTemplateSchema {
|
|
416
|
+
id: string
|
|
417
|
+
title: string
|
|
418
|
+
description?: string
|
|
419
|
+
recommendedComponents: string[]
|
|
420
|
+
agentIntentExamples?: string[]
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export interface LowcodeAgentComponentRegistry {
|
|
424
|
+
schemaVersion: string
|
|
425
|
+
library: LowcodeAgentLibrarySchema
|
|
426
|
+
groups: LowcodeAgentGroupSchema[]
|
|
427
|
+
components: LowcodeAgentComponentSchema[]
|
|
428
|
+
sceneTemplates: LowcodeAgentSceneTemplateSchema[]
|
|
429
|
+
agentCapabilityIndex: Record<string, string[]>
|
|
430
|
+
aiRuntimeContract: Record<string, unknown>
|
|
431
|
+
controlContract?: Record<string, unknown>
|
|
432
|
+
registryConventions?: Record<string, unknown>
|
|
433
|
+
formFieldContract?: Record<string, unknown>
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export interface LowcodeAgentIconGroupSchema {
|
|
437
|
+
id: string
|
|
438
|
+
title: string
|
|
439
|
+
order?: number
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export interface LowcodeAgentIconSchema {
|
|
443
|
+
name: LowcodeAgentLucideIconName
|
|
444
|
+
label: string
|
|
445
|
+
category: string
|
|
446
|
+
keywords?: string[]
|
|
447
|
+
aliases?: string[]
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export interface LowcodeAgentIconRegistry {
|
|
451
|
+
schemaVersion: string
|
|
452
|
+
library: {
|
|
453
|
+
name: string
|
|
454
|
+
packageName: string
|
|
455
|
+
importPath: string
|
|
456
|
+
}
|
|
457
|
+
valueShape: {
|
|
458
|
+
library: string
|
|
459
|
+
name: LowcodeAgentLucideIconName
|
|
460
|
+
}
|
|
461
|
+
groups: LowcodeAgentIconGroupSchema[]
|
|
462
|
+
icons: LowcodeAgentIconSchema[]
|
|
463
|
+
runtimeContract: {
|
|
464
|
+
saveAs: string
|
|
465
|
+
resolver: string
|
|
466
|
+
fallback: LowcodeAgentLucideIconName
|
|
467
|
+
renderHint: string
|
|
468
|
+
}
|
|
469
|
+
}
|