@nocobase/plugin-flow-engine 2.2.0-alpha.1 → 2.2.0-alpha.10

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 (86) hide show
  1. package/dist/ai/ai-employees/nathan/prompt.md +2 -0
  2. package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +1 -0
  3. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
  4. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
  5. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
  6. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
  7. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/patchJSCode.js +4 -4
  8. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/readJSCode.js +2 -2
  9. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/writeJSCode.js +2 -2
  10. package/dist/ai/docs/runjs/context/ai.md +206 -0
  11. package/dist/client/index.js +1 -1
  12. package/dist/externalVersion.js +9 -9
  13. package/dist/locale/en-US.json +3 -0
  14. package/dist/locale/index.d.ts +6 -0
  15. package/dist/locale/zh-CN.json +3 -0
  16. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  17. package/dist/node_modules/acorn/package.json +1 -1
  18. package/dist/node_modules/acorn-jsx/package.json +1 -1
  19. package/dist/node_modules/acorn-walk/package.json +1 -1
  20. package/dist/node_modules/ses/package.json +1 -1
  21. package/dist/node_modules/zod/package.json +1 -1
  22. package/dist/server/flow-surfaces/{runjs-authoring/blocked-global-stop/index.d.ts → approval/authoring-validation.d.ts} +1 -2
  23. package/dist/server/flow-surfaces/approval/authoring-validation.js +1151 -0
  24. package/dist/server/flow-surfaces/approval/blueprint-service.js +2 -0
  25. package/dist/server/flow-surfaces/authoring-validation.d.ts +3 -1
  26. package/dist/server/flow-surfaces/authoring-validation.js +645 -59
  27. package/dist/server/flow-surfaces/blueprint/compile-blocks.js +7 -3
  28. package/dist/server/flow-surfaces/blueprint/compile-plan.js +23 -15
  29. package/dist/server/flow-surfaces/blueprint/export-document.d.ts +50 -0
  30. package/dist/server/flow-surfaces/blueprint/export-document.js +2510 -0
  31. package/dist/server/flow-surfaces/blueprint/normalize-document.js +18 -1
  32. package/dist/server/flow-surfaces/blueprint/public-types.d.ts +2 -0
  33. package/dist/server/flow-surfaces/builder.js +43 -5
  34. package/dist/server/flow-surfaces/catalog.js +13 -2
  35. package/dist/server/flow-surfaces/configure-options.js +5 -3
  36. package/dist/server/flow-surfaces/constants.d.ts +16 -2
  37. package/dist/server/flow-surfaces/constants.js +2 -0
  38. package/dist/server/flow-surfaces/contract-guard.js +37 -5
  39. package/dist/server/flow-surfaces/default-action-popup.d.ts +2 -0
  40. package/dist/server/flow-surfaces/default-action-popup.js +27 -13
  41. package/dist/server/flow-surfaces/errors.d.ts +2 -2
  42. package/dist/server/flow-surfaces/errors.js +4 -4
  43. package/dist/server/flow-surfaces/filter-group.d.ts +19 -2
  44. package/dist/server/flow-surfaces/filter-group.js +232 -3
  45. package/dist/server/flow-surfaces/navigation-targets.d.ts +73 -0
  46. package/dist/server/flow-surfaces/navigation-targets.js +439 -0
  47. package/dist/server/flow-surfaces/planning/compiler.d.ts +1 -0
  48. package/dist/server/flow-surfaces/planning/compiler.js +205 -82
  49. package/dist/server/flow-surfaces/planning/key-registry.d.ts +1 -1
  50. package/dist/server/flow-surfaces/planning/runtime.js +1 -0
  51. package/dist/server/flow-surfaces/planning/step-link.d.ts +1 -1
  52. package/dist/server/flow-surfaces/planning/step-link.js +22 -3
  53. package/dist/server/flow-surfaces/public-data-surface-default-filter.js +0 -9
  54. package/dist/server/flow-surfaces/reaction/field-value.d.ts +9 -0
  55. package/dist/server/flow-surfaces/reaction/field-value.js +51 -2
  56. package/dist/server/flow-surfaces/reaction/linkage.d.ts +6 -1
  57. package/dist/server/flow-surfaces/reaction/linkage.js +18 -3
  58. package/dist/server/flow-surfaces/reaction/meta.js +19 -1
  59. package/dist/server/flow-surfaces/reaction/types.d.ts +19 -0
  60. package/dist/server/flow-surfaces/relation-backing-foreign-key.d.ts +10 -0
  61. package/dist/server/flow-surfaces/relation-backing-foreign-key.js +79 -0
  62. package/dist/server/flow-surfaces/runjs-authoring/ast/source.d.ts +1 -0
  63. package/dist/server/flow-surfaces/runjs-authoring/ast/source.js +20 -0
  64. package/dist/server/flow-surfaces/runjs-authoring/rules.js +0 -2
  65. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +0 -1
  66. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +12 -19
  67. package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +0 -12
  68. package/dist/server/flow-surfaces/runjs-authoring/scan/filter.js +12 -2
  69. package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +0 -14
  70. package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +10 -8
  71. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +0 -14
  72. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +18 -73
  73. package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
  74. package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +9 -53
  75. package/dist/server/flow-surfaces/service.d.ts +65 -0
  76. package/dist/server/flow-surfaces/service.js +1372 -148
  77. package/dist/server/flow-surfaces/types.d.ts +2 -1
  78. package/dist/server/variables/records.js +7 -2
  79. package/dist/server/variables/registry.js +3 -0
  80. package/dist/swagger/flow-surfaces.d.ts +289 -0
  81. package/dist/swagger/flow-surfaces.examples.d.ts +11 -0
  82. package/dist/swagger/flow-surfaces.examples.js +11 -0
  83. package/dist/swagger/flow-surfaces.js +261 -11
  84. package/dist/swagger/index.d.ts +289 -0
  85. package/package.json +2 -2
  86. package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.js +0 -40
