@nocobase/plugin-ai 2.2.0-beta.9 → 3.0.0-alpha.1

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 (615) hide show
  1. package/client-v2.d.ts +1 -0
  2. package/dist/ai/docs/nocobase/ai-employees/block/ai-chat-box.md +133 -0
  3. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/documents.md +1 -1
  4. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/index.md +11 -7
  5. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/settings.md +12 -8
  6. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/vector-database.md +3 -3
  7. package/dist/ai/docs/nocobase/ai-employees/scenarios/company-background-research.md +125 -0
  8. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/create-document.md +1 -1
  9. package/dist/ai/docs/nocobase/api/app/env.md +3 -1
  10. package/dist/ai/docs/nocobase/api/cli/index.md +14 -2
  11. package/dist/ai/docs/nocobase/api/cli/portal/config.md +44 -0
  12. package/dist/ai/docs/nocobase/api/cli/portal/create.md +48 -0
  13. package/dist/ai/docs/nocobase/api/cli/portal/deploy.md +39 -0
  14. package/dist/ai/docs/nocobase/api/cli/portal/destroy.md +41 -0
  15. package/dist/ai/docs/nocobase/api/cli/portal/dev.md +39 -0
  16. package/dist/ai/docs/nocobase/api/cli/portal/index.md +136 -0
  17. package/dist/ai/docs/nocobase/api/cli/portal/info.md +41 -0
  18. package/dist/ai/docs/nocobase/api/cli/portal/list.md +40 -0
  19. package/dist/ai/docs/nocobase/api/cli/portal/pull.md +43 -0
  20. package/dist/ai/docs/nocobase/api/cli/portal/push.md +41 -0
  21. package/dist/ai/docs/nocobase/building-tips/ai-fill-js-block-form.md +1092 -0
  22. package/dist/ai/docs/nocobase/building-tips/operations-dashboard.md +513 -0
  23. package/dist/ai/docs/nocobase/data-sources/calendar/calendar-collection.md +100 -3
  24. package/dist/ai/docs/nocobase/data-sources/collection-comment/index.md +92 -39
  25. package/dist/ai/docs/nocobase/data-sources/collection-sql/index.md +150 -29
  26. package/dist/ai/docs/nocobase/data-sources/collection-tree/index.md +93 -5
  27. package/dist/ai/docs/nocobase/data-sources/collection-view/index.md +226 -4
  28. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/china-region.md +122 -5
  29. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/collection-select.md +105 -4
  30. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/json.md +102 -4
  31. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/nano-id.md +104 -4
  32. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/snowflake-id.md +108 -4
  33. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/sort.md +3 -19
  34. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/uuid.md +104 -4
  35. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/associations/index.md +44 -8
  36. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/color.md +102 -4
  37. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/email.md +104 -4
  38. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/icon.md +102 -4
  39. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/input.md +112 -8
  40. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/integer.md +103 -4
  41. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/number.md +103 -4
  42. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/password.md +102 -4
  43. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/percent.md +104 -5
  44. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/phone.md +104 -4
  45. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/textarea.md +99 -8
  46. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/url.md +103 -4
  47. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/checkbox-group.md +105 -3
  48. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/checkbox.md +102 -4
  49. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/china-region.md +108 -5
  50. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/multiple-select.md +103 -5
  51. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/radio-group.md +106 -4
  52. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/select.md +103 -5
  53. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/date.md +102 -4
  54. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/datetime-without-tz.md +103 -5
  55. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/datetime.md +103 -5
  56. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/index.md +53 -47
  57. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/time.md +102 -4
  58. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/unix-timestamp.md +103 -5
  59. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/circle.md +102 -4
  60. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/line.md +103 -5
  61. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/point.md +102 -4
  62. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/polygon.md +102 -4
  63. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/index.md +62 -16
  64. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/media/markdown.md +104 -4
  65. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/media/rich-text.md +105 -5
  66. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/created-at.md +105 -5
  67. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/created-by.md +103 -5
  68. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/space.md +100 -6
  69. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/table-oid.md +102 -4
  70. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/updated-at.md +104 -5
  71. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/updated-by.md +104 -6
  72. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/validation.md +68 -58
  73. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection.md +32 -13
  74. package/dist/ai/docs/nocobase/data-sources/data-modeling/index.md +41 -33
  75. package/dist/ai/docs/nocobase/data-sources/data-source-external-mariadb/index.md +114 -6
  76. package/dist/ai/docs/nocobase/data-sources/data-source-external-mssql/index.md +117 -6
  77. package/dist/ai/docs/nocobase/data-sources/data-source-external-mysql/index.md +103 -6
  78. package/dist/ai/docs/nocobase/data-sources/data-source-external-nocobase/index.md +75 -73
  79. package/dist/ai/docs/nocobase/data-sources/data-source-external-oracle/index.md +129 -11
  80. package/dist/ai/docs/nocobase/data-sources/data-source-external-postgres/index.md +110 -6
  81. package/dist/ai/docs/nocobase/data-sources/data-source-kingbase/index.md +75 -49
  82. package/dist/ai/docs/nocobase/data-sources/data-source-main/general-collection.md +116 -15
  83. package/dist/ai/docs/nocobase/data-sources/data-source-main/index.md +92 -62
  84. package/dist/ai/docs/nocobase/data-sources/data-source-main/inheritance-collection.md +97 -10
  85. package/dist/ai/docs/nocobase/data-sources/data-source-manager/external-database.md +97 -58
  86. package/dist/ai/docs/nocobase/data-sources/data-source-manager/index.md +32 -24
  87. package/dist/ai/docs/nocobase/data-sources/data-source-rest-api/index.md +115 -153
  88. package/dist/ai/docs/nocobase/data-sources/external/clickhouse.md +124 -0
  89. package/dist/ai/docs/nocobase/data-sources/external/doris.md +130 -0
  90. package/dist/ai/docs/nocobase/data-sources/external/index.md +140 -0
  91. package/dist/ai/docs/nocobase/data-sources/external/kingbase.md +129 -0
  92. package/dist/ai/docs/nocobase/data-sources/external/mariadb.md +126 -0
  93. package/dist/ai/docs/nocobase/data-sources/external/mssql.md +129 -0
  94. package/dist/ai/docs/nocobase/data-sources/external/mysql.md +115 -0
  95. package/dist/ai/docs/nocobase/data-sources/external/nocobase.md +159 -0
  96. package/dist/ai/docs/nocobase/data-sources/external/oceanbase.md +126 -0
  97. package/dist/ai/docs/nocobase/data-sources/external/oracle.md +158 -0
  98. package/dist/ai/docs/nocobase/data-sources/external/postgresql.md +122 -0
  99. package/dist/ai/docs/nocobase/data-sources/external/rest-api.md +245 -0
  100. package/dist/ai/docs/nocobase/data-sources/field-attachment-url/index.md +100 -12
  101. package/dist/ai/docs/nocobase/data-sources/field-encryption/index.md +48 -47
  102. package/dist/ai/docs/nocobase/data-sources/field-formula/index.md +99 -5
  103. package/dist/ai/docs/nocobase/data-sources/field-markdown-vditor/index.md +105 -5
  104. package/dist/ai/docs/nocobase/data-sources/field-sequence/index.md +102 -5
  105. package/dist/ai/docs/nocobase/data-sources/field-signature/index.md +18 -16
  106. package/dist/ai/docs/nocobase/data-sources/field-sort/index.md +76 -73
  107. package/dist/ai/docs/nocobase/data-sources/file-manager/field-attachment.md +101 -7
  108. package/dist/ai/docs/nocobase/data-sources/file-manager/file-collection.md +101 -14
  109. package/dist/ai/docs/nocobase/data-sources/index.md +49 -33
  110. package/dist/ai/docs/nocobase/data-sources/main/index.md +130 -0
  111. package/dist/ai/docs/nocobase/data-sources/main/kingbase.md +147 -0
  112. package/dist/ai/docs/nocobase/data-sources/main/mariadb.md +59 -0
  113. package/dist/ai/docs/nocobase/data-sources/main/mysql.md +59 -0
  114. package/dist/ai/docs/nocobase/data-sources/main/oceanbase.md +62 -0
  115. package/dist/ai/docs/nocobase/data-sources/main/postgresql.md +61 -0
  116. package/dist/ai/docs/nocobase/file-manager/stable-url.md +87 -0
  117. package/dist/ai/docs/nocobase/file-manager/storage/index.md +66 -26
  118. package/dist/ai/docs/nocobase/file-manager/storage/local.md +3 -1
  119. package/dist/ai/docs/nocobase/file-manager/storage/s3-pro.md +58 -7
  120. package/dist/ai/docs/nocobase/get-started/deployment/production.md +24 -2
  121. package/dist/ai/docs/nocobase/get-started/installation/docker-caddy.mdx +3 -0
  122. package/dist/ai/docs/nocobase/get-started/installation/docker-nginx.mdx +3 -0
  123. package/dist/ai/docs/nocobase/get-started/installation/docker.mdx +27 -3
  124. package/dist/ai/docs/nocobase/get-started/installation/env.md +35 -2
  125. package/dist/ai/docs/nocobase/index.md +1 -1
  126. package/dist/ai/docs/nocobase/interface-builder/blocks/data-blocks/comment.md +107 -0
  127. package/dist/ai/docs/nocobase/interface-builder/index.md +7 -6
  128. package/dist/ai/docs/nocobase/interface-builder/ui-layout/desktop.md +97 -0
  129. package/dist/ai/docs/nocobase/interface-builder/ui-layout/index.md +50 -0
  130. package/dist/ai/docs/nocobase/interface-builder/ui-layout/mobile.md +133 -0
  131. package/dist/ai/docs/nocobase/multi-app/multi-app-vs-multi-portal-vs-multi-space.md +159 -0
  132. package/dist/ai/docs/nocobase/multi-app/multi-portal/index.md +195 -0
  133. package/dist/ai/docs/nocobase/nocobase-cli/production/index.md +10 -0
  134. package/dist/ai/docs/nocobase/nocobase-cli/production/reverse-proxy/caddy.md +15 -2
  135. package/dist/ai/docs/nocobase/nocobase-cli/production/reverse-proxy/index.md +1 -1
  136. package/dist/ai/docs/nocobase/nocobase-cli/production/reverse-proxy/nginx.md +16 -2
  137. package/dist/ai/docs/nocobase/ops-management/migration-manager/built-in-tables.md +1 -2
  138. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-comment/index.md +14 -0
  139. package/dist/ai/docs/nocobase/runjs/context/ai.md +396 -0
  140. package/dist/ai/docs/nocobase/security/guide.md +23 -0
  141. package/dist/ai/docs/nocobase/tutorials/index.md +20 -1
  142. package/dist/ai/docs/nocobase/workflow/development/api.md +259 -77
  143. package/dist/ai/docs/nocobase/workflow/development/index.md +2 -1
  144. package/dist/ai/docs/nocobase/workflow/development/migration.md +319 -0
  145. package/dist/ai/docs/nocobase/workflow/development/node.md +84 -51
  146. package/dist/ai/docs/nocobase/workflow/development/trigger.md +122 -20
  147. package/dist/ai/tools/executeFrontendTool.d.ts +10 -0
  148. package/dist/ai/tools/executeFrontendTool.js +86 -0
  149. package/dist/ai/tools/formFiller.js +4 -3
  150. package/dist/ai/tools/getSkill.js +1 -1
  151. package/dist/ai/tools/loadFrontendTool.d.ts +10 -0
  152. package/dist/ai/tools/loadFrontendTool.js +99 -0
  153. package/dist/ai/tools/subAgentWebSearch.js +20 -15
  154. package/dist/client/23.65ea8c37cd4b884b.js +10 -0
  155. package/dist/client/244.8631eb5cf3f05e21.js +10 -0
  156. package/dist/client/264.cc98933ef65608b6.js +10 -0
  157. package/dist/client/336.7a8a8853196ad779.js +11 -0
  158. package/dist/client/416.92b74ca47e4099c4.js +10 -0
  159. package/dist/client/446.d63c38d0309fe250.js +10 -0
  160. package/dist/client/525.94dd4136c1361477.js +10 -0
  161. package/dist/client/663.680bcf6272a8504d.js +10 -0
  162. package/dist/client/681.6ffbc9329b9ac242.js +10 -0
  163. package/dist/client/705.19b642db34de438a.js +10 -0
  164. package/dist/client/ai-employees/1.x/selector/AIContextCollector.d.ts +1 -4
  165. package/dist/client/ai-employees/permissions/PermissionsTab.d.ts +21 -5
  166. package/dist/client/index.d.ts +13 -20
  167. package/dist/client/index.js +8 -8
  168. package/dist/client/workflow/nodes/employee/index.d.ts +2 -23
  169. package/dist/client/workflow/nodes/llm/index.d.ts +2 -52
  170. package/dist/client/workflow/triggers/ai-employee/index.d.ts +2 -83
  171. package/dist/client-v2/23.1bcb6986b40723d8.js +10 -0
  172. package/dist/client-v2/244.c428e645ecb94414.js +10 -0
  173. package/dist/client-v2/264.be92ff6a4d2612f1.js +10 -0
  174. package/dist/client-v2/336.e406470429e0670e.js +11 -0
  175. package/dist/client-v2/416.0e1c2d9cde43b83d.js +10 -0
  176. package/dist/client-v2/420.b2aedb1ff71fca0e.js +10 -0
  177. package/dist/client-v2/446.073d450882db29fd.js +10 -0
  178. package/dist/client-v2/457.d72febb89e88fc00.js +10 -0
  179. package/dist/client-v2/663.342341f0b2b412d8.js +10 -0
  180. package/dist/client-v2/681.6890caa389564ff7.js +10 -0
  181. package/dist/client-v2/705.8dc34d43f02f322c.js +10 -0
  182. package/dist/{client/ai-employees/admin/AvatarSelect.d.ts → client-v2/ai-employees/AIEmployeeDropdown.d.ts} +8 -9
  183. package/dist/client-v2/ai-employees/AIEmployeeShortcut.d.ts +11 -2
  184. package/dist/{client → client-v2}/ai-employees/AddContextButton.d.ts +3 -1
  185. package/dist/{client → client-v2}/ai-employees/ai-coding/AICodingButton.d.ts +2 -1
  186. package/dist/{client/ai-employees/chatbox/AIEmployeeSwitch.d.ts → client-v2/ai-employees/chatbox/components/AIEmployeeSwitcher.d.ts} +1 -0
  187. package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/Actions.d.ts +2 -4
  188. package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/AddLLMModal.d.ts +2 -4
  189. package/dist/client-v2/ai-employees/chatbox/components/Attachments.d.ts +27 -0
  190. package/dist/{client/ai-employees/permissions/Permissions.d.ts → client-v2/ai-employees/chatbox/components/ChatBox.d.ts} +2 -2
  191. package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/ChatBoxLayout.d.ts +1 -1
  192. package/dist/{client/ai-employees/chatbox/markdown/Code.d.ts → client-v2/ai-employees/chatbox/components/ChatBoxUnreadBadge.d.ts} +6 -7
  193. package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/ContextItem.d.ts +1 -1
  194. package/dist/client-v2/ai-employees/chatbox/components/Conversations.d.ts +18 -0
  195. package/dist/{client/ai-employees/admin/Templates.d.ts → client-v2/ai-employees/chatbox/components/DebugPanel.d.ts} +1 -1
  196. package/dist/{client/ai-employees/ai-coding/markdown/Code.d.ts → client-v2/ai-employees/chatbox/components/Markdown.d.ts} +12 -3
  197. package/dist/{client/ai-employees/1.x/selector/BlockSelector.d.ts → client-v2/ai-employees/chatbox/components/MessageContent.d.ts} +3 -4
  198. package/dist/client-v2/ai-employees/chatbox/components/MessageRenderers.d.ts +39 -0
  199. package/dist/{client/ai-employees/admin/datasource/components/DatasourceSettingDetail.d.ts → client-v2/ai-employees/chatbox/components/Messages.d.ts} +4 -4
  200. package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/ModelSwitcher.d.ts +4 -0
  201. package/dist/client-v2/ai-employees/chatbox/components/Sender.d.ts +42 -0
  202. package/dist/{client/ai-employees/chatbox/generative-ui → client-v2/ai-employees/chatbox/components}/ToolCard.d.ts +7 -5
  203. package/dist/client-v2/ai-employees/chatbox/components/index.d.ts +14 -0
  204. package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useChat.d.ts +29 -27
  205. package/dist/client-v2/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +5 -3
  206. package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useChatBoxEffect.d.ts +2 -1
  207. package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useChatConversationActions.d.ts +5 -4
  208. package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useChatMessageActions.d.ts +12 -6
  209. package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useToolCallActions.d.ts +4 -2
  210. package/dist/client-v2/ai-employees/chatbox/hooks/useUploadFiles.d.ts +56 -0
  211. package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useWorkflowTasks.d.ts +4 -3
  212. package/dist/client-v2/ai-employees/chatbox/index.d.ts +17 -0
  213. package/dist/{client → client-v2}/ai-employees/chatbox/model.d.ts +9 -2
  214. package/dist/client-v2/ai-employees/chatbox/roles.d.ts +11 -0
  215. package/dist/client-v2/ai-employees/chatbox/stores/chat-box.d.ts +46 -79
  216. package/dist/client-v2/ai-employees/chatbox/stores/chat-conversations.d.ts +8 -25
  217. package/dist/client-v2/ai-employees/chatbox/stores/chat-messages.d.ts +23 -63
  218. package/dist/client-v2/ai-employees/chatbox/stores/chat-sender.d.ts +43 -0
  219. package/dist/{client → client-v2}/ai-employees/chatbox/stores/chat-tool-call.d.ts +6 -19
  220. package/dist/client-v2/ai-employees/chatbox/stores/chat-tools.d.ts +36 -0
  221. package/dist/client-v2/ai-employees/chatbox/stores/mounted-chat-boxes.d.ts +20 -0
  222. package/dist/client-v2/ai-employees/chatbox/stores/runtime.d.ts +43 -0
  223. package/dist/client-v2/ai-employees/chatbox/stores/workflow-tasks.d.ts +72 -0
  224. package/dist/client-v2/ai-employees/chatbox/upload.d.ts +19 -0
  225. package/dist/client-v2/ai-employees/chatbox/utils.d.ts +85 -0
  226. package/dist/{client/ai-employees/data-visualization/context.d.ts → client-v2/ai-employees/context/chart-config.d.ts} +1 -1
  227. package/dist/{client → client-v2}/ai-employees/context/code-editor.d.ts +1 -1
  228. package/dist/{client → client-v2}/ai-employees/context/datasource.d.ts +1 -1
  229. package/dist/{client → client-v2}/ai-employees/context/flow-models.d.ts +1 -1
  230. package/dist/client-v2/ai-employees/data-modeling/setup.d.ts +15 -0
  231. package/dist/{client → client-v2}/ai-employees/datasource/DatasourceSelector.d.ts +6 -2
  232. package/dist/{client/ai-employees/admin/datasource/flow-models/DatasourceSettingModel.d.ts → client-v2/ai-employees/flow/index.d.ts} +4 -6
  233. package/dist/{client → client-v2}/ai-employees/form-filler/tools/index.d.ts +1 -1
  234. package/dist/{client/ai-employees/ai-coding/tools/index.d.ts → client-v2/ai-employees/frontend-tools.d.ts} +3 -3
  235. package/dist/{client → client-v2}/ai-employees/stores/ai-selection.d.ts +4 -4
  236. package/dist/{client → client-v2}/ai-employees/stores/dialog-controller.d.ts +4 -4
  237. package/dist/{client/ai-employees/business-report/ui → client-v2/ai-employees/tools}/BusinessReportCard.d.ts +2 -2
  238. package/dist/{client/ai-employees/business-report/ui → client-v2/ai-employees/tools}/BusinessReportModal.d.ts +2 -2
  239. package/dist/{client/ai-employees/1.x/selector/withAISelectable.d.ts → client-v2/ai-employees/tools/ChartGeneratorCard.d.ts} +5 -4
  240. package/dist/{client/ai-employees/ai-coding/ui → client-v2/ai-employees/tools}/CodeToolCard.d.ts +1 -1
  241. package/dist/{client/ai-employees/data-modeling/ui → client-v2/ai-employees/tools}/DataModelingCard.d.ts +3 -5
  242. package/dist/{client/ai-employees/data-modeling/ui → client-v2/ai-employees/tools}/DataModelingModal.d.ts +4 -6
  243. package/dist/{client/ai-employees/sub-agents/ui → client-v2/ai-employees/tools}/SubAgentDispatchCard.d.ts +4 -9
  244. package/dist/client-v2/ai-employees/tools/SuggestionsOptionsCard.d.ts +16 -0
  245. package/dist/client-v2/ai-employees/tools/WorkflowTaskOutputCard.d.ts +16 -0
  246. package/dist/{client/ai-employees/ai-coding/tools/context-tools.d.ts → client-v2/ai-employees/tools/ai-coding.d.ts} +3 -1
  247. package/dist/client-v2/ai-employees/tools/business-report-utils.d.ts +45 -0
  248. package/dist/{client/ai-employees/data-modeling/ui → client-v2/ai-employees/tools/data-modeling}/CollectionNode.d.ts +2 -3
  249. package/dist/{client/ai-employees/data-modeling/ui → client-v2/ai-employees/tools/data-modeling}/Diagram.d.ts +1 -1
  250. package/dist/{client/ai-employees/data-modeling/ui → client-v2/ai-employees/tools/data-modeling}/Table.d.ts +2 -2
  251. package/dist/client-v2/ai-employees/tools/data-modeling/legacy-template.d.ts +13 -0
  252. package/dist/client-v2/ai-employees/tools/data-modeling/runtime.d.ts +15 -0
  253. package/dist/{client/ai-employees → client-v2/ai-employees/tools}/data-modeling/types.d.ts +27 -4
  254. package/dist/client-v2/ai-employees/tools/data-modeling/useFieldInterfaceOptions.d.ts +151 -0
  255. package/dist/{client/ai-employees/data-visualization/tools/index.d.ts → client-v2/ai-employees/tools/data-visualization.d.ts} +1 -1
  256. package/dist/client-v2/ai-employees/tools/index.d.ts +32 -0
  257. package/dist/client-v2/ai-employees/types.d.ts +131 -7
  258. package/dist/client-v2/block/ai-chat-box/AIChatBoxBlockModel.d.ts +21 -0
  259. package/dist/{client/workflow/nodes/employee/flow-models/task.d.ts → client-v2/block/ai-chat-box/AIChatBoxCoreModel.d.ts} +1 -1
  260. package/dist/{client/admin-settings/AdminSettings.d.ts → client-v2/block/ai-chat-box/components/AIChatBoxCoreView.d.ts} +1 -1
  261. package/dist/{client/ai-employees/AIEmployeeListItem.d.ts → client-v2/block/ai-chat-box/components/AIChatBoxView.d.ts} +3 -5
  262. package/dist/client-v2/block/ai-chat-box/index.d.ts +14 -0
  263. package/dist/client-v2/block/ai-chat-box/settings.d.ts +12 -0
  264. package/dist/client-v2/block/ai-chat-box/sub-models.d.ts +26 -0
  265. package/dist/client-v2/block/ai-chat-box/types.d.ts +38 -0
  266. package/dist/client-v2/block/ai-chat-box/utils.d.ts +26 -0
  267. package/dist/client-v2/components/RemoteSelect.d.ts +43 -0
  268. package/dist/{client → client-v2}/debug-logger.d.ts +2 -2
  269. package/dist/client-v2/f0053e745af0ad03.svg +50 -0
  270. package/dist/client-v2/index.d.ts +11 -12
  271. package/dist/client-v2/index.js +37 -1
  272. package/dist/client-v2/llm-providers/forms.d.ts +44 -0
  273. package/dist/client-v2/llm-providers/index.d.ts +24 -0
  274. package/dist/client-v2/llm-services/model-select.d.ts +33 -0
  275. package/dist/client-v2/llm-services/utils.d.ts +14 -0
  276. package/dist/client-v2/locale.d.ts +14 -0
  277. package/dist/client-v2/manager/ai-manager.d.ts +62 -0
  278. package/dist/client-v2/manager/frontend-tool-registry.d.ts +30 -0
  279. package/dist/client-v2/models/ai-employees/AIEmployeeActionModel.d.ts +36 -0
  280. package/dist/client-v2/models/ai-employees/AIEmployeeShortcutModel.d.ts +49 -0
  281. package/dist/client-v2/pages/AdminSettingsPage.d.ts +24 -0
  282. package/dist/client-v2/pages/DatasourceSettingsPage.d.ts +62 -0
  283. package/dist/client-v2/pages/EmployeesPage.d.ts +64 -0
  284. package/dist/client-v2/pages/LLMServicesPage.d.ts +75 -0
  285. package/dist/client-v2/pages/MCPSettingsPage.d.ts +73 -0
  286. package/dist/client-v2/pages/drawerWidth.d.ts +10 -0
  287. package/dist/client-v2/pages/permissions/Permissions.d.ts +67 -0
  288. package/dist/client-v2/pages/permissions/PermissionsTab.d.ts +12 -0
  289. package/dist/client-v2/pages/useUnsavedChangesBeforeClose.d.ts +29 -0
  290. package/dist/client-v2/plugin.d.ts +33 -0
  291. package/dist/client-v2/repositories/AIConfigRepository.d.ts +3 -23
  292. package/dist/client-v2/runjs/registerAIEmployeeRunJSFacade.d.ts +21 -0
  293. package/dist/client-v2/workflow/components/FormValueRegistry.d.ts +12 -0
  294. package/dist/{client/components/ListCollapse.d.ts → client-v2/workflow/components/WorkflowListCollapse.d.ts} +4 -4
  295. package/dist/client-v2/workflow/constants.d.ts +26 -0
  296. package/dist/client-v2/workflow/nodes/employee/components/AIEmployeeFieldset.d.ts +11 -0
  297. package/dist/{client/ai-employees/common/CodeHighlight.d.ts → client-v2/workflow/nodes/employee/components/AIEmployeeSelect.d.ts} +5 -6
  298. package/dist/{client/ai-employees/ContextAwareTooltip.d.ts → client-v2/workflow/nodes/employee/components/Assignees.d.ts} +2 -1
  299. package/dist/client-v2/workflow/nodes/employee/components/FeedbackSettings.d.ts +17 -0
  300. package/dist/client-v2/workflow/nodes/employee/components/FileInputs.d.ts +11 -0
  301. package/dist/{client/ai-employees/AIEmployeesProvider.d.ts → client-v2/workflow/nodes/employee/components/MessageInputs.d.ts} +2 -3
  302. package/dist/client-v2/workflow/nodes/employee/components/ModelOptions.d.ts +17 -0
  303. package/dist/{client/ai-employees/admin/datasource/components/basic/CollectionCascader.d.ts → client-v2/workflow/nodes/employee/components/SkillSettings.d.ts} +6 -3
  304. package/dist/client-v2/workflow/nodes/employee/components/StructuredOutput.d.ts +11 -0
  305. package/dist/client-v2/workflow/nodes/employee/components/UserInput.d.ts +18 -0
  306. package/dist/{client/ai-employees/AISettingsProvider.d.ts → client-v2/workflow/nodes/employee/components/WebSearchOptions.d.ts} +6 -8
  307. package/dist/client-v2/workflow/nodes/employee/index.d.ts +23 -0
  308. package/dist/client-v2/workflow/nodes/llm/components/LLMFieldset.d.ts +12 -0
  309. package/dist/{client/ai-employees/chatbox → client-v2/workflow/nodes/llm/components}/Messages.d.ts +2 -1
  310. package/dist/client-v2/workflow/nodes/llm/components/StructuredOutput.d.ts +11 -0
  311. package/dist/client-v2/workflow/nodes/llm/index.d.ts +30 -0
  312. package/dist/client-v2/workflow/register.d.ts +10 -0
  313. package/dist/client-v2/workflow/triggers/ai-employee/AIEmployeeTriggerConfig.d.ts +11 -0
  314. package/dist/client-v2/workflow/triggers/ai-employee/Parameters.d.ts +11 -0
  315. package/dist/client-v2/workflow/triggers/ai-employee/index.d.ts +25 -0
  316. package/dist/client-v2/workflow/types.d.ts +128 -0
  317. package/dist/common/ai-employee-validation.d.ts +15 -0
  318. package/dist/common/ai-employee-validation.js +61 -0
  319. package/dist/common/error-codes.d.ts +13 -0
  320. package/dist/common/error-codes.js +48 -0
  321. package/dist/common/frontend-tools.d.ts +26 -0
  322. package/dist/common/frontend-tools.js +57 -0
  323. package/dist/common/llm-service-models.d.ts +16 -0
  324. package/dist/common/llm-service-models.js +84 -0
  325. package/dist/externalVersion.js +20 -25
  326. package/dist/locale/en-US.json +116 -1
  327. package/dist/locale/zh-CN.json +116 -1
  328. package/dist/node_modules/@langchain/mistralai/package.json +1 -1
  329. package/dist/node_modules/@langchain/xai/package.json +1 -1
  330. package/dist/node_modules/fs-extra/package.json +1 -1
  331. package/dist/node_modules/jsonrepair/package.json +1 -1
  332. package/dist/node_modules/just-bash/package.json +1 -1
  333. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  334. package/dist/node_modules/openai/package.json +1 -1
  335. package/dist/node_modules/zod/package.json +1 -1
  336. package/dist/server/ai-employees/ai-conversations.d.ts +4 -1
  337. package/dist/server/ai-employees/ai-conversations.js +2 -0
  338. package/dist/server/ai-employees/ai-employee.d.ts +3 -1
  339. package/dist/server/ai-employees/ai-employee.js +63 -9
  340. package/dist/server/ai-employees/middleware/conversation.js +9 -2
  341. package/dist/server/ai-employees/prompts.d.ts +2 -1
  342. package/dist/server/ai-employees/prompts.js +8 -2
  343. package/dist/server/ai-employees/tool-call-sanitizer.d.ts +1 -0
  344. package/dist/server/ai-employees/tool-call-sanitizer.js +2 -1
  345. package/dist/server/ai-employees/utils.js +11 -5
  346. package/dist/server/attachments.d.ts +24 -0
  347. package/dist/server/attachments.js +204 -0
  348. package/dist/server/collections/ai-conversations.js +5 -0
  349. package/dist/server/collections/ai-usage-events.d.ts +10 -0
  350. package/dist/server/collections/ai-usage-events.js +183 -0
  351. package/dist/server/document-loader/cached.d.ts +1 -0
  352. package/dist/server/document-loader/cached.js +18 -9
  353. package/dist/server/document-loader/constants.js +1 -1
  354. package/dist/server/document-loader/loader.d.ts +0 -1
  355. package/dist/server/document-loader/loader.js +25 -8
  356. package/dist/server/document-loader/types.d.ts +7 -0
  357. package/dist/server/frontend-tools.d.ts +25 -0
  358. package/dist/server/frontend-tools.js +171 -0
  359. package/dist/server/llm-providers/anthropic.d.ts +2 -1
  360. package/dist/server/llm-providers/anthropic.js +1 -3
  361. package/dist/server/llm-providers/dashscope.d.ts +2 -1
  362. package/dist/server/llm-providers/dashscope.js +16 -1
  363. package/dist/server/llm-providers/deepseek.d.ts +2 -1
  364. package/dist/server/llm-providers/deepseek.js +33 -2
  365. package/dist/server/llm-providers/google-genai.d.ts +1 -1
  366. package/dist/server/llm-providers/google-genai.js +1 -5
  367. package/dist/server/llm-providers/kimi/provider.d.ts +2 -1
  368. package/dist/server/llm-providers/kimi/provider.js +22 -2
  369. package/dist/server/llm-providers/mistral.d.ts +36 -2
  370. package/dist/server/llm-providers/mistral.js +62 -2
  371. package/dist/server/llm-providers/openai/completions.d.ts +2 -1
  372. package/dist/server/llm-providers/openai/completions.js +17 -1
  373. package/dist/server/llm-providers/openai/responses.d.ts +2 -1
  374. package/dist/server/llm-providers/openai/responses.js +17 -1
  375. package/dist/server/llm-providers/orcarouter.d.ts +35 -0
  376. package/dist/server/llm-providers/orcarouter.js +155 -0
  377. package/dist/server/llm-providers/provider.d.ts +10 -2
  378. package/dist/server/llm-providers/provider.js +33 -4
  379. package/dist/server/manager/ai-chat-conversation.js +2 -0
  380. package/dist/server/manager/ai-context-datasource-manager.js +34 -7
  381. package/dist/server/manager/ai-manager.d.ts +2 -1
  382. package/dist/server/manager/ai-manager.js +4 -1
  383. package/dist/server/manager/ai-usage-events.d.ts +49 -0
  384. package/dist/server/manager/ai-usage-events.js +195 -0
  385. package/dist/server/manager/work-context-handler.js +10 -3
  386. package/dist/server/plugin.d.ts +1 -0
  387. package/dist/server/plugin.js +41 -0
  388. package/dist/server/resource/aiConversations.d.ts +2 -0
  389. package/dist/server/resource/aiConversations.js +77 -4
  390. package/dist/server/resource/aiEmployees.d.ts +2 -0
  391. package/dist/server/resource/aiEmployees.js +62 -0
  392. package/dist/server/resource/aiWorkflowTasks.js +9 -1
  393. package/dist/server/resource/llmServices.d.ts +11 -0
  394. package/dist/server/resource/llmServices.js +85 -0
  395. package/dist/server/types/knowledge-base.type.d.ts +6 -2
  396. package/dist/server/utils.d.ts +5 -2
  397. package/dist/server/utils.js +11 -19
  398. package/dist/server/workflow/nodes/employee/files.d.ts +3 -1
  399. package/dist/server/workflow/nodes/employee/files.js +31 -5
  400. package/dist/swagger/common.d.ts +143 -0
  401. package/dist/swagger/common.js +144 -0
  402. package/dist/swagger/employees.d.ts +301 -0
  403. package/dist/swagger/employees.js +131 -0
  404. package/dist/swagger/index.d.ts +1588 -0
  405. package/dist/swagger/index.js +62 -0
  406. package/dist/swagger/llm.d.ts +555 -0
  407. package/dist/swagger/llm.js +247 -0
  408. package/dist/swagger/schemas.d.ts +736 -0
  409. package/dist/swagger/schemas.js +381 -0
  410. package/package.json +5 -5
  411. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/vector-store.md +0 -24
  412. package/dist/ai/docs/nocobase/data-sources/development/index.md +0 -6
  413. package/dist/client/119.c6bf8c6433167d81.js +0 -10
  414. package/dist/client/170.d98eacdc00d9d527.js +0 -10
  415. package/dist/client/228.b4b709f93b86b6b9.js +0 -10
  416. package/dist/client/280.003b9e9788599244.js +0 -10
  417. package/dist/client/290.0f7f441d8a94f03c.js +0 -10
  418. package/dist/client/331.d547c95410476a69.js +0 -10
  419. package/dist/client/406.15c09d98faa2ccf1.js +0 -10
  420. package/dist/client/428.5eb4f53ddbb6a3b8.js +0 -10
  421. package/dist/client/462.d172d0fe91519e35.js +0 -10
  422. package/dist/client/486.dcac8f3fcec19c33.js +0 -10
  423. package/dist/client/502.2b4a51e0a8122e52.js +0 -10
  424. package/dist/client/525.33a9c8ec28be4ec4.js +0 -10
  425. package/dist/client/559.9f97ebcdb0bd6231.js +0 -10
  426. package/dist/client/561.7ec804ef39ec7dcd.js +0 -10
  427. package/dist/client/580.35ba54ff91b7fe6d.js +0 -10
  428. package/dist/client/597.b0d64948d74cf6cb.js +0 -10
  429. package/dist/client/604.89c674f35b52b4ef.js +0 -10
  430. package/dist/client/614.aa766080f6b99aab.js +0 -10
  431. package/dist/client/646.d4483b4ff23da0a0.js +0 -10
  432. package/dist/client/687.224e569a99cae4bb.js +0 -10
  433. package/dist/client/699.57c0a1acb723202a.js +0 -10
  434. package/dist/client/711.92cd94681fde7e05.js +0 -10
  435. package/dist/client/758.a9741e81911e53c3.js +0 -10
  436. package/dist/client/768.5177bff46ae71a5b.js +0 -10
  437. package/dist/client/792.abb57765453bcbcc.js +0 -10
  438. package/dist/client/820.f72ef2462b61d812.js +0 -10
  439. package/dist/client/832.0cf69e3f43c320b2.js +0 -10
  440. package/dist/client/927.d95c74ebb8fd51c9.js +0 -10
  441. package/dist/client/ai-employees/1.x/selector/AISelectorProvider.d.ts +0 -33
  442. package/dist/client/ai-employees/ProfileCard.d.ts +0 -15
  443. package/dist/client/ai-employees/admin/ChatSettings.d.ts +0 -10
  444. package/dist/client/ai-employees/admin/DataSourceSettings.d.ts +0 -10
  445. package/dist/client/ai-employees/admin/Employees.d.ts +0 -10
  446. package/dist/client/ai-employees/admin/EnableSwitch.d.ts +0 -10
  447. package/dist/client/ai-employees/admin/InputsFormSettings.d.ts +0 -10
  448. package/dist/client/ai-employees/admin/KnowledgeBaseSettings.d.ts +0 -10
  449. package/dist/client/ai-employees/admin/ModelSettings.d.ts +0 -10
  450. package/dist/client/ai-employees/admin/ProfileSettings.d.ts +0 -12
  451. package/dist/client/ai-employees/admin/SkillSettings.d.ts +0 -19
  452. package/dist/client/ai-employees/admin/SystemPrompt.d.ts +0 -10
  453. package/dist/client/ai-employees/admin/ToolsSettings.d.ts +0 -17
  454. package/dist/client/ai-employees/admin/datasource/components/DatasourceSettingForm.d.ts +0 -10
  455. package/dist/client/ai-employees/admin/datasource/components/DatasourceSettingGrid.d.ts +0 -10
  456. package/dist/client/ai-employees/admin/datasource/components/basic/FieldsTransfer.d.ts +0 -17
  457. package/dist/client/ai-employees/admin/datasource/components/basic/index.d.ts +0 -10
  458. package/dist/client/ai-employees/admin/datasource/components/form-steps/CollectionSetting.d.ts +0 -17
  459. package/dist/client/ai-employees/admin/datasource/components/form-steps/FieldsSetting.d.ts +0 -15
  460. package/dist/client/ai-employees/admin/datasource/components/form-steps/FilterSetting.d.ts +0 -17
  461. package/dist/client/ai-employees/admin/datasource/components/form-steps/Preview.d.ts +0 -13
  462. package/dist/client/ai-employees/admin/datasource/components/form-steps/SortSetting.d.ts +0 -15
  463. package/dist/client/ai-employees/admin/datasource/components/form-steps/index.d.ts +0 -13
  464. package/dist/client/ai-employees/admin/datasource/components/index.d.ts +0 -9
  465. package/dist/client/ai-employees/admin/datasource/context.d.ts +0 -17
  466. package/dist/client/ai-employees/admin/datasource/flow-models/index.d.ts +0 -9
  467. package/dist/client/ai-employees/admin/datasource/index.d.ts +0 -10
  468. package/dist/client/ai-employees/admin/hooks.d.ts +0 -39
  469. package/dist/client/ai-employees/admin/mcp/MCPSettings.d.ts +0 -10
  470. package/dist/client/ai-employees/admin/mcp/MCPToolsList.d.ts +0 -19
  471. package/dist/client/ai-employees/admin/mcp/context.d.ts +0 -15
  472. package/dist/client/ai-employees/admin/mcp/schemas.d.ts +0 -1314
  473. package/dist/client/ai-employees/ai-coding/CodeHistory.d.ts +0 -10
  474. package/dist/client/ai-employees/avatars.d.ts +0 -9
  475. package/dist/client/ai-employees/built-in/utils.d.ts +0 -15
  476. package/dist/client/ai-employees/business-report/tools/index.d.ts +0 -10
  477. package/dist/client/ai-employees/business-report/ui/report-utils.d.ts +0 -38
  478. package/dist/client/ai-employees/chart-generator/tools/index.d.ts +0 -10
  479. package/dist/client/ai-employees/chart-generator/ui/ECharts.d.ts +0 -13
  480. package/dist/client/ai-employees/chatbox/AIThinking.d.ts +0 -12
  481. package/dist/client/ai-employees/chatbox/Attachment.d.ts +0 -14
  482. package/dist/client/ai-employees/chatbox/AttachmentsHeader.d.ts +0 -10
  483. package/dist/client/ai-employees/chatbox/ChatBox.d.ts +0 -12
  484. package/dist/client/ai-employees/chatbox/ContextItemsHeader.d.ts +0 -10
  485. package/dist/client/ai-employees/chatbox/DebugPanel.d.ts +0 -16
  486. package/dist/client/ai-employees/chatbox/EditMessageHeader.d.ts +0 -10
  487. package/dist/client/ai-employees/chatbox/HintMessageHeader.d.ts +0 -10
  488. package/dist/client/ai-employees/chatbox/MessageRenderer.d.ts +0 -33
  489. package/dist/client/ai-employees/chatbox/Sender.d.ts +0 -10
  490. package/dist/client/ai-employees/chatbox/SenderFooter.d.ts +0 -13
  491. package/dist/client/ai-employees/chatbox/SenderHeader.d.ts +0 -10
  492. package/dist/client/ai-employees/chatbox/SenderPrefix.d.ts +0 -10
  493. package/dist/client/ai-employees/chatbox/Upload.d.ts +0 -12
  494. package/dist/client/ai-employees/chatbox/VirtualList.d.ts +0 -28
  495. package/dist/client/ai-employees/chatbox/conversations/Conversations.d.ts +0 -10
  496. package/dist/client/ai-employees/chatbox/conversations/ConversationsList.d.ts +0 -13
  497. package/dist/client/ai-employees/chatbox/conversations/WorkflowTasksList.d.ts +0 -13
  498. package/dist/client/ai-employees/chatbox/conversations/common.d.ts +0 -43
  499. package/dist/client/ai-employees/chatbox/conversations/index.d.ts +0 -9
  500. package/dist/client/ai-employees/chatbox/generative-ui/DefaultToolCard.d.ts +0 -16
  501. package/dist/client/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +0 -18
  502. package/dist/client/ai-employees/chatbox/hooks/useUploadFiles.d.ts +0 -12
  503. package/dist/client/ai-employees/chatbox/markdown/ECharts.d.ts +0 -10
  504. package/dist/client/ai-employees/chatbox/markdown/Form.d.ts +0 -10
  505. package/dist/client/ai-employees/chatbox/markdown/Generating.d.ts +0 -10
  506. package/dist/client/ai-employees/chatbox/markdown/Markdown.d.ts +0 -13
  507. package/dist/client/ai-employees/chatbox/roles.d.ts +0 -32
  508. package/dist/client/ai-employees/chatbox/stores/chat-box.d.ts +0 -9
  509. package/dist/client/ai-employees/chatbox/stores/chat-conversations.d.ts +0 -9
  510. package/dist/client/ai-employees/chatbox/stores/chat-messages.d.ts +0 -9
  511. package/dist/client/ai-employees/chatbox/stores/chat-tools.d.ts +0 -51
  512. package/dist/client/ai-employees/chatbox/stores/create-selectors.d.ts +0 -18
  513. package/dist/client/ai-employees/chatbox/stores/workflow-tasks.d.ts +0 -45
  514. package/dist/client/ai-employees/chatbox/utils.d.ts +0 -41
  515. package/dist/client/ai-employees/context/classic-pages.d.ts +0 -10
  516. package/dist/client/ai-employees/data-modeling/Table.d.ts +0 -12
  517. package/dist/client/ai-employees/data-modeling/setup.d.ts +0 -10
  518. package/dist/client/ai-employees/data-modeling/tools/index.d.ts +0 -10
  519. package/dist/client/ai-employees/data-modeling/ui/useFieldInterfaceOptions.d.ts +0 -14
  520. package/dist/client/ai-employees/datasource/DatasourceList.d.ts +0 -17
  521. package/dist/client/ai-employees/datasource/index.d.ts +0 -9
  522. package/dist/client/ai-employees/flow/events/index.d.ts +0 -9
  523. package/dist/client/ai-employees/flow/index.d.ts +0 -36
  524. package/dist/client/ai-employees/flow/models/AIEmployeeActionModel.d.ts +0 -18
  525. package/dist/client/ai-employees/flow/models/AIEmployeeShortcutModel.d.ts +0 -30
  526. package/dist/client/ai-employees/shortcuts/ShortcutList.d.ts +0 -10
  527. package/dist/client/ai-employees/shortcuts/useShortcuts.d.ts +0 -13
  528. package/dist/client/ai-employees/stores/context-aware.d.ts +0 -19
  529. package/dist/client/ai-employees/sub-agents/tools/index.d.ts +0 -10
  530. package/dist/client/ai-employees/suggestions/tools/index.d.ts +0 -10
  531. package/dist/client/ai-employees/suggestions/ui/SuggestionsOptions.d.ts +0 -13
  532. package/dist/client/ai-employees/types.d.ts +0 -259
  533. package/dist/client/ai-employees/workflow-tasks/tools/index.d.ts +0 -10
  534. package/dist/client/ai-employees/workflow-tasks/ui/WorkflowTaskOutputCard.d.ts +0 -11
  535. package/dist/client/chat-settings/Messages.d.ts +0 -11
  536. package/dist/client/chat-settings/StructuredOutput.d.ts +0 -11
  537. package/dist/client/components/skill-settings.d.ts +0 -22
  538. package/dist/client/features/components.d.ts +0 -9
  539. package/dist/client/features/feature-manager.d.ts +0 -9
  540. package/dist/client/features/index.d.ts +0 -9
  541. package/dist/client/features/vector-database-provider.d.ts +0 -9
  542. package/dist/client/features/vector-store-provider.d.ts +0 -9
  543. package/dist/client/llm-providers/anthropic/ModelSettings.d.ts +0 -10
  544. package/dist/client/llm-providers/anthropic/ProviderSettings.d.ts +0 -10
  545. package/dist/client/llm-providers/anthropic/index.d.ts +0 -10
  546. package/dist/client/llm-providers/components/Chat.d.ts +0 -10
  547. package/dist/client/llm-providers/components/ModelSelect.d.ts +0 -10
  548. package/dist/client/llm-providers/dashscope/ModelSettings.d.ts +0 -10
  549. package/dist/client/llm-providers/dashscope/ProviderSettings.d.ts +0 -10
  550. package/dist/client/llm-providers/dashscope/index.d.ts +0 -10
  551. package/dist/client/llm-providers/deepseek/ModelSettings.d.ts +0 -10
  552. package/dist/client/llm-providers/deepseek/index.d.ts +0 -10
  553. package/dist/client/llm-providers/google-genai/MessageRenderer.d.ts +0 -13
  554. package/dist/client/llm-providers/google-genai/ModelSettings.d.ts +0 -10
  555. package/dist/client/llm-providers/google-genai/ProviderSettings.d.ts +0 -10
  556. package/dist/client/llm-providers/google-genai/index.d.ts +0 -10
  557. package/dist/client/llm-providers/kimi/ModelSettings.d.ts +0 -10
  558. package/dist/client/llm-providers/kimi/index.d.ts +0 -10
  559. package/dist/client/llm-providers/mimo/ModelSettings.d.ts +0 -10
  560. package/dist/client/llm-providers/mimo/index.d.ts +0 -10
  561. package/dist/client/llm-providers/mistral/ModelSettings.d.ts +0 -10
  562. package/dist/client/llm-providers/mistral/index.d.ts +0 -10
  563. package/dist/client/llm-providers/ollama/ModelSettings.d.ts +0 -10
  564. package/dist/client/llm-providers/ollama/ProviderSettings.d.ts +0 -10
  565. package/dist/client/llm-providers/ollama/index.d.ts +0 -10
  566. package/dist/client/llm-providers/openai/completions/ModelSettings.d.ts +0 -10
  567. package/dist/client/llm-providers/openai/completions/index.d.ts +0 -10
  568. package/dist/client/llm-providers/openai/components/ProviderSettings.d.ts +0 -10
  569. package/dist/client/llm-providers/openai/responses/ModelSettings.d.ts +0 -10
  570. package/dist/client/llm-providers/openai/responses/index.d.ts +0 -10
  571. package/dist/client/llm-providers/tongyi/ModelSettings.d.ts +0 -10
  572. package/dist/client/llm-providers/tongyi/ProviderSettings.d.ts +0 -10
  573. package/dist/client/llm-providers/tongyi/index.d.ts +0 -10
  574. package/dist/client/llm-providers/xai/ModelSettings.d.ts +0 -10
  575. package/dist/client/llm-providers/xai/index.d.ts +0 -10
  576. package/dist/client/llm-services/LLMServices.d.ts +0 -13
  577. package/dist/client/llm-services/component/DefaultModelSelect.d.ts +0 -10
  578. package/dist/client/llm-services/component/EnabledModelsSelect.d.ts +0 -23
  579. package/dist/client/llm-services/component/LLMTestFlight.d.ts +0 -10
  580. package/dist/client/llm-services/component/ModelOptionsSettings.d.ts +0 -10
  581. package/dist/client/llm-services/component/UnifiedModelSettings.d.ts +0 -10
  582. package/dist/client/llm-services/hooks/useLLMServiceCatalog.d.ts +0 -18
  583. package/dist/client/llm-services/llm-providers.d.ts +0 -27
  584. package/dist/client/llm-services/utils.d.ts +0 -35
  585. package/dist/client/manager/ai-feature-manager.d.ts +0 -9
  586. package/dist/client/manager/ai-manager.d.ts +0 -35
  587. package/dist/client/repositories/AIConfigRepository.d.ts +0 -60
  588. package/dist/client/repositories/hooks/useAIConfigRepository.d.ts +0 -10
  589. package/dist/client/schemas/llms.d.ts +0 -347
  590. package/dist/client/workflow/nodes/employee/components/AIEmployeeSelect.d.ts +0 -10
  591. package/dist/client/workflow/nodes/employee/components/assigness.d.ts +0 -11
  592. package/dist/client/workflow/nodes/employee/components/file-inputs.d.ts +0 -10
  593. package/dist/client/workflow/nodes/employee/components/message-inputs.d.ts +0 -12
  594. package/dist/client/workflow/nodes/employee/components/model-options.d.ts +0 -10
  595. package/dist/client/workflow/nodes/employee/components/structured-output.d.ts +0 -10
  596. package/dist/client/workflow/nodes/employee/components/users-select.d.ts +0 -15
  597. package/dist/client/workflow/nodes/employee/components/web-search-options.d.ts +0 -10
  598. package/dist/client/workflow/nodes/employee/configuration.d.ts +0 -12
  599. package/dist/client/workflow/nodes/employee/flow-models/feedback.d.ts +0 -14
  600. package/dist/client/workflow/nodes/llm/ModelSettings.d.ts +0 -11
  601. package/dist/client/workflow/triggers/ai-employee/Parameters.d.ts +0 -13
  602. package/dist/client-v2/ai-employees/chatbox/stores/create-selectors.d.ts +0 -18
  603. /package/dist/{client → client-v2}/ai-employees/AISelection.d.ts +0 -0
  604. /package/dist/{client → client-v2}/ai-employees/AISelectionControl.d.ts +0 -0
  605. /package/dist/{client → client-v2}/ai-employees/ai-coding/prompts.d.ts +0 -0
  606. /package/dist/{client → client-v2}/ai-employees/ai-coding/setup.d.ts +0 -0
  607. /package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/ChatButton.d.ts +0 -0
  608. /package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/SearchSwitch.d.ts +0 -0
  609. /package/dist/{client/ai-employees/chatbox/generative-ui → client-v2/ai-employees/chatbox/components}/ToolModal.d.ts +0 -0
  610. /package/dist/{client/ai-employees/chatbox → client-v2/ai-employees/chatbox/components}/UserPrompt.d.ts +0 -0
  611. /package/dist/{client → client-v2}/ai-employees/chatbox/hooks/useLoadMoreObserver.d.ts +0 -0
  612. /package/dist/client-v2/ai-employees/{chatbox/stores → stores}/global-store.d.ts +0 -0
  613. /package/dist/{client/ai-employees/flow/models → client-v2/models/ai-employees}/AIEmployeeShortcutListModel.d.ts +0 -0
  614. /package/dist/{client/ai-employees/flow/models → client-v2/models/ai-employees}/index.d.ts +0 -0
  615. /package/dist/{client/ai-employees/flow/events/ai-context-selection.d.ts → client-v2/workflow/components/index.d.ts} +0 -0
