@nocobase/plugin-flow-engine 2.1.0-beta.35 → 2.1.0-beta.37
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/LICENSE +21 -0
- package/dist/node_modules/acorn/bin/acorn +4 -0
- package/dist/node_modules/acorn/dist/acorn.d.mts +857 -0
- package/dist/node_modules/acorn/dist/acorn.d.ts +857 -0
- package/dist/node_modules/acorn/dist/acorn.js +1 -0
- package/dist/node_modules/acorn/dist/bin.js +90 -0
- package/dist/node_modules/acorn/package.json +1 -0
- package/dist/node_modules/acorn-jsx/LICENSE +19 -0
- package/dist/node_modules/acorn-jsx/index.d.ts +12 -0
- package/dist/node_modules/acorn-jsx/index.js +1 -0
- package/dist/node_modules/acorn-jsx/package.json +1 -0
- package/dist/node_modules/acorn-jsx/xhtml.js +255 -0
- package/dist/node_modules/acorn-walk/LICENSE +21 -0
- package/dist/node_modules/acorn-walk/dist/walk.d.mts +177 -0
- package/dist/node_modules/acorn-walk/dist/walk.d.ts +177 -0
- package/dist/node_modules/acorn-walk/dist/walk.js +1 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/bin/acorn +4 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.mts +866 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.ts +866 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.js +6174 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/dist/bin.js +90 -0
- package/dist/node_modules/acorn-walk/node_modules/acorn/package.json +50 -0
- package/dist/node_modules/acorn-walk/package.json +1 -0
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.d.ts +2 -0
- package/dist/server/flow-surfaces/action-scope.js +8 -0
- package/dist/server/flow-surfaces/authoring-validation.d.ts +3 -0
- package/dist/server/flow-surfaces/authoring-validation.js +317 -9
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +143 -3
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +1 -1
- package/dist/server/flow-surfaces/builder.js +54 -1
- package/dist/server/flow-surfaces/catalog.js +158 -2
- package/dist/server/flow-surfaces/chart-config.d.ts +58 -54
- package/dist/server/flow-surfaces/chart-config.js +18 -5
- package/dist/server/flow-surfaces/compose-compiler.d.ts +1 -1
- package/dist/server/flow-surfaces/compose-runtime.d.ts +1 -0
- package/dist/server/flow-surfaces/compose-runtime.js +24 -6
- package/dist/server/flow-surfaces/configure-options.js +40 -1
- package/dist/server/flow-surfaces/default-block-actions.js +11 -0
- package/dist/server/flow-surfaces/index.js +4 -2
- package/dist/server/flow-surfaces/node-use-sets.js +2 -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 +14 -2
- package/dist/server/flow-surfaces/runjs-authoring/index.js +4633 -252
- package/dist/server/flow-surfaces/runjs-authoring/nested-runjs-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/nested-runjs-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/rules.js +6 -0
- package/dist/server/flow-surfaces/runjs-authoring/source-limit-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/source-limit-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/syntax-stop/index.d.ts +10 -0
- package/dist/server/flow-surfaces/runjs-authoring/syntax-stop/index.js +40 -0
- package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
- package/dist/server/flow-surfaces/service-utils.d.ts +1 -1
- package/dist/server/flow-surfaces/service-utils.js +3 -0
- package/dist/server/flow-surfaces/service.d.ts +106 -17
- package/dist/server/flow-surfaces/service.js +1760 -131
- package/dist/server/flow-surfaces/support-matrix.d.ts +1 -1
- package/dist/server/flow-surfaces/support-matrix.js +13 -1
- package/dist/server/flow-surfaces/surface-context.js +4 -13
- package/dist/swagger/flow-surfaces.d.ts +148 -0
- package/dist/swagger/flow-surfaces.examples.d.ts +179 -1
- package/dist/swagger/flow-surfaces.examples.js +75 -3
- package/dist/swagger/flow-surfaces.js +181 -7
- package/dist/swagger/index.d.ts +148 -0
- package/package.json +5 -2
|
@@ -65,6 +65,7 @@ const BASE_ACTION_TYPE_ENUM = [
|
|
|
65
65
|
"upload",
|
|
66
66
|
"js",
|
|
67
67
|
"jsItem",
|
|
68
|
+
"aiEmployee",
|
|
68
69
|
"composeEmail",
|
|
69
70
|
"templatePrint",
|
|
70
71
|
"triggerWorkflow",
|
|
@@ -97,6 +98,7 @@ const BASE_NON_RECORD_ACTION_TYPE_ENUM = [
|
|
|
97
98
|
"upload",
|
|
98
99
|
"js",
|
|
99
100
|
"jsItem",
|
|
101
|
+
"aiEmployee",
|
|
100
102
|
"composeEmail",
|
|
101
103
|
"templatePrint",
|
|
102
104
|
"triggerWorkflow",
|
|
@@ -109,6 +111,7 @@ const RECORD_ACTION_TYPE_ENUM = [
|
|
|
109
111
|
"popup",
|
|
110
112
|
"js",
|
|
111
113
|
"jsItem",
|
|
114
|
+
"aiEmployee",
|
|
112
115
|
"composeEmail",
|
|
113
116
|
"templatePrint",
|
|
114
117
|
"triggerWorkflow",
|
|
@@ -132,6 +135,8 @@ const APPLY_BLUEPRINT_BLOCK_TYPE_ENUM = [
|
|
|
132
135
|
"markdown",
|
|
133
136
|
"iframe",
|
|
134
137
|
"chart",
|
|
138
|
+
"comments",
|
|
139
|
+
"recordHistory",
|
|
135
140
|
"actionPanel",
|
|
136
141
|
"jsBlock",
|
|
137
142
|
"tree"
|
|
@@ -497,7 +502,7 @@ const actionDocs = {
|
|
|
497
502
|
tags: [FLOW_SURFACES_TAG],
|
|
498
503
|
summary: "Apply a page blueprint to create or replace one Modern page",
|
|
499
504
|
description: valuesCompatibilityNote(
|
|
500
|
-
`Accepts one simplified JSON page blueprint and compiles it to internal flow-surface operations. The public blueprint describes page structure (\`create\` or \`replace\`, page metadata, ordered tabs, blocks, fields, actions, inline popups, optional reusable assets) and optional top-level \`reaction.items[]\` for whole-page interaction authoring. Each reaction item targets an explicit local key / bind key produced by the same blueprint run. Only explicitly listed reaction items are written. \`rules: []\` clears the targeted slot. Repeating the same \`(type, target)\` reaction slot in one blueprint is invalid. In \`replace\`, reaction targets always bind to the newly produced blueprint result, not historical nodes from the previous page version; if a slot must exist in the resulting surface, include it explicitly instead of relying on omission. Localized reaction edits on an existing surface should use \`getReactionMeta\` + \`set*Rules\` instead of applying a whole page blueprint again. The request body is that page-document JSON object itself and must not be JSON-stringified. Wrong: \`{ "requestBody": "{\\"version\\":\\"1\\"}" }\`. Internal planning details stay hidden. In \`create\`, \`navigation.group.routeId\` has the highest priority when targeting an existing menu group. If \`routeId\` is present, applyBlueprint ignores \`title\`, \`icon\`, \`tooltip\`, and \`hideInMenu\` on \`navigation.group\`; applyBlueprint create mode does not mutate existing group metadata, so callers should use \`updateMenu\` separately when that is required. When \`routeId\` is omitted and \`navigation.group.title\` is provided, applyBlueprint reuses one existing same-title group when it is unique, creates a new group when none exists, and rejects ambiguous multi-match cases. Metadata such as \`icon\`, \`tooltip\`, and \`hideInMenu\` is used only when a new group is created and is ignored when an existing group is reused. \`replace\` uses \`target.pageSchemaUid\`, updates only the explicit page-level fields provided in \`page\`, maps blueprint tabs to existing route-backed tab slots by index, rewrites each slot in order, removes trailing old tabs, and appends extra new tabs when needed. Tab and block keys are optional in the public blueprint; omit them unless custom layout or cross-block targeting needs a stable in-document identifier. \`layout\` is only allowed on tabs and inline popup documents; blocks themselves do not accept a \`layout\` property. Public applyBlueprint blocks do not support generic \`form\`; use \`editForm\` or \`createForm\`. For JS blocks/fields/actions, \`script\` is a non-empty string asset key into \`assets.scripts\`; put inline JS in \`settings.code\` and \`settings.version\`. Direct \`table\` / \`list\` / \`gridCard\` / \`calendar\` / \`kanban\` blocks may omit \`defaultFilter\`; the backend generates one from live metadata with up to 4 scalar/filterable fields. Explicit values must contain at least the smaller of 3 and the collection eligible-field count, and values with more than 4 fields are truncated before persistence. A valid explicit or generated block-level value backfills the default \`filter\` action \`settings.defaultFilter\`; explicit filter-action \`settings.defaultFilter\` still wins. ${TREE_TABLE_RECORD_ACTION_DEFAULTS_NOTE} ${APPLY_BLUEPRINT_TREE_TABLE_TITLE_FIELD_NOTE} Inline popup documents may set \`popup.tryTemplate=true\` to ask the backend for the best compatible popup template before falling back to local popup content. Inline popup documents may also combine \`popup.tryTemplate\` with \`popup.saveAsTemplate={ name, description, local? }\`: a hit binds the matched template immediately and lets later inline popups in the same blueprint reuse that final bound template through \`popup.template={ local, mode }\`, while a miss requires explicit local \`popup.blocks\` so the fallback popup can be saved and reused. Custom \`edit\` popups that provide \`popup.blocks\` must include exactly one \`editForm\` block; that \`editForm\` may omit \`resource\` and then inherits the opener's current-record context. When layout is omitted, applyBlueprint auto-generates a simple top-to-bottom layout. When a \`replace\` run expands a page to multiple tabs while the current page still has \`enableTabs=false\`, callers must set \`page.enableTabs=true\` explicitly. The response hides execution internals and returns only the resolved page target and final surface readback.`
|
|
505
|
+
`Accepts one simplified JSON page blueprint and compiles it to internal flow-surface operations. The public blueprint describes page structure (\`create\` or \`replace\`, page metadata, ordered tabs, blocks, fields, actions, inline popups, optional reusable assets) and optional top-level \`reaction.items[]\` for whole-page interaction authoring. Each reaction item targets an explicit local key / bind key produced by the same blueprint run. Only explicitly listed reaction items are written. \`rules: []\` clears the targeted slot. Repeating the same \`(type, target)\` reaction slot in one blueprint is invalid. In \`replace\`, reaction targets always bind to the newly produced blueprint result, not historical nodes from the previous page version; if a slot must exist in the resulting surface, include it explicitly instead of relying on omission. Localized reaction edits on an existing surface should use \`getReactionMeta\` + \`set*Rules\` instead of applying a whole page blueprint again. The request body is that page-document JSON object itself and must not be JSON-stringified. Wrong: \`{ "requestBody": "{\\"version\\":\\"1\\"}" }\`. Internal planning details stay hidden. In \`create\`, \`navigation.group.routeId\` has the highest priority when targeting an existing menu group. If \`routeId\` is present, applyBlueprint ignores \`title\`, \`icon\`, \`tooltip\`, and \`hideInMenu\` on \`navigation.group\`; applyBlueprint create mode does not mutate existing group metadata, so callers should use \`updateMenu\` separately when that is required. When \`routeId\` is omitted and \`navigation.group.title\` is provided, applyBlueprint reuses one existing same-title group when it is unique, creates a new group when none exists, and rejects ambiguous multi-match cases. Metadata such as \`icon\`, \`tooltip\`, and \`hideInMenu\` is used only when a new group is created and is ignored when an existing group is reused. \`replace\` uses \`target.pageSchemaUid\`, updates only the explicit page-level fields provided in \`page\`, maps blueprint tabs to existing route-backed tab slots by index, rewrites each slot in order, removes trailing old tabs, and appends extra new tabs when needed. Tab and block keys are optional in the public blueprint; omit them unless custom layout or cross-block targeting needs a stable in-document identifier. \`layout\` is only allowed on tabs and inline popup documents; blocks themselves do not accept a \`layout\` property. Public applyBlueprint blocks do not support generic \`form\`; use \`editForm\` or \`createForm\`. AI employee actions use \`type: "aiEmployee"\` plus public \`settings.username\`, \`workContext\`, \`tasks\`, \`auto\`, and \`style\`; work context may target \`self\` or a same-blueprint block key and is persisted as real Flow Model \`uid\` values. For JS blocks/fields/actions, \`script\` is a non-empty string asset key into \`assets.scripts\`; put inline JS in \`settings.code\` and \`settings.version\`. Direct \`table\` / \`list\` / \`gridCard\` / \`calendar\` / \`kanban\` blocks may omit \`defaultFilter\`; the backend generates one from live metadata with up to 4 scalar/filterable fields. Explicit values must contain at least the smaller of 3 and the collection eligible-field count, and values with more than 4 fields are truncated before persistence. A valid explicit or generated block-level value backfills the default \`filter\` action \`settings.defaultFilter\`; explicit filter-action \`settings.defaultFilter\` still wins. ${TREE_TABLE_RECORD_ACTION_DEFAULTS_NOTE} ${APPLY_BLUEPRINT_TREE_TABLE_TITLE_FIELD_NOTE} Inline popup documents may set \`popup.tryTemplate=true\` to ask the backend for the best compatible popup template before falling back to local popup content. Inline popup documents may also combine \`popup.tryTemplate\` with \`popup.saveAsTemplate={ name, description, local? }\`: a hit binds the matched template immediately and lets later inline popups in the same blueprint reuse that final bound template through \`popup.template={ local, mode }\`, while a miss requires explicit local \`popup.blocks\` so the fallback popup can be saved and reused. Custom \`edit\` popups that provide \`popup.blocks\` must include exactly one \`editForm\` block; that \`editForm\` may omit \`resource\` and then inherits the opener's current-record context. When layout is omitted, applyBlueprint auto-generates a simple top-to-bottom layout. When a \`replace\` run expands a page to multiple tabs while the current page still has \`enableTabs=false\`, callers must set \`page.enableTabs=true\` explicitly. The response hides execution internals and returns only the resolved page target and final surface readback.`
|
|
501
506
|
),
|
|
502
507
|
requestBody: {
|
|
503
508
|
required: true,
|
|
@@ -887,7 +892,7 @@ const actionDocs = {
|
|
|
887
892
|
tags: [FLOW_SURFACES_TAG],
|
|
888
893
|
summary: "Add a non-record action under an allowed block/form/filter-form/action-panel container",
|
|
889
894
|
description: valuesCompatibilityNote(
|
|
890
|
-
"Only non-record actions that are public in the catalog and visible in the current container may be created. Typical cases include table block actions, form submit, filter-form reset,
|
|
895
|
+
"Only non-record actions that are public in the catalog and visible in the current container may be created. Typical cases include table block actions, form submit, filter-form reset, action-panel actions, and AI employee shortcuts. Use `addRecordAction` for record actions. Direct add does not accept raw `props` / `decoratorProps` / `stepParams` / `flowRegistry`. Use `settings` and reuse `configure.changes` plus the catalog item/node `configureOptions`; AI employee actions use public `settings.username`, `workContext`, `tasks`, `auto`, and `style`. Popup-capable actions may also include `popup` directly to append a popup subtree or `popup.template` to reuse a saved popup template in `reference` / `copy` mode. `popup.tryTemplate=true` asks the backend to auto-select a compatible popup template first, preferring the same relation when one exists and otherwise falling back to a compatible non-relation template. It may be combined with `popup.saveAsTemplate={ name, description }`: a hit reuses the matched template directly, while a miss requires explicit local `popup.blocks` so the fallback popup can be saved as a template reference. When `popup.template` is present, `popup.title` still applies, while local `popup.mode` / `popup.blocks` / `popup.layout` are accepted but ignored. Approval action keys are singleton within one approval form or process form, and flowSurfaces reconciles the related workflow/node runtime config after successful writes."
|
|
891
896
|
),
|
|
892
897
|
requestBody: {
|
|
893
898
|
required: true,
|
|
@@ -911,6 +916,10 @@ const actionDocs = {
|
|
|
911
916
|
summary: "Create a form JS item action under a create/edit/form action container",
|
|
912
917
|
value: import_flow_surfaces.flowSurfaceExamples.addJsItemAction
|
|
913
918
|
},
|
|
919
|
+
aiEmployee: {
|
|
920
|
+
summary: "Create an AI employee shortcut action with public task settings",
|
|
921
|
+
value: import_flow_surfaces.flowSurfaceExamples.addAIEmployeeAction
|
|
922
|
+
},
|
|
914
923
|
autoPopupTemplate: {
|
|
915
924
|
summary: "Create a popup-capable action and let the backend auto-select a compatible popup template",
|
|
916
925
|
value: import_flow_surfaces.flowSurfaceExamples.addAutoPopupAction
|
|
@@ -929,7 +938,7 @@ const actionDocs = {
|
|
|
929
938
|
tags: [FLOW_SURFACES_TAG],
|
|
930
939
|
summary: "Add a record action under a record-capable owner target",
|
|
931
940
|
description: valuesCompatibilityNote(
|
|
932
|
-
`Only record actions that are public in the catalog and visible in the current container may be created. The public target must be a record-capable owner target such as table/details/list/gridCard. Do not pass internal container uids such as a table actions column or a list/gridCard item. ${ADD_CHILD_TREE_TABLE_NOTE} Direct add does not accept raw \`props\` / \`decoratorProps\` / \`stepParams\` / \`flowRegistry\`. Use \`settings\` and reuse \`configure.changes\` plus the catalog item/node \`configureOptions\`. Popup-capable actions may also include \`popup\` directly to append a popup subtree or \`popup.template\` to reuse a saved popup template in \`reference\` / \`copy\` mode. \`popup.tryTemplate=true\` asks the backend to auto-select a compatible popup template first, preferring the same relation when one exists and otherwise falling back to a compatible non-relation template. It may be combined with \`popup.saveAsTemplate={ name, description }\`: a hit reuses the matched template directly, while a miss requires explicit local \`popup.blocks\` so the fallback popup can be saved as a template reference. When \`popup.template\` is present, \`popup.title\` still applies, while local \`popup.mode\` / \`popup.blocks\` / \`popup.layout\` are accepted but ignored.`
|
|
941
|
+
`Only record actions that are public in the catalog and visible in the current container may be created. The public target must be a record-capable owner target such as table/details/list/gridCard. Do not pass internal container uids such as a table actions column or a list/gridCard item. ${ADD_CHILD_TREE_TABLE_NOTE} Direct add does not accept raw \`props\` / \`decoratorProps\` / \`stepParams\` / \`flowRegistry\`. Use \`settings\` and reuse \`configure.changes\` plus the catalog item/node \`configureOptions\`; AI employee record actions use public \`settings.username\`, \`workContext\`, \`tasks\`, \`auto\`, and \`style\`. Popup-capable actions may also include \`popup\` directly to append a popup subtree or \`popup.template\` to reuse a saved popup template in \`reference\` / \`copy\` mode. \`popup.tryTemplate=true\` asks the backend to auto-select a compatible popup template first, preferring the same relation when one exists and otherwise falling back to a compatible non-relation template. It may be combined with \`popup.saveAsTemplate={ name, description }\`: a hit reuses the matched template directly, while a miss requires explicit local \`popup.blocks\` so the fallback popup can be saved as a template reference. When \`popup.template\` is present, \`popup.title\` still applies, while local \`popup.mode\` / \`popup.blocks\` / \`popup.layout\` are accepted but ignored.`
|
|
933
942
|
),
|
|
934
943
|
requestBody: {
|
|
935
944
|
required: true,
|
|
@@ -953,6 +962,10 @@ const actionDocs = {
|
|
|
953
962
|
summary: "Create a JS record action under a details block owner target",
|
|
954
963
|
value: import_flow_surfaces.flowSurfaceExamples.addRecordJsAction
|
|
955
964
|
},
|
|
965
|
+
aiEmployee: {
|
|
966
|
+
summary: "Create an AI employee record shortcut with public task settings",
|
|
967
|
+
value: import_flow_surfaces.flowSurfaceExamples.addRecordAIEmployeeAction
|
|
968
|
+
},
|
|
956
969
|
autoPopupTemplate: {
|
|
957
970
|
summary: "Create a view/edit-like record action and let the backend auto-select a compatible popup template",
|
|
958
971
|
value: import_flow_surfaces.flowSurfaceExamples.addRecordAutoPopupTemplate
|
|
@@ -1022,11 +1035,28 @@ const actionDocs = {
|
|
|
1022
1035
|
},
|
|
1023
1036
|
updateSettings: {
|
|
1024
1037
|
tags: [FLOW_SURFACES_TAG],
|
|
1025
|
-
summary: "Update controlled
|
|
1038
|
+
summary: "Update controlled settings or AI employee public task fields",
|
|
1026
1039
|
description: valuesCompatibilityNote(
|
|
1027
|
-
"Updates the specified domain according to the path-level contract exposed by the catalog. Arbitrary raw tree-field patches are not accepted."
|
|
1040
|
+
"Updates the specified domain according to the path-level contract exposed by the catalog. For an existing `AIEmployeeButtonModel`, use top-level `username`, `auto`, `workContext`, `tasks`, or `style`; raw `props.aiEmployee`, `props.context`, `props.auto`, `props.tasks`, and `props.style` are internal and are not the public contract. Arbitrary raw tree-field patches are not accepted."
|
|
1028
1041
|
),
|
|
1029
|
-
requestBody:
|
|
1042
|
+
requestBody: {
|
|
1043
|
+
required: true,
|
|
1044
|
+
content: {
|
|
1045
|
+
"application/json": {
|
|
1046
|
+
schema: ref("FlowSurfaceUpdateSettingsRequest"),
|
|
1047
|
+
examples: {
|
|
1048
|
+
settings: {
|
|
1049
|
+
summary: "Update controlled table settings by contract path",
|
|
1050
|
+
value: import_flow_surfaces.flowSurfaceExamples.updateSettings
|
|
1051
|
+
},
|
|
1052
|
+
aiEmployee: {
|
|
1053
|
+
summary: "Update an AI employee shortcut through public task/style fields",
|
|
1054
|
+
value: import_flow_surfaces.flowSurfaceExamples.updateAIEmployeeSettings
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1030
1060
|
responses: responses("FlowSurfaceUpdateSettingsResult")
|
|
1031
1061
|
},
|
|
1032
1062
|
getEventFlowMeta: {
|
|
@@ -5311,7 +5341,151 @@ const schemas = {
|
|
|
5311
5341
|
props: ANY_OBJECT_SCHEMA,
|
|
5312
5342
|
decoratorProps: ANY_OBJECT_SCHEMA,
|
|
5313
5343
|
stepParams: ANY_OBJECT_SCHEMA,
|
|
5314
|
-
flowRegistry: ANY_OBJECT_SCHEMA
|
|
5344
|
+
flowRegistry: ANY_OBJECT_SCHEMA,
|
|
5345
|
+
username: {
|
|
5346
|
+
type: "string",
|
|
5347
|
+
description: "AIEmployeeButtonModel only. Public AI employee username update; validated against visible, enabled AI employees."
|
|
5348
|
+
},
|
|
5349
|
+
auto: {
|
|
5350
|
+
type: "boolean",
|
|
5351
|
+
description: "AIEmployeeButtonModel only. Whether the AI employee task picker/chat should run automatically."
|
|
5352
|
+
},
|
|
5353
|
+
workContext: {
|
|
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.',
|
|
5356
|
+
items: {
|
|
5357
|
+
type: "object",
|
|
5358
|
+
required: ["type"],
|
|
5359
|
+
anyOf: [{ required: ["uid"] }, { required: ["target"] }],
|
|
5360
|
+
properties: {
|
|
5361
|
+
type: {
|
|
5362
|
+
type: "string",
|
|
5363
|
+
enum: ["flow-model"],
|
|
5364
|
+
example: "flow-model"
|
|
5365
|
+
},
|
|
5366
|
+
uid: {
|
|
5367
|
+
type: "string",
|
|
5368
|
+
minLength: 1,
|
|
5369
|
+
description: "Existing Flow Model uid for localized writes."
|
|
5370
|
+
},
|
|
5371
|
+
target: {
|
|
5372
|
+
type: "string",
|
|
5373
|
+
minLength: 1,
|
|
5374
|
+
description: "`self` in localized updateSettings writes. Use `uid` for other existing Flow Model context targets."
|
|
5375
|
+
}
|
|
5376
|
+
},
|
|
5377
|
+
additionalProperties: false
|
|
5378
|
+
}
|
|
5379
|
+
},
|
|
5380
|
+
tasks: {
|
|
5381
|
+
type: "array",
|
|
5382
|
+
description: "AIEmployeeButtonModel only. Public task patches by index. Partial task patches preserve existing task fields unless explicitly cleared.",
|
|
5383
|
+
items: {
|
|
5384
|
+
type: "object",
|
|
5385
|
+
properties: {
|
|
5386
|
+
title: {
|
|
5387
|
+
type: "string"
|
|
5388
|
+
},
|
|
5389
|
+
message: {
|
|
5390
|
+
type: "object",
|
|
5391
|
+
properties: {
|
|
5392
|
+
system: {
|
|
5393
|
+
type: "string"
|
|
5394
|
+
},
|
|
5395
|
+
user: {
|
|
5396
|
+
type: "string"
|
|
5397
|
+
},
|
|
5398
|
+
workContext: {
|
|
5399
|
+
type: "array",
|
|
5400
|
+
items: {
|
|
5401
|
+
type: "object",
|
|
5402
|
+
required: ["type"],
|
|
5403
|
+
anyOf: [{ required: ["uid"] }, { required: ["target"] }],
|
|
5404
|
+
properties: {
|
|
5405
|
+
type: {
|
|
5406
|
+
type: "string",
|
|
5407
|
+
enum: ["flow-model"],
|
|
5408
|
+
example: "flow-model"
|
|
5409
|
+
},
|
|
5410
|
+
uid: {
|
|
5411
|
+
type: "string",
|
|
5412
|
+
minLength: 1
|
|
5413
|
+
},
|
|
5414
|
+
target: {
|
|
5415
|
+
type: "string",
|
|
5416
|
+
minLength: 1
|
|
5417
|
+
}
|
|
5418
|
+
},
|
|
5419
|
+
additionalProperties: false
|
|
5420
|
+
}
|
|
5421
|
+
}
|
|
5422
|
+
},
|
|
5423
|
+
additionalProperties: false
|
|
5424
|
+
},
|
|
5425
|
+
autoSend: {
|
|
5426
|
+
type: "boolean"
|
|
5427
|
+
},
|
|
5428
|
+
skillSettings: {
|
|
5429
|
+
type: "object",
|
|
5430
|
+
nullable: true,
|
|
5431
|
+
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.",
|
|
5432
|
+
properties: {
|
|
5433
|
+
skills: {
|
|
5434
|
+
type: "array",
|
|
5435
|
+
items: {
|
|
5436
|
+
type: "string"
|
|
5437
|
+
}
|
|
5438
|
+
},
|
|
5439
|
+
tools: {
|
|
5440
|
+
type: "array",
|
|
5441
|
+
items: {
|
|
5442
|
+
type: "string"
|
|
5443
|
+
}
|
|
5444
|
+
},
|
|
5445
|
+
skillsVersion: {
|
|
5446
|
+
type: "number"
|
|
5447
|
+
},
|
|
5448
|
+
toolsVersion: {
|
|
5449
|
+
type: "number"
|
|
5450
|
+
}
|
|
5451
|
+
},
|
|
5452
|
+
additionalProperties: false
|
|
5453
|
+
},
|
|
5454
|
+
model: {
|
|
5455
|
+
type: "object",
|
|
5456
|
+
nullable: true,
|
|
5457
|
+
required: ["llmService", "model"],
|
|
5458
|
+
description: "Explicit model selection or null.",
|
|
5459
|
+
properties: {
|
|
5460
|
+
llmService: {
|
|
5461
|
+
type: "string"
|
|
5462
|
+
},
|
|
5463
|
+
model: {
|
|
5464
|
+
type: "string"
|
|
5465
|
+
}
|
|
5466
|
+
},
|
|
5467
|
+
additionalProperties: false
|
|
5468
|
+
},
|
|
5469
|
+
webSearch: {
|
|
5470
|
+
type: "boolean"
|
|
5471
|
+
}
|
|
5472
|
+
},
|
|
5473
|
+
additionalProperties: false
|
|
5474
|
+
}
|
|
5475
|
+
},
|
|
5476
|
+
style: {
|
|
5477
|
+
type: "object",
|
|
5478
|
+
description: 'AIEmployeeButtonModel only. Public avatar style patch, for example `{ "size": 40, "mask": true }`.',
|
|
5479
|
+
properties: {
|
|
5480
|
+
size: {
|
|
5481
|
+
type: "number"
|
|
5482
|
+
},
|
|
5483
|
+
mask: {
|
|
5484
|
+
type: "boolean"
|
|
5485
|
+
}
|
|
5486
|
+
},
|
|
5487
|
+
additionalProperties: false
|
|
5488
|
+
}
|
|
5315
5489
|
},
|
|
5316
5490
|
additionalProperties: false
|
|
5317
5491
|
},
|
package/dist/swagger/index.d.ts
CHANGED
|
@@ -4448,6 +4448,154 @@ declare const _default: {
|
|
|
4448
4448
|
type: string;
|
|
4449
4449
|
additionalProperties: boolean;
|
|
4450
4450
|
};
|
|
4451
|
+
username: {
|
|
4452
|
+
type: string;
|
|
4453
|
+
description: string;
|
|
4454
|
+
};
|
|
4455
|
+
auto: {
|
|
4456
|
+
type: string;
|
|
4457
|
+
description: string;
|
|
4458
|
+
};
|
|
4459
|
+
workContext: {
|
|
4460
|
+
type: string;
|
|
4461
|
+
description: string;
|
|
4462
|
+
items: {
|
|
4463
|
+
type: string;
|
|
4464
|
+
required: string[];
|
|
4465
|
+
anyOf: {
|
|
4466
|
+
required: string[];
|
|
4467
|
+
}[];
|
|
4468
|
+
properties: {
|
|
4469
|
+
type: {
|
|
4470
|
+
type: string;
|
|
4471
|
+
enum: string[];
|
|
4472
|
+
example: string;
|
|
4473
|
+
};
|
|
4474
|
+
uid: {
|
|
4475
|
+
type: string;
|
|
4476
|
+
minLength: number;
|
|
4477
|
+
description: string;
|
|
4478
|
+
};
|
|
4479
|
+
target: {
|
|
4480
|
+
type: string;
|
|
4481
|
+
minLength: number;
|
|
4482
|
+
description: string;
|
|
4483
|
+
};
|
|
4484
|
+
};
|
|
4485
|
+
additionalProperties: boolean;
|
|
4486
|
+
};
|
|
4487
|
+
};
|
|
4488
|
+
tasks: {
|
|
4489
|
+
type: string;
|
|
4490
|
+
description: string;
|
|
4491
|
+
items: {
|
|
4492
|
+
type: string;
|
|
4493
|
+
properties: {
|
|
4494
|
+
title: {
|
|
4495
|
+
type: string;
|
|
4496
|
+
};
|
|
4497
|
+
message: {
|
|
4498
|
+
type: string;
|
|
4499
|
+
properties: {
|
|
4500
|
+
system: {
|
|
4501
|
+
type: string;
|
|
4502
|
+
};
|
|
4503
|
+
user: {
|
|
4504
|
+
type: string;
|
|
4505
|
+
};
|
|
4506
|
+
workContext: {
|
|
4507
|
+
type: string;
|
|
4508
|
+
items: {
|
|
4509
|
+
type: string;
|
|
4510
|
+
required: string[];
|
|
4511
|
+
anyOf: {
|
|
4512
|
+
required: string[];
|
|
4513
|
+
}[];
|
|
4514
|
+
properties: {
|
|
4515
|
+
type: {
|
|
4516
|
+
type: string;
|
|
4517
|
+
enum: string[];
|
|
4518
|
+
example: string;
|
|
4519
|
+
};
|
|
4520
|
+
uid: {
|
|
4521
|
+
type: string;
|
|
4522
|
+
minLength: number;
|
|
4523
|
+
};
|
|
4524
|
+
target: {
|
|
4525
|
+
type: string;
|
|
4526
|
+
minLength: number;
|
|
4527
|
+
};
|
|
4528
|
+
};
|
|
4529
|
+
additionalProperties: boolean;
|
|
4530
|
+
};
|
|
4531
|
+
};
|
|
4532
|
+
};
|
|
4533
|
+
additionalProperties: boolean;
|
|
4534
|
+
};
|
|
4535
|
+
autoSend: {
|
|
4536
|
+
type: string;
|
|
4537
|
+
};
|
|
4538
|
+
skillSettings: {
|
|
4539
|
+
type: string;
|
|
4540
|
+
nullable: boolean;
|
|
4541
|
+
description: string;
|
|
4542
|
+
properties: {
|
|
4543
|
+
skills: {
|
|
4544
|
+
type: string;
|
|
4545
|
+
items: {
|
|
4546
|
+
type: string;
|
|
4547
|
+
};
|
|
4548
|
+
};
|
|
4549
|
+
tools: {
|
|
4550
|
+
type: string;
|
|
4551
|
+
items: {
|
|
4552
|
+
type: string;
|
|
4553
|
+
};
|
|
4554
|
+
};
|
|
4555
|
+
skillsVersion: {
|
|
4556
|
+
type: string;
|
|
4557
|
+
};
|
|
4558
|
+
toolsVersion: {
|
|
4559
|
+
type: string;
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
additionalProperties: boolean;
|
|
4563
|
+
};
|
|
4564
|
+
model: {
|
|
4565
|
+
type: string;
|
|
4566
|
+
nullable: boolean;
|
|
4567
|
+
required: string[];
|
|
4568
|
+
description: string;
|
|
4569
|
+
properties: {
|
|
4570
|
+
llmService: {
|
|
4571
|
+
type: string;
|
|
4572
|
+
};
|
|
4573
|
+
model: {
|
|
4574
|
+
type: string;
|
|
4575
|
+
};
|
|
4576
|
+
};
|
|
4577
|
+
additionalProperties: boolean;
|
|
4578
|
+
};
|
|
4579
|
+
webSearch: {
|
|
4580
|
+
type: string;
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
additionalProperties: boolean;
|
|
4584
|
+
};
|
|
4585
|
+
};
|
|
4586
|
+
style: {
|
|
4587
|
+
type: string;
|
|
4588
|
+
description: string;
|
|
4589
|
+
properties: {
|
|
4590
|
+
size: {
|
|
4591
|
+
type: string;
|
|
4592
|
+
};
|
|
4593
|
+
mask: {
|
|
4594
|
+
type: string;
|
|
4595
|
+
};
|
|
4596
|
+
};
|
|
4597
|
+
additionalProperties: boolean;
|
|
4598
|
+
};
|
|
4451
4599
|
};
|
|
4452
4600
|
additionalProperties: boolean;
|
|
4453
4601
|
};
|
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.37",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"devDependencies": {
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
"koa-static": "^5.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"acorn": "^8.10.0",
|
|
18
|
+
"acorn-jsx": "^5.3.2",
|
|
19
|
+
"acorn-walk": "8.3.4",
|
|
17
20
|
"ses": "^1.14.0"
|
|
18
21
|
},
|
|
19
22
|
"peerDependencies": {
|
|
@@ -23,5 +26,5 @@
|
|
|
23
26
|
"@nocobase/test": "2.x",
|
|
24
27
|
"@nocobase/utils": "2.x"
|
|
25
28
|
},
|
|
26
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7132e5b83ecc0e42b54715eaf1429c72bcef34ae"
|
|
27
30
|
}
|