Commit Graph

83 Commits

Author SHA1 Message Date
hhs
8ce5c02730 ci: 统一 workflow 步骤名称为英文 2026-06-13 11:45:08 +08:00
734c93a866 feat: 完善端到端对话闭环,增强消息渲染与错误处理
- ChatPanel:流式光标动画、token/延迟元数据、自动滚动、三种空状态
- Toast 组件:错误码映射为中文友好文案,3 秒自动消失
- useVisionSession:stt_result 流式更新、防重复发送、打断保存未完成内容、结束清理全部状态
- App:断线提示、视频 loading 遮罩、按钮连接中状态
- ChatMessage 增加 latencyMs、model 字段

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-13 11:43:16 +08:00
fc8b67be1a Merge pull request 'fix: 修正 install node 步骤的 working-directory 并使用阿里云镜像源' (#20) from build/actions into develop
All checks were successful
Backend CI / ci (pull_request) Successful in 1m11s
Frontend CI / ci (pull_request) Successful in 30s
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/20
2026-06-13 11:41:47 +08:00
hhs
3d7d7d190c fix: 修正 install node 步骤的 working-directory 并使用阿里云镜像源 2026-06-13 11:41:08 +08:00
01e3eb421c Merge pull request 'fix: 使用 Alpine 容器镜像解决 checkout action 找不到 node 的问题' (#18) from build/actions into develop
Some checks failed
Backend CI / ci (pull_request) Failing after 42s
Frontend CI / ci (pull_request) Successful in 1m7s
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/18
2026-06-13 11:39:16 +08:00
hhs
c5c9bf802f fix: 使用 Alpine 容器镜像解决 checkout action 找不到 node 的问题 2026-06-13 11:38:48 +08:00
2c9159afad Merge pull request 'fix: 移除 setup-go/setup-node,宿主机已预装 Go 和 Node' (#16) from build/actions into develop
Some checks failed
Backend CI / ci (pull_request) Failing after 0s
Frontend CI / ci (pull_request) Failing after 1s
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/16
2026-06-13 11:31:18 +08:00
hhs
17c8ced6bd fix: 移除 setup-go/setup-node,宿主机已预装 Go 和 Node 2026-06-13 11:29:41 +08:00
9ccd4d6238 feat: 集成 VAD 语音活动检测,打通核心交互链路
- 重写 useVAD Hook,接入 @ricky0123/vad-web 的 MicVAD
- 支持 onSpeechStart/onSpeechEnd/onVADMisfire 回调
- useVisionSession 中串联摄像头→麦克风→WebSocket→VAD 完整流程
- App.tsx 新增 VAD 加载中和错误状态的 UI 指示
- VAD 参数对齐设计文档:positiveSpeechThreshold=0.5, minSpeechMs=250

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-13 11:10:29 +08:00
e372c0022d Merge pull request 'fix: 为 uses 的 URL 加引号修复 YAML 解析错误' (#14) from build/actions into develop
Some checks failed
Backend CI / ci (pull_request) Failing after 4s
Frontend CI / ci (pull_request) Failing after 1m14s
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/14
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-13 10:48:29 +08:00
hhs
2ce04dcca1 fix: 为 uses 的 URL 加引号修复 YAML 解析错误 2026-06-13 10:46:32 +08:00
cc8337bef6 Merge pull request 'build/actions' (#12) from build/actions into develop
Some checks failed
Backend CI / ci (pull_request) Failing after 1m25s
Frontend CI / ci (pull_request) Failing after 1m36s
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/12
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-13 10:44:05 +08:00
hhs
8c9a9d6020 ci: 添加 health test 工作流用于验证 Gitea Actions 运行 2026-06-13 10:42:07 +08:00
hhs
324b3c9f8a fix: 移除 container 字段和 paths 过滤器,恢复 setup-go/setup-node 以兼容 Gitea Actions 2026-06-13 10:39:20 +08:00
47af4cc114 Merge pull request 'fix: 修正 Gitea Actions 工作流目录名为复数形式 workflows' (#10) from build/actions into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/10
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-13 10:35:42 +08:00
hhs
ebbe33aeed fix: 修正 Gitea Actions 工作流目录名为复数形式 workflows 2026-06-13 10:34:36 +08:00
aac93f19ec Merge pull request 'ci: 配置 Docker 容器运行、镜像源及自建 checkout action' (#8) from build/actions into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/8
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-13 10:26:30 +08:00
hhs
63933a645f ci: 配置 Docker 容器运行、镜像源及自建 checkout action 2026-06-13 10:25:02 +08:00
54cf06e1d6 Merge pull request 'ci: 调整 CI 触发分支为 main,运行环境改为 aliyun' (#6) from build/actions into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/6
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-13 10:06:26 +08:00
hhs
4967de3556 ci: 调整 CI 触发分支为 main,运行环境改为 aliyun 2026-06-13 10:01:43 +08:00
91cb12a47f Merge pull request 'ci: 添加前端与后端 Gitea Actions 持续集成工作流' (#4) from build/actions into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/4
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-13 09:44:40 +08:00
fe23053564 Merge branch 'develop' into build/actions 2026-06-13 09:42:25 +08:00
hhs
0304c1d27f ci: 添加前端与后端 Gitea Actions 持续集成工作流 2026-06-12 23:39:42 +08:00
10c18038f2 Merge pull request 'fix: 修复 .gitignore 并降级 React 到 18 以对齐设计文档' (#3) from frontend into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/3
Reviewed-by: huanghaosheng <386998068@qq.com>
2026-06-12 21:47:40 +08:00
81093555bb fix: 修复 .gitignore 并降级 React 到 18 以对齐设计文档
- 补充 .gitignore:忽略 node_modules/、dist/、bin/、.env、.obsidian/ 等
- 降级 react、react-dom 到 18.3.1,@types/react、@types/react-dom 到 18.x
- 与 docs/02-系统架构.md 和 CLAUDE.md 中的 React 18 技术选型保持一致

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 21:37:02 +08:00
14550d3aa2 Merge pull request 'feat: 初始化前端项目,搭建 React + TypeScript + Vite 工程结构' (#2) from build/frontend into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/2
Reviewed-by: huanghaosheng <386998068@qq.com>
2026-06-12 17:53:03 +08:00
b5c0d40609 feat: 初始化前端项目,搭建 React + TypeScript + Vite 工程结构
- 创建 Vite + React 18 + TypeScript 项目(严格模式)
- 安装 @ricky0123/vad-web、onnxruntime-web、uuid 依赖
- 定义全部 WebSocket 消息类型和数据模型(对齐接口文档)
- 实现 WebSocket 连接管理(心跳保活、指数退避重连)
- 实现音频编码工具(PCM↔Base64、DataURL 转换)
- 创建组件骨架:CameraManager、MicManager、EdgeProcessor、WebSocketManager、ChatPanel、VideoPreview
- 实现核心 useVisionSession Hook 骨架
- 配置 ESLint(_前缀变量忽略规则)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 17:46:25 +08:00
a26e008f81 Merge pull request 'feat: 初始化 Go 后端项目骨架' (#1) from build/backend into develop
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/1
Reviewed-by: cfy777 <3087823110@qq.com>
2026-06-12 17:40:19 +08:00
hhs
9f876df816 feat: 初始化 Go 后端项目骨架
- 使用 Gin 框架替代原始 net/http,方便调试
- 实现 WebSocket 端点 (/ws),支持 ping/query/config/interrupt 消息
- 实现健康检查 REST 接口 (/api/health)
- 定义协议数据结构 (models)
- 心跳检测(60 秒超时断开)
2026-06-12 17:34:43 +08:00
hhs
10f676f3b4 docs: 扁平化目录结构,优化文档为 Coding Agent 可读格式
- 移除 Obsidian 特有语法(callout、wikilinks、YAML frontmatter)
- 目录结构从 3 层嵌套扁平化为编号文件(01~09)
- 新增 docs/README.md 文档索引与推荐阅读顺序
- 精简冗余解释,保留所有代码块和实现参考
- CLAUDE.md 全面中文化
2026-06-12 17:08:20 +08:00
hhs
8717a52ab7 docs: 提交信息改用中文描述,强化文档优先原则 2026-06-12 16:51:28 +08:00
hhs
33cce2a21c docs: add CLAUDE.md with project architecture and development guidelines 2026-06-12 16:49:01 +08:00
d17b85d78b Initial commit 2026-06-12 10:50:07 +08:00