@nocobase/plugin-ai 2.3.0-alpha.1 → 2.3.0-beta.2
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/docs/nocobase/ai-dev/watermark-plugin.md +2 -0
- package/dist/ai/docs/nocobase/ai-employees/block/ai-chat-box.md +133 -0
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/documents.md +1 -1
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/index.md +11 -7
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/settings.md +12 -8
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/rag.md +43 -13
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/vector-database.md +3 -3
- package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/create-document.md +1 -1
- package/dist/ai/docs/nocobase/api/app/env.md +2 -0
- package/dist/ai/docs/nocobase/api/cli/api/resource/create.md +4 -3
- package/dist/ai/docs/nocobase/building-tips/ai-fill-js-block-form.md +1092 -0
- package/dist/ai/docs/nocobase/data-sources/calendar/calendar-collection.md +100 -3
- package/dist/ai/docs/nocobase/data-sources/collection-comment/index.md +92 -39
- package/dist/ai/docs/nocobase/data-sources/collection-sql/index.md +150 -29
- package/dist/ai/docs/nocobase/data-sources/collection-tree/index.md +93 -5
- package/dist/ai/docs/nocobase/data-sources/collection-view/index.md +226 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/china-region.md +122 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/collection-select.md +105 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/json.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/nano-id.md +104 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/snowflake-id.md +108 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/sort.md +3 -19
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/advanced/uuid.md +104 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/associations/index.md +44 -8
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/color.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/email.md +104 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/icon.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/input.md +112 -8
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/integer.md +103 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/number.md +103 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/password.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/percent.md +104 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/phone.md +104 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/textarea.md +99 -8
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/basic/url.md +103 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/checkbox-group.md +105 -3
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/checkbox.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/china-region.md +108 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/multiple-select.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/radio-group.md +106 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/choices/select.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/date.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/datetime-without-tz.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/datetime.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/index.md +53 -47
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/time.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/datetime/unix-timestamp.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/circle.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/line.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/point.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/geometric/polygon.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/index.md +62 -16
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/media/markdown.md +104 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/media/rich-text.md +105 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/created-at.md +105 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/created-by.md +103 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/space.md +100 -6
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/table-oid.md +102 -4
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/updated-at.md +104 -5
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/system-info/updated-by.md +104 -6
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/validation.md +68 -58
- package/dist/ai/docs/nocobase/data-sources/data-modeling/collection.md +32 -13
- package/dist/ai/docs/nocobase/data-sources/data-modeling/index.md +41 -33
- package/dist/ai/docs/nocobase/data-sources/data-source-external-mariadb/index.md +114 -6
- package/dist/ai/docs/nocobase/data-sources/data-source-external-mssql/index.md +117 -6
- package/dist/ai/docs/nocobase/data-sources/data-source-external-mysql/index.md +103 -6
- package/dist/ai/docs/nocobase/data-sources/data-source-external-nocobase/index.md +75 -73
- package/dist/ai/docs/nocobase/data-sources/data-source-external-oracle/index.md +129 -11
- package/dist/ai/docs/nocobase/data-sources/data-source-external-postgres/index.md +110 -6
- package/dist/ai/docs/nocobase/data-sources/data-source-kingbase/index.md +75 -49
- package/dist/ai/docs/nocobase/data-sources/data-source-main/general-collection.md +116 -15
- package/dist/ai/docs/nocobase/data-sources/data-source-main/index.md +92 -62
- package/dist/ai/docs/nocobase/data-sources/data-source-main/inheritance-collection.md +97 -10
- package/dist/ai/docs/nocobase/data-sources/data-source-manager/external-database.md +97 -58
- package/dist/ai/docs/nocobase/data-sources/data-source-manager/index.md +32 -24
- package/dist/ai/docs/nocobase/data-sources/data-source-rest-api/index.md +115 -153
- package/dist/ai/docs/nocobase/data-sources/external/clickhouse.md +124 -0
- package/dist/ai/docs/nocobase/data-sources/external/doris.md +130 -0
- package/dist/ai/docs/nocobase/data-sources/external/index.md +140 -0
- package/dist/ai/docs/nocobase/data-sources/external/kingbase.md +129 -0
- package/dist/ai/docs/nocobase/data-sources/external/mariadb.md +126 -0
- package/dist/ai/docs/nocobase/data-sources/external/mssql.md +129 -0
- package/dist/ai/docs/nocobase/data-sources/external/mysql.md +115 -0
- package/dist/ai/docs/nocobase/data-sources/external/nocobase.md +159 -0
- package/dist/ai/docs/nocobase/data-sources/external/oceanbase.md +126 -0
- package/dist/ai/docs/nocobase/data-sources/external/oracle.md +158 -0
- package/dist/ai/docs/nocobase/data-sources/external/postgresql.md +122 -0
- package/dist/ai/docs/nocobase/data-sources/external/rest-api.md +245 -0
- package/dist/ai/docs/nocobase/data-sources/field-attachment-url/index.md +100 -12
- package/dist/ai/docs/nocobase/data-sources/field-encryption/index.md +48 -47
- package/dist/ai/docs/nocobase/data-sources/field-formula/index.md +99 -5
- package/dist/ai/docs/nocobase/data-sources/field-markdown-vditor/index.md +105 -5
- package/dist/ai/docs/nocobase/data-sources/field-sequence/index.md +102 -5
- package/dist/ai/docs/nocobase/data-sources/field-signature/index.md +18 -16
- package/dist/ai/docs/nocobase/data-sources/field-sort/index.md +76 -73
- package/dist/ai/docs/nocobase/data-sources/file-manager/field-attachment.md +101 -7
- package/dist/ai/docs/nocobase/data-sources/file-manager/file-collection.md +101 -14
- package/dist/ai/docs/nocobase/data-sources/index.md +49 -33
- package/dist/ai/docs/nocobase/data-sources/main/index.md +130 -0
- package/dist/ai/docs/nocobase/data-sources/main/kingbase.md +147 -0
- package/dist/ai/docs/nocobase/data-sources/main/mariadb.md +59 -0
- package/dist/ai/docs/nocobase/data-sources/main/mysql.md +59 -0
- package/dist/ai/docs/nocobase/data-sources/main/oceanbase.md +62 -0
- package/dist/ai/docs/nocobase/data-sources/main/postgresql.md +61 -0
- package/dist/ai/docs/nocobase/file-manager/file-preview/index.md +44 -3
- package/dist/ai/docs/nocobase/file-manager/storage/aliyun-oss.md +100 -3
- package/dist/ai/docs/nocobase/file-manager/storage/index.md +66 -26
- package/dist/ai/docs/nocobase/file-manager/storage/s3-pro.md +58 -7
- package/dist/ai/docs/nocobase/get-started/installation/env.md +1 -1
- package/dist/ai/docs/nocobase/ops-management/migration-manager/built-in-tables.md +1 -2
- package/dist/ai/docs/nocobase/plugin-development/build.md +10 -4
- package/dist/ai/docs/nocobase/plugin-development/client/appendix/faq.md +1 -1
- package/dist/ai/docs/nocobase/plugin-development/client/examples/custom-action.md +2 -0
- package/dist/ai/docs/nocobase/plugin-development/client/examples/custom-block.md +2 -0
- package/dist/ai/docs/nocobase/plugin-development/client/examples/custom-field.md +2 -0
- package/dist/ai/docs/nocobase/plugin-development/client/examples/fullstack-plugin.md +2 -0
- package/dist/ai/docs/nocobase/plugin-development/client/examples/settings-page.md +2 -0
- package/dist/ai/docs/nocobase/plugin-development/common/i18n.md +3 -3
- package/dist/ai/docs/nocobase/plugin-development/server/cache.md +1 -1
- package/dist/ai/docs/nocobase/plugin-development/server/collections.md +0 -6
- package/dist/ai/docs/nocobase/plugin-development/server/command.md +2 -2
- package/dist/ai/docs/nocobase/plugin-development/server/context.md +2 -2
- package/dist/ai/docs/nocobase/plugin-development/server/i18n.md +4 -4
- package/dist/ai/docs/nocobase/plugin-development/write-your-first-plugin.md +91 -43
- package/dist/ai/docs/nocobase/runjs/context/ai.md +194 -4
- package/dist/ai/docs/nocobase/users-permissions/sync/index.md +8 -1
- package/dist/ai/docs/nocobase/users-permissions/sync/sources/dingtalk.md +138 -0
- package/dist/ai/docs/nocobase/users-permissions/sync/sources/ldap.md +87 -0
- package/dist/ai/docs/nocobase/workflow/nodes/javascript.md +21 -1
- package/dist/ai/tools/executeFrontendTool.d.ts +10 -0
- package/dist/ai/tools/executeFrontendTool.js +86 -0
- package/dist/ai/tools/getSkill.js +1 -1
- package/dist/ai/tools/knowledge-base-retrieve.js +3 -1
- package/dist/ai/tools/loadFrontendTool.d.ts +10 -0
- package/dist/ai/tools/loadFrontendTool.js +99 -0
- package/dist/client/244.28ee769f796b7c2f.js +10 -0
- package/dist/client/{525.203778500aca5d05.js → 525.94dd4136c1361477.js} +1 -1
- package/dist/client/681.6ffbc9329b9ac242.js +10 -0
- package/dist/{client-v2/705.1d10027ff8cfdf79.js → client/705.a4fe26945d175e8a.js} +1 -1
- package/dist/client/index.d.ts +1 -3
- package/dist/client/index.js +8 -8
- package/dist/client-v2/244.39348a95d627d9e3.js +10 -0
- package/dist/client-v2/420.a5b929a5e7f330be.js +10 -0
- package/dist/client-v2/681.6890caa389564ff7.js +10 -0
- package/dist/client-v2/705.f2e1b26a3f000075.js +10 -0
- package/dist/client-v2/ai-employees/AIEmployeeShortcut.d.ts +2 -0
- package/dist/client-v2/ai-employees/AddContextButton.d.ts +2 -0
- package/dist/client-v2/ai-employees/chatbox/components/AIEmployeeSwitcher.d.ts +1 -0
- package/dist/client-v2/ai-employees/chatbox/components/ChatBoxUnreadBadge.d.ts +17 -0
- package/dist/client-v2/ai-employees/chatbox/components/Conversations.d.ts +9 -1
- package/dist/client-v2/ai-employees/chatbox/components/MessageRenderers.d.ts +1 -1
- package/dist/client-v2/ai-employees/chatbox/components/Messages.d.ts +5 -1
- package/dist/client-v2/ai-employees/chatbox/components/ModelSwitcher.d.ts +4 -0
- package/dist/client-v2/ai-employees/chatbox/components/Sender.d.ts +33 -1
- package/dist/client-v2/ai-employees/chatbox/components/index.d.ts +1 -0
- package/dist/client-v2/ai-employees/chatbox/hooks/reasoning-stream.d.ts +10 -0
- package/dist/client-v2/ai-employees/chatbox/hooks/useChat.d.ts +8 -5
- package/dist/client-v2/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +3 -2
- package/dist/client-v2/ai-employees/chatbox/hooks/useChatBoxEffect.d.ts +2 -1
- package/dist/client-v2/ai-employees/chatbox/hooks/useChatConversationActions.d.ts +3 -2
- package/dist/client-v2/ai-employees/chatbox/hooks/useChatMessageActions.d.ts +4 -2
- package/dist/client-v2/ai-employees/chatbox/hooks/useToolCallActions.d.ts +3 -1
- package/dist/client-v2/ai-employees/chatbox/hooks/useUploadFiles.d.ts +13 -3
- package/dist/client-v2/ai-employees/chatbox/hooks/useWorkflowTasks.d.ts +3 -2
- package/dist/client-v2/ai-employees/chatbox/index.d.ts +17 -0
- package/dist/client-v2/ai-employees/chatbox/roles.d.ts +2 -153
- package/dist/client-v2/ai-employees/chatbox/stores/chat-box.d.ts +46 -33
- package/dist/client-v2/ai-employees/chatbox/stores/chat-conversations.d.ts +7 -7
- package/dist/client-v2/ai-employees/chatbox/stores/chat-messages.d.ts +23 -18
- package/dist/client-v2/ai-employees/chatbox/stores/chat-sender.d.ts +43 -0
- package/dist/client-v2/ai-employees/chatbox/stores/chat-tool-call.d.ts +6 -5
- package/dist/client-v2/ai-employees/chatbox/stores/chat-tools.d.ts +11 -5
- package/dist/client-v2/ai-employees/chatbox/stores/mounted-chat-boxes.d.ts +20 -0
- package/dist/client-v2/ai-employees/chatbox/stores/runtime.d.ts +43 -0
- package/dist/client-v2/ai-employees/chatbox/stores/workflow-tasks.d.ts +22 -10
- package/dist/client-v2/ai-employees/chatbox/upload.d.ts +19 -0
- package/dist/client-v2/ai-employees/chatbox/utils.d.ts +28 -4
- package/dist/client-v2/ai-employees/frontend-tools.d.ts +11 -0
- package/dist/client-v2/ai-employees/tools/SuggestionsOptionsCard.d.ts +1 -1
- package/dist/client-v2/ai-employees/tools/WorkflowTaskOutputCard.d.ts +1 -1
- package/dist/client-v2/ai-employees/types.d.ts +30 -0
- package/dist/client-v2/block/ai-chat-box/AIChatBoxBlockModel.d.ts +21 -0
- package/dist/client-v2/block/ai-chat-box/AIChatBoxCoreModel.d.ts +13 -0
- package/dist/client-v2/{ai-employees/chatbox/components/DebugPanel.d.ts → block/ai-chat-box/components/AIChatBoxCoreView.d.ts} +1 -1
- package/dist/client-v2/block/ai-chat-box/components/AIChatBoxView.d.ts +12 -0
- package/dist/client-v2/block/ai-chat-box/index.d.ts +14 -0
- package/dist/client-v2/block/ai-chat-box/settings.d.ts +12 -0
- package/dist/client-v2/block/ai-chat-box/sub-models.d.ts +26 -0
- package/dist/client-v2/block/ai-chat-box/types.d.ts +38 -0
- package/dist/client-v2/block/ai-chat-box/utils.d.ts +26 -0
- package/dist/client-v2/index.d.ts +3 -5
- package/dist/client-v2/index.js +3 -3
- package/dist/client-v2/llm-providers/forms.d.ts +2 -0
- package/dist/client-v2/llm-providers/index.d.ts +1 -0
- package/dist/client-v2/llm-services/model-select.d.ts +33 -0
- package/dist/client-v2/llm-services/utils.d.ts +1 -0
- package/dist/client-v2/manager/ai-manager.d.ts +10 -3
- package/dist/client-v2/manager/frontend-tool-registry.d.ts +30 -0
- package/dist/client-v2/models/ai-employees/AIEmployeeActionModel.d.ts +4 -1
- package/dist/client-v2/models/ai-employees/AIEmployeeShortcutModel.d.ts +8 -0
- package/dist/client-v2/pages/EmployeesPage.d.ts +12 -0
- package/dist/client-v2/pages/LLMServicesPage.d.ts +9 -4
- package/dist/client-v2/repositories/AIConfigRepository.d.ts +2 -0
- package/dist/client-v2/runjs/registerAIEmployeeRunJSFacade.d.ts +1 -0
- package/dist/collections/ai-employees.d.ts +1 -0
- package/dist/collections/ai-employees.js +1 -0
- package/dist/common/ai-employee-validation.d.ts +15 -0
- package/dist/common/ai-employee-validation.js +61 -0
- package/dist/common/error-codes.d.ts +13 -0
- package/dist/common/error-codes.js +48 -0
- package/dist/common/frontend-tools.d.ts +26 -0
- package/dist/common/frontend-tools.js +57 -0
- package/dist/common/llm-service-models.d.ts +16 -0
- package/dist/common/llm-service-models.js +84 -0
- package/dist/externalVersion.js +19 -17
- package/dist/locale/de-DE.json +2 -1
- package/dist/locale/en-US.json +85 -5
- package/dist/locale/es-ES.json +2 -1
- package/dist/locale/fr-FR.json +2 -1
- package/dist/locale/hu-HU.json +2 -1
- package/dist/locale/id-ID.json +2 -1
- package/dist/locale/it-IT.json +2 -1
- package/dist/locale/ja-JP.json +2 -1
- package/dist/locale/ko-KR.json +2 -1
- package/dist/locale/nl-NL.json +2 -1
- package/dist/locale/pt-BR.json +2 -1
- package/dist/locale/ru-RU.json +2 -1
- package/dist/locale/tr-TR.json +2 -1
- package/dist/locale/uk-UA.json +2 -1
- package/dist/locale/vi-VN.json +2 -1
- package/dist/locale/zh-CN.json +85 -5
- package/dist/locale/zh-TW.json +2 -1
- package/dist/node_modules/@langchain/mistralai/package.json +1 -1
- package/dist/node_modules/@langchain/xai/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonrepair/package.json +1 -1
- package/dist/node_modules/just-bash/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/openai/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/ai-employees/ai-conversations.d.ts +4 -1
- package/dist/server/ai-employees/ai-conversations.js +2 -0
- package/dist/server/ai-employees/ai-employee.d.ts +4 -1
- package/dist/server/ai-employees/ai-employee.js +112 -47
- package/dist/server/ai-employees/ai-knowledge-base.d.ts +21 -1
- package/dist/server/ai-employees/ai-knowledge-base.js +76 -8
- package/dist/server/ai-employees/middleware/conversation.js +9 -2
- package/dist/server/ai-employees/reasoning-stream-state.d.ts +23 -0
- package/dist/server/ai-employees/reasoning-stream-state.js +63 -0
- package/dist/server/collections/ai-conversations.js +5 -0
- package/dist/server/document-loader/constants.js +1 -1
- package/dist/server/features/knowledge-base.d.ts +2 -0
- package/dist/server/frontend-tools.d.ts +25 -0
- package/dist/server/frontend-tools.js +171 -0
- package/dist/server/llm-providers/common/reasoning.js +18 -10
- package/dist/server/llm-providers/deepseek/index.d.ts +10 -0
- package/dist/server/llm-providers/deepseek/index.js +32 -0
- package/dist/server/llm-providers/deepseek/provider.d.ts +57 -0
- package/dist/server/llm-providers/deepseek/provider.js +320 -0
- package/dist/server/llm-providers/deepseek/reasoning.d.ts +83 -0
- package/dist/server/llm-providers/deepseek/reasoning.js +285 -0
- package/dist/server/llm-providers/mistral.d.ts +1 -1
- package/dist/server/llm-providers/provider.d.ts +1 -0
- package/dist/server/llm-providers/provider.js +3 -0
- package/dist/server/llm-providers/shengsuanyun.d.ts +29 -0
- package/dist/server/llm-providers/shengsuanyun.js +114 -0
- package/dist/server/manager/ai-feature-manager.js +1 -1
- package/dist/server/manager/ai-manager.d.ts +3 -0
- package/dist/server/manager/ai-manager.js +7 -2
- package/dist/server/manager/work-context-handler.js +10 -3
- package/dist/server/migrations/20260501000000-ai-employee-knowledge-base-retrieval-strategy.d.ts +14 -0
- package/dist/server/migrations/20260501000000-ai-employee-knowledge-base-retrieval-strategy.js +49 -0
- package/dist/server/plugin.d.ts +1 -0
- package/dist/server/plugin.js +31 -0
- package/dist/server/resource/aiConversations.d.ts +2 -0
- package/dist/server/resource/aiConversations.js +33 -3
- package/dist/server/resource/aiEmployees.d.ts +2 -0
- package/dist/server/resource/aiEmployees.js +70 -0
- package/dist/server/resource/aiWorkflowTasks.js +9 -1
- package/dist/server/resource/llmServices.d.ts +11 -0
- package/dist/server/resource/llmServices.js +85 -0
- package/dist/server/types/ai-message.type.d.ts +4 -0
- package/dist/server/types/knowledge-base.type.d.ts +8 -3
- package/dist/swagger/common.d.ts +143 -0
- package/dist/swagger/common.js +144 -0
- package/dist/swagger/employees.d.ts +301 -0
- package/dist/swagger/employees.js +131 -0
- package/dist/swagger/index.d.ts +1617 -0
- package/dist/swagger/index.js +62 -0
- package/dist/swagger/llm.d.ts +563 -0
- package/dist/swagger/llm.js +255 -0
- package/dist/swagger/schemas.d.ts +757 -0
- package/dist/swagger/schemas.js +392 -0
- package/package.json +2 -2
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/vector-store.md +0 -24
- package/dist/ai/docs/nocobase/data-sources/development/index.md +0 -6
- package/dist/client/372.40eb52905e3f3049.js +0 -10
- package/dist/client/681.399948c18d753667.js +0 -10
- package/dist/client/705.380279da896021fb.js +0 -10
- package/dist/client-v2/372.8cc3fde09c9bec77.js +0 -10
- package/dist/client-v2/406.341be51205c674e0.js +0 -10
- package/dist/client-v2/681.082f4f1c7b841983.js +0 -10
- package/dist/client-v2/ai-employees/chatbox/stores/create-selectors.d.ts +0 -46
- package/dist/client-v2/ai-employees/chatbox/utils/normalizeTriggerTaskOptions.d.ts +0 -19
- package/dist/client-v2/debug-logger.d.ts +0 -52
- package/dist/server/llm-providers/deepseek.d.ts +0 -40
- package/dist/server/llm-providers/deepseek.js +0 -174
|
@@ -392,7 +392,7 @@ SERVER_REQUEST_WHITELIST=api.example.com,*.trusted.com,10.0.0.0/8,127.0.0.1
|
|
|
392
392
|
|
|
393
393
|
**When not set**: All `http` / `https` outbound requests are allowed to keep existing behavior. However, if the target is a loopback, private, link-local, or metadata address, or if a domain resolves to one of these addresses, the server logs a warning.
|
|
394
394
|
|
|
395
|
-
**When set**:
|
|
395
|
+
**When set**: The initial request and every redirect destination must match a whitelist entry; non-matching requests will raise an error before the next request is sent. Future versions may gradually tighten the default behavior. If your deployment needs to access internal services, configure an explicit whitelist in advance.
|
|
396
396
|
|
|
397
397
|
Supported formats:
|
|
398
398
|
|
|
@@ -336,9 +336,8 @@ The “Data type” column comes from built-in classification. System base data
|
|
|
336
336
|
| Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
|
|
337
337
|
| --- | --- | --- | --- | --- | --- |
|
|
338
338
|
| `aiKnowledgeBaseDocs` | Document chunks and index metadata stored in knowledge bases | Business runtime data | Schema-only | Not included | Backed up |
|
|
339
|
-
| `aiKnowledgeBase` | Knowledge-base type, external ID, and base information | Business runtime data | Schema-only | Not included | Backed up |
|
|
339
|
+
| `aiKnowledgeBase` | Knowledge-base type, external ID, vector database, LLM service, embedding model, and base information | Business runtime data | Schema-only | Not included | Backed up |
|
|
340
340
|
| `aiVectorDatabases` | Vector database service and connection configuration | Business runtime data | Schema-only | Not included | Backed up |
|
|
341
|
-
| `aiVectorStoreConfig` | Relationship between vector database connections and embedding models | Business runtime data | Schema-only | Not included | Backed up |
|
|
342
341
|
|
|
343
342
|
### Environment variables
|
|
344
343
|
|
|
@@ -6,7 +6,7 @@ keywords: "plugin build,plugin package,yarn build,tar,build.config.ts,Rsbuild,ts
|
|
|
6
6
|
|
|
7
7
|
# Build and Package
|
|
8
8
|
|
|
9
|
-
After plugin development is complete, you need to go through two steps — build (compile source code) and package (generate `.
|
|
9
|
+
After plugin development is complete, you need to go through two steps — build (compile source code) and package (generate `.tgz`) — before distributing it to other NocoBase applications.
|
|
10
10
|
|
|
11
11
|
## Build Plugin
|
|
12
12
|
|
|
@@ -26,13 +26,13 @@ If the plugin is created in a source code repository, the first build will trigg
|
|
|
26
26
|
|
|
27
27
|
## Package Plugin
|
|
28
28
|
|
|
29
|
-
Packaging compresses the build artifacts into a `.
|
|
29
|
+
Packaging compresses the build artifacts into a `.tgz` file for easy upload to other environments:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
yarn nocobase tar @my-project/plugin-hello
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The package file is output to `storage/tar/@my-project/plugin-hello.
|
|
35
|
+
The package file is output to `storage/tar/` by default, named `<package-name>-<version>.tgz` — for example, `storage/tar/@my-project/plugin-hello-0.1.0.tgz`.
|
|
36
36
|
|
|
37
37
|
You can also combine build and package into one step using the `--tar` flag:
|
|
38
38
|
|
|
@@ -42,7 +42,13 @@ yarn build @my-project/plugin-hello --tar
|
|
|
42
42
|
|
|
43
43
|
## Upload to Other NocoBase Applications
|
|
44
44
|
|
|
45
|
-
Upload and extract the `.
|
|
45
|
+
Upload and extract the `.tgz` file to the target application's `./storage/plugins` directory. For detailed steps, see [Install and Upgrade Plugins](../get-started/install-upgrade-plugins.mdx).
|
|
46
|
+
|
|
47
|
+
If the target application was created with the NocoBase CLI (`nb init`), you can also import it directly with `nb plugin import` instead of extracting it manually:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
nb plugin import /your/path/plugin-hello-0.1.0.tgz
|
|
51
|
+
```
|
|
46
52
|
|
|
47
53
|
### Enable a Plugin by Default
|
|
48
54
|
|
|
@@ -12,7 +12,7 @@ This page collects common pitfalls when developing client plugins. If you run in
|
|
|
12
12
|
|
|
13
13
|
### Plugin not visible in the Plugin Manager after creation
|
|
14
14
|
|
|
15
|
-
Make sure you ran `yarn pm create` instead of manually creating the directory. `yarn pm create`
|
|
15
|
+
Make sure you ran `yarn pm create` instead of manually creating the directory. Besides generating files, `yarn pm create` updates `tsconfig.paths.json` and runs `yarn postinstall`, which links the plugin into `node_modules` and regenerates the client plugin index so the application can discover it. A manually created directory skips that step — run `yarn nocobase upgrade` to rescan and register it in the `applicationPlugins` table.
|
|
16
16
|
|
|
17
17
|
### No changes on the page after enabling a plugin
|
|
18
18
|
|
|
@@ -49,6 +49,8 @@ yarn pm create @my-project/plugin-simple-action
|
|
|
49
49
|
|
|
50
50
|
For detailed instructions, see [Writing Your First Plugin](../../write-your-first-plugin).
|
|
51
51
|
|
|
52
|
+
Next, start development mode so your code changes hot-reload: for a project created by `nb init`, run `nb source dev` from the project root (`<app-path>`); for a NocoBase source repository you cloned yourself, run `yarn dev` from the source root.
|
|
53
|
+
|
|
52
54
|
## Step 2: Create Action Models
|
|
53
55
|
|
|
54
56
|
Each action needs to declare the scenario it appears in via the `static scene` property:
|
|
@@ -51,6 +51,8 @@ yarn pm create @my-project/plugin-simple-block
|
|
|
51
51
|
|
|
52
52
|
This will generate a basic file structure under `packages/plugins/@my-project/plugin-simple-block`. For detailed instructions, see [Writing Your First Plugin](../../write-your-first-plugin).
|
|
53
53
|
|
|
54
|
+
Next, start development mode so your code changes hot-reload: for a project created by `nb init`, run `nb source dev` from the project root (`<app-path>`); for a NocoBase source repository you cloned yourself, run `yarn dev` from the source root.
|
|
55
|
+
|
|
54
56
|
## Step 2: Create the Block Model
|
|
55
57
|
|
|
56
58
|
Create `src/client-v2/models/SimpleBlockModel.tsx`. This is the core of the entire plugin -- defining how the block renders and how it's configured.
|
|
@@ -52,6 +52,8 @@ yarn pm create @my-project/plugin-field-simple
|
|
|
52
52
|
|
|
53
53
|
For detailed instructions, see [Writing Your First Plugin](../../write-your-first-plugin).
|
|
54
54
|
|
|
55
|
+
Next, start development mode so your code changes hot-reload: for a project created by `nb init`, run `nb source dev` from the project root (`<app-path>`); for a NocoBase source repository you cloned yourself, run `yarn dev` from the source root.
|
|
56
|
+
|
|
55
57
|
## Step 2: Create the Field Model
|
|
56
58
|
|
|
57
59
|
Create `src/client-v2/models/DisplaySimpleFieldModel.tsx`. This is the core of the plugin -- defining how the field renders and which field interface it binds to.
|
|
@@ -55,6 +55,8 @@ yarn pm create @my-project/plugin-custom-table-block-resource
|
|
|
55
55
|
|
|
56
56
|
For detailed instructions, see [Writing Your First Plugin](../../write-your-first-plugin).
|
|
57
57
|
|
|
58
|
+
Next, start development mode so your code changes hot-reload: for a project created by `nb init`, run `nb source dev` from the project root (`<app-path>`); for a NocoBase source repository you cloned yourself, run `yarn dev` from the source root.
|
|
59
|
+
|
|
58
60
|
## Step 2: Define the Data Table (Server-Side)
|
|
59
61
|
|
|
60
62
|
Create `src/server/collections/todoItems.ts`. NocoBase will automatically load collection definitions from this directory:
|
|
@@ -52,6 +52,8 @@ yarn pm create @my-project/plugin-settings-page
|
|
|
52
52
|
|
|
53
53
|
This will generate a basic file structure under `packages/plugins/@my-project/plugin-settings-page`, including `src/client-v2/`, `src/server/`, `src/locale/`, and other directories. For detailed instructions, see [Writing Your First Plugin](../../write-your-first-plugin).
|
|
54
54
|
|
|
55
|
+
Next, start development mode so your code changes hot-reload: for a project created by `nb init`, run `nb source dev` from the project root (`<app-path>`); for a NocoBase source repository you cloned yourself, run `yarn dev` from the source root.
|
|
56
|
+
|
|
55
57
|
## Step 2: Register the Settings Page
|
|
56
58
|
|
|
57
59
|
Edit `src/client-v2/plugin.tsx`. In `load()`, use `this.pluginSettingsManager` to register the settings page. This is done in two steps -- first register the menu entry with `addMenuItem()`, then register the actual page with `addPageTabItem()`:
|
|
@@ -61,11 +61,11 @@ export class PluginSampleI18nServer extends Plugin {
|
|
|
61
61
|
},
|
|
62
62
|
],
|
|
63
63
|
});
|
|
64
|
-
await this.app.changeLanguage(answer1);
|
|
64
|
+
await this.app.i18n.changeLanguage(answer1);
|
|
65
65
|
const answer2 = await input({
|
|
66
|
-
message: app.i18n.t('Enter your name'),
|
|
66
|
+
message: this.app.i18n.t('Enter your name'),
|
|
67
67
|
});
|
|
68
|
-
console.log(app.i18n.t(`Your name is {{name}}`, { name: answer2 }));
|
|
68
|
+
console.log(this.app.i18n.t(`Your name is {{name}}`, { name: answer2 }));
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -212,7 +212,7 @@ export default class PluginCacheDemo extends Plugin {
|
|
|
212
212
|
});
|
|
213
213
|
|
|
214
214
|
// Create cache using newly registered store
|
|
215
|
-
const redisCache = await this.app.createCache({
|
|
215
|
+
const redisCache = await this.app.cacheManager.createCache({
|
|
216
216
|
name: 'redisCache',
|
|
217
217
|
store: 'redis',
|
|
218
218
|
prefix: 'app:',
|
|
@@ -197,12 +197,6 @@ When a plugin is first activated, the system will automatically synchronize Coll
|
|
|
197
197
|
yarn nocobase upgrade
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
If exceptions or dirty data occur during synchronization, you can rebuild the table structure by reinstalling the application:
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
yarn nocobase install -f
|
|
204
|
-
```
|
|
205
|
-
|
|
206
200
|
If you need to migrate existing data during plugin upgrades -- such as renaming fields, splitting tables, backfilling default values, etc. -- you should handle it through [Migration](./migration.md) scripts rather than manually modifying the database.
|
|
207
201
|
|
|
208
202
|
## Making a Collection Appear in the UI Data Table List
|
|
@@ -30,7 +30,7 @@ export default function (app: Application) {
|
|
|
30
30
|
app
|
|
31
31
|
.command('echo')
|
|
32
32
|
.option('-v, --version')
|
|
33
|
-
.action(async (
|
|
33
|
+
.action(async (options) => {
|
|
34
34
|
console.log('Hello World!');
|
|
35
35
|
if (options.version) {
|
|
36
36
|
console.log('Current version:', await app.version.get());
|
|
@@ -68,7 +68,7 @@ export default class PluginHelloServer extends Plugin {
|
|
|
68
68
|
app
|
|
69
69
|
.command('echo')
|
|
70
70
|
.option('-v, --version')
|
|
71
|
-
.action(async (
|
|
71
|
+
.action(async (options) => {
|
|
72
72
|
console.log('Hello World!');
|
|
73
73
|
if (options.version) {
|
|
74
74
|
console.log('Current version:', await app.version.get());
|
|
@@ -56,7 +56,7 @@ resourceManager.use(async (ctx) => {
|
|
|
56
56
|
|
|
57
57
|
```ts
|
|
58
58
|
resourceManager.use(async (ctx) => {
|
|
59
|
-
await ctx.cache.set('key', 'value',
|
|
59
|
+
await ctx.cache.set('key', 'value', 60 * 1000); // Cache for 60 seconds (TTL is in milliseconds)
|
|
60
60
|
const val = await ctx.cache.get('key');
|
|
61
61
|
ctx.body = val;
|
|
62
62
|
});
|
|
@@ -113,7 +113,7 @@ resourceManager.use(async (ctx) => {
|
|
|
113
113
|
|
|
114
114
|
```ts
|
|
115
115
|
resourceManager.use(async (ctx) => {
|
|
116
|
-
const canEdit =
|
|
116
|
+
const canEdit = ctx.can({ resource: 'posts', action: 'edit' });
|
|
117
117
|
if (!canEdit) {
|
|
118
118
|
ctx.throw(403, 'Forbidden');
|
|
119
119
|
}
|
|
@@ -68,13 +68,13 @@ export class PluginSampleI18nServer extends Plugin {
|
|
|
68
68
|
]
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
await this.app.changeLanguage(answer1);
|
|
71
|
+
await this.app.i18n.changeLanguage(answer1);
|
|
72
72
|
|
|
73
73
|
const answer2 = await input({
|
|
74
|
-
message: app.i18n.t('Enter your name')
|
|
74
|
+
message: this.app.i18n.t('Enter your name')
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
console.log(app.i18n.t('Your name is {{name}}', { name: answer2 }));
|
|
77
|
+
console.log(this.app.i18n.t('Your name is {{name}}', { name: answer2 }));
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -129,7 +129,7 @@ export class PluginSampleI18nServer extends Plugin {
|
|
|
129
129
|
load() {
|
|
130
130
|
this.app.use(async (ctx, next) => {
|
|
131
131
|
if (ctx.path === '/api/plugin-i18n') {
|
|
132
|
-
ctx.body = this.
|
|
132
|
+
ctx.body = this.t('Hello');
|
|
133
133
|
}
|
|
134
134
|
await next();
|
|
135
135
|
});
|
|
@@ -28,50 +28,83 @@ yarn pm create @my-project/plugin-hello
|
|
|
28
28
|
After the command runs successfully, it will generate basic files in the `packages/plugins/@my-project/plugin-hello` directory. The default structure is as follows:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
31
|
+
packages/plugins/@my-project/plugin-hello/
|
|
32
|
+
├─ package.json
|
|
33
|
+
├─ README.md
|
|
34
|
+
├─ .npmignore
|
|
35
|
+
├─ client-v2.d.ts # v2 client entry type declaration
|
|
36
|
+
├─ client-v2.js # v2 client entry
|
|
37
|
+
├─ client.d.ts # v1 client entry type declaration
|
|
38
|
+
├─ client.js # v1 client entry
|
|
39
|
+
├─ server.d.ts # Server entry type declaration
|
|
40
|
+
├─ server.js # Server entry
|
|
41
|
+
└─ src
|
|
42
|
+
├─ index.ts # Default export server-side plugin
|
|
43
|
+
├─ client-v2 # v2 client-side code location
|
|
44
|
+
│ ├─ index.tsx # Default exported client-side plugin class
|
|
45
|
+
│ ├─ plugin.tsx # Plugin entry (extends @nocobase/client-v2 Plugin)
|
|
46
|
+
│ └─ client.d.ts
|
|
47
|
+
├─ client # v1 client-side code location
|
|
48
|
+
│ ├─ index.tsx
|
|
49
|
+
│ ├─ plugin.tsx
|
|
50
|
+
│ ├─ locale.ts
|
|
51
|
+
│ ├─ models
|
|
52
|
+
│ │ └─ index.ts
|
|
53
|
+
│ └─ client.d.ts
|
|
54
|
+
├─ server # Server-side code location
|
|
55
|
+
│ ├─ index.ts # Default exported server-side plugin class
|
|
56
|
+
│ ├─ plugin.ts # Plugin entry (extends @nocobase/server Plugin)
|
|
57
|
+
│ └─ collections # Server-side collections (empty directory initially)
|
|
58
|
+
└─ locale # Locale resources
|
|
59
|
+
├─ en-US.json
|
|
60
|
+
└─ zh-CN.json
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
The scaffold generates a minimal skeleton — `src/client-v2/` contains only entry files. The `models/` directory and `locale.ts` used in the following steps are ones you create yourself.
|
|
64
|
+
|
|
65
|
+
Next, start development mode so your code changes hot-reload:
|
|
66
|
+
|
|
67
|
+
- If the project was created with the NocoBase CLI (`nb init`), run this from the project root (`<app-path>`):
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
nb source dev
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- If you cloned the NocoBase source repository yourself, run this from the source root:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
yarn dev
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Once it is running, access the plugin manager page in your browser (default URL: http://localhost:13000/admin/settings/plugin-manager) to confirm whether the plugin appears in the list.
|
|
64
80
|
|
|
65
81
|
## Step 2: Implement a Simple Client Block
|
|
66
82
|
|
|
67
83
|
Next, we'll add a custom block model to the plugin to display a welcome message.
|
|
68
84
|
|
|
69
|
-
1. **Create
|
|
85
|
+
1. **Create the translation helper file** `src/client-v2/locale.ts`. `tExpr` declares a namespaced translation expression, and `useT` provides the translation function inside components:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { tExpr as _tExpr, useFlowEngine } from '@nocobase/flow-engine';
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
import pkg from '../../package.json';
|
|
91
|
+
|
|
92
|
+
export function useT() {
|
|
93
|
+
const engine = useFlowEngine();
|
|
94
|
+
return (str: string) => engine.context.t(str, { ns: [pkg.name, 'client'] });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function tExpr(key: string) {
|
|
98
|
+
return _tExpr(key, { ns: [pkg.name, 'client'] });
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
2. **Create a new block model file** `src/client-v2/models/HelloBlockModel.tsx`:
|
|
70
103
|
|
|
71
104
|
```tsx pure
|
|
72
|
-
import { BlockModel } from '@nocobase/client-v2';
|
|
73
105
|
import React from 'react';
|
|
74
|
-
import {
|
|
106
|
+
import { BlockModel } from '@nocobase/client-v2';
|
|
107
|
+
import { tExpr } from '../locale';
|
|
75
108
|
|
|
76
109
|
export class HelloBlockModel extends BlockModel {
|
|
77
110
|
renderComponent() {
|
|
@@ -89,18 +122,27 @@ HelloBlockModel.define({
|
|
|
89
122
|
});
|
|
90
123
|
```
|
|
91
124
|
|
|
92
|
-
|
|
125
|
+
3. **Register the block model**. Creating the model file is not enough on its own — the frontend runtime does not scan the `models/` directory automatically, so you have to register it explicitly in the plugin entry. Edit `src/client-v2/plugin.tsx` and declare how the model is loaded via `registerModelLoaders` inside `load()`:
|
|
93
126
|
|
|
94
|
-
```
|
|
95
|
-
import {
|
|
96
|
-
|
|
127
|
+
```tsx pure
|
|
128
|
+
import { Plugin } from '@nocobase/client-v2';
|
|
129
|
+
|
|
130
|
+
export class PluginHelloClientV2 extends Plugin {
|
|
131
|
+
async load() {
|
|
132
|
+
this.flowEngine.registerModelLoaders({
|
|
133
|
+
HelloBlockModel: {
|
|
134
|
+
loader: () => import('./models/HelloBlockModel'),
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
97
139
|
|
|
98
|
-
export default
|
|
99
|
-
HelloBlockModel,
|
|
100
|
-
} as Record<string, ModelConstructor>;
|
|
140
|
+
export default PluginHelloClientV2;
|
|
101
141
|
```
|
|
102
142
|
|
|
103
|
-
|
|
143
|
+
`registerModelLoaders` takes lazy-loading functions, so a model is only loaded once it is actually used. The key (`HelloBlockModel`) must match the model class name — the runtime uses it to pick the model class out of the module's named exports.
|
|
144
|
+
|
|
145
|
+
After saving the code, if you're running development mode, you should see hot-reload logs in the terminal output.
|
|
104
146
|
|
|
105
147
|
## Step 3: Activate and Test the Plugin
|
|
106
148
|
|
|
@@ -162,7 +204,7 @@ If the plugin is created in a source code repository, the first build will trigg
|
|
|
162
204
|
|
|
163
205
|
:::
|
|
164
206
|
|
|
165
|
-
After the build completes, the package file is located
|
|
207
|
+
After the build completes, the package file is located under `storage/tar/` by default, named `<package-name>-<version>.tgz` — for example, `storage/tar/@my-project/plugin-hello-0.1.0.tgz`.
|
|
166
208
|
|
|
167
209
|
:::tip
|
|
168
210
|
|
|
@@ -174,6 +216,12 @@ It's recommended to write test cases to verify core logic before publishing a pl
|
|
|
174
216
|
|
|
175
217
|
Upload and extract the package file to the target application's `./storage/plugins` directory. For detailed steps, see [Install and Upgrade Plugins](../get-started/install-upgrade-plugins.mdx).
|
|
176
218
|
|
|
219
|
+
If the target application was created with the NocoBase CLI (`nb init`), you can also import it directly with `nb plugin import` instead of extracting it manually:
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
nb plugin import /your/path/plugin-hello-0.1.0.tgz
|
|
223
|
+
```
|
|
224
|
+
|
|
177
225
|
## Related Links
|
|
178
226
|
|
|
179
227
|
- [Plugin Development Overview](./index.md) — Understand NocoBase microkernel architecture and plugin lifecycle
|