feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点

落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 01:27:58 +08:00
co-authored by Cursor
parent 13860bf1ef
commit 89756f65b4
227 changed files with 7405 additions and 1407 deletions
+40
View File
@@ -0,0 +1,40 @@
# ECR-012
**Title:** 用户文字输入合规(后端 textsafe + 前端镜像)
**Status:** Approved
**Date:** 2026-08-12
**Approved:** 2026-08-12(Human:文字输入全规则;后端为重点)
**Change Level:** L2
## Change
1. Active Spec`.ai/product/feature-spec/input-compliance.md`
2. `internal/textsafe`:长度 · XSS/控制字符 · lexicon · 刷屏特征 · Normalize
3. 挂接 C 端:auth 昵称 · profile 名 · ask content · companion note · growth title/focus/note · synastry invite display_name
4. `@yuxingu/utils` 镜像校验供 H5 即时提示
5. 错误码 `40060`
## Motivation
自由文字缺少统一合规闸门,易进库/进模型。
## Scope
### Allowed
- 上列 Spec / textsafe / 指定 Handler·Service / utils
### Forbidden
- 第三方审核 SaaS · 语音 · 改开放登录 · Ops 全文案重构(可后 ECR)
## Acceptance
- [x] 违规 nickname / ask / note → 40060
- [x] 合法中文名通过
- [x] go test textsafe PASS
- [x] 关键表单前端有即时错误(至少昵称/问答/档案名)
## Trace
Spec `input-compliance` · TASK-012 · TEST_REPORT/ECR-012.md