@nocobase/plugin-ai 2.1.0-beta.15 → 2.1.0-beta.17

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 (303) hide show
  1. package/dist/ai/ai-employees/atlas/index.d.ts +10 -0
  2. package/dist/{server/ai-employees/built-in/ai-coding/prompt.js → ai/ai-employees/atlas/index.js} +29 -20
  3. package/dist/ai/ai-employees/atlas/prompt.md +84 -0
  4. package/dist/ai/ai-employees/dara.d.ts +10 -0
  5. package/dist/{server/ai-employees/built-in/data-visualization/prompt.js → ai/ai-employees/dara.js} +21 -13
  6. package/dist/ai/ai-employees/dex.d.ts +10 -0
  7. package/dist/{server/ai-employees/built-in/data-organizer/prompt.js → ai/ai-employees/dex.js} +15 -7
  8. package/dist/ai/ai-employees/ellis.d.ts +10 -0
  9. package/dist/{server/ai-employees/built-in/email-assistant/prompt.js → ai/ai-employees/ellis.js} +19 -11
  10. package/dist/ai/ai-employees/lexi.d.ts +10 -0
  11. package/dist/{server/ai-employees/built-in/translator/prompt.js → ai/ai-employees/lexi.js} +15 -7
  12. package/dist/ai/ai-employees/vera.d.ts +10 -0
  13. package/dist/{server/ai-employees/built-in/research-analyst/prompt.js → ai/ai-employees/vera.js} +16 -8
  14. package/dist/ai/ai-employees/viz.d.ts +10 -0
  15. package/dist/{server/ai-employees/built-in/insights-analyst/prompt.js → ai/ai-employees/viz.js} +15 -7
  16. package/dist/ai/skills/business-analysis-report/SKILLS.md +88 -0
  17. package/dist/{server/ai-employees/built-in/ai-coding/prompt.d.ts → ai/skills/business-analysis-report/tools/businessReportGenerator.d.ts} +1 -3
  18. package/dist/ai/skills/business-analysis-report/tools/businessReportGenerator.js +98 -0
  19. package/dist/ai/skills/document-search/SKILLS.md +69 -0
  20. package/dist/ai/tools/chartGenerator.js +15 -3
  21. package/dist/ai/tools/formFiller.js +13 -2
  22. package/dist/{server/ai-employees/built-in/data-modeling/prompt.d.ts → ai/tools/getSkill.d.ts} +1 -3
  23. package/dist/{server/ai-employees/built-in/data-modeling/index.js → ai/tools/getSkill.js} +39 -32
  24. package/dist/{server/ai-employees/built-in/data-organizer/prompt.d.ts → ai/tools/knowledge-base-retrieve.d.ts} +1 -3
  25. package/dist/ai/tools/knowledge-base-retrieve.js +94 -0
  26. package/dist/{server/ai-employees/built-in/data-visualization/prompt.d.ts → ai/tools/sub-agents/dispatch-sub-agent-task.d.ts} +1 -3
  27. package/dist/ai/tools/sub-agents/dispatch-sub-agent-task.js +108 -0
  28. package/dist/ai/tools/sub-agents/get-ai-employee.d.ts +10 -0
  29. package/dist/{server/ai-employees/built-in/translator/profile.js → ai/tools/sub-agents/get-ai-employee.js} +28 -21
  30. package/dist/ai/tools/sub-agents/list-ai-employees.d.ts +10 -0
  31. package/dist/{server/ai-employees/built-in/email-assistant/profile.js → ai/tools/sub-agents/list-ai-employees.js} +25 -21
  32. package/dist/ai/tools/sub-agents/shared.d.ts +33 -0
  33. package/dist/ai/tools/sub-agents/shared.js +169 -0
  34. package/dist/ai/tools/suggestions.js +15 -4
  35. package/dist/client/170.d98eacdc00d9d527.js +10 -0
  36. package/dist/client/228.b18148eb1009d2fb.js +10 -0
  37. package/dist/client/280.029428b83d62155f.js +10 -0
  38. package/dist/client/290.0888139e33c9b7cb.js +10 -0
  39. package/dist/client/{524.954f96ec4fc2fd7a.js → 331.d547c95410476a69.js} +1 -1
  40. package/dist/client/343.83f7d96664e4e038.js +10 -0
  41. package/dist/client/406.15c09d98faa2ccf1.js +10 -0
  42. package/dist/client/428.e9f38da3b0d8b498.js +10 -0
  43. package/dist/client/486.afbed6b132b3c0dd.js +10 -0
  44. package/dist/client/502.2b4a51e0a8122e52.js +10 -0
  45. package/dist/client/525.33a9c8ec28be4ec4.js +10 -0
  46. package/dist/client/559.133d286a0a0a1d93.js +10 -0
  47. package/dist/client/{91.90e7098b7fbd5d00.js → 561.776886c5308e3c26.js} +1 -1
  48. package/dist/client/580.e75f97fb883ad042.js +10 -0
  49. package/dist/client/597.aa363881a325b5c0.js +10 -0
  50. package/dist/client/604.de96f3ec4d471afd.js +10 -0
  51. package/dist/client/614.aa766080f6b99aab.js +10 -0
  52. package/dist/client/646.51313bb0d85d6366.js +10 -0
  53. package/dist/client/687.224e569a99cae4bb.js +10 -0
  54. package/dist/client/699.57c0a1acb723202a.js +10 -0
  55. package/dist/client/711.266b8f1c520d467a.js +10 -0
  56. package/dist/client/758.a9741e81911e53c3.js +10 -0
  57. package/dist/client/768.973ce32e15099a48.js +10 -0
  58. package/dist/client/792.ae8ad1fcae9fd974.js +10 -0
  59. package/dist/client/820.6a26239ea96c075a.js +10 -0
  60. package/dist/client/832.0cf69e3f43c320b2.js +10 -0
  61. package/dist/client/927.ff5cd05b14901ae6.js +10 -0
  62. package/dist/client/ai-employees/admin/SkillSettings.d.ts +7 -5
  63. package/dist/client/ai-employees/admin/ToolsSettings.d.ts +17 -0
  64. package/dist/client/ai-employees/admin/mcp/MCPSettings.d.ts +10 -0
  65. package/dist/client/ai-employees/admin/mcp/MCPToolsList.d.ts +19 -0
  66. package/dist/client/ai-employees/admin/mcp/context.d.ts +15 -0
  67. package/dist/client/ai-employees/admin/mcp/schemas.d.ts +1286 -0
  68. package/dist/client/ai-employees/built-in/utils.d.ts +1 -0
  69. package/dist/client/ai-employees/business-report/tools/index.d.ts +10 -0
  70. package/dist/client/ai-employees/business-report/ui/BusinessReportCard.d.ts +12 -0
  71. package/dist/client/ai-employees/business-report/ui/BusinessReportModal.d.ts +17 -0
  72. package/dist/client/ai-employees/business-report/ui/report-utils.d.ts +38 -0
  73. package/dist/client/ai-employees/chatbox/AIEmployeeSwitch.d.ts +3 -2
  74. package/dist/client/ai-employees/chatbox/HintMessageHeader.d.ts +10 -0
  75. package/dist/client/ai-employees/chatbox/ModelSwitcher.d.ts +3 -1
  76. package/dist/client/ai-employees/chatbox/SearchSwitch.d.ts +3 -1
  77. package/dist/client/ai-employees/chatbox/Upload.d.ts +3 -1
  78. package/dist/client/ai-employees/chatbox/conversations/ConversationsList.d.ts +27 -0
  79. package/dist/client/ai-employees/chatbox/conversations/WorkflowTasksList.d.ts +33 -0
  80. package/dist/client/ai-employees/chatbox/conversations/common.d.ts +43 -0
  81. package/dist/client/ai-employees/chatbox/conversations/index.d.ts +9 -0
  82. package/dist/client/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +5 -3
  83. package/dist/client/ai-employees/chatbox/hooks/useWorkflowTasks.d.ts +27 -0
  84. package/dist/client/ai-employees/chatbox/markdown/ECharts.d.ts +1 -2
  85. package/dist/client/ai-employees/chatbox/markdown/Markdown.d.ts +1 -1
  86. package/dist/client/ai-employees/chatbox/roles.d.ts +1 -0
  87. package/dist/client/ai-employees/chatbox/stores/chat-box.d.ts +8 -0
  88. package/dist/client/ai-employees/chatbox/stores/chat-conversations.d.ts +4 -0
  89. package/dist/client/ai-employees/chatbox/stores/chat-messages.d.ts +8 -0
  90. package/dist/client/ai-employees/chatbox/stores/workflow-tasks.d.ts +45 -0
  91. package/dist/client/ai-employees/chatbox/utils.d.ts +17 -7
  92. package/dist/client/ai-employees/sub-agents/tools/index.d.ts +10 -0
  93. package/dist/client/ai-employees/sub-agents/ui/SubAgentDispatchCard.d.ts +21 -0
  94. package/dist/client/ai-employees/types.d.ts +24 -4
  95. package/dist/{server/ai-employees/built-in/ai-coding/document/example/js-filter → client/ai-employees/workflow-tasks/tools}/index.d.ts +2 -7
  96. package/dist/client/ai-employees/workflow-tasks/ui/WorkflowTaskOutputCard.d.ts +11 -0
  97. package/dist/client/components/ListCollapse.d.ts +28 -0
  98. package/dist/client/index.js +7 -7
  99. package/dist/client/manager/ai-manager.d.ts +4 -23
  100. package/dist/client/repositories/AIConfigRepository.d.ts +11 -3
  101. package/dist/client/workflow/nodes/employee/components/AIEmployeeSelect.d.ts +10 -0
  102. package/dist/client/workflow/nodes/employee/components/assigness.d.ts +11 -0
  103. package/dist/client/workflow/nodes/employee/components/file-inputs.d.ts +10 -0
  104. package/dist/client/workflow/nodes/employee/components/message-inputs.d.ts +12 -0
  105. package/dist/client/workflow/nodes/employee/components/model-options.d.ts +10 -0
  106. package/dist/client/workflow/nodes/employee/components/skill-settings.d.ts +10 -0
  107. package/dist/client/workflow/nodes/employee/components/structured-output.d.ts +10 -0
  108. package/dist/client/workflow/nodes/employee/components/users-select.d.ts +15 -0
  109. package/dist/client/workflow/nodes/employee/components/web-search-options.d.ts +10 -0
  110. package/dist/client/workflow/nodes/employee/configuration.d.ts +12 -0
  111. package/dist/client/workflow/nodes/employee/flow-models/feedback.d.ts +14 -0
  112. package/dist/client/workflow/nodes/employee/flow-models/task.d.ts +13 -0
  113. package/dist/client/workflow/nodes/employee/index.d.ts +7 -31
  114. package/dist/collections/ai-employees.js +2 -1
  115. package/dist/collections/ai-mcp-clients.d.ts +51 -0
  116. package/dist/collections/ai-mcp-clients.js +111 -0
  117. package/dist/externalVersion.js +17 -15
  118. package/dist/locale/en-US.json +141 -8
  119. package/dist/locale/zh-CN.json +142 -9
  120. package/dist/node_modules/fast-glob/out/index.js +8 -8
  121. package/dist/node_modules/fast-glob/package.json +1 -1
  122. package/dist/node_modules/flexsearch/dist/flexsearch.bundle.min.js +2 -2
  123. package/dist/node_modules/flexsearch/package.json +1 -1
  124. package/dist/node_modules/fs-extra/lib/index.js +1 -1
  125. package/dist/node_modules/fs-extra/package.json +1 -1
  126. package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.js +1 -1
  127. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  128. package/dist/node_modules/openai/index.js +1 -1
  129. package/dist/node_modules/openai/package.json +1 -1
  130. package/dist/node_modules/zod/index.cjs +1 -1
  131. package/dist/node_modules/zod/package.json +1 -1
  132. package/dist/server/ai-employees/ai-conversations.d.ts +70 -0
  133. package/dist/server/ai-employees/ai-conversations.js +325 -0
  134. package/dist/server/ai-employees/ai-employee.d.ts +100 -19
  135. package/dist/server/ai-employees/ai-employee.js +484 -261
  136. package/dist/server/ai-employees/ai-knowledge-base.d.ts +28 -0
  137. package/dist/server/ai-employees/ai-knowledge-base.js +167 -0
  138. package/dist/server/ai-employees/middleware/conversation.d.ts +2 -0
  139. package/dist/server/ai-employees/middleware/conversation.js +38 -5
  140. package/dist/server/ai-employees/middleware/index.d.ts +2 -0
  141. package/dist/server/ai-employees/middleware/index.js +5 -1
  142. package/dist/server/ai-employees/middleware/skill-tools.d.ts +12 -0
  143. package/dist/server/ai-employees/middleware/skill-tools.js +88 -0
  144. package/dist/server/ai-employees/middleware/tools.js +37 -10
  145. package/dist/server/ai-employees/middleware/workflow-history.d.ts +22 -0
  146. package/dist/server/ai-employees/middleware/workflow-history.js +173 -0
  147. package/dist/server/ai-employees/prompts.d.ts +16 -1
  148. package/dist/server/ai-employees/prompts.js +37 -1
  149. package/dist/server/ai-employees/sub-agents/dispatcher.d.ts +36 -0
  150. package/dist/server/ai-employees/sub-agents/dispatcher.js +225 -0
  151. package/dist/server/ai-employees/sub-agents/index.d.ts +9 -0
  152. package/dist/server/{migrations/20250923221107-setup-build-in.js → ai-employees/sub-agents/index.js} +9 -13
  153. package/dist/server/ai-employees/templates/form-assistant.d.ts +2 -2
  154. package/dist/server/ai-employees/templates/form-assistant.js +2 -2
  155. package/dist/server/ai-employees/utils.js +2 -2
  156. package/dist/server/collections/ai-conversations.js +18 -0
  157. package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_contacts_en.d.ts → collections/ai-mcp-clients.d.ts} +1 -4
  158. package/dist/server/{ai-employees/built-in/nocobase-assistant/index.js → collections/ai-mcp-clients.js} +12 -13
  159. package/dist/server/{ai-employees/built-in/ai-coding/document/basic/flow-resource.d.ts → collections/ai-skills.d.ts} +1 -4
  160. package/dist/server/{ai-employees/built-in/email-assistant/index.js → collections/ai-skills.js} +46 -23
  161. package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_opportunities_en.d.ts → collections/ai-workflow-tasks.d.ts} +1 -4
  162. package/dist/server/collections/ai-workflow-tasks.js +112 -0
  163. package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_accounts_en.d.ts → collections/users-ai-workflow-tasks.d.ts} +1 -4
  164. package/dist/server/collections/users-ai-workflow-tasks.js +44 -0
  165. package/dist/server/llm-providers/anthropic.d.ts +1 -0
  166. package/dist/server/llm-providers/anthropic.js +2 -1
  167. package/dist/server/llm-providers/dashscope.d.ts +1 -0
  168. package/dist/server/llm-providers/deepseek.d.ts +1 -0
  169. package/dist/server/llm-providers/google-genai.d.ts +1 -0
  170. package/dist/server/llm-providers/google-genai.js +2 -1
  171. package/dist/server/llm-providers/kimi/provider.d.ts +1 -0
  172. package/dist/server/llm-providers/openai/responses.d.ts +1 -0
  173. package/dist/server/llm-providers/openai/responses.js +2 -1
  174. package/dist/server/llm-providers/provider.d.ts +1 -10
  175. package/dist/server/llm-providers/provider.js +3 -34
  176. package/dist/server/manager/ai-coding-manager.d.ts +1 -2
  177. package/dist/server/manager/ai-coding-manager.js +0 -41
  178. package/dist/server/manager/ai-context-datasource-manager.js +30 -1
  179. package/dist/server/manager/built-in-manager.d.ts +2 -4
  180. package/dist/server/manager/built-in-manager.js +8 -117
  181. package/dist/server/migrations/20260306000001-migrate-skill-settings-tools.js +68 -0
  182. package/dist/server/migrations/20260319000000-add-ai-conversations-from.d.ts +14 -0
  183. package/dist/server/migrations/20260319000000-add-ai-conversations-from.js +63 -0
  184. package/dist/server/plugin.d.ts +6 -1
  185. package/dist/server/plugin.js +31 -8
  186. package/dist/server/resource/aiConversations.js +112 -188
  187. package/dist/server/resource/aiEmployees.js +5 -7
  188. package/dist/server/resource/aiMcpClients.d.ts +11 -0
  189. package/dist/server/resource/aiMcpClients.js +78 -0
  190. package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/index.d.ts → resource/aiSkills.d.ts} +3 -7
  191. package/dist/server/resource/aiSkills.js +71 -0
  192. package/dist/server/resource/aiTools.js +4 -6
  193. package/dist/server/resource/aiWorkflowTasks.d.ts +12 -0
  194. package/dist/server/resource/aiWorkflowTasks.js +290 -0
  195. package/dist/server/tools/docs.js +4 -3
  196. package/dist/server/tools/workflow-caller.js +1 -0
  197. package/dist/server/types/ai-chat-conversation.type.d.ts +8 -2
  198. package/dist/server/types/ai-message.type.d.ts +7 -0
  199. package/dist/server/utils.d.ts +3 -0
  200. package/dist/server/utils.js +28 -3
  201. package/dist/server/workflow/nodes/employee/files.d.ts +16 -0
  202. package/dist/server/workflow/nodes/employee/files.js +125 -0
  203. package/dist/server/workflow/nodes/employee/handler.d.ts +11 -0
  204. package/dist/server/workflow/nodes/employee/handler.js +107 -0
  205. package/dist/server/workflow/nodes/employee/index.d.ts +17 -0
  206. package/dist/server/workflow/nodes/employee/index.js +404 -0
  207. package/dist/server/workflow/nodes/employee/tools.d.ts +12 -0
  208. package/dist/server/workflow/nodes/employee/tools.js +133 -0
  209. package/dist/server/workflow/nodes/employee/types.d.ts +35 -0
  210. package/dist/server/workflow/nodes/employee/types.js +24 -0
  211. package/dist/server/workflow/utils.d.ts +14 -0
  212. package/dist/server/workflow/utils.js +111 -0
  213. package/package.json +4 -2
  214. package/dist/client/107.64d9efa24d6b9143.js +0 -10
  215. package/dist/client/124.768c8aa5d6e6b461.js +0 -10
  216. package/dist/client/159.d52107c7a34ce2da.js +0 -10
  217. package/dist/client/192.0419770b69678994.js +0 -10
  218. package/dist/client/204.91be8cfc54d91a59.js +0 -10
  219. package/dist/client/238.9f784a7cdb751999.js +0 -10
  220. package/dist/client/263.6e1dfb1cbb1964f5.js +0 -10
  221. package/dist/client/35.5ee7503d9c09daa8.js +0 -10
  222. package/dist/client/47.6bd245f2140efd24.js +0 -10
  223. package/dist/client/481.03b3d2306d409933.js +0 -10
  224. package/dist/client/586.6a1510cabaa84f23.js +0 -10
  225. package/dist/client/650.8871a07b31c307ea.js +0 -10
  226. package/dist/client/755.e295bbd2b2a1cc21.js +0 -10
  227. package/dist/client/772.d51f683c55e18dd4.js +0 -10
  228. package/dist/client/870.84187dcb8c89b4dc.js +0 -10
  229. package/dist/client/933.baab3aa75f30e020.js +0 -10
  230. package/dist/client/987.3aee964e7f406939.js +0 -10
  231. package/dist/server/ai-employees/built-in/ai-coding/document/basic/flow-resource.js +0 -256
  232. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/index.js +0 -48
  233. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_accounts_en.js +0 -452
  234. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_contacts_en.js +0 -363
  235. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_opportunities_en.js +0 -270
  236. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_quotations_en.d.ts +0 -13
  237. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_quotations_en.js +0 -219
  238. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_tickets_en.d.ts +0 -13
  239. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_tickets_en.js +0 -409
  240. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/accounts_filter_ant_style.d.ts +0 -13
  241. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/accounts_filter_ant_style.js +0 -324
  242. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/contacts_filter_ant_style.d.ts +0 -13
  243. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/contacts_filter_ant_style.js +0 -309
  244. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/index.js +0 -50
  245. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/leads_filter_ant_style.d.ts +0 -13
  246. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/leads_filter_ant_style.js +0 -345
  247. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/opportunities_filter_ant_style.d.ts +0 -13
  248. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/opportunities_filter_ant_style.js +0 -381
  249. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/product_categories_ant_style.d.ts +0 -13
  250. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/product_categories_ant_style.js +0 -545
  251. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/tickets_filter_ant_style.d.ts +0 -13
  252. package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/tickets_filter_ant_style.js +0 -346
  253. package/dist/server/ai-employees/built-in/ai-coding/document/js-action.d.ts +0 -13
  254. package/dist/server/ai-employees/built-in/ai-coding/document/js-action.js +0 -102
  255. package/dist/server/ai-employees/built-in/ai-coding/document/js-block.d.ts +0 -13
  256. package/dist/server/ai-employees/built-in/ai-coding/document/js-block.js +0 -314
  257. package/dist/server/ai-employees/built-in/ai-coding/document/js-column.d.ts +0 -13
  258. package/dist/server/ai-employees/built-in/ai-coding/document/js-column.js +0 -113
  259. package/dist/server/ai-employees/built-in/ai-coding/document/js-field.d.ts +0 -13
  260. package/dist/server/ai-employees/built-in/ai-coding/document/js-field.js +0 -498
  261. package/dist/server/ai-employees/built-in/ai-coding/document/js-item.d.ts +0 -13
  262. package/dist/server/ai-employees/built-in/ai-coding/document/js-item.js +0 -184
  263. package/dist/server/ai-employees/built-in/ai-coding/index.d.ts +0 -37
  264. package/dist/server/ai-employees/built-in/ai-coding/index.js +0 -99
  265. package/dist/server/ai-employees/built-in/ai-coding/profile.d.ts +0 -27
  266. package/dist/server/ai-employees/built-in/ai-coding/profile.js +0 -60
  267. package/dist/server/ai-employees/built-in/ai-coding/prompt_en.md +0 -110
  268. package/dist/server/ai-employees/built-in/data-modeling/index.d.ts +0 -37
  269. package/dist/server/ai-employees/built-in/data-modeling/profile.d.ts +0 -27
  270. package/dist/server/ai-employees/built-in/data-modeling/profile.js +0 -60
  271. package/dist/server/ai-employees/built-in/data-modeling/prompt.js +0 -283
  272. package/dist/server/ai-employees/built-in/data-organizer/index.d.ts +0 -37
  273. package/dist/server/ai-employees/built-in/data-organizer/index.js +0 -63
  274. package/dist/server/ai-employees/built-in/data-organizer/profile.d.ts +0 -27
  275. package/dist/server/ai-employees/built-in/data-organizer/profile.js +0 -60
  276. package/dist/server/ai-employees/built-in/data-visualization/index.d.ts +0 -37
  277. package/dist/server/ai-employees/built-in/data-visualization/index.js +0 -58
  278. package/dist/server/ai-employees/built-in/data-visualization/profile.d.ts +0 -27
  279. package/dist/server/ai-employees/built-in/data-visualization/profile.js +0 -60
  280. package/dist/server/ai-employees/built-in/email-assistant/index.d.ts +0 -34
  281. package/dist/server/ai-employees/built-in/email-assistant/profile.d.ts +0 -27
  282. package/dist/server/ai-employees/built-in/email-assistant/prompt.d.ts +0 -12
  283. package/dist/server/ai-employees/built-in/insights-analyst/index.d.ts +0 -37
  284. package/dist/server/ai-employees/built-in/insights-analyst/index.js +0 -63
  285. package/dist/server/ai-employees/built-in/insights-analyst/profile.d.ts +0 -27
  286. package/dist/server/ai-employees/built-in/insights-analyst/profile.js +0 -60
  287. package/dist/server/ai-employees/built-in/insights-analyst/prompt.d.ts +0 -12
  288. package/dist/server/ai-employees/built-in/nocobase-assistant/index.d.ts +0 -34
  289. package/dist/server/ai-employees/built-in/nocobase-assistant/profile.d.ts +0 -27
  290. package/dist/server/ai-employees/built-in/nocobase-assistant/profile.js +0 -60
  291. package/dist/server/ai-employees/built-in/nocobase-assistant/prompt.d.ts +0 -12
  292. package/dist/server/ai-employees/built-in/nocobase-assistant/prompt.js +0 -52
  293. package/dist/server/ai-employees/built-in/research-analyst/index.d.ts +0 -37
  294. package/dist/server/ai-employees/built-in/research-analyst/index.js +0 -63
  295. package/dist/server/ai-employees/built-in/research-analyst/profile.d.ts +0 -27
  296. package/dist/server/ai-employees/built-in/research-analyst/profile.js +0 -60
  297. package/dist/server/ai-employees/built-in/research-analyst/prompt.d.ts +0 -12
  298. package/dist/server/ai-employees/built-in/translator/index.d.ts +0 -37
  299. package/dist/server/ai-employees/built-in/translator/index.js +0 -67
  300. package/dist/server/ai-employees/built-in/translator/profile.d.ts +0 -27
  301. package/dist/server/ai-employees/built-in/translator/prompt.d.ts +0 -12
  302. /package/dist/client/ai-employees/chatbox/{Conversations.d.ts → conversations/Conversations.d.ts} +0 -0
  303. /package/dist/server/migrations/{20250923221107-setup-build-in.d.ts → 20260306000001-migrate-skill-settings-tools.d.ts} +0 -0
