feat: CVAT 标注引擎、我的标注收件箱与 ADAS Cuboid 送标

- 统一标注引擎为 CVAT:客户端/配置/格式转换、iframe 标注页、docker-compose.cvat.yml 与 no_auth 补丁
- 移除 Label Studio 相关配置与构建脚本,清理 embedded.bak 备份与误提交的 node_modules
- 新增「我的标注」:跨 Campaign 收件箱、逐张清单、CVAT frame 跳转
- 飞书任务分配:通讯录同步选人、按量分配、分配后 DM 通知(含 my-tasks 链接)
- ADAS cuboid_7cls 数据湖接入:workflow 路径、register-batch、开标上传与标注同步
- 数据湖挂载 AS_DATA_LAKE_ROOT、datasets/adas 符号链接、reset_labeling 运维脚本
- 补充 docs/HANDOVER.md 项目交接文档

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-15 17:25:28 +08:00
parent e72bc061c5
commit 672ef61e17
5281 changed files with 5194 additions and 1315918 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Build HSAP standalone frontend from platform/web/ and deploy to platform/ui-hsap/dist/
# Build HSAP frontend from platform/web/ platform/ui-hsap/dist/
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
@@ -11,50 +11,7 @@ echo "[web] Building..."
npm run build
DIST="$ROOT/platform/ui-hsap/dist"
# Copy Label Studio Editor legacy build for /annotate/
EDITOR_SRC="${LABEL_STUDIO_DIST:-${ROOT}/../workspace/BK2/label-studio/web/dist/apps/hsap-platform}"
if [ -d "$EDITOR_SRC" ]; then
mkdir -p "$DIST/annotate"
cp -r "$EDITOR_SRC"/* "$DIST/annotate/"
# Copy webpack chunks to dist root (webpack publicPath="/" loads them from root)
for f in editor.js 849.js 710.js 408.js 63.js main.css editor.css; do
[ -f "$DIST/annotate/$f" ] && cp "$DIST/annotate/$f" "$DIST/$f"
done
# Custom annotate index.html
cat > "$DIST/annotate/index.html" << 'HTMLEOF'
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>HSAP · 标注编辑器</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/annotate/main.css" />
<link rel="stylesheet" href="/annotate/editor.css" />
</head>
<body>
<div id="root"></div>
<script>
(function() {
var p = new URLSearchParams(location.search);
var cid = p.get('c');
if (cid) {
history.replaceState(null, '', '/labeling/campaigns/' + cid + '/annotate');
}
})();
</script>
<script src="/annotate/main.js"></script>
</body>
</html>
HTMLEOF
echo "[web] Annotate editor (legacy LS) deployed from $EDITOR_SRC"
else
echo "[web] ⚠ annotate editor source not found at $EDITOR_SRC"
fi
rm -rf "$DIST/annotate"
echo "[web] Build complete → $DIST"
echo "[web] Files:"
ls -lh "$DIST/index.html" "$DIST/assets/" | head -8