@nocobase/plugin-ai 2.0.0-alpha.56 → 2.0.0-alpha.57

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 (42) hide show
  1. package/dist/client/1e2575d69d11cc58.js +10 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/externalVersion.js +11 -11
  4. package/dist/locale/en-US.json +8 -4
  5. package/dist/locale/zh-CN.json +8 -4
  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/ollama/package.json +1 -1
  11. package/dist/node_modules/@langchain/openai/package.json +1 -1
  12. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  13. package/dist/node_modules/zod/package.json +1 -1
  14. package/dist/node_modules/zod-to-json-schema/package.json +1 -1
  15. package/dist/server/ai-employees/ai-employee.d.ts +1 -1
  16. package/dist/server/ai-employees/ai-employee.js +10 -11
  17. package/dist/server/ai-employees/built-in/ai-coding/index.js +4 -0
  18. package/dist/server/ai-employees/built-in/ai-coding/prompt_en.md +7 -10
  19. package/dist/server/ai-employees/built-in/data-modeling/index.js +4 -0
  20. package/dist/server/ai-employees/built-in/data-organizer/index.js +4 -0
  21. package/dist/server/ai-employees/built-in/data-visualization/index.js +1 -0
  22. package/dist/server/ai-employees/built-in/data-visualization/prompt.js +3 -1
  23. package/dist/server/ai-employees/built-in/insights-analyst/index.js +4 -0
  24. package/dist/server/ai-employees/built-in/research-analyst/index.js +4 -0
  25. package/dist/server/ai-employees/built-in/translator/index.js +4 -0
  26. package/dist/server/manager/ai-chat-conversation.js +14 -6
  27. package/dist/server/manager/built-in-manager.js +0 -2
  28. package/dist/server/plugin.d.ts +5 -0
  29. package/dist/server/plugin.js +27 -2
  30. package/dist/server/resource/aiConversations.js +5 -8
  31. package/dist/server/tools/data-modeling.d.ts +1 -0
  32. package/dist/server/tools/data-modeling.js +88 -25
  33. package/dist/server/utils.d.ts +1 -0
  34. package/dist/server/utils.js +17 -0
  35. package/package.json +2 -2
  36. package/dist/client/adcb0e115e38e1a9.js +0 -10
  37. package/dist/server/ai-employees/built-in/form-filler/index.d.ts +0 -37
  38. package/dist/server/ai-employees/built-in/form-filler/index.js +0 -60
  39. package/dist/server/ai-employees/built-in/form-filler/profile.d.ts +0 -27
  40. package/dist/server/ai-employees/built-in/form-filler/profile.js +0 -60
  41. package/dist/server/ai-employees/built-in/form-filler/prompt.d.ts +0 -12
  42. package/dist/server/ai-employees/built-in/form-filler/prompt.js +0 -39
@@ -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 form_filler_exports = {};
38
- __export(form_filler_exports, {
39
- default: () => form_filler_default
40
- });
41
- module.exports = __toCommonJS(form_filler_exports);
42
- var import_profile = __toESM(require("./profile"));
43
- var form_filler_default = {
44
- username: "avery",
45
- description: "AI employee for form filling",
46
- profile: import_profile.default,
47
- skillSettings: {
48
- skills: [
49
- { name: "frontend-formFiller", autoCall: true },
50
- {
51
- name: "dataSource-dataSourceCounting",
52
- autoCall: true
53
- },
54
- {
55
- name: "dataSource-dataSourceQuery",
56
- autoCall: true
57
- }
58
- ]
59
- }
60
- };
@@ -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-045-female",
46
- nickname: "Avery",
47
- position: "Form filler",
48
- bio: "I specialize in extracting structured fields from unstructured input and completing forms quickly and accurately. Your reliable partner in form handling.",
49
- greeting: "Hi, I\u2019m Avery. Send me the form and the content you\u2019d like filled in\u2014I\u2019ll take care of the rest.",
50
- about: import_prompt.default["en-US"]
51
- },
52
- "zh-CN": {
53
- avatar: "nocobase-045-female",
54
- nickname: "Avery",
55
- position: "\u8868\u5355\u52A9\u7406",
56
- bio: "\u6211\u64C5\u957F\u4ECE\u975E\u7ED3\u6784\u5316\u8F93\u5165\u4E2D\u63D0\u53D6\u7ED3\u6784\u5316\u5B57\u6BB5\uFF0C\u5E76\u5FEB\u901F\u51C6\u786E\u5730\u5B8C\u6210\u8868\u5355\u586B\u5199\u3002\u6211\u662F\u60A8\u5904\u7406\u8868\u5355\u65F6\u7684\u53EF\u9760\u4F19\u4F34\u3002",
57
- greeting: "\u55E8\uFF0C\u6211\u662F Avery\u3002\u8BF7\u7ED9\u6211\u8868\u5355\u548C\u60A8\u60F3\u586B\u5199\u7684\u5185\u5BB9\uFF0C\u6211\u8D1F\u8D23\u5904\u7406\u3002",
58
- about: import_prompt.default["en-US"]
59
- }
60
- };
@@ -1,12 +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': string;
11
- };
12
- export default _default;
@@ -1,39 +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
- var prompt_default = {
33
- "en-US": `You are Avery, a professional and reliable form assistant. The user will provide a form definition (with field definitions) and unstructured content to be filled. Your tasks:
34
- 1. Parse the form definition to identify the fields;
35
- 2. Extract corresponding values from the content;
36
- 3. Build a structured data object in JSON;
37
- 4. Call formFiller tool to fill in the form;
38
- 5. If user requests for generating data for multiple forms, the response should be separated.Unless an error occurs or the user asks for explanation, keep your response natural, focused, and execution-oriented.`
39
- };