@@ -10,5 +10,6 @@ import { AIEmployee } from '../types';
10
10
  export declare const isBuiltIn: (aiEmployee: AIEmployee) => boolean;
11
11
  export declare const isEngineer: (aiEmployee: AIEmployee) => boolean;
12
12
  export declare const isDataModelingAssistant: (aiEmployee: AIEmployee) => boolean;
13
+ export declare const isLeader: (aiEmployee: AIEmployee) => boolean;
13
14
  export declare const isHide: (aiEmployee: AIEmployee) => boolean;
14
15
  export declare const isSupportLanguage: (language: string) => boolean;
@@ -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
+ import { ToolsOptions } from '@nocobase/client';
10
+ export declare const businessReportGeneratorTool: [string, ToolsOptions];
@@ -0,0 +1,12 @@
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
+ import React from 'react';
10
+ import { ToolsUIProperties } from '@nocobase/client';
11
+ import { BusinessReport } from './report-utils';
12
+ export declare const BusinessReportCard: React.FC<ToolsUIProperties<BusinessReport>>;
@@ -0,0 +1,17 @@
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
+ import React from 'react';
10
+ import { ToolCall } from '@nocobase/client';
11
+ import { BusinessReport } from './report-utils';
12
+ export declare const BusinessReportModalFooter: React.FC<{
13
+ tool: ToolCall<BusinessReport>;
14
+ }>;
15
+ export declare const BusinessReportModal: React.FC<{
16
+ tool: ToolCall<BusinessReport>;
17
+ }>;
@@ -0,0 +1,38 @@
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
+ export type BusinessReportChart = {
10
+ title?: string;
11
+ summary?: string;
12
+ options: Record<string, any>;
13
+ };
14
+ export type BusinessReport = {
15
+ title: string;
16
+ summary?: string;
17
+ markdown: string;
18
+ charts?: BusinessReportChart[];
19
+ fileName?: string;
20
+ };
21
+ export type BusinessReportRenderState = BusinessReport & {
22
+ generatedAt?: string | number | Date;
23
+ };
24
+ type ReportRenderOptions = {
25
+ locale?: string;
26
+ };
27
+ export declare function normalizeBusinessReportCharts(charts: unknown): BusinessReportChart[];
28
+ export declare function normalizeBusinessReport<T extends Partial<BusinessReportRenderState> | undefined | null>(report: T): Partial<BusinessReportRenderState>;
29
+ export declare function getReportFileName(report: BusinessReport): string;
30
+ export declare function buildReportMarkdown(report: BusinessReportRenderState, options?: ReportRenderOptions): string;
31
+ export declare function buildReportHtml(report: BusinessReportRenderState, options?: {
32
+ autoPrint?: boolean;
33
+ printMode?: boolean;
34
+ locale?: string;
35
+ }): Promise<string>;
36
+ export declare function downloadTextFile(filename: string, content: string, mimeType: string): void;
37
+ export declare function printReport(report: BusinessReportRenderState, options?: ReportRenderOptions): Promise<boolean>;
38
+ export {};
@@ -7,5 +7,6 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare const AIEmployeeSwitcher: React.FC;
11
- export declare const SenderHeader: React.FC;
10
+ export declare const AIEmployeeSwitcher: React.FC<{
11
+ disabled?: boolean;
12
+ }>;
@@ -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
+ import React from 'react';
10
+ export declare const HintMessageHeader: React.FC;
@@ -7,4 +7,6 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare const ModelSwitcher: React.FC;
10
+ export declare const ModelSwitcher: React.FC<{
11
+ disabled?: boolean;
12
+ }>;
@@ -7,4 +7,6 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare const SearchSwitch: React.FC;
10
+ export declare const SearchSwitch: React.FC<{
11
+ disabled?: boolean;
12
+ }>;
@@ -7,4 +7,6 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare const Upload: React.FC;
10
+ export declare const Upload: React.FC<{
11
+ disabled?: boolean;
12
+ }>;
@@ -0,0 +1,27 @@
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
+ import React from 'react';
10
+ import { ModelRef } from '../stores/chat-box';
11
+ type UseConversationsListOptions = {
12
+ onOpenConversation: (sessionId: string, username?: string, model?: ModelRef) => void;
13
+ };
14
+ export declare const useConversationsList: ({ onOpenConversation }: UseConversationsListOptions) => {
15
+ currentConversation: string;
16
+ items: import("@ant-design/x/es/conversations").Conversation[];
17
+ onSelectConversation: (sessionId: string) => void;
18
+ attachLastConversationObserver: (container: HTMLDivElement | null) => void;
19
+ openDeleteConfirm: (sessionId: string) => void;
20
+ runSearch: (keyword?: string) => void;
21
+ refresh: () => void;
22
+ };
23
+ export type ConversationsListController = ReturnType<typeof useConversationsList>;
24
+ export declare const ConversationsList: React.FC<{
25
+ controller: ConversationsListController;
26
+ }>;
27
+ export {};
@@ -0,0 +1,33 @@
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
+ import React from 'react';
10
+ import { ModelRef } from '../stores/chat-box';
11
+ type UseWorkflowTasksListOptions = {
12
+ onOpenConversation: (sessionId: string, username?: string, model?: ModelRef) => void;
13
+ };
14
+ export declare const useWorkflowTasksList: ({ onOpenConversation }: UseWorkflowTasksListOptions) => {
15
+ currentConversation: string;
16
+ selectedConversation: string;
17
+ loading: boolean;
18
+ workflowTasks: import("./common").WorkflowTask[];
19
+ unreadCount: number;
20
+ selectedJobStatus: number;
21
+ onSelectWorkflowTask: (sessionId: string) => Promise<void>;
22
+ runSearch: (nextKeyword?: string) => void;
23
+ runJobStatusFilter: (nextJobStatus?: number) => void;
24
+ refresh: () => void;
25
+ hasMore: boolean;
26
+ loadMoreWorkflowTasks: () => Promise<void>;
27
+ lastWorkflowTaskRef: (node: HTMLElement) => void;
28
+ };
29
+ export type WorkflowTasksListController = ReturnType<typeof useWorkflowTasksList>;
30
+ export declare const WorkflowTasksList: React.FC<{
31
+ controller: WorkflowTasksListController;
32
+ }>;
33
+ export {};
@@ -0,0 +1,43 @@
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
+ import React from 'react';
10
+ export type WorkflowTask = {
11
+ id: string;
12
+ sessionId: string;
13
+ executionId?: number | string;
14
+ workflowTitle: string;
15
+ nodeTitle: string;
16
+ status: string;
17
+ jobStatus?: number;
18
+ read?: boolean;
19
+ config?: {
20
+ username?: string;
21
+ [key: string]: any;
22
+ } | null;
23
+ createdAt?: string;
24
+ updatedAt?: string;
25
+ };
26
+ export type WorkflowTaskOutputSchema = {
27
+ title?: string;
28
+ type?: string;
29
+ properties?: Record<string, WorkflowTaskOutputSchema>;
30
+ };
31
+ export type WorkflowTaskDetail = WorkflowTask & {
32
+ readonly?: boolean;
33
+ structuredOutputSchema?: WorkflowTaskOutputSchema | string | null;
34
+ config?: {
35
+ username?: string;
36
+ model?: {
37
+ llmService: string;
38
+ model: string;
39
+ } | null;
40
+ [key: string]: any;
41
+ } | null;
42
+ };
43
+ export declare const ListEmpty: React.FC;
@@ -0,0 +1,9 @@
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
+ export * from './Conversations';
@@ -6,11 +6,13 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { AIEmployee, SendOptions, TriggerTaskOptions } from '../../types';
9
+ import { AIEmployee, ClearOptions, SendOptions, TriggerTaskOptions } from '../../types';
10
10
  export declare const useChatBoxActions: () => {
11
- clear: () => void;
11
+ clear: (options?: ClearOptions) => void;
12
12
  send: (options: SendOptions) => void;
13
13
  startNewConversation: () => void;
14
- switchAIEmployee: (aiEmployee: AIEmployee) => void;
14
+ switchAIEmployee: (aiEmployee: AIEmployee, options?: {
15
+ clear?: ClearOptions;
16
+ }) => void;
15
17
  triggerTask: (options: TriggerTaskOptions) => Promise<void>;
16
18
  };
