Commit Graph

449 Commits

Author SHA1 Message Date
朱潮
55505c727a update managing-scripts 2026-03-02 10:37:32 +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
朱潮
8d29a263e1 修复 robot 目录被意外清空的问题
移除 create_robot_project 的重建逻辑,避免在发送消息时删除 dataset 文件夹内容

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-28 23:28:37 +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
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
393d8c7c37 chore: add .worktrees/ to .gitignore
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 04:38:05 +00:00
朱潮
a822a2a1d1 优化空的工具调用 2026-02-23 23:23:38 +08:00
朱潮
37c0eb1a47 删除warning 2026-02-16 00:08:48 +08:00
朱潮
925a0a318a add project root 2026-02-15 18:55:49 +08:00
朱潮
f5c7d3ff9c on_tool_start 长度调整 2026-02-15 18:12:22 +08:00
朱潮
a493e98719 增加工具调用的日志 2026-02-15 09:48:45 +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
朱潮
a6e7892536 modify routes/skill_manager.py 2026-02-12 22:19:09 +08:00
朱潮
2d20c7cbba update dataset_id_str 2026-02-10 22:18:30 +08:00
朱潮
569fb3aa79 env only command enable 2026-02-10 20:07:47 +08:00
朱潮
815ad01876 add mcp dataset_ids 2026-02-10 19:00:19 +08:00
朱潮
805bd6f5d4 modify skill middleware 2026-02-10 11:53:14 +08:00
朱潮
5138cd0abf add page number 2026-02-09 12:21:28 +08:00
朱潮
3ec992436c add USER_IDENTIFIER 2026-02-07 15:39:20 +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
朱潮
66f228960b update poetry 2026-02-05 18:56:50 +08:00
朱潮
6d32a49c09 update novare.md 2026-02-05 10:35:58 +08:00
朱潮
2e429e82f7 remove summary output 2026-02-04 17:39:51 +08:00
朱潮
525801d7f5 update summary 2026-02-04 15:31:41 +08:00
朱潮
352a2f2f44 降低MAX_CONTEXT_TOKENS 2026-02-03 16:53:51 +08:00
Henry_Sys_Arch
15b66f2a08 Auto stash before merge of "master" and "staging" 2026-01-29 15:40:52 +09:00
Henry_Sys_Arch
4e19c27edf Merge branch 'staging' 2026-01-29 15:40:37 +09:00
Henry_Sys_Arch
05cffe8e16 add staging cicd 2026-01-29 12:31:20 +09:00
Henry_Sys_Arch
50cf725c93 update 2026-01-29 12:31:12 +09:00
Henry_Sys_Arch
e5e2ecc35c update 2026-01-29 11:29:04 +09:00
朱潮
f1107ea35a 增加enable_thinking和enable_memory 2026-01-28 17:13:41 +08:00
朱潮
26a85299b3 add skills_developing 2026-01-27 12:08:00 +08:00
朱潮
f9efe09f24 Merge branch 'prod' 2026-01-25 21:46:06 +08:00
朱潮
5134c0d8a6 添加环境变量 2026-01-25 21:46:02 +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
朱潮
f29fd1fb54 📝 docs(prompt): add skill execution workflow with read_file pattern
- Add 3-step workflow: read_file → extract command → bash execute
- Include complete example showing read_file + bash execution pattern
- Clarify that SKILL.md must be read with read_file tool before execution
- Add key rules with checkmarks (always read_file, always absolute paths)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-01-21 17:50:58 +08:00
朱潮
d3f60e129b 📝 docs(prompt): enhance skill script path handling instructions
- Add CRITICAL path handling section with skill-specific conversion rules
- Include path conversion table showing SKILL.md relative paths to absolute paths
- Add 4-step execution guide for skill script path resolution
- Clarify skill directory structure (scripts/ can be at root or in scripts/ subfolder)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-01-21 17:21:53 +08:00
朱潮
0922ad084a patch 2026-01-21 13:23:11 +08:00
朱潮
60bd1e4042 feat(prompt): add fact retrieval prompt with contact tracking
Add comprehensive prompt for extracting and storing user facts from
conversations, with special focus on relationship/contact tracking:
- Full name and nickname association (e.g., "Mike" → "Michael Johnson")
- Relationship context recording (family, friend, colleague, etc.)
- Multi-language name support
- Few-shot examples for various fact extraction scenarios

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-01-21 13:22:17 +08:00
朱潮
99755ceab5 remove settingsetting 2026-01-21 10:38:29 +08:00
朱潮
40bd50c439 update claude.md 2026-01-21 09:03:12 +08:00
朱潮
3aa223d71d update requirements.txt 2026-01-21 08:47:55 +08:00