@@ -2604,6 +2604,86 @@ declare const _default: {
2604
2604
  };
2605
2605
  additionalProperties: boolean;
2606
2606
  };
2607
+ FlowSurfaceListNavigationTargetsRequest: {
2608
+ type: string;
2609
+ properties: {};
2610
+ additionalProperties: boolean;
2611
+ };
2612
+ FlowSurfaceNavigationTargetCapabilities: {
2613
+ type: string;
2614
+ required: string[];
2615
+ properties: {
2616
+ multiPortal: {
2617
+ type: string;
2618
+ description: string;
2619
+ };
2620
+ };
2621
+ additionalProperties: boolean;
2622
+ };
2623
+ FlowSurfaceNavigationTarget: {
2624
+ type: string;
2625
+ required: string[];
2626
+ properties: {
2627
+ kind: {
2628
+ type: string;
2629
+ enum: string[];
2630
+ };
2631
+ uid: {
2632
+ type: string;
2633
+ description: string;
2634
+ };
2635
+ title: {
2636
+ type: string;
2637
+ };
2638
+ icon: {
2639
+ type: string;
2640
+ nullable: boolean;
2641
+ };
2642
+ layoutUid: {
2643
+ type: string;
2644
+ };
2645
+ layoutType: {
2646
+ type: string;
2647
+ };
2648
+ routeName: {
2649
+ type: string;
2650
+ };
2651
+ routePath: {
2652
+ type: string;
2653
+ };
2654
+ authCheck: {
2655
+ type: string;
2656
+ };
2657
+ default: {
2658
+ type: string;
2659
+ };
2660
+ portalUid: {
2661
+ type: string;
2662
+ description: string;
2663
+ };
2664
+ };
2665
+ additionalProperties: boolean;
2666
+ };
2667
+ FlowSurfaceListNavigationTargetsResult: {
2668
+ type: string;
2669
+ required: string[];
2670
+ properties: {
2671
+ version: {
2672
+ type: string;
2673
+ enum: string[];
2674
+ };
2675
+ capabilities: {
2676
+ $ref: string;
2677
+ };
2678
+ targets: {
2679
+ type: string;
2680
+ items: {
2681
+ $ref: string;
2682
+ };
2683
+ };
2684
+ };
2685
+ additionalProperties: boolean;
2686
+ };
2607
2687
  FlowSurfaceApplyBlueprintNavigationGroup: {
2608
2688
  type: string;
2609
2689
  properties: {
@@ -2635,6 +2715,14 @@ declare const _default: {
2635
2715
  FlowSurfaceApplyBlueprintNavigation: {
2636
2716
  type: string;
2637
2717
  properties: {
2718
+ layoutUid: {
2719
+ type: string;
2720
+ description: string;
2721
+ };
2722
+ portalUid: {
2723
+ type: string;
2724
+ description: string;
2725
+ };
2638
2726
  group: {
2639
2727
  $ref: string;
2640
2728
  };
@@ -3148,6 +3236,14 @@ declare const _default: {
3148
3236
  type: string;
3149
3237
  required: string[];
3150
3238
  properties: {
3239
+ layoutUid: {
3240
+ type: string;
3241
+ description: string;
3242
+ };
3243
+ portalUid: {
3244
+ type: string;
3245
+ description: string;
3246
+ };
3151
3247
  title: {
3152
3248
  type: string;
3153
3249
  };
@@ -3223,6 +3319,10 @@ declare const _default: {
3223
3319
  type: string;
3224
3320
  }[];
3225
3321
  };
3322
+ portalUid: {
3323
+ type: string;
3324
+ description: string;
3325
+ };
3226
3326
  title: {
3227
3327
  type: string;
3228
3328
  };
@@ -3270,6 +3370,14 @@ declare const _default: {
3270
3370
  FlowSurfaceCreatePageRequest: {
3271
3371
  type: string;
3272
3372
  properties: {
3373
+ layoutUid: {
3374
+ type: string;
3375
+ description: string;
3376
+ };
3377
+ portalUid: {
3378
+ type: string;
3379
+ description: string;
3380
+ };
3273
3381
  menuRouteId: {
3274
3382
  oneOf: {
3275
3383
  type: string;
@@ -5763,6 +5871,186 @@ declare const _default: {
5763
5871
  };
5764
5872
  additionalProperties: boolean;
5765
5873
  };
5874
+ FlowSurfaceExportBlueprintUnsupportedPolicy: {
5875
+ type: string;
5876
+ enum: string[];
5877
+ description: string;
5878
+ };
5879
+ FlowSurfaceExportBlueprintUnsupportedItem: {
5880
+ type: string;
5881
+ required: string[];
5882
+ properties: {
5883
+ kind: {
5884
+ type: string;
5885
+ enum: string[];
5886
+ };
5887
+ use: {
5888
+ type: string;
5889
+ example: string;
5890
+ };
5891
+ type: {
5892
+ type: string;
5893
+ example: string;
5894
+ };
5895
+ path: {
5896
+ type: string;
5897
+ example: string;
5898
+ };
5899
+ reasonCode: {
5900
+ type: string;
5901
+ example: string;
5902
+ };
5903
+ manualAction: {
5904
+ type: string;
5905
+ example: string;
5906
+ };
5907
+ };
5908
+ additionalProperties: boolean;
5909
+ };
5910
+ FlowSurfaceExportBlueprintTarget: {
5911
+ oneOf: ({
5912
+ type: string;
5913
+ required: string[];
5914
+ properties: {
5915
+ uid: {
5916
+ type: string;
5917
+ };
5918
+ pageSchemaUid?: undefined;
5919
+ tabSchemaUid?: undefined;
5920
+ routeId?: undefined;
5921
+ };
5922
+ additionalProperties: boolean;
5923
+ } | {
5924
+ type: string;
5925
+ required: string[];
5926
+ properties: {
5927
+ pageSchemaUid: {
5928
+ type: string;
5929
+ };
5930
+ uid?: undefined;
5931
+ tabSchemaUid?: undefined;
5932
+ routeId?: undefined;
5933
+ };
5934
+ additionalProperties: boolean;
5935
+ } | {
5936
+ type: string;
5937
+ required: string[];
5938
+ properties: {
5939
+ tabSchemaUid: {
5940
+ type: string;
5941
+ };
5942
+ uid?: undefined;
5943
+ pageSchemaUid?: undefined;
5944
+ routeId?: undefined;
5945
+ };
5946
+ additionalProperties: boolean;
5947
+ } | {
5948
+ type: string;
5949
+ required: string[];
5950
+ properties: {
5951
+ routeId: {
5952
+ type: string;
5953
+ };
5954
+ uid?: undefined;
5955
+ pageSchemaUid?: undefined;
5956
+ tabSchemaUid?: undefined;
5957
+ };
5958
+ additionalProperties: boolean;
5959
+ })[];
5960
+ description: string;
5961
+ };
5962
+ FlowSurfaceExportBlueprintRequest: {
5963
+ type: string;
5964
+ required: string[];
5965
+ properties: {
5966
+ target: {
5967
+ $ref: string;
5968
+ };
5969
+ options: {
5970
+ type: string;
5971
+ properties: {
5972
+ unsupported: {
5973
+ $ref: string;
5974
+ };
5975
+ };
5976
+ additionalProperties: boolean;
5977
+ };
5978
+ };
5979
+ additionalProperties: boolean;
5980
+ };
5981
+ FlowSurfaceExportBlueprintSource: {
5982
+ type: string;
5983
+ required: string[];
5984
+ properties: {
5985
+ target: {
5986
+ $ref: string;
5987
+ };
5988
+ pageTitle: {
5989
+ type: string;
5990
+ };
5991
+ };
5992
+ additionalProperties: boolean;
5993
+ };
5994
+ FlowSurfaceExportBlueprintDocument: {
5995
+ type: string;
5996
+ required: string[];
5997
+ description: string;
5998
+ properties: {
5999
+ version: {
6000
+ type: string;
6001
+ enum: string[];
6002
+ };
6003
+ mode: {
6004
+ type: string;
6005
+ enum: string[];
6006
+ };
6007
+ target: {
6008
+ $ref: string;
6009
+ };
6010
+ page: {
6011
+ $ref: string;
6012
+ };
6013
+ tabs: {
6014
+ type: string;
6015
+ minItems: number;
6016
+ items: {
6017
+ $ref: string;
6018
+ };
6019
+ };
6020
+ assets: {
6021
+ $ref: string;
6022
+ };
6023
+ reaction: {
6024
+ $ref: string;
6025
+ };
6026
+ };
6027
+ additionalProperties: boolean;
6028
+ };
6029
+ FlowSurfaceExportBlueprintResponse: {
6030
+ type: string;
6031
+ required: string[];
6032
+ properties: {
6033
+ document: {
6034
+ $ref: string;
6035
+ };
6036
+ source: {
6037
+ $ref: string;
6038
+ };
6039
+ warnings: {
6040
+ type: string;
6041
+ items: {
6042
+ type: string;
6043
+ };
6044
+ };
6045
+ unsupported: {
6046
+ type: string;
6047
+ items: {
6048
+ $ref: string;
6049
+ };
6050
+ };
6051
+ };
6052
+ additionalProperties: boolean;
6053
+ };
5766
6054
  FlowSurfaceMutateWriteTarget: {
5767
6055
  type: string;
5768
6056
  required: string[];
@@ -5922,6 +6210,7 @@ declare const _default: {
5922
6210
  };
5923
6211
  };
5924
6212
  example: {};
6213
+ default: {};
5925
6214
  supportsFlowContext: {
5926
6215
  type: string;
5927
6216
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "前端流引擎",
5
5
  "description": "",
6
6
  "description.zh-CN": "",
7
- "version": "2.2.0-alpha.1",
7
+ "version": "2.2.0-alpha.10",
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": "303663aba6c6eefa27e6a6435b4c0352074ec40f"
29
+ "gitHead": "b5a3f131bb0a4a2fbfd96852896bccadc933d834"
30
30
  }
@@ -1,40 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var blocked_global_stop_exports = {};
28
- __export(blocked_global_stop_exports, {
29
- blockedGlobalStopRule: () => blockedGlobalStopRule
30
- });
31
- module.exports = __toCommonJS(blocked_global_stop_exports);
32
- const blockedGlobalStopRule = {
33
- repairClass: "blocked-global-stop",
34
- defaultRuleId: "runjs-global-blocked",
35
- suggestedAction: "Replace forbidden browser/runtime globals with supported ctx APIs."
36
- };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- blockedGlobalStopRule
40
- });