@nocobase/plugin-flow-engine 2.2.0-beta.5 → 2.2.0-beta.6
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/authoring-validation.js +23 -7
- package/dist/server/flow-surfaces/planning/key-registry.d.ts +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/rules.js +0 -2
- package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +0 -1
- package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +11 -19
- package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +0 -12
- package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +0 -14
- package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +1 -7
- package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +0 -14
- package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +18 -73
- package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +9 -53
- package/dist/server/flow-surfaces/service.d.ts +18 -0
- package/dist/server/flow-surfaces/service.js +419 -66
- package/package.json +2 -2
- package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.d.ts +0 -10
- package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.js +0 -40
|
@@ -310,58 +310,7 @@ function collectDirectDomErrors(path, source, scan, modelUse, surface, errors) {
|
|
|
310
310
|
);
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
scan.windowDocumentNavigatorAliases.forEach((entry) => {
|
|
315
|
-
errors.push(
|
|
316
|
-
(0, import_errors.buildRunJsAuthoringError)({
|
|
317
|
-
path,
|
|
318
|
-
repairClass: "blocked-global-stop",
|
|
319
|
-
message: `flowSurfaces authoring ${path} cannot alias forbidden global ${entry.root}`,
|
|
320
|
-
modelUse,
|
|
321
|
-
surface,
|
|
322
|
-
index: entry.index,
|
|
323
|
-
source,
|
|
324
|
-
details: {
|
|
325
|
-
global: entry.root,
|
|
326
|
-
alias: entry.alias
|
|
327
|
-
}
|
|
328
|
-
})
|
|
329
|
-
);
|
|
330
|
-
});
|
|
331
|
-
scan.windowDocumentNavigatorUses.forEach((entry) => {
|
|
332
|
-
errors.push(
|
|
333
|
-
(0, import_errors.buildRunJsAuthoringError)({
|
|
334
|
-
path,
|
|
335
|
-
repairClass: "blocked-global-stop",
|
|
336
|
-
ruleId: `runjs-${entry.root}-property-blocked`,
|
|
337
|
-
message: `flowSurfaces authoring ${path} cannot access ${entry.root}.${entry.member} in RunJS`,
|
|
338
|
-
modelUse,
|
|
339
|
-
surface,
|
|
340
|
-
index: entry.index,
|
|
341
|
-
source,
|
|
342
|
-
details: {
|
|
343
|
-
global: entry.root,
|
|
344
|
-
member: entry.member
|
|
345
|
-
}
|
|
346
|
-
})
|
|
347
|
-
);
|
|
348
|
-
});
|
|
349
|
-
scan.forbiddenBareGlobals.forEach((entry) => {
|
|
350
|
-
errors.push(
|
|
351
|
-
(0, import_errors.buildRunJsAuthoringError)({
|
|
352
|
-
path,
|
|
353
|
-
repairClass: "blocked-global-stop",
|
|
354
|
-
message: `flowSurfaces authoring ${path} cannot access forbidden global ${entry.name}`,
|
|
355
|
-
modelUse,
|
|
356
|
-
surface,
|
|
357
|
-
index: entry.index,
|
|
358
|
-
source,
|
|
359
|
-
details: {
|
|
360
|
-
global: entry.name
|
|
361
|
-
}
|
|
362
|
-
})
|
|
363
|
-
);
|
|
364
|
-
});
|
|
313
|
+
function collectUnknownGlobalErrors(path, source, scan, modelUse, surface, errors) {
|
|
365
314
|
scan.unknownBareGlobals.forEach((entry) => {
|
|
366
315
|
const suggestion = entry.suggestedCapability ? `; use ${entry.suggestedCapability} or assign it to a local variable first` : "; declare or import it before using it";
|
|
367
316
|
errors.push(
|
|
@@ -840,7 +789,14 @@ const RUNJS_INSPECTION_VALIDATORS = [
|
|
|
840
789
|
),
|
|
841
790
|
createLegacyValidator("dom-global", (runtime, errors) => {
|
|
842
791
|
collectDirectDomErrors(runtime.input.path, runtime.source, runtime.scan, runtime.modelUse, runtime.surface, errors);
|
|
843
|
-
|
|
792
|
+
collectUnknownGlobalErrors(
|
|
793
|
+
runtime.input.path,
|
|
794
|
+
runtime.source,
|
|
795
|
+
runtime.scan,
|
|
796
|
+
runtime.modelUse,
|
|
797
|
+
runtime.surface,
|
|
798
|
+
errors
|
|
799
|
+
);
|
|
844
800
|
}),
|
|
845
801
|
createLegacyValidator(
|
|
846
802
|
"react-runtime",
|
|
@@ -82,6 +82,14 @@ export declare class FlowSurfacesService {
|
|
|
82
82
|
private assertMenuRouteUpdatable;
|
|
83
83
|
private assertMenuParentNotSelfOrDescendant;
|
|
84
84
|
private buildMenuResult;
|
|
85
|
+
private hasDesktopRouteUiLayoutsRelation;
|
|
86
|
+
private normalizeDesktopRouteRelationId;
|
|
87
|
+
private readDesktopRouteUiLayoutUids;
|
|
88
|
+
private resolveDefaultDesktopRouteUiLayoutUids;
|
|
89
|
+
private resolveInheritedDesktopRouteUiLayoutUids;
|
|
90
|
+
private setDesktopRouteUiLayouts;
|
|
91
|
+
private attachDesktopRouteUiLayoutsToRouteAndChildren;
|
|
92
|
+
private ensureDesktopRouteUiLayouts;
|
|
85
93
|
private isValidMenuIconName;
|
|
86
94
|
private assertVisibleNavigationIcon;
|
|
87
95
|
private assertVisibleNavigationRouteIconUpdate;
|
|
@@ -1061,14 +1069,19 @@ export declare class FlowSurfacesService {
|
|
|
1061
1069
|
private stableSerializeAIEmployeeValue;
|
|
1062
1070
|
private buildAIEmployeeActionDedupIdentity;
|
|
1063
1071
|
private normalizeAIEmployeeWorkContextForDedupIdentity;
|
|
1072
|
+
private normalizeAIEmployeeActionWorkContextForDedupIdentity;
|
|
1073
|
+
private normalizeAIEmployeeDefaultActionWorkContextForSelfUid;
|
|
1074
|
+
private normalizeAIEmployeeTaskWorkContextForDedupIdentity;
|
|
1064
1075
|
private normalizeAIEmployeeTasksForDedupIdentity;
|
|
1065
1076
|
private assertNoDuplicateAIEmployeeAction;
|
|
1077
|
+
private assertNoDuplicateAIEmployeeActionForUpdateSettings;
|
|
1066
1078
|
private hasAIEmployeePublicSettings;
|
|
1067
1079
|
private assertOnlyAIEmployeePublicSettings;
|
|
1068
1080
|
private aiEmployeeNestedRepairHint;
|
|
1069
1081
|
private assertOnlyAIEmployeeNestedPublicSettings;
|
|
1070
1082
|
private assertNoAIEmployeeInternalPropSettings;
|
|
1071
1083
|
private readAIEmployeePersistedTasks;
|
|
1084
|
+
private normalizeAIEmployeeLegacyInheritedTaskWorkContext;
|
|
1072
1085
|
private buildAIEmployeeTaskStepParams;
|
|
1073
1086
|
private mergeAIEmployeeActionSettingsPayload;
|
|
1074
1087
|
private syncAIEmployeeTaskStepParamsForUpdateSettings;
|
|
@@ -1081,6 +1094,7 @@ export declare class FlowSurfacesService {
|
|
|
1081
1094
|
private normalizeAIEmployeeUsername;
|
|
1082
1095
|
private assertAIEmployeeWorkContextType;
|
|
1083
1096
|
private normalizeAIEmployeeWorkContext;
|
|
1097
|
+
private normalizeAIEmployeeEffectiveActionWorkContext;
|
|
1084
1098
|
private normalizeAIEmployeeTaskModel;
|
|
1085
1099
|
private normalizeAIEmployeeSkillSettings;
|
|
1086
1100
|
private collectAIEmployeePromptVariables;
|
|
@@ -1103,9 +1117,13 @@ export declare class FlowSurfacesService {
|
|
|
1103
1117
|
private normalizeAIEmployeeTaskMessage;
|
|
1104
1118
|
private normalizeAIEmployeeTaskPatch;
|
|
1105
1119
|
private normalizeAIEmployeeTasks;
|
|
1120
|
+
private withAIEmployeeTaskDefaultWorkContext;
|
|
1121
|
+
private shouldMaterializeAIEmployeeTaskDefaultWorkContext;
|
|
1122
|
+
private rebaseAIEmployeeInheritedTaskWorkContext;
|
|
1106
1123
|
private normalizeAIEmployeeActionSettingsReferences;
|
|
1107
1124
|
private normalizeAIEmployeeActionPublicSettings;
|
|
1108
1125
|
private resolveAIEmployeeActionSelfUid;
|
|
1126
|
+
private resolveAIEmployeeActionSelfUidFromParentNode;
|
|
1109
1127
|
private configureActionNode;
|
|
1110
1128
|
private normalizeActionPanelActionChanges;
|
|
1111
1129
|
private buildFieldCatalog;
|