@nocobase/plugin-flow-engine 2.1.0-beta.37 → 2.1.0-beta.40
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 +3 -0
- 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 +18 -7
- package/dist/server/flow-surfaces/locator.js +16 -2
- package/dist/server/flow-surfaces/runjs-authoring/index.js +5909 -2214
- 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 +22 -0
- package/dist/server/flow-surfaces/service.js +722 -59
- package/dist/server/flow-surfaces/template-service-utils.d.ts +1 -0
- package/dist/swagger/flow-surfaces.d.ts +4 -2
- package/dist/swagger/flow-surfaces.examples.d.ts +6 -17
- package/dist/swagger/flow-surfaces.examples.js +5 -5
- package/dist/swagger/flow-surfaces.js +5 -3
- package/dist/swagger/index.d.ts +4 -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
|
}[];
|
|
@@ -69,16 +69,14 @@ 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
|
};
|
|
@@ -132,16 +130,14 @@ export declare const flowSurfaceExamples: {
|
|
|
132
130
|
username: string;
|
|
133
131
|
auto: boolean;
|
|
134
132
|
workContext: {
|
|
135
|
-
type: string;
|
|
136
133
|
target: string;
|
|
137
134
|
}[];
|
|
138
135
|
tasks: {
|
|
139
136
|
title: string;
|
|
137
|
+
prompt: string;
|
|
140
138
|
message: {
|
|
141
139
|
system: string;
|
|
142
|
-
user: string;
|
|
143
140
|
workContext: {
|
|
144
|
-
type: string;
|
|
145
141
|
target: string;
|
|
146
142
|
}[];
|
|
147
143
|
};
|
|
@@ -163,16 +159,14 @@ export declare const flowSurfaceExamples: {
|
|
|
163
159
|
username: string;
|
|
164
160
|
auto: boolean;
|
|
165
161
|
workContext: {
|
|
166
|
-
type: string;
|
|
167
162
|
target: string;
|
|
168
163
|
}[];
|
|
169
164
|
tasks: {
|
|
170
165
|
title: string;
|
|
166
|
+
prompt: string;
|
|
171
167
|
message: {
|
|
172
168
|
system: string;
|
|
173
|
-
user: string;
|
|
174
169
|
workContext: {
|
|
175
|
-
type: string;
|
|
176
170
|
target: string;
|
|
177
171
|
}[];
|
|
178
172
|
};
|
|
@@ -1262,16 +1256,14 @@ export declare const flowSurfaceExamples: {
|
|
|
1262
1256
|
username: string;
|
|
1263
1257
|
auto: boolean;
|
|
1264
1258
|
workContext: {
|
|
1265
|
-
type: string;
|
|
1266
1259
|
target: string;
|
|
1267
1260
|
}[];
|
|
1268
1261
|
tasks: {
|
|
1269
1262
|
title: string;
|
|
1263
|
+
prompt: string;
|
|
1270
1264
|
message: {
|
|
1271
1265
|
system: string;
|
|
1272
|
-
user: string;
|
|
1273
1266
|
workContext: {
|
|
1274
|
-
type: string;
|
|
1275
1267
|
target: string;
|
|
1276
1268
|
}[];
|
|
1277
1269
|
};
|
|
@@ -1392,16 +1384,14 @@ export declare const flowSurfaceExamples: {
|
|
|
1392
1384
|
username: string;
|
|
1393
1385
|
auto: boolean;
|
|
1394
1386
|
workContext: {
|
|
1395
|
-
type: string;
|
|
1396
1387
|
target: string;
|
|
1397
1388
|
}[];
|
|
1398
1389
|
tasks: {
|
|
1399
1390
|
title: string;
|
|
1391
|
+
prompt: string;
|
|
1400
1392
|
message: {
|
|
1401
1393
|
system: string;
|
|
1402
|
-
user: string;
|
|
1403
1394
|
workContext: {
|
|
1404
|
-
type: string;
|
|
1405
1395
|
target: string;
|
|
1406
1396
|
}[];
|
|
1407
1397
|
};
|
|
@@ -1613,10 +1603,9 @@ export declare const flowSurfaceExamples: {
|
|
|
1613
1603
|
};
|
|
1614
1604
|
tasks: {
|
|
1615
1605
|
title: string;
|
|
1606
|
+
prompt: string;
|
|
1616
1607
|
message: {
|
|
1617
|
-
user: string;
|
|
1618
1608
|
workContext: {
|
|
1619
|
-
type: string;
|
|
1620
1609
|
target: string;
|
|
1621
1610
|
}[];
|
|
1622
1611
|
};
|
|
@@ -57,14 +57,14 @@ 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
70
|
skillSettings: null,
|
|
@@ -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: {
|
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
|
}[];
|
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.40",
|
|
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": "36e906138f6305723abbef676a61006058feb5ea"
|
|
30
30
|
}
|