xiaozuoassistant 0.1.89 → 0.1.90
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/dist/client/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍇</text></svg>" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>xiaozuoAssistant</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CeZj6go3.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-Be5IGwUA.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/server/index.js
CHANGED
|
@@ -238,13 +238,15 @@ app.get('/api/config', async (req, res) => {
|
|
|
238
238
|
systemPrompt: config.systemPrompt,
|
|
239
239
|
memoryMaintenanceCron: config.scheduler?.memoryMaintenanceCron,
|
|
240
240
|
sessionRetentionDays: config.scheduler?.sessionRetentionDays,
|
|
241
|
-
workspace: config.workspace
|
|
241
|
+
workspace: config.workspace,
|
|
242
|
+
feishuAppId: config.channels?.feishu?.appId || '',
|
|
243
|
+
feishuAppSecret: config.channels?.feishu?.appSecret || ''
|
|
242
244
|
});
|
|
243
245
|
});
|
|
244
246
|
// 更新配置并写入 config.json
|
|
245
247
|
app.post('/api/config', async (req, res) => {
|
|
246
248
|
try {
|
|
247
|
-
const { userId, apiKey, baseURL, model, embeddingModel, temperature, systemPrompt, memoryMaintenanceCron, sessionRetentionDays, workspace, maxHistoryMessages, maxToolIterations } = req.body;
|
|
249
|
+
const { userId, apiKey, baseURL, model, embeddingModel, temperature, systemPrompt, memoryMaintenanceCron, sessionRetentionDays, workspace, maxHistoryMessages, maxToolIterations, feishuAppId, feishuAppSecret } = req.body;
|
|
248
250
|
// 更新配置对象
|
|
249
251
|
const newConfig = { ...config };
|
|
250
252
|
if (userId !== undefined)
|
|
@@ -267,6 +269,16 @@ app.post('/api/config', async (req, res) => {
|
|
|
267
269
|
newConfig.systemPrompt = systemPrompt;
|
|
268
270
|
if (workspace !== undefined)
|
|
269
271
|
newConfig.workspace = workspace;
|
|
272
|
+
if (feishuAppId !== undefined || feishuAppSecret !== undefined) {
|
|
273
|
+
if (!newConfig.channels)
|
|
274
|
+
newConfig.channels = {};
|
|
275
|
+
if (!newConfig.channels.feishu)
|
|
276
|
+
newConfig.channels.feishu = { appId: '', appSecret: '', encryptKey: '', verificationToken: '' };
|
|
277
|
+
if (feishuAppId !== undefined)
|
|
278
|
+
newConfig.channels.feishu.appId = feishuAppId;
|
|
279
|
+
if (feishuAppSecret !== undefined)
|
|
280
|
+
newConfig.channels.feishu.appSecret = feishuAppSecret;
|
|
281
|
+
}
|
|
270
282
|
// System prompt is fully controlled by the UI (identity + base prompt).
|
|
271
283
|
let restartScheduler = false;
|
|
272
284
|
if (memoryMaintenanceCron !== undefined) {
|