foliko 1.1.12 → 1.1.13
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/.agent/data/default.json +4 -0
- package/.agent/memory/feedback/mnvzgvtd-0o2900.md +9 -0
- package/.agent/memory/feedback/mnvzhajn-swbx61.md +15 -0
- package/.agent/memory/feedback/mnvzhgsp-p5vog3.md +9 -0
- package/.agent/memory/feedback/mnvzho0c-fgql7q.md +14 -0
- package/.agent/memory/feedback/mnvzhtzq-ufr5at.md +9 -0
- package/.agent/memory/feedback/mnvzhyb3-9byq2z.md +9 -0
- package/.agent/memory/feedback/mnvzi7hp-hyeafp.md +9 -0
- package/.agent/memory/feedback/mnvzibph-z7rwp5.md +9 -0
- package/.agent/memory/feedback/mnvzilys-7h176w.md +14 -0
- package/.agent/memory/feedback/mnvziuh5-zjshci.md +9 -0
- package/.agent/memory/feedback/mnw07wde-6zqsc8.md +9 -0
- package/.agent/memory/feedback/mnw084bp-j0ba2a.md +9 -0
- package/.agent/sessions/cli_default.json +331 -110
- package/.agent/sessions/test.json +16 -0
- package/.claude/settings.local.json +2 -1
- package/cli/src/ui/chat-ui.js +35 -13
- package/package.json +1 -1
- package/plugins/extension-executor-plugin.js +1 -1
- package/plugins/python-plugin-loader.js +11 -11
- package/plugins/subagent-plugin.js +26 -15
- package/plugins/weixin-plugin.js +38 -47
- package/src/core/agent-chat.js +350 -216
- package/src/core/agent.js +16 -8
- package/src/core/framework.js +6 -3
- package/src/utils/chat-queue.js +244 -0
- package/system.md +11 -79
- package/.agent/sessions/weixin_o9cq80zgZqKPA2-s59PN43GdDy1w@im.wechat.json +0 -211
package/.agent/data/default.json
CHANGED
|
@@ -17,5 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"createdAt": "2026-04-11T19:20:50.718Z",
|
|
19
19
|
"lastActive": "2026-04-11T19:20:50.718Z"
|
|
20
|
+
},
|
|
21
|
+
"business_card:business_card_info": {
|
|
22
|
+
"value": "{\"name\": \"张明远\", \"title\": \"技术总监\", \"company\": \"星辰科技有限公司\", \"phone\": \"+86 138-0000-1234\", \"email\": \"zhangmingyuan@startech.com\", \"website\": \"www.startech.com\", \"address\": \"北京市朝阳区科技园A座1201\", \"file\": \"business_card.png\", \"size\": \"1050x630\", \"dpi\": 300, \"created\": \"2026-04-13\"}",
|
|
23
|
+
"updatedAt": "2026-04-12T16:27:27.826Z"
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzgvtd-0o2900"
|
|
3
|
+
name: "【避免指南】避免使用不兼容的 poster preset 参数组合"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster, create_poster_canvas, preset]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】使用 poster:create_poster_canvas 时,确保 preset 与 width/height 参数兼容。错误原因:preset "card-portrait" 与传入的 width:900/height:540 组合不匹配,导致内部计算 width 属性时读取了 undefined。建议:1) 使用 preset 时不额外传宽高;2) 或自定义尺寸时不使用 preset;3) 调用前先 list_poster_presets 确认可用预设及其标准尺寸。
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzhajn-swbx61"
|
|
3
|
+
name: "【避免指南】避免 poster 插件工具调用时出现 undefined 错误"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster, canvas]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster 插件创建画布时,确保参数完整且格式正确。错误原因:内部在读取配置时遇到 undefined 值(width 属性)。
|
|
10
|
+
|
|
11
|
+
具体建议:
|
|
12
|
+
1. 确认 width 和 height 为有效数值(非 0 或负数)
|
|
13
|
+
2. background 参数应为有效的颜色值(如 #f0f7ff)
|
|
14
|
+
3. 如使用 ext_call 调用,确保 plugin="poster", tool="create_poster_canvas", args 包含所有必需参数
|
|
15
|
+
4. 建议先使用 poster 插件内置方式(如 subagent_call poster-expert)调用,而非直接使用 ext_call
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzhgsp-p5vog3"
|
|
3
|
+
name: "【避免指南】使用未定义的预设参数调用海报工具"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster, preset-invalid]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster:create_poster_canvas 前,先使用 poster:list_poster_presets 查询有效的预设列表。错误原因:使用了不存在的预设值 "card_standard",导致插件内部尝试读取 undefined 对象的 width 属性而报错。可用预设包括:poster_wide、poster_square、poster_story、poster_card 等,请确保传入的 preset 参数是有效值。
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzho0c-fgql7q"
|
|
3
|
+
name: "【避免指南】创建 poster 画布时必须提供 preset 或 width/height"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster:create_poster_canvas, undefined]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster:create_poster_canvas 时,如果使用自定义尺寸,必须同时提供 width 和 height 参数;如果使用预设尺寸,必须提供 preset 参数。错误原因:在未指定 preset 时,width 或 height 参数缺失或格式不正确导致内部对象为 undefined,访问 .width 时报错。
|
|
10
|
+
|
|
11
|
+
建议:
|
|
12
|
+
1. 自定义尺寸时确保 width 和 height 都为有效数值
|
|
13
|
+
2. 优先使用 preset 预设尺寸避免手动计算
|
|
14
|
+
3. 调用前验证参数完整性
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzhtzq-ufr5at"
|
|
3
|
+
name: "【避免指南】调用 generate_poster 前必须先创建画布"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster:generate_poster, canvas]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】使用 poster:generate_poster 生成海报前,必须先调用 poster:create_poster_canvas 创建画布。错误原因:generate_poster 依赖已创建的画布,没有画布时无法生成海报。正确流程:1) 调用 create_poster_canvas 创建画布;2) 调用 generate_poster 使用模板生成海报。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzhyb3-9byq2z"
|
|
3
|
+
name: "【避免指南】避免在不创建画布的情况下使用海报组件"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster, canvas]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】使用 poster 插件的 compose_poster 组件功能前,必须先调用 create_poster_canvas 创建画布。错误原因:compose_poster 需要一个已创建的画布作为容器,未创建画布就直接添加组件导致 "No canvas created" 错误。正确流程:1) 先调用 create_poster_canvas 创建画布;2) 等待画布创建成功后再使用 compose_poster 添加组件。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzi7hp-hyeafp"
|
|
3
|
+
name: "【避免指南】调用 poster:create_poster_canvas 时避免遗漏 preset 预设尺寸参数"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster:create_poster_canvas, canvas-creation]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster 插件的 create_poster_canvas 时,应优先使用 preset 预设尺寸参数(如 "instagram-post", "twitter-post" 等),而非直接传入 width/height 自定义尺寸。错误原因:直接传入自定义宽高时,插件内部无法正确初始化画布尺寸,导致后续渲染时报错 "Cannot read properties of undefined (reading 'width')"。推荐做法:先查询可用预设(list_poster_presets),使用已知有效的 preset 值,或确保 width/height 参数在插件内部有正确的默认值处理。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzibph-z7rwp5"
|
|
3
|
+
name: "【避免指南】避免在未创建画布时调用海报工具"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster, canvas]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用任何海报画布操作前,必须先使用 create_poster_canvas 创建画布。错误原因:调用 get_poster_canvas_info 时未先创建画布,导致报错 "No canvas created"。正确流程:1. 调用 create_poster_canvas 创建新画布并获取 canvasId;2. 使用返回的 canvasId 进行后续操作(如 add_poster_text、get_poster_canvas_info 等);3. 操作完成后可调用 destroy_poster_canvas 释放资源。
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvzilys-7h176w"
|
|
3
|
+
name: "【避免指南】确保海报画布创建成功后再进行后续操作"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster:create_poster_canvas, 画布操作]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】在调用海报相关工具前,必须先确认画布已成功创建。错误原因:调用 create_poster_canvas 时,虽然参数正确(background, height, width),但可能画布未正确初始化或返回值未被正确捕获,导致后续操作尝试访问不存在的画布对象 width 属性。
|
|
10
|
+
|
|
11
|
+
【操作步骤】
|
|
12
|
+
1. 调用 create_poster_canvas 后,务必检查返回值中的画布 ID
|
|
13
|
+
2. 在进行 add_poster_text、add_poster_image 等操作前,使用 get_poster_canvas_info 验证画布状态
|
|
14
|
+
3. 如果画布创建失败,不要继续调用其他海报工具
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnvziuh5-zjshci"
|
|
3
|
+
name: "避免 poster 插件调用时出现 undefined 属性错误"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, poster, undefined, plugin-call]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster 插件工具前,确保插件已正确加载。先使用 list_plugins 检查 poster 插件状态。错误原因:调用 create_poster_canvas 时出现 'Cannot read properties of undefined (reading 'width')',说明插件内部初始化不完整或参数处理逻辑异常。建议:1) 调用前确认插件状态正常;2) 使用可选参数 preset 替代手动传参;3) 检查是否有其他参数组合可避免该错误。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnw07wde-6zqsc8"
|
|
3
|
+
name: "【避免指南】正确初始化和调用海报画布工具"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, poster, canvas-initialization, extension]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster:create_poster_canvas 前需确保:1)先确认画布管理器的状态正常,2)避免并发创建多个画布导致的竞争状态,3)如遇到 'Cannot read properties of undefined' 错误,说明内部状态未就绪,建议等待插件完全加载后再操作,4)查看 poster 画布列表(list_poster_canvases)确认是否有残留画布需要清理。错误原因:尝试访问画布对象时该对象尚未初始化或已被销毁。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "mnw084bp-j0ba2a"
|
|
3
|
+
name: "【避免指南】使用海报插件工具前确保插件已正确加载"
|
|
4
|
+
type: "feedback"
|
|
5
|
+
project: "null"
|
|
6
|
+
tags: [error, avoid, poster, plugin]
|
|
7
|
+
created: "2026-04-12"
|
|
8
|
+
---
|
|
9
|
+
【下次这样做】调用 poster 插件工具前,先检查插件是否已加载。使用 list_plugins 确认 poster 插件状态为 loaded。如果插件未加载,使用 enable_plugin({"name":"poster"}) 启用后再调用。错误原因:poster:create_poster_canvas 返回 undefined,导致读取 width 属性失败。可能需要检查调用参数是否完整(preset、width、height、background、asNew 等参数)。
|