feat(contracts): embed slots admin and public endpoints

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-20 21:49:09 +08:00
parent e9a7dc8740
commit eb51069a12
4 changed files with 879 additions and 0 deletions
+7
View File
@@ -63,3 +63,10 @@ VISIT_WINDOW_REQUESTS=60
# 每窗请求数上限——签名现算无幂等面,限速定位是误客户端缓冲,P5 速率层接防)。
DOWNLOAD_WINDOW_REQUESTS=120
CLEANUP_INTERVAL_MINUTES=60
# P4b Task 1:嵌入组件(悬浮轮播 iframe)公开端点轮询参数——间隔毫秒 /
# 连续失败上限 / 失败退避倍数(达到上限后间隔 ×倍数,成功即恢复)。默认值见
# packages/contracts/src/constants.ts;P4b Task 4 起被 apps/viewer 嵌入页读取
# (ETag 304 命中时零负载,A23 省流量)。
EMBED_POLL_INTERVAL_MS=30000
EMBED_POLL_MAX_FAILURES=5
EMBED_POLL_BACKOFF_MULTIPLIER=5