Commit Graph

509 Commits

Author SHA1 Message Date
朱潮
965c5f99ae upgrade/deepagents-0.4.4 2026-03-02 02:30:23 +08:00
朱潮
61c8186b55 upgrade/deepagents-0.4.4 2026-03-02 02:27:42 +08:00
朱潮
0b20cc68ba docs: update plan status to completed 2026-03-02 01:38:15 +08:00
朱潮
3ce0b6a9f8 fix: update CustomSkillsMiddleware.before_agent signature
Add missing 'config' parameter to match new SkillsMiddleware API.
2026-03-02 01:37:30 +08:00
朱潮
a0b6e4cc7f feat: upgrade deepagents 0.4.3 and deepagents-cli 0.0.25
- Replace ShellMiddleware with LocalShellBackend
- Update AgentMemoryMiddleware to MemoryMiddleware with new signature
- Update CustomSkillsMiddleware to use new SkillsMiddleware signature
- Add LocalContextMiddleware for local context
- Update CompositeBackend to use routing
- Update dependencies: langgraph-checkpoint-postgres to 3.0.4

Breaking Changes:
- agent/deep_assistant.py: Major refactoring to adapt to new deepagents API
  - pyproject.toml: Version bump
    - deepagents: 0.2.8 -> 0.4.3
    - deepagents-cli: 0.0.11 -> 0.0.25
  - langgraph-checkpoint-postgres: 2.0.25 -> 3.0.4 (for compatibility with langgraph-checkpoint 3.x)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-02 01:29:58 +08:00
