8 Commits
Author SHA1 Message Date
Cmake 53116b7e2d feat(mcp): 内嵌 MCP 端点 /api/v1/mcp(11 个工具)
Build and Push / build (push) Successful in 5m58s
- 手写 JSON-RPC 2.0 over HTTP(不引 mcp-go:它要求 go 1.23,本仓库与基础镜像是 1.22)
- initialize / tools/list / tools/call / ping,工具全为只读识别调用,无 dry_run 需求
- 11 工具:list_capabilities / ocr / math / slider_match / slider_comparison / similarity /
  rotate_single / rotate_double / detect_objects(detail 可开逐框细分类)/ classify_object / animal_jump
- 鉴权:MCP_TOKEN(Bearer / X-MCP-Token / ?token=),常量时间比较;token 为空不挂载(fail-closed)
- animal_jump 的 MCP 响应剔除 per_frame,省 agent 上下文
2026-12-04 03:16:01 +08:00
Cmake 54d06650c5 feat: 类型展示 + 在线试用 + 在线训练
Build and Push / build (push) Successful in 6m10s
- /api/capabilities:11 项能力 + 6 个模型的结构/参数量/I-O 元数据
- 训练编排:Dataset/TrainTask 表、数据集 zip 上传(含数据校验与 data.yaml 生成)、
  任务创建/启动/取消/日志、进度轮询(status.json + 日志正则双通道)
- 侧边栏控制台(暗色工业风,可折叠):能力与模型页、在线试用页(自动把检测框/缺口画到图上)、在线训练页
- Dockerfile 增加训练层(python + CPU torch + ultralytics,可用 ARG 关掉)
2026-12-03 19:31:08 +08:00
admin 8d9d3f79fa fix: ensure JWT secret is initialized before generating tokens
Build and Deploy / build (push) Successful in 3m10s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 07:09:59 +00:00
admin 1ff489971b fix: register API routes before NoRoute to prevent route hijacking
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 23:41:09 +00:00
admin 84cac4ea77 fix: 安装后设置全局配置,提示重启容器
Build and Deploy / build (push) Failing after 1m51s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:00:10 +00:00
admin a6b03a6152 fix: 安装时创建管理员用户,登录从数据库验证
Build and Deploy / build (push) Failing after 1m49s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 18:50:54 +00:00
admin 731e00855b fix: CI/CD build errors
Build and Deploy / build (push) Failing after 3s
Build and Deploy / deploy (push) Has been skipped
- Simplified go.mod with all dependencies
- Fixed generateRandomSecret function
- Updated Dockerfile to use debian bookworm
- Simplified CI workflow to single job
- Fixed Gitea Actions syntax (github.ref)
2026-07-16 09:23:24 +00:00
admin 524c404194 feat: initial commit - Go + CGO captcha recognition service
Build and Deploy / build-frontend (push) Failing after 2s
Build and Deploy / build-backend (push) Has been skipped
Build and Deploy / build-docker (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped
Features:
- Go + CGO ONNX/OpenCV wrapper for high performance
- SQLite (default) / MySQL database support
- Optional Redis caching
- JWT authentication system
- Multiple captcha recognition APIs:
  - OCR text recognition
  - Slider captcha matching
  - Image similarity comparison
  - Rotation captcha detection
  - Object detection
- React frontend with install wizard
- Docker and docker-compose support
- Gitea CI/CD pipeline

Project structure:
- cmd/server: Main entry point
- internal/: Core business logic
- pkg/onnx: ONNX Runtime CGO wrapper
- pkg/opencv: OpenCV CGO wrapper
- web/: React frontend
- deploy/: Deployment configs
- scripts/: Utility scripts
2026-07-16 08:56:38 +00:00