@nocobase/plugin-ai 2.1.0-beta.15 → 2.1.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/ai-employees/atlas/index.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/ai-coding/prompt.js → ai/ai-employees/atlas/index.js} +29 -20
- package/dist/ai/ai-employees/atlas/prompt.md +84 -0
- package/dist/ai/ai-employees/dara.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/data-visualization/prompt.js → ai/ai-employees/dara.js} +21 -13
- package/dist/ai/ai-employees/dex.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/data-organizer/prompt.js → ai/ai-employees/dex.js} +15 -7
- package/dist/ai/ai-employees/ellis.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/email-assistant/prompt.js → ai/ai-employees/ellis.js} +19 -11
- package/dist/ai/ai-employees/lexi.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/translator/prompt.js → ai/ai-employees/lexi.js} +15 -7
- package/dist/ai/ai-employees/vera.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/research-analyst/prompt.js → ai/ai-employees/vera.js} +16 -8
- package/dist/ai/ai-employees/viz.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/insights-analyst/prompt.js → ai/ai-employees/viz.js} +15 -7
- package/dist/ai/skills/business-analysis-report/SKILLS.md +88 -0
- package/dist/{server/ai-employees/built-in/ai-coding/prompt.d.ts → ai/skills/business-analysis-report/tools/businessReportGenerator.d.ts} +1 -3
- package/dist/ai/skills/business-analysis-report/tools/businessReportGenerator.js +98 -0
- package/dist/ai/skills/document-search/SKILLS.md +69 -0
- package/dist/ai/tools/chartGenerator.js +15 -3
- package/dist/ai/tools/formFiller.js +13 -2
- package/dist/{server/ai-employees/built-in/data-modeling/prompt.d.ts → ai/tools/getSkill.d.ts} +1 -3
- package/dist/{server/ai-employees/built-in/data-modeling/index.js → ai/tools/getSkill.js} +39 -32
- package/dist/{server/ai-employees/built-in/data-organizer/prompt.d.ts → ai/tools/knowledge-base-retrieve.d.ts} +1 -3
- package/dist/ai/tools/knowledge-base-retrieve.js +94 -0
- package/dist/{server/ai-employees/built-in/data-visualization/prompt.d.ts → ai/tools/sub-agents/dispatch-sub-agent-task.d.ts} +1 -3
- package/dist/ai/tools/sub-agents/dispatch-sub-agent-task.js +108 -0
- package/dist/ai/tools/sub-agents/get-ai-employee.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/translator/profile.js → ai/tools/sub-agents/get-ai-employee.js} +28 -21
- package/dist/ai/tools/sub-agents/list-ai-employees.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/email-assistant/profile.js → ai/tools/sub-agents/list-ai-employees.js} +25 -21
- package/dist/ai/tools/sub-agents/shared.d.ts +33 -0
- package/dist/ai/tools/sub-agents/shared.js +169 -0
- package/dist/ai/tools/suggestions.js +15 -4
- package/dist/client/170.d98eacdc00d9d527.js +10 -0
- package/dist/client/228.b18148eb1009d2fb.js +10 -0
- package/dist/client/280.029428b83d62155f.js +10 -0
- package/dist/client/290.0888139e33c9b7cb.js +10 -0
- package/dist/client/{524.954f96ec4fc2fd7a.js → 331.d547c95410476a69.js} +1 -1
- package/dist/client/343.83f7d96664e4e038.js +10 -0
- package/dist/client/406.15c09d98faa2ccf1.js +10 -0
- package/dist/client/428.e9f38da3b0d8b498.js +10 -0
- package/dist/client/486.77c26e2e7f8daf28.js +10 -0
- package/dist/client/502.2b4a51e0a8122e52.js +10 -0
- package/dist/client/525.33a9c8ec28be4ec4.js +10 -0
- package/dist/client/559.133d286a0a0a1d93.js +10 -0
- package/dist/client/{91.90e7098b7fbd5d00.js → 561.776886c5308e3c26.js} +1 -1
- package/dist/client/580.e75f97fb883ad042.js +10 -0
- package/dist/client/597.aa363881a325b5c0.js +10 -0
- package/dist/client/604.de96f3ec4d471afd.js +10 -0
- package/dist/client/614.aa766080f6b99aab.js +10 -0
- package/dist/client/646.ef9d7c2ea8641044.js +10 -0
- package/dist/client/687.224e569a99cae4bb.js +10 -0
- package/dist/client/699.57c0a1acb723202a.js +10 -0
- package/dist/client/711.266b8f1c520d467a.js +10 -0
- package/dist/client/758.a9741e81911e53c3.js +10 -0
- package/dist/client/768.973ce32e15099a48.js +10 -0
- package/dist/client/792.ae8ad1fcae9fd974.js +10 -0
- package/dist/client/820.6a26239ea96c075a.js +10 -0
- package/dist/client/832.0cf69e3f43c320b2.js +10 -0
- package/dist/client/927.ff5cd05b14901ae6.js +10 -0
- package/dist/client/ai-employees/admin/SkillSettings.d.ts +7 -5
- package/dist/client/ai-employees/admin/ToolsSettings.d.ts +17 -0
- package/dist/client/ai-employees/admin/mcp/MCPSettings.d.ts +10 -0
- package/dist/client/ai-employees/admin/mcp/MCPToolsList.d.ts +19 -0
- package/dist/client/ai-employees/admin/mcp/context.d.ts +15 -0
- package/dist/client/ai-employees/admin/mcp/schemas.d.ts +1286 -0
- package/dist/client/ai-employees/built-in/utils.d.ts +1 -0
- package/dist/client/ai-employees/business-report/tools/index.d.ts +10 -0
- package/dist/client/ai-employees/business-report/ui/BusinessReportCard.d.ts +12 -0
- package/dist/client/ai-employees/business-report/ui/BusinessReportModal.d.ts +17 -0
- package/dist/client/ai-employees/business-report/ui/report-utils.d.ts +38 -0
- package/dist/client/ai-employees/chatbox/AIEmployeeSwitch.d.ts +3 -2
- package/dist/client/ai-employees/chatbox/HintMessageHeader.d.ts +10 -0
- package/dist/client/ai-employees/chatbox/ModelSwitcher.d.ts +3 -1
- package/dist/client/ai-employees/chatbox/SearchSwitch.d.ts +3 -1
- package/dist/client/ai-employees/chatbox/Upload.d.ts +3 -1
- package/dist/client/ai-employees/chatbox/conversations/ConversationsList.d.ts +27 -0
- package/dist/client/ai-employees/chatbox/conversations/WorkflowTasksList.d.ts +31 -0
- package/dist/client/ai-employees/chatbox/conversations/common.d.ts +43 -0
- package/dist/client/ai-employees/chatbox/conversations/index.d.ts +9 -0
- package/dist/client/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +5 -3
- package/dist/client/ai-employees/chatbox/hooks/useWorkflowTasks.d.ts +24 -0
- package/dist/client/ai-employees/chatbox/markdown/ECharts.d.ts +1 -2
- package/dist/client/ai-employees/chatbox/markdown/Markdown.d.ts +1 -1
- package/dist/client/ai-employees/chatbox/roles.d.ts +1 -0
- package/dist/client/ai-employees/chatbox/stores/chat-box.d.ts +8 -0
- package/dist/client/ai-employees/chatbox/stores/chat-conversations.d.ts +4 -0
- package/dist/client/ai-employees/chatbox/stores/chat-messages.d.ts +8 -0
- package/dist/client/ai-employees/chatbox/stores/workflow-tasks.d.ts +41 -0
- package/dist/client/ai-employees/chatbox/utils.d.ts +17 -7
- package/dist/client/ai-employees/sub-agents/tools/index.d.ts +10 -0
- package/dist/client/ai-employees/sub-agents/ui/SubAgentDispatchCard.d.ts +21 -0
- package/dist/client/ai-employees/types.d.ts +24 -4
- package/dist/{server/ai-employees/built-in/ai-coding/document/example/js-filter → client/ai-employees/workflow-tasks/tools}/index.d.ts +2 -7
- package/dist/client/ai-employees/workflow-tasks/ui/WorkflowTaskOutputCard.d.ts +11 -0
- package/dist/client/components/ListCollapse.d.ts +28 -0
- package/dist/client/index.js +7 -7
- package/dist/client/manager/ai-manager.d.ts +4 -23
- package/dist/client/repositories/AIConfigRepository.d.ts +11 -3
- package/dist/client/workflow/nodes/employee/components/AIEmployeeSelect.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/assigness.d.ts +11 -0
- package/dist/client/workflow/nodes/employee/components/file-inputs.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/message-inputs.d.ts +12 -0
- package/dist/client/workflow/nodes/employee/components/model-options.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/skill-settings.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/structured-output.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/users-select.d.ts +15 -0
- package/dist/client/workflow/nodes/employee/components/web-search-options.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/configuration.d.ts +12 -0
- package/dist/client/workflow/nodes/employee/flow-models/feedback.d.ts +13 -0
- package/dist/client/workflow/nodes/employee/flow-models/task.d.ts +13 -0
- package/dist/client/workflow/nodes/employee/index.d.ts +7 -31
- package/dist/collections/ai-employees.js +2 -1
- package/dist/collections/ai-mcp-clients.d.ts +51 -0
- package/dist/collections/ai-mcp-clients.js +111 -0
- package/dist/externalVersion.js +17 -15
- package/dist/locale/en-US.json +136 -8
- package/dist/locale/zh-CN.json +138 -9
- package/dist/node_modules/fast-glob/out/index.js +8 -8
- package/dist/node_modules/fast-glob/package.json +1 -1
- package/dist/node_modules/flexsearch/dist/flexsearch.bundle.min.js +2 -2
- package/dist/node_modules/flexsearch/package.json +1 -1
- package/dist/node_modules/fs-extra/lib/index.js +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.js +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/openai/index.js +1 -1
- package/dist/node_modules/openai/package.json +1 -1
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/ai-employees/ai-conversations.d.ts +70 -0
- package/dist/server/ai-employees/ai-conversations.js +325 -0
- package/dist/server/ai-employees/ai-employee.d.ts +100 -19
- package/dist/server/ai-employees/ai-employee.js +484 -261
- package/dist/server/ai-employees/ai-knowledge-base.d.ts +28 -0
- package/dist/server/ai-employees/ai-knowledge-base.js +167 -0
- package/dist/server/ai-employees/middleware/conversation.d.ts +2 -0
- package/dist/server/ai-employees/middleware/conversation.js +38 -5
- package/dist/server/ai-employees/middleware/index.d.ts +2 -0
- package/dist/server/ai-employees/middleware/index.js +5 -1
- package/dist/server/ai-employees/middleware/skill-tools.d.ts +12 -0
- package/dist/server/ai-employees/middleware/skill-tools.js +88 -0
- package/dist/server/ai-employees/middleware/tools.js +37 -10
- package/dist/server/ai-employees/middleware/workflow-history.d.ts +22 -0
- package/dist/server/ai-employees/middleware/workflow-history.js +173 -0
- package/dist/server/ai-employees/prompts.d.ts +16 -1
- package/dist/server/ai-employees/prompts.js +37 -1
- package/dist/server/ai-employees/sub-agents/dispatcher.d.ts +36 -0
- package/dist/server/ai-employees/sub-agents/dispatcher.js +225 -0
- package/dist/server/ai-employees/sub-agents/index.d.ts +9 -0
- package/dist/server/{migrations/20250923221107-setup-build-in.js → ai-employees/sub-agents/index.js} +9 -13
- package/dist/server/ai-employees/templates/form-assistant.d.ts +2 -2
- package/dist/server/ai-employees/templates/form-assistant.js +2 -2
- package/dist/server/ai-employees/utils.js +2 -2
- package/dist/server/collections/ai-conversations.js +18 -0
- 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
- package/dist/server/{ai-employees/built-in/nocobase-assistant/index.js → collections/ai-mcp-clients.js} +12 -13
- package/dist/server/{ai-employees/built-in/ai-coding/document/basic/flow-resource.d.ts → collections/ai-skills.d.ts} +1 -4
- package/dist/server/{ai-employees/built-in/email-assistant/index.js → collections/ai-skills.js} +46 -23
- 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
- package/dist/server/collections/ai-workflow-tasks.js +112 -0
- 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
- package/dist/server/collections/users-ai-workflow-tasks.js +44 -0
- package/dist/server/llm-providers/anthropic.d.ts +1 -0
- package/dist/server/llm-providers/anthropic.js +2 -1
- package/dist/server/llm-providers/dashscope.d.ts +1 -0
- package/dist/server/llm-providers/deepseek.d.ts +1 -0
- package/dist/server/llm-providers/google-genai.d.ts +1 -0
- package/dist/server/llm-providers/google-genai.js +2 -1
- package/dist/server/llm-providers/kimi/provider.d.ts +1 -0
- package/dist/server/llm-providers/openai/responses.d.ts +1 -0
- package/dist/server/llm-providers/openai/responses.js +2 -1
- package/dist/server/llm-providers/provider.d.ts +1 -10
- package/dist/server/llm-providers/provider.js +3 -34
- package/dist/server/manager/ai-coding-manager.d.ts +1 -2
- package/dist/server/manager/ai-coding-manager.js +0 -41
- package/dist/server/manager/ai-context-datasource-manager.js +30 -1
- package/dist/server/manager/built-in-manager.d.ts +2 -4
- package/dist/server/manager/built-in-manager.js +8 -117
- package/dist/server/migrations/20260306000001-migrate-skill-settings-tools.js +68 -0
- package/dist/server/migrations/20260319000000-add-ai-conversations-from.d.ts +14 -0
- package/dist/server/migrations/20260319000000-add-ai-conversations-from.js +63 -0
- package/dist/server/plugin.d.ts +6 -1
- package/dist/server/plugin.js +31 -8
- package/dist/server/resource/aiConversations.js +112 -188
- package/dist/server/resource/aiEmployees.js +5 -7
- package/dist/server/resource/aiMcpClients.d.ts +11 -0
- package/dist/server/resource/aiMcpClients.js +78 -0
- package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/index.d.ts → resource/aiSkills.d.ts} +3 -7
- package/dist/server/resource/aiSkills.js +71 -0
- package/dist/server/resource/aiTools.js +4 -6
- package/dist/server/resource/aiWorkflowTasks.d.ts +12 -0
- package/dist/server/resource/aiWorkflowTasks.js +290 -0
- package/dist/server/tools/docs.js +4 -3
- package/dist/server/tools/workflow-caller.js +1 -0
- package/dist/server/types/ai-chat-conversation.type.d.ts +8 -2
- package/dist/server/types/ai-message.type.d.ts +7 -0
- package/dist/server/utils.d.ts +3 -0
- package/dist/server/utils.js +28 -3
- package/dist/server/workflow/nodes/employee/files.d.ts +16 -0
- package/dist/server/workflow/nodes/employee/files.js +125 -0
- package/dist/server/workflow/nodes/employee/handler.d.ts +11 -0
- package/dist/server/workflow/nodes/employee/handler.js +107 -0
- package/dist/server/workflow/nodes/employee/index.d.ts +17 -0
- package/dist/server/workflow/nodes/employee/index.js +391 -0
- package/dist/server/workflow/nodes/employee/tools.d.ts +12 -0
- package/dist/server/workflow/nodes/employee/tools.js +133 -0
- package/dist/server/workflow/nodes/employee/types.d.ts +35 -0
- package/dist/server/workflow/nodes/employee/types.js +24 -0
- package/dist/server/workflow/utils.d.ts +14 -0
- package/dist/server/workflow/utils.js +111 -0
- package/package.json +4 -2
- package/dist/client/107.64d9efa24d6b9143.js +0 -10
- package/dist/client/124.768c8aa5d6e6b461.js +0 -10
- package/dist/client/159.d52107c7a34ce2da.js +0 -10
- package/dist/client/192.0419770b69678994.js +0 -10
- package/dist/client/204.91be8cfc54d91a59.js +0 -10
- package/dist/client/238.9f784a7cdb751999.js +0 -10
- package/dist/client/263.6e1dfb1cbb1964f5.js +0 -10
- package/dist/client/35.5ee7503d9c09daa8.js +0 -10
- package/dist/client/47.6bd245f2140efd24.js +0 -10
- package/dist/client/481.03b3d2306d409933.js +0 -10
- package/dist/client/586.6a1510cabaa84f23.js +0 -10
- package/dist/client/650.8871a07b31c307ea.js +0 -10
- package/dist/client/755.e295bbd2b2a1cc21.js +0 -10
- package/dist/client/772.d51f683c55e18dd4.js +0 -10
- package/dist/client/870.84187dcb8c89b4dc.js +0 -10
- package/dist/client/933.baab3aa75f30e020.js +0 -10
- package/dist/client/987.3aee964e7f406939.js +0 -10
- package/dist/server/ai-employees/built-in/ai-coding/document/basic/flow-resource.js +0 -256
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/index.js +0 -48
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_accounts_en.js +0 -452
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_contacts_en.js +0 -363
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_opportunities_en.js +0 -270
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_quotations_en.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_quotations_en.js +0 -219
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_tickets_en.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_tickets_en.js +0 -409
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/accounts_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/accounts_filter_ant_style.js +0 -324
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/contacts_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/contacts_filter_ant_style.js +0 -309
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/index.js +0 -50
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/leads_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/leads_filter_ant_style.js +0 -345
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/opportunities_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/opportunities_filter_ant_style.js +0 -381
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/product_categories_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/product_categories_ant_style.js +0 -545
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/tickets_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/tickets_filter_ant_style.js +0 -346
- package/dist/server/ai-employees/built-in/ai-coding/document/js-action.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-action.js +0 -102
- package/dist/server/ai-employees/built-in/ai-coding/document/js-block.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-block.js +0 -314
- package/dist/server/ai-employees/built-in/ai-coding/document/js-column.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-column.js +0 -113
- package/dist/server/ai-employees/built-in/ai-coding/document/js-field.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-field.js +0 -498
- package/dist/server/ai-employees/built-in/ai-coding/document/js-item.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-item.js +0 -184
- package/dist/server/ai-employees/built-in/ai-coding/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/ai-coding/index.js +0 -99
- package/dist/server/ai-employees/built-in/ai-coding/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/ai-coding/profile.js +0 -60
- package/dist/server/ai-employees/built-in/ai-coding/prompt_en.md +0 -110
- package/dist/server/ai-employees/built-in/data-modeling/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/data-modeling/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/data-modeling/profile.js +0 -60
- package/dist/server/ai-employees/built-in/data-modeling/prompt.js +0 -283
- package/dist/server/ai-employees/built-in/data-organizer/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/data-organizer/index.js +0 -63
- package/dist/server/ai-employees/built-in/data-organizer/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/data-organizer/profile.js +0 -60
- package/dist/server/ai-employees/built-in/data-visualization/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/data-visualization/index.js +0 -58
- package/dist/server/ai-employees/built-in/data-visualization/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/data-visualization/profile.js +0 -60
- package/dist/server/ai-employees/built-in/email-assistant/index.d.ts +0 -34
- package/dist/server/ai-employees/built-in/email-assistant/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/email-assistant/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/insights-analyst/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/insights-analyst/index.js +0 -63
- package/dist/server/ai-employees/built-in/insights-analyst/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/insights-analyst/profile.js +0 -60
- package/dist/server/ai-employees/built-in/insights-analyst/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/nocobase-assistant/index.d.ts +0 -34
- package/dist/server/ai-employees/built-in/nocobase-assistant/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/nocobase-assistant/profile.js +0 -60
- package/dist/server/ai-employees/built-in/nocobase-assistant/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/nocobase-assistant/prompt.js +0 -52
- package/dist/server/ai-employees/built-in/research-analyst/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/research-analyst/index.js +0 -63
- package/dist/server/ai-employees/built-in/research-analyst/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/research-analyst/profile.js +0 -60
- package/dist/server/ai-employees/built-in/research-analyst/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/translator/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/translator/index.js +0 -67
- package/dist/server/ai-employees/built-in/translator/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/translator/prompt.d.ts +0 -12
- /package/dist/client/ai-employees/chatbox/{Conversations.d.ts → conversations/Conversations.d.ts} +0 -0
- /package/dist/server/migrations/{20250923221107-setup-build-in.d.ts → 20260306000001-migrate-skill-settings-tools.d.ts} +0 -0
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
var prompt_exports = {};
|
|
28
|
-
__export(prompt_exports, {
|
|
29
|
-
default: () => prompt_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(prompt_exports);
|
|
32
|
-
const typeDefinition = `type CollectionOptions = {
|
|
33
|
-
name: string;
|
|
34
|
-
title?: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
template: 'general' | 'tree' | 'file' | 'calendar' | 'expression';
|
|
37
|
-
fields: FieldOptions[];
|
|
38
|
-
isThrough?: boolean;
|
|
39
|
-
filterTargetKey?: string | string[];
|
|
40
|
-
autoGenId?: boolean;
|
|
41
|
-
createdAt?: boolean;
|
|
42
|
-
updatedAt?: boolean;
|
|
43
|
-
createdBy?: boolean;
|
|
44
|
-
updatedBy?: boolean;
|
|
45
|
-
tree?: 'adjacencyList';
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
type FieldOptions =
|
|
49
|
-
| StringField
|
|
50
|
-
| NumberField
|
|
51
|
-
| BooleanField
|
|
52
|
-
| TextField
|
|
53
|
-
| DateTimeField
|
|
54
|
-
| IdField
|
|
55
|
-
| PasswordField
|
|
56
|
-
| JsonField
|
|
57
|
-
| RelationField;
|
|
58
|
-
|
|
59
|
-
type BaseField = {
|
|
60
|
-
name: string;
|
|
61
|
-
title: string;
|
|
62
|
-
interface:
|
|
63
|
-
| 'id'
|
|
64
|
-
| 'input'
|
|
65
|
-
| 'integer'
|
|
66
|
-
| 'checkbox'
|
|
67
|
-
| 'checkboxGroup'
|
|
68
|
-
| 'color'
|
|
69
|
-
| 'createdAt'
|
|
70
|
-
| 'updatedAt'
|
|
71
|
-
| 'createdBy'
|
|
72
|
-
| 'updatedBy'
|
|
73
|
-
| 'date'
|
|
74
|
-
| 'datetime'
|
|
75
|
-
| 'datetimeNoTz'
|
|
76
|
-
| 'email'
|
|
77
|
-
| 'icon'
|
|
78
|
-
| 'json'
|
|
79
|
-
| 'markdown'
|
|
80
|
-
| 'multipleSelect'
|
|
81
|
-
| 'nanoid'
|
|
82
|
-
| 'number'
|
|
83
|
-
| 'password'
|
|
84
|
-
| 'percent'
|
|
85
|
-
| 'phone'
|
|
86
|
-
| 'radioGroup'
|
|
87
|
-
| 'richText'
|
|
88
|
-
| 'select'
|
|
89
|
-
| 'textarea'
|
|
90
|
-
| 'time'
|
|
91
|
-
| 'unixTimestamp'
|
|
92
|
-
| 'url'
|
|
93
|
-
| 'uuid'
|
|
94
|
-
| 'm2m'
|
|
95
|
-
| 'm2o'
|
|
96
|
-
| 'o2m'
|
|
97
|
-
| 'o2o';
|
|
98
|
-
description?: string;
|
|
99
|
-
hidden?: boolean;
|
|
100
|
-
enum?: { label: string; value: string | number | boolean }[];
|
|
101
|
-
defaultValue?: string | number | boolean;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
type StringField = BaseField & {
|
|
105
|
-
type: 'string';
|
|
106
|
-
length?: number;
|
|
107
|
-
trim?: boolean;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
type NumberField = BaseField & {
|
|
111
|
-
type: 'integer' | 'float' | 'double' | 'decimal';
|
|
112
|
-
precision?: number;
|
|
113
|
-
scale?: number;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
type BooleanField = BaseField & {
|
|
117
|
-
type: 'boolean';
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
type TextField = BaseField & {
|
|
121
|
-
type: 'text';
|
|
122
|
-
length?: 'tiny' | 'medium' | 'long';
|
|
123
|
-
trim?: boolean;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
type DateTimeField = BaseField & {
|
|
127
|
-
type: 'date' | 'datetimeTz' | 'datetimeNoTz' | 'dateOnly' | 'time' | 'unixTimestamp';
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
type IdField = BaseField & {
|
|
131
|
-
type: 'snowflakeId' | 'uid' | 'uuid' | 'nanoid';
|
|
132
|
-
prefix?: string;
|
|
133
|
-
pattern?: string;
|
|
134
|
-
size?: number;
|
|
135
|
-
customAlphabet?: string;
|
|
136
|
-
autoFill?: boolean;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
type PasswordField = BaseField & {
|
|
140
|
-
type: 'password';
|
|
141
|
-
length?: number;
|
|
142
|
-
randomBytesSize?: number;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
type JsonField = BaseField & {
|
|
146
|
-
type: 'json' | 'jsonb';
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
type RelationField =
|
|
150
|
-
| {
|
|
151
|
-
type: 'belongsTo';
|
|
152
|
-
interface: 'm2o';
|
|
153
|
-
name: string;
|
|
154
|
-
title: string;
|
|
155
|
-
target: string;
|
|
156
|
-
foreignKey: string;
|
|
157
|
-
targetKey: string;
|
|
158
|
-
}
|
|
159
|
-
| {
|
|
160
|
-
type: 'hasOne';
|
|
161
|
-
interface: 'o2o';
|
|
162
|
-
name: string;
|
|
163
|
-
title: string;
|
|
164
|
-
target: string;
|
|
165
|
-
sourceKey: string;
|
|
166
|
-
foreignKey: string;
|
|
167
|
-
}
|
|
168
|
-
| {
|
|
169
|
-
type: 'hasMany';
|
|
170
|
-
interface: 'o2m';
|
|
171
|
-
name: string;
|
|
172
|
-
title: string;
|
|
173
|
-
target: string;
|
|
174
|
-
sourceKey: string;
|
|
175
|
-
foreignKey: string;
|
|
176
|
-
}
|
|
177
|
-
| {
|
|
178
|
-
type: 'belongsToMany';
|
|
179
|
-
interface: 'm2m';
|
|
180
|
-
name: string;
|
|
181
|
-
title: string;
|
|
182
|
-
target: string;
|
|
183
|
-
through: string;
|
|
184
|
-
sourceKey: string;
|
|
185
|
-
foreignKey: string;
|
|
186
|
-
otherKey: string;
|
|
187
|
-
targetKey: string;
|
|
188
|
-
};
|
|
189
|
-
`;
|
|
190
|
-
var prompt_default = {
|
|
191
|
-
"en-US": `You are Orin, a professional data modeling assistant for NocoBase.
|
|
192
|
-
|
|
193
|
-
You help users design or improve database schemas using structured collection definitions.
|
|
194
|
-
|
|
195
|
-
When user decisions are required, always invoke the \`suggestions\` tool to provide selectable options, enabling users to reply quickly and continue the conversation.
|
|
196
|
-
|
|
197
|
-
# Global Constraints
|
|
198
|
-
- **Language**: Always respond in the same language as the user's input (e.g., if the user asks in Chinese, reply in Chinese).
|
|
199
|
-
- **Tone**: Professional, precise, and helpful.
|
|
200
|
-
- **Interactivity**: Before proceeding to the next step, always ask for the user\u2019s suggestions before taking any action.
|
|
201
|
-
- **Tool usage**:
|
|
202
|
-
1. When you need to interact with external systems such as retrieving or modifying data and when you require the user to make judgments or decisions. You MUST respond with a tool call.
|
|
203
|
-
2. When using a tool, if the execution result is a failure or an exception occurs during execution, explain the issue to the user in clear and concise language, combining the tool\u2019s feedback with your own description of the problem.
|
|
204
|
-
- **Data standards**: When defining options or enums, the value part must consist only of letters, underscores, and numbers.
|
|
205
|
-
|
|
206
|
-
# Primary workflows
|
|
207
|
-
|
|
208
|
-
Each conversation should focus on only one task flow \u2014 either creating a new schema or editing an existing one \u2014 unless the user explicitly asks to switch.
|
|
209
|
-
|
|
210
|
-
## New Schema Creation Flow
|
|
211
|
-
|
|
212
|
-
When creating a **new data model**, follow this process:
|
|
213
|
-
|
|
214
|
-
1. **Design Tables and Fields**
|
|
215
|
-
- Define the business entities and their attributes.
|
|
216
|
-
|
|
217
|
-
2. **Design Table Relationships**
|
|
218
|
-
- Identify and define relationships between tables: one-to-one, one-to-many, or many-to-many.
|
|
219
|
-
|
|
220
|
-
3. **Output and Confirmation**
|
|
221
|
-
- Output the full schema in **formatted natural language** (do not use pure JSON).
|
|
222
|
-
- On every update or revision, always output the **complete schema definition** so it can be submitted to the system later.
|
|
223
|
-
- Once the user confirms the design, call the \`defineCollections\` tool wth the **Complete schema definition**.
|
|
224
|
-
- Until the tool responds successfully, assume nothing has been saved \u2014 the user may continue editing freely.
|
|
225
|
-
- **Do not say or imply the schema is being or has been created until a tool response is received.**
|
|
226
|
-
|
|
227
|
-
## Existing Schema Editing Flow
|
|
228
|
-
|
|
229
|
-
When modifying **existing models**, follow this procedure:
|
|
230
|
-
|
|
231
|
-
1. **Clarify What Needs to Be Changed**
|
|
232
|
-
- Identify which tables are affected by the requested changes.
|
|
233
|
-
- If needed, call \`getCollectionNames\` to retrieve the list of all tables (ID and title).
|
|
234
|
-
|
|
235
|
-
2. **Fetch Table Metadata**
|
|
236
|
-
- Analyze the current structure and identify what needs to be added, removed, or updated.
|
|
237
|
-
- If needed, use the \`getCollectionMetadata\` tool to retrieve schema details of the target table(s).
|
|
238
|
-
|
|
239
|
-
3. **Propose Changes**
|
|
240
|
-
- Output your change suggestions in clear **natural language**.
|
|
241
|
-
- Include field additions, deletions, renames, type changes, or relationship updates.
|
|
242
|
-
- Wait for user confirmation before applying any changes.
|
|
243
|
-
|
|
244
|
-
4. **Apply Changes**
|
|
245
|
-
- Once confirmed, call the \`defineCollections\` tool with **only the modified parts** of the schema.
|
|
246
|
-
- Always re-output the **full updated definition** of each modified table, based on the initial version.
|
|
247
|
-
- Until the tool responds successfully, assume changes have not been saved \u2014 the user may continue editing.
|
|
248
|
-
- **Do not say or imply the schema is being or has been updated until a tool response is received.**
|
|
249
|
-
|
|
250
|
-
# Available Tools
|
|
251
|
-
|
|
252
|
-
- \`getCollectionNames\`: Lists all tables with their internal name and display title. Use this to disambiguate user references.
|
|
253
|
-
- \`getCollectionMetadata\`: Returns detailed field definitions and relationships for specified tables.
|
|
254
|
-
- \`defineCollections\`: Submits new or updated schema definitions to the system. Do not assume success until a tool response is received.
|
|
255
|
-
- \`intentRouter\`: Route intents to appropriate workflow
|
|
256
|
-
- \`suggestions\`: Provide a list of suggested prompts for the user to choose from.
|
|
257
|
-
|
|
258
|
-
# Field rules
|
|
259
|
-
|
|
260
|
-
- Each collection requires: \`name\`, \`title\`, \`template\`, \`fields\`
|
|
261
|
-
- Each field requires: \`name\`, \`title\`, \`type\`, and \`interface\`
|
|
262
|
-
- Use only valid combinations per <collection_type_definition>
|
|
263
|
-
- For relations, always specify \`target\`, \`foreignKey\`, \`targetKey\`
|
|
264
|
-
- Do not include system-generated fields (see template rules below)
|
|
265
|
-
- When generating a many-to-many through table, foreign keys must be created alongside it
|
|
266
|
-
- When defining a one-to-many relationship, both sides need corresponding relationship fields.
|
|
267
|
-
- For scenarios involving monetary amounts, use decimal as the field type whenever possible.
|
|
268
|
-
|
|
269
|
-
## Template-specific system fields
|
|
270
|
-
|
|
271
|
-
| Template | System fields (auto-added, do not redefine manually) |
|
|
272
|
-
|--------------|----------------------------------------------------------------------|
|
|
273
|
-
| \`tree\` | \`parentId\`, \`children\` (self relation) |
|
|
274
|
-
| \`file\` | \`url\`, \`size\`, \`filename\`, \`mimeType\`, \`md5\`, \`storage\` |
|
|
275
|
-
| \`calendar\` | \`startDate\`, \`endDate\`, \`allDay\`, \`location\`, \`recurrence\` |
|
|
276
|
-
| \`expression\` | \`expression\`, \`result\`, \`error\`, \`runAt\`, \`status\`, etc. |
|
|
277
|
-
|
|
278
|
-
---
|
|
279
|
-
|
|
280
|
-
<collection_type_definition>
|
|
281
|
-
${typeDefinition}
|
|
282
|
-
</collection_type_definition>`
|
|
283
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: {
|
|
10
|
-
username: string;
|
|
11
|
-
description: string;
|
|
12
|
-
profile: {
|
|
13
|
-
'en-US': {
|
|
14
|
-
avatar: string;
|
|
15
|
-
nickname: string;
|
|
16
|
-
position: string;
|
|
17
|
-
bio: string;
|
|
18
|
-
greeting: string;
|
|
19
|
-
about: string;
|
|
20
|
-
};
|
|
21
|
-
'zh-CN': {
|
|
22
|
-
avatar: string;
|
|
23
|
-
nickname: string;
|
|
24
|
-
position: string;
|
|
25
|
-
bio: string;
|
|
26
|
-
greeting: string;
|
|
27
|
-
about: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
skillSettings: {
|
|
31
|
-
skills: {
|
|
32
|
-
name: string;
|
|
33
|
-
autoCall: boolean;
|
|
34
|
-
}[];
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var data_organizer_exports = {};
|
|
38
|
-
__export(data_organizer_exports, {
|
|
39
|
-
default: () => data_organizer_default
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(data_organizer_exports);
|
|
42
|
-
var import_profile = __toESM(require("./profile"));
|
|
43
|
-
var data_organizer_default = {
|
|
44
|
-
username: "dex",
|
|
45
|
-
description: "AI employee for extract and structure data from text, and can fill forms automatically.",
|
|
46
|
-
profile: import_profile.default,
|
|
47
|
-
skillSettings: {
|
|
48
|
-
skills: [
|
|
49
|
-
{
|
|
50
|
-
name: "getDataSources",
|
|
51
|
-
autoCall: true
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "getCollectionNames",
|
|
55
|
-
autoCall: true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "getCollectionMetadata",
|
|
59
|
-
autoCall: true
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: {
|
|
10
|
-
'en-US': {
|
|
11
|
-
avatar: string;
|
|
12
|
-
nickname: string;
|
|
13
|
-
position: string;
|
|
14
|
-
bio: string;
|
|
15
|
-
greeting: string;
|
|
16
|
-
about: string;
|
|
17
|
-
};
|
|
18
|
-
'zh-CN': {
|
|
19
|
-
avatar: string;
|
|
20
|
-
nickname: string;
|
|
21
|
-
position: string;
|
|
22
|
-
bio: string;
|
|
23
|
-
greeting: string;
|
|
24
|
-
about: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var profile_exports = {};
|
|
38
|
-
__export(profile_exports, {
|
|
39
|
-
default: () => profile_default
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(profile_exports);
|
|
42
|
-
var import_prompt = __toESM(require("./prompt"));
|
|
43
|
-
var profile_default = {
|
|
44
|
-
"en-US": {
|
|
45
|
-
avatar: "nocobase-015-male",
|
|
46
|
-
nickname: "Dex",
|
|
47
|
-
position: "Data organizer",
|
|
48
|
-
bio: "I extract and structure data from text, and can fill forms automatically.",
|
|
49
|
-
greeting: "Hi! Send me text and I'll structure it into organized data or fill forms.",
|
|
50
|
-
about: import_prompt.default["en-US"]
|
|
51
|
-
},
|
|
52
|
-
"zh-CN": {
|
|
53
|
-
avatar: "nocobase-015-male",
|
|
54
|
-
nickname: "Dex",
|
|
55
|
-
position: "\u6570\u636E\u6574\u7406\u4E13\u5BB6",
|
|
56
|
-
bio: "\u6211\u4ECE\u6587\u672C\u4E2D\u63D0\u53D6\u548C\u63D0\u70BC\u7ED3\u6784\u5316\u6570\u636E\uFF0C\u5E76\u53EF\u4EE5\u81EA\u52A8\u586B\u5199\u8868\u5355\u3002",
|
|
57
|
-
greeting: "\u55E8\uFF01\u7ED9\u6211\u53D1\u6587\u672C\uFF0C\u6211\u4F1A\u628A\u5B83\u7ED3\u6784\u5316\u6210\u6709\u7EC4\u7EC7\u7684\u6570\u636E\u6216\u628A\u6570\u636E\u586B\u5199\u8FDB\u8868\u683C\u3002",
|
|
58
|
-
about: import_prompt.default["en-US"]
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: {
|
|
10
|
-
username: string;
|
|
11
|
-
description: string;
|
|
12
|
-
profile: {
|
|
13
|
-
'en-US': {
|
|
14
|
-
avatar: string;
|
|
15
|
-
nickname: string;
|
|
16
|
-
position: string;
|
|
17
|
-
bio: string;
|
|
18
|
-
greeting: string;
|
|
19
|
-
about: string;
|
|
20
|
-
};
|
|
21
|
-
'zh-CN': {
|
|
22
|
-
avatar: string;
|
|
23
|
-
nickname: string;
|
|
24
|
-
position: string;
|
|
25
|
-
bio: string;
|
|
26
|
-
greeting: string;
|
|
27
|
-
about: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
skillSettings: {
|
|
31
|
-
skills: {
|
|
32
|
-
name: string;
|
|
33
|
-
autoCall: boolean;
|
|
34
|
-
}[];
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default _default;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var data_visualization_exports = {};
|
|
38
|
-
__export(data_visualization_exports, {
|
|
39
|
-
default: () => data_visualization_default
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(data_visualization_exports);
|
|
42
|
-
var import_profile = __toESM(require("./profile"));
|
|
43
|
-
var data_visualization_default = {
|
|
44
|
-
username: "dara",
|
|
45
|
-
description: "Data visualization specialist",
|
|
46
|
-
profile: import_profile.default,
|
|
47
|
-
skillSettings: {
|
|
48
|
-
skills: [
|
|
49
|
-
// 可视化工具:模式切换 + 运行查询
|
|
50
|
-
{ name: "viz-switchModes", autoCall: true },
|
|
51
|
-
{ name: "viz-runQuery", autoCall: true },
|
|
52
|
-
// 了解数据结构
|
|
53
|
-
{ name: "getDataSources", autoCall: true },
|
|
54
|
-
{ name: "getCollectionNames", autoCall: true },
|
|
55
|
-
{ name: "getCollectionMetadata", autoCall: true }
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: {
|
|
10
|
-
'en-US': {
|
|
11
|
-
avatar: string;
|
|
12
|
-
nickname: string;
|
|
13
|
-
position: string;
|
|
14
|
-
bio: string;
|
|
15
|
-
greeting: string;
|
|
16
|
-
about: string;
|
|
17
|
-
};
|
|
18
|
-
'zh-CN': {
|
|
19
|
-
avatar: string;
|
|
20
|
-
nickname: string;
|
|
21
|
-
position: string;
|
|
22
|
-
bio: string;
|
|
23
|
-
greeting: string;
|
|
24
|
-
about: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var profile_exports = {};
|
|
38
|
-
__export(profile_exports, {
|
|
39
|
-
default: () => profile_default
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(profile_exports);
|
|
42
|
-
var import_prompt = __toESM(require("./prompt"));
|
|
43
|
-
var profile_default = {
|
|
44
|
-
"en-US": {
|
|
45
|
-
avatar: "nocobase-048-female",
|
|
46
|
-
nickname: "Dara",
|
|
47
|
-
position: "Data visualization specialist",
|
|
48
|
-
bio: "I'm Dara, a data visualization expert who transforms complex data into clear and engaging charts that make insights instantly visible.",
|
|
49
|
-
greeting: "Hi, I\u2019m Dara. Ask me about your data \u2014 I\u2019ll visualize the answer.",
|
|
50
|
-
about: import_prompt.default["en-US"]
|
|
51
|
-
},
|
|
52
|
-
"zh-CN": {
|
|
53
|
-
avatar: "nocobase-048-female",
|
|
54
|
-
nickname: "Dara",
|
|
55
|
-
position: "\u6570\u636E\u53EF\u89C6\u5316\u4E13\u5BB6",
|
|
56
|
-
bio: "\u6211\u662F Dara\uFF0C\u4E00\u540D\u6570\u636E\u53EF\u89C6\u5316\u4E13\u5BB6\uFF0C\u64C5\u957F\u5C06\u590D\u6742\u6570\u636E\u8F6C\u5316\u4E3A\u6E05\u6670\u3001\u751F\u52A8\u7684\u56FE\u8868\uFF0C\u8BA9\u6D1E\u5BDF\u4E00\u76EE\u4E86\u7136\u3002",
|
|
57
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F Dara\u3002\u544A\u8BC9\u6211\u4F60\u7684\u6570\u636E\u9700\u6C42\uFF0C\u6211\u4F1A\u7528\u56FE\u8868\u4E3A\u4F60\u5448\u73B0\u3002",
|
|
58
|
-
about: import_prompt.default["en-US"]
|
|
59
|
-
}
|
|
60
|
-
};
|