Files
yun-xue-tang-assistant/package.json
T
void 17217dbeb1 feat: 考试结果页去重与跳课,构建镜像脚本支持国内换源
考试:
- 新增 src/exam-plan.js(纯函数)判定结果页处置:只有本页确实点过
  「提交考试/确定交卷」才算一次空卷交卷,平台恢复的旧结果页先回
  「考试说明页」重进,不再在结果页和课程页之间空转
- 重试也不会好的确定性失败(交卷次数到上限、说明页无「开始考试」、
  答卷页无「提交考试」、结果页反复回退)改为本轮跳过该课继续下一门,
  记录在 S.skippedCourses(sessionStorage),不会停下整轮刷课
- 新一轮开跑时清空 skippedCourses / examEmptySubmits,人工处理后可重试
- 补 dev/tests/exam-test.mjs(npm run test:exam,5 条用例)

构建:
- 新增 scripts/build-docker.mjs/.cmd/.sh(npm run docker:build):
  国内换源、按包版本打标签、构建后自检、--dry-run
- Dockerfile 增加 APT_MIRROR / NPM_REGISTRY 构建参数,
  docker-compose.yml 透传三个 build args,.env.example 补说明
2026-10-29 21:31:45 +08:00

30 lines
1.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "yun-xue-tang-assistant",
"version": "2.8.0",
"private": true,
"description": "云学堂(*.yunxuetang.cn)Tampermonkey 助手:自动登录、顺序听课、自动切节、批量刷课",
"scripts": {
"build": "node scripts/build.mjs",
"build:watch": "node scripts/build.mjs --watch",
"dev": "node dev/serve.mjs",
"check": "node scripts/check.mjs",
"test:real": "node dev/tests/real-test.mjs",
"test:real:headless": "node dev/tests/real-test.mjs --headless",
"test:e2e": "node dev/tests/real-e2e.mjs",
"test:e2e:play": "node dev/tests/real-e2e.mjs --play",
"test:tui": "node dev/tests/tui-test.mjs",
"test:study": "node dev/tests/study-test.mjs",
"test:exam": "node dev/tests/exam-test.mjs",
"docker:build": "node scripts/build-docker.mjs",
"docker:check": "node scripts/build-docker.mjs --check",
"headless": "node runner/headless.mjs",
"headless:check": "node runner/headless.mjs --check"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"esbuild": "^0.28.2"
}
}