foliko 1.1.46 → 1.1.47

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/cli/src/daemon.js CHANGED
@@ -50,6 +50,10 @@ process.stderr.write = (chunk) => {
50
50
  // 环境变量已在 commands/daemon.js 中通过 spawn 传递
51
51
  const { Framework } = require('../../src');
52
52
 
53
+ // 调试:打印接收到的环境变量
54
+ console.log('[DEBUG] process.env.QQ_APP_ID =', process.env.QQ_APP_ID);
55
+ console.log('[DEBUG] process.env.QQ_CLIENT_SECRET =', process.env.QQ_CLIENT_SECRET ? '***' + process.env.QQ_CLIENT_SECRET.slice(-6) : 'undefined');
56
+
53
57
  async function main() {
54
58
  console.log('[Foliko] 启动后台服务...');
55
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foliko",
3
- "version": "1.1.46",
3
+ "version": "1.1.47",
4
4
  "description": "简约的插件化 Agent 框架",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
@@ -355,6 +355,13 @@ class QQPlugin extends Plugin {
355
355
  }
356
356
 
357
357
  async _initBotAsync() {
358
+ log.info('QQ 配置检查:', {
359
+ appId: this.config.appId,
360
+ clientSecret: this.config.clientSecret ? '***' + this.config.clientSecret.slice(-6) : 'undefined',
361
+ envQQ_APP_ID: process.env.QQ_APP_ID,
362
+ envQQ_CLIENT_SECRET: process.env.QQ_CLIENT_SECRET ? '***' + process.env.QQ_CLIENT_SECRET.slice(-6) : 'undefined',
363
+ });
364
+
358
365
  if (!this.config.appId || !this.config.clientSecret) {
359
366
  log.error('QQ_APP_ID and QQ_CLIENT_SECRET must be configured')
360
367
  return