朱潮
9c258664f2 Merge branch 'master' into bot_manager 2026-02-28 23:28:56 +08:00
朱潮
8d29a263e1 修复 robot 目录被意外清空的问题
移除 create_robot_project 的重建逻辑,避免在发送消息时删除 dataset 文件夹内容

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-28 23:28:37 +08:00
朱潮
ec921e3319 更新模型选择 2026-02-28 22:39:55 +08:00
朱潮
4295860f7d 更新skill manager 2026-02-28 11:47:21 +08:00
autobee-sparticle
108c675c3d
feat(memory): add memory management API endpoints (#10)
* chore: add .worktrees/ to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(memory): add memory management API endpoints

Add new /api/v1/memory endpoints for viewing and managing user memories:
- GET /api/v1/memory - list all memories for a bot
- DELETE /api/v1/memory/{memory_id} - delete single memory
- DELETE /api/v1/memory - delete all memories for a bot

Also add delete_memory and delete_all_memories methods to Mem0Manager.

Issue: #1844

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 18:01:12 +09:00
朱潮
c3d2018a56 new api 2026-02-27 00:38:13 +08:00
朱潮
6365d65715 user_identifier 2026-02-27 00:21:06 +08:00
朱潮
c9c9a71452 subaccount 2026-02-26 23:56:45 +08:00
朱潮
912d5ebbed 个人中心 2026-02-26 18:11:22 +08:00
autobee-sparticle
90a2d0555f
fix(novare): 添加设备状态术语转换规则,避免系统术语泄露 (#9)
* chore: add .worktrees/ to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(novare): 添加设备状态术语转换规则,避免系统术语泄露

问题:Bot 在回答设备状态时直接使用「オフライン」等系统内部术语,
与用户认知模型不匹配,导致困惑。

解决方案:在 prompt/novare.md 的「响应规范」部分添加术语转换规则:
- 禁止在用户回复中使用系统内部术语
- 优先报告功能状态(亮度、温度等),不提及连接状态
- 提供具体的场景处理示例和正确/错误对比

closes #1853

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 18:14:29 +09:00
朱潮
c751c7997e sigle agent mode 2026-02-26 08:58:32 +08:00
朱潮
7cb2c9c5ca feat: 单智能体模式下加载用户所有知识库
- get_bot_settings 接口中,单智能体模式时加载用户的所有知识库
- 不再从 settings_json 读取 dataset_ids

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 08:29:10 +08:00
朱潮
1d82ca9ba8 feat: 添加启动时自动执行数据库迁移
添加 migrate_single_agent_mode 函数,在系统启动时自动添加
single_agent_bot_id 字段到 agent_user 表

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 08:13:36 +08:00
朱潮
2e928cbc9c feat: 添加单智能体模式 (Single Agent Mode)
为特定用户群体提供简化的智能体访问体验:
- 后端通过环境变量配置模板智能体
- 登录时自动为用户复制模板 bot
- 前端根据配置显示简化的侧边栏入口

后端变更:
- 添加 single_agent_bot_id 字段到 agent_user 表
- settings.py 添加单智能体模式配置
- 登录接口返回 single_agent 配置

环境变量:
- SINGLE_AGENT_MODE: 是否启用单智能体模式
- TEMPLATE_BOT_ID: 模板智能体 ID
- TEMPLATE_BOT_NAME: 模板智能体名称

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 08:05:18 +08:00
朱潮
868e5211b1 update NEW_API_BASE_URL 2026-02-26 00:52:41 +08:00
朱潮
98f23fa346 update payment 2026-02-26 00:35:42 +08:00
朱潮
d7dfd8810e update payment 2026-02-25 23:42:44 +08:00
朱潮
5ab55919bc 移除admin可看到所有bot的能力 2026-02-24 00:00:23 +08:00
朱潮
c257a98a37 Merge branch 'master' into bot_manager 2026-02-23 23:23:44 +08:00
朱潮
a822a2a1d1 优化空的工具调用 2026-02-23 23:23:38 +08:00
朱潮
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
朱潮
144739fb4a Merge branch 'master' into bot_manager 2026-02-16 00:08:57 +08:00
朱潮
37c0eb1a47 删除warning 2026-02-16 00:08:48 +08:00
朱潮
f583cf3bc4 Merge branch 'master' into bot_manager 2026-02-15 18:56:06 +08:00
朱潮
925a0a318a add project root 2026-02-15 18:55:49 +08:00
朱潮
fd5a859030 Merge branch 'master' into bot_manager 2026-02-15 18:13:07 +08:00
朱潮
f5c7d3ff9c on_tool_start 长度调整 2026-02-15 18:12:22 +08:00
朱潮
1b49c353ec Merge branch 'master' into bot_manager 2026-02-15 09:49:00 +08:00
朱潮
a493e98719 增加工具调用的日志 2026-02-15 09:48:45 +08:00
朱潮
6befae11fb Merge branch 'master' into bot_manager 2026-02-14 19:07:00 +08:00
朱潮
198bb08690 修改tool 工具日志 2026-02-14 19:06:14 +08:00
朱潮
3655e0ca9b Merge branch 'bugfix/20260212-skill-format-validation' into master 2026-02-13 11:52:09 +08:00
朱潮
423fdc5c0c add trace_id 2026-02-13 00:30:18 +08:00
朱潮
784517772a add ragflow-loader 2026-02-13 00:13:30 +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
朱潮
bd0bf6056e Merge branch 'staging' into bot_manager 2026-02-11 12:37:59 +08:00
朱潮
63d17d355b feat(skill): add feature memory with changelog and decisions
添加 skill 功能的完整记忆文档:

Changelog:
- 2025-Q4: 初始实现 (GRPC 层 + 内置 skills)
- 2026-Q1: API 完善 (REST API + Hook 系统)

Design Decisions:
- 001: Skill 架构设计 (目录结构、Hook 系统)
- 002: 上传安全措施 (ZipSlip、路径遍历防护)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-11 12:30:56 +08:00
朱潮
bbfe5d929f feat: add skill feature memory
添加 skill 功能的 feature memory,记录技能包管理服务和 Hook 系统的核心信息。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-11 12:14:48 +08:00