@qingflow-tech/qingflow-cli 1.1.43-beta.1 → 1.1.43-beta.3

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.
Files changed (66) hide show
  1. package/README.md +12 -5
  2. package/entry_point.py +1 -1
  3. package/npm/bin/qingflow.mjs +1 -2
  4. package/npm/lib/runtime.mjs +3 -7
  5. package/package.json +1 -2
  6. package/pyproject.toml +1 -3
  7. package/skills/qingflow-app-form/SKILL.md +63 -0
  8. package/skills/qingflow-app-form/agents/openai.yaml +4 -0
  9. package/skills/qingflow-cli/SKILL.md +8 -6
  10. package/skills/qingflow-cli/manifest.yaml +1 -1
  11. package/skills/qingflow-cli/reference/QINGFLOW_CLI_BUILDER_APP_DELIVERY_WORKFLOW.md +4 -4
  12. package/skills/qingflow-cli/reference/QINGFLOW_CLI_EXPLORATION_REPORT.md +1 -1
  13. package/skills/qingflow-cli/reference/QINGFLOW_CLI_FIELD_DATA_TYPES.md +1 -1
  14. package/skills/qingflow-cli/reference/QINGFLOW_CLI_SCHEMA_APPLY_FIELD_TYPES_AND_SCENARIOS.md +4 -4
  15. package/skills/qingflow-cli/reference/builder/10-build-single-app.md +5 -5
  16. package/skills/qingflow-cli/reference/builder/20-build-complete-system.md +14 -14
  17. package/skills/qingflow-cli/reference/builder/30-schema-fields.md +98 -101
  18. package/skills/qingflow-cli/reference/builder/40-layout.md +39 -31
  19. package/skills/qingflow-cli/reference/builder/README.md +9 -9
  20. package/skills/qingflow-cli/reference/builder/code-integrations/README.md +4 -2
  21. package/skills/qingflow-cli/reference/builder/code-integrations/code-block.md +2 -0
  22. package/skills/qingflow-cli/reference/builder/code-integrations/q-linker.md +2 -0
  23. package/skills/qingflow-cli/reference/builder/reference/app-delivery-sop.md +45 -38
  24. package/skills/qingflow-cli/reference/core/QINGFLOW_CLI_EXPLORATION_REPORT.md +1 -1
  25. package/skills/qingflow-cli/reference/core/QINGFLOW_CLI_FIELD_DATA_TYPES.md +1 -1
  26. package/skills/qingflow-cli/reference/examples/README.md +3 -3
  27. package/skills/qingflow-common/SKILL.md +47 -0
  28. package/skills/qingflow-common/agents/openai.yaml +4 -0
  29. package/src/qingflow_mcp/__main__.py +2 -3
  30. package/src/qingflow_mcp/app_form_compat.py +6 -1
  31. package/src/qingflow_mcp/builder_facade/app_form.py +547 -18
  32. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/complete.json +1321 -178
  33. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/address.json +268 -7
  34. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/amount.json +115 -10
  35. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/attachment.json +304 -7
  36. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/code_block.json +23 -4
  37. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/data_relation.json +23 -4
  38. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/date.json +23 -4
  39. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/datetime.json +23 -4
  40. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/department.json +145 -4
  41. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/email.json +69 -10
  42. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/link.json +69 -10
  43. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/long_text.json +69 -10
  44. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/member.json +360 -7
  45. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/multi_select.json +71 -4
  46. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/number.json +115 -10
  47. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/phone.json +78 -10
  48. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/q_linker.json +23 -4
  49. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/relation.json +249 -4
  50. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/single_choice.json +71 -4
  51. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/single_select.json +71 -4
  52. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/subtable.json +1041 -20
  53. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/text.json +69 -10
  54. package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/summary.json +23 -0
  55. package/src/qingflow_mcp/response_trim.py +41 -1
  56. package/src/qingflow_mcp/server.py +24 -3
  57. package/src/qingflow_mcp/server_app_builder.py +1 -1
  58. package/src/qingflow_mcp/tools/record_tools.py +3 -3
  59. package/src/qingflow_mcp/version.py +2 -4
  60. package/docs/local-agent-install.md +0 -370
  61. package/skills/qingflow-mcp-setup/SKILL.md +0 -115
  62. package/skills/qingflow-mcp-setup/agents/openai.yaml +0 -4
  63. package/skills/qingflow-mcp-setup/references/claude-desktop.md +0 -34
  64. package/skills/qingflow-mcp-setup/references/environments.md +0 -62
  65. package/skills/qingflow-mcp-setup/references/generic-stdio.md +0 -32
  66. package/skills/qingflow-mcp-setup/scripts/check_local_server.sh +0 -38
