xiaozuoassistant 0.2.53 → 0.2.54

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.
@@ -114,9 +114,11 @@ export class FeishuChannel extends BaseChannel {
114
114
  const fs = require('fs-extra');
115
115
  const configLoader = require('../config/loader.js').config;
116
116
  const workspacePath = path.resolve(configLoader.workspace || path.join(process.cwd(), 'workspace'));
117
- await fs.ensureDir(workspacePath);
117
+ const botDownloadDir = botName || appId;
118
+ const finalDownloadPath = path.join(workspacePath, 'downloads', botDownloadDir);
119
+ await fs.ensureDir(finalDownloadPath);
118
120
  // 防止文件名冲突,可以加上时间戳前缀,但为了用户体验,我们保留原名,或者加上一个短哈希
119
- const savePath = path.join(workspacePath, fileName);
121
+ const savePath = path.join(finalDownloadPath, fileName);
120
122
  this.emitMessage(sessionId, `收到文件: ${fileName},正在下载到工作区...`, botName);
121
123
  try {
122
124
  const res = await client.im.messageResource.get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaozuoassistant",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "description": "A local-first personal AI assistant with multi-channel support and enhanced memory.",
5
5
  "author": "mantle.lau",
6
6
  "license": "MIT",