foliko 1.0.87 → 1.1.1
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/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
- package/.agent/ARCHITECTURE.md +288 -0
- package/.agent/agents/ambient-agent.md +57 -0
- package/.agent/agents/debugger.md +55 -0
- package/.agent/agents/email-assistant.md +49 -0
- package/.agent/agents/file-manager.md +42 -0
- package/.agent/agents/python-developer.md +60 -0
- package/.agent/agents/scheduler.md +59 -0
- package/.agent/agents/web-developer.md +45 -0
- package/.agent/data/default.json +325 -21
- package/.agent/data/plugins-state.json +194 -162
- package/.agent/data/puppeteer-sessions/undefined.json +6 -0
- package/.agent/mcp_config.json +0 -1
- package/.agent/mcp_config_updated.json +12 -0
- package/.agent/plugins/poster-plugin/README.md +304 -0
- package/.agent/plugins/poster-plugin/fonts/NotoColorEmoji-Regular.ttf +0 -0
- package/.agent/plugins/poster-plugin/fonts/PatuaOne-Regular.ttf +0 -0
- package/.agent/plugins/poster-plugin/fonts//345/276/256/350/275/257/351/233/205/351/273/221.ttf +0 -0
- package/.agent/plugins/poster-plugin/fonts//345/276/256/350/275/257/351/233/205/351/273/221/347/262/227/344/275/223.ttf +0 -0
- package/.agent/plugins/poster-plugin/index.js +13 -0
- package/.agent/plugins/poster-plugin/package.json +28 -0
- package/.agent/plugins/poster-plugin/src/canvas.js +161 -0
- package/.agent/plugins/poster-plugin/src/components/arrow.js +84 -0
- package/.agent/plugins/poster-plugin/src/components/avatar.js +71 -0
- package/.agent/plugins/poster-plugin/src/components/badge.js +85 -0
- package/.agent/plugins/poster-plugin/src/components/card.js +88 -0
- package/.agent/plugins/poster-plugin/src/components/chart.js +127 -0
- package/.agent/plugins/poster-plugin/src/components/chip.js +88 -0
- package/.agent/plugins/poster-plugin/src/components/columns.js +107 -0
- package/.agent/plugins/poster-plugin/src/components/cta.js +85 -0
- package/.agent/plugins/poster-plugin/src/components/divider.js +55 -0
- package/.agent/plugins/poster-plugin/src/components/feature.js +85 -0
- package/.agent/plugins/poster-plugin/src/components/featureGrid.js +112 -0
- package/.agent/plugins/poster-plugin/src/components/grid.js +118 -0
- package/.agent/plugins/poster-plugin/src/components/imageFrame.js +155 -0
- package/.agent/plugins/poster-plugin/src/components/index.js +62 -0
- package/.agent/plugins/poster-plugin/src/components/listItem.js +146 -0
- package/.agent/plugins/poster-plugin/src/components/notification.js +123 -0
- package/.agent/plugins/poster-plugin/src/components/progress.js +79 -0
- package/.agent/plugins/poster-plugin/src/components/progressCircle.js +117 -0
- package/.agent/plugins/poster-plugin/src/components/quote.js +97 -0
- package/.agent/plugins/poster-plugin/src/components/rating.js +85 -0
- package/.agent/plugins/poster-plugin/src/components/star.js +70 -0
- package/.agent/plugins/poster-plugin/src/components/statCard.js +105 -0
- package/.agent/plugins/poster-plugin/src/components/stepper.js +118 -0
- package/.agent/plugins/poster-plugin/src/components/table.js +159 -0
- package/.agent/plugins/poster-plugin/src/components/tagCloud.js +78 -0
- package/.agent/plugins/poster-plugin/src/components/timeline.js +105 -0
- package/.agent/plugins/poster-plugin/src/components/watermark.js +52 -0
- package/.agent/plugins/poster-plugin/src/composer.js +1904 -0
- package/.agent/plugins/poster-plugin/src/elements/artText.js +60 -0
- package/.agent/plugins/poster-plugin/src/elements/background.js +52 -0
- package/.agent/plugins/poster-plugin/src/elements/circle.js +31 -0
- package/.agent/plugins/poster-plugin/src/elements/image.js +71 -0
- package/.agent/plugins/poster-plugin/src/elements/index.js +26 -0
- package/.agent/plugins/poster-plugin/src/elements/line.js +23 -0
- package/.agent/plugins/poster-plugin/src/elements/polygon.js +63 -0
- package/.agent/plugins/poster-plugin/src/elements/rectangle.js +32 -0
- package/.agent/plugins/poster-plugin/src/elements/svg.js +92 -0
- package/.agent/plugins/poster-plugin/src/elements/text.js +107 -0
- package/.agent/plugins/poster-plugin/src/fonts.js +233 -0
- package/.agent/plugins/poster-plugin/src/index.js +1658 -0
- package/.agent/plugins/poster-plugin/src/presets.js +36 -0
- package/.agent/plugins/poster-plugin/src/templates/business.js +60 -0
- package/.agent/plugins/poster-plugin/src/templates/gradient.js +64 -0
- package/.agent/plugins/poster-plugin/src/templates/index.js +43 -0
- package/.agent/plugins/poster-plugin/src/templates/modern.js +69 -0
- package/.agent/plugins/poster-plugin/src/templates/simple.js +58 -0
- package/.agent/plugins/poster-plugin/src/templates/social.js +62 -0
- package/.agent/plugins/poster-plugin/src/templates/tech.js +84 -0
- package/.agent/plugins/{temp-repo/puppeteer-plugin → puppeteer-plugin}/index.js +1 -1
- package/.agent/plugins.json +5 -11
- package/.agent/rules/GEMINI.md +273 -0
- package/.agent/rules/allow-rule.md +77 -0
- package/.agent/rules/log-rule.md +83 -0
- package/.agent/rules/security-rule.md +93 -0
- package/.agent/scripts/auto_preview.py +148 -0
- package/.agent/scripts/checklist.py +217 -0
- package/.agent/scripts/session_manager.py +120 -0
- package/.agent/scripts/verify_all.py +327 -0
- package/.agent/sessions/cli_default.json +419 -0
- package/.agent/sessions/weixin_o9cq80zgZqKPA2-s59PN43GdDy1w@im.wechat.json +2195 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/frontend-design/SKILL.md +418 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +81 -0
- package/.agent/workflows/simple-test.md +42 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/structured-orchestrate.md +180 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +296 -0
- package/.claude/settings.local.json +20 -8
- package/.env.example +56 -56
- package/CLAUDE.md +144 -108
- package/README.md +441 -441
- package/calc_tokens_weixin.js +81 -0
- package/cli/src/commands/chat.js +2 -1
- package/docs/CONTEXT_DESIGN.md +1596 -0
- package/examples/test-concurrent-chat.js +60 -60
- package/foliko-creative-3.png +0 -0
- package/foliko-creative-4.png +0 -0
- package/foliko-creative-5.png +0 -0
- package/package.json +2 -2
- package/plugins/default-plugins.js +2 -1
- package/plugins/extension-executor-plugin.js +91 -2
- package/plugins/file-system-plugin.js +2 -2
- package/plugins/memory-plugin.js +984 -0
- package/plugins/session-plugin.js +57 -1
- package/plugins/weixin-plugin.js +33 -23
- package/skills/find-skills/AGENTS.md +162 -162
- package/skills/find-skills/SKILL.md +133 -133
- package/skills/poster-guide/SKILL.md +1059 -0
- package/skills/python-plugin-dev/SKILL.md +238 -238
- package/skills/skill-guide/SKILL.md +130 -108
- package/src/capabilities/skill-manager.js +99 -0
- package/src/core/agent-chat.js +620 -141
- package/src/core/agent-context.js +188 -0
- package/src/core/agent.js +6 -2
- package/src/core/context-manager.js +283 -0
- package/src/core/framework.js +264 -3
- package/src/core/plugin-manager.js +79 -2
- package/src/core/request-context.js +98 -0
- package/src/core/session-context.js +341 -0
- package/src/core/session-storage.js +274 -0
- package/src/executors/mcp-executor.js +2 -2
- package/src/utils/index.js +239 -67
- package/src/utils/plugin-helpers.js +17 -0
- package/story-cover-book-v2.png +0 -0
- package/story-cover-japanese-1.png +0 -0
- package/story-cover-japanese-2.png +0 -0
- package/story-cover-japanese-3.png +0 -0
- package/story-cover-moran.png +0 -0
- package/undefined.png +0 -0
- package//346/265/267/346/212/245/346/217/222/344/273/266.md +621 -0
- package/.agent/agents/code-assistant.json +0 -14
- package/.agent/agents/email-assistant.json +0 -14
- package/.agent/agents/file-assistant.json +0 -15
- package/.agent/agents/system-assistant.json +0 -15
- package/.agent/agents/web-assistant.json +0 -12
- package/.agent/data/ambient/goals.json +0 -50
- package/.agent/data/ambient/memories.json +0 -7
- package/.agent/data/scheduler/tasks.json +0 -1
- package/.agent/package.json +0 -8
- package/.agent/plugins/__pycache__/test_plugin.cpython-312.pyc +0 -0
- package/.agent/plugins/daytona/README.md +0 -89
- package/.agent/plugins/daytona/index.js +0 -377
- package/.agent/plugins/daytona/package.json +0 -12
- package/.agent/plugins/marknative/README.md +0 -134
- package/.agent/plugins/marknative/index.js +0 -228
- package/.agent/plugins/marknative/package.json +0 -12
- package/.agent/plugins/marknative/update-readme.js +0 -134
- package/.agent/plugins/system-info/index.js +0 -387
- package/.agent/plugins/system-info/package.json +0 -4
- package/.agent/plugins/system-info/test.js +0 -40
- package/.agent/plugins/temp-repo/LICENSE +0 -201
- package/.agent/plugins/test_plugin.py +0 -304
- package/.agent/python-scripts/test_sample.py +0 -24
- package/.agent/skills/agent-browser/SKILL.md +0 -311
- package/.agent/skills/agent-browser/TEST_PLAN.md +0 -200
- package/.agent/skills/sysinfo/SKILL.md +0 -38
- package/.agent/skills/sysinfo/system-info.sh +0 -130
- package/.agent/skills/workflow/SKILL.md +0 -324
- package/.agent/workflows/email-digest.json +0 -50
- package/.agent/workflows/file-backup.json +0 -21
- package/.agent/workflows/get-ip-notify.json +0 -32
- package/.agent/workflows/news-aggregator.json +0 -93
- package/.agent/workflows/news-dashboard-v2.json +0 -94
- package/.agent/workflows/notification-batch.json +0 -32
- package/examples/test-chat-debug.js +0 -102
- package/examples/test-chat-result.js +0 -76
- package/examples/test-chat-stream-diff.js +0 -63
- /package/.agent/plugins/{temp-repo/puppeteer-plugin → puppeteer-plugin}/README.md +0 -0
- /package/.agent/plugins/{temp-repo/puppeteer-plugin → puppeteer-plugin}/package.json +0 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sessionId": "cli_default",
|
|
3
|
+
"messages": [
|
|
4
|
+
{
|
|
5
|
+
"role": "assistant",
|
|
6
|
+
"content": "[早期对话摘要]: <think>\n用户之前想要日式风格的书籍封面设计。已经成功生成了两个日式风格:\n1. 和风边框 + 樱花意境\n2. 水墨山水\n\n现在正在进行第三个日式风格的制作(浮世绘波浪风格),但由于之前的对话历史很长,我需要继续完成这个设计并给用户一个总结。\n\n让我继续完成这个日式风格3的封面,然后给用户一个完整的总结。\n</think>\n\n让我继续完成第三个日式封面:"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"role": "assistant",
|
|
10
|
+
"content": [
|
|
11
|
+
{
|
|
12
|
+
"type": "text",
|
|
13
|
+
"text": "<think>\n添加主要文字\n</think>\n\n\n"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "tool-call",
|
|
17
|
+
"toolCallId": "call_function_n7xh188xsbqm_1",
|
|
18
|
+
"toolName": "ext_call",
|
|
19
|
+
"input": {
|
|
20
|
+
"plugin": "poster",
|
|
21
|
+
"tool": "add_poster_text",
|
|
22
|
+
"args": {
|
|
23
|
+
"align": "center",
|
|
24
|
+
"color": "#1d3557",
|
|
25
|
+
"fontFamily": "serif",
|
|
26
|
+
"fontSize": 130,
|
|
27
|
+
"text": "墨染",
|
|
28
|
+
"x": 540,
|
|
29
|
+
"y": 450
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"role": "tool",
|
|
37
|
+
"content": [
|
|
38
|
+
{
|
|
39
|
+
"type": "tool-result",
|
|
40
|
+
"toolCallId": "call_function_n7xh188xsbqm_1",
|
|
41
|
+
"toolName": "ext_call",
|
|
42
|
+
"output": {
|
|
43
|
+
"type": "text",
|
|
44
|
+
"value": "{\"success\":true,\"result\":{\"success\":true,\"id\":80,\"type\":\"text\"}}"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"role": "assistant",
|
|
51
|
+
"content": [
|
|
52
|
+
{
|
|
53
|
+
"type": "text",
|
|
54
|
+
"text": "<think>\n添加副标题\n</think>\n\n\n"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "tool-call",
|
|
58
|
+
"toolCallId": "call_function_e4xws3rptz9v_1",
|
|
59
|
+
"toolName": "ext_call",
|
|
60
|
+
"input": {
|
|
61
|
+
"plugin": "poster",
|
|
62
|
+
"tool": "add_poster_line",
|
|
63
|
+
"args": {
|
|
64
|
+
"color": "#457b9d",
|
|
65
|
+
"height": 4,
|
|
66
|
+
"width": 150,
|
|
67
|
+
"x": 465,
|
|
68
|
+
"y": 650
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"role": "tool",
|
|
76
|
+
"content": [
|
|
77
|
+
{
|
|
78
|
+
"type": "tool-result",
|
|
79
|
+
"toolCallId": "call_function_e4xws3rptz9v_1",
|
|
80
|
+
"toolName": "ext_call",
|
|
81
|
+
"output": {
|
|
82
|
+
"type": "text",
|
|
83
|
+
"value": "{\"success\":true,\"result\":{\"success\":true,\"id\":82,\"type\":\"line\"}}"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"role": "assistant",
|
|
90
|
+
"content": [
|
|
91
|
+
{
|
|
92
|
+
"type": "text",
|
|
93
|
+
"text": "<think>\n添加故事简介\n</think>\n\n\n"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "tool-call",
|
|
97
|
+
"toolCallId": "call_function_4c1xzlm335nc_1",
|
|
98
|
+
"toolName": "ext_call",
|
|
99
|
+
"input": {
|
|
100
|
+
"plugin": "poster",
|
|
101
|
+
"tool": "add_poster_text",
|
|
102
|
+
"args": {
|
|
103
|
+
"align": "center",
|
|
104
|
+
"color": "#666666",
|
|
105
|
+
"fontFamily": "sans-serif",
|
|
106
|
+
"fontSize": 16,
|
|
107
|
+
"text": "江南三月,烟雨朦胧。",
|
|
108
|
+
"x": 540,
|
|
109
|
+
"y": 900
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"role": "tool",
|
|
117
|
+
"content": [
|
|
118
|
+
{
|
|
119
|
+
"type": "tool-result",
|
|
120
|
+
"toolCallId": "call_function_4c1xzlm335nc_1",
|
|
121
|
+
"toolName": "ext_call",
|
|
122
|
+
"output": {
|
|
123
|
+
"type": "text",
|
|
124
|
+
"value": "{\"success\":true,\"result\":{\"success\":true,\"id\":84,\"type\":\"text\"}}"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"role": "assistant",
|
|
131
|
+
"content": [
|
|
132
|
+
{
|
|
133
|
+
"type": "text",
|
|
134
|
+
"text": "<think>\n继续添加剩余文字\n</think>\n\n\n"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "tool-call",
|
|
138
|
+
"toolCallId": "call_function_dksnn54xijcr_1",
|
|
139
|
+
"toolName": "ext_call",
|
|
140
|
+
"input": {
|
|
141
|
+
"plugin": "poster",
|
|
142
|
+
"tool": "add_poster_text",
|
|
143
|
+
"args": {
|
|
144
|
+
"align": "center",
|
|
145
|
+
"color": "#666666",
|
|
146
|
+
"fontFamily": "sans-serif",
|
|
147
|
+
"fontSize": 16,
|
|
148
|
+
"text": "少年青衣,以抄书为生。",
|
|
149
|
+
"x": 540,
|
|
150
|
+
"y": 940
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"role": "tool",
|
|
158
|
+
"content": [
|
|
159
|
+
{
|
|
160
|
+
"type": "tool-result",
|
|
161
|
+
"toolCallId": "call_function_dksnn54xijcr_1",
|
|
162
|
+
"toolName": "ext_call",
|
|
163
|
+
"output": {
|
|
164
|
+
"type": "text",
|
|
165
|
+
"value": "{\"success\":true,\"result\":{\"success\":true,\"id\":85,\"type\":\"text\"}}"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"role": "assistant",
|
|
172
|
+
"content": [
|
|
173
|
+
{
|
|
174
|
+
"type": "text",
|
|
175
|
+
"text": "<think>\n添加作者和印章\n</think>\n\n\n"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "tool-call",
|
|
179
|
+
"toolCallId": "call_function_8y4h4bmntlkb_1",
|
|
180
|
+
"toolName": "ext_call",
|
|
181
|
+
"input": {
|
|
182
|
+
"plugin": "poster",
|
|
183
|
+
"tool": "add_poster_text",
|
|
184
|
+
"args": {
|
|
185
|
+
"align": "center",
|
|
186
|
+
"color": "#1d3557",
|
|
187
|
+
"fontFamily": "serif",
|
|
188
|
+
"fontSize": 24,
|
|
189
|
+
"text": "姑蘇 青衣",
|
|
190
|
+
"x": 540,
|
|
191
|
+
"y": 1180
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"role": "tool",
|
|
199
|
+
"content": [
|
|
200
|
+
{
|
|
201
|
+
"type": "tool-result",
|
|
202
|
+
"toolCallId": "call_function_8y4h4bmntlkb_1",
|
|
203
|
+
"toolName": "ext_call",
|
|
204
|
+
"output": {
|
|
205
|
+
"type": "text",
|
|
206
|
+
"value": "{\"success\":true,\"result\":{\"success\":true,\"id\":88,\"type\":\"text\"}}"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"role": "assistant",
|
|
213
|
+
"content": [
|
|
214
|
+
{
|
|
215
|
+
"type": "text",
|
|
216
|
+
"text": "<think>\n导出\n</think>\n\n\n"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"type": "tool-call",
|
|
220
|
+
"toolCallId": "call_function_dm9kse9uj9xm_1",
|
|
221
|
+
"toolName": "ext_call",
|
|
222
|
+
"input": {
|
|
223
|
+
"plugin": "poster",
|
|
224
|
+
"tool": "export_poster_canvas",
|
|
225
|
+
"args": {
|
|
226
|
+
"filename": "story-cover-japanese-3",
|
|
227
|
+
"format": "png",
|
|
228
|
+
"outputDir": "D:/code/vb-agent"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"role": "tool",
|
|
236
|
+
"content": [
|
|
237
|
+
{
|
|
238
|
+
"type": "tool-result",
|
|
239
|
+
"toolCallId": "call_function_dm9kse9uj9xm_1",
|
|
240
|
+
"toolName": "ext_call",
|
|
241
|
+
"output": {
|
|
242
|
+
"type": "text",
|
|
243
|
+
"value": "{\"success\":true,\"result\":{\"success\":true,\"filepath\":\"D:\\\\code\\\\vb-agent\\\\story-cover-japanese-3.png\",\"filename\":\"story-cover-japanese-3.png\",\"format\":\"png\",\"size\":56810}}"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"role": "user",
|
|
250
|
+
"content": "开启微信"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"role": "assistant",
|
|
254
|
+
"content": [
|
|
255
|
+
{
|
|
256
|
+
"type": "text",
|
|
257
|
+
"text": "<think>\n用户想要开启微信插件。我需要查看微信插件的状态并启用它。\n</think>\n\n\n"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "tool-call",
|
|
261
|
+
"toolCallId": "call_function_s1r6ejfspyhi_1",
|
|
262
|
+
"toolName": "enable_plugin",
|
|
263
|
+
"input": {
|
|
264
|
+
"name": "weixin"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"role": "tool",
|
|
271
|
+
"content": [
|
|
272
|
+
{
|
|
273
|
+
"type": "tool-result",
|
|
274
|
+
"toolCallId": "call_function_s1r6ejfspyhi_1",
|
|
275
|
+
"toolName": "enable_plugin",
|
|
276
|
+
"output": {
|
|
277
|
+
"type": "text",
|
|
278
|
+
"value": "{\"success\":true,\"message\":\"插件 'weixin' 已启用\"}"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"role": "assistant",
|
|
285
|
+
"content": [
|
|
286
|
+
{
|
|
287
|
+
"type": "text",
|
|
288
|
+
"text": "<think>\n微信插件已启用。现在需要检查插件状态,看看是否需要配置。\n</think>\n\n\n"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "tool-call",
|
|
292
|
+
"toolCallId": "call_function_zt8ybl6zw1ah_1",
|
|
293
|
+
"toolName": "get_plugin_config",
|
|
294
|
+
"input": {
|
|
295
|
+
"name": "weixin"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"role": "tool",
|
|
302
|
+
"content": [
|
|
303
|
+
{
|
|
304
|
+
"type": "tool-result",
|
|
305
|
+
"toolCallId": "call_function_zt8ybl6zw1ah_1",
|
|
306
|
+
"toolName": "get_plugin_config",
|
|
307
|
+
"output": {
|
|
308
|
+
"type": "text",
|
|
309
|
+
"value": "{\"success\":true,\"config\":{\"forceLogin\":false,\"qrcodeTerminal\":true,\"allowedUsers\":[],\"systemPrompt\":\"你是一个有帮助的AI助手。回复内容不要使用markdown格式文本\"}}"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"role": "assistant",
|
|
316
|
+
"content": [
|
|
317
|
+
{
|
|
318
|
+
"type": "text",
|
|
319
|
+
"text": "<think>\n微信插件已启用,配置如下:\n- forceLogin: false\n- qrcodeTerminal: true (二维码显示在终端)\n- allowedUsers: [] (空表示允许所有用户)\n- systemPrompt: 你是一个有帮助的AI助手\n\n插件已准备好使用,但可能需要运行微信登录。让我告诉用户插件已开启。\n</think>\n\n✅ **微信插件已启用!**\n\n### 📱 当前配置\n\n| 配置项 | 值 |\n|--------|-----|\n| **forceLogin** | false |\n| **qrcodeTerminal** | true (二维码显示在终端) |\n| **allowedUsers** | 全部用户 |\n| **systemPrompt** | 你是一个有帮助的AI助手 |\n\n### 使用方式\n\n在聊天中直接发送消息即可通过微信接收和回复:\n\n```\n发送消息给微信用户\n查看微信状态\n开启/关闭微信消息通知\n```\n\n需要我帮你配置其他选项吗?比如:\n- 设置允许的用户列表\n- 修改系统提示词\n- 配置强制登录模式"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"role": "user",
|
|
325
|
+
"content": "关闭微信插件"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"role": "assistant",
|
|
329
|
+
"content": [
|
|
330
|
+
{
|
|
331
|
+
"type": "text",
|
|
332
|
+
"text": "<think>\n用户想要关闭微信插件。\n</think>\n\n\n"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "tool-call",
|
|
336
|
+
"toolCallId": "call_function_le7dm4fw4wly_1",
|
|
337
|
+
"toolName": "disable_plugin",
|
|
338
|
+
"input": {
|
|
339
|
+
"name": "weixin"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"role": "tool",
|
|
346
|
+
"content": [
|
|
347
|
+
{
|
|
348
|
+
"type": "tool-result",
|
|
349
|
+
"toolCallId": "call_function_le7dm4fw4wly_1",
|
|
350
|
+
"toolName": "disable_plugin",
|
|
351
|
+
"output": {
|
|
352
|
+
"type": "text",
|
|
353
|
+
"value": "{\"success\":true,\"message\":\"插件 'weixin' 已禁用\"}"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"role": "assistant",
|
|
360
|
+
"content": [
|
|
361
|
+
{
|
|
362
|
+
"type": "text",
|
|
363
|
+
"text": "<think>\n微信插件已成功禁用。\n</think>\n\n✅ **微信插件已禁用!**"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"role": "user",
|
|
369
|
+
"content": "发布poster-plugin插件"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"role": "assistant",
|
|
373
|
+
"content": [
|
|
374
|
+
{
|
|
375
|
+
"type": "text",
|
|
376
|
+
"text": "<think>\n用户想要发布 poster-plugin 插件到远程仓库。我需要使用 plugin_publish 工具来发布这个插件。\n</think>\n\n\n"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "tool-call",
|
|
380
|
+
"toolCallId": "call_function_dvufqtui721s_1",
|
|
381
|
+
"toolName": "plugin_publish",
|
|
382
|
+
"input": {
|
|
383
|
+
"name": "poster-plugin"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"role": "tool",
|
|
390
|
+
"content": [
|
|
391
|
+
{
|
|
392
|
+
"type": "tool-result",
|
|
393
|
+
"toolCallId": "call_function_dvufqtui721s_1",
|
|
394
|
+
"toolName": "plugin_publish",
|
|
395
|
+
"output": {
|
|
396
|
+
"type": "text",
|
|
397
|
+
"value": "{\"success\":true,\"message\":\"Plugin \\\"poster-plugin\\\" published successfully\",\"repo\":\"https://github.com/chnak/foliko-plugins.git\",\"path\":\"poster-plugin/poster-plugin.js\"}"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"role": "assistant",
|
|
404
|
+
"content": [
|
|
405
|
+
{
|
|
406
|
+
"type": "text",
|
|
407
|
+
"text": "<think>\n插件发布成功了,让我总结一下结果。\n</think>\n\n✅ **poster-plugin 插件发布成功!**\n\n| 配置项 | 值 |\n|--------|-----|\n| **插件名称** | poster-plugin |\n| **仓库地址** | https://github.com/chnak/foliko-plugins.git |\n| **文件路径** | poster-plugin/poster-plugin.js |"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"variables": {},
|
|
413
|
+
"metadata": {
|
|
414
|
+
"createdAt": 1775526527502,
|
|
415
|
+
"lastActive": 1775526527502,
|
|
416
|
+
"messageCount": 0,
|
|
417
|
+
"compressionCount": 0
|
|
418
|
+
}
|
|
419
|
+
}
|