@tachybase/plugin-ai-chat 1.3.20 → 1.3.22

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.
@@ -1,15 +1,12 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.20",
4
- "@ant-design/icons": "5.5.2",
3
+ "@tachybase/client": "1.3.22",
4
+ "@ant-design/icons": "5.6.1",
5
5
  "antd": "5.22.5",
6
- "@tachybase/server": "1.3.20",
6
+ "@tego/server": "1.3.39",
7
7
  "antd-style": "3.7.1",
8
- "@tachybase/schema": "1.3.20",
8
+ "@tachybase/schema": "1.3.39",
9
9
  "lodash": "4.17.21",
10
10
  "react-i18next": "15.2.0",
11
- "@tachybase/actions": "1.3.20",
12
- "@tachybase/utils": "1.3.20",
13
- "axios": "1.7.7",
14
- "@tachybase/database": "1.3.20"
11
+ "axios": "1.7.7"
15
12
  };
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare class AIChatController {
3
3
  handleMessage(ctx: Context, next: Next): Promise<void>;
4
4
  getAIsetting(ctx: Context, next: Next): Promise<void>;
@@ -74,10 +74,10 @@ __export(aichat_controller_exports, {
74
74
  AIChatController: () => AIChatController
75
75
  });
76
76
  module.exports = __toCommonJS(aichat_controller_exports);
77
- var import_utils = require("@tachybase/utils");
77
+ var import_server = require("@tego/server");
78
78
  var import_axios = __toESM(require("axios"));
79
79
  var _setAIsetting_dec, _getAIsetting_dec, _handleMessage_dec, _AIChatController_decorators, _init;
80
- _AIChatController_decorators = [(0, import_utils.Controller)("aichat")], _handleMessage_dec = [(0, import_utils.Action)("sendMessage", { acl: "loggedIn" })], _getAIsetting_dec = [(0, import_utils.Action)("get", { acl: "private" })], _setAIsetting_dec = [(0, import_utils.Action)("set", { acl: "private" })];
80
+ _AIChatController_decorators = [(0, import_server.Controller)("aichat")], _handleMessage_dec = [(0, import_server.Action)("sendMessage", { acl: "loggedIn" })], _getAIsetting_dec = [(0, import_server.Action)("get", { acl: "private" })], _setAIsetting_dec = [(0, import_server.Action)("set", { acl: "private" })];
81
81
  class AIChatController {
82
82
  constructor() {
83
83
  __runInitializers(_init, 5, this);
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginAiChatServer extends Plugin {
3
3
  load(): Promise<void>;
4
4
  }
@@ -66,7 +66,7 @@ __export(plugin_exports, {
66
66
  default: () => plugin_default
67
67
  });
68
68
  module.exports = __toCommonJS(plugin_exports);
69
- var import_server = require("@tachybase/server");
69
+ var import_server = require("@tego/server");
70
70
  var import_aichat_controller = require("./actions/aichat-controller");
71
71
  var _PluginAiChatServer_decorators, _init, _a;
72
72
  _PluginAiChatServer_decorators = [(0, import_server.InjectedPlugin)({
package/package.json CHANGED
@@ -1,30 +1,26 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-ai-chat",
3
3
  "displayName": "AI Chat",
4
- "version": "1.3.20",
4
+ "version": "1.3.22",
5
5
  "description": "AI chatbot, providing operational help, intelligent Q&A",
6
6
  "keywords": [
7
7
  "Others"
8
8
  ],
9
9
  "main": "dist/server/index.js",
10
10
  "devDependencies": {
11
- "@ant-design/icons": "^5.5.2",
11
+ "@ant-design/icons": "^5.6.1",
12
12
  "@ant-design/x": "^1.4.0",
13
+ "@tachybase/schema": "^1.3.39",
14
+ "@tachybase/test": "^1.3.39",
15
+ "@tego/client": "^1.3.39",
16
+ "@tego/server": "^1.3.39",
13
17
  "antd": "5.22.5",
14
18
  "antd-style": "3.7.1",
15
19
  "axios": "1.7.7",
16
- "lodash": "^4.17.21",
20
+ "lodash": "4.17.21",
17
21
  "openai": "^5.10.1",
18
- "react-i18next": "^15.2.0"
19
- },
20
- "peerDependencies": {
21
- "@tachybase/actions": "1.3.20",
22
- "@tachybase/client": "1.3.20",
23
- "@tachybase/schema": "1.3.20",
24
- "@tachybase/server": "1.3.20",
25
- "@tachybase/test": "1.3.20",
26
- "@tachybase/database": "1.3.20",
27
- "@tachybase/utils": "1.3.20"
22
+ "react-i18next": "15.2.0",
23
+ "@tachybase/client": "1.3.22"
28
24
  },
29
25
  "description.zh-CN": "AI聊天机器人,提供操作帮助,智能问答",
30
26
  "displayName.zh-CN": "AI聊天"