朱潮
5c4f36ff0d
优化bot复制
2026-02-23 21:18:59 +08:00
朱潮
30cc704c0f
优化chat页面
2026-02-23 20:48:25 +08:00
朱潮
411c515a13
公开的智能体
2026-02-22 21:34:16 +08:00
朱潮
ed440564f3
后端 routes/bot_manager.py - 在 check_bot_access 函数中添加了对 is_published 的检查:
2026-02-22 21:17:34 +08:00
朱潮
b75afac520
自动同步智能体
2026-02-22 19:46:06 +08:00
朱潮
082fd24727
增加智能体广场
...
- 添加智能体广场功能
- 移除 playwright 日志
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 21:28:55 +08:00
朱潮
6befae11fb
Merge branch 'master' into bot_manager
2026-02-14 19:07:00 +08:00
朱潮
a6e7892536
modify routes/skill_manager.py
2026-02-12 22:19:09 +08:00
朱潮
2fbf249a8d
复制
2026-02-12 00:41:03 +08:00
朱潮
4a8fffaf7d
删除id
2026-02-11 22:43:15 +08:00
朱潮
bd39a53507
add rag flow
2026-02-10 18:59:10 +08:00
朱潮
742eaf0a1c
remove robot_type
2026-02-08 00:04:39 +08:00
朱潮
e5ee24a765
create_project_directory
2026-02-07 23:59:05 +08:00
朱潮
1df52ca8d0
merge from prod
2026-02-06 22:07:47 +08:00
朱潮
c7e9f305b7
feat: 实现 Claude Plugins 模式的 Hook 机制
...
- 新增 agent/plugin_hook_loader.py:支持通过 .claude-plugin/plugin.json 配置 hooks 和 mcpServers
- 修改 agent/prompt_loader.py:集成 PrePrompt hooks,优先读取 skill MCP 配置
- 修改 routes/chat.py:添加 PostAgent 和 PreSave hooks
- 修改 routes/skill_manager.py:优先从 plugin.json 读取 name/description,fallback 到 SKILL.md
- 删除旧的 agent/skill_hook_loader.py
- 新增示例 skill user-context-loader,演示完整的 hooks 用法
Hook 类型:
- PrePrompt: 在 system_prompt 加载时注入内容
- PostAgent: 在 agent 执行后处理
- PreSave: 在消息保存前处理
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 20:15:54 +08:00
朱潮
e67d50b4fc
rename general agent
2026-02-06 17:05:17 +08:00
朱潮
7e058e1505
Merge branch 'prod' into bot_manager
2026-02-04 17:54:42 +08:00
朱潮
2e429e82f7
remove summary output
2026-02-04 17:39:51 +08:00
朱潮
a22211da32
过期时间
2026-02-01 23:40:29 +08:00
朱潮
35f91a7d03
admin share
2026-02-01 21:48:23 +08:00
朱潮
f110b26efc
admin share
2026-02-01 20:25:03 +08:00
朱潮
4a96f98a40
admin share
2026-02-01 18:40:58 +08:00
朱潮
2ee0bca96d
admin share
2026-02-01 18:28:04 +08:00
朱潮
230b6c62a4
bot_share
2026-02-01 16:28:23 +08:00
朱潮
d71ae8d16d
update icor
2026-01-30 22:38:28 +08:00
朱潮
5d8efd0dc4
删除部分表
2026-01-30 19:37:22 +08:00
朱潮
51f988e535
update sql表名
2026-01-30 00:03:26 +08:00
朱潮
f88aca74f2
add table prefix
2026-01-29 15:59:42 +08:00
朱潮
4c70857ff6
增加bot_manager
2026-01-28 23:32:34 +08:00
朱潮
f1107ea35a
增加enable_thinking和enable_memory
2026-01-28 17:13:41 +08:00
朱潮
4e8e94861f
execute sql result
2026-01-23 18:33:29 +08:00
朱潮
f8a44e8d6d
execute sql
2026-01-23 17:44:34 +08:00
朱潮
44b4295a87
update parse_skill_frontmatter
2026-01-23 08:52:27 +08:00
朱潮
3dc119bca8
refactor(mem0): optimize connection pool and async memory handling
...
- Fix mem0 connection pool exhausted error with proper pooling
- Convert memory operations to async tasks
- Optimize docker-compose configuration
- Add skill upload functionality
- Reduce cache size for better performance
- Update dependencies
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 19:39:12 +08:00
朱潮
f694101747
refactor: migrate from Memori to Mem0 for long-term memory
...
Replace Memori with Mem0 for memory management:
- Delete memori_config.py, memori_manager.py, memori_middleware.py
- Add mem0_config.py, mem0_manager.py, mem0_middleware.py
- Update environment variables (MEMORI_* -> MEM0_*)
- Integrate Mem0 with LangGraph middleware
- Add sync connection pool for Mem0 in DBPoolManager
- Move checkpoint message prep to config creation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 21:15:30 +08:00
朱潮
05744cb9f4
批量保存聊天记录
2026-01-19 09:44:57 +08:00
朱潮
3b438d8ab7
优化输出
2026-01-18 22:04:36 +08:00
朱潮
f9ba3c8e51
添加聊天记录查询
2026-01-18 12:29:20 +08:00
朱潮
723b249e42
增加2个系统级别的skill
2026-01-16 23:05:30 +08:00
朱潮
90117b41fe
修复符号链接的问题,和deep_agent提示词
2026-01-13 14:22:44 +08:00
朱潮
174a5e2059
deep_agent支持 checkpoint
2026-01-11 00:08:19 +08:00
朱潮
68a4578554
feat(skills): add skill deletion endpoint
...
- Add DELETE /api/v1/skill/remove endpoint
- Add validate_skill_name() for path traversal protection
- Include path normalization and security checks
- Prevent deletion of official skills (user skills only)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 21:34:16 +08:00
朱潮
b8e57b2f51
feat(skills): add security hardening to skill upload endpoint
...
- Add ZipSlip path traversal protection (validate all file paths)
- Add file size limits (50MB upload, 500MB extracted)
- Add zip bomb protection (max 100:1 compression ratio, 1000 entries)
- Add async I/O using aiofiles to avoid blocking event loop
- Add bot_id validation to prevent path traversal attacks
- Add proper error cleanup on upload failures
Security improvements:
- P1-001: ZipSlip path traversal防护
- P1-004: File size limits (50MB)
- P1-005: Zip bomb防护 (compression ratio check)
- P1-008: Async I/O improvements
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 20:25:37 +08:00
朱潮
b3303ef8e6
refactor(sse): simplify error handling and remove __debug__ security issue
...
- Remove __debug__ conditional that exposed tracebacks in production
- Simplify error response structure to {"error": str(e)}
- Remove redundant exception handling in init_agent()
- Remove unnecessary traceback logging
- Reduce code from ~30 lines to ~10 lines
Fixes security vulnerability where __debug__ is always True
unless Python runs with -O flag, causing full tracebacks
to be sent to clients in production.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 20:24:30 +08:00
朱潮
342932030f
feat(skills): add skill management API module
...
- Create new skill_manager.py with list and upload endpoints
- Add GET /api/v1/skill/list to retrieve official and user skills
- Add POST /api/v1/skill/upload for skill file upload
- Parse SKILL.md frontmatter to extract name and description
- Move skill upload endpoint from files.py to skill_manager.py
- Add SKILLS_DIR configuration to settings.py
- Register skill_manager router in fastapi_app.py
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 19:45:04 +08:00
朱潮
8a85e9025e
fix(sse): properly handle MCP tool errors and send error responses to client
...
- Enhance exception handling in agent_task() to capture and send structured error messages via SSE stream
- Add [DONE] marker to outer exception handler to ensure proper stream termination
- Improve MCP tool loading error handling in init_agent() to prevent cascading failures
- Add detailed error logging with traceback for debugging
Fixes RemoteProtocolError that occurred when MCP tool calls failed,
which previously caused incomplete chunked read errors and connection drops.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 19:24:28 +08:00
朱潮
92c82c24a4
✨ feat(skills): add skill file upload API endpoint
...
Add new POST endpoint /api/v1/skills/upload for uploading skill zip files.
The endpoint:
- Accepts zip files with bot_id parameter
- Validates file format (must be .zip)
- Saves zip to projects/uploads/{bot_id}/skill_zip/
- Automatically extracts to projects/uploads/{bot_id}/skills/{skill_name}/
- Returns success response with file and extract paths
This enables programmatic skill deployment for specific bots.
2026-01-07 14:47:25 +08:00
朱潮
fbbf0c0653
fix(file-manager): fix create-folder API to accept JSON request body
...
The create_folder endpoint was incorrectly defined to accept query
parameters instead of JSON request body, causing 400 errors when
called from the frontend.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 16:52:07 +08:00
朱潮
766b9becda
feat(deep-agent): add skills support and improve project structure
...
- Add skills parameter to ChatRequest for skill file processing
- Extract and unzip skill files to robot project skills directory
- Add robot_config.json with bot_id and environment variables
- Update symlink setup to skip if ~/.deepagents already exists
- Enhance system prompt with directory access restrictions
- Refactor _get_robot_dir to handle symlink paths correctly
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 13:21:58 +08:00
朱潮
c808517f02
fix(file-manager): preserve project/prompt prefix in nested directories
...
修复文件管理 API 中路径计算问题。当点击第三级目录时,由于
PROJECTS_DIR 是相对路径而 item 是绝对路径,导致 relative_to()
失败返回绝对路径,从而使前端丢失前缀。
使用 PROJECTS_DIR.resolve() 作为基准确保正确计算相对路径。
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 09:37:54 +08:00
朱潮
0e6b2f1511
add CHECKPOINT_DB_URL
2025-12-24 20:43:10 +08:00
朱潮
b86a8364e9
db
2025-12-24 11:05:10 +08:00
朱潮
d8dc973b95
sqlite pool and change agent cache to tools cache
2025-12-23 22:18:18 +08:00
朱潮
a92bea5b58
删除一些环境变量
2025-12-18 09:41:43 +08:00
朱潮
6bad1743b3
warm_up
2025-12-18 00:38:04 +08:00
朱潮
47f1d1c7eb
cache
2025-12-17 23:05:42 +08:00
朱潮
b78b178c03
删除agent manager
2025-12-17 20:27:06 +08:00
朱潮
e36787fb63
修改agent_config
2025-12-16 21:26:20 +08:00
朱潮
de72321875
add safe_print
2025-12-16 16:28:11 +08:00
朱潮
9525c0f883
add AgentConfig
2025-12-16 16:06:47 +08:00
朱潮
77c8f5e501
settings
2025-12-15 21:58:54 +08:00
朱潮
9ada70eb58
session_id
2025-12-15 21:38:09 +08:00
朱潮
0d50cd8e9f
session_id
2025-12-15 21:36:13 +08:00
朱潮
d9ee1edf8a
修复none值的问题
2025-12-15 17:38:27 +08:00
朱潮
c391c97b24
llm log
2025-12-15 13:29:38 +08:00
朱潮
a97ff5a185
优化思考
2025-12-15 11:57:31 +08:00
朱潮
c32ecdfeb6
tool_response
2025-12-14 21:37:35 +08:00
朱潮
5d70177549
tool_response
2025-12-14 21:28:55 +08:00
朱潮
edb895bbf9
tool_call_chunks
2025-12-14 21:21:00 +08:00
朱潮
559040f7ce
tool_call
2025-12-14 18:48:48 +08:00
朱潮
671569026e
tool_id
2025-12-14 09:43:24 +08:00
朱潮
367e292854
merge
2025-12-14 09:30:34 +08:00
朱潮
89f5b721ab
muti tool_call
2025-12-14 09:29:19 +08:00
朱潮
945ab060d6
think增加流式输出模式
2025-12-14 07:54:03 +08:00
朱潮
ab68c4309d
think增加流式输出模式
2025-12-14 07:53:24 +08:00
朱潮
25b4d9a87d
add default transport
2025-12-13 03:09:25 +08:00
朱潮
ec9558fd4c
update guidline
2025-12-13 02:52:01 +08:00
朱潮
720db80ae9
add deep_agent
2025-12-12 18:41:52 +08:00
朱潮
ee41279569
add last_message
2025-12-08 22:15:49 +08:00
朱潮
c58b20e56f
修改guideline_prompt:只需要列出详细的工具调用步骤即可,不需要考虑回复用户的话术,步骤数量根据实际需求调整。
2025-12-04 13:50:25 +08:00
朱潮
cf33da310d
修改general_agent提示词
2025-12-03 17:53:18 +08:00
朱潮
a7f27fe33b
修改guideline提示词
2025-12-03 14:13:39 +08:00
朱潮
4d995ac990
优化Guidelines指令遵循
2025-12-02 11:00:31 +08:00
朱潮
bb640e6d6e
优化guideline提示词,新增admin后台修改prompt功能
2025-12-02 10:10:00 +08:00
朱潮
154662ac6e
只传输执行计划给agent
2025-12-01 23:20:09 +08:00
朱潮
08b7d0e2b8
add cot
2025-12-01 21:52:14 +08:00
朱潮
8be1acb9f2
增加PREAMBLE标签
2025-12-01 19:22:59 +08:00
朱潮
13e2ba56a7
language
2025-11-28 17:42:58 +08:00
朱潮
5e26d88d18
优化推理逻辑,提升推理i速度
2025-11-28 14:26:37 +08:00
朱潮
af29716571
custom preamble
2025-11-28 12:06:23 +08:00
朱潮
fb34d45735
preamble
2025-11-28 09:04:01 +08:00
朱潮
dfe0439894
preamble
2025-11-28 00:58:03 +08:00
朱潮
629aa91649
preamble
2025-11-28 00:55:20 +08:00
朱潮
7d23751726
preamble
2025-11-28 00:37:19 +08:00
朱潮
a1fc31616a
preamble
2025-11-28 00:29:12 +08:00
朱潮
db71607ff1
preamble
2025-11-28 00:17:48 +08:00
朱潮
95577c07a8
preamble
2025-11-27 23:51:03 +08:00
朱潮
3973174c83
日志优化
2025-11-27 21:50:03 +08:00
朱潮
6f2e898e2d
优化并发
2025-11-27 15:49:55 +08:00
朱潮
a40da62413
add terms
2025-11-27 14:42:22 +08:00