@@ -0,0 +1,27 @@
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
+ import { WorkflowTask, WorkflowTaskDetail } from '../conversations/common';
10
+ export declare const useWorkflowTasks: () => {
11
+ loading: boolean;
12
+ workflowTasks: WorkflowTask[];
13
+ unreadCount: number;
14
+ selectedJobStatus: number;
15
+ runSearch: (nextKeyword?: string) => void;
16
+ runJobStatusFilter: (nextJobStatus?: number) => void;
17
+ refresh: () => void;
18
+ hasMore: boolean;
19
+ loadMoreWorkflowTasks: () => Promise<void>;
20
+ lastWorkflowTaskRef: (node: HTMLElement) => void;
21
+ acceptWorkflowTask: (sessionId: string) => Promise<void>;
22
+ getWorkflowTaskBySession: (sessionId: string) => Promise<WorkflowTaskDetail>;
23
+ updateReadonly: (sessionId: string) => Promise<void>;
24
+ currentWorkflowTask: WorkflowTaskDetail;
25
+ setCurrentWorkflowTask: (workflowTask: WorkflowTaskDetail | ((prev?: WorkflowTaskDetail) => WorkflowTaskDetail)) => void;
26
+ setSelectedJobStatus: (selectedJobStatus: number) => void;
27
+ };
@@ -7,5 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare function replaceTagBlockByIndex(input: string, tagName: string, indexToReplace: number, newInnerStr: string): string;
11
- export declare const Echarts: (props: any) => React.JSX.Element;
10
+ export declare const Echarts: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
@@ -8,6 +8,6 @@
8
8
  */
