 xuyueandClaude Opus 5.5
|
dde976cacb
|
build: 前端改用 Bun + Vite,格式化改用 bun fmt
- 包管理和运行时换成 Bun:bun.lock 取代 package-lock.json,脚本用 bun --bun 运行,
CI 改用 oven-sh/setup-bun(1.4.4,与后端镜像一致)
- 构建工具从 Rsbuild 换成 Vite 8,沿用 PUBLIC_ 环境变量前缀和 3000 端口;
浏览器目标保持 Chrome 87 起(机房是 Chrome 105),用 plugin-legacy 按需注入
core-js(toSorted 等),不生成旧浏览器的兼容包
- fmt 改用 Bun 自带的格式化,配置从 .prettierrc.toml 移到 bunfig.toml;
prettier 包仍保留,编辑器里的「整理」按钮在浏览器里用它
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 19:10:50 +08:00 |
|
 xuyueandClaude Opus 5.5
|
351e4b9499
|
chore: 去掉 maxkb 聊天挂件
页面不再加载 maxkb 的嵌入脚本,删除对应的 PUBLIC_MAXKB_URL 配置。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 19:10:35 +08:00 |
|
 xuyueandClaude Opus 5.5
|
38137a828a
|
ci: actions/checkout 和 setup-node 升到 v7(Node 24)
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 18:51:29 +08:00 |
|
 xuyueandClaude Opus 5.5
|
4616bd9469
|
ci: 部署脚本出错即失败,git pull 显式指定 origin main
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
服务器上的 main 没有设置上游分支,git pull --ff-only 报错后脚本照常往下执行,
用旧代码重新构建,CI 却显示成功,导致 e6a3da1 等提交一直没上线。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 18:49:25 +08:00 |
|
 xuyueandClaude Opus 5.5
|
ceba1c68f2
|
fix: 修复注册和上传素材在 await 前后的并发竞态;补充 SQLite 写法说明
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
- 注册 / 新建用户 / 批量建用户:先算密码哈希,再同步地查重和插入,
同名并发请求返回 400 而不是撞唯一约束变成 500
- 上传任务素材改用 INSERT ... ON CONFLICT DO UPDATE
- CLAUDE.md 补充同步阻塞、行内大文本列、索引、类型差异等注意事项
- 忽略根目录的 db.sqlite3(线上数据备份)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 18:36:54 +08:00 |
|
 xuyueandClaude Opus 5.5
|
e6a3da14b0
|
perf: 提交列表等查询改走覆盖索引,避免读取 html/css/js 大行
SQLite 把 html/css/js 存在行内,而 user_id、task_id、flag 等列排在它们后面,
读这些列也要先读完整段代码;线上库也没有统计信息,规划器常挑错索引。
- 新增覆盖索引 submission_submission_slim
- 提交列表、随机打分先在索引上取 rowid,再只读这一页 / 这一行的完整内容
- 列表的 flag / zone 筛选用一元 + 避开单列索引
- 打开数据库时执行 PRAGMA optimize,之后每小时一次
线上备份实测:提交列表 844 ms → 6 ms,打分后重算分数 11.5 ms → 0.2 ms。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 18:36:54 +08:00 |
|
 xuyueandClaude Opus 5.5
|
4b8109caaa
|
ci: 暂时停用 school 服务器的部署
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 18:02:43 +08:00 |
|
 xuyueandClaude Opus 5.5
|
26f05d1d76
|
refactor: 后端从 Django 换成 Bun + SQLite
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Deploy / deploy (build:staging, school, 8822) (push) Canceled after 0s
Django 多个 worker 内存占用 1-2 GB,换成 Bun 单进程后约 25 MB,
同时去掉 Postgres 和 Redis,只剩 Caddy + Bun 两个容器。
- server/:Hono + bun:sqlite + Bun 原生 WebSocket,接口与原 django-ninja
保持兼容;表结构、时间/UUID 存储格式、密码哈希与 Django 一致,旧数据可直接使用
- 评分加权、贝叶斯平滑、成绩册的计算结果与原实现逐位一致(复刻 Python round/sum)
- scripts/:Postgres → SQLite 迁移、新建超管、提示词层级标注、重算分数
- 前端:Django Admin 去掉后,用户新建/修改改为页面内弹窗;
非超管的挑战公开按钮置灰
- 权限不足返回 JSON 403(原来是重定向到不存在的登录页)
- docker-compose / Caddyfile / dev.sh / CLAUDE.md 更新,删除 AGENTS.md
- 服务器切换步骤见 docs/migrate-to-bun.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 17:45:09 +08:00 |
|
 xuyueandClaude Opus 5.5
|
47d4679984
|
chore: 合并为单仓库,统一部署流程
- 根目录加入 docker-compose、Caddyfile、文档等原本不在仓库里的文件
- 前后端两份 GitHub Actions 合并成根目录的一个 deploy workflow:
构建前端上传到 build/,再在服务器上 git pull 并重建容器
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 16:02:12 +08:00 |
|
 xuyueandClaude Opus 5.5
|
70983a12a5
|
chore: 合并后端仓库 webpreviewapi 的历史
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 16:01:25 +08:00 |
|
 xuyueandClaude Opus 5.5
