feat(tsl-syntax-reference): harden retrieval contracts

Add stable section IDs, structural and routing regressions, quickstart consistency checks, and CI enforcement.

BREAKING CHANGE: replace heading-derived Section IDs with explicit syntax-NN-NNN identifiers.
This commit is contained in:
csh
2026-07-31 10:05:15 +08:00
parent 21e688a436
commit 736d1a8ad7
30 changed files with 1635 additions and 137 deletions
+17
View File
@@ -130,10 +130,27 @@ jobs:
echo "========================================"
cd "$REPO_DIR"
echo "📦 安装锁定的 Node.js 校验工具"
npm ci --ignore-scripts --no-audit --no-fund --no-bin-links
echo "📋 覆盖:CLI、subtree/snapshot 部署路线、模板同步、文档一致性"
python3 -m unittest discover -s test -p "test_*.py" -v
echo "✅ Python 测试通过"
echo "========================================"
echo "🧭 TSL Syntax Reference 结构检查"
echo "========================================"
python3 skills/tsl-syntax-reference/scripts/lookup.py --check
echo "✅ TSL Syntax Reference 结构检查通过"
echo "========================================"
echo "🎨 TSL Syntax Reference 格式检查"
echo "========================================"
node node_modules/prettier/bin/prettier.cjs --check skills/tsl-syntax-reference
echo "✅ TSL Syntax Reference 格式检查通过"
echo "========================================"
echo "🔗 文档链接检查"
echo "========================================"
+3 -1
View File
@@ -44,8 +44,10 @@ jobs:
[curl]="curl"
[flock]="util-linux"
[realpath]="coreutils"
[node]="nodejs"
[npm]="npm"
)
required_commands=(git python3 curl flock realpath)
required_commands=(git python3 curl flock realpath node npm)
missing_commands=()
missing_packages=()
declare -A seen_packages=()