@agentscope-ai/chat 1.1.29 → 1.1.30
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.js +16 -74
- package/package.json +2 -3
- package/bin/cli.bundle.js +0 -3125
- package/bin/client.js +0 -14
- package/bin/template.html +0 -31
package/bin/client.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import Chat from '../lib/AgentScopeRuntimeWebUI/starter';
|
|
4
|
-
|
|
5
|
-
// 从 window 对象获取配置
|
|
6
|
-
const config = window.__AGENTSCOPE_CONFIG__ || {};
|
|
7
|
-
|
|
8
|
-
const App = () => {
|
|
9
|
-
return React.createElement(Chat);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
13
|
-
React.createElement(App)
|
|
14
|
-
);
|
package/bin/template.html
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>AgentScope Runtime WebUI</title>
|
|
7
|
-
<!-- 使用 UMD 版本的 React,避免依赖 node_modules -->
|
|
8
|
-
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
|
|
9
|
-
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
|
|
10
|
-
<style>
|
|
11
|
-
* {
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
}
|
|
16
|
-
html, body {
|
|
17
|
-
height: 100%;
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
#root {
|
|
21
|
-
height: 100vh;
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
</style>
|
|
25
|
-
</head>
|
|
26
|
-
<body>
|
|
27
|
-
<div id="root"></div>
|
|
28
|
-
<script type="module" src="/bin/client.js"></script>
|
|
29
|
-
</body>
|
|
30
|
-
</html>
|
|
31
|
-
|