@nocobase/plugin-flow-engine 2.1.0-beta.36 → 2.1.0-beta.38
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/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 +18 -3
- package/dist/server/flow-surfaces/apply/matching.js +2 -0
- package/dist/server/flow-surfaces/authoring-validation.js +621 -66
- 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/catalog.js +17 -4
- package/dist/server/flow-surfaces/chart-config.js +14 -1
- 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/locator.js +16 -2
- package/dist/server/flow-surfaces/runjs-authoring/ctx-libs-member-mismatch-stop/index.js +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/index.js +6224 -2119
- package/dist/server/flow-surfaces/service-utils.d.ts +2 -0
- package/dist/server/flow-surfaces/service-utils.js +8 -0
- package/dist/server/flow-surfaces/service.d.ts +67 -14
- package/dist/server/flow-surfaces/service.js +1316 -122
- package/dist/server/flow-surfaces/template-service-utils.d.ts +1 -0
- package/dist/swagger/flow-surfaces.d.ts +5 -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 +6 -3
- package/dist/swagger/index.d.ts +5 -2
- package/package.json +2 -2
|
@@ -38,6 +38,7 @@ export type FlowSurfaceTemplateListValues = {
|
|
|
38
38
|
};
|
|
39
39
|
export type FlowSurfaceTemplateListPopupActionContext = {
|
|
40
40
|
hasCurrentRecord?: boolean;
|
|
41
|
+
currentRecordFilterTargetKey?: string;
|
|
41
42
|
};
|
|
42
43
|
export declare const FLOW_TEMPLATE_SUPPORTED_TYPES: Set<string>;
|
|
43
44
|
export declare const FLOW_TEMPLATE_SUPPORTED_MODES: Set<string>;
|
|
@@ -4461,7 +4461,6 @@ declare const _default: {
|
|
|
4461
4461
|
description: string;
|
|
4462
4462
|
items: {
|
|
4463
4463
|
type: string;
|
|
4464
|
-
required: string[];
|
|
4465
4464
|
anyOf: {
|
|
4466
4465
|
required: string[];
|
|
4467
4466
|
}[];
|
|
@@ -4494,6 +4493,10 @@ declare const _default: {
|
|
|
4494
4493
|
title: {
|
|
4495
4494
|
type: string;
|
|
4496
4495
|
};
|
|
4496
|
+
prompt: {
|
|
4497
|
+
type: string;
|
|
4498
|
+
description: string;
|
|
4499
|
+
};
|
|
4497
4500
|
message: {
|
|
4498
4501
|
type: string;
|
|
4499
4502
|
properties: {
|
|
@@ -4507,7 +4510,6 @@ declare const _default: {
|
|
|
4507
4510
|
type: string;
|
|
4508
4511
|
items: {
|
|
4509
4512
|
type: string;
|
|
4510
|
-
required: string[];
|
|
4511
4513
|
anyOf: {
|
|
4512
4514
|
required: string[];
|
|
4513
4515
|
}[];
|
|
@@ -4538,6 +4540,7 @@ declare const _default: {
|
|
|
4538
4540
|
skillSettings: {
|
|
4539
4541
|
type: string;
|
|
4540
4542
|
nullable: boolean;
|
|
4543
|
+
description: string;
|
|
4541
4544
|
properties: {
|
|
4542
4545
|
skills: {
|
|
4543
4546
|
type: string;
|
|
@@ -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
|
|
@@ -5352,10 +5352,9 @@ const schemas = {
|
|
|
5352
5352
|
},
|
|
5353
5353
|
workContext: {
|
|
5354
5354
|
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.',
|
|
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. `type` is optional and defaults to `flow-model`.',
|
|
5356
5356
|
items: {
|
|
5357
5357
|
type: "object",
|
|
5358
|
-
required: ["type"],
|
|
5359
5358
|
anyOf: [{ required: ["uid"] }, { required: ["target"] }],
|
|
5360
5359
|
properties: {
|
|
5361
5360
|
type: {
|
|
@@ -5386,6 +5385,10 @@ const schemas = {
|
|
|
5386
5385
|
title: {
|
|
5387
5386
|
type: "string"
|
|
5388
5387
|
},
|
|
5388
|
+
prompt: {
|
|
5389
|
+
type: "string",
|
|
5390
|
+
description: "Alias for message.user. Do not send prompt together with message.user."
|
|
5391
|
+
},
|
|
5389
5392
|
message: {
|
|
5390
5393
|
type: "object",
|
|
5391
5394
|
properties: {
|
|
@@ -5399,7 +5402,6 @@ const schemas = {
|
|
|
5399
5402
|
type: "array",
|
|
5400
5403
|
items: {
|
|
5401
5404
|
type: "object",
|
|
5402
|
-
required: ["type"],
|
|
5403
5405
|
anyOf: [{ required: ["uid"] }, { required: ["target"] }],
|
|
5404
5406
|
properties: {
|
|
5405
5407
|
type: {
|
|
@@ -5428,6 +5430,7 @@ const schemas = {
|
|
|
5428
5430
|
skillSettings: {
|
|
5429
5431
|
type: "object",
|
|
5430
5432
|
nullable: true,
|
|
5433
|
+
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
5434
|
properties: {
|
|
5432
5435
|
skills: {
|
|
5433
5436
|
type: "array",
|
package/dist/swagger/index.d.ts
CHANGED
|
@@ -4461,7 +4461,6 @@ declare const _default: {
|
|
|
4461
4461
|
description: string;
|
|
4462
4462
|
items: {
|
|
4463
4463
|
type: string;
|
|
4464
|
-
required: string[];
|
|
4465
4464
|
anyOf: {
|
|
4466
4465
|
required: string[];
|
|
4467
4466
|
}[];
|
|
@@ -4494,6 +4493,10 @@ declare const _default: {
|
|
|
4494
4493
|
title: {
|
|
4495
4494
|
type: string;
|
|
4496
4495
|
};
|
|
4496
|
+
prompt: {
|
|
4497
|
+
type: string;
|
|
4498
|
+
description: string;
|
|
4499
|
+
};
|
|
4497
4500
|
message: {
|
|
4498
4501
|
type: string;
|
|
4499
4502
|
properties: {
|
|
@@ -4507,7 +4510,6 @@ declare const _default: {
|
|
|
4507
4510
|
type: string;
|
|
4508
4511
|
items: {
|
|
4509
4512
|
type: string;
|
|
4510
|
-
required: string[];
|
|
4511
4513
|
anyOf: {
|
|
4512
4514
|
required: string[];
|
|
4513
4515
|
}[];
|
|
@@ -4538,6 +4540,7 @@ declare const _default: {
|
|
|
4538
4540
|
skillSettings: {
|
|
4539
4541
|
type: string;
|
|
4540
4542
|
nullable: boolean;
|
|
4543
|
+
description: string;
|
|
4541
4544
|
properties: {
|
|
4542
4545
|
skills: {
|
|
4543
4546
|
type: 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-beta.
|
|
7
|
+
"version": "2.1.0-beta.38",
|
|
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": "d1c585108ff6e51c17b0b52bacb1a2d621d9c119"
|
|
30
30
|
}
|