@nocobase/plugin-ai 2.4.0-alpha.17 → 2.4.0-alpha.19

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 (37) hide show
  1. package/dist/ai/docs/nocobase/ai/upgrade-nocobase-app.md +2 -0
  2. package/dist/ai/docs/nocobase/api/cli/api/resource/list.md +2 -0
  3. package/dist/ai/docs/nocobase/api/flow-engine/flow-context.md +1 -2
  4. package/dist/ai/docs/nocobase/get-started/installation/env.md +8 -0
  5. package/dist/ai/docs/nocobase/get-started/upgrading/create-nocobase-app.md +1 -0
  6. package/dist/ai/docs/nocobase/get-started/upgrading/docker.md +1 -0
  7. package/dist/ai/docs/nocobase/get-started/upgrading/git.md +1 -0
  8. package/dist/ai/docs/nocobase/plugin-development/client/ctx/common-capabilities.md +1 -1
  9. package/dist/ai/docs/nocobase/runjs/context/exit-all.md +3 -27
  10. package/dist/ai/docs/nocobase/runjs/context/exit.md +5 -29
  11. package/dist/client/264.a434eda1b7001d79.js +10 -0
  12. package/dist/client/index.js +1 -1
  13. package/dist/client-v2/264.92bd3dc68e1cb80d.js +10 -0
  14. package/dist/client-v2/ai-employees/chatbox/components/ChatBoxLayout.d.ts +2 -0
  15. package/dist/client-v2/ai-employees/chatbox/components/ChatButton.d.ts +3 -1
  16. package/dist/client-v2/index.js +1 -1
  17. package/dist/client-v2/pages/MCPSettingsPage.d.ts +3 -1
  18. package/dist/collections/ai-mcp-clients.js +5 -0
  19. package/dist/externalVersion.js +15 -15
  20. package/dist/locale/en-US.json +9 -0
  21. package/dist/locale/zh-CN.json +9 -0
  22. package/dist/node_modules/@langchain/mistralai/package.json +1 -1
  23. package/dist/node_modules/@langchain/xai/package.json +1 -1
  24. package/dist/node_modules/fs-extra/package.json +1 -1
  25. package/dist/node_modules/jsonrepair/package.json +1 -1
  26. package/dist/node_modules/just-bash/package.json +1 -1
  27. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  28. package/dist/node_modules/openai/package.json +1 -1
  29. package/dist/node_modules/zod/package.json +1 -1
  30. package/dist/server/ai-employees/ai-employee.js +31 -2
  31. package/dist/server/collections/ai-mcp-tool-permissions.d.ts +10 -0
  32. package/dist/server/collections/ai-mcp-tool-permissions.js +53 -0
  33. package/dist/server/plugin.js +4 -2
  34. package/dist/server/resource/aiMcpClients.js +106 -9
  35. package/package.json +2 -2
  36. package/dist/client/264.6ca5f2eeb4173d86.js +0 -10
  37. package/dist/client-v2/264.3c7d8e90aa7f46ee.js +0 -10
@@ -11,6 +11,8 @@ This guide applies to apps installed with `nb init`. If your app was installed w
11
11
 
12
12
  :::
13
13
 
14
+ If email password recovery is enabled, check the sub-application’s registered domain or set [APP_PUBLIC_ORIGIN](../get-started/installation/env.md#app_public_origin) for the main application and sub-applications without a domain.
15
+
14
16
  ## Step 1: Confirm the Current Env
15
17
 
16
18
  ```bash
@@ -21,6 +21,7 @@ nb api resource list --resource <resource> [flags]
21
21
  | `--resource` | string | Resource name, required |
22
22
  | `--data-source` | string | Data source key, default `main` |
23
23
  | `--source-id` | string | Source record ID for association resources |
24
+ | `--space` | string | Name of a single space to query with the Multi-Space plugin. |
24
25
  | `--filter` | string | Filter conditions as a JSON object |
25
26
  | `--fields` | string[] | Fields to query; repeatable or pass a JSON array |
26
27
  | `--appends` | string[] | Association fields to append; repeatable or pass a JSON array |
@@ -36,6 +37,7 @@ Also supports common connection parameters from [`nb api resource`](./index.md).
36
37
 
37
38
  ```bash
38
39
  nb api resource list --resource users
40
+ nb api resource list --resource orders --space sales
39
41
  nb api resource list --resource posts.comments --source-id 1 --fields id --fields content
40
42
  nb api resource list --resource users --filter '{"status":"active"}' --sort=-createdAt
41
43
  ```
@@ -66,8 +66,7 @@ The most commonly used `ctx` properties in plugin development:
66
66
 
67
67
  | Method | Description |
68
68
  |--------|-------------|
69
- | `ctx.exit()` | Abort execution of the current flow |
70
- | `ctx.exitAll()` | Abort execution of all flows |
69
+ | `ctx.exit()`, `ctx.exitAll()` | Both calls stop the current step and skip the remaining flows in the same sequential event dispatch. Flows already running in parallel continue. |
71
70
  | `ctx.getStepParams(stepKey)` | Get the saved parameters for a specific step |
72
71
  | `ctx.setStepParams(stepKey, params)` | Set parameters for a specific step |
73
72
  | `ctx.getStepResults(stepKey)` | Get the execution result of a previous step |
@@ -76,6 +76,14 @@ Application port, default is `13000`.
76
76
  APP_PORT=13000
77
77
  ```
78
78
 
79
+ ### APP_PUBLIC_ORIGIN
80
+
81
+ Reset emails for a sub-application with a registered custom domain (`cname`) open that domain over HTTPS. Enter a hostname such as `billing.example.com`. The link includes the deployment path from `APP_PUBLIC_PATH` and opens the sub-application directly.
82
+
83
+ If you use email password recovery on the main application or a sub-application without a custom domain, set `APP_PUBLIC_ORIGIN=https://accounts.example.com` before upgrading. Include the public scheme, host and optional port. A sub-application on the shared site uses its application path. For Docker, update the Compose app service and recreate its container. For a source or `create-nocobase-app` installation, update `.env` and restart. If the address cannot be determined, reset emails are paused. After upgrading, open a reset email for each public entry point.
84
+
85
+ If NocoBase is your OpenID Connect provider, check that setting `APP_PUBLIC_ORIGIN` preserves the issuer URL registered with your clients. A sub-application with its own domain needs no change to this variable for password recovery.
86
+
79
87
  ### API_BASE_PATH
80
88
 
81
89
  NocoBase API address prefix, default is `/api/`.
@@ -4,6 +4,7 @@
4
4
 
5
5
  - Be sure to back up the database first
6
6
  - Stop the running NocoBase instance
7
+ - If email password recovery is enabled, check the sub-application’s registered domain or set [APP_PUBLIC_ORIGIN](../installation/env.md#app_public_origin) for the main application and sub-applications without a domain.
7
8
 
8
9
  :::
9
10
 
@@ -3,6 +3,7 @@
3
3
  :::warning Before you upgrade
4
4
 
5
5
  - Be sure to back up your database
6
+ - If email password recovery is enabled, check the sub-application’s registered domain or set [APP_PUBLIC_ORIGIN](../installation/env.md#app_public_origin) for the main application and sub-applications without a domain.
6
7
 
7
8
  :::
8
9
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  - Be sure to back up your database first
6
6
  - Stop the running NocoBase instance (`Ctrl + C`)
7
+ - If email password recovery is enabled, check the sub-application’s registered domain or set [APP_PUBLIC_ORIGIN](../installation/env.md#app_public_origin) for the main application and sub-applications without a domain.
7
8
 
8
9
  :::
9
10
 
@@ -471,7 +471,7 @@ The following capabilities may be useful in more advanced scenarios. Here is a b
471
471
  | ----------------------- | ---------------------------------------------------------------- |
472
472
  | `ctx.model` | Current FlowModel instance (available in Flow execution context) |
473
473
  | `ctx.ref` | Component reference, used with `ctx.onRefReady` |
474
- | `ctx.exit()` | Exit the current Flow execution |
474
+ | `ctx.exit()`, `ctx.exitAll()` | Both calls stop the current step and skip the remaining flows in the same sequential event dispatch. Flows already running in parallel continue. |
475
475
  | `ctx.defineProperty()` | Dynamically add custom properties to the context |
476
476
  | `ctx.defineMethod()` | Dynamically add custom methods to the context |
477
477
  | `ctx.useResource()` | Get data resource operation interface |
@@ -12,7 +12,7 @@ Terminates the current event flow and all subsequent event flows triggered in th
12
12
  | **Linkage Rules** | When linkage validation fails, the current linkage and subsequent linkages triggered by the same event must be terminated. |
13
13
  | **Action Events** | Pre-action validation fails (e.g., permission check before deletion), requiring the prevention of the main action and subsequent steps. |
14
14
 
15
- > Difference from `ctx.exit()`: `ctx.exit()` only terminates the current event flow; `ctx.exitAll()` terminates the current event flow and any **unexecuted** subsequent event flows in the same event dispatch.
15
+ > `ctx.exit()` / `ctx.exitAll()` — Both calls stop the current step and skip the remaining flows in the same sequential event dispatch. Flows already running in parallel continue.
16
16
 
17
17
  ## Type Definition
18
18
 
@@ -22,13 +22,6 @@ exitAll(): never;
22
22
 
23
23
  Calling `ctx.exitAll()` throws an internal `FlowExitAllException`, which is caught by the FlowEngine to stop the current event flow instance and subsequent event flows under the same event. Once called, the remaining statements in the current JS code will not be executed.
24
24
 
25
- ## Comparison with ctx.exit()
26
-
27
- | Method | Scope |
28
- |------|----------|
29
- | `ctx.exit()` | Only terminates the current event flow; subsequent event flows are unaffected. |
30
- | `ctx.exitAll()` | Terminates the current event flow and aborts subsequent event flows executed **sequentially** under the same event. |
31
-
32
25
  ## Execution Mode
33
26
 
34
27
  - **Sequential Execution**: Event flows under the same event are executed in order. After any event flow calls `ctx.exitAll()`, subsequent event flows will not execute.
@@ -57,22 +50,6 @@ if (!canDelete) {
57
50
  }
58
51
  ```
59
52
 
60
- ### Choosing between ctx.exit() and ctx.exitAll()
61
-
62
- ```ts
63
- // Only the current event flow needs to exit -> Use ctx.exit()
64
- if (!params.valid) {
65
- ctx.message.error('Invalid parameters');
66
- ctx.exit(); // Subsequent event flows are unaffected
67
- }
68
-
69
- // Need to terminate all subsequent event flows under the current event -> Use ctx.exitAll()
70
- if (!ctx.model?.context?.getPermission?.()) {
71
- ctx.notification.warning({ message: 'Insufficient permissions' });
72
- ctx.exitAll(); // Both the main event flow and subsequent event flows under the same event are terminated
73
- }
74
- ```
75
-
76
53
  ### Prompt before terminating
77
54
 
78
55
  ```ts
@@ -86,11 +63,10 @@ if (!isValidInput(ctx.form?.getValues?.())) {
86
63
 
87
64
  - After calling `ctx.exitAll()`, subsequent code in the current JS will not execute. It is recommended to explain the reason to the user via `ctx.message`, `ctx.notification`, or a modal before calling it.
88
65
  - Business code usually does not need to catch `FlowExitAllException`; let the FlowEngine handle it.
89
- - If you only need to stop the current event flow without affecting subsequent ones, use `ctx.exit()`.
90
66
  - In parallel mode, `ctx.exitAll()` only terminates the current event flow and does not interrupt other concurrent event flows.
91
67
 
92
68
  ## Related
93
69
 
94
- - [ctx.exit()](./exit.md): Terminates only the current event flow
70
+ - [ctx.exit()](./exit.md)
95
71
  - [ctx.message](./message.md): Message prompts
96
- - [ctx.modal](./modal.md): Confirmation modal
72
+ - [ctx.modal](./modal.md): Confirmation modal
@@ -12,7 +12,7 @@ Terminates the execution of the current event flow; subsequent steps will not ru
12
12
  | **Linkage Rules** | In field linkages, filter linkages, etc., terminates the current event flow when validation fails or execution needs to be skipped. |
13
13
  | **Action Events** | In custom actions (e.g., delete confirmation, pre-save validation), exits when the user cancels or validation fails. |
14
14
 
15
- > Difference from `ctx.exitAll()`: `ctx.exit()` only terminates the current event flow; other event flows under the same event are not affected. `ctx.exitAll()` terminates the current event flow as well as any subsequent event flows under the same event that have not yet been executed.
15
+ > `ctx.exit()` / `ctx.exitAll()` — Both calls stop the current step and skip the remaining flows in the same sequential event dispatch. Flows already running in parallel continue.
16
16
 
17
17
  ## Type Definition
18
18
 
@@ -20,14 +20,7 @@ Terminates the execution of the current event flow; subsequent steps will not ru
20
20
  exit(): never;
21
21
  ```
22
22
 
23
- Calling `ctx.exit()` throws an internal `FlowExitException`, which is caught by the FlowEngine to stop the current event flow execution. Once called, the remaining statements in the current JS code will not execute.
24
-
25
- ## Comparison with ctx.exitAll()
26
-
27
- | Method | Scope of Effect |
28
- |------|----------|
29
- | `ctx.exit()` | Terminates only the current event flow; subsequent event flows are unaffected. |
30
- | `ctx.exitAll()` | Terminates the current event flow and aborts subsequent event flows under the same event that are set to **execute sequentially**. |
23
+ Calling `ctx.exit()` throws an internal `FlowExitAllException`, which is caught by the FlowEngine to stop the current event flow execution. Once called, the remaining statements in the current JS code will not execute.
31
24
 
32
25
  ## Examples
33
26
 
@@ -62,22 +55,6 @@ if (!record || record.status !== 'draft') {
62
55
  }
63
56
  ```
64
57
 
65
- ### Choosing Between ctx.exit() and ctx.exitAll()
66
-
67
- ```ts
68
- // Only the current event flow needs to exit → Use ctx.exit()
69
- if (!params.valid) {
70
- ctx.message.error('Invalid parameters');
71
- ctx.exit(); // Other event flows are unaffected
72
- }
73
-
74
- // Need to terminate all subsequent event flows under the current event → Use ctx.exitAll()
75
- if (!ctx.model?.context?.getPermission?.()) {
76
- ctx.notification.warning({ message: 'Insufficient permissions' });
77
- ctx.exitAll(); // Both the current event flow and subsequent event flows under the same event are terminated
78
- }
79
- ```
80
-
81
58
  ### Exit Based on User Choice After Modal Confirmation
82
59
 
83
60
  ```ts
@@ -94,11 +71,10 @@ if (!ok) {
94
71
  ## Notes
95
72
 
96
73
  - After calling `ctx.exit()`, subsequent code in the current JS will not execute; it is recommended to explain the reason to the user via `ctx.message`, `ctx.notification`, or a modal before calling it.
97
- - There is usually no need to catch `FlowExitException` in business code; let the FlowEngine handle it.
98
- - If you need to terminate all subsequent event flows under the current event, use `ctx.exitAll()`.
74
+ - There is usually no need to catch `FlowExitAllException` in business code; let the FlowEngine handle it.
99
75
 
100
76
  ## Related
101
77
 
102
- - [ctx.exitAll()](./exit-all.md): Terminates the current event flow and subsequent event flows under the same event.
78
+ - [ctx.exitAll()](./exit-all.md)
103
79
  - [ctx.message](./message.md): Message prompts.
104
- - [ctx.modal](./modal.md): Confirmation modals.
80
+ - [ctx.modal](./modal.md): Confirmation modals.
@@ -0,0 +1,10 @@
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
+ "use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["264"],{2851:function(e,t,n){n.r(t),n.d(t,{MCPSettingsPage:function(){return eu},createMCPClient:function(){return H},createMCPRequestVariableNode:function(){return Q},deleteMCPClient:function(){return _},deleteMCPClients:function(){return K},getMCPToolsByServer:function(){return z},isProtectedMCP:function(){return R},listMCPClients:function(){return L},listMCPTools:function(){return G},rebuildMCPClient:function(){return $},sanitizeMCPValues:function(){return N},testMCPConnection:function(){return V},toMCPFormValues:function(){return U},updateMCPClient:function(){return X},updateMCPClientEnabled:function(){return W},updateMCPToolPermission:function(){return J}});var r=n(9155),a=n.n(r),l=n(2059),i=n(7375),u=n(5477),o=n(3485),c=n(7694),s=n(9488),d=n(9312),f=n(8666);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,a,l,i){try{var u=e[l](i),o=u.value}catch(e){n(e);return}u.done?t(o):Promise.resolve(o).then(r,a)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function i(e){p(l,r,a,i,u,"next",e)}function u(e){p(l,r,a,i,u,"throw",e)}i(void 0)})}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){y(e,t,n[t])})}return e}function v(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function E(e,t){if(null==e)return{};var n,r,a,l={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}if(l=function(e,t){if(null==e)return{};var n,r,a={},l=Object.getOwnPropertyNames(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l=[],i=!0,u=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){u=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(u)throw r}}return l}}(e,t)||S(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}function x(e,t){var n,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(i,"next",{value:o(0)}),u(i,"throw",{value:o(1)}),u(i,"return",{value:o(2)}),"function"==typeof Symbol&&u(i,Symbol.iterator,{value:function(){return this}}),i;function o(u){return function(o){var c=[u,o];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(l=0)),l;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,r=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){l=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){l.label=c[1];break}if(6===c[0]&&l.label<a[1]){l.label=a[1],a=c;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(c);break}a[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function P(){var e,t,n=(e=["\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n\n .ant-spin-nested-loading,\n .ant-spin-container,\n .ant-table,\n .ant-table-container {\n min-height: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n\n .ant-table-content {\n flex: 1;\n min-height: 0;\n }\n\n .ant-table-body {\n flex: 1;\n min-height: 0;\n }\n\n .ant-table-thead > tr > th {\n white-space: nowrap;\n }\n\n .ant-pagination {\n flex: 0 0 auto;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return P=function(){return n},n}var O=[{label:"Stdio",value:"stdio"},{label:"HTTP (Streamable)",value:"http"},{label:"HTTP + SSE (Legacy)",value:"sse"}],A={stdio:"blue",http:"green",sse:"gold"},k=(0,u.css)(P()),F=function(e){return null!==e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)},T=function(e){var t,n;if(F(e))return null!=(t=null==(n=e.data)?void 0:n.data)?t:e.data},j=function(e){if(F(e)){var t,n=null==(t=e.data)?void 0:t.count;return"number"==typeof n?n:void 0}},M=function(e,t,n,r){return b(function(){var a;return x(this,function(l){if("function"!=typeof(a=e.resource(t)[n]))throw Error("Missing resource action: ".concat(t,".").concat(n));return[2,a(r)]})})()},I=function(e){var t;return F(e)&&"string"==typeof e.name&&("stdio"===(t=e.transport)||"http"===t||"sse"===t)},B=function(e){return F(e)&&"string"==typeof e.name&&"string"==typeof e.title&&"string"==typeof e.serverName},q=function(e){return Object.entries(e||{}).map(function(e){var t=C(e,2),n=t[0],r=t[1];return{name:n,value:null==r?"":String(r)}})},D=function(e){return F(e)?Object.entries(e).reduce(function(e,t){var n=C(t,2),r=n[0],a=n[1];return r&&(e[r]=null==a?"":String(a)),e},{}):(Array.isArray(e)?e:[]).reduce(function(e,t){return(null==t?void 0:t.name)&&(e[t.name]=t.value||""),e},{})},R=function(e){return(null==e?void 0:e.transport)==="stdio"||(null==e?void 0:e.fromFile)===!0},N=function(e){var t=e.transport,n=v(g({},e),{useUserContext:"stdio"!==t&&!0===e.useUserContext,args:"string"==typeof e.args?e.args.split(" ").map(function(e){return e.trim()}).filter(Boolean):Array.isArray(e.args)?e.args:[],env:D(e.env),headers:D(e.headers),restart:F(e.restart)?e.restart:{}});return(delete n.fromFile,"stdio"===t)?v(g({},n),{url:null,headers:{}}):v(g({},n),{command:null,args:[],env:{}})},U=function(e){return v(g({},e),{args:Array.isArray(e.args)?e.args.join(" "):"",env:q(e.env),headers:q(e.headers),restart:F(e.restart)?e.restart:{}})},z=function(e,t){var n=null==e?void 0:e[t];return Array.isArray(n)?n.filter(B):[]};function L(e){return b(function(){var t,n;return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","list")];case 1:return[2,{data:Array.isArray(n=T(t=r.sent()))?n.filter(I):[],total:j(t)}]}})})()}function V(e,t,n){return b(function(){var r;return x(this,function(a){switch(a.label){case 0:return[4,M(e,"aiMcpClients","testConnection",(null==n?void 0:n.transport)==="stdio"?{filterByTk:n.name}:{values:N(t)})];case 1:var l;return[2,F(l=r=T(a.sent()))&&"boolean"==typeof l.success?r:null]}})})()}function H(e,t){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,M(e,"aiMcpClients","create",{values:N(t)})];case 1:return n.sent(),[2]}})})()}function X(e,t,n){return b(function(){return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","update",{values:N(t),filterByTk:n})];case 1:return r.sent(),[2]}})})()}function _(e,t){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,M(e,"aiMcpClients","destroy",{filterByTk:t})];case 1:return n.sent(),[2]}})})()}function K(e,t){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,M(e,"aiMcpClients","destroy",{filterByTk:t})];case 1:return n.sent(),[2]}})})()}function W(e,t,n){return b(function(){return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","update",{filterByTk:t,values:{enabled:n}})];case 1:return r.sent(),[2]}})})()}function $(e){return b(function(){return x(this,function(t){switch(t.label){case 0:return[4,M(e,"aiMcpClients","rebuildClient")];case 1:return t.sent(),[2]}})})()}function G(e,t){return b(function(){var n;return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","listTools")];case 1:return[2,F(n=T(r.sent()))?z(n,t):[]]}})})()}function J(e,t,n){return b(function(){return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","updateToolPermission",{values:{toolName:t,permission:n}})];case 1:return r.sent(),[2]}})})()}var Q=function(e){return{name:"request",title:e("NocoBase request"),type:"object",paths:["request"],children:[{name:"headers",title:"headers",type:"object",paths:["request","headers"],children:[{name:"x-app",title:"X-App",type:"string",paths:["request","headers","x-app"]},{name:"x-locale",title:"X-Locale",type:"string",paths:["request","headers","x-locale"]},{name:"x-hostname",title:"X-Hostname",type:"string",paths:["request","headers","x-hostname"]},{name:"x-timezone",title:"X-Timezone",type:"string",paths:["request","headers","x-timezone"]},{name:"x-role",title:"X-Role",type:"string",paths:["request","headers","x-role"]},{name:"x-authenticator",title:"X-Authenticator",type:"string",paths:["request","headers","x-authenticator"]}]},{name:"token",title:"Token",type:"string",paths:["request","token"]}]}},Y=function(e,t){var n,r=(null==(n=e.paths)?void 0:n.length)?[t].concat(w(e.paths.slice(1))):[t];return v(g({},e),{name:1===r.length?t:e.name,paths:r,children:function(e){if(e)return"function"==typeof e?function(){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return[2,n.sent().map(function(e){return Y(e,t)})]}})})()}:e.map(function(e){return Y(e,t)})}(e.children)})},Z=function(e){var t=(0,c.useFlowContext)(),n=(0,s.kj)();return(0,r.useMemo)(function(){if(!e)return[];var r,a=null==(r=t.getPropertyMetaTree)?void 0:r.call(t).find(function(e){return"user"===e.name});return[a?Y(a,"$user"):null,Q(n)].filter(function(e){return!!e})},[e,t,n])},ee=function(e){var t=e.variableScope,n=E(e,["variableScope"]),r=l.Form.useFormInstance(),i=l.Form.useWatch("useUserContext",r),u=Z("user"===(void 0===t?"env":t)&&!0===i);return a().createElement(o.VariableInput,v(g({},n),{readOnly:n.readOnly||n.disabled,namespaces:["$env"],extraNodes:u}))},et=function(e){var t=e.tooltip,n=E(e,["tooltip"]),i=l.Form.useFormInstance(),u="stdio"===l.Form.useWatch("transport",i);(0,r.useEffect)(function(){u&&!n.disabled&&i.getFieldValue("useUserContext")&&i.setFieldValue("useUserContext",!1)},[u,i,n.disabled]);var o=a().createElement(l.Checkbox,v(g({},n),{disabled:u||n.disabled}));return t?a().createElement(l.Tooltip,{title:t},o):o},en=function(e){var t=e.value,n=e.onChange,r=e.addLabel,u=e.variableScope,o=void 0===u?"env":u,c=e.disabled,d=void 0!==c&&c,f=(0,s.kj)(),m=Array.isArray(t)?t:q(t),p=function(e,t,r){var a=w(m);a[e]=v(g({},a[e]),y({},t,r)),null==n||n(a)};return a().createElement(l.Flex,{vertical:!0,gap:"small"},m.map(function(e,t){return a().createElement(l.Flex,{key:t,gap:"small",align:"baseline"},a().createElement(l.Input,{disabled:d,"aria-label":f("Name"),placeholder:f("Name"),value:e.name,onChange:function(e){return p(t,"name",e.target.value)}}),a().createElement(ee,{disabled:d,variableScope:o,value:e.value,onChange:function(e){return p(t,"value",e)}}),a().createElement(l.Button,{disabled:d,"aria-label":f("Delete"),type:"text",icon:a().createElement(i.DeleteOutlined,null),onClick:function(){return null==n?void 0:n(m.filter(function(e,n){return n!==t}))}}))}),a().createElement(l.Button,{disabled:d,type:"dashed",icon:a().createElement(i.PlusOutlined,null),onClick:function(){return null==n?void 0:n(w(m).concat([{name:"",value:""}]))}},r))},er=function(e){var t=e.editing,n=e.readOnly,r=e.testResult,i=e.testing,u=(0,s.kj)(),o=l.Form.useFormInstance(),c=l.Form.useWatch("transport",o),d="stdio"===c;return a().createElement(a().Fragment,null,a().createElement(l.Alert,{type:"info",showIcon:!0,message:u(n?"This MCP server is managed by deployment configuration. Only its enabled state can be changed.":"Stdio MCP servers can only be configured in storage/ai/mcp/servers.json."),style:{marginBottom:16}}),a().createElement(l.Form.Item,{name:"name",label:u("Name"),rules:[{required:!0}]},a().createElement(l.Input,{disabled:t})),a().createElement(l.Form.Item,{name:"title",label:u("Title"),rules:n?[]:[{required:!0}]},a().createElement(l.Input,null)),a().createElement(l.Form.Item,{name:"description",label:u("Description")},a().createElement(l.Input.TextArea,{autoSize:{minRows:2,maxRows:4}})),a().createElement(l.Form.Item,{name:"transport",label:u("Transport"),rules:[{required:!0}]},a().createElement(l.Select,{options:O.filter(function(e){return"stdio"!==e.value||d}).map(function(e){return v(g({},e),{label:u(e.label)})})})),a().createElement(l.Form.Item,{name:"useUserContext",label:u("Depends on current user"),valuePropName:"checked"},a().createElement(et,{disabled:n,tooltip:u("When enabled, URL and headers can use current user variables and NocoBase request variables. Stdio transport is not supported.")})),d?a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:"command",label:u("Command"),rules:[{required:!0}]},a().createElement(ee,{disabled:n,placeholder:u("For example: npx, uvx, node")})),a().createElement(l.Form.Item,{name:"args",label:u("Arguments")},a().createElement(ee,{disabled:n,placeholder:u("Space-separated args, e.g.: -u --flag value")})),a().createElement(l.Form.Item,{name:"env",label:u("Environment variables")},a().createElement(en,{disabled:n,addLabel:u("Add variable")}))):null,"http"===c||"sse"===c?a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:"url",label:u("URL"),rules:[{required:!0}]},a().createElement(ee,{disabled:n,variableScope:"user",placeholder:u("For example: https://example.com/mcp")})),a().createElement(l.Form.Item,{name:"headers",label:u("Headers")},a().createElement(en,{disabled:n,variableScope:"user",addLabel:u("Add request header")}))):null,a().createElement(ea,{result:r,loading:i}))},ea=function(e){var t,n=e.result,r=e.loading,u=(0,s.kj)();return r?a().createElement(l.Flex,{justify:"center",gap:"small",role:"status"},a().createElement(l.Spin,null),a().createElement("span",null,u("Testing connection..."))):n?n.success?a().createElement(l.Alert,{type:"success",showIcon:!0,icon:a().createElement(i.CheckCircleOutlined,null),message:u("Connection Successful"),description:a().createElement(l.Flex,{vertical:!0,gap:"small"},a().createElement("span",null,u("Successfully connected to MCP server")),a().createElement("span",null,u("Tools found"),": ",n.toolsCount),(null==(t=n.tools)?void 0:t.length)?a().createElement(l.Space,{wrap:!0},n.tools.map(function(e){return a().createElement(l.Tag,{key:e},e)}),n.toolsTruncated?a().createElement("span",null,"..."):null):null)}):a().createElement(l.Alert,{type:"error",showIcon:!0,icon:a().createElement(i.CloseCircleOutlined,null),message:u("Connection Failed"),description:a().createElement(l.Flex,{vertical:!0,gap:"small"},a().createElement("span",null,n.error||u("Failed to connect to MCP server")),n.details?a().createElement(l.Typography.Text,{code:!0},n.details):null)}):null},el=function(e){var t=e.record,n=e.rebuilding,i=(0,o.useApp)(),u=(0,s.kj)(),c=l.App.useApp().message,d=C((0,r.useState)([]),2),f=d[0],m=d[1],p=C((0,r.useState)(!1),2),y=p[0],E=p[1],w=C((0,r.useState)(new Set),2),S=w[0],P=w[1],O=(0,r.useRef)(c),A=(0,r.useRef)(u);return(O.current=c,A.current=u,(0,r.useEffect)(function(){var e=!1;return b(function(){var n,r;return x(this,function(a){switch(a.label){case 0:E(!0),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,G(i.apiClient,t.name)];case 2:return n=a.sent(),e||m(n),[3,5];case 3:return r=a.sent(),e||(O.current.error(h(r,Error)?r.message:A.current("Failed to load MCP tools")),m([])),[3,5];case 4:return e||E(!1),[7];case 5:return[2]}})})().catch(function(e){console.error(e)}),function(){e=!0}},[i.apiClient,t.name]),y)?a().createElement(l.Flex,{justify:"center"},a().createElement(l.Spin,null)):f.length?a().createElement(l.List,{itemLayout:"vertical",dataSource:f,pagination:{pageSize:10,hideOnSinglePage:!1,size:"small",showTotal:function(e){return u("Total {{count}} items",{count:e})}},renderItem:function(e){return a().createElement(l.List.Item,{key:e.name,extra:a().createElement(l.Space,null,a().createElement(l.Typography.Text,{type:"secondary"},u("Permission")),a().createElement(l.Segmented,{size:"small",name:e.name,options:[{label:u("Ask"),value:"ASK"},{label:u("Allow"),value:"ALLOW"}],value:e.permission,disabled:n||S.has(e.name),onChange:function(t){var n;return n=e.name,b(function(){var e,r,a;return x(this,function(l){switch(l.label){case 0:if(S.has(n))return[2];r=null==(e=f.find(function(e){return e.name===n}))?void 0:e.permission,P(function(e){return new Set(e).add(n)}),m(function(e){return e.map(function(e){return e.name===n?v(g({},e),{permission:t}):e})}),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,J(i.apiClient,n,t)];case 2:return l.sent(),[3,5];case 3:return a=l.sent(),m(function(e){return e.map(function(e){return e.name===n&&r?v(g({},e),{permission:r}):e})}),O.current.error(h(a,Error)?a.message:A.current("Failed to update tool permission")),[3,5];case 4:return P(function(e){var t=new Set(e);return t.delete(n),t}),[7];case 5:return[2]}})})()}}))},a().createElement("div",null,e.title),e.description?a().createElement(l.Typography.Paragraph,{type:"secondary",ellipsis:{rows:3,expandable:"collapsible"}},e.description):null)}}):a().createElement(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,description:u("No data")})},ei=function(e){var t=e.record,n=e.rebuilding,i=e.onUpdated,u=(0,o.useApp)(),c=C((0,r.useState)(!1),2),s=c[0],d=c[1];return a().createElement(l.Switch,{size:"small",checked:!1!==t.enabled,loading:s,disabled:n,onChange:function(e){return b(function(){return x(this,function(n){switch(n.label){case 0:d(!0),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,W(u.apiClient,t.name,e)];case 2:return n.sent(),[4,$(u.apiClient)];case 3:return n.sent(),[4,i()];case 4:return n.sent(),[3,6];case 5:return d(!1),[7];case 6:return[2]}})})()}})},eu=function(){var e=(0,o.useApp)(),t=(0,c.useFlowContext)(),n=(0,s.kj)(),u=l.App.useApp(),f=u.message;u.modal;var m=l.theme.useToken().token,p=C((0,r.useState)([]),2),y=p[0],h=p[1],g=C((0,r.useState)(!1),2),v=g[0],E=g[1],w=C((0,r.useState)([]),2),S=w[0],P=w[1],F=C((0,r.useState)(!1),2),T=F[0],j=F[1],M=(0,r.useRef)(Promise.resolve()),I=(0,r.useRef)(0),B=(0,r.useMemo)(function(){return{color:m.colorPrimary,marginInline:-m.paddingSM,paddingBlockEnd:m.paddingSM,paddingBlockStart:m.paddingSM+m.paddingXS,paddingInlineEnd:m.paddingXS+m.paddingSM,paddingInlineStart:m.paddingSM}},[m.colorPrimary,m.paddingSM,m.paddingXS]),q=(0,r.useCallback)(function(){return b(function(){var t;return x(this,function(n){return I.current+=1,j(!0),t=M.current.catch(function(){}).then(function(){return b(function(){return x(this,function(t){switch(t.label){case 0:return[4,$(e.apiClient)];case 1:return t.sent(),[2]}})})()}),M.current=t.finally(function(){I.current-=1,0===I.current&&j(!1)}),[2,t]})})()},[e.apiClient]),D=(0,r.useCallback)(function(){return b(function(){var t;return x(this,function(n){switch(n.label){case 0:E(!0),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,L(e.apiClient)];case 2:return h((t=n.sent()).data),P(function(e){return e.filter(function(e){return t.data.some(function(t){return t.name===e&&!R(t)})})}),[3,4];case 3:return E(!1),[7];case 4:return[2]}})})()},[e.apiClient]);(0,r.useEffect)(function(){D().catch(function(e){console.error(e),E(!1)})},[D]);var N=function(e){t.viewer.open({type:"drawer",width:d.o,closable:!0,content:a().createElement(eo,{record:e,rebuilding:T,rebuildClient:q,onSubmitted:D})})},U=[{title:n("Name"),dataIndex:"name"},{title:n("Title"),dataIndex:"title"},{title:n("Transport"),dataIndex:"transport",render:function(e){var t,r=(null==(t=O.find(function(t){return t.value===e}))?void 0:t.label)||e;return a().createElement(l.Tag,{color:A[e]},n(r))}},{title:n("Enabled"),dataIndex:"enabled",render:function(e,t){return a().createElement(ei,{record:t,rebuilding:T,onUpdated:D})}},{title:n("Actions"),key:"actions",render:function(r,i){return a().createElement(l.Space,{size:m.marginXS},a().createElement(l.Button,{type:"link",style:B,onClick:function(){t.viewer.open({type:"drawer",width:d.p,closable:!0,content:a().createElement(es,{record:i,rebuilding:T})})}},n("View")),a().createElement(l.Button,{type:"link",style:B,onClick:function(){return N(i)}},n("Edit")),a().createElement(l.Popconfirm,{disabled:R(i),title:n("Delete record"),description:n("Are you sure you want to delete it?"),onConfirm:function(){return b(function(){return x(this,function(t){switch(t.label){case 0:if(R(i))return[2];return[4,_(e.apiClient,i.name)];case 1:return t.sent(),[4,q()];case 2:return t.sent(),f.success(n("Saved successfully")),[4,D()];case 3:return t.sent(),[2]}})})()}},a().createElement(l.Tooltip,{title:R(i)?n("This MCP server is managed by deployment configuration. Only its enabled state can be changed."):void 0},a().createElement(l.Button,{type:"link",style:B,disabled:R(i),"aria-label":"".concat(n("Delete"),": ").concat(i.name)},n("Delete")))))}}];return a().createElement(l.Card,{style:{display:"flex",flexDirection:"column",minHeight:"100%"},styles:{body:{display:"flex",flex:1,flexDirection:"column",minHeight:0}}},a().createElement(l.Flex,{vertical:!0,gap:"middle",style:{flex:1,minHeight:0}},a().createElement(l.Flex,{justify:"end",wrap:"wrap",gap:"middle"},a().createElement(l.Space,null,a().createElement(l.Button,{icon:a().createElement(i.ReloadOutlined,null),onClick:function(){return D()}},n("Refresh")),a().createElement(l.Popconfirm,{title:n("Delete record"),description:n("Are you sure you want to delete it?"),disabled:!S.length||T,onConfirm:function(){return b(function(){var t;return x(this,function(r){switch(r.label){case 0:if(!(t=S.filter(function(e){return"string"==typeof e})).length)return[2];if(t.some(function(e){return!y.some(function(t){return t.name===e&&!R(t)})}))return f.warning(n("This MCP server is managed by deployment configuration. Only its enabled state can be changed.")),P([]),[2];return[4,K(e.apiClient,t)];case 1:return r.sent(),[4,q()];case 2:return r.sent(),P([]),f.success(n("Saved successfully")),[4,D()];case 3:return r.sent(),[2]}})})()}},a().createElement(l.Button,{icon:a().createElement(i.DeleteOutlined,null),disabled:!S.length||T},n("Delete"))),a().createElement(l.Button,{type:"primary",icon:a().createElement(i.PlusOutlined,null),onClick:function(){t.viewer.open({type:"drawer",width:d.o,closable:!0,content:a().createElement(eo,{rebuilding:T,rebuildClient:q,onSubmitted:D})})},disabled:T},n("Add new")))),a().createElement("div",{style:{display:"flex",flex:1,flexDirection:"column",minHeight:0}},a().createElement(o.Table,{rowKey:"name",loading:v,columns:U,dataSource:y,className:k,rowSelection:{selectedRowKeys:S,onChange:P,getCheckboxProps:function(e){return{disabled:R(e)}}},pagination:{defaultPageSize:20,showTotal:function(e){return n("Total {{count}} items",{count:e})}},scroll:{x:"max-content",y:"100%"}}))))},eo=function(e){var t=l.App.useApp().message;return a().createElement(l.App,{component:!1},a().createElement(ec,v(g({},e),{message:t})))},ec=function(e){var t=e.record,n=e.rebuilding,i=e.rebuildClient,u=e.onSubmitted,d=e.message,m=(0,o.useApp)(),p=(0,c.useFlowContext)(),y=(0,s.kj)(),g=l.App.useApp().modal,v=C(l.Form.useForm(),1)[0],E=C((0,r.useState)(!1),2),w=E[0],S=E[1],P=C((0,r.useState)(!1),2),O=P[0],A=P[1],k=C((0,r.useState)(null),2),F=k[0],T=k[1],j=C((0,r.useState)(!1),2),M=j[0],I=j[1],B=R(t),q=(0,r.useMemo)(function(){return t?U(t):{name:"",title:"",enabled:!0,transport:"http",useUserContext:!1,command:"",url:"",args:"",env:[],headers:[],restart:{}}},[t]),D=p.view,z=D.Header,L=D.Footer;(0,r.useEffect)(function(){v.setFieldsValue(q)},[v,q]);var _=(0,f.C)({view:p.view,form:v,initialValues:q,dirty:M,title:y("Unsaved changes"),content:y("Are you sure you don't want to save?")}),K=function(){return b(function(){var e,n,r;return x(this,function(a){switch(a.label){case 0:e=v.getFieldsValue(!0),A(!0),T(null),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,V(m.apiClient,e,t)];case 2:return T(n=a.sent()),[2,!!(null==n?void 0:n.success)];case 3:return T({success:!1,error:h(r=a.sent(),Error)?r.message:y("An error occurred while testing the connection")}),[2,!1];case 4:return A(!1),[7];case 5:return[2]}})})()};return a().createElement(a().Fragment,null,a().createElement(z,{title:t?y("Edit record"):y("Add new")}),a().createElement(l.Spin,{spinning:w},a().createElement(l.Form,{form:v,disabled:B,layout:"vertical",onFinish:function(e){return b(function(){return x(this,function(n){switch(n.label){case 0:if(B)return[2];S(!0),n.label=1;case 1:return n.trys.push([1,,12,13]),[4,K()];case 2:if(n.sent())return[3,4];if(!0!==N(e).useUserContext)return[2];return[4,g.confirm({title:y("Connection test failed"),content:y("The MCP server uses current user variables and the connection test failed. Do you want to save it anyway?"),okText:y("Save anyway"),cancelText:y("Cancel")})];case 3:if(!n.sent())return[2];n.label=4;case 4:if(!t)return[3,6];return[4,X(m.apiClient,e,t.name)];case 5:return n.sent(),[3,8];case 6:return[4,H(m.apiClient,e)];case 7:n.sent(),n.label=8;case 8:return[4,i()];case 9:return n.sent(),d.success(y("Saved successfully")),[4,u()];case 10:return n.sent(),[4,p.view.close(void 0,!0)];case 11:return n.sent(),[3,13];case 12:return S(!1),[7];case 13:return[2]}})})()},onValuesChange:function(){return I(!0)}},a().createElement(er,{editing:!!t,readOnly:B,testResult:F,testing:O}))),a().createElement(L,null,a().createElement(l.Flex,{justify:"end",gap:"small"},a().createElement(l.Space,null,a().createElement(l.Button,{loading:O,onClick:function(){return K()}},y("Test flight")),a().createElement(l.Button,{onClick:_},y("Cancel")),a().createElement(l.Button,{type:"primary",disabled:B,loading:w||O||n,onClick:function(){return v.submit()}},y("Submit"))))))},es=function(e){var t=e.record,n=e.rebuilding,r=(0,c.useFlowContext)(),l=(0,s.kj)(),i=r.view.Header;return a().createElement(a().Fragment,null,a().createElement(i,{title:l("MCP tools")}),a().createElement(el,{record:t,rebuilding:n}))};t.default=eu}}]);