@nocobase/plugin-flow-engine 2.1.0-alpha.40 → 2.1.0-alpha.46
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/client/index.js +1 -1
- package/dist/externalVersion.js +9 -9
- package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
- package/dist/node_modules/acorn/package.json +1 -1
- package/dist/node_modules/acorn-jsx/package.json +1 -1
- package/dist/node_modules/acorn-walk/package.json +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/apply/compiler.js +28 -14
- package/dist/server/flow-surfaces/apply/matching.js +2 -0
- package/dist/server/flow-surfaces/authoring-validation.d.ts +1 -0
- package/dist/server/flow-surfaces/authoring-validation.js +1453 -151
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +21 -3
- package/dist/server/flow-surfaces/blueprint/compile-plan.js +9 -9
- package/dist/server/flow-surfaces/blueprint/normalize-document.js +5 -1
- package/dist/server/flow-surfaces/catalog.js +26 -9
- package/dist/server/flow-surfaces/chart-config.js +231 -14
- package/dist/server/flow-surfaces/compose-compiler.d.ts +2 -0
- package/dist/server/flow-surfaces/compose-compiler.js +2 -0
- package/dist/server/flow-surfaces/compose-runtime.js +4 -7
- package/dist/server/flow-surfaces/configure-options.js +19 -8
- package/dist/server/flow-surfaces/contract-guard.js +40 -6
- package/dist/server/flow-surfaces/default-block-actions.js +2 -0
- package/dist/server/flow-surfaces/errors.d.ts +15 -0
- package/dist/server/flow-surfaces/errors.js +49 -3
- package/dist/server/flow-surfaces/event-flow-normalizer.d.ts +19 -0
- package/dist/server/flow-surfaces/event-flow-normalizer.js +128 -0
- package/dist/server/flow-surfaces/filter-group.d.ts +9 -1
- package/dist/server/flow-surfaces/filter-group.js +402 -3
- package/dist/server/flow-surfaces/locator.js +16 -2
- package/dist/server/flow-surfaces/public-data-surface-default-filter.js +2 -1
- package/dist/server/flow-surfaces/route-sync.js +19 -2
- package/dist/server/flow-surfaces/runjs-authoring/ast/bindings.d.ts +66 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/bindings.js +661 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/execution.d.ts +20 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/execution.js +275 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/parser.d.ts +16 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/parser.js +130 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/react-values.d.ts +20 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/react-values.js +401 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/request-config.d.ts +21 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/request-config.js +199 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/source.d.ts +70 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/source.js +895 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-bindings.d.ts +23 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-bindings.js +618 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-values.d.ts +196 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-values.js +1777 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/walk.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/walk.js +55 -0
- package/dist/server/flow-surfaces/runjs-authoring/collectors.d.ts +12 -0
- package/dist/server/flow-surfaces/runjs-authoring/collectors.js +589 -0
- package/dist/server/flow-surfaces/runjs-authoring/ctx-libs-member-mismatch-stop/index.js +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/index.d.ts +2 -25
- package/dist/server/flow-surfaces/runjs-authoring/index.js +5 -7033
- package/dist/server/flow-surfaces/runjs-authoring/inspect.d.ts +13 -0
- package/dist/server/flow-surfaces/runjs-authoring/inspect.js +149 -0
- package/dist/server/flow-surfaces/runjs-authoring/internal-types.d.ts +333 -0
- package/dist/server/flow-surfaces/runjs-authoring/internal-types.js +36 -0
- package/dist/server/flow-surfaces/runjs-authoring/rules.js +2 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +67 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +757 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/errors.d.ts +22 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/errors.js +91 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/source-budget.d.ts +16 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/source-budget.js +115 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/surface.d.ts +19 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/surface.js +140 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +91 -0
- package/dist/server/flow-surfaces/runjs-authoring/runtime/types.js +24 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/ctx-api.d.ts +138 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/ctx-api.js +1779 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/filter.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/filter.js +1583 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +195 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +463 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/react-render.d.ts +48 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/react-render.js +379 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/react.d.ts +26 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/react.js +1441 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/resource.d.ts +23 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/resource.js +1427 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +91 -0
- package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +889 -0
- package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/unknown-global-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/unknown-global-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/validators/index.d.ts +12 -0
- package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +887 -0
- package/dist/server/flow-surfaces/service-helpers.d.ts +29 -0
- package/dist/server/flow-surfaces/service-helpers.js +105 -0
- package/dist/server/flow-surfaces/service-utils.d.ts +17 -3
- package/dist/server/flow-surfaces/service-utils.js +14 -5
- package/dist/server/flow-surfaces/service.d.ts +74 -15
- package/dist/server/flow-surfaces/service.js +1781 -193
- package/dist/server/flow-surfaces/template-service-utils.d.ts +1 -0
- package/dist/server/flow-surfaces/types.d.ts +3 -0
- package/dist/server/repository.d.ts +12 -1
- package/dist/server/repository.js +195 -23
- package/dist/swagger/flow-surfaces.d.ts +180 -2
- package/dist/swagger/flow-surfaces.examples.d.ts +11 -37
- package/dist/swagger/flow-surfaces.examples.js +6 -6
- package/dist/swagger/flow-surfaces.js +136 -54
- package/dist/swagger/index.d.ts +180 -2
- package/package.json +2 -2
|
@@ -69,24 +69,19 @@ export declare const flowSurfaceExamples: {
|
|
|
69
69
|
username: string;
|
|
70
70
|
auto: boolean;
|
|
71
71
|
workContext: {
|
|
72
|
-
type: string;
|
|
73
72
|
target: string;
|
|
74
73
|
}[];
|
|
75
74
|
tasks: {
|
|
76
75
|
title: string;
|
|
76
|
+
prompt: string;
|
|
77
77
|
message: {
|
|
78
78
|
system: string;
|
|
79
|
-
user: string;
|
|
80
79
|
workContext: {
|
|
81
|
-
type: string;
|
|
82
80
|
target: string;
|
|
83
81
|
}[];
|
|
84
82
|
};
|
|
85
83
|
autoSend: boolean;
|
|
86
|
-
skillSettings:
|
|
87
|
-
skills: any[];
|
|
88
|
-
tools: any[];
|
|
89
|
-
};
|
|
84
|
+
skillSettings: any;
|
|
90
85
|
model: any;
|
|
91
86
|
webSearch: boolean;
|
|
92
87
|
}[];
|
|
@@ -135,24 +130,19 @@ export declare const flowSurfaceExamples: {
|
|
|
135
130
|
username: string;
|
|
136
131
|
auto: boolean;
|
|
137
132
|
workContext: {
|
|
138
|
-
type: string;
|
|
139
133
|
target: string;
|
|
140
134
|
}[];
|
|
141
135
|
tasks: {
|
|
142
136
|
title: string;
|
|
137
|
+
prompt: string;
|
|
143
138
|
message: {
|
|
144
139
|
system: string;
|
|
145
|
-
user: string;
|
|
146
140
|
workContext: {
|
|
147
|
-
type: string;
|
|
148
141
|
target: string;
|
|
149
142
|
}[];
|
|
150
143
|
};
|
|
151
144
|
autoSend: boolean;
|
|
152
|
-
skillSettings:
|
|
153
|
-
skills: any[];
|
|
154
|
-
tools: any[];
|
|
155
|
-
};
|
|
145
|
+
skillSettings: any;
|
|
156
146
|
model: any;
|
|
157
147
|
webSearch: boolean;
|
|
158
148
|
}[];
|
|
@@ -169,24 +159,19 @@ export declare const flowSurfaceExamples: {
|
|
|
169
159
|
username: string;
|
|
170
160
|
auto: boolean;
|
|
171
161
|
workContext: {
|
|
172
|
-
type: string;
|
|
173
162
|
target: string;
|
|
174
163
|
}[];
|
|
175
164
|
tasks: {
|
|
176
165
|
title: string;
|
|
166
|
+
prompt: string;
|
|
177
167
|
message: {
|
|
178
168
|
system: string;
|
|
179
|
-
user: string;
|
|
180
169
|
workContext: {
|
|
181
|
-
type: string;
|
|
182
170
|
target: string;
|
|
183
171
|
}[];
|
|
184
172
|
};
|
|
185
173
|
autoSend: boolean;
|
|
186
|
-
skillSettings:
|
|
187
|
-
skills: any[];
|
|
188
|
-
tools: any[];
|
|
189
|
-
};
|
|
174
|
+
skillSettings: any;
|
|
190
175
|
model: any;
|
|
191
176
|
webSearch: boolean;
|
|
192
177
|
}[];
|
|
@@ -1271,24 +1256,19 @@ export declare const flowSurfaceExamples: {
|
|
|
1271
1256
|
username: string;
|
|
1272
1257
|
auto: boolean;
|
|
1273
1258
|
workContext: {
|
|
1274
|
-
type: string;
|
|
1275
1259
|
target: string;
|
|
1276
1260
|
}[];
|
|
1277
1261
|
tasks: {
|
|
1278
1262
|
title: string;
|
|
1263
|
+
prompt: string;
|
|
1279
1264
|
message: {
|
|
1280
1265
|
system: string;
|
|
1281
|
-
user: string;
|
|
1282
1266
|
workContext: {
|
|
1283
|
-
type: string;
|
|
1284
1267
|
target: string;
|
|
1285
1268
|
}[];
|
|
1286
1269
|
};
|
|
1287
1270
|
autoSend: boolean;
|
|
1288
|
-
skillSettings:
|
|
1289
|
-
skills: any[];
|
|
1290
|
-
tools: any[];
|
|
1291
|
-
};
|
|
1271
|
+
skillSettings: any;
|
|
1292
1272
|
model: any;
|
|
1293
1273
|
webSearch: boolean;
|
|
1294
1274
|
}[];
|
|
@@ -1404,24 +1384,19 @@ export declare const flowSurfaceExamples: {
|
|
|
1404
1384
|
username: string;
|
|
1405
1385
|
auto: boolean;
|
|
1406
1386
|
workContext: {
|
|
1407
|
-
type: string;
|
|
1408
1387
|
target: string;
|
|
1409
1388
|
}[];
|
|
1410
1389
|
tasks: {
|
|
1411
1390
|
title: string;
|
|
1391
|
+
prompt: string;
|
|
1412
1392
|
message: {
|
|
1413
1393
|
system: string;
|
|
1414
|
-
user: string;
|
|
1415
1394
|
workContext: {
|
|
1416
|
-
type: string;
|
|
1417
1395
|
target: string;
|
|
1418
1396
|
}[];
|
|
1419
1397
|
};
|
|
1420
1398
|
autoSend: boolean;
|
|
1421
|
-
skillSettings:
|
|
1422
|
-
skills: any[];
|
|
1423
|
-
tools: any[];
|
|
1424
|
-
};
|
|
1399
|
+
skillSettings: any;
|
|
1425
1400
|
model: any;
|
|
1426
1401
|
webSearch: boolean;
|
|
1427
1402
|
}[];
|
|
@@ -1628,10 +1603,9 @@ export declare const flowSurfaceExamples: {
|
|
|
1628
1603
|
};
|
|
1629
1604
|
tasks: {
|
|
1630
1605
|
title: string;
|
|
1606
|
+
prompt: string;
|
|
1631
1607
|
message: {
|
|
1632
|
-
user: string;
|
|
1633
1608
|
workContext: {
|
|
1634
|
-
type: string;
|
|
1635
1609
|
target: string;
|
|
1636
1610
|
}[];
|
|
1637
1611
|
};
|
|
@@ -57,17 +57,17 @@ const makePublicBlockDefaultFilter = (items = [
|
|
|
57
57
|
const makeAIEmployeeActionSettings = (target = "self") => ({
|
|
58
58
|
username: "dex",
|
|
59
59
|
auto: false,
|
|
60
|
-
workContext: [{
|
|
60
|
+
workContext: [{ target }],
|
|
61
61
|
tasks: [
|
|
62
62
|
{
|
|
63
63
|
title: "Analyze current context",
|
|
64
|
+
prompt: "Analyze the current record and suggest next steps.",
|
|
64
65
|
message: {
|
|
65
66
|
system: "Use the current UI context.",
|
|
66
|
-
|
|
67
|
-
workContext: [{ type: "flow-model", target }]
|
|
67
|
+
workContext: [{ target }]
|
|
68
68
|
},
|
|
69
69
|
autoSend: false,
|
|
70
|
-
skillSettings:
|
|
70
|
+
skillSettings: null,
|
|
71
71
|
model: null,
|
|
72
72
|
webSearch: false
|
|
73
73
|
}
|
|
@@ -1889,9 +1889,9 @@ const flowSurfaceExamples = {
|
|
|
1889
1889
|
tasks: [
|
|
1890
1890
|
{
|
|
1891
1891
|
title: "Generate table insights",
|
|
1892
|
+
prompt: "Summarize the current table and identify risks.",
|
|
1892
1893
|
message: {
|
|
1893
|
-
|
|
1894
|
-
workContext: [{ type: "flow-model", target: "self" }]
|
|
1894
|
+
workContext: [{ target: "self" }]
|
|
1895
1895
|
},
|
|
1896
1896
|
autoSend: true,
|
|
1897
1897
|
webSearch: false
|
|
@@ -203,6 +203,114 @@ function jsonContent(schema, example) {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
+
function flowSurfaceErrorItemSchema() {
|
|
207
|
+
return {
|
|
208
|
+
type: "object",
|
|
209
|
+
properties: {
|
|
210
|
+
index: {
|
|
211
|
+
type: "integer",
|
|
212
|
+
description: "Optional 1-based position in an aggregate authoring errors[] response",
|
|
213
|
+
example: 1
|
|
214
|
+
},
|
|
215
|
+
code: {
|
|
216
|
+
type: "string",
|
|
217
|
+
description: "Stable machine-readable error code",
|
|
218
|
+
example: "FLOW_SURFACE_BAD_REQUEST"
|
|
219
|
+
},
|
|
220
|
+
message: {
|
|
221
|
+
type: "string",
|
|
222
|
+
description: "Human-readable error message for the caller"
|
|
223
|
+
},
|
|
224
|
+
status: {
|
|
225
|
+
type: "integer",
|
|
226
|
+
description: "HTTP status mapped from the FlowSurfaces error",
|
|
227
|
+
example: 400
|
|
228
|
+
},
|
|
229
|
+
type: {
|
|
230
|
+
type: "string",
|
|
231
|
+
description: "Error category such as bad_request, forbidden, conflict or internal_error",
|
|
232
|
+
example: "bad_request",
|
|
233
|
+
enum: ["bad_request", "forbidden", "conflict", "internal_error"]
|
|
234
|
+
},
|
|
235
|
+
path: {
|
|
236
|
+
type: "string",
|
|
237
|
+
description: "Optional JSON-path-like request location for validation errors",
|
|
238
|
+
example: "$.changes.titleField"
|
|
239
|
+
},
|
|
240
|
+
ruleId: {
|
|
241
|
+
type: "string",
|
|
242
|
+
description: "Optional stable machine-readable validation rule id",
|
|
243
|
+
example: "relation-titleField-unreadable"
|
|
244
|
+
},
|
|
245
|
+
details: {
|
|
246
|
+
type: "object",
|
|
247
|
+
description: "Optional structured context that helps callers repair the request",
|
|
248
|
+
additionalProperties: true,
|
|
249
|
+
example: {
|
|
250
|
+
action: "configure",
|
|
251
|
+
fieldPath: "manager",
|
|
252
|
+
titleField: "id",
|
|
253
|
+
targetCollection: "employees",
|
|
254
|
+
invalidReason: "id",
|
|
255
|
+
availableFields: ["nickname", "title"],
|
|
256
|
+
suggestion: "Use one of: nickname, title."
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
required: ["message", "type", "code", "status"],
|
|
261
|
+
additionalProperties: false
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function flowSurfaceAggregateRepairDetailsSchema() {
|
|
265
|
+
return {
|
|
266
|
+
type: "object",
|
|
267
|
+
description: "Optional aggregate authoring repair contract. When present, callers should fix every listed child error before retrying the same write.",
|
|
268
|
+
properties: {
|
|
269
|
+
errorCount: {
|
|
270
|
+
type: "integer",
|
|
271
|
+
description: "Number of child errors in the aggregate response",
|
|
272
|
+
example: 2
|
|
273
|
+
},
|
|
274
|
+
mustFixAllErrorsBeforeRetry: {
|
|
275
|
+
type: "boolean",
|
|
276
|
+
example: true
|
|
277
|
+
},
|
|
278
|
+
retryPolicy: {
|
|
279
|
+
type: "string",
|
|
280
|
+
example: "fix_all_errors_before_retry_same_write"
|
|
281
|
+
},
|
|
282
|
+
sameWriteRetryRequired: {
|
|
283
|
+
type: "boolean",
|
|
284
|
+
example: true
|
|
285
|
+
},
|
|
286
|
+
agentInstruction: {
|
|
287
|
+
type: "string",
|
|
288
|
+
description: "Human-readable repair instruction for agentic callers"
|
|
289
|
+
},
|
|
290
|
+
requiredBlockPolicy: {
|
|
291
|
+
type: "object",
|
|
292
|
+
properties: {
|
|
293
|
+
requiredBlockTypes: {
|
|
294
|
+
type: "array",
|
|
295
|
+
items: {
|
|
296
|
+
type: "string"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
fixStrategy: {
|
|
300
|
+
type: "string",
|
|
301
|
+
example: "repair_same_block_type"
|
|
302
|
+
},
|
|
303
|
+
doNotReplaceOrDrop: {
|
|
304
|
+
type: "boolean",
|
|
305
|
+
example: true
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
additionalProperties: true
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
additionalProperties: true
|
|
312
|
+
};
|
|
313
|
+
}
|
|
206
314
|
function requestBody(schemaName, example, description) {
|
|
207
315
|
return {
|
|
208
316
|
required: true,
|
|
@@ -5010,6 +5118,16 @@ const schemas = {
|
|
|
5010
5118
|
type: {
|
|
5011
5119
|
type: "string",
|
|
5012
5120
|
enum: ["bad_request", "forbidden", "conflict", "internal_error"]
|
|
5121
|
+
},
|
|
5122
|
+
errorCount: {
|
|
5123
|
+
type: "integer",
|
|
5124
|
+
description: "Present for aggregate authoring failures and equal to errors.length"
|
|
5125
|
+
},
|
|
5126
|
+
details: flowSurfaceAggregateRepairDetailsSchema(),
|
|
5127
|
+
errors: {
|
|
5128
|
+
type: "array",
|
|
5129
|
+
description: "Present for aggregate item failures; contains the structured child authoring errors",
|
|
5130
|
+
items: flowSurfaceErrorItemSchema()
|
|
5013
5131
|
}
|
|
5014
5132
|
},
|
|
5015
5133
|
required: ["message", "type", "code", "status"],
|
|
@@ -5352,10 +5470,9 @@ const schemas = {
|
|
|
5352
5470
|
},
|
|
5353
5471
|
workContext: {
|
|
5354
5472
|
type: "array",
|
|
5355
|
-
description: 'AIEmployeeButtonModel only. Public work context entries. Use `target: "self"` for the owning block/action context, or pass existing resolved Flow Model `uid` values in localized writes.',
|
|
5473
|
+
description: 'AIEmployeeButtonModel only. Public work context entries. Use `target: "self"` for the owning block/action context, or pass existing resolved Flow Model `uid` values in localized writes. `type` is optional and defaults to `flow-model`.',
|
|
5356
5474
|
items: {
|
|
5357
5475
|
type: "object",
|
|
5358
|
-
required: ["type"],
|
|
5359
5476
|
anyOf: [{ required: ["uid"] }, { required: ["target"] }],
|
|
5360
5477
|
properties: {
|
|
5361
5478
|
type: {
|
|
@@ -5386,6 +5503,10 @@ const schemas = {
|
|
|
5386
5503
|
title: {
|
|
5387
5504
|
type: "string"
|
|
5388
5505
|
},
|
|
5506
|
+
prompt: {
|
|
5507
|
+
type: "string",
|
|
5508
|
+
description: "Alias for message.user. Do not send prompt together with message.user."
|
|
5509
|
+
},
|
|
5389
5510
|
message: {
|
|
5390
5511
|
type: "object",
|
|
5391
5512
|
properties: {
|
|
@@ -5399,7 +5520,6 @@ const schemas = {
|
|
|
5399
5520
|
type: "array",
|
|
5400
5521
|
items: {
|
|
5401
5522
|
type: "object",
|
|
5402
|
-
required: ["type"],
|
|
5403
5523
|
anyOf: [{ required: ["uid"] }, { required: ["target"] }],
|
|
5404
5524
|
properties: {
|
|
5405
5525
|
type: {
|
|
@@ -5428,6 +5548,7 @@ const schemas = {
|
|
|
5428
5548
|
skillSettings: {
|
|
5429
5549
|
type: "object",
|
|
5430
5550
|
nullable: true,
|
|
5551
|
+
description: "Task-level skill/tool override. Omit or use null to inherit the AI employee preset. Unversioned empty skills/tools arrays are normalized to null for compatibility; use skillsVersion/toolsVersion when intentionally disabling all skills/tools.",
|
|
5431
5552
|
properties: {
|
|
5432
5553
|
skills: {
|
|
5433
5554
|
type: "array",
|
|
@@ -5935,59 +6056,20 @@ const schemas = {
|
|
|
5935
6056
|
]
|
|
5936
6057
|
},
|
|
5937
6058
|
properties: {
|
|
6059
|
+
message: {
|
|
6060
|
+
type: "string",
|
|
6061
|
+
description: "Present for aggregate authoring failures and summarizes the full validation batch",
|
|
6062
|
+
example: "flowSurfaces authoring validation failed with 2 error(s); fix all errors before retrying the same write"
|
|
6063
|
+
},
|
|
6064
|
+
errorCount: {
|
|
6065
|
+
type: "integer",
|
|
6066
|
+
description: "Present for aggregate authoring failures and equal to errors.length",
|
|
6067
|
+
example: 2
|
|
6068
|
+
},
|
|
6069
|
+
details: flowSurfaceAggregateRepairDetailsSchema(),
|
|
5938
6070
|
errors: {
|
|
5939
6071
|
type: "array",
|
|
5940
|
-
items:
|
|
5941
|
-
type: "object",
|
|
5942
|
-
properties: {
|
|
5943
|
-
code: {
|
|
5944
|
-
type: "string",
|
|
5945
|
-
description: "Stable machine-readable error code",
|
|
5946
|
-
example: "FLOW_SURFACE_BAD_REQUEST"
|
|
5947
|
-
},
|
|
5948
|
-
message: {
|
|
5949
|
-
type: "string",
|
|
5950
|
-
description: "Human-readable error message for the caller"
|
|
5951
|
-
},
|
|
5952
|
-
status: {
|
|
5953
|
-
type: "integer",
|
|
5954
|
-
description: "HTTP status mapped from the FlowSurfaces error",
|
|
5955
|
-
example: 400
|
|
5956
|
-
},
|
|
5957
|
-
type: {
|
|
5958
|
-
type: "string",
|
|
5959
|
-
description: "Error category such as bad_request, forbidden, conflict or internal_error",
|
|
5960
|
-
example: "bad_request",
|
|
5961
|
-
enum: ["bad_request", "forbidden", "conflict", "internal_error"]
|
|
5962
|
-
},
|
|
5963
|
-
path: {
|
|
5964
|
-
type: "string",
|
|
5965
|
-
description: "Optional JSON-path-like request location for validation errors",
|
|
5966
|
-
example: "$.changes.titleField"
|
|
5967
|
-
},
|
|
5968
|
-
ruleId: {
|
|
5969
|
-
type: "string",
|
|
5970
|
-
description: "Optional stable machine-readable validation rule id",
|
|
5971
|
-
example: "relation-titleField-unreadable"
|
|
5972
|
-
},
|
|
5973
|
-
details: {
|
|
5974
|
-
type: "object",
|
|
5975
|
-
description: "Optional structured context that helps callers repair the request",
|
|
5976
|
-
additionalProperties: true,
|
|
5977
|
-
example: {
|
|
5978
|
-
action: "configure",
|
|
5979
|
-
fieldPath: "manager",
|
|
5980
|
-
titleField: "id",
|
|
5981
|
-
targetCollection: "employees",
|
|
5982
|
-
invalidReason: "id",
|
|
5983
|
-
availableFields: ["nickname", "title"],
|
|
5984
|
-
suggestion: "Use one of: nickname, title."
|
|
5985
|
-
}
|
|
5986
|
-
}
|
|
5987
|
-
},
|
|
5988
|
-
required: ["message", "type", "code", "status"],
|
|
5989
|
-
additionalProperties: false
|
|
5990
|
-
}
|
|
6072
|
+
items: flowSurfaceErrorItemSchema()
|
|
5991
6073
|
}
|
|
5992
6074
|
},
|
|
5993
6075
|
additionalProperties: true
|
package/dist/swagger/index.d.ts
CHANGED
|
@@ -4001,6 +4001,118 @@ declare const _default: {
|
|
|
4001
4001
|
type: string;
|
|
4002
4002
|
enum: string[];
|
|
4003
4003
|
};
|
|
4004
|
+
errorCount: {
|
|
4005
|
+
type: string;
|
|
4006
|
+
description: string;
|
|
4007
|
+
};
|
|
4008
|
+
details: {
|
|
4009
|
+
type: string;
|
|
4010
|
+
description: string;
|
|
4011
|
+
properties: {
|
|
4012
|
+
errorCount: {
|
|
4013
|
+
type: string;
|
|
4014
|
+
description: string;
|
|
4015
|
+
example: number;
|
|
4016
|
+
};
|
|
4017
|
+
mustFixAllErrorsBeforeRetry: {
|
|
4018
|
+
type: string;
|
|
4019
|
+
example: boolean;
|
|
4020
|
+
};
|
|
4021
|
+
retryPolicy: {
|
|
4022
|
+
type: string;
|
|
4023
|
+
example: string;
|
|
4024
|
+
};
|
|
4025
|
+
sameWriteRetryRequired: {
|
|
4026
|
+
type: string;
|
|
4027
|
+
example: boolean;
|
|
4028
|
+
};
|
|
4029
|
+
agentInstruction: {
|
|
4030
|
+
type: string;
|
|
4031
|
+
description: string;
|
|
4032
|
+
};
|
|
4033
|
+
requiredBlockPolicy: {
|
|
4034
|
+
type: string;
|
|
4035
|
+
properties: {
|
|
4036
|
+
requiredBlockTypes: {
|
|
4037
|
+
type: string;
|
|
4038
|
+
items: {
|
|
4039
|
+
type: string;
|
|
4040
|
+
};
|
|
4041
|
+
};
|
|
4042
|
+
fixStrategy: {
|
|
4043
|
+
type: string;
|
|
4044
|
+
example: string;
|
|
4045
|
+
};
|
|
4046
|
+
doNotReplaceOrDrop: {
|
|
4047
|
+
type: string;
|
|
4048
|
+
example: boolean;
|
|
4049
|
+
};
|
|
4050
|
+
};
|
|
4051
|
+
additionalProperties: boolean;
|
|
4052
|
+
};
|
|
4053
|
+
};
|
|
4054
|
+
additionalProperties: boolean;
|
|
4055
|
+
};
|
|
4056
|
+
errors: {
|
|
4057
|
+
type: string;
|
|
4058
|
+
description: string;
|
|
4059
|
+
items: {
|
|
4060
|
+
type: string;
|
|
4061
|
+
properties: {
|
|
4062
|
+
index: {
|
|
4063
|
+
type: string;
|
|
4064
|
+
description: string;
|
|
4065
|
+
example: number;
|
|
4066
|
+
};
|
|
4067
|
+
code: {
|
|
4068
|
+
type: string;
|
|
4069
|
+
description: string;
|
|
4070
|
+
example: string;
|
|
4071
|
+
};
|
|
4072
|
+
message: {
|
|
4073
|
+
type: string;
|
|
4074
|
+
description: string;
|
|
4075
|
+
};
|
|
4076
|
+
status: {
|
|
4077
|
+
type: string;
|
|
4078
|
+
description: string;
|
|
4079
|
+
example: number;
|
|
4080
|
+
};
|
|
4081
|
+
type: {
|
|
4082
|
+
type: string;
|
|
4083
|
+
description: string;
|
|
4084
|
+
example: string;
|
|
4085
|
+
enum: string[];
|
|
4086
|
+
};
|
|
4087
|
+
path: {
|
|
4088
|
+
type: string;
|
|
4089
|
+
description: string;
|
|
4090
|
+
example: string;
|
|
4091
|
+
};
|
|
4092
|
+
ruleId: {
|
|
4093
|
+
type: string;
|
|
4094
|
+
description: string;
|
|
4095
|
+
example: string;
|
|
4096
|
+
};
|
|
4097
|
+
details: {
|
|
4098
|
+
type: string;
|
|
4099
|
+
description: string;
|
|
4100
|
+
additionalProperties: boolean;
|
|
4101
|
+
example: {
|
|
4102
|
+
action: string;
|
|
4103
|
+
fieldPath: string;
|
|
4104
|
+
titleField: string;
|
|
4105
|
+
targetCollection: string;
|
|
4106
|
+
invalidReason: string;
|
|
4107
|
+
availableFields: string[];
|
|
4108
|
+
suggestion: string;
|
|
4109
|
+
};
|
|
4110
|
+
};
|
|
4111
|
+
};
|
|
4112
|
+
required: string[];
|
|
4113
|
+
additionalProperties: boolean;
|
|
4114
|
+
};
|
|
4115
|
+
};
|
|
4004
4116
|
};
|
|
4005
4117
|
required: string[];
|
|
4006
4118
|
additionalProperties: boolean;
|
|
@@ -4461,7 +4573,6 @@ declare const _default: {
|
|
|
4461
4573
|
description: string;
|
|
4462
4574
|
items: {
|
|
4463
4575
|
type: string;
|
|
4464
|
-
required: string[];
|
|
4465
4576
|
anyOf: {
|
|
4466
4577
|
required: string[];
|
|
4467
4578
|
}[];
|
|
@@ -4494,6 +4605,10 @@ declare const _default: {
|
|
|
4494
4605
|
title: {
|
|
4495
4606
|
type: string;
|
|
4496
4607
|
};
|
|
4608
|
+
prompt: {
|
|
4609
|
+
type: string;
|
|
4610
|
+
description: string;
|
|
4611
|
+
};
|
|
4497
4612
|
message: {
|
|
4498
4613
|
type: string;
|
|
4499
4614
|
properties: {
|
|
@@ -4507,7 +4622,6 @@ declare const _default: {
|
|
|
4507
4622
|
type: string;
|
|
4508
4623
|
items: {
|
|
4509
4624
|
type: string;
|
|
4510
|
-
required: string[];
|
|
4511
4625
|
anyOf: {
|
|
4512
4626
|
required: string[];
|
|
4513
4627
|
}[];
|
|
@@ -4538,6 +4652,7 @@ declare const _default: {
|
|
|
4538
4652
|
skillSettings: {
|
|
4539
4653
|
type: string;
|
|
4540
4654
|
nullable: boolean;
|
|
4655
|
+
description: string;
|
|
4541
4656
|
properties: {
|
|
4542
4657
|
skills: {
|
|
4543
4658
|
type: string;
|
|
@@ -5247,11 +5362,74 @@ declare const _default: {
|
|
|
5247
5362
|
}[];
|
|
5248
5363
|
};
|
|
5249
5364
|
properties: {
|
|
5365
|
+
message: {
|
|
5366
|
+
type: string;
|
|
5367
|
+
description: string;
|
|
5368
|
+
example: string;
|
|
5369
|
+
};
|
|
5370
|
+
errorCount: {
|
|
5371
|
+
type: string;
|
|
5372
|
+
description: string;
|
|
5373
|
+
example: number;
|
|
5374
|
+
};
|
|
5375
|
+
details: {
|
|
5376
|
+
type: string;
|
|
5377
|
+
description: string;
|
|
5378
|
+
properties: {
|
|
5379
|
+
errorCount: {
|
|
5380
|
+
type: string;
|
|
5381
|
+
description: string;
|
|
5382
|
+
example: number;
|
|
5383
|
+
};
|
|
5384
|
+
mustFixAllErrorsBeforeRetry: {
|
|
5385
|
+
type: string;
|
|
5386
|
+
example: boolean;
|
|
5387
|
+
};
|
|
5388
|
+
retryPolicy: {
|
|
5389
|
+
type: string;
|
|
5390
|
+
example: string;
|
|
5391
|
+
};
|
|
5392
|
+
sameWriteRetryRequired: {
|
|
5393
|
+
type: string;
|
|
5394
|
+
example: boolean;
|
|
5395
|
+
};
|
|
5396
|
+
agentInstruction: {
|
|
5397
|
+
type: string;
|
|
5398
|
+
description: string;
|
|
5399
|
+
};
|
|
5400
|
+
requiredBlockPolicy: {
|
|
5401
|
+
type: string;
|
|
5402
|
+
properties: {
|
|
5403
|
+
requiredBlockTypes: {
|
|
5404
|
+
type: string;
|
|
5405
|
+
items: {
|
|
5406
|
+
type: string;
|
|
5407
|
+
};
|
|
5408
|
+
};
|
|
5409
|
+
fixStrategy: {
|
|
5410
|
+
type: string;
|
|
5411
|
+
example: string;
|
|
5412
|
+
};
|
|
5413
|
+
doNotReplaceOrDrop: {
|
|
5414
|
+
type: string;
|
|
5415
|
+
example: boolean;
|
|
5416
|
+
};
|
|
5417
|
+
};
|
|
5418
|
+
additionalProperties: boolean;
|
|
5419
|
+
};
|
|
5420
|
+
};
|
|
5421
|
+
additionalProperties: boolean;
|
|
5422
|
+
};
|
|
5250
5423
|
errors: {
|
|
5251
5424
|
type: string;
|
|
5252
5425
|
items: {
|
|
5253
5426
|
type: string;
|
|
5254
5427
|
properties: {
|
|
5428
|
+
index: {
|
|
5429
|
+
type: string;
|
|
5430
|
+
description: string;
|
|
5431
|
+
example: number;
|
|
5432
|
+
};
|
|
5255
5433
|
code: {
|
|
5256
5434
|
type: string;
|
|
5257
5435
|
description: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "前端流引擎",
|
|
5
5
|
"description": "",
|
|
6
6
|
"description.zh-CN": "",
|
|
7
|
-
"version": "2.1.0-alpha.
|
|
7
|
+
"version": "2.1.0-alpha.46",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"devDependencies": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"@nocobase/test": "2.x",
|
|
27
27
|
"@nocobase/utils": "2.x"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "42b269944cdd1908d7a848c0af4936fe94c03bb7"
|
|
30
30
|
}
|