9
9
  import React from 'react';
10
10
  import { Message } from '../../types';
11
- export declare const Markdown: React.FC<{
11
+ export declare const Markdown: React.NamedExoticComponent<{
12
12
  message: Message['content'];
13
13
  }>;
@@ -12,6 +12,7 @@ import { Bubble } from '@ant-design/x';
12
12
  import { AIEmployee } from '../types';
13
13
  export declare const defaultRoles: GetProp<typeof Bubble.List, 'roles'>;
14
14
  export declare const aiEmployeeRole: (aiEmployee: AIEmployee) => {
15
+ nickname: string;
15
16
  placement: string;
16
17
  typing: {
17
18
  step: number;
@@ -36,6 +36,8 @@ interface ChatBoxState {
36
36
  showCodeHistory: boolean;
37
37
  model?: ModelRef | null;
38
38
  showDebugPanel: boolean;
39
+ readonly: boolean;
40
+ isShowSenderHint: boolean;
39
41
  }
40
42
  interface ChatBoxActions {
41
43
  setOpen: (open: boolean) => void;
@@ -56,6 +58,8 @@ interface ChatBoxActions {
56
58
  setShowCodeHistory: (show: boolean) => void;
57
59
  setModel: (model: ModelRef | null) => void;
58
60
  setShowDebugPanel: (show: boolean) => void;
61
+ setReadonly: (readonly: boolean) => void;
62
+ setShowSenderHint: (show: boolean) => void;
59
63
  }
60
64
  export declare const useChatBoxStore: {
61
65
  (): ChatBoxState & ChatBoxActions;
@@ -82,6 +86,8 @@ export declare const useChatBoxStore: {
82
86
  showCodeHistory: () => boolean;
83
87
  model?: () => ModelRef;
84
88
  showDebugPanel: () => boolean;
89
+ readonly: () => boolean;
90
+ isShowSenderHint: () => boolean;
85
91
  setOpen: () => (open: boolean) => void;
86
92
  setExpanded: () => (expanded: boolean) => void;
87
93
  setCollapsed: () => (collapsed: boolean) => void;
@@ -100,6 +106,8 @@ export declare const useChatBoxStore: {
100
106
  setShowCodeHistory: () => (show: boolean) => void;
101
107
  setModel: () => (model: ModelRef | null) => void;
102
108
  setShowDebugPanel: () => (show: boolean) => void;
109
+ setReadonly: () => (readonly: boolean) => void;
110
+ setShowSenderHint: () => (show: boolean) => void;
103
111
  };
104
112
  };
105
113
  export {};
@@ -12,12 +12,14 @@ interface ChatConversationsState {
12
12
  conversations: Conversation[];
13
13
  keyword: string;
14
14
  webSearch: boolean;
15
+ conversationSegmented: string;
15
16
  }
16
17
  interface ChatConversationsActions {
17
18
  setCurrentConversation: (id: string | undefined) => void;
18
19
  setKeyword: (keyword: string) => void;
19
20
  setConversations: (conversations: Conversation[] | ((prev: Conversation[]) => Conversation[])) => void;
20
21
  setWebSearch: (webSearch: boolean) => void;
22
+ setConversationSegmented: (conversationSegmented: string) => void;
21
23
  }
22
24
  export declare const useChatConversationsStore: {
23
25
  (): ChatConversationsState & ChatConversationsActions;
@@ -28,10 +30,12 @@ export declare const useChatConversationsStore: {
28
30
  conversations: () => Conversation[];
29
31
  keyword: () => string;
30
32
  webSearch: () => boolean;
33
+ conversationSegmented: () => string;
31
34
  setCurrentConversation: () => (id: string | undefined) => void;
32
35
  setKeyword: () => (keyword: string) => void;
33
36
  setConversations: () => (conversations: Conversation[] | ((prev: Conversation[]) => Conversation[])) => void;
34
37
  setWebSearch: () => (webSearch: boolean) => void;
38
+ setConversationSegmented: () => (conversationSegmented: string) => void;
35
39
  };
36
40
  };
37
41
  export {};
@@ -41,6 +41,10 @@ export interface ChatMessagesActions {
41
41
  setCurrentEditorRefUid: (uid: string) => void;
42
42
  setWebSearching: (webSearching: WebSearching) => void;
43
43
  setFlowContext: (ctx: any) => void;
44
+ addSubAgentMessage: (sessionId: string, msg: Message) => void;
45
+ addSubAgentMessages: (sessionId: string, msgs: Message[]) => void;
46
+ updateLastSubAgentMessage: (sessionId: string, username: string, updater: (msg: Message) => Message) => void;
47
+ updateSubAgentConversationStatus: (sessionId: string, status: 'pending' | 'completed') => void;
44
48
  }
45
49
  export declare const useChatMessagesStore: {
46
50
  (): ChatMessagesState & ChatMessagesActions;
@@ -77,6 +81,10 @@ export declare const useChatMessagesStore: {
77
81
  setCurrentEditorRefUid: () => (uid: string) => void;
78
82
  setWebSearching: () => (webSearching: WebSearching) => void;
79
83
  setFlowContext: () => (ctx: any) => void;
84
+ addSubAgentMessage: () => (sessionId: string, msg: Message) => void;
85
+ addSubAgentMessages: () => (sessionId: string, msgs: Message[]) => void;
86
+ updateLastSubAgentMessage: () => (sessionId: string, username: string, updater: (msg: Message) => Message) => void;
87
+ updateSubAgentConversationStatus: () => (sessionId: string, status: 'pending' | 'completed') => void;
80
88
  };
81
89
  };
82
90
  export {};
@@ -0,0 +1,45 @@
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
+ import { WorkflowTask, WorkflowTaskDetail } from '../conversations/common';
10
+ type WorkflowTasksState = {
11
+ workflowTasks: WorkflowTask[];
12
+ currentWorkflowTask?: WorkflowTaskDetail;
13
+ unreadCount: number;
14
+ loading: boolean;
15
+ keyword: string;
16
+ selectedJobStatus?: number;
17
+ };
18
+ type WorkflowTasksActions = {
19
+ setWorkflowTasks: (workflowTasks: WorkflowTask[] | ((prev: WorkflowTask[]) => WorkflowTask[])) => void;
20
+ setCurrentWorkflowTask: (workflowTask: WorkflowTaskDetail | undefined | ((prev?: WorkflowTaskDetail) => WorkflowTaskDetail | undefined)) => void;
21
+ setUnreadCount: (unreadCount: number | ((prev: number) => number)) => void;
22
+ setLoading: (loading: boolean) => void;
23
+ setKeyword: (keyword: string) => void;
24
+ setSelectedJobStatus: (selectedJobStatus: number | undefined) => void;
25
+ };
26
+ export declare const useWorkflowTasksStore: {
27
+ (): WorkflowTasksState & WorkflowTasksActions;
28
+ <U>(selector: (state: WorkflowTasksState & WorkflowTasksActions) => U): U;
29
+ } & import("zustand").StoreApi<WorkflowTasksState & WorkflowTasksActions> & {
30
+ use: {
31
+ workflowTasks: () => WorkflowTask[];
32
+ currentWorkflowTask?: () => WorkflowTaskDetail;
33
+ unreadCount: () => number;
34
+ loading: () => boolean;
35
+ keyword: () => string;
36
+ selectedJobStatus?: () => number;
37
+ setWorkflowTasks: () => (workflowTasks: WorkflowTask[] | ((prev: WorkflowTask[]) => WorkflowTask[])) => void;
38
+ setCurrentWorkflowTask: () => (workflowTask: WorkflowTaskDetail | ((prev?: WorkflowTaskDetail) => WorkflowTaskDetail | undefined)) => void;
39
+ setUnreadCount: () => (unreadCount: number | ((prev: number) => number)) => void;
40
+ setLoading: () => (loading: boolean) => void;
41
+ setKeyword: () => (keyword: string) => void;
42
+ setSelectedJobStatus: () => (selectedJobStatus: number | undefined) => void;
43
+ };
44
+ };
45
+ export {};
@@ -7,25 +7,35 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { Application } from '@nocobase/client';
10
- import { ContextItem, TaskMessage } from '../types';
10
+ import { ContextItem, SkillSettings, TaskMessage, Message } from '../types';
11
11
  export declare const parseTask: (task: {
12
12
  message: TaskMessage;
13
13
  webSearch?: boolean;
14
14
  model?: any;
15
- skillSettings?: {
16
- skills?: string[];
17
- };
15
+ skillSettings?: SkillSettings;
18
16
  }) => Promise<{
19
17
  userMessage: any;
20
18
  systemMessage: string;
21
19
  attachments: any[];
22
20
  workContext: ContextItem[];
23
- skillSettings: {
24
- skills?: string[];
25
- };
21
+ skillSettings: SkillSettings;
26
22
  webSearch: boolean;
27
23
  model: any;
28
24
  }>;
29
25
  export declare const parseWorkContext: (app: Application, workContext: ContextItem[]) => Promise<any[]>;
30
26
  export declare const UNKNOWN_FILE_ICON: string;
31
27
  export declare function getFileIconByExt(fileName: string): string;
28
+ export declare const formatConversationDuration: (durationMs?: number) => string;
29
+ export type RenderedItem = {
30
+ type: 'message';
31
+ message: Message;
32
+ isRoot: boolean;
33
+ } | {
34
+ type: 'conversation-group';
35
+ key: string;
36
+ roleName?: string;
37
+ status?: 'pending' | 'completed';
38
+ durationMs?: number;
39
+ items: RenderedItem[];
40
+ };
41
+ export declare const flattenMessages: (messages?: Message[], isRoot?: boolean) => RenderedItem[];
@@ -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
+ import { ToolsOptions } from '@nocobase/client';
10
+ export declare const dispatchSubAgentTaskTool: [string, ToolsOptions];
@@ -0,0 +1,21 @@
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
+ import React from 'react';
10
+ import { ToolsUIProperties } from '@nocobase/client';
11
+ export declare const SubAgentDispatchCard: React.FC<ToolsUIProperties<{
12
+ username?: string;
13
+ question?: string;
14
+ }>>;
15
+ export type SubAgentDisplayInfo = {
16
+ username: string;
17
+ nickname: string;
18
+ position?: string;
19
+ avatar?: string;
20
+ matched: boolean;
21
+ };
@@ -24,15 +24,18 @@ export type AIEmployee = {
24
24
  prompt?: string;
25
25
  };
26
26
  skillSettings?: {
27
- skills?: {
27
+ tools?: {
28
28
  name: string;
29
+ autoCall?: boolean;
29
30
  }[];
31
+ skills?: string[];
30
32
  };
31
33
  builtIn?: boolean;
32
34
  webSearch?: boolean;
33
35
  toolsConflict?: boolean;
34
36
  };
35
37
  export type SkillSettings = {
38
+ tools?: string[];
36
39
  skills?: string[];
37
40
  };
38
41
  export type Conversation = {
@@ -61,6 +64,7 @@ export type MessageType = 'text' | 'greeting';
61
64
  export type Message = Omit<BubbleProps, 'content'> & {
62
65
  key?: string | number;
63
66
  role?: string;
67
+ createdAt?: string | Date;
64
68
  content: {
65
69
  content: any;
66
70
  ref?: React.MutableRefObject<any>;
@@ -87,6 +91,13 @@ export type Message = Omit<BubbleProps, 'content'> & {
87
91
  status: string;
88
92
  content: string;
89
93
  };
94
+ subAgentConversations?: {
95
+ sessionId: string;
96
+ toolCallId?: string;
97
+ status?: 'pending' | 'completed';
98
+ messages: Message[];
99
+ }[];
100
+ from?: 'main-agent' | 'sub-agent';
90
101
  };
91
102
  };
92
103
  export type Action = {
@@ -94,6 +105,17 @@ export type Action = {
94
105
  content: string;
95
106
  onClick: (content: string) => void;
96
107
  };
108
+ export type ClearOptions = {
109
+ sender?: boolean;
110
+ systemMessage?: boolean;
111
+ attachments?: boolean;
112
+ contextItems?: boolean;
113
+ taskVariables?: boolean;
114
+ toolModal?: boolean;
115
+ activeTool?: boolean;
116
+ activeMessageId?: boolean;
117
+ skillSettings?: boolean;
118
+ };
97
119
  export type SendOptions = {
98
120
  sessionId?: string;
99
121
  aiEmployee?: AIEmployee;
@@ -128,9 +150,7 @@ export type Task = {
128
150
  title?: string;
129
151
  message: TaskMessage;
130
152
  autoSend?: boolean;
131
- skillSettings?: {
132
- skills?: string[];
133
- };
153
+ skillSettings?: SkillSettings;
134
154
  webSearch?: boolean;
135
155
  model?: {
136
156
  llmService: string;
@@ -6,10 +6,5 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- declare const _default: {
10
- 'en-US': {
11
- name: string;
12
- content: string;
13
- }[];
14
- };
15
- export default _default;
9
+ import { ToolsOptions } from '@nocobase/client';
10
+ export declare const aiEmployeeWorkflowTaskOutputTool: [string, ToolsOptions];
@@ -0,0 +1,11 @@
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
+ import React from 'react';
10
+ import { ToolsUIProperties } from '@nocobase/client';
11
+ export declare const WorkflowTaskOutputCard: React.FC<ToolsUIProperties<Record<string, any>>>;