@agentscope-ai/chat 1.1.26 → 1.1.28

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/bin/cli.bundle.js CHANGED
@@ -3065,7 +3065,13 @@ async function startServer() {
3065
3065
  resolve: {
3066
3066
  dedupe: ["react", "react-dom"],
3067
3067
  alias: {
3068
- "@agentscope-ai/chat": path.resolve(projectRoot, "components/index.ts")
3068
+ "@agentscope-ai/chat": path.resolve(projectRoot, "lib/index.js")
3069
+ }
3070
+ },
3071
+ build: {
3072
+ commonjsOptions: {
3073
+ include: [/node_modules/],
3074
+ transformMixedEsModules: true
3069
3075
  }
3070
3076
  },
3071
3077
  plugins: [
package/bin/cli.js CHANGED
@@ -40,7 +40,14 @@ async function startServer() {
40
40
  resolve: {
41
41
  dedupe: ['react', 'react-dom'],
42
42
  alias: {
43
- '@agentscope-ai/chat': path.resolve(projectRoot, 'components/index.ts'),
43
+ '@agentscope-ai/chat': path.resolve(projectRoot, 'lib/index.js'),
44
+ }
45
+ },
46
+
47
+ build: {
48
+ commonjsOptions: {
49
+ include: [/node_modules/],
50
+ transformMixedEsModules: true
44
51
  }
45
52
  },
46
53
  plugins: [
package/bin/client.js CHANGED
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
1
+ import * as React from 'react';
2
+ import * as ReactDOM from 'react-dom/client';
3
3
  import Chat from '../lib/AgentScopeRuntimeWebUI/starter';
4
4
 
5
5
 
@@ -12,5 +12,4 @@ const App = () => {
12
12
 
13
13
  ReactDOM.createRoot(document.getElementById('root')).render(
14
14
  React.createElement(App)
15
- );
16
-
15
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [
@@ -104,7 +104,10 @@
104
104
  "uuid": "^11.0.5",
105
105
  "xstate": "^5.19.4",
106
106
  "zustand": "^5.0.3",
107
- "vite": "^5.4.11"
107
+ "vite": "^5.4.11",
108
+ "antd": "^5.18.0",
109
+ "react": "^18.0.0",
110
+ "react-dom": "^18.0.0"
108
111
  },
109
112
  "devDependencies": {
110
113
  "@agentscope-ai/dumi-theme-spark": "0.0.98",
@@ -118,7 +121,6 @@
118
121
  "@types/react-dom": "^18.0.0",
119
122
  "@umijs/lint": "^4.0.0",
120
123
  "@umijs/plugins": "^4.4.11",
121
- "antd": "^5.18.0",
122
124
  "commander": "^12.1.0",
123
125
  "dumi": "^2.4.13",
124
126
  "esbuild": "^0.19.12",
@@ -130,8 +132,6 @@
130
132
  "prettier": "^2.7.1",
131
133
  "prettier-plugin-organize-imports": "^3.0.0",
132
134
  "prettier-plugin-packagejson": "^2.2.18",
133
- "react": "^18.0.0",
134
- "react-dom": "^18.0.0",
135
135
  "stylelint": "^14.9.1",
136
136
  "tailwindcss": "^3.4.17",
137
137
  "vaso": "^0.4.0"
@@ -140,7 +140,6 @@
140
140
  "@agentscope-ai/design": "^1.0.0",
141
141
  "@ant-design/icons": "^5.0.1",
142
142
  "antd": "^5.18.0",
143
- "classnames": "^2.5.1",
144
143
  "react": ">=16.9.0",
145
144
  "react-dom": ">=16.9.0"
146
145
  },