@@ -1,100 +1,130 @@
1
1
  ---
2
- pkg: "@nocobase/plugin-data-source-main"
2
+ title: "Main database"
3
+ description: "The NocoBase main database stores system and business data. It supports MySQL, PostgreSQL, MariaDB, KingbaseES, and OceanBase, table synchronization, and collection creation."
4
+ keywords: "main database,MySQL,PostgreSQL,MariaDB,KingbaseES,OceanBase,table synchronization,NocoBase"
3
5
  ---
4
6
 
5
- # Main DataBase
7
+ # Main database
6
8
 
7
9
  ## Introduction
8
10
 
9
- NocoBase's main database can be used to store both business data and the metadata of the application, including system table data and custom table data. The main database supports relational databases such as MySQL, PostgreSQL, etc. During the installation of the NocoBase application, the main database must be installed synchronously and cannot be deleted.
11
+ The database configured when [deploying NocoBase](/ai/install-nocobase-app) stores NocoBase system tables and can also store application business tables.
10
12
 
11
- ## Installation
13
+ | Database | Supported version | Community | Standard | Professional | Enterprise |
14
+ | --- | --- | --- | --- | --- | --- |
15
+ | MySQL | >= 8.0.17 | Yes | Yes | Yes | Yes |
16
+ | PostgreSQL | >= 10 | Yes | Yes | Yes | Yes |
17
+ | MariaDB | >= 10.9 | Yes | Yes | Yes | Yes |
18
+ | KingbaseES | >= V9 | No | No | Yes | Yes |
19
+ | OceanBase | >= 4.3 | No | No | No | Yes |
12
20
 
