8 Commits

Author SHA1 Message Date
eda50f8140 fix: 修复WebSocket连接 - 移除错误的cookie参数传递 2026-05-13 14:58:11 +08:00
fd8930ef43 fix: wss URL添加/wss前缀
- WebSocket widget ws_url: /wss/harnessed_reasoning/reasoning_console.wss
- HTML中硬编码的JS connect() URL同步添加/wss前缀
nginx将/wss前缀路由到.wss处理器,URL必须包含此前缀
2026-05-13 14:45:06 +08:00
766bd9ecb9 fix: WebSocket连接添加cookie认证,修复ahserver权限校验 2026-05-09 16:16:59 +08:00
3ed94fdf7a fix: wss路径修正,entire_url从../改为./指向模块目录 2026-05-09 16:05:04 +08:00
cf00fce500 refactor: 推理控制台UI改用bricks声明式widgets
- 静态UI改用VBox/HBox/Title2/Text/Input/Button/Scroll原生控件
- Html widget仅保留JS动态渲染逻辑(步骤卡片/状态更新)
- 符合bricks框架声明式UI规范
2026-05-09 15:55:55 +08:00
ea4a9e3bd9 feat: 推理过程可视化 - websocket实时推送推理步骤到前端
- core.py: 注入ws_push回调, 17个推理节点实时推送事件(上下文/规划/工具调用/执行)
- wwwroot/reasoning_console.wss: 新建websocket端点, 支持connect/start_reasoning/ping
- wwwroot/reasoning_console.ui: 重写HTML前端, 时间线式可视化展示推理过程
2026-05-09 15:48:12 +08:00
8108e86ab5 refactor: replace mock reasoning with real LLM-based engine
- Rewrite core.py: all mock implementations replaced with real calls
  * _generate_plan() uses llm_chat from harnessed_agent for LLM-based planning
  * _execute_tool() calls harnessed_execute_tool for real tool execution
  * _get_memory_context() calls harnessed_get_intelligent_memory_context
  * _safety_check() with configurable strict/moderate/lenient modes
  * _try_recovery() for auto-recovery on common failures
  * All session persistence uses real database operations

- Fix reasoning_console.ui: uitype 'textarea' -> 'text' per bricks spec
- Add .gitignore

The reasoning module now:
1. Calls LLM to analyze user request and generate execution plan
2. Safety-checks the plan before execution
3. Executes tools via harnessed_agent's tool system
4. Recovers from common errors automatically
5. Stores session history in database
2026-05-07 12:15:23 +08:00
3dfd935dfe 添加推理交互和模型配置:创建推理控制台UI和API,扩展config模型添加LLM模型字段(model_name/provider/api_key/temperature等) 2026-05-06 15:05:28 +08:00