@agentscope-ai/chat 1.1.27 → 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 +7 -1
- package/bin/cli.js +8 -1
- package/bin/client.js +3 -4
- package/package.json +1 -1
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, "
|
|
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, '
|
|
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
|
+
);
|