@agentscope-ai/chat 1.1.35 → 1.1.36
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 +10 -9
- package/package.json +3 -3
package/bin/cli.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const { program } = require('commander');
|
|
4
4
|
const { execSync } = require('child_process');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
program
|
|
7
|
+
.name('agentscope-runtime-webui')
|
|
8
|
+
.description('启动 AgentScope Runtime WebUI 服务')
|
|
9
|
+
.option('-u, --url <url>', '指定后端 API 地址')
|
|
10
|
+
.option('-t, --token <token>', '指定认证 token')
|
|
11
|
+
.parse(process.argv);
|
|
12
|
+
|
|
13
|
+
const options = program.opts();
|
|
12
14
|
|
|
13
|
-
// const options = program.opts();
|
|
14
15
|
|
|
15
16
|
async function startServer() {
|
|
16
17
|
console.log('\n🚀 Starting AgentScope Runtime WebUI...\n');
|
|
@@ -24,7 +25,7 @@ async function startServer() {
|
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
execSync(
|
|
27
|
-
|
|
28
|
+
`cd agentscope-runtime/web/starter_webui && npm install && BASE_URL=${options.url} TOKEN=${options.token} npm run dev`,
|
|
28
29
|
{
|
|
29
30
|
stdio: 'inherit',
|
|
30
31
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentscope-ai/chat",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
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,8 @@
|
|
|
104
104
|
"xstate": "^5.19.4",
|
|
105
105
|
"zustand": "^5.0.3",
|
|
106
106
|
"vite": "^5.4.11",
|
|
107
|
-
"antd": "^5.18.0"
|
|
107
|
+
"antd": "^5.18.0",
|
|
108
|
+
"commander": "^12.1.0"
|
|
108
109
|
},
|
|
109
110
|
"devDependencies": {
|
|
110
111
|
"@agentscope-ai/dumi-theme-spark": "0.0.98",
|
|
@@ -118,7 +119,6 @@
|
|
|
118
119
|
"@types/react-dom": "^18.0.0",
|
|
119
120
|
"@umijs/lint": "^4.0.0",
|
|
120
121
|
"@umijs/plugins": "^4.4.11",
|
|
121
|
-
"commander": "^12.1.0",
|
|
122
122
|
"dumi": "^2.4.13",
|
|
123
123
|
"esbuild": "^0.19.12",
|
|
124
124
|
"eslint": "^8.23.0",
|