@@ -1,21 +1,282 @@
1
1
  {
2
2
  "$defs": {
3
- "EmptyConfig": {
3
+ "AnswerValue": {
4
4
  "additionalProperties": false,
5
- "description": "该字段类型没有特殊配置。",
5
+ "properties": {
6
+ "dataValue": {
7
+ "type": [
8
+ "string",
9
+ "null"
10
+ ]
11
+ },
12
+ "email": {
13
+ "type": [
14
+ "string",
15
+ "null"
16
+ ]
17
+ },
18
+ "id": {
19
+ "type": [
20
+ "integer",
21
+ "null"
22
+ ]
23
+ },
24
+ "optionId": {
25
+ "type": [
26
+ "string",
27
+ "null"
28
+ ]
29
+ },
30
+ "ordinal": {
31
+ "type": [
32
+ "integer",
33
+ "null"
34
+ ]
35
+ },
36
+ "otherInfo": {
37
+ "type": [
38
+ "string",
39
+ "null"
40
+ ]
41
+ },
42
+ "pluginValue": {
43
+ "type": [
44
+ "string",
45
+ "null"
46
+ ]
47
+ },
48
+ "queId": {
49
+ "type": [
50
+ "integer",
51
+ "null"
52
+ ]
53
+ },
54
+ "value": {
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ]
59
+ },
60
+ "valueStr": {
61
+ "type": [
62
+ "string",
63
+ "null"
64
+ ]
65
+ }
66
+ },
67
+ "type": "object"
68
+ },
69
+ "AttachmentConfig": {
70
+ "additionalProperties": false,
71
+ "description": "附件字段上传限制。",
72
+ "properties": {
73
+ "canScan": {
74
+ "type": [
75
+ "boolean",
76
+ "null"
77
+ ]
78
+ },
79
+ "defaultValues": {
80
+ "oneOf": [
81
+ {
82
+ "type": "null"
83
+ },
84
+ {
85
+ "$ref": "#/$defs/DefaultValues"
86
+ }
87
+ ]
88
+ },
89
+ "fileBeingCaptureOnly": {
90
+ "minimum": 0,
91
+ "type": [
92
+ "integer",
93
+ "null"
94
+ ]
95
+ },
96
+ "fileSize": {
97
+ "minimum": 1,
98
+ "type": [
99
+ "integer",
100
+ "null"
101
+ ]
102
+ },
103
+ "fileType": {
104
+ "items": {
105
+ "minLength": 1,
106
+ "type": "string"
107
+ },
108
+ "type": "array"
109
+ },
110
+ "imageCompress": {
111
+ "type": [
112
+ "boolean",
113
+ "null"
114
+ ]
115
+ },
116
+ "maxFileLimit": {
117
+ "minimum": 1,
118
+ "type": [
119
+ "integer",
120
+ "null"
121
+ ]
122
+ },
123
+ "maxFileLimitStatus": {
124
+ "type": [
125
+ "boolean",
126
+ "null"
127
+ ]
128
+ },
129
+ "pluginStatus": {
130
+ "type": [
131
+ "boolean",
132
+ "null"
133
+ ]
134
+ },
135
+ "scanType": {
136
+ "minimum": 0,
137
+ "type": [
138
+ "integer",
139
+ "null"
140
+ ]
141
+ }
142
+ },
143
+ "type": "object"
144
+ },
145
+ "DefaultValues": {
146
+ "additionalProperties": false,
147
+ "properties": {
148
+ "associatedQueType": {
149
+ "type": [
150
+ "integer",
151
+ "null"
152
+ ]
153
+ },
154
+ "beingCanDecrypted": {
155
+ "type": [
156
+ "boolean",
157
+ "null"
158
+ ]
159
+ },
160
+ "beingDesensitized": {
161
+ "type": [
162
+ "boolean",
163
+ "null"
164
+ ]
165
+ },
166
+ "canDecimal": {
167
+ "type": [
168
+ "boolean",
169
+ "null"
170
+ ]
171
+ },
172
+ "currencyStatus": {
173
+ "type": [
174
+ "boolean",
175
+ "null"
176
+ ]
177
+ },
178
+ "currencyType": {
179
+ "type": [
180
+ "integer",
181
+ "null"
182
+ ]
183
+ },
184
+ "dateType": {
185
+ "type": [
186
+ "integer",
187
+ "null"
188
+ ]
189
+ },
190
+ "decimalDigit": {
191
+ "type": [
192
+ "integer",
193
+ "null"
194
+ ]
195
+ },
196
+ "numberFormat": {
197
+ "type": [
198
+ "integer",
199
+ "null"
200
+ ]
201
+ },
202
+ "queId": {
203
+ "type": [
204
+ "integer",
205
+ "null"
206
+ ]
207
+ },
208
+ "queTitle": {
209
+ "type": [
210
+ "string",
211
+ "null"
212
+ ]
213
+ },
214
+ "queType": {
215
+ "type": [
216
+ "integer",
217
+ "null"
218
+ ]
219
+ },
220
+ "referValues": {
221
+ "items": {
222
+ "$ref": "#/$defs/ReferenceDefaultValue"
223
+ },
224
+ "type": "array"
225
+ },
226
+ "rowId": {
227
+ "type": [
228
+ "integer",
229
+ "null"
230
+ ]
231
+ },
232
+ "sourceValue": {
233
+ "type": [
234
+ "string",
235
+ "null"
236
+ ]
237
+ },
238
+ "tableValues": {
239
+ "items": {
240
+ "items": {
241
+ "$ref": "#/$defs/DefaultValues"
242
+ },
243
+ "type": "array"
244
+ },
245
+ "type": "array"
246
+ },
247
+ "values": {
248
+ "items": {
249
+ "$ref": "#/$defs/AnswerValue"
250
+ },
251
+ "type": "array"
252
+ }
253
+ },
254
+ "required": [
255
+ "values"
256
+ ],
6
257
  "type": "object"
7
258
  },
8
259
  "FieldCommon": {
9
260
  "description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
10
261
  "properties": {
11
- "dataCover": {
12
- "description": "是否作为数据封面;仅顶层附件字段可设为 true。",
13
- "type": "boolean"
14
- },
15
262
  "dataTitle": {
16
263
  "description": "是否作为数据标题;整个 body 最多且必须按规则存在一个。",
17
264
  "type": "boolean"
18
265
  },
266
+ "defaultType": {
267
+ "default": 1,
268
+ "description": "默认值类型;1 表示静态值,2 表示关联/绑定值,3 表示公式值。",
269
+ "enum": [
270
+ 1,
271
+ 2,
272
+ 3
273
+ ],
274
+ "type": "integer"
275
+ },
276
+ "defaultValue": {
277
+ "$ref": "#/$defs/ScalarDefaultValue",
278
+ "description": "普通字段的标量默认值;表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
279
+ },
19
280
  "description": {
20
281
  "description": "字段说明;null 或空字符串表示清空。",
21
282
  "type": [
@@ -48,6 +309,39 @@
48
309
  "name"
49
310
  ],
50
311
  "type": "object"
312
+ },
313
+ "ReferenceDefaultValue": {
314
+ "additionalProperties": false,
315
+ "properties": {
316
+ "applyId": {
317
+ "type": [
318
+ "integer",
319
+ "null"
320
+ ]
321
+ },
322
+ "dataTitle": {
323
+ "type": [
324
+ "string",
325
+ "null"
326
+ ]
327
+ },
328
+ "values": {
329
+ "items": {
330
+ "$ref": "#/$defs/DefaultValues"
331
+ },
332
+ "type": "array"
333
+ }
334
+ },
335
+ "type": "object"
336
+ },
337
+ "ScalarDefaultValue": {
338
+ "description": "不包含对象或数组的普通字段默认值。",
339
+ "type": [
340
+ "null",
341
+ "boolean",
342
+ "number",
343
+ "string"
344
+ ]
51
345
  }
52
346
  },
53
347
  "$id": "https://builder.qingflow.com/schemas/app-form-apply/v1alpha1/fields/attachment.json",
@@ -59,7 +353,10 @@
59
353
  {
60
354
  "properties": {
61
355
  "config": {
62
- "$ref": "#/$defs/EmptyConfig"
356
+ "$ref": "#/$defs/AttachmentConfig"
357
+ },
358
+ "dataCover": {
359
+ "type": "boolean"
63
360
  },
64
361
  "type": {
65
362
  "const": "attachment"
@@ -125,14 +125,24 @@
125
125
  "FieldCommon": {
126
126
  "description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
127
127
  "properties": {
128
- "dataCover": {
129
- "description": "是否作为数据封面;仅顶层附件字段可设为 true。",
130
- "type": "boolean"
131
- },
132
128
  "dataTitle": {
133
129
  "description": "是否作为数据标题;整个 body 最多且必须按规则存在一个。",
134
130
  "type": "boolean"
135
131
  },
132
+ "defaultType": {
133
+ "default": 1,
134
+ "description": "默认值类型;1 表示静态值,2 表示关联/绑定值,3 表示公式值。",
135
+ "enum": [
136
+ 1,
137
+ 2,
138
+ 3
139
+ ],
140
+ "type": "integer"
141
+ },
142
+ "defaultValue": {
143
+ "$ref": "#/$defs/ScalarDefaultValue",
144
+ "description": "普通字段的标量默认值;表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
145
+ },
136
146
  "description": {
137
147
  "description": "字段说明;null 或空字符串表示清空。",
138
148
  "type": [
@@ -194,6 +204,15 @@
194
204
  }
195
205
  },
196
206
  "type": "object"
207
+ },
208
+ "ScalarDefaultValue": {
209
+ "description": "不包含对象或数组的普通字段默认值。",
210
+ "type": [
211
+ "null",
212
+ "boolean",
213
+ "number",
214
+ "string"
215
+ ]
197
216
  }
198
217
  },
199
218
  "$id": "https://builder.qingflow.com/schemas/app-form-apply/v1alpha1/fields/code_block.json",
@@ -411,14 +411,24 @@
411
411
  "FieldCommon": {
412
412
  "description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
413
413
  "properties": {
414
- "dataCover": {
415
- "description": "是否作为数据封面;仅顶层附件字段可设为 true。",
416
- "type": "boolean"
417
- },
418
414
  "dataTitle": {
419
415
  "description": "是否作为数据标题;整个 body 最多且必须按规则存在一个。",
420
416
  "type": "boolean"
421
417
  },
418
+ "defaultType": {
419
+ "default": 1,
420
+ "description": "默认值类型;1 表示静态值,2 表示关联/绑定值,3 表示公式值。",
421
+ "enum": [
422
+ 1,
423
+ 2,
424
+ 3
425
+ ],
426
+ "type": "integer"
427
+ },
428
+ "defaultValue": {
429
+ "$ref": "#/$defs/ScalarDefaultValue",
430
+ "description": "普通字段的标量默认值;表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
431
+ },
422
432
  "description": {
423
433
  "description": "字段说明;null 或空字符串表示清空。",
424
434
  "type": [
@@ -509,6 +519,15 @@
509
519
  "type": "object"
510
520
  }
511
521
  ]
522
+ },
523
+ "ScalarDefaultValue": {
524
+ "description": "不包含对象或数组的普通字段默认值。",
525
+ "type": [
526
+ "null",
527
+ "boolean",
528
+ "number",
529
+ "string"
530
+ ]
512
531
  }
513
532
  },
514
533
  "$id": "https://builder.qingflow.com/schemas/app-form-apply/v1alpha1/fields/data_relation.json",
@@ -8,14 +8,24 @@
8
8
  "FieldCommon": {
9
9
  "description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
10
10
  "properties": {
11
- "dataCover": {
12
- "description": "是否作为数据封面;仅顶层附件字段可设为 true。",
13
- "type": "boolean"
14
- },
15
11
  "dataTitle": {
16
12
  "description": "是否作为数据标题;整个 body 最多且必须按规则存在一个。",
17
13
  "type": "boolean"
18
14
  },
15
+ "defaultType": {
16
+ "default": 1,
17
+ "description": "默认值类型;1 表示静态值,2 表示关联/绑定值,3 表示公式值。",
18
+ "enum": [
19
+ 1,
20
+ 2,
21
+ 3
22
+ ],
23
+ "type": "integer"
24
+ },
25
+ "defaultValue": {
26
+ "$ref": "#/$defs/ScalarDefaultValue",
27
+ "description": "普通字段的标量默认值;表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
28
+ },
19
29
  "description": {
20
30
  "description": "字段说明;null 或空字符串表示清空。",
21
31
  "type": [
@@ -48,6 +58,15 @@
48
58
  "name"
49
59
  ],
50
60
  "type": "object"
61
+ },
62
+ "ScalarDefaultValue": {
63
+ "description": "不包含对象或数组的普通字段默认值。",
64
+ "type": [
65
+ "null",
66
+ "boolean",
67
+ "number",
68
+ "string"
69
+ ]
51
70
  }
52
71
  },
53
72
  "$id": "https://builder.qingflow.com/schemas/app-form-apply/v1alpha1/fields/date.json",
@@ -8,14 +8,24 @@
8
8
  "FieldCommon": {
9
9
  "description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
10
10
  "properties": {
11
- "dataCover": {
12
- "description": "是否作为数据封面;仅顶层附件字段可设为 true。",
13
- "type": "boolean"
14
- },
15
11
  "dataTitle": {
16
12
  "description": "是否作为数据标题;整个 body 最多且必须按规则存在一个。",
17
13
  "type": "boolean"
18
14
  },
15
+ "defaultType": {
16
+ "default": 1,
17
+ "description": "默认值类型;1 表示静态值,2 表示关联/绑定值,3 表示公式值。",
18
+ "enum": [
19
+ 1,
20
+ 2,
21
+ 3
22
+ ],
23
+ "type": "integer"
24
+ },
25
+ "defaultValue": {
26
+ "$ref": "#/$defs/ScalarDefaultValue",
27
+ "description": "普通字段的标量默认值;表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
28
+ },
19
29
  "description": {
20
30
  "description": "字段说明;null 或空字符串表示清空。",
21
31
  "type": [
@@ -48,6 +58,15 @@
48
58
  "name"
49
59
  ],
50
60
  "type": "object"
61
+ },
62
+ "ScalarDefaultValue": {
63
+ "description": "不包含对象或数组的普通字段默认值。",
64
+ "type": [
65
+ "null",
66
+ "boolean",
67
+ "number",
68
+ "string"
69
+ ]
51
70
  }
52
71
  },
53
72
  "$id": "https://builder.qingflow.com/schemas/app-form-apply/v1alpha1/fields/datetime.json",
@@ -4,8 +4,39 @@
4
4
  "additionalProperties": false,
5
5
  "description": "部门字段的可选范围配置。",
6
6
  "properties": {
7
+ "beingShowParentPath": {
8
+ "type": [
9
+ "boolean",
10
+ "null"
11
+ ]
12
+ },
13
+ "canScan": {
14
+ "type": [
15
+ "boolean",
16
+ "null"
17
+ ]
18
+ },
19
+ "defaultDepartments": {
20
+ "$ref": "#/$defs/DepartmentScope"
21
+ },
7
22
  "departmentScope": {
8
23
  "$ref": "#/$defs/DepartmentScope"
24
+ },
25
+ "departmentScopeRelation": {
26
+ "$ref": "#/$defs/SelectScopeRelation"
27
+ },
28
+ "noRepeat": {
29
+ "type": [
30
+ "boolean",
31
+ "null"
32
+ ]
33
+ },
34
+ "scanType": {
35
+ "minimum": 0,
36
+ "type": [
37
+ "integer",
38
+ "null"
39
+ ]
9
40
  }
10
41
  },
11
42
  "required": [
@@ -56,6 +87,21 @@
56
87
  "departments"
57
88
  ],
58
89
  "type": "object"
90
+ },
91
+ {
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "includeSubDeparts": {
95
+ "type": "boolean"
96
+ },
97
+ "mode": {
98
+ "const": "relation"
99
+ }
100
+ },
101
+ "required": [
102
+ "mode"
103
+ ],
104
+ "type": "object"
59
105
  }
60
106
  ]
61
107
  },
@@ -80,14 +126,24 @@
80
126
  "FieldCommon": {
81
127
  "description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
82
128
  "properties": {
83
- "dataCover": {
84
- "description": "是否作为数据封面;仅顶层附件字段可设为 true。",
85
- "type": "boolean"
86
- },
87
129
  "dataTitle": {
88
130
  "description": "是否作为数据标题;整个 body 最多且必须按规则存在一个。",
89
131
  "type": "boolean"
90
132
  },
133
+ "defaultType": {
134
+ "default": 1,
135
+ "description": "默认值类型;1 表示静态值,2 表示关联/绑定值,3 表示公式值。",
136
+ "enum": [
137
+ 1,
138
+ 2,
139
+ 3
140
+ ],
141
+ "type": "integer"
142
+ },
143
+ "defaultValue": {
144
+ "$ref": "#/$defs/ScalarDefaultValue",
145
+ "description": "普通字段的标量默认值;表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
146
+ },
91
147
  "description": {
92
148
  "description": "字段说明;null 或空字符串表示清空。",
93
149
  "type": [
@@ -120,6 +176,91 @@
120
176
  "name"
121
177
  ],
122
178
  "type": "object"
179
+ },
180
+ "FieldSelector": {
181
+ "additionalProperties": false,
182
+ "anyOf": [
183
+ {
184
+ "required": [
185
+ "queId"
186
+ ]
187
+ },
188
+ {
189
+ "required": [
190
+ "name"
191
+ ]
192
+ }
193
+ ],
194
+ "description": "跨字段引用选择器;至少提供 queId 或 name,两者同时提供时必须指向同一字段。",
195
+ "properties": {
196
+ "name": {
197
+ "description": "字段名称;仅在当前作用域内唯一时可用于解析。",
198
+ "minLength": 1,
199
+ "type": "string"
200
+ },
201
+ "queId": {
202
+ "description": "已有字段的后端 ID;优先用于精确解析。",
203
+ "minimum": 1,
204
+ "type": "integer"
205
+ }
206
+ },
207
+ "type": "object"
208
+ },
209
+ "ScalarDefaultValue": {
210
+ "description": "不包含对象或数组的普通字段默认值。",
211
+ "type": [
212
+ "null",
213
+ "boolean",
214
+ "number",
215
+ "string"
216
+ ]
217
+ },
218
+ "SelectScopeRelation": {
219
+ "additionalProperties": false,
220
+ "properties": {
221
+ "displayedField": {
222
+ "$ref": "#/$defs/FieldSelector"
223
+ },
224
+ "displayedFieldType": {
225
+ "type": [
226
+ "integer",
227
+ "null"
228
+ ]
229
+ },
230
+ "matchRuleFormula": {
231
+ "type": [
232
+ "string",
233
+ "null"
234
+ ]
235
+ },
236
+ "matchRuleType": {
237
+ "type": [
238
+ "integer",
239
+ "null"
240
+ ]
241
+ },
242
+ "matchRules": {
243
+ "type": [
244
+ "array",
245
+ "null"
246
+ ]
247
+ },
248
+ "targetAppKey": {
249
+ "minLength": 1,
250
+ "type": "string"
251
+ },
252
+ "targetAppTitle": {
253
+ "type": [
254
+ "string",
255
+ "null"
256
+ ]
257
+ }
258
+ },
259
+ "required": [
260
+ "displayedField",
261
+ "targetAppKey"
262
+ ],
263
+ "type": "object"
123
264
  }
124
265
  },
125
266
  "$id": "https://builder.qingflow.com/schemas/app-form-apply/v1alpha1/fields/department.json",