feat: HSAP platform v2 — modular navigation, quality review, audit log, world model simulation
Major changes: - New frontend (platform/web/): Vite + React 18 + TypeScript + Tailwind - 4-module navigation: 数据送标 / 模型管理 / 车队管理 / 系统管理 - Data catalog with charts (DMS/ADAS/Lane 3-tab view) - Quality review workflow (标注质检): Good/Fine/Bad scoring with auto-advance - Audit enhancements: batch operations, rejection categories, Feishu notifications - Operation audit log (操作日志) - World model simulation studio (仿真工坊) - Dataset version management with snapshots and diff - ADAS 7-class dataset integration (138K images organized + compressed) - User management with Feishu integration and pagination - CRUD/search/filter on all pages, card layout redesign - PIL-optimized image overlay rendering - Auto-snapshot on build, in_review workflow stage - Removed embedded algorithm code (now in workspace)
This commit is contained in:
39
scripts/feishu_bitable_verify.sh
Executable file
39
scripts/feishu_bitable_verify.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env bash
|
||||
# 检查飞书多维表格配置与 HSAP 连通性(需平台已启动、feishu.env 已填 BITABLE_*)
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if [[ -f manifests/feishu.env ]]; then
|
||||
set -a
|
||||
# shellcheck source=/dev/null
|
||||
source manifests/feishu.env
|
||||
set +a
|
||||
fi
|
||||
|
||||
BASE="${AS_FRONTEND_URL:-http://127.0.0.1:8787}"
|
||||
TOKEN="${HSAP_TOKEN:-}"
|
||||
|
||||
if [[ -z "$TOKEN" ]]; then
|
||||
if [[ "${AS_DEV_AUTH:-}" =~ ^(1|true|yes)$ ]]; then
|
||||
echo "==> 开发登录获取 token"
|
||||
TOKEN="$(curl -sS -X POST "$BASE/api/v1/auth/dev/login" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name":"feishu-verify"}' | python3 -c "import sys,json; print(json.load(sys.stdin).get('access_token',''))")"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -z "$TOKEN" ]]; then
|
||||
echo "请设置 HSAP_TOKEN 或开启 AS_DEV_AUTH 后重试" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "==> GET $BASE/api/v1/integrations/feishu/bitable/status"
|
||||
curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/api/v1/integrations/feishu/bitable/status" | python3 -m json.tool
|
||||
|
||||
echo ""
|
||||
echo "==> GET bitable/tables(查 table_id)"
|
||||
curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/api/v1/integrations/feishu/bitable/tables" | python3 -m json.tool
|
||||
|
||||
echo ""
|
||||
echo "OK: 若 status.ok=true 且 missing_columns 为空,则列名与飞书表一致。"
|
||||
Reference in New Issue
Block a user