lanyuanxiaoyao 6eeb4ced7b refactor: 聊天室 Agent 重构 — ToolLoopAgent + 论坛式布局
后端:
- 删除 agent-stream.ts,新建 alfred-agent.ts (ToolLoopAgent 工厂)
- 新建 get-current-time.ts 工具 (zod schema)
- 重构 send.ts: createAgentUIStreamResponse + onFinish 可靠持久化

前端:
- 删除 MessageBubble.tsx,新建 ToolCallCard.tsx (四态)
- 重构 ChatPanel.tsx: 论坛式 Card 布局 + PartRenderer 分派
- 移除 @ant-design/x 依赖,改用 antd 组件 + streamdown

依赖:
+ zod + streamdown
- @ant-design/x - @ant-design/x-markdown

测试: 306 pass, typecheck/lint 0 errors
2026-05-31 17:25:29 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-31 02:37:23 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00
2026-05-26 18:21:06 +08:00

Alfred·阿福

基于 AI 的信息综合处理平台,融合多源信息、智能分析与一站式处理。

快速开始

cp config.example.yaml config.yaml
bun install
bun run dev config.yaml

访问 http://127.0.0.1:5173 查看应用。

文档导航

文档 内容
docs/README.md 文档总览、归属矩阵、影响分析规则
docs/user/ 使用、配置、部署、故障排查
docs/development/ 架构、后端、前端、构建发布开发规范
docs/prompts/ AI 提示词资产(不属于常规文档流)

常用命令

命令 说明
bun run dev <config> 启动开发模式
bun run build 生产构建
bun test 运行测试
bun run check 完整质量检查
bun run verify 验证构建流程

开源协议

Apache 2.0

Description
No description provided
Readme Apache-2.0 2.7 MiB
Languages
TypeScript 97.7%
JavaScript 1.2%
CSS 1.1%