@nocobase/plugin-ai 2.1.0-beta.2 → 2.1.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -1
  3. package/dist/client/2793ab2b95a86390.js +10 -0
  4. package/dist/client/index.js +1 -1
  5. package/dist/externalVersion.js +13 -13
  6. package/dist/node_modules/@langchain/anthropic/package.json +1 -1
  7. package/dist/node_modules/@langchain/core/package.json +1 -1
  8. package/dist/node_modules/@langchain/deepseek/package.json +1 -1
  9. package/dist/node_modules/@langchain/google-genai/package.json +1 -1
  10. package/dist/node_modules/@langchain/langgraph/package.json +1 -1
  11. package/dist/node_modules/@langchain/langgraph-checkpoint/package.json +1 -1
  12. package/dist/node_modules/@langchain/ollama/package.json +1 -1
  13. package/dist/node_modules/@langchain/openai/package.json +1 -1
  14. package/dist/node_modules/fast-glob/package.json +1 -1
  15. package/dist/node_modules/flexsearch/package.json +1 -1
  16. package/dist/node_modules/fs-extra/package.json +1 -1
  17. package/dist/node_modules/langchain/package.json +1 -1
  18. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  19. package/dist/node_modules/zod/package.json +1 -1
  20. package/dist/server/ai-employees/ai-employee.d.ts +1 -1
  21. package/dist/server/ai-employees/ai-employee.js +51 -56
  22. package/dist/server/collections/lc-checkpoint-blobs.js +2 -1
  23. package/dist/server/collections/lc-checkpoint-writes.js +1 -0
  24. package/dist/server/llm-providers/openai/completions.js +1 -1
  25. package/dist/server/llm-providers/provider.d.ts +1 -0
  26. package/dist/server/llm-providers/provider.js +9 -3
  27. package/dist/server/migrations/20250517214622-init-settings.js +1 -1
  28. package/dist/server/migrations/20250923221107-setup-build-in.js +1 -1
  29. package/dist/server/migrations/20260107000000-reset-builtin-about.js +1 -1
  30. package/dist/server/migrations/20260131000000-add-model-options.js +1 -1
  31. package/dist/server/migrations/20260225220347-alter-checkpoint-blob-field.d.ts +15 -0
  32. package/dist/server/migrations/20260225220347-alter-checkpoint-blob-field.js +63 -0
  33. package/dist/server/plugin.js +1 -0
  34. package/dist/server/resource/aiConversations.js +16 -1
  35. package/package.json +2 -2
  36. package/LICENSE.txt +0 -172
  37. package/dist/client/66c939b3395bb7c4.js +0 -10
