foliko 1.0.79 → 1.0.80

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foliko",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "简约的插件化 Agent 框架",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
@@ -450,7 +450,10 @@ async function loadCustomPlugins(framework, agentConfig) {
450
450
  // 2. plugins/ - 项目内置插件(自动加载)
451
451
  const dirs = [
452
452
  { dir: path.resolve(process.cwd(), '.agent', 'plugins'), forceEnabled: true },
453
- { dir: path.resolve(process.cwd(), 'plugins'), forceEnabled: false }
453
+ { dir: path.resolve(process.cwd(), 'plugins'), forceEnabled: false },
454
+ { dir: path.resolve(__dirname, '..', 'plugins'), forceEnabled: false }
455
+ // 项目下的 plugins 目录(兼容旧版本)
456
+
454
457
  ]
455
458
 
456
459
  for (const { dir, forceEnabled } of dirs) {