@nocobase/plugin-ai 2.4.0-alpha.1 → 2.4.0-alpha.3
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/ops-management/migration-manager/built-in-tables.md +0 -1
- package/dist/client/{705.a4fe26945d175e8a.js → 705.1d735e63c25f66a8.js} +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client-v2/{705.f2e1b26a3f000075.js → 705.00c101bef403fb44.js} +1 -1
- package/dist/client-v2/index.js +2 -2
- package/dist/client-v2/workflow/types.d.ts +1 -0
- package/dist/externalVersion.js +15 -15
- package/dist/locale/de-DE.json +0 -11
- package/dist/locale/en-US.json +1 -12
- package/dist/locale/es-ES.json +0 -11
- package/dist/locale/fr-FR.json +0 -11
- package/dist/locale/hu-HU.json +0 -11
- package/dist/locale/id-ID.json +0 -11
- package/dist/locale/it-IT.json +0 -11
- package/dist/locale/ja-JP.json +0 -11
- package/dist/locale/ko-KR.json +0 -11
- package/dist/locale/nl-NL.json +0 -11
- package/dist/locale/pt-BR.json +0 -11
- package/dist/locale/ru-RU.json +0 -11
- package/dist/locale/tr-TR.json +0 -11
- package/dist/locale/uk-UA.json +0 -11
- package/dist/locale/vi-VN.json +0 -11
- package/dist/locale/zh-CN.json +1 -12
- package/dist/locale/zh-TW.json +0 -11
- 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/manager/ai-context-datasource-manager.d.ts +10 -12
- package/dist/server/manager/ai-context-datasource-manager.js +0 -3
- package/dist/server/plugin.d.ts +0 -4
- package/dist/server/plugin.js +1 -14
- package/dist/server/workflow/nodes/employee/files.d.ts +1 -1
- package/dist/server/workflow/nodes/employee/files.js +48 -1
- package/dist/server/workflow/nodes/employee/index.js +7 -2
- package/dist/server/workflow/nodes/employee/types.d.ts +1 -0
- package/package.json +2 -2
- package/dist/client-v2/ai-employees/context/datasource.d.ts +0 -10
- package/dist/client-v2/ai-employees/datasource/DatasourceSelector.d.ts +0 -21
- package/dist/client-v2/pages/DatasourceSettingsPage.d.ts +0 -62
- package/dist/collections/ai-context-datasource.d.ts +0 -25
- package/dist/collections/ai-context-datasource.js +0 -89
- package/dist/server/collections/ai-context-datasource.d.ts +0 -10
- package/dist/server/collections/ai-context-datasource.js +0 -44
- package/dist/server/resource/aiContextDatasources.d.ts +0 -10
- package/dist/server/resource/aiContextDatasources.js +0 -45
|
@@ -1,44 +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 ai_context_datasource_exports = {};
|
|
38
|
-
__export(ai_context_datasource_exports, {
|
|
39
|
-
default: () => ai_context_datasource_default
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(ai_context_datasource_exports);
|
|
42
|
-
var import_database = require("@nocobase/database");
|
|
43
|
-
var import_ai_context_datasource = __toESM(require("../../collections/ai-context-datasource"));
|
|
44
|
-
var ai_context_datasource_default = (0, import_database.defineCollection)(import_ai_context_datasource.default);
|
|
@@ -1,10 +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
|
-
import { ResourceOptions } from '@nocobase/resourcer';
|
|
10
|
-
export declare const aiContextDatasources: ResourceOptions;
|
|
@@ -1,45 +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 aiContextDatasources_exports = {};
|
|
28
|
-
__export(aiContextDatasources_exports, {
|
|
29
|
-
aiContextDatasources: () => aiContextDatasources
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(aiContextDatasources_exports);
|
|
32
|
-
const aiContextDatasources = {
|
|
33
|
-
name: "aiContextDatasources",
|
|
34
|
-
actions: {
|
|
35
|
-
preview: async (ctx, next) => {
|
|
36
|
-
const plugin = ctx.app.pm.get("ai");
|
|
37
|
-
ctx.body = await plugin.aiContextDatasourceManager.preview(ctx, ctx.action.params.values);
|
|
38
|
-
next();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
-
0 && (module.exports = {
|
|
44
|
-
aiContextDatasources
|
|
45
|
-
});
|