13
- This is a built-in plugin, no separate installation is required.
21
+ :::tip Tip
14
22
 
15
- ## Collection Management
23
+ KingbaseES supports only PostgreSQL compatibility mode. OceanBase supports only MySQL compatibility mode.
16
24
 
17
- The main data source provides complete collection management functionality, allowing you to create new tables through NocoBase and sync existing table structures from the database.
25
+ :::
18
26
 
19
- ![20240322230134](https://static-docs.nocobase.com/20240322230134.png)
27
+ ## Plugin installation
20
28
 
21
- ### Syncing Existing Tables from Database
29
+ | Database | Plugin | Installation |
30
+ | --- | --- | --- |
31
+ | MySQL | None | Built in; no separate installation is required. |
32
+ | PostgreSQL | None | Built in; no separate installation is required. |
33
+ | MariaDB | None | Built in; no separate installation is required. |
34
+ | KingbaseES | `@nocobase/plugin-data-source-kingbase` | Requires a commercial license and is enabled after installation. |
35
+ | OceanBase | `@nocobase/plugin-data-source-oceanbase` | Requires a commercial license and is enabled after installation. |
22
36
 
23
- ![nocobase_doc-2025-10-29-19-46-34](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-46-34.png)
37
+ ## Access the main data source
24
38
 
25
- An important feature of the main data source is the ability to sync tables that already exist in the database into NocoBase for management. This means:
39
+ 1. Open the **Data sources** menu.
40
+ 2. Select **Main** in the data-source list and click **Configure** to manage the main database.
26
41
 
27
- - **Protect Existing Investment**: If you already have numerous business tables in your database, there's no need to recreate them - you can sync and use them directly
28
- - **Flexible Integration**: Tables created through other tools (such as SQL scripts, database management tools, etc.) can be brought under NocoBase management
29
- - **Progressive Migration**: Support for gradually migrating existing systems to NocoBase, rather than all-at-once refactoring
42
+ ![Configure the main data source](https://static-docs.nocobase.com/configure_main_datasource.png)
30
43
 
31
- Through the "Load from Database" feature, you can:
32
- 1. Browse all tables in the database
33
- 2. Select the tables you need to sync
34
- 3. Automatically identify table structures and field types
35
- 4. Import them into NocoBase for management with one click
44
+ ## Main data-source management
36
45
 
37
- ### Support for Multiple Collection Types
46
+ The main database manages collections and fields. You can:
38
47
 
39
- ![nocobase_doc-2025-10-29-19-47-14](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-47-14.png)
48
+ - **Filter**: search collections managed by the NocoBase main database.
49
+ - **Create collection**: add a business collection.
50
+ - **Edit**: change business collection metadata.
51
+ - **Delete**: delete a business collection.
52
+ - **Sync from database**: synchronize the structure of an existing database table.
53
+ - **Configure fields**: create, change, and delete collection fields.
54
+ - **+**: create, edit, and delete collection categories from the collection tabs.
40
55
 
41
- NocoBase supports creating and managing various types of collections:
42
- - **General collection**: built-in commonly used system fields
43
- - **Inheritance collection**: allows creation of a parent table from which child tables can be derived. Child tables inherit the parent table's structure and can define their own columns
44
- - **Tree collection**: tree-structured table, currently only supports adjacency list design
45
- - **Calendar collection**: for creating calendar-related event tables
46
- - **File collection**: for managing file storage
47
- - **Expression collection**: for dynamic expression scenarios in workflows
48
- - **SQL Collection**: not an actual database table, but quickly presents SQL queries in a structured manner
49
- - **Database View collection**: connects to existing database views
50
- - **FDW collection**: allows the database system to directly access and query data in external data sources, based on FDW technology
56
+ ![Main data source management](https://static-docs.nocobase.com/main_datasource_management.png)
51
57
 
52
- ### Supporting Classification Management of Collections
58
+ ### Synchronize existing tables from the database
53
59
 
54
- ![20240322231520](https://static-docs.nocobase.com/20240322231520.png)
60
+ ![Synchronize existing tables](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-46-34.png)
55
61
 
56
- ### Rich Field Types
62
+ Synchronizing existing database tables lets you manage them in NocoBase without recreating them.
57
63
 
58
- ![nocobase_doc-2025-10-29-19-48-51](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-48-51.png)
64
+ - **Protect existing investment**: use existing business tables directly.
65
+ - **Flexible integration**: bring in tables created by SQL scripts or database-management tools.
66
+ - **Gradual migration**: migrate an existing system to NocoBase step by step rather than refactoring everything at once.
59
67
 
60
- #### Flexible Field Type Conversion
68
+ With **Load from database**, you can:
61
69
 
62
- NocoBase supports flexible field type conversion based on the same database type.
70
+ 1. Browse all tables in the database.
71
+ 2. Select the tables to synchronize.
72
+ 3. Identify table structures and field types automatically.
73
+ 4. Import them into NocoBase for management.
63
74
 
64
- **Example: String Type Field Conversion Options**
75
+ ### Supported collection types
65
76
 
66
- When a database field is of String type, it can be converted to any of the following forms in NocoBase:
77
+ ![Collection types](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-47-14.png)
67
78
 
68
- - **Basic**: Single line text, Long text, Phone, Email, URL, Password, Color, Icon
69
- - **Choices**: Single select, Radio group
70
- - **Media**: Markdown, Markdown(Vditor), Rich Text, Attachment (URL)
71
- - **Date & Time**: Datetime (with time zone), Datetime (without time zone)
72
- - **Advanced**: Sequence, Collection selector, Encryption
79
+ NocoBase supports creating and managing these collection types:
73
80
 
74
- This flexible conversion mechanism means:
75
- - **No Database Structure Modification Required**: The field's underlying storage type remains unchanged; only its representation in NocoBase changes
76
- - **Adapt to Business Changes**: As business needs evolve, you can quickly adjust field display and interaction methods
77
- - **Data Safety**: The conversion process does not affect the integrity of existing data
81
+ - **General collection**: includes commonly used system fields.
82
+ - **Inheritance collection**: derives child collections from a parent collection. Child collections inherit the parent structure and can define their own fields.
83
+ - **Tree collection**: a hierarchical collection that currently supports the adjacency-list design.
84
+ - **Calendar collection**: stores calendar-related event records.
85
+ - **File collection**: manages file storage.
86
+ - **SQL collection**: presents an SQL query result in a structured form; it is not a real database table.
87
+ - **Database view collection**: connects an existing database view.
78
88
 
79
- ### Flexible Field-Level Synchronization
89
+ ### Collection categories
80
90
 
81
- NocoBase not only syncs entire tables but also supports granular field-level sync management:
91
+ ![Collection categories](https://static-docs.nocobase.com/20240322231520.png)
82
92
 
83
- ![nocobase_doc-2025-10-29-19-49-56](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-49-56.png)
93
+ ### Rich field types
84
94
 
85
- #### Field Synchronization Features:
95
+ ![Field types](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-48-51.png)
86
96
 
87
- 1. **Real-time Sync**: When the database table structure changes, newly added fields can be synced at any time
88
- 2. **Selective Sync**: You can selectively sync the fields you need, rather than all fields
89
- 3. **Automatic Type Recognition**: Automatically identifies database field types and maps them to NocoBase field types
90
- 4. **Maintain Data Integrity**: The sync process does not affect existing data
97
+ #### Flexible field type conversion
91
98
 
92
- #### Use Cases:
99
+ NocoBase supports flexible Field interface conversion when the underlying database type is compatible.
93
100
 
94
- - **Database Schema Evolution**: When business needs change and new fields need to be added to the database, they can be quickly synced to NocoBase
95
- - **Team Collaboration**: When other team members or DBAs add fields to the database, they can be synced promptly
96
- - **Hybrid Management Mode**: Some fields managed through NocoBase, others through traditional methods - flexible combinations
101
+ For example, a database string field can be presented as:
97
102
 
98
- This flexible synchronization mechanism allows NocoBase to integrate well into existing technical architectures, without requiring changes to existing database management practices, while still enjoying the convenience of low-code development that NocoBase provides.
103
+ - **Basic types**: Single line text, Multiline text, Phone, Email, URL, Password, Color, or Icon.
104
+ - **Choice types**: Select or Radio group.
105
+ - **Media types**: Markdown, Markdown (Vditor), Rich text, or Attachment URL.
106
+ - **Date and time types**: Date time with timezone or Date time without timezone.
107
+ - **Advanced types**: Sequence, Collection selector, or Encryption.
99
108
 
100
- See more in the [Collection Fields / Overview](/data-sources/data-modeling/collection-fields) section.
109
+ This conversion does not change the underlying database storage type. It lets you adjust presentation and interaction as business requirements change while preserving existing data.
110
+
111
+ ### Field-level synchronization
112
+
113
+ NocoBase can synchronize fields individually as well as synchronize an entire collection.
114
+
115
+ ![Field-level synchronization](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-49-56.png)
116
+
117
+ #### Field synchronization behavior
118
+
119
+ 1. Synchronize newly added fields after the database schema changes.
120
+ 2. Select only the fields you need rather than synchronizing every field.
121
+ 3. Identify database field types and map them to NocoBase Field types automatically.
122
+ 4. Preserve existing data during synchronization.
123
+
124
+ #### Use cases
125
+
126
+ - **Database schema evolution**: synchronize fields added for new business requirements.
127
+ - **Team collaboration**: synchronize fields added by another team member or DBA.
128
+ - **Hybrid management**: combine fields managed in NocoBase with fields managed by traditional database tools.
129
+
130
+ See [Collection fields](../data-modeling/collection-fields/index.md) for details.
@@ -1,22 +1,109 @@
1
1
  ---
2
2
  pkg: "@nocobase/plugin-data-source-main"
3
+ title: "Inheritance collection"
4
+ description: "Create child collections from a parent collection. Child collections inherit parent fields and can define their own fields; this is supported only by a PostgreSQL main database."
5
+ keywords: "Inheritance collection,table inheritance,PostgreSQL,NocoBase"
3
6
  ---
4
7
 
5
- # Inheritance Collection
8
+ # Inheritance collection
6
9
 
7
10
  ## Introduction
8
11
 
9
- You can create a parent collection and derive child collection from that parent collection. The child collection will inherit the structure of the parent collection, and can also define its own columns. This design pattern helps organize and manage data with similar structures but possible differences.
12
+ An **Inheritance collection** extends a general collection. Use it when several collections share stable common fields while each child collection also needs its own fields.
10
13
 
11
- Here are some common features of support for inheritable collections:
14
+ For example, create an **Assets** parent collection with asset number, asset name, purchase date, and owner. Then derive **Computer assets**, **Vehicle assets**, and **Office furniture** child collections. Each child inherits the parent fields and can add its own fields.
12
15
 
13
- - Parent Collection: The parent collection contains common columns and data, defining the basic structure of the entire inheritance hierarchy.
14
- - Child Collection: The child collection inherits the structure of the parent collection, but can also define its own columns. This allows each child collection to have the common properties of the parent collection while containing attributes specific to the subclass.
15
- - Querying: When querying, you can choose to query the entire inheritance hierarchy, just the parent collection, or a specific child collection. This allows different levels of data to be retrieved and processed as needed.
16
- - Inheritance Relationship: An inheritance relationship is established between the parent collection and the child collection, meaning that the structure of the parent collection can be used to define consistent attributes, while allowing the child collection to extend or override these attributes.
16
+ :::warning Note
17
17
 
18
- This design pattern helps to reduce data redundancy, simplify the database model, and make the data easier to maintain. However, it needs to be used with caution as inheritable collections can increase the complexity of queries, especially when dealing with the entire inheritance hierarchy. Databases that support inheritable collections generally provide specific syntax and tools to manage and query these collection structures.
18
+ Inheritance collections can be created only when the main database is PostgreSQL. Other main databases, external databases, REST API data sources, and external NocoBase data sources do not support them.
19
19
 
20
- ## User Manual
20
+ :::
21
21
 
22
- ![20240324085907](https://static-docs.nocobase.com/20240324085907.png)
22
+ ## Use cases
23
+
24
+ - Derive Computer assets, Vehicle assets, and Office furniture from an Assets parent collection.
25
+ - Derive Employees, Contractors, and Visitors from a People parent collection.
26
+ - Derive Tasks, Defects, and Requirements from an Items parent collection.
27
+ - Derive Purchase, Sales, and Service contracts from a Contracts parent collection.
28
+
29
+ Use inheritance when the objects have stable shared fields and differ mainly in a small set of dedicated fields.
30
+
31
+ ## Create and configure
32
+
33
+ In the main data source, click **Create collection** and choose a general-collection or inheritance-enabled entry. Select the parent collection in `Inherits`.
34
+
35
+ ![Create an inheritance collection](https://static-docs.nocobase.com/20240324085907.png)
36
+
37
+ | Setting | Description |
38
+ | --- | --- |
39
+ | Collection display name | The name displayed in the interface, such as Computer assets, Vehicle assets, or Office furniture. |
40
+ | Collection name | The internal identifier used by APIs, relation fields, permissions, and workflows. |
41
+ | Inherits | The parent collection. The child inherits its field structure and can define additional fields. |
42
+ | Categories | Organizes collections in the management interface without changing their schema. |
43
+ | Description | Document what the child collection stores, which parent it derives from, and who maintains it. |
44
+ | Preset fields | Usually keeps ID, created-at, created-by, updated-at, and updated-by fields. |
45
+
46
+ Inheritance collections use the same blocks and field configuration as [General collections](./general-collection.md). In page blocks, they are normal collections that support record creation, reading, updating, and deletion.
47
+
48
+ :::warning Note
49
+
50
+ Use inheritance only for highly similar business objects. If objects have substantially different workflows, permissions, and pages, separate general collections connected by relation fields are usually clearer.
51
+
52
+ :::
53
+
54
+ ### Built-in fields
55
+
56
+ An inheritance collection inherits fields from its parent and can add fields of its own.
57
+
58
+ | Field source | Description |
59
+ | --- | --- |
60
+ | Parent fields | Shared fields inherited by the child, such as asset number, asset name, and owner. |
61
+ | Child fields | Dedicated child fields, such as CPU model for a computer asset or license plate for a vehicle asset. |
62
+ | System fields | When `Preset fields` are retained, ID, created-at, created-by, updated-at, and updated-by fields are included. |
63
+
64
+ :::warning Note
65
+
66
+ Parent fields affect every child that inherits them. Before changing a parent field, check whether child pages, permissions, workflows, and APIs depend on it.
67
+
68
+ :::
69
+
70
+ ### Primary key field
71
+
72
+ Inheritance collections require a primary key just as general collections do. Keep the ID preset field when creating the collection; its default primary-key interface is `Snowflake ID (53-bit)`.
73
+
74
+ If an imported or synchronized inheritance collection has no primary key, set a **Record unique key** when editing the collection. Otherwise page blocks might not view or edit records correctly.
75
+
76
+ ## Use in pages
77
+
78
+ Inheritance collections can use most blocks supported by general collections. A common approach is to configure each child collection as its own table, form, details, or Kanban block.
79
+
80
+ | Block | Use |
81
+ | --- | --- |
82
+ | [Table](../../interface-builder/blocks/data-blocks/table.md) | View, filter, sort, and batch-process child records. |
83
+ | [Form](../../interface-builder/blocks/data-blocks/form.md) | Create or edit one child record. |
84
+ | [Details](../../interface-builder/blocks/data-blocks/details.md) | View one child record in detail. |
85
+ | [Kanban](../../interface-builder/blocks/data-blocks/kanban.md) | Group child records by status, stage, owner, or another field. |
86
+
87
+ ## Edit configuration
88
+
89
+ Click **Edit** beside an inheritance collection to change its display name, category, description, simple-pagination mode, and Record unique key.
90
+
91
+ Do not change inheritance relationships frequently after business configuration is in use. Page blocks, relation fields, permissions, and workflows can depend on the current field structure.
92
+
93
+ ## Delete a collection
94
+
95
+ Click **Delete** beside an inheritance collection to delete it.
96
+
97
+ Deleting an inheritance collection removes the child collection metadata and the real child table in the main database. Before deleting it, confirm that no page blocks, relation fields, permissions, workflows, or APIs still use the child collection.
98
+
99
+ :::danger Warning
100
+
101
+ Deleting a child collection does not automatically mean deleting its parent. Whether dependent objects are deleted depends on the option in the confirmation dialog. Confirm that the parent and other child collections should remain before continuing.
102
+
103
+ :::
104
+
105
+ ## Related links
106
+
107
+ - [General collection](./general-collection.md) - General collection configuration.
108
+ - [Main database](./index.md) - Supported main database types.
109
+ - [Collection fields](../data-modeling/collection-fields/index.md) - Field configuration.
@@ -1,101 +1,140 @@
1
- # External Database
1
+ ---
2
+ title: "External databases"
3
+ description: "Connect existing MySQL, PostgreSQL, MariaDB, KingbaseES, OceanBase, MSSQL, Oracle, ClickHouse, and Doris databases to NocoBase, then map their fields and relations."
4
+ keywords: "external database,MySQL,PostgreSQL,MariaDB,KingbaseES,OceanBase,MSSQL,Oracle,ClickHouse,Doris,field mapping,NocoBase"
5
+ ---
2
6
 
3
- ## Introduction
7
+ # External databases
4
8
 
5
- Use an existing external database as a data source. Currently supported external databases include MySQL, MariaDB, PostgreSQL, MSSQL, and Oracle.
9
+ ## Introduction
6
10
 
7
- ## Usage Instructions
11
+ An **external database** connects an existing business database to NocoBase. NocoBase reads tables, fields, and views so they can be used in page blocks, permissions, workflows, and APIs.
8
12
 
9
- ### Adding an External Database
13
+ Unlike the [main database](../data-source-main/index.md), the original system and database tools maintain the external schema. NocoBase reads the structure and views; it does not change real tables in the external database.
10
14
 
11
- After activating the plugin, you can select and add it from the "Add new" dropdown menu in data source management.
15
+ | Database | Supported version | Community | Standard | Professional | Enterprise |
16
+ | --- | --- | --- | --- | --- | --- |
17
+ | MySQL | >= 5.7 | No | Yes | Yes | Yes |
18
+ | PostgreSQL | >= 9.5 | No | Yes | Yes | Yes |
19
+ | MariaDB | >= 10.3 | No | Yes | Yes | Yes |
20
+ | MSSQL | 2014-2019 | No | Yes | Yes | Yes |
21
+ | KingbaseES | >= V9 | No | No | Yes | Yes |
22
+ | OceanBase | >= 4.3 | No | No | No | Yes |
23
+ | Oracle | >= 11g | No | No | No | Yes |
24
+ | ClickHouse | >= 20.2 | No | No | No | Yes |
25
+ | Doris | >= 2.1.0 | No | No | No | Yes |
12
26
 
27
+ :::tip Tip
13
28
 
14
- ![20240507204316](https://static-docs.nocobase.com/20240507204316.png)
29
+ KingbaseES supports only PostgreSQL compatibility mode. OceanBase, ClickHouse, and Doris support only MySQL compatibility mode.
15
30
 
31
+ :::
16
32
 
17
- Fill in the information for the database you need to connect to.
33
+ Typical use cases include:
18
34
 
35
+ - Connect an existing ERP, MES, WMS, or CRM database and build management pages, permissions, workflows, and reports without changing its schema.
36
+ - Add lightweight approval, data-correction, exception-handling, or operations-dashboard capabilities without replacing the original system.
37
+ - Query, analyze, or display existing data for reporting or BI.
38
+ - Migrate a historical system gradually: keep the old database connected first, then put new business data in the main database over time.
39
+ - Leave the database structure to DBAs, migration scripts, or the original system while NocoBase provides pages and data usage.
19
40
 
20
- ![20240507204820](https://static-docs.nocobase.com/20240507204820.png)
41
+ :::warning Note
21
42
 
43
+ An external database is not the NocoBase system database. NocoBase does not manage its backup, restore, migrations, or schema changes.
22
44
 
23
- ### Collection Synchronization
45
+ :::
24
46
 
25
- After establishing a connection with an external database, all collections within the data source will be read directly. External databases do not support adding collections or modifying the table structure directly. If modifications are needed, you can perform them through a database client and then click the "Refresh" button in the interface to synchronize.
47
+ ## Plugin installation
26
48
 
49
+ Each external database is supplied by a data-source plugin. Install and enable the plugin before its database type appears in **Data source management** > **Add new**.
27
50
 
28
- ![20240507204725](https://static-docs.nocobase.com/20240507204725.png)
51
+ | Database | Plugin | Installation |
52
+ | --- | --- | --- |
53
+ | MySQL | `@nocobase/plugin-data-source-external-mysql` | Requires a commercial license; install and enable it. |
54
+ | PostgreSQL | `@nocobase/plugin-data-source-external-postgres` | Requires a commercial license; install and enable it. |
55
+ | MariaDB | `@nocobase/plugin-data-source-external-mariadb` | Requires a commercial license; install and enable it. |
56
+ | KingbaseES | `@nocobase/plugin-data-source-kingbase` | Requires a commercial license; install and enable it. |
57
+ | OceanBase | `@nocobase/plugin-data-source-oceanbase` | Requires a commercial license; install and enable it. |
58
+ | MSSQL | `@nocobase/plugin-data-source-external-mssql` | Requires a commercial license; install and enable it. |
59
+ | Oracle | `@nocobase/plugin-data-source-external-oracle` | Requires a commercial license; install and enable it. |
60
+ | ClickHouse | `@nocobase/plugin-data-source-external-clickhouse` | Requires a commercial license; install and enable it. |
61
+ | Doris | `@nocobase/plugin-data-source-external-doris` | Requires a commercial license; install and enable it. |
29
62
 
63
+ ![Add a database](https://static-docs.nocobase.com/add_new_database.png)
30
64
 
31
- ### Configuring Fields
65
+ If a database type is missing from **Add new**, check that its plugin is installed and enabled, the commercial license includes it, and the current user can manage data sources.
32
66
 
33
- The external database will automatically read and display the fields of existing collections. You can quickly view and configure the field's title, data type (Field type), and UI type (Field interface). You can also click the "Edit" button to modify more configurations.
67
+ ## Usage
34
68
 
69
+ ### Add an external database
35
70
 
36
- ![20240507210537](https://static-docs.nocobase.com/20240507210537.png)
71
+ After the plugin is activated, choose the database type from **Add new** and provide its connection information.
37
72
 
73
+ ![Add an external database](https://static-docs.nocobase.com/20240507204316.png)
38
74
 
39
- Because external databases do not support modifying the table structure, the only available type when adding a new field is the association field. Association fields are not actual fields but are used to establish connections between collections.
75
+ ![Configure an external database](https://static-docs.nocobase.com/20240507204820.png)
40
76
 
77
+ ### Synchronize collections
41
78
 
42
- ![20240507220140](https://static-docs.nocobase.com/20240507220140.png)
79
+ After an external database is connected, NocoBase reads its collections. It cannot create collections or change the external schema. Make schema changes through database tools, then use the refresh action to synchronize metadata.
43
80
 
81
+ ![Synchronize external collections](https://static-docs.nocobase.com/20240507204725.png)
44
82
 
45
- For more details, see the [Collection Fields/Overview](/data-sources/data-modeling/collection-fields) chapter.
83
+ ### Configure fields
46
84
 
47
- ### Field Type Mapping
85
+ NocoBase reads and displays existing fields. You can configure their title, **Field type**, and **Field interface**, or use **Edit** for additional configuration.
48
86
 
49
- NocoBase automatically maps the field types from the external database to the corresponding data type (Field type) and UI type (Field Interface).
87
+ ![Configure external fields](https://static-docs.nocobase.com/20240507210537.png)
50
88
 
51
- - Data type (Field type): Defines the kind, format, and structure of data that a field can store.
52
- - UI type (Field interface): Refers to the type of control used in the user interface to display and input field values.
89
+ Because an external database schema cannot be changed from NocoBase, the only field type you can add is a relation field. A relation field is not a real database column; it connects collections in NocoBase.
53
90
 
54
- | PostgreSQL | MySQL/MariaDB | NocoBase Data Type | NocoBase Interface Type |
55
- | - | - | - | - |
56
- | BOOLEAN | BOOLEAN<br/>TINYINT(1) | boolean | checkbox <br/> switch |
57
- | SMALLINT<br/>INTEGER<br/>SERIAL<br/>SMALLSERIAL | TINYINT<br/>SMALLINT<br/>MEDIUMINT<br/>INTEGER | integer<br/>boolean<br/>sort | integer<br/>sort<br/>checkbox<br/>switch<br/>select<br/>radioGroup |
58
- | BIGINT<br/>BIGSERIAL | BIGINT | bigInt<br/>sort | integer<br/>sort<br/>checkbox<br/>switch<br/>select<br/>radioGroup<br/>unixTimestamp<br/>createdAt<br/>updatedAt |
59
- | REAL | FLOAT | float | number<br/>percent |
60
- | DOUBLE PRECISION | DOUBLE PRECISION | double | number<br/>percent |
61
- | DECIMAL<br/>NUMERIC | DECIMAL | decimal | number<br/>percent<br/>currency |
62
- | VARCHAR<br/>CHAR | VARCHAR<br/>CHAR | string<br/>password<br/>uuid<br/>nanoid | input<br/>email<br/>phone<br/>password<br/>color<br/>icon<br/>select<br/>radioGroup<br/>uuid<br/>nanoid |
63
- | TEXT | TEXT<br/>TINYTEXT<br/>MEDIUMTEXT<br/>LONGTEXT | text<br/>json | textarea<br/>markdown<br/>vditor<br/>richText<br/>url<br/>json |
64
- | UUID | - | uuid | uuid |
65
- | JSON<br/>JSONB | JSON | json | json |
66
- | TIMESTAMP | DATETIME<br/>TIMESTAMP | date | date<br/>time<br/>createdAt<br/>updatedAt |
67
- | DATE | DATE | dateOnly | datetime |
68
- | TIME | TIME | time | time |
69
- | - | YEAR | | datetime |
70
- | CIRCLE | | circle | json<br/>circle |
71
- | PATH<br/>GEOMETRY(LINESTRING) | LINESTRING | lineString | Json<br/>lineString |
72
- | POINT<br/>GEOMETRY(POINT) | POINT | point | json<br/>point |
73
- | POLYGON<br/>GEOMETRY(POLYGON) | POLYGON | polygon | json<br/>polygon |
74
- | GEOMETRY | GEOMETRY | - | - |
75
- | BLOB | BLOB | blob | - |
76
- | ENUM | ENUM | enum | select<br/>radioGroup |
77
- | ARRAY | - | array | multipleSelect<br/>checkboxGroup |
78
- | BIT | BIT | - | - |
79
- | SET | SET | set | multipleSelect<br/>checkboxGroup |
80
- | RANGE | - | - | - |
91
+ ![Add an external relation field](https://static-docs.nocobase.com/20240507220140.png)
81
92
 
82
- ### Unsupported Field Types
93
+ See [Collection fields](../data-modeling/collection-fields/index.md) for details.
83
94
 
84
- Unsupported field types are displayed separately. These fields require development adaptation before they can be used.
95
+ ### Field type mapping
85
96
 
97
+ NocoBase maps external database types to a corresponding **Field type** and **Field interface**. Field type defines the kind, format, and structure of stored data; Field interface defines the control used to display and enter the value.
86
98
 
87
- ![20240507221854](https://static-docs.nocobase.com/20240507221854.png)
88
-
99
+ | PostgreSQL | MySQL / MariaDB | NocoBase Field type | NocoBase Field interface |
100
+ | --- | --- | --- | --- |
101
+ | BOOLEAN | BOOLEAN, TINYINT(1) | `boolean` | `checkbox`, `switch` |
102
+ | SMALLINT, INTEGER, SERIAL, SMALLSERIAL | TINYINT, SMALLINT, MEDIUMINT, INTEGER | `integer`, `boolean`, `sort` | `integer`, `sort`, `checkbox`, `switch`, `select`, `radioGroup` |
103
+ | BIGINT, BIGSERIAL | BIGINT | `bigInt`, `sort` | `integer`, `sort`, `checkbox`, `switch`, `select`, `radioGroup`, `unixTimestamp`, `createdAt`, `updatedAt` |
104
+ | REAL | FLOAT | `float` | `number`, `percent` |
105
+ | DOUBLE PRECISION | DOUBLE PRECISION | `double` | `number`, `percent` |
106
+ | DECIMAL, NUMERIC | DECIMAL | `decimal` | `number`, `percent`, `currency` |
107
+ | VARCHAR, CHAR | VARCHAR, CHAR | `string`, `password`, `uuid`, `nanoid` | `input`, `email`, `phone`, `password`, `color`, `icon`, `select`, `radioGroup`, `uuid`, `nanoid` |
108
+ | TEXT | TEXT, TINYTEXT, MEDIUMTEXT, LONGTEXT | `text`, `json` | `textarea`, `markdown`, `vditor`, `richText`, `url`, `json` |
109
+ | UUID | - | `uuid` | `uuid` |
110
+ | JSON, JSONB | JSON | `json` | `json` |
111
+ | TIMESTAMP | DATETIME, TIMESTAMP | `date` | `date`, `time`, `createdAt`, `updatedAt` |
112
+ | DATE | DATE | `dateOnly` | `datetime` |
113
+ | TIME | TIME | `time` | `time` |
114
+ | - | YEAR | - | `datetime` |
115
+ | CIRCLE | - | `circle` | `json`, `circle` |
116
+ | POINT, GEOMETRY(POINT) | POINT | `point` | `json`, `point` |
117
+ | PATH, GEOMETRY(LINESTRING) | LINESTRING | `lineString` | `json`, `lineString` |
118
+ | POLYGON, GEOMETRY(POLYGON) | POLYGON | `polygon` | `json`, `polygon` |
119
+ | GEOMETRY | GEOMETRY | - | - |
120
+ | BLOB | BLOB | `blob` | - |
121
+ | ARRAY | - | `array` | `multipleSelect`, `checkboxGroup` |
122
+ | BIT | BIT | - | - |
123
+ | SET | SET | `set` | `multipleSelect`, `checkboxGroup` |
124
+ | RANGE | - | - | - |
89
125
 
90
- ### Filter Target Key
126
+ ### Unsupported field types
91
127
 
92
- Collections displayed as blocks must have a Filter target key configured. The filter target key is used to filter data based on a specific field, and the field value must be unique. By default, the filter target key is the collection's primary key field. For views, collections without a primary key, or collections with a composite primary key, you need to define a custom filter target key.
128
+ Unsupported field types are shown separately. They require development support before they can be used.
93
129
 
130
+ ![Unsupported field types](https://static-docs.nocobase.com/20240507221854.png)
94
131
 
95
- ![20240507210230](https://static-docs.nocobase.com/20240507210230.png)
132
+ ### Record unique key
96
133
 
134
+ A collection shown in a block needs a **Record unique key** to locate a record, usually a primary key or unique field.
97
135
 
98
- Only collections that have a filter target key configured can be added to the page.
136
+ For a view, table without a primary key, or composite-primary-key table, set the Record unique key manually in the collection configuration. Without a usable unique key, blocks might not be created correctly or might not be able to view and edit records.
99
137
 
138
+ ![Edit a collection](https://static-docs.nocobase.com/edit_collection.png)
100
139
 
101
- ![20240507222827](https://static-docs.nocobase.com/20240507222827.png)
140
+ ![Configure a collection](https://static-docs.nocobase.com/edit_collection_configure.png)
@@ -1,47 +1,55 @@
1
1
  ---
2
2
  pkg: "@nocobase/plugin-data-source-manager"
3
+ title: "Data source management"
4
+ description: "Use the Data Source Manager to manage the main database, external databases, REST API data sources, and external NocoBase data sources from one interface."
5
+ keywords: "data source management,main database,external database,table synchronization,REST API data source,NocoBase"
3
6
  ---
4
7
 
5
- # Data Source Manager
8
+ # Data source management
6
9
 
7
10
  ## Introduction
8
11
 
9
- NocoBase provides a data source management plugin for managing data sources and their collections. The data source management plugin only provides a management interface for all data sources and does not provide the ability to access data sources. It needs to be used in conjunction with various data source plugins. The data sources currently supported for access include:
12
+ NocoBase provides the **Data Source Manager** plugin to manage data sources and their collections. It provides the management interface for all data sources; it does not connect to a data source by itself. Use it together with the applicable data-source plugin.
10
13
 
11
- - [Main Database](/data-sources/data-source-main): NocoBase's main database, supporting relational databases such as MySQL, PostgreSQL, and MariaDB.
12
- - [External MySQL](/data-sources/data-source-external-mysql): Use an external MySQL database as a data source.
13
- - [External MariaDB](/data-sources/data-source-external-mariadb): Use an external MariaDB database as a data source.
14
- - [External PostgreSQL](/data-sources/data-source-external-postgres): Use an external PostgreSQL database as a data source.
15
- - [External MSSQL](/data-sources/data-source-external-mssql): Use an external MSSQL (SQL Server) database as a data source.
16
- - [External Oracle](/data-sources/data-source-external-oracle): Use an external Oracle database as a data source.
17
- - [External NocoBase](/data-sources/data-source-external-nocobase/): Use another NocoBase application as an external data source through the remote NocoBase API.
14
+ Supported data sources include:
18
15
 
19
- In addition, more types can be extended through plugins, which can be common types of databases or platforms that provide APIs (SDKs).
16
+ - [Main database](../data-source-main/index.md): The NocoBase main database. It supports MySQL, PostgreSQL, MariaDB, KingbaseES, and OceanBase.
17
+ - [External PostgreSQL](../data-source-external-postgres/index.md): Uses an external PostgreSQL database as a data source.
18
+ - [External MySQL](../data-source-external-mysql/index.md): Uses an external MySQL database as a data source.
19
+ - [External MariaDB](../data-source-external-mariadb/index.md): Uses an external MariaDB database as a data source.
20
+ - [External MSSQL](../data-source-external-mssql/index.md): Uses an external MSSQL (SQL Server) database as a data source.
21
+ - [External KingbaseES](../data-source-kingbase/index.md): Uses an external KingbaseES database as a data source.
22
+ - [External OceanBase](../external/oceanbase.md): Uses an external OceanBase database as a data source.
23
+ - [External Oracle](../data-source-external-oracle/index.md): Uses an external Oracle database as a data source.
24
+ - [External ClickHouse](../external/clickhouse.md): Uses an external ClickHouse database, typically for queries, statistics, and reports.
25
+ - [External Doris](../external/doris.md): Uses an external Doris database, typically for queries, statistics, and reports.
26
+ - [REST API data source](../data-source-rest-api/index.md): Connects data supplied by a REST API to NocoBase.
27
+ - [External NocoBase](../data-source-external-nocobase/index.md): Uses the remote NocoBase API to connect another NocoBase application as an external data source.
20
28
 
21
- ## Installation
22
-
23
- Built-in plugin, no separate installation required.
29
+ Plugins can extend this list with other database types and platforms that provide APIs or SDKs.
24
30
 
25
- ## Usage Instructions
26
-
27
- When the application is initialized and installed, a data source is provided by default to store NocoBase data, known as the main database. For more information, see the [Main Database](/data-sources/data-source-main/index.md) documentation.
31
+ ## Installation
28
32
 
29
- ### External Data Sources
33
+ This plugin is built in and does not require a separate installation.
30
34
 
31
- External databases are supported as data sources. For more information, see the [External Database / Introduction](/data-sources/data-source-manager/external-database) documentation.
35
+ ## Usage
32
36
 
37
+ During application initialization, NocoBase provides a data source for storing NocoBase data. This source is called the **main database**. See [Main database](../data-source-main/index.md) for details.
33
38
 
34
- ![nocobase_doc-2025-10-29-19-45-33](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-45-33.png)
39
+ ### External data sources
35
40
 
41
+ NocoBase supports external databases as data sources. See [External databases](./external-database.md) for details.
36
42
 
37
- ### Support for Syncing Custom Database Tables
43
+ ![External data sources](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-45-33.png)
38
44
 
45
+ ### Synchronize custom database tables
39
46
 
40
- ![nocobase_doc-2025-10-29-19-46-34](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-46-34.png)
47
+ You can synchronize tables that were created in the database outside NocoBase.
41
48
 
49
+ ![Synchronize custom database tables](https://static-docs.nocobase.com/nocobase_doc-2025-10-29-19-46-34.png)
42
50
 
43
- You can also access data from HTTP API sources. For more information, see the [REST API Data Source](/data-sources/data-source-rest-api/index.md) documentation.
51
+ You can also connect data supplied by an HTTP API. See [REST API data source](../data-source-rest-api/index.md) for details.
44
52
 
45
- ### External NocoBase Data Source
53
+ ### External NocoBase data source
46
54
 
47
- You can use another NocoBase application as an external data source through the remote NocoBase API. For more information, see the [External NocoBase](/data-sources/data-source-external-nocobase/) documentation.
55
+ Use the remote NocoBase API to connect another NocoBase application as an external data source. See [External NocoBase](../data-source-external-nocobase/index.md) for details.