@@ -471,7 +471,7 @@ class AIEmployee {
471
471
  if (err.name === "GraphRecursionError") {
472
472
  this.sendSpecificError({ name: err.name, message: err.message });
473
473
  } else {
474
- this.sendErrorResponse(err.message);
474
+ this.sendErrorResponse(provider.parseResponseError(err));
475
475
  }
476
476
  } finally {
477
477
  this.ctx.res.end();
@@ -813,70 +813,59 @@ If information is missing, clearly state it in the summary.</Important>`;
813
813
  } else {
814
814
  return;
815
815
  }
816
- const toolCalls = await this.aiToolMessagesRepo.find({
817
- filter: {
816
+ const toolMessages = (await this.aiToolMessagesModel.findAll({
817
+ where: {
818
+ sessionId: this.sessionId,
818
819
  messageId,
819
820
  invokeStatus: {
820
- $ne: "confirmed"
821
+ [import_database.Op.ne]: "confirmed"
821
822
  }
822
823
  }
823
- });
824
- if (!toolCalls || import_lodash.default.isEmpty(toolCalls)) {
824
+ })).map((it) => it.toJSON());
825
+ if (!toolMessages || import_lodash.default.isEmpty(toolMessages)) {
825
826
  return;
826
827
  }
827
828
  const { model, service } = await this.getLLMService();
828
829
  const toolCallMap = await this.getToolCallMap(messageId);
829
830
  const now = /* @__PURE__ */ new Date();
830
- const toolMessageContent = "The user rejected this tool invocation and needs to continue modifying the parameters.";
831
- await this.db.sequelize.transaction(async (transaction) => {
832
- for (const toolCall of toolCalls) {
833
- const [updated] = await this.aiToolMessagesModel.update(
831
+ const toolMessageContent = "The user ignored the application for tools usage and will continued to ask questions";
832
+ return await this.db.sequelize.transaction(async (transaction) => {
833
+ for (const toolMessage of toolMessages) {
834
+ await this.aiToolMessagesModel.update(
834
835
  {
835
- invokeStatus: "done",
836
- status: "error",
836
+ invokeStatus: "confirmed",
837
+ status: "success",
837
838
  content: toolMessageContent,
838
- invokeStartTime: toolCall.invokeStartTime ?? now,
839
- invokeEndTime: toolCall.invokeEndTime ?? now
839
+ invokeStartTime: toolMessage.invokeStartTime ?? now,
840
+ invokeEndTime: toolMessage.invokeEndTime ?? now
840
841
  },
841
842
  {
842
843
  where: {
843
- id: toolCall.id,
844
- invokeStatus: toolCall.invokeStatus
844
+ id: toolMessage.id,
845
+ invokeStatus: toolMessage.invokeStatus
845
846
  },
846
847
  transaction
847
848
  }
848
849
  );
849
- if (updated === 0) {
850
- continue;
851
- }
852
- await this.db.getRepository("aiConversations.messages", this.sessionId).create({
853
- values: toolCalls.map((toolCall2) => ({
854
- messageId: this.plugin.snowflake.generate(),
855
- role: "tool",
856
- content: {
857
- type: "text",
858
- content: toolMessageContent
859
- },
860
- metadata: {
861
- model,
862
- provider: service.provider,
863
- toolCall: toolCallMap.get(toolCall2.toolCallId),
864
- autoCall: toolCall2.auto
865
- },
866
- transaction
867
- }))
868
- });
869
- await this.aiToolMessagesRepo.update({
870
- filter: {
871
- messageId,
872
- toolCallId: toolCall.toolCallId
850
+ }
851
+ return await this.db.getRepository("aiConversations.messages", this.sessionId).create({
852
+ values: toolMessages.map((toolMessage) => ({
853
+ messageId: this.plugin.snowflake.generate(),
854
+ role: "tool",
855
+ content: {
856
+ type: "text",
857
+ content: toolMessageContent
873
858
  },
874
- values: {
875
- invokeStatus: "confirmed"
859
+ metadata: {
860
+ model,
861
+ provider: service.provider,
862
+ toolCall: toolCallMap.get(toolMessage.toolCallId),
863
+ toolCallId: toolMessage.toolCallId,
864
+ autoCall: toolMessage.auto
876
865
  },
877
866
  transaction
878
- });
879
- }
867
+ }))
868
+ });
880
869
  });
881
870
  }
882
871
  get logger() {
@@ -948,28 +937,34 @@ If information is missing, clearly state it in the summary.</Important>`;
948
937
  content = workContextStr + "\n" + content;
949
938
  }
950
939
  }
951
- const contents = [];
940
+ const contentBlocks = [];
952
941
  if (attachments == null ? void 0 : attachments.length) {
953
942
  for (const attachment of attachments) {
954
943
  const parsed = await provider.parseAttachment(this.ctx, attachment);
955
- contents.push(parsed);
944
+ contentBlocks.push(parsed);
956
945
  }
957
946
  if (content) {
958
- contents.push({
947
+ contentBlocks.push({
959
948
  type: "text",
960
949
  text: content
961
950
  });
962
951
  }
963
952
  }
964
- formattedMessages.push({
965
- role: "user",
966
- content: contents.length ? contents : content,
967
- additional_kwargs: {
968
- userContent,
969
- attachments,
970
- workContext
971
- }
972
- });
953
+ const role = "user";
954
+ const additional_kwargs = { userContent, attachments, workContext };
955
+ if (contentBlocks.length) {
956
+ formattedMessages.push({
957
+ role,
958
+ additional_kwargs,
959
+ contentBlocks
960
+ });
961
+ } else {
962
+ formattedMessages.push({
963
+ role,
964
+ additional_kwargs,
965
+ content
966
+ });
967
+ }
973
968
  continue;
974
969
  }
975
970
  if (msg.role === "tool") {
@@ -72,7 +72,8 @@ var lc_checkpoint_blobs_default = (0, import_database.defineCollection)({
72
72
  },
73
73
  {
74
74
  name: "blob",
75
- type: "blob"
75
+ type: "blob",
76
+ length: "long"
76
77
  }
77
78
  ]
78
79
  });
@@ -84,6 +84,7 @@ var lc_checkpoint_writes_default = (0, import_database.defineCollection)({
84
84
  {
85
85
  name: "blob",
86
86
  type: "blob",
87
+ length: "long",
87
88
  allowNull: false
88
89
  }
89
90
  ]
@@ -40,7 +40,7 @@ class OpenAICompletionsProvider extends import_provider.LLMProvider {
40
40
  const { responseFormat, structuredOutput } = this.modelOptions || {};
41
41
  const { schema } = structuredOutput || {};
42
42
  const responseFormatOptions = {
43
- type: responseFormat
43
+ type: responseFormat ?? "text"
44
44
  };
45
45
  if (responseFormat === "json_schema" && schema) {
46
46
  responseFormatOptions["json_schema"] = schema;
@@ -59,6 +59,7 @@ export declare abstract class LLMProvider {
59
59
  query: string;
60
60
  }[];
61
61
  parseResponseMetadata(output: LLMResult): any;
62
+ parseResponseError(err: any): any;
62
63
  }
63
64
  export interface EmbeddingProviderOptions {
64
65
  app: Application;
@@ -138,9 +138,12 @@ class LLMProvider {
138
138
  };
139
139
  } else {
140
140
  return {
141
- type: "input_file",
142
- filename: attachment.filename,
143
- file_data: data
141
+ type: "file",
142
+ mimeType: attachment.mimetype,
143
+ metadata: {
144
+ filename: attachment.filename
145
+ },
146
+ data
144
147
  };
145
148
  }
146
149
  }
@@ -205,6 +208,9 @@ class LLMProvider {
205
208
  parseResponseMetadata(output) {
206
209
  return [null, null];
207
210
  }
211
+ parseResponseError(err) {
212
+ return (err == null ? void 0 : err.message) ?? "Unexpected LLM service error";
213
+ }
208
214
  }
209
215
  class EmbeddingProvider {
210
216
  constructor(opts) {
@@ -33,7 +33,7 @@ var import_server = require("@nocobase/server");
33
33
  class init_settings_default extends import_server.Migration {
34
34
  on = "afterLoad";
35
35
  // 'beforeLoad' or 'afterLoad'
36
- appVersion = "<2.0.0";
36
+ appVersion = "<2.1.0";
37
37
  async up() {
38
38
  const aiSettings = await this.db.getRepository("aiSettings").findOne();
39
39
  if (aiSettings) {
@@ -33,7 +33,7 @@ var import_server = require("@nocobase/server");
33
33
  class setup_build_in_default extends import_server.Migration {
34
34
  on = "afterSync";
35
35
  // 'beforeLoad' or 'afterLoad'
36
- appVersion = "<2.0.0";
36
+ appVersion = "<2.1.0";
37
37
  async up() {
38
38
  await this.plugin.setupBuiltIn();
39
39
  }
@@ -32,7 +32,7 @@ module.exports = __toCommonJS(reset_builtin_about_exports);
32
32
  var import_server = require("@nocobase/server");
33
33
  class reset_builtin_about_default extends import_server.Migration {
34
34
  on = "afterSync";
35
- appVersion = "<2.0.0-beta.7";
35
+ appVersion = "<2.1.0";
36
36
  async up() {
37
37
  const repo = this.db.getRepository("aiEmployees");
38
38
  await repo.update({
@@ -32,7 +32,7 @@ module.exports = __toCommonJS(add_model_options_exports);
32
32
  var import_server = require("@nocobase/server");
33
33
  class add_model_options_default extends import_server.Migration {
34
34
  on = "afterLoad";
35
- appVersion = "<2.0.0";
35
+ appVersion = "<2.1.0";
36
36
  async up() {
37
37
  const collection = this.db.getCollection("llmServices");
38
38
  if (!collection) {
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Migration } from '@nocobase/server';
10
+ export default class extends Migration {
11
+ on: string;
12
+ appVersion: string;
13
+ up(): Promise<void>;
14
+ alterBlobField(collectionName: string, fieldName: string): Promise<void>;
15
+ }
@@ -0,0 +1,63 @@
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 alter_checkpoint_blob_field_exports = {};
28
+ __export(alter_checkpoint_blob_field_exports, {
29
+ default: () => alter_checkpoint_blob_field_default
30
+ });
31
+ module.exports = __toCommonJS(alter_checkpoint_blob_field_exports);
32
+ var import_server = require("@nocobase/server");
33
+ class alter_checkpoint_blob_field_default extends import_server.Migration {
34
+ on = "afterSync";
35
+ // 'beforeLoad' or 'afterLoad'
36
+ appVersion = "<2.1.0";
37
+ async up() {
38
+ if (!this.db.isMySQLCompatibleDialect()) {
39
+ return;
40
+ }
41
+ await this.alterBlobField("lcCheckpointWrites", "blob");
42
+ await this.alterBlobField("lcCheckpointBlobs", "blob");
43
+ }
44
+ async alterBlobField(collectionName, fieldName) {
45
+ var _a;
46
+ const collection = this.db.getCollection(collectionName);
47
+ if (!collection) {
48
+ return;
49
+ }
50
+ const field = collection.getField(fieldName);
51
+ if (!field) {
52
+ return;
53
+ }
54
+ if (((_a = field.options) == null ? void 0 : _a.length) !== "long") {
55
+ return;
56
+ }
57
+ await collection.sync({
58
+ force: false,
59
+ alter: true
60
+ });
61
+ this.app.log.info(`alter collection [${collectionName}] field [${fieldName}]`);
62
+ }
63
+ }
@@ -169,6 +169,7 @@ class PluginAIServer extends import_server.Plugin {
169
169
  this.app.acl.allow("ai", "listAllEnabledModels", "loggedIn");
170
170
  this.app.acl.allow("aiEmployees", "listByUser", "loggedIn");
171
171
  this.app.acl.allow("aiEmployees", "updateUserPrompt", "loggedIn");
172
+ this.app.acl.allow("aiTools", "list", "loggedIn");
172
173
  const workflowSnippet = this.app.acl.snippetManager.snippets.get("pm.workflow.workflows");
173
174
  if (workflowSnippet) {
174
175
  workflowSnippet.actions.push("ai:listModels");
@@ -400,7 +400,22 @@ var aiConversations_default = {
400
400
  model,
401
401
  legacy
402
402
  );
403
- await aiEmployee.cancelToolCall();
403
+ if (!editingMessageId) {
404
+ const toolMessages = await aiEmployee.cancelToolCall();
405
+ if (toolMessages == null ? void 0 : toolMessages.length) {
406
+ for (let i = toolMessages.length - 1; i >= 0; i--) {
407
+ const toolMessage = toolMessages[i];
408
+ messages.unshift({
409
+ role: toolMessage.role,
410
+ content: toolMessage.content,
411
+ toolCalls: toolMessage.toolCalls,
412
+ attachments: toolMessage.attachments,
413
+ workContext: toolMessage.workContext,
414
+ metadata: toolMessage.metadata
415
+ });
416
+ }
417
+ }
418
+ }
404
419
  if (shouldStream) {
405
420
  await aiEmployee.stream({ userMessages: messages, messageId: editingMessageId });
406
421
  } else {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Create AI employees with diverse skills to collaborate with humans, build systems, and handle business operations.",
7
7
  "description.ru-RU": "Поддержка интеграции с AI-сервисами: предоставляются AI-узлы для рабочих процессов, расширяя возможности бизнес-обработки.",
8
8
  "description.zh-CN": "创建各种技能的 AI 员工,与人类协同,搭建系统,处理业务。",
9
- "version": "2.1.0-beta.2",
9
+ "version": "2.1.0-beta.5",
10
10
  "main": "dist/server/index.js",
11
11
  "homepage": "https://docs.nocobase.com/handbook/action-ai",
12
12
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/action-ai",
@@ -51,5 +51,5 @@
51
51
  "keywords": [
52
52
  "AI"
53
53
  ],
54
- "gitHead": "d80433799fb4a8d59ded4d7eea114d585a137ea0"
54
+ "gitHead": "9c70818fb54a8fbd36378192bc4bbe45c2634905"
55
55
  }
package/LICENSE.txt DELETED
@@ -1,172 +0,0 @@
1
- Updated Date: October 2, 2025
2
-
3
- NocoBase License Agreement
4
-
5
- NOCOBASE PTE. LTD.,a Singaporean Exempt Private Company Limited by Shares with its principal place of business located at 112 ROBINSON ROAD, #03-01, SINGAPORE ("The Company") https://www.nocobase.com/ issues this License Agreement ("Agreement") to you. You, as an individual or a company ("The User"), will be deemed to voluntarily accept all terms of this Agreement by using NocoBase (including but not limited to obtaining NocoBase source code or installation package in any form, installing and using NocoBase, purchasing NocoBase commercial license and services, purchasing NocoBase commercial plugins). If the User does not agree to any term of this Agreement, or cannot accurately understand our interpretation of the relevant terms, please stop using it immediately.
6
-
7
- This Agreement applies to any use, quotation, contract, invoice, and all software delivered by the Company. The User and the Company or NocoBase's agents can no longer sign a separate license agreement for the sale and delivery of the software.
8
-
9
- The Company reserves the right to formulate and modify this Agreement from time to time as needed. If there are changes, the Company will announce them in the form of website announcements, without further individual notification. The changed Agreement will automatically take effect once it is announced, becoming part of this Agreement.
10
-
11
- ==============
12
- 1. Definitions
13
- ==============
14
-
15
- 1.1 "Software" refers to the NocoBase kernel and plugins placed in the same code repository as the kernel, including their source code, installation packages, images, and all their modifications, updates, and upgrades.
16
-
17
- 1.2 "Community Edition" refers to the free version of the Software provided to the User through public channels.
18
-
19
- 1.3 "Commercial Edition" refers to the paid version of the Software purchased by the User from the Company or its agents, downloaded through exclusive channels, and includes additional benefits. It consists of three versions: Standard Edition, Professional Edition, and Enterprise Edition.
20
-
21
- 1.4 "Marketplace" refers to the marketplace provided by the Company for selling Software plugins and solutions.
22
-
23
- 1.5 "Commercial Plugin" refers to the paid plugins sold in the Marketplace.
24
-
25
- 1.6 "Upper Layer Application" refers to a specific business use case application serving internal or external customers of the User, developed based on Software and Commercial Plugins, such as ERP/CRM.
26
-
27
- 1.7 "Customer" refers to the clients who purchase the User's Upper Layer Application.
28
-
29
- 1.8 "Third-Party Open Source Software" refers to open source software provided with Software and Commercial Plugins. They are licensed through various published open source software licenses or copyright notices accompanying such software.
30
-
31
- ===================================
32
- 2. Intellectual Property Protection
33
- ===================================
34
-
35
- Except for Third-Party Open Source Software, the Company owns all copyrights, trademark rights, patent rights, trade secrets, and other intellectual property rights of the Software, and has registered and protected them in relevant countries and regions according to the "Paris Convention" or "TRIPS Agreement", ensuring that the intellectual property rights of the Software and Commercial Plugins are internationally recognized and protected.
36
-
37
- =============
38
- 3. Disclaimer
39
- =============
40
-
41
- 3.1 The User shall not use the Software and Commercial Plugins to engage in activities that contravene applicable laws and regulations or offend against public order or religious prohibitions. All legal liabilities and consequences arising from the User’s use shall be borne by the User.
42
-
43
- 3.2 The Company shall not be liable for any direct, indirect, special, incidental, or consequential damages (including but not limited to loss of profits, business interruption, data loss, or business information disclosure) caused by the User's use of the Software and Commercial Plugins, even if it has been previously informed of the possibility of such damages.
44
-
45
- ===============
46
- 4. License Type
47
- ===============
48
-
49
- 4.1 This Agreement serves as the unified license agreement for NocoBase Software, applying to both the Community Edition and the Commercial Editions.
50
-
51
- 4.2 For the Community Edition, this Agreement incorporates and references the full text of the GNU Affero General Public License v3.0 (“AGPL-3.0”, available at: https://www.gnu.org/licenses/agpl-3.0.html ). Community Edition users must comply with the AGPL-3.0 License as well as the supplementary terms set forth in this Agreement. In case of any inconsistency between AGPL-3.0 and this Agreement, the supplementary terms of this Agreement shall prevail.
52
-
53
- 4.3 For the Commercial Edition (including Standard, Professional, and Enterprise Editions), only the Commercial License terms contained in this Agreement apply. Commercial Edition users are not subject to AGPL-3.0 obligations.
54
-
55
- 4.4 For Commercial Plugins, only the Commercial Plugin License terms contained in this Agreement apply.
56
-
57
- ================================================
58
- 5. Rights and Obligations of Open Source License
59
- ================================================
60
-
61
- 5.1 The Software can be used for commercial purposes.
62
-
63
- 5.2 The User can sell plugins developed for the Software in the Marketplace.
64
-
65
- 5.3 Outside the Marketplace, changes and plugins to the Software developed by the User or third parties, and third-party applications developed based on the Software must all be open-sourced under the AGPL-3.0 license.
66
-
67
- 5.4 It is not allowed to remove or change the brand, name, link, version number, license, and other information about NocoBase on the Software interface, except for the main LOGO in the upper left corner of the page.
68
-
69
- 5.5 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
70
-
71
- 5.6 It is not allowed to provide to the public any form of no-code, zero-code, or low-code platform SaaS/PaaS products using the original or modified Software.
72
-
73
- 5.7 Comply with all requirements of the AGPL-3.0 License, including but not limited to:
74
- (a) Any modifications, extensions, or derivative works of the Software must be released under the AGPL-3.0 License;
75
- (b) If Upper Layer Applications are provided as a network service (including SaaS or PaaS), the complete corresponding source code must be made available to all users of the service;
76
- (c) The Software may not be combined with other software under incompatible licenses in a manner that would violate the AGPL-3.0 License;
77
- (d) No additional contractual restrictions may be imposed when redistributing the Software.
78
-
79
- ===============================
80
- 6. Rights of Commercial License
81
- ===============================
82
-
83
- 6.1 Obtain a permanent commercial license of the Software.
84
-
85
- 6.2 Get software upgrades and exclusive technical support during the upgrade validity period.
86
-
87
- 6.3 The licensed Software can be used for commercial purposes with no restrictions on the number of applications and users.
88
-
89
- 6.4 Changes and plugins to the Software, and applications integrated with the Software do not need to be open sourced.
90
-
91
- 6.5 Can remove or change the brand, name, link, version number, license, and other information about NocoBase on the Software interface.
92
-
93
- 6.6 Can sell plugins developed for Software in the Marketplace.
94
-
95
- 6.7 The User holding a Professional or Enterprise Edition License can sell Upper Layer Application to its Customers.
96
-
97
- 6.8 Exemption from AGPL-3.0 obligations, including but not limited to:
98
- (a) the requirement to release source code of modifications, extensions, or derivative works;
99
- (b) the requirement to provide source code when offering the Software as a network service;
100
- (c) restrictions on combining the Software with other software under different license terms; and
101
- (d) limitations on adding contractual terms for redistribution.
102
- The User remains bound by this Agreement and by its commercial license contract.
103
-
104
- 6.9 If there are other agreements in the contract for the above rights, the contract agreement shall prevail.
105
-
106
- ====================================
107
- 7. Obligations of Commercial License
108
- ====================================
109
-
110
- 7.1 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
111
-
112
- 7.2 It is not allowed to sell, transfer, lease, share, gift, or distribute the Commercial License.
113
-
114
- 7.3 It is not allowed to sell, transfer, lease, share, or distribute any form of no-code, zero-code, low-code platform, or developer tools developed based on Software.
115
-
116
- 7.4 It is not allowed to provide any form of no-code, zero-code, low-code platform SaaS/PaaS products to the public using the original or modified Software.
117
-
118
- 7.5 It is not allowed for the User holding a Standard Edition license to sell Upper Layer Application to Customers without a Commercial license.
119
-
120
- 7.6 It is not allowed for the User holding a Professional or Enterprise Edition license to sell Upper Layer Application to Customers without a Commercial license with access to further development and configuration.
121
-
122
- 7.7 It is not allowed to publicly sell plugins developed for Software outside of the Marketplace.
123
-
124
- 7.8 If there is a violation of the above obligations or the terms of this Agreement, the rights owned by the User will be immediately terminated, the paid fees will not be refunded, and the Company reserves the right to pursue the User's legal responsibility.
125
-
126
- 7.9 If there are other agreements in the contract for the above obligations, the contract agreement shall prevail.
127
-
128
- ======================================
129
- 8. Rights of Commercial Plugin License
130
- ======================================
131
-
132
- 8.1 Obtain a permanent Commercial Plugin License for the Commercial Plugin.
133
-
134
- 8.2 Receive plugin upgrades and exclusive technical support during the upgrade validity period.
135
-
136
- 8.3 Can be used for commercial purposes without restrictions on the number of applications or users.
137
-
138
- 8.4 The User holding a Professional or Enterprise Edition License can use the Commercial Plugin in Upper Layer Applications sold to its customers.
139
-
140
- 8.5 Exemption from AGPL-3.0 obligations.
141
-
142
- 8.6 If there are other agreements in the contract regarding the above rights, the contract agreement shall prevail.
143
-
144
- ===========================================
145
- 9. Obligations of Commercial Plugin License
146
- ===========================================
147
-
148
- 9.1 It is not allowed to remove or change any intellectual property statements about NocoBase and the plugin authors in the code.
149
-
150
- 9.2 It is not allowed to sell, transfer, lease, share, or gift the Commercial Plugin.
151
-
152
- 9.3 It is not allowed to use reverse engineering, decompilation, or other methods to attempt to discover the source code of Commercial Plugins without obtaining a source code license.
153
-
154
- 9.4 It is not allowed to disclose the source code of Commercial Plugins to any third party.
155
-
156
- 9.5 It is not allowed for the User holding a Community or Standard Edition license to use Commercial Plugins in Upper Layer Applications sold to its customers. Such Commercial Plugins are limited to internal use within the licensed company only.
157
-
158
- 9.6 If there is any violation of the above obligations or the terms of this Agreement, the rights owned by the User will be immediately terminated, the paid fees will not be refunded, and the Company reserves the right to pursue the User's legal responsibility.
159
-
160
- 9.7 If there are other agreements in the contract regarding the above obligations, the contract agreement shall prevail.
161
-
162
- =============================================================
163
- 10. Legal Jurisdiction, Interpretation, and Dispute Resolution
164
- =============================================================
165
-
166
- 10.1 Except for Mainland China, the interpretation, application, and all matters related to this agreement are subject to the jurisdiction of Singapore law.
167
-
168
- 10.2 Any dispute related to this Agreement should first be resolved through friendly negotiation. If the negotiation fails to resolve the dispute, the dispute should be submitted to the International Chamber of Commerce (ICC) for arbitration. The arbitration venue should be Singapore, conducted in English.
169
-
170
- 10.3 All terms and conditions of this Agreement shall be deemed enforceable to the maximum extent permitted by applicable law. If any term of this Agreement is deemed invalid by any applicable law, the invalidity of that term does not affect the validity of any other term of this Agreement, and it should be deemed that the invalid term has been modified as much as possible to make it valid and enforceable, or if the term cannot be modified, it should be deemed to have been deleted from this Agreement.
171
-
172
- 10.4 The arbitration award is final, binding on both parties, and can be enforced in any court with jurisdiction.