|
d1c6b8c201
|
chore: 将前端移动到 client/ 目录,准备合并为单仓库
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 16:01:25 +08:00 |
|
 xuyueandClaude Opus 5.5
|
0591eda56f
|
chore: 将后端移动到 api/ 目录,准备合并为单仓库
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-26 16:01:25 +08:00 |
|
 xuyueandClaude Opus 5
|
e172ffc0b3
|
add creation
自由创作:新增 Creation 模型(继承 Task,display 自动递增)与
/api/creation/ 路由,支持增删改和代码保存,只有创作者本人和超管可访问。
自由创作不进入提交/评分体系;prompt 的两个 WebSocket consumer
连接时校验 can_access_task。补充 task/tests.py 覆盖上述行为。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
2026-08-14 09:29:02 -06:00 |
|
 xuyueandClaude Opus 5
|
1f6935e31e
|
add creation
自由创作:新增 /creation 列表与详情页、Creation API 与类型定义,
TaskPanel 增加入口,PromptPanel 支持 allowSubmit 控制提交按钮。
顺带升级依赖并按 prettier 重新格式化。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
2026-08-14 09:28:05 -06:00 |
|
xuyue
|
2588ea42fd
|
update
|
2026-06-28 06:06:25 -06:00 |
|
xuyue
|
fd0fffb185
|
update
|
2026-06-28 06:06:23 -06:00 |
|
xuyue
|
4497af940f
|
add grade
|
2026-06-28 05:59:54 -06:00 |
|
xuyue
|
663fb8d1dc
|
add grade
|
2026-06-28 05:59:50 -06:00 |
|
xuyue
|
ae32732cf6
|
add grade
|
2026-06-25 23:55:48 -06:00 |
|
xuyue
|
9c652a6b3d
|
add grade
|
2026-06-25 23:55:46 -06:00 |
|
xuyue
|
29bb89a257
|
add grade
|
2026-06-25 23:49:38 -06:00 |
|
xuyue
|
c4196e61e9
|
add grade
|
2026-06-25 23:49:35 -06:00 |
|
xuyue
|
681c6ff4f4
|
update
|
2026-06-14 06:32:09 -06:00 |
|
xuyue
|
5bb8a1eaa3
|
update
|
2026-06-11 21:24:50 -06:00 |
|
xuyue
|
4f288a1fef
|
fix
|
2026-06-11 21:22:02 -06:00 |
|
xuyue
|
a335eb22e8
|
fix
|
2026-06-11 21:08:40 -06:00 |
|
xuyue
|
c12c77ac7e
|
fix
|
2026-06-11 21:08:35 -06:00 |
|
xuyue
|
8cddff6684
|
fix
|
2026-06-11 20:49:27 -06:00 |
|
xuyue
|
3102e1178a
|
fix
|
2026-06-11 20:48:51 -06:00 |
|
xuyue
|
a15b3d9c76
|
rating when ai is steaming
|
2026-06-11 19:53:15 -06:00 |
|
xuyue
|
6938133775
|
rating when ai is steaming
|
2026-06-11 19:53:13 -06:00 |
|
xuyue
|
05ecf6bebf
|
update
|
2026-06-11 22:35:14 +08:00 |
|
xuyue
|
54d9861bd8
|
update
|
2026-06-11 22:21:59 +08:00 |
|
xuyue
|
596ceec880
|
fix
|
2026-06-10 20:29:40 -06:00 |
|
xuyue
|
6f99688667
|
update
|
2026-06-07 05:50:51 -06:00 |
|
xuyue
|
cd6d67ac97
|
update
|
2026-06-07 05:50:47 -06:00 |
|
xuyue
|
4b32330b60
|
check if stable
|
2026-06-07 05:05:52 -06:00 |
|
xuyue
|
9fbab91cf9
|
check if stale
|
2026-06-07 05:05:46 -06:00 |
|
xuyue
|
39051980df
|
fix
|
2026-06-02 20:56:57 -06:00 |
|
xuyue
|
1566a4e275
|
update
|
2026-06-02 20:25:41 -06:00 |
|
xuyue
|
4660b51de3
|
fix
|
2026-05-09 01:30:39 -06:00 |
|
xuyue
|
f7817d8c26
|
fix
|
2026-05-09 01:30:36 -06:00 |
|
xuyue
|
48e6ddeeac
|
add ds thinking
|
2026-05-07 21:25:34 -06:00 |
|
xuyue
|
53a0759507
|
add ds thinking
|
2026-05-07 21:25:25 -06:00 |
|
xuyue
|
e2b3f61863
|
fix
|
2026-05-07 21:08:19 -06:00 |
|
xuyue
|
2a93c4d19c
|
update
|
2026-05-07 10:16:14 -06:00 |
|
xuyue
|
1e160d192b
|
add prompt assistant
|
2026-05-07 09:51:54 -06:00 |
|
xuyue
|
22c3b65e28
|
add prompt assistant
|
2026-05-07 09:51:47 -06:00 |
|
xuyue
|
a46848b1c9
|
feat: add guidance LLM helpers and system prompt
|
2026-05-07 09:26:09 -06:00 |
|
xuyue
|
7daf62cbaf
|
fix
|
2026-05-07 08:48:16 -06:00 |
|