wrong-notebook 2026.10.31 → 2026.11.1-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (748) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +4 -0
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/required-server-files.json +1 -1
  6. package/.next/routes-manifest.json +54 -1
  7. package/.next/server/app/_global-error/page.js +3 -3
  8. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page.js +2 -2
  15. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/admin/page.js +2 -2
  18. package/.next/server/app/admin/page.js.nft.json +1 -1
  19. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/admin/user/[id]/page.js +2 -2
  21. package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
  22. package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/api/admin/dashboard/route.js +17 -16
  24. package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
  25. package/.next/server/app/api/admin/debug-logs/export/route/app-paths-manifest.json +3 -0
  26. package/.next/server/app/api/admin/debug-logs/export/route/build-manifest.json +12 -0
  27. package/.next/server/app/api/admin/debug-logs/export/route/server-reference-manifest.json +4 -0
  28. package/.next/server/app/api/admin/debug-logs/export/route.js +13 -0
  29. package/.next/server/app/api/admin/debug-logs/export/route.js.map +5 -0
  30. package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -0
  31. package/.next/server/app/api/admin/debug-logs/export/route_client-reference-manifest.js +3 -0
  32. package/.next/server/app/api/admin/debug-logs/route/app-paths-manifest.json +3 -0
  33. package/.next/server/app/api/admin/debug-logs/route/build-manifest.json +12 -0
  34. package/.next/server/app/api/admin/debug-logs/route/server-reference-manifest.json +4 -0
  35. package/.next/server/app/api/admin/debug-logs/route.js +12 -0
  36. package/.next/server/app/api/admin/debug-logs/route.js.map +5 -0
  37. package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -0
  38. package/.next/server/app/api/admin/debug-logs/route_client-reference-manifest.js +3 -0
  39. package/.next/server/app/api/admin/migrate-tags/route.js +6 -6
  40. package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
  41. package/.next/server/app/api/admin/system-reset/route.js +6 -5
  42. package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
  43. package/.next/server/app/api/admin/users/[id]/detail/route.js +17 -16
  44. package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
  45. package/.next/server/app/api/admin/users/[id]/route.js +5 -5
  46. package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  47. package/.next/server/app/api/admin/users/route.js +7 -7
  48. package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  49. package/.next/server/app/api/ai/models/route.js +12 -11
  50. package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
  51. package/.next/server/app/api/ai/test/route.js +12 -12
  52. package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
  53. package/.next/server/app/api/analytics/route.js +16 -15
  54. package/.next/server/app/api/analytics/route.js.nft.json +1 -1
  55. package/.next/server/app/api/analyze/route.js +17 -15
  56. package/.next/server/app/api/analyze/route.js.nft.json +1 -1
  57. package/.next/server/app/api/auth/[...nextauth]/route.js +4 -4
  58. package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  59. package/.next/server/app/api/error-items/[id]/delete/route.js +6 -5
  60. package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
  61. package/.next/server/app/api/error-items/[id]/figure/route.js +16 -14
  62. package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
  63. package/.next/server/app/api/error-items/[id]/fix-latex/route.js +17 -15
  64. package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
  65. package/.next/server/app/api/error-items/[id]/geogebra/route.js +16 -14
  66. package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
  67. package/.next/server/app/api/error-items/[id]/image/route.js +6 -6
  68. package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
  69. package/.next/server/app/api/error-items/[id]/notes/route.js +6 -5
  70. package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
  71. package/.next/server/app/api/error-items/[id]/practice-records/route.js +5 -5
  72. package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
  73. package/.next/server/app/api/error-items/[id]/reanswer/route.js +16 -14
  74. package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
  75. package/.next/server/app/api/error-items/[id]/retag/route.js +17 -15
  76. package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
  77. package/.next/server/app/api/error-items/[id]/route.js +9 -6
  78. package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
  79. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +16 -14
  80. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
  81. package/.next/server/app/api/error-items/[id]/svg-animation/route.js +16 -14
  82. package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
  83. package/.next/server/app/api/error-items/batch-delete/route.js +6 -5
  84. package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
  85. package/.next/server/app/api/error-items/clear/route.js +6 -5
  86. package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
  87. package/.next/server/app/api/error-items/list/route.js +9 -8
  88. package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
  89. package/.next/server/app/api/error-items/route.js +20 -18
  90. package/.next/server/app/api/error-items/route.js.nft.json +1 -1
  91. package/.next/server/app/api/error-items/short/[shortId]/route.js +5 -5
  92. package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
  93. package/.next/server/app/api/error-items/similarity/route.js +6 -6
  94. package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
  95. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +19 -17
  96. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
  97. package/.next/server/app/api/exams/[id]/results/route.js +19 -17
  98. package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
  99. package/.next/server/app/api/exams/[id]/retry/route.js +17 -15
  100. package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
  101. package/.next/server/app/api/exams/[id]/route.js +18 -16
  102. package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
  103. package/.next/server/app/api/exams/route.js +17 -15
  104. package/.next/server/app/api/exams/route.js.nft.json +1 -1
  105. package/.next/server/app/api/export/route.js +6 -6
  106. package/.next/server/app/api/export/route.js.nft.json +1 -1
  107. package/.next/server/app/api/geogebra-analyze/route.js +18 -16
  108. package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
  109. package/.next/server/app/api/health/route.js +2 -2
  110. package/.next/server/app/api/health/route.js.nft.json +1 -1
  111. package/.next/server/app/api/import/route.js +21 -19
  112. package/.next/server/app/api/import/route.js.nft.json +1 -1
  113. package/.next/server/app/api/initialize/route.js +6 -6
  114. package/.next/server/app/api/initialize/route.js.nft.json +1 -1
  115. package/.next/server/app/api/logs/frontend/route.js +5 -4
  116. package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
  117. package/.next/server/app/api/minimax-code/checkin/route.js +8 -8
  118. package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
  119. package/.next/server/app/api/minimax-code/login/route.js +6 -6
  120. package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
  121. package/.next/server/app/api/minimax-code/route.js +7 -7
  122. package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
  123. package/.next/server/app/api/notebooks/[id]/retag/route.js +16 -15
  124. package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
  125. package/.next/server/app/api/notebooks/[id]/route.js +6 -5
  126. package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
  127. package/.next/server/app/api/notebooks/route.js +6 -5
  128. package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
  129. package/.next/server/app/api/openclaw/batch-upload/route.js +18 -16
  130. package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
  131. package/.next/server/app/api/paper-groups/[id]/route/app-paths-manifest.json +3 -0
  132. package/.next/server/app/api/paper-groups/[id]/route/build-manifest.json +12 -0
  133. package/.next/server/app/api/paper-groups/[id]/route/server-reference-manifest.json +4 -0
  134. package/.next/server/app/api/paper-groups/[id]/route.js +12 -0
  135. package/.next/server/app/api/paper-groups/[id]/route.js.map +5 -0
  136. package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -0
  137. package/.next/server/app/api/paper-groups/[id]/route_client-reference-manifest.js +3 -0
  138. package/.next/server/app/api/paper-groups/route/app-paths-manifest.json +3 -0
  139. package/.next/server/app/api/paper-groups/route/build-manifest.json +12 -0
  140. package/.next/server/app/api/paper-groups/route/server-reference-manifest.json +4 -0
  141. package/.next/server/app/api/paper-groups/route.js +12 -0
  142. package/.next/server/app/api/paper-groups/route.js.map +5 -0
  143. package/.next/server/app/api/paper-groups/route.js.nft.json +1 -0
  144. package/.next/server/app/api/paper-groups/route_client-reference-manifest.js +3 -0
  145. package/.next/server/app/api/practice/generate/route.js +17 -15
  146. package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
  147. package/.next/server/app/api/practice/grade/route.js +16 -15
  148. package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
  149. package/.next/server/app/api/practice/record/[id]/route.js +15 -14
  150. package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
  151. package/.next/server/app/api/practice/record/route.js +17 -16
  152. package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
  153. package/.next/server/app/api/reanswer/route.js +18 -16
  154. package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
  155. package/.next/server/app/api/register/route.js +8 -7
  156. package/.next/server/app/api/register/route.js.nft.json +1 -1
  157. package/.next/server/app/api/register/status/route.js +6 -6
  158. package/.next/server/app/api/register/status/route.js.nft.json +1 -1
  159. package/.next/server/app/api/requests/[id]/route.js +5 -5
  160. package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
  161. package/.next/server/app/api/review/due/route.js +16 -15
  162. package/.next/server/app/api/review/due/route.js.nft.json +1 -1
  163. package/.next/server/app/api/settings/route.js +9 -9
  164. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  165. package/.next/server/app/api/setup/route.js +8 -8
  166. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  167. package/.next/server/app/api/stats/practice/clear/route.js +6 -5
  168. package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
  169. package/.next/server/app/api/stats/practice/route.js +7 -7
  170. package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
  171. package/.next/server/app/api/tags/route.js +5 -5
  172. package/.next/server/app/api/tags/route.js.nft.json +1 -1
  173. package/.next/server/app/api/tags/stats/route.js +5 -5
  174. package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
  175. package/.next/server/app/api/tags/suggestions/route.js +4 -4
  176. package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
  177. package/.next/server/app/api/tasks/route.js +7 -6
  178. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  179. package/.next/server/app/api/tts/[id]/route.js +9 -9
  180. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  181. package/.next/server/app/api/tts/batch/route.js +11 -10
  182. package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
  183. package/.next/server/app/api/tts/route.js +11 -11
  184. package/.next/server/app/api/tts/route.js.nft.json +1 -1
  185. package/.next/server/app/api/tts/status/route.js +10 -9
  186. package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
  187. package/.next/server/app/api/user/route.js +16 -15
  188. package/.next/server/app/api/user/route.js.nft.json +1 -1
  189. package/.next/server/app/api/version/route.js +2 -2
  190. package/.next/server/app/api/version/route.js.nft.json +1 -1
  191. package/.next/server/app/error-items/[id]/page.js +2 -2
  192. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  193. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  194. package/.next/server/app/exams/[id]/page.js +2 -2
  195. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  196. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  197. package/.next/server/app/exams/[id]/print/page.js +2 -2
  198. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  199. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  200. package/.next/server/app/exams/page.js +2 -2
  201. package/.next/server/app/exams/page.js.nft.json +1 -1
  202. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  203. package/.next/server/app/favicon.ico/route.js +2 -2
  204. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  205. package/.next/server/app/initialize/page.js +2 -2
  206. package/.next/server/app/initialize/page.js.nft.json +1 -1
  207. package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
  208. package/.next/server/app/login/page.js +2 -2
  209. package/.next/server/app/login/page.js.nft.json +1 -1
  210. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  211. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  212. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  213. package/.next/server/app/notebooks/[id]/add/page.js +2 -2
  214. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  215. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  216. package/.next/server/app/notebooks/[id]/page.js +2 -2
  217. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  218. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  219. package/.next/server/app/notebooks/page.js +2 -2
  220. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  221. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  222. package/.next/server/app/page.js +2 -2
  223. package/.next/server/app/page.js.nft.json +1 -1
  224. package/.next/server/app/page_client-reference-manifest.js +1 -1
  225. package/.next/server/app/practice/page.js +2 -2
  226. package/.next/server/app/practice/page.js.nft.json +1 -1
  227. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  228. package/.next/server/app/print-preview/page.js +2 -2
  229. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  230. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  231. package/.next/server/app/register/page.js +2 -2
  232. package/.next/server/app/register/page.js.nft.json +1 -1
  233. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  234. package/.next/server/app/review/page.js +2 -2
  235. package/.next/server/app/review/page.js.nft.json +1 -1
  236. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  237. package/.next/server/app/setup/page.js +2 -2
  238. package/.next/server/app/setup/page.js.nft.json +1 -1
  239. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  240. package/.next/server/app/stats/page.js +2 -2
  241. package/.next/server/app/stats/page.js.nft.json +1 -1
  242. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  243. package/.next/server/app/tags/page.js +2 -2
  244. package/.next/server/app/tags/page.js.nft.json +1 -1
  245. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  246. package/.next/server/app-paths-manifest.json +4 -0
  247. package/.next/server/chunks/1oeh_server_app_api_admin_debug-logs_export_route_actions_0fuk-ong1cgma.js +3 -0
  248. package/.next/server/chunks/{[externals]__1oyo6y4k5ao25._.js → [externals]__00gsgx0wu9vi4._.js} +1 -1
  249. package/.next/server/chunks/[externals]__0c36n-dcv5nqc._.js +3 -0
  250. package/.next/server/chunks/[externals]__0r_d96aqau--y._.js +3 -0
  251. package/.next/server/chunks/[externals]__0t1do1irr2px5._.js +3 -0
  252. package/.next/server/chunks/{[externals]__0bi7qit452ls5._.js → [externals]__1lhov-pp9xqtz._.js} +1 -1
  253. package/.next/server/chunks/[externals]_node_process_0dvtjkttigk0k._.js +3 -0
  254. package/.next/server/chunks/{[root-of-the-server]__07h2t-yzug3sg._.js → [root-of-the-server]__00kq2qcxfg-kq._.js} +2 -2
  255. package/.next/server/chunks/[root-of-the-server]__01nvw5ogtwc0h._.js +3 -0
  256. package/.next/server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js +3 -0
  257. package/.next/server/chunks/[root-of-the-server]__0423hh3mg9u0j._.js +3 -0
  258. package/.next/server/chunks/[root-of-the-server]__0455yyxule6q_._.js +3 -0
  259. package/.next/server/chunks/{[root-of-the-server]__0j6f-2sb1zvv-._.js → [root-of-the-server]__05n74a-t4yfhk._.js} +2 -2
  260. package/.next/server/chunks/[root-of-the-server]__06lmwv-4d1slg._.js +3 -0
  261. package/.next/server/chunks/[root-of-the-server]__07uf7ctm4sjo4._.js +3 -0
  262. package/.next/server/chunks/[root-of-the-server]__08d1atgxt3ymf._.js +3 -0
  263. package/.next/server/chunks/[root-of-the-server]__09jqnx_673l93._.js +68 -0
  264. package/.next/server/chunks/[root-of-the-server]__09u2ogsxwacj4._.js +3 -0
  265. package/.next/server/chunks/[root-of-the-server]__0_ahztuh3lr_n._.js +3 -0
  266. package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +27 -0
  267. package/.next/server/chunks/[root-of-the-server]__0btfk_sy3o9wa._.js +3 -0
  268. package/.next/server/chunks/[root-of-the-server]__0c2729fcpi3-x._.js +3 -0
  269. package/.next/server/chunks/[root-of-the-server]__0gaai286hkspk._.js +3 -0
  270. package/.next/server/chunks/[root-of-the-server]__0gs7-3gi0pdws._.js +3 -0
  271. package/.next/server/chunks/[root-of-the-server]__0hm2dh8ziz93k._.js +3 -0
  272. package/.next/server/chunks/[root-of-the-server]__0hmb6jibheznj._.js +3 -0
  273. package/.next/server/chunks/[root-of-the-server]__0jy-eooky8kei._.js +3 -0
  274. package/.next/server/chunks/[root-of-the-server]__0kljn4jodzvqk._.js +3 -0
  275. package/.next/server/chunks/{[root-of-the-server]__0rnwilu01f1tc._.js → [root-of-the-server]__0kmy5264opoz7._.js} +2 -2
  276. package/.next/server/chunks/[root-of-the-server]__0m8bcdajibej0._.js +3 -0
  277. package/.next/server/chunks/{[root-of-the-server]__06xho6u8le3e7._.js → [root-of-the-server]__0n0c-mpolar22._.js} +2 -2
  278. package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +27 -0
  279. package/.next/server/chunks/{[root-of-the-server]__10s5jgr6l7shg._.js → [root-of-the-server]__0nw6t7u627b2m._.js} +2 -2
  280. package/.next/server/chunks/[root-of-the-server]__0os8s3dtzx4gi._.js +3 -0
  281. package/.next/server/chunks/[root-of-the-server]__0ovzmxzbr6t31._.js +3 -0
  282. package/.next/server/chunks/[root-of-the-server]__0pe0tw33dv504._.js +3 -0
  283. package/.next/server/chunks/[root-of-the-server]__0pn5idap1logb._.js +3 -0
  284. package/.next/server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js +6 -6
  285. package/.next/server/chunks/{[root-of-the-server]__04q1m399dcul6._.js → [root-of-the-server]__0rnr17a382rjx._.js} +2 -2
  286. package/.next/server/chunks/[root-of-the-server]__0rpqerm37sl_v._.js +3 -0
  287. package/.next/server/chunks/{[root-of-the-server]__07ku06p8ztq1g._.js → [root-of-the-server]__0sxr-ing62eg7._.js} +2 -2
  288. package/.next/server/chunks/{[root-of-the-server]__024r-wywnoxyp._.js → [root-of-the-server]__0u36j_9ml4et6._.js} +2 -2
  289. package/.next/server/chunks/[root-of-the-server]__0vz0xv_w6vbpq._.js +3 -0
  290. package/.next/server/chunks/{[root-of-the-server]__08d7_pq6_q2gg._.js → [root-of-the-server]__0xqsrh251_yms._.js} +2 -2
  291. package/.next/server/chunks/{[root-of-the-server]__14-k7ayd3a8_l._.js → [root-of-the-server]__0ym21tuxqrmc4._.js} +2 -2
  292. package/.next/server/chunks/[root-of-the-server]__0z24ffpp1rsf3._.js +3 -0
  293. package/.next/server/chunks/[root-of-the-server]__0z99q93n88cro._.js +3 -0
  294. package/.next/server/chunks/{[root-of-the-server]__0ld-3rbaj1m8-._.js → [root-of-the-server]__1-hfmp3groi95._.js} +27 -27
  295. package/.next/server/chunks/{[root-of-the-server]__1f8bfi9fgos0g._.js → [root-of-the-server]__10l89psqaisak._.js} +2 -2
  296. package/.next/server/chunks/[root-of-the-server]__111jxitdjhuoj._.js +3 -0
  297. package/.next/server/chunks/{[root-of-the-server]__08thdsjzsvn6f._.js → [root-of-the-server]__11ztapi1pi7j-._.js} +2 -2
  298. package/.next/server/chunks/[root-of-the-server]__1236d6g1_51pt._.js +3 -0
  299. package/.next/server/chunks/[root-of-the-server]__12_laap0hyw4p._.js +3 -0
  300. package/.next/server/chunks/[root-of-the-server]__12cpc3g7-oi86._.js +3 -0
  301. package/.next/server/chunks/[root-of-the-server]__12fkzjxvspcin._.js +3 -0
  302. package/.next/server/chunks/[root-of-the-server]__13_k7w8nrx7ie._.js +3 -0
  303. package/.next/server/chunks/[root-of-the-server]__13ogen7pkq8aa._.js +3 -0
  304. package/.next/server/chunks/[root-of-the-server]__13zeb46abilr5._.js +3 -0
  305. package/.next/server/chunks/[root-of-the-server]__145w7mwgp8ujm._.js +3 -0
  306. package/.next/server/chunks/[root-of-the-server]__14wezz97rhtz9._.js +3 -0
  307. package/.next/server/chunks/[root-of-the-server]__15mf1z85mft8d._.js +3 -0
  308. package/.next/server/chunks/[root-of-the-server]__15qkqztuygnfg._.js +3 -0
  309. package/.next/server/chunks/[root-of-the-server]__15ypu4q7xi8ig._.js +3 -0
  310. package/.next/server/chunks/[root-of-the-server]__1610s5zvyss1k._.js +3 -0
  311. package/.next/server/chunks/[root-of-the-server]__16864lw9bhmwl._.js +3 -0
  312. package/.next/server/chunks/{[root-of-the-server]__0-b-yvjz48rkt._.js → [root-of-the-server]__18nv1yn5xh03v._.js} +2 -2
  313. package/.next/server/chunks/[root-of-the-server]__18uhupcdidftm._.js +3 -0
  314. package/.next/server/chunks/[root-of-the-server]__18z_cczwqkonn._.js +3 -0
  315. package/.next/server/chunks/[root-of-the-server]__19a62id_4lwka._.js +3 -0
  316. package/.next/server/chunks/[root-of-the-server]__19v5yvii0w7r3._.js +3 -0
  317. package/.next/server/chunks/[root-of-the-server]__1b42xh9458czy._.js +3 -0
  318. package/.next/server/chunks/{[root-of-the-server]__208t95lee6s99._.js → [root-of-the-server]__1d1gxff_c2o28._.js} +2 -2
  319. package/.next/server/chunks/{[root-of-the-server]__1h-b09z-j8jp8._.js → [root-of-the-server]__1dreyiratyfvo._.js} +2 -2
  320. package/.next/server/chunks/[root-of-the-server]__1elqmd_7a9bto._.js +3 -0
  321. package/.next/server/chunks/[root-of-the-server]__1ff3h7ockrpdf._.js +3 -0
  322. package/.next/server/chunks/[root-of-the-server]__1fj6upsvfxy4r._.js +3 -0
  323. package/.next/server/chunks/[root-of-the-server]__1gvnk0s0_zrpo._.js +3 -0
  324. package/.next/server/chunks/[root-of-the-server]__1hwftfenrsu3p._.js +3 -0
  325. package/.next/server/chunks/[root-of-the-server]__1l-2u-q625i2a._.js +3 -0
  326. package/.next/server/chunks/[root-of-the-server]__1lafe11jnkmlv._.js +3 -0
  327. package/.next/server/chunks/[root-of-the-server]__1m1wi2f60x1fk._.js +3 -0
  328. package/.next/server/chunks/{[root-of-the-server]__00tywaxi-8b1l._.js → [root-of-the-server]__1m8b6why7f1uj._.js} +2 -2
  329. package/.next/server/chunks/[root-of-the-server]__1mfrik5p09lu9._.js +3 -0
  330. package/.next/server/chunks/[root-of-the-server]__1n21o3aq7pxla._.js +3 -0
  331. package/.next/server/chunks/[root-of-the-server]__1o-0-f8rlbavp._.js +3 -0
  332. package/.next/server/chunks/[root-of-the-server]__1o9pbkx7ejxu0._.js +3 -0
  333. package/.next/server/chunks/[root-of-the-server]__1oedx4ko_1hl9._.js +3 -0
  334. package/.next/server/chunks/[root-of-the-server]__1ptzu7aqoga2n._.js +3 -0
  335. package/.next/server/chunks/[root-of-the-server]__1qzd0dm9ny797._.js +3 -0
  336. package/.next/server/chunks/[root-of-the-server]__1r7wz_id6mvlj._.js +3 -0
  337. package/.next/server/chunks/{[root-of-the-server]__14hy-qeyktudc._.js → [root-of-the-server]__1rx3b8m_g_p57._.js} +2 -2
  338. package/.next/server/chunks/[root-of-the-server]__1sf2oa2wkqf_0._.js +3 -0
  339. package/.next/server/chunks/[root-of-the-server]__1v1p83o4ygnyt._.js +3 -0
  340. package/.next/server/chunks/[root-of-the-server]__1wsyku681k2uq._.js +3 -0
  341. package/.next/server/chunks/[root-of-the-server]__1ximu6k5bljjj._.js +3 -0
  342. package/.next/server/chunks/[root-of-the-server]__1yct9oj28kq_h._.js +3 -0
  343. package/.next/server/chunks/[root-of-the-server]__1yrozlry-psmk._.js +3 -0
  344. package/.next/server/chunks/[root-of-the-server]__1zwat9xocdoqz._.js +3 -0
  345. package/.next/server/chunks/[root-of-the-server]__20jkc-_5uj_zc._.js +3 -0
  346. package/.next/server/chunks/_0-ne-bwuvd_6w._.js +1 -1
  347. package/.next/server/chunks/_008zx49yrqg5a._.js +3 -0
  348. package/.next/server/chunks/_03udbqs8_z944._.js +3 -0
  349. package/.next/server/chunks/_0431fxnqiloso._.js +1 -1
  350. package/.next/server/chunks/_0_rhee7wb6tcg._.js +1 -1
  351. package/.next/server/chunks/_0d66myj_8567o._.js +1 -1
  352. package/.next/server/chunks/{_0ekrwj-qx_6uh._.js → _0gn3jgq5nrxsz._.js} +2 -2
  353. package/.next/server/chunks/_0jgk7kwvf4_6i._.js +3 -0
  354. package/.next/server/chunks/_0kjatc7pcrkvz._.js +3 -0
  355. package/.next/server/chunks/_0po48rvqz03dg._.js +3 -0
  356. package/.next/server/chunks/_0r9ejvgz0l0-0._.js +3 -0
  357. package/.next/server/chunks/_0wegi_sv1s4wx._.js +1 -1
  358. package/.next/server/chunks/_10tpt8iizl4v3._.js +8 -0
  359. package/.next/server/chunks/_11_p1ahjjply_._.js +1 -1
  360. package/.next/server/chunks/_12i51zlq-xxrl._.js +1 -1
  361. package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
  362. package/.next/server/chunks/_14w9nrdlajz24._.js +1 -1
  363. package/.next/server/chunks/{_0x3ltk09eli_f._.js → _176np74lk54yh._.js} +2 -2
  364. package/.next/server/chunks/_1_ns7o3cqznv6._.js +1 -1
  365. package/.next/server/chunks/_1a1udq0c4_6ad._.js +1 -1
  366. package/.next/server/chunks/_1b7qjlv0nxovi._.js +1 -1
  367. package/.next/server/chunks/_1be-y660a8z-q._.js +1 -1
  368. package/.next/server/chunks/_1dvka-waihfum._.js +8 -0
  369. package/.next/server/chunks/_1ex6ovo_j2jzv._.js +1 -1
  370. package/.next/server/chunks/_1fgb9ve_nfat4._.js +1 -1
  371. package/.next/server/chunks/_1gjtds8ik0l6x._.js +3 -0
  372. package/.next/server/chunks/_1hj7iit2u6xez._.js +1 -1
  373. package/.next/server/chunks/_1m-yyz-pl9-03._.js +1 -1
  374. package/.next/server/chunks/_1muwmr6j76v3m._.js +1 -1
  375. package/.next/server/chunks/_1ox156inx113o._.js +3 -0
  376. package/.next/server/chunks/_1rr_juv5pj1at._.js +3 -0
  377. package/.next/server/chunks/_1wnggnglg9_n1._.js +3 -0
  378. package/.next/server/chunks/_1zvf_gki7-g0n._.js +3 -0
  379. package/.next/server/chunks/_next-internal_server_app_api_admin_debug-logs_route_actions_0w_ihjwlb5df7.js +3 -0
  380. package/.next/server/chunks/_next-internal_server_app_api_paper-groups_[id]_route_actions_0qa-ktg9az6px.js +3 -0
  381. package/.next/server/chunks/_next-internal_server_app_api_paper-groups_route_actions_1if4ddoduarbj.js +3 -0
  382. package/.next/server/chunks/node_modules_@anthropic-ai_sdk_1nnmjtbtp2rc6._.js +1 -1
  383. package/.next/server/chunks/{node_modules_zod_v4_classic_external_1h9u5hd8e7zk0.js → node_modules_zod_v4_classic_external_0cradpuc4fjmm.js} +5 -5
  384. package/.next/server/chunks/src_0bhf345rd7jho._.js +1 -1
  385. package/.next/server/chunks/src_lib_0au5a9-5rxkab._.js +3 -0
  386. package/.next/server/chunks/src_lib_0d7kmnt7v2np8._.js +3 -0
  387. package/.next/server/chunks/src_lib_0ptvn4_15zxu0._.js +3 -0
  388. package/.next/server/chunks/src_lib_0r67kyyoh6ky6._.js +3 -0
  389. package/.next/server/chunks/src_lib_0svj7bkzyw9oc._.js +3 -0
  390. package/.next/server/chunks/src_lib_0ximwux0rcb__._.js +3 -0
  391. package/.next/server/chunks/src_lib_13hd5uoi-53hn._.js +3 -0
  392. package/.next/server/chunks/{src_lib_ai_prompts_ts_0z36zms4djibp._.js → src_lib_1_m3-y2t3e4xi._.js} +151 -129
  393. package/.next/server/chunks/src_lib_1h4xeb9lyx31r._.js +3 -0
  394. package/.next/server/chunks/src_lib_1mo2a48k4wa7n._.js +3 -0
  395. package/.next/server/chunks/src_lib_1smlosz37xitx._.js +3 -0
  396. package/.next/server/chunks/src_lib_1squodf4swo_a._.js +3 -0
  397. package/.next/server/chunks/src_lib_1uei_xjjj3g7_._.js +3 -0
  398. package/.next/server/chunks/src_lib_1vt5vsj108u_q._.js +3 -0
  399. package/.next/server/chunks/src_lib_1wm8ay-jqxakc._.js +1 -1
  400. package/.next/server/chunks/src_lib_ai_index_ts_0m0hlq4d9zy9i._.js +3 -0
  401. package/.next/server/chunks/src_lib_api-errors_ts_1gfd4ojz7efro._.js +3 -0
  402. package/.next/server/chunks/src_lib_background-tasks_ts_02j9z7pcmiqfj._.js +3 -0
  403. package/.next/server/chunks/src_lib_constants_pagination_ts_0tz3fg9ib3b-w._.js +3 -0
  404. package/.next/server/chunks/src_lib_exam_ts_0d3a4q4r41hcf._.js +1 -1
  405. package/.next/server/chunks/src_lib_logger_ts_1a0ve505bb0y2._.js +1 -1
  406. package/.next/server/chunks/src_lib_mastery_ts_0ybi94uxn8ut6._.js +1 -1
  407. package/.next/server/chunks/src_lib_minimax-code_checkin_ts_1j1mpuxc1vgoz._.js +1 -1
  408. package/.next/server/chunks/src_lib_retag_ts_0eu8ld_86kt3a._.js +1 -1
  409. package/.next/server/chunks/src_lib_tag-recognition_ts_1wkzrdiapau86._.js +1 -1
  410. package/.next/server/chunks/ssr/[root-of-the-server]__0-0k8bt9jcf8b._.js +3 -0
  411. package/.next/server/chunks/ssr/[root-of-the-server]__06epb5zt8i9nl._.js +3 -0
  412. package/.next/server/chunks/ssr/{[root-of-the-server]__0zqp_pztbsqqc._.js → [root-of-the-server]__09gkts39mwkt7._.js} +2 -2
  413. package/.next/server/chunks/ssr/[root-of-the-server]__09nzl4il765_h._.js +3 -0
  414. package/.next/server/chunks/ssr/[root-of-the-server]__0fy6mc47ccfce._.js +3 -0
  415. package/.next/server/chunks/ssr/{[root-of-the-server]__1uw-g6-ij61rl._.js → [root-of-the-server]__0g3m2_o67ezes._.js} +2 -2
  416. package/.next/server/chunks/ssr/{[root-of-the-server]__1xufj5ntr9bm3._.js → [root-of-the-server]__0gpba1ifag5cz._.js} +2 -2
  417. package/.next/server/chunks/ssr/{[root-of-the-server]__1l0iskzq890dd._.js → [root-of-the-server]__0imb483i37k9-._.js} +2 -2
  418. package/.next/server/chunks/ssr/[root-of-the-server]__0l_a_z149v59o._.js +3 -0
  419. package/.next/server/chunks/ssr/[root-of-the-server]__0lhmylur63dzg._.js +3 -0
  420. package/.next/server/chunks/ssr/[root-of-the-server]__0oytrwzt_5qpb._.js +3 -0
  421. package/.next/server/chunks/ssr/[root-of-the-server]__0p9ee02rz9njl._.js +3 -0
  422. package/.next/server/chunks/ssr/{[root-of-the-server]__0fl_sbe1q-l5j._.js → [root-of-the-server]__0qtqn7_slrnax._.js} +2 -2
  423. package/.next/server/chunks/ssr/[root-of-the-server]__0u9zu26bwv2sw._.js +3 -0
  424. package/.next/server/chunks/ssr/[root-of-the-server]__11oag3aoydip3._.js +3 -0
  425. package/.next/server/chunks/ssr/[root-of-the-server]__12_3pzn1_i3p7._.js +3 -0
  426. package/.next/server/chunks/ssr/[root-of-the-server]__12upjtzbfyt0p._.js +3 -0
  427. package/.next/server/chunks/ssr/[root-of-the-server]__19q4cpy9jtu0k._.js +3 -0
  428. package/.next/server/chunks/ssr/[root-of-the-server]__1dby5q1e2rwrm._.js +3 -0
  429. package/.next/server/chunks/ssr/[root-of-the-server]__1eutot_8-s4s4._.js +3 -0
  430. package/.next/server/chunks/ssr/[root-of-the-server]__1exslx8xrlonp._.js +3 -0
  431. package/.next/server/chunks/ssr/[root-of-the-server]__1hcp3uk2sxb8s._.js +3 -0
  432. package/.next/server/chunks/ssr/[root-of-the-server]__1jdb2axhv5dqd._.js +3 -0
  433. package/.next/server/chunks/ssr/[root-of-the-server]__1ojkbjq8khldj._.js +3 -0
  434. package/.next/server/chunks/ssr/{[root-of-the-server]__1a50a5t_t8z_e._.js → [root-of-the-server]__1u0_l34j65qiv._.js} +2 -2
  435. package/.next/server/chunks/ssr/[root-of-the-server]__1upuqpqeyi3o6._.js +3 -0
  436. package/.next/server/chunks/ssr/[root-of-the-server]__1y--gqu4r-u7n._.js +3 -0
  437. package/.next/server/chunks/ssr/_02zfjls23g-o4._.js +3 -0
  438. package/.next/server/chunks/ssr/_037_l3ca0s_0m._.js +3 -0
  439. package/.next/server/chunks/ssr/_07-atqwd3wqya._.js +3 -0
  440. package/.next/server/chunks/ssr/_09y2uhjubswp4._.js +1 -1
  441. package/.next/server/chunks/ssr/_0ajvgy4u-t-py._.js +3 -0
  442. package/.next/server/chunks/ssr/_0b0yopxl37va_._.js +3 -0
  443. package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +3 -0
  444. package/.next/server/chunks/ssr/_0j4vduk13imjn._.js +3 -0
  445. package/.next/server/chunks/ssr/_0lzeodofsq9pe._.js +3 -0
  446. package/.next/server/chunks/ssr/_0ozptnii2nxuw._.js +3 -0
  447. package/.next/server/chunks/ssr/_0rd-teluypcd2._.js +1 -1
  448. package/.next/server/chunks/ssr/_0rm0irv0xu4bg._.js +3 -0
  449. package/.next/server/chunks/ssr/_0rwiy2u3_4def._.js +3 -0
  450. package/.next/server/chunks/ssr/_0yrywyu_og4rx._.js +3 -0
  451. package/.next/server/chunks/ssr/_1-z85ugzufqk6._.js +3 -0
  452. package/.next/server/chunks/ssr/_11xqn1cgzpe6k._.js +1 -1
  453. package/.next/server/chunks/ssr/_16dhqh84g_-pd._.js +32 -0
  454. package/.next/server/chunks/ssr/_16dxmyb5enou2._.js +3 -0
  455. package/.next/server/chunks/ssr/_16mxitac-h_mk._.js +3 -0
  456. package/.next/server/chunks/ssr/_1_hw62m8ju2bw._.js +3 -0
  457. package/.next/server/chunks/ssr/_1cc3psc9rvrwn._.js +3 -0
  458. package/.next/server/chunks/ssr/_1d91l8e5qt82w._.js +3 -0
  459. package/.next/server/chunks/ssr/_1iapvddj39zp7._.js +3 -0
  460. package/.next/server/chunks/ssr/_1qekjxy0_mnkp._.js +3 -0
  461. package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +8 -0
  462. package/.next/server/chunks/ssr/_1r8-39vwdjrgs._.js +3 -0
  463. package/.next/server/chunks/ssr/_1rgoz5udzbn3d._.js +3 -0
  464. package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +8 -0
  465. package/.next/server/chunks/ssr/{node_modules_00hekemtvh207._.js → node_modules_0efju2pv0_0yw._.js} +2 -2
  466. package/.next/server/chunks/ssr/{node_modules_next_dist_1g0hsq_f-fygr._.js → node_modules_11z4lth_9u_hn._.js} +2 -2
  467. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_play_mjs_1al5hft92dlrg._.js +4 -0
  468. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_printer_mjs_0jbt269gi19_7._.js +3 -0
  469. package/.next/server/chunks/ssr/{src_0hbb4l46hkkx0._.js → src_0e73j7l6j__rh._.js} +2 -2
  470. package/.next/server/chunks/ssr/src_0ipwcihawso27._.js +3 -0
  471. package/.next/server/chunks/ssr/src_1gayunqs8u2e2._.js +1 -1
  472. package/.next/server/chunks/ssr/src_1m8frpkuirkx8._.js +3 -0
  473. package/.next/server/chunks/ssr/src_1vhiktxz2_jj3._.js +3 -0
  474. package/.next/server/chunks/ssr/src_app_admin_page_tsx_0ublbd0w90cx_._.js +1 -1
  475. package/.next/server/chunks/ssr/src_app_admin_user_[id]_page_tsx_0zidp-8hr5upa._.js +1 -1
  476. package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
  477. package/.next/server/chunks/ssr/src_app_exams_[id]_page_tsx_0xcjflkgkwzgd._.js +1 -1
  478. package/.next/server/chunks/ssr/src_app_exams_[id]_print_page_tsx_1i-xvhk8ul1l1._.js +6 -6
  479. package/.next/server/chunks/ssr/src_app_exams_page_tsx_17_d4_gy2i1ds._.js +1 -1
  480. package/.next/server/chunks/ssr/src_app_initialize_page_tsx_0v79s64spkms8._.js +1 -1
  481. package/.next/server/chunks/ssr/src_app_login_page_tsx_0yrgg2z_juzv9._.js +1 -1
  482. package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
  483. package/.next/server/chunks/ssr/src_app_notebooks_[id]_page_tsx_08njm-5-txm8_._.js +1 -1
  484. package/.next/server/chunks/ssr/src_app_notebooks_page_tsx_1p9src5gnz_40._.js +1 -1
  485. package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +1 -1
  486. package/.next/server/chunks/ssr/src_app_practice_page_tsx_10gnx53v3kpzb._.js +1 -1
  487. package/.next/server/chunks/ssr/src_app_print-preview_page_tsx_001yt-fzrj7tf._.js +1 -1
  488. package/.next/server/chunks/ssr/src_app_register_page_tsx_0l87b3754fa2j._.js +1 -1
  489. package/.next/server/chunks/ssr/src_app_review_page_tsx_1rq4ygvo_szv0._.js +1 -1
  490. package/.next/server/chunks/ssr/src_app_setup_page_tsx_0szlnxow_9skp._.js +1 -1
  491. package/.next/server/chunks/ssr/src_components_1od0rowgu8w6v._.js +3 -0
  492. package/.next/server/chunks/ssr/src_components_create-notebook-dialog_tsx_0c5teagim70r7._.js +1 -1
  493. package/.next/server/chunks/ssr/src_components_difficulty-stars_tsx_1af9qqfurq7_t._.js +1 -1
  494. package/.next/server/chunks/ssr/src_components_error-list_error-item-card_tsx_1zsiqsrj-jjd7._.js +1 -1
  495. package/.next/server/chunks/ssr/src_components_exam_exam-status-badge_tsx_0rozdbhlqsq71._.js +3 -0
  496. package/.next/server/chunks/ssr/src_components_mastery-panel_tsx_1--j5c7mhomdp._.js +1 -1
  497. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +16 -16
  498. package/.next/server/chunks/ssr/src_components_tag-input_tsx_0b9sxffna5c9i._.js +1 -1
  499. package/.next/server/chunks/ssr/src_components_ui_checkbox_tsx_0xdylzmai9n53._.js +1 -1
  500. package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js +1 -1
  501. package/.next/server/chunks/ssr/src_lib_short-id-client_ts_1v7n6pg50kguj._.js +3 -0
  502. package/.next/server/functions-config-manifest.json +9 -0
  503. package/.next/server/middleware-build-manifest.js +3 -3
  504. package/.next/server/middleware-manifest.json +2 -32
  505. package/.next/server/middleware.js +5 -0
  506. package/.next/server/pages/500.html +1 -1
  507. package/.next/server/preview-props.json +3 -3
  508. package/.next/server/server-reference-manifest.js +1 -1
  509. package/.next/server/server-reference-manifest.json +1 -1
  510. package/.next/static/chunks/0-djefxn9k6wm.js +1 -0
  511. package/.next/static/chunks/{02bal925qbinj.js → 01lfibj7hk--1.js} +1 -1
  512. package/.next/static/chunks/0313mdq1ehw6t.js +1 -0
  513. package/.next/static/chunks/0ajfstfi1ibjf.js +1 -0
  514. package/.next/static/chunks/0evgpd-c9a459.js +1 -0
  515. package/.next/static/chunks/0i1q2hqzk7ojc.css +3 -0
  516. package/.next/static/chunks/0kvdkkwcp0gk_.js +1 -0
  517. package/.next/static/chunks/0x1mzyuhk1omf.js +33 -0
  518. package/.next/static/chunks/0zj83pnid72u3.js +1 -0
  519. package/.next/static/chunks/0zx49lemqph3o.js +1 -0
  520. package/.next/static/chunks/10xs8eu3rd2lt.js +1 -0
  521. package/.next/static/chunks/15j2y67akjikk.js +1 -0
  522. package/.next/static/chunks/1__y-wfj49ciy.js +1 -0
  523. package/.next/static/chunks/1c36uw_9rc8oc.js +1 -0
  524. package/.next/static/chunks/1dyf1qqv2ckxs.js +1 -0
  525. package/.next/static/chunks/1gvev34tv39bd.js +1 -0
  526. package/.next/static/chunks/1uaqnxl-xshw6.js +1 -0
  527. package/.next/static/chunks/25emavlvjqnb_.js +6 -0
  528. package/.next/static/chunks/2h1-bjeib7r-u.js +1 -0
  529. package/.next/static/chunks/2hihgd7vu8tw5.js +1 -0
  530. package/.next/static/chunks/2r4x8vhlmc092.js +1 -0
  531. package/.next/static/chunks/2upf0inu0om06.js +1 -0
  532. package/.next/static/chunks/2yp2zha1v39fv.js +1 -0
  533. package/.next/static/chunks/{2h685ie6ojjd6.js → 31pvc0nv10j93.js} +1 -1
  534. package/.next/static/chunks/34wbfnz7ytbpy.js +1 -0
  535. package/.next/static/chunks/370c45nip4mld.js +1 -0
  536. package/.next/static/chunks/3cyz6w014ooxj.js +191 -0
  537. package/.next/static/chunks/3fohh6i-hrda9.js +1 -0
  538. package/.next/static/chunks/3oq365ly8o1te.js +1 -0
  539. package/.next/static/chunks/3v700vp0e3t5_.js +1 -0
  540. package/.next/static/chunks/3vtuwbfv7mxt8.js +1 -0
  541. package/.next/static/chunks/42p60iwe4ayfi.js +4 -0
  542. package/.next/static/chunks/454mslxlxj999.js +1 -0
  543. package/README.en.md +550 -0
  544. package/package.json +1 -1
  545. package/prisma/migrations/20261031000000_add_query_indexes/migration.sql +16 -0
  546. package/prisma/migrations/20261031120000_add_theme_preference/migration.sql +2 -0
  547. package/prisma/migrations/20261031124834_add_question_grade_rule/migration.sql +3 -0
  548. package/prisma/migrations/20261031195209_add_paper_group/migration.sql +106 -0
  549. package/prisma/migrations/20261031200339_add_tag_set/migration.sql +43 -0
  550. package/prisma/migrations/20261031204515_add_question_figure_scale/migration.sql +15 -0
  551. package/prisma/schema.prisma +39 -3
  552. package/prisma/seed.db +0 -0
  553. package/server.js +1 -1
  554. package/.next/server/chunks/[externals]__0e2regkf5bw64._.js +0 -3
  555. package/.next/server/chunks/[externals]__1pplcusjo3ok7._.js +0 -3
  556. package/.next/server/chunks/[externals]_fs_0pplqgcyv2l7l._.js +0 -3
  557. package/.next/server/chunks/[externals]_fs_1d5jh8vp8y6zt._.js +0 -3
  558. package/.next/server/chunks/[root-of-the-server]__0-t1auf1a8_or._.js +0 -3
  559. package/.next/server/chunks/[root-of-the-server]__0-vjdr00bjnt0._.js +0 -3
  560. package/.next/server/chunks/[root-of-the-server]__003ii50e63ws5._.js +0 -3
  561. package/.next/server/chunks/[root-of-the-server]__00rgirsp29kma._.js +0 -3
  562. package/.next/server/chunks/[root-of-the-server]__02bjw2uriv5fd._.js +0 -3
  563. package/.next/server/chunks/[root-of-the-server]__02p_j11itze6b._.js +0 -3
  564. package/.next/server/chunks/[root-of-the-server]__02v0ig608r6y0._.js +0 -3
  565. package/.next/server/chunks/[root-of-the-server]__02z_6dlwrbt2b._.js +0 -3
  566. package/.next/server/chunks/[root-of-the-server]__03ru8t856rgvl._.js +0 -3
  567. package/.next/server/chunks/[root-of-the-server]__06j_-j4ftb5db._.js +0 -3
  568. package/.next/server/chunks/[root-of-the-server]__0aganwocduyac._.js +0 -3
  569. package/.next/server/chunks/[root-of-the-server]__0duevucfb62_h._.js +0 -3
  570. package/.next/server/chunks/[root-of-the-server]__0gvvuk0avtpy9._.js +0 -38
  571. package/.next/server/chunks/[root-of-the-server]__0iq2agc-dlcyc._.js +0 -3
  572. package/.next/server/chunks/[root-of-the-server]__0juklkqip-kat._.js +0 -3
  573. package/.next/server/chunks/[root-of-the-server]__0kwkbvjwb6ms2._.js +0 -3
  574. package/.next/server/chunks/[root-of-the-server]__0lgsw0kfw-jqc._.js +0 -3
  575. package/.next/server/chunks/[root-of-the-server]__0m257tbsmg_jc._.js +0 -3
  576. package/.next/server/chunks/[root-of-the-server]__0mtgqo3_a6ft3._.js +0 -3
  577. package/.next/server/chunks/[root-of-the-server]__0odzrih6i03_7._.js +0 -3
  578. package/.next/server/chunks/[root-of-the-server]__0orbb3gvf9h5l._.js +0 -3
  579. package/.next/server/chunks/[root-of-the-server]__0rt84iswe-353._.js +0 -38
  580. package/.next/server/chunks/[root-of-the-server]__0sg1yp-qgcx3j._.js +0 -3
  581. package/.next/server/chunks/[root-of-the-server]__0ssa-hz8b3v1i._.js +0 -3
  582. package/.next/server/chunks/[root-of-the-server]__0tzjz0h-2ga7m._.js +0 -3
  583. package/.next/server/chunks/[root-of-the-server]__0uvuljzm78r8b._.js +0 -3
  584. package/.next/server/chunks/[root-of-the-server]__0vn353txu1ok5._.js +0 -3
  585. package/.next/server/chunks/[root-of-the-server]__0w12wrduqkml_._.js +0 -3
  586. package/.next/server/chunks/[root-of-the-server]__0wmczeyrx2y7f._.js +0 -3
  587. package/.next/server/chunks/[root-of-the-server]__0xe-f_x7j4c7y._.js +0 -3
  588. package/.next/server/chunks/[root-of-the-server]__0xicme9m81rzt._.js +0 -3
  589. package/.next/server/chunks/[root-of-the-server]__0yx12uf2avp6d._.js +0 -3
  590. package/.next/server/chunks/[root-of-the-server]__0yzgn93vnozqe._.js +0 -3
  591. package/.next/server/chunks/[root-of-the-server]__0zq53ytq2jm_b._.js +0 -3
  592. package/.next/server/chunks/[root-of-the-server]__1-jk6umz3qs6r._.js +0 -3
  593. package/.next/server/chunks/[root-of-the-server]__10ffg2l-u0zof._.js +0 -3
  594. package/.next/server/chunks/[root-of-the-server]__11n5u21llw3hz._.js +0 -3
  595. package/.next/server/chunks/[root-of-the-server]__1222jdedtloy5._.js +0 -3
  596. package/.next/server/chunks/[root-of-the-server]__1383tmq2tf24f._.js +0 -3
  597. package/.next/server/chunks/[root-of-the-server]__13ybp1up1_pp_._.js +0 -3
  598. package/.next/server/chunks/[root-of-the-server]__15v_gsaqeo7q-._.js +0 -3
  599. package/.next/server/chunks/[root-of-the-server]__16h8j4mow34et._.js +0 -3
  600. package/.next/server/chunks/[root-of-the-server]__18vii2hl-fo31._.js +0 -3
  601. package/.next/server/chunks/[root-of-the-server]__190oggsfw-98b._.js +0 -3
  602. package/.next/server/chunks/[root-of-the-server]__1_2qj9kvv5g-9._.js +0 -3
  603. package/.next/server/chunks/[root-of-the-server]__1_fxjdqa7fwwc._.js +0 -3
  604. package/.next/server/chunks/[root-of-the-server]__1ban_cu4u5ktr._.js +0 -3
  605. package/.next/server/chunks/[root-of-the-server]__1bvjyahgm4s-0._.js +0 -3
  606. package/.next/server/chunks/[root-of-the-server]__1g038brpx-jta._.js +0 -3
  607. package/.next/server/chunks/[root-of-the-server]__1gx-b_vxyk--4._.js +0 -3
  608. package/.next/server/chunks/[root-of-the-server]__1h2nhu8op07o7._.js +0 -3
  609. package/.next/server/chunks/[root-of-the-server]__1h8y4ve4ddvy5._.js +0 -3
  610. package/.next/server/chunks/[root-of-the-server]__1jcp2-lix6if6._.js +0 -3
  611. package/.next/server/chunks/[root-of-the-server]__1kff0rbt3ym95._.js +0 -3
  612. package/.next/server/chunks/[root-of-the-server]__1krabeg6sihbm._.js +0 -3
  613. package/.next/server/chunks/[root-of-the-server]__1m1ntd1-_5l0g._.js +0 -3
  614. package/.next/server/chunks/[root-of-the-server]__1mn88gcnj5c8i._.js +0 -3
  615. package/.next/server/chunks/[root-of-the-server]__1nsrbw9jntgo8._.js +0 -3
  616. package/.next/server/chunks/[root-of-the-server]__1q9pzdlt18lp0._.js +0 -3
  617. package/.next/server/chunks/[root-of-the-server]__1sm7cyumbieif._.js +0 -3
  618. package/.next/server/chunks/[root-of-the-server]__1sw3rkr-79ykm._.js +0 -3
  619. package/.next/server/chunks/[root-of-the-server]__1thdx6loe3xd4._.js +0 -3
  620. package/.next/server/chunks/[root-of-the-server]__1ukn55clu33ii._.js +0 -3
  621. package/.next/server/chunks/[root-of-the-server]__1un3mj5mywmvu._.js +0 -3
  622. package/.next/server/chunks/[root-of-the-server]__1uz66pjshld-e._.js +0 -3
  623. package/.next/server/chunks/[root-of-the-server]__1vbqkl7rn1dbm._.js +0 -3
  624. package/.next/server/chunks/[root-of-the-server]__1wnku4diwmv6z._.js +0 -3
  625. package/.next/server/chunks/[root-of-the-server]__1y7job8gfr7ww._.js +0 -3
  626. package/.next/server/chunks/[root-of-the-server]__1y_z8uh29gvhv._.js +0 -3
  627. package/.next/server/chunks/[root-of-the-server]__1yaxekogcfb41._.js +0 -3
  628. package/.next/server/chunks/[root-of-the-server]__1yhu07loxowr5._.js +0 -3
  629. package/.next/server/chunks/[root-of-the-server]__1zp57dov6qagu._.js +0 -3
  630. package/.next/server/chunks/_0a7_sds_l6vgw._.js +0 -11
  631. package/.next/server/chunks/_0b7ljlcl6h_ro._.js +0 -11
  632. package/.next/server/chunks/_1vtmdpk7p4al9._.js +0 -3
  633. package/.next/server/chunks/src_lib_01n35ubnvj7qr._.js +0 -3
  634. package/.next/server/chunks/src_lib_0csk5er_yd1v8._.js +0 -3
  635. package/.next/server/chunks/src_lib_0if7dmbrjhhw_._.js +0 -3
  636. package/.next/server/chunks/src_lib_0whd_w99i5vmm._.js +0 -3
  637. package/.next/server/chunks/src_lib_1-tw3_3nqx6ug._.js +0 -3
  638. package/.next/server/chunks/src_lib_15kwif87cuv22._.js +0 -3
  639. package/.next/server/chunks/src_lib_1csf8_0vpeenu._.js +0 -3
  640. package/.next/server/chunks/src_lib_1k0xki4wmn54_._.js +0 -3
  641. package/.next/server/chunks/src_lib_1ki8_85_ajoqn._.js +0 -3
  642. package/.next/server/chunks/src_lib_1p0k3ud1vrwmg._.js +0 -3
  643. package/.next/server/chunks/src_lib_1qy5aajgog9r2._.js +0 -3
  644. package/.next/server/chunks/src_lib_1wgxqrl1loni_._.js +0 -3
  645. package/.next/server/chunks/src_lib_1wh1pqmstnzzt._.js +0 -3
  646. package/.next/server/chunks/src_lib_211d4nepy8zds._.js +0 -3
  647. package/.next/server/chunks/src_lib_auth-utils_ts_20i7biv4dj8pm._.js +0 -3
  648. package/.next/server/chunks/src_lib_current-user_ts_20jgxch2zjmt3._.js +0 -3
  649. package/.next/server/chunks/src_lib_logger_ts_067l8txrna0gg._.js +0 -3
  650. package/.next/server/chunks/ssr/[root-of-the-server]__03jq7w4crcz_u._.js +0 -3
  651. package/.next/server/chunks/ssr/[root-of-the-server]__05d1gc-h-sk6z._.js +0 -3
  652. package/.next/server/chunks/ssr/[root-of-the-server]__06cr_rl6w07mf._.js +0 -3
  653. package/.next/server/chunks/ssr/[root-of-the-server]__0d-q1qjhzf_nt._.js +0 -3
  654. package/.next/server/chunks/ssr/[root-of-the-server]__0egzlmtf23a_j._.js +0 -3
  655. package/.next/server/chunks/ssr/[root-of-the-server]__0ledcudde4ndy._.js +0 -3
  656. package/.next/server/chunks/ssr/[root-of-the-server]__0snw-y9tp0_06._.js +0 -3
  657. package/.next/server/chunks/ssr/[root-of-the-server]__0u-q2sah-le20._.js +0 -3
  658. package/.next/server/chunks/ssr/[root-of-the-server]__0uulvxrtw9ld4._.js +0 -3
  659. package/.next/server/chunks/ssr/[root-of-the-server]__0wbg4fz5qe7h-._.js +0 -3
  660. package/.next/server/chunks/ssr/[root-of-the-server]__102i99h9qhhnc._.js +0 -3
  661. package/.next/server/chunks/ssr/[root-of-the-server]__14c291vzuew0p._.js +0 -3
  662. package/.next/server/chunks/ssr/[root-of-the-server]__18ej8rcn5j4hs._.js +0 -3
  663. package/.next/server/chunks/ssr/[root-of-the-server]__18sucwsgl0hdl._.js +0 -3
  664. package/.next/server/chunks/ssr/[root-of-the-server]__1_zton0k4t3va._.js +0 -3
  665. package/.next/server/chunks/ssr/[root-of-the-server]__1gulcy2-2jrfj._.js +0 -3
  666. package/.next/server/chunks/ssr/[root-of-the-server]__1hcwd0rtvz96c._.js +0 -3
  667. package/.next/server/chunks/ssr/[root-of-the-server]__1kh02fdj3kar7._.js +0 -3
  668. package/.next/server/chunks/ssr/[root-of-the-server]__1qpe9xti5ipq0._.js +0 -3
  669. package/.next/server/chunks/ssr/[root-of-the-server]__1qwt10yvul4gg._.js +0 -3
  670. package/.next/server/chunks/ssr/[root-of-the-server]__1vkia8gjeangv._.js +0 -3
  671. package/.next/server/chunks/ssr/[root-of-the-server]__1yy2y09x1rvba._.js +0 -3
  672. package/.next/server/chunks/ssr/[root-of-the-server]__1zh2txrawxztj._.js +0 -3
  673. package/.next/server/chunks/ssr/_05alwt3w7oor-._.js +0 -3
  674. package/.next/server/chunks/ssr/_06k5kn4q-1k90._.js +0 -3
  675. package/.next/server/chunks/ssr/_08fq-uch-l1g6._.js +0 -8
  676. package/.next/server/chunks/ssr/_0h6qsip9mphaq._.js +0 -3
  677. package/.next/server/chunks/ssr/_0iy-5lwc8jb9d._.js +0 -3
  678. package/.next/server/chunks/ssr/_0kr8c1wugeoy2._.js +0 -3
  679. package/.next/server/chunks/ssr/_0lpyto7r47jl8._.js +0 -3
  680. package/.next/server/chunks/ssr/_0p61m7hr-1evu._.js +0 -3
  681. package/.next/server/chunks/ssr/_0por-ny_nx4hz._.js +0 -3
  682. package/.next/server/chunks/ssr/_0vq069p6upfdb._.js +0 -3
  683. package/.next/server/chunks/ssr/_0xyykn-ar3ujn._.js +0 -3
  684. package/.next/server/chunks/ssr/_0z-gzl29_yrkq._.js +0 -3
  685. package/.next/server/chunks/ssr/_10gxtgntt3mjd._.js +0 -3
  686. package/.next/server/chunks/ssr/_13yctxl5n295y._.js +0 -3
  687. package/.next/server/chunks/ssr/_17edi6l2a0p76._.js +0 -8
  688. package/.next/server/chunks/ssr/_19ktk2l66yngc._.js +0 -3
  689. package/.next/server/chunks/ssr/_1g8mzz6qxv2mr._.js +0 -3
  690. package/.next/server/chunks/ssr/_1hih-3rrcvd5r._.js +0 -3
  691. package/.next/server/chunks/ssr/_1ub-zn6ndb6im._.js +0 -3
  692. package/.next/server/chunks/ssr/_1y_a6k7q3vg2p._.js +0 -32
  693. package/.next/server/chunks/ssr/_1yaa5p1rk6i7c._.js +0 -3
  694. package/.next/server/chunks/ssr/node_modules_004qzwkmt-_w5._.js +0 -3
  695. package/.next/server/chunks/ssr/node_modules_0fm0peui_p0ra._.js +0 -3
  696. package/.next/server/chunks/ssr/node_modules_1yow452htx6uk._.js +0 -3
  697. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0th0mlz3ys-17._.js +0 -3
  698. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_15-zi1i74qu9j._.js +0 -3
  699. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1tz6jn4lbq7wr._.js +0 -3
  700. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_circle-alert_0inq903c66mh_.js +0 -3
  701. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_play_0upz8-7p5gttr.js +0 -4
  702. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_printer_0pprvafgadlwd.js +0 -3
  703. package/.next/server/chunks/ssr/src_0_rgx1hl-1b6i._.js +0 -3
  704. package/.next/server/chunks/ssr/src_0av4wv_56wg9j._.js +0 -3
  705. package/.next/server/chunks/ssr/src_0wxvmqdi_0uno._.js +0 -3
  706. package/.next/server/chunks/ssr/src_1-cqlnizwbrvz._.js +0 -3
  707. package/.next/server/chunks/ssr/src_13u20tdu4gmgj._.js +0 -3
  708. package/.next/server/chunks/ssr/src_components_1lbiuzxejiwvf._.js +0 -3
  709. package/.next/server/chunks/ssr/src_components_settings_duplicate-threshold-setting_tsx_06bbmwo1pkaim._.js +0 -3
  710. package/.next/server/edge/chunks/[root-of-the-server]__1osrt2u3yic3e._.js +0 -3
  711. package/.next/server/edge/chunks/_1s0wgnupch4sb._.js +0 -3
  712. package/.next/server/edge/chunks/node_modules_0um8zwzayafzq._.js +0 -13
  713. package/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_0dxg4rr5z738i.js +0 -3
  714. package/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_0dzf5yhexv02u.js +0 -3
  715. package/.next/static/chunks/0-g2qiz5eregb.js +0 -1
  716. package/.next/static/chunks/06zpvgwws_flj.js +0 -1
  717. package/.next/static/chunks/0jut1vg7qtq0j.js +0 -1
  718. package/.next/static/chunks/0kh-fx3tssh5w.js +0 -1
  719. package/.next/static/chunks/0p-3zwi9dqdk8.js +0 -1
  720. package/.next/static/chunks/0r7n8__w9jr5w.js +0 -1
  721. package/.next/static/chunks/0znojfm3iv2d7.js +0 -1
  722. package/.next/static/chunks/1-0pbi32_0tiw.css +0 -3
  723. package/.next/static/chunks/1-6-wa_w1wy_c.js +0 -1
  724. package/.next/static/chunks/1c46asvnosb8-.js +0 -1
  725. package/.next/static/chunks/1cdwoh8b2ub-t.js +0 -1
  726. package/.next/static/chunks/1epmdj8kqwbz4.js +0 -1
  727. package/.next/static/chunks/1fl98iro7y1bv.js +0 -1
  728. package/.next/static/chunks/1xu_px8hpyqhm.js +0 -1
  729. package/.next/static/chunks/24gum0cmhhv7z.js +0 -1
  730. package/.next/static/chunks/2fr8ktozrvacg.js +0 -1
  731. package/.next/static/chunks/2nddfzlyynqiv.js +0 -191
  732. package/.next/static/chunks/2uobd1ff4vknn.js +0 -33
  733. package/.next/static/chunks/2ysjbje-zsbdp.js +0 -1
  734. package/.next/static/chunks/341etzsqr_b1v.js +0 -6
  735. package/.next/static/chunks/37v5zj-q3hku_.js +0 -1
  736. package/.next/static/chunks/3_4ii4nyiyyj7.js +0 -1
  737. package/.next/static/chunks/3aiz227rfearv.js +0 -1
  738. package/.next/static/chunks/3d86o-8o9e1_5.js +0 -1
  739. package/.next/static/chunks/3icoc8gklzn52.js +0 -1
  740. package/.next/static/chunks/3jb_u6u63wui6.js +0 -1
  741. package/.next/static/chunks/3nrbakhvqod4r.js +0 -1
  742. package/.next/static/chunks/3t69fx29wlkt5.js +0 -4
  743. package/.next/static/chunks/3tc0l--v631lz.js +0 -1
  744. package/.next/static/chunks/3wxogk-dqqw8w.js +0 -1
  745. package/.next/static/chunks/44v1ecq31yy91.js +0 -1
  746. /package/.next/static/{5_KLPq_HKqxezyOLm8aj6 → a_s4-LHOy7Mv_E61U1tOg}/_buildManifest.js +0 -0
  747. /package/.next/static/{5_KLPq_HKqxezyOLm8aj6 → a_s4-LHOy7Mv_E61U1tOg}/_clientMiddlewareManifest.js +0 -0
  748. /package/.next/static/{5_KLPq_HKqxezyOLm8aj6 → a_s4-LHOy7Mv_E61U1tOg}/_ssgManifest.js +0 -0
package/README.en.md ADDED
@@ -0,0 +1,550 @@
1
+ <p align="center">
2
+ <img src="public/icons/icon.png" width="128" height="128" alt="Smart Wrong Notebook app icon">
3
+ </p>
4
+
5
+ # Smart Wrong Notebook (智能错题本)
6
+
7
+ [简体中文](README.md) | **English**
8
+
9
+ [![GitHub downloads](https://img.shields.io/github/downloads/margrop/wrong-notebook/total?label=downloads&logo=github)](https://github.com/margrop/wrong-notebook/releases) [![npm downloads](https://img.shields.io/npm/d18m/wrong-notebook?label=npm%20downloads&logo=npm)](https://www.npmjs.com/package/wrong-notebook) [![GitHub stars](https://img.shields.io/github/stars/margrop/wrong-notebook?logo=github)](https://github.com/margrop/wrong-notebook/stargazers) [![GitHub forks](https://img.shields.io/github/forks/margrop/wrong-notebook?logo=github)](https://github.com/margrop/wrong-notebook/forks)
10
+
11
+ [![Desktop](https://img.shields.io/badge/Desktop-Windows%20%7C%20macOS%20%7C%20Linux-informational)](https://github.com/margrop/wrong-notebook/releases) [![Android](https://img.shields.io/badge/Android-34A853?logo=android&logoColor=white)](https://github.com/margrop/wrong-notebook/releases) [![Docker](https://img.shields.io/badge/Docker-2496ED?logo=docker&logoColor=white)](https://github.com/margrop/wrong-notebook/pkgs/container/wrong-notebook) [![npm](https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white)](https://www.npmjs.com/package/wrong-notebook) [![fnOS](https://img.shields.io/badge/fnOS-fpk-0A84FF)](https://github.com/margrop/wrong-notebook/releases) [![Web](https://img.shields.io/badge/Web-PC%20%7C%20Mobile-orange)](https://wrong-notebook-demo.vercel.app)
12
+
13
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Release](https://img.shields.io/github/v/release/margrop/wrong-notebook?include_prereleases)](https://github.com/margrop/wrong-notebook/releases) [![CI](https://github.com/margrop/wrong-notebook/actions/workflows/ci.yml/badge.svg)](https://github.com/margrop/wrong-notebook/actions/workflows/ci.yml) [![CodeQL](https://github.com/margrop/wrong-notebook/actions/workflows/codeql.yml/badge.svg)](https://github.com/margrop/wrong-notebook/actions/workflows/codeql.yml) [![npm](https://img.shields.io/npm/v/wrong-notebook)](https://www.npmjs.com/package/wrong-notebook)
14
+
15
+ An AI-powered notebook for the questions you got wrong. Snap a photo or type a question, and AI recognizes it, solves it, tags it with knowledge points and rates its difficulty. Manage your notebooks, practice with similar questions, build printable exams and track how well you have mastered each question.
16
+
17
+ **⬇️ [Download](https://blog.margrop.net/wrong-notebook-github-pages/en/download/)** · **🚀 [Live demo](https://wrong-notebook-demo.vercel.app)** (account `demo@localhost`, password `demo123456`) · **🌐 [Project website](https://blog.margrop.net/wrong-notebook-github-pages/en/)** · **📖 [Docs (Wiki)](https://github.com/margrop/wrong-notebook/wiki/Home-en)**
18
+
19
+ > The demo uses a shared account and its data is visible to every visitor. Do not enter personal information. Articles: [Stop Copying Mistakes. Start Learning from Them](https://blog.margrop.net/en/post/wrong-notebook-ai-family-learning/) · [Free MiniMax Accounts, fnOS, and Daily Review](https://blog.margrop.net/en/post/wrong-notebook-minimax-free-ai-review/)
20
+
21
+ ## 🌟 Highlights
22
+
23
+ - **🤖 AI recognition and explanations**: snap a photo, take a screenshot or type the question; AI recognizes it, writes the answer and analysis, explains the mistake, tags knowledge points and rates difficulty from 1 to 5 stars.
24
+ - **🔊 SVG animated explanations that talk**: AI turns the solution into a step-by-step animation with voice narration, and the animation waits for each step to be read before moving on. Two kinds of voice are available:
25
+
26
+ | Voice | Sound | Cost |
27
+ | :--- | :--- | :--- |
28
+ | Browser voice (Web Speech) | Read by the device's built-in voice; sounds stiff, and the voice varies by device | Free |
29
+ | Cloud TTS (MiniMax, Qwen, Zhipu GLM-TTS, StepFun, Volcengine Doubao Speech, Volcengine Agent Plan, OpenAI) | Natural, just like a real person explaining the problem, and the same on every device | Paid; **a Token Plan or similar subscription is recommended** over pay-as-you-go. Volcengine offers a [free trial quota](https://docs.volcengine.com/docs/ark/free-inference-quota?lang=zh) you can turn on by following its docs |
30
+
31
+ - **🆓 Works with free accounts**: choose the "MiniMax Code OAuth" channel and sign in with a MiniMax Code account in the browser, with no API key to buy; the app checks in every day to collect credits (see [MiniMax Code OAuth](#minimax-code-oauth)). New Volcengine users also get a [free inference quota](#volcengine-free-trial).
32
+ - **📚 A complete review loop**: auto-graded similar questions, AI mastery estimates, daily review at Ebbinghaus intervals, and printable exams built from your mistakes with per-question results.
33
+ - **📦 Install anywhere**: Docker image (amd64 / arm64), npm, Windows, macOS, Linux, fnOS, Android phones and tablets (standalone or client), or add it to your home screen as a PWA.
34
+
35
+ > This repository is a fork of [wttwins/wrong-notebook](https://github.com/wttwins/wrong-notebook); most of the features above and below were added here. The built-in knowledge-point library follows the Chinese K-12 curriculum (primary, junior high and senior high school). The interface is available in Simplified Chinese and English.
36
+
37
+ ## ⭐ Star History
38
+
39
+ <a href="https://www.star-history.com/#margrop/wrong-notebook&amp;Date">
40
+ <picture>
41
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=margrop/wrong-notebook&amp;type=Date&amp;theme=dark">
42
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=margrop/wrong-notebook&amp;type=Date">
43
+ <img src="https://api.star-history.com/svg?repos=margrop/wrong-notebook&amp;type=Date" alt="GitHub star history chart for margrop/wrong-notebook">
44
+ </picture>
45
+ </a>
46
+
47
+ ## 🖼️ Screenshots
48
+
49
+ The screenshots below were captured from the running app on 2026-10-22 using English demo questions, answers, explanations, knowledge points and exams. The Student account and practice records are sample data. Click an image to view it full size.
50
+
51
+ **Notebook**: see each question's summary, difficulty stars and knowledge points on one page. Filter by grade, term, mastery and A/B paper, open a question by its ID, compare similarity or print in bulk. The list loads card data only. Original images, answers and explanations load in question details or print preview, reducing data transfer when paging.
52
+
53
+ ![English math questions with difficulty stars, English knowledge-point tags and filters](doc/screenshots/en/notebook.png)
54
+
55
+ <details>
56
+ <summary><strong>Input and preferences: photo upload, text input, review before import and configurable duplicate detection</strong></summary>
57
+
58
+ The home page offers photo upload, manual input and direct entry, with drag-and-drop and clipboard paste.
59
+
60
+ ![Photo upload, manual input, direct entry, clipboard paste and screenshot on the home page](doc/screenshots/en/upload.png)
61
+
62
+ General settings control review before import, the per-user grade rule (fixed grade or AI recognition), SVG animated explanations, GeoGebra demos, the similarity threshold for duplicate detection and the mastered threshold. Paper groups (A/B/Other) can be customized in settings: rename default groups, add custom groups (e.g. Unit Test, Midterm, Final), deactivate or delete custom groups.
63
+
64
+ ![Review before import, animated explanations, GeoGebra and duplicate threshold in General settings](doc/screenshots/en/preferences.png)
65
+
66
+ </details>
67
+
68
+ <details>
69
+ <summary><strong>Question details: formulas, difficulty stars, knowledge points and paper info</strong></summary>
70
+
71
+ Each question shows its text, knowledge points, grade, term and paper level. Click **Edit grade/semester** to change the grade or term; the review page also provides a selector. You can check the original photo and start practicing similar questions from here.
72
+
73
+ ![An English linear-equation question with formulas, difficulty stars, knowledge points, grade and term](doc/screenshots/en/question-detail.png)
74
+
75
+ </details>
76
+
77
+ <details>
78
+ <summary><strong>SVG animated explanations: step-by-step animations of the solution, with voice narration</strong></summary>
79
+
80
+ An English animated explanation of a hexagon coloring problem, showing region relationships and the recursive counting. The player supports pause, seeking, replay and full screen. Click the speaker for voice narration: the browser voice is free but stiff, while cloud TTS sounds natural, just like a real person (paid; a Token Plan or similar subscription is recommended).
81
+
82
+ ![English SVG explanation of a hexagon coloring problem with an English counting table and player controls](doc/screenshots/en/svg-animation.png)
83
+
84
+ </details>
85
+
86
+ <details>
87
+ <summary><strong>Review feedback: similar questions, answer history and AI mastery estimate</strong></summary>
88
+
89
+ Results from practice questions and exams are collected under the original question; expand a record to see the variant question and its answer. AI estimates your mastery from the actual answer history to help plan the next review.
90
+
91
+ ![An English exam variant, sample wrong-then-right answer history and a mastery estimate](doc/screenshots/en/mastery-history.png)
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary><strong>Exams and printing: generate exams from your mistakes and record results per question</strong></summary>
97
+
98
+ Generated exams keep each source question's ID and show every attempt, so you can trace the effect back to the original question.
99
+
100
+ ![An English demo exam with source IDs and sample results from multiple attempts](doc/screenshots/en/exam.png)
101
+
102
+ The print preview can include an answer page and sets the answer space below each question: automatic by question type (less for fill-in, choice and true/false questions, more for worked problems with extra room per sub-question) or a fixed none, small, medium or large; download it as HTML, print it, or save it as PDF from the browser.
103
+
104
+ ![An English exam print preview with source IDs, answer page toggle and export options](doc/screenshots/en/exam-print.png)
105
+
106
+ </details>
107
+
108
+ <details>
109
+ <summary><strong>Knowledge library: browse by subject, grade and chapter</strong></summary>
110
+
111
+ The tag library organizes knowledge points by curriculum level. Knowledge points now live under the **Stats** section: the "Knowledge Points" tab browses the standard library and manages custom tags, and the "Knowledge Point Stats" tab shows usage frequency. This demo uses English sample tags for algebra and geometry.
112
+
113
+ ![English grade 4 tags expanded to show linear equations, adding fractions, angles, and area and perimeter](doc/screenshots/en/knowledge-tags.png)
114
+
115
+ </details>
116
+
117
+ <details>
118
+ <summary><strong>Statistics: mistake distribution, mastery rate, practice accuracy and trends</strong></summary>
119
+
120
+ Mistake statistics show total mistakes, mastered count, mastery rate, subject distribution and monthly trend.
121
+
122
+ ![Mistake count, mastery rate, subject distribution and monthly trend charts](doc/screenshots/en/error-stats.png)
123
+
124
+ Practice statistics show total practice, accuracy and active months, with distribution and trends by subject and difficulty.
125
+
126
+ ![Practice count, accuracy, active months and practice trend charts](doc/screenshots/en/practice-stats.png)
127
+
128
+ </details>
129
+
130
+ ## ✨ Features
131
+
132
+ ### Input and recognition
133
+
134
+ - **📷 Many ways to add questions**: upload images, paste from the clipboard (Ctrl/⌘+V), take a screenshot, or type the question (Markdown and LaTeX supported). Crop images (zoom with the mouse wheel, a pinch or the zoom buttons for precise selection), or select several questions on one image to import them in a batch.
135
+ - **🤖 AI recognition and solving**: AI extracts the question text, answer, analysis, the student's wrong answer and the cause of the mistake, identifies the subject and picks tags from the knowledge library. Turn on "Review before importing" in **Settings → General** to check and edit results before saving.
136
+ - **🎓 Grade rule for new questions**: choose a fixed grade or AI recognition per account under **Settings → General**. Fixed mode uses the selected grade and semester, falling back to the account's current grade if unset. AI infers the grade from the question and leaves it unset when uncertain. Applies to images, text, batch selection and Openclaw; manual choices take priority. Direct entry without a grade uses one short AI request, counted toward your daily limit; duplicates do not trigger it. Existing questions and restored grades are preserved.
137
+ - **🔁 Duplicate detection**: on import, question text is compared by similarity. Above the threshold (90% by default, adjustable in settings) the question is not imported again; a new wrong attempt is recorded on the original instead.
138
+ - **🆔 Question ID**: every question has a 6-digit ID you can copy or type into the notebook to open it directly. Printed questions and exams show the source ID so you can find the original when entering results.
139
+
140
+ ### Question content
141
+
142
+ - **∑ LaTeX formulas**: formulas in questions, answers and analyses are rendered with KaTeX, supporting `$…$`, `$$…$$`, `\(…\)` and `\[…\]`; switch between source and preview while editing. When a formula has syntax errors, a **Fix LaTeX** button appears and AI fixes only the formula syntax.
143
+ - **📝 Regenerate the solution**: **Regenerate full solution** on the details page asks AI to rewrite the answer and analysis (with confirmation before overwriting); knowledge points and the cause of the mistake stay unchanged.
144
+ - **🖼️ Question figures**: during recognition AI redraws figures as SVG, which is used on the details page, in printouts and in exams. For a saved mistake with a figure, set **Figure display scale** on its details page (10–200%, default 100%). The saved scale applies to that question's display and text printouts and is restored from backups. Check the original photo with "View original image", or replace and add photos.
145
+ - **⭐ Difficulty stars**: on import AI rates difficulty from 1 to 5 stars following the star scale of a well-known Chinese math competition textbook series (1–2 stars: textbook and school extension, 3–4: regular math olympiad, 5: hardest competition problems). You can change it manually; questions with 4 stars or more go to paper B by default.
146
+ - **🏷️ Knowledge-point tags**: each notebook is created for a school stage (primary / junior high / senior high) and a subject (cannot be changed later). AI picks tags from all knowledge points of that stage and subject. Custom tags are supported, and AI can re-tag the knowledge points and difficulty of one question or a whole notebook.
147
+
148
+ ### Explanations and demos
149
+
150
+ - **🎬 SVG animated explanations**: AI generates step-by-step SVG animations of the solution that stay paused on the first frame when the page opens or the animation changes; click Play to start. The player supports play/pause, seeking, replay and full screen. Animation text follows the interface language; Chinese and English versions are kept separately, and switching the language shows the matching version automatically. On by default; turn it off in **Settings → General**.
151
+ - **🔊 Voice narration**: click the speaker icon in the player; the animation waits for each step to be read before moving on, and the speed is adjustable. Choose the browser voice or cloud TTS (see [Cloud voice narration](#-cloud-voice-narration)). Older animations without a narration script read the on-screen subtitles, or click **Add narration** to have AI write only the script while keeping the picture unchanged.
152
+ - **📐 GeoGebra demos**: for math and physics questions, AI can generate interactive GeoGebra figures. Off by default; turn it on in **Settings → General**.
153
+ - Generated animations and GeoGebra demos can be deleted (with confirmation).
154
+
155
+ ### Review and practice
156
+
157
+ - **🔄 Practice similar questions**: generate variant questions (fill-in-the-blank or free response) on the same knowledge point, choose the difficulty and submit an answer: it is checked automatically (local matching checks identical conclusions only when no reasoning is required; proofs and justification questions go to AI to check the reasoning, and other answers are compared by AI with the reference answer), and you can change the result before saving. The most recently generated question and solution are kept for each mistake and shown directly next time; click Regenerate for a new one.
158
+ - **📈 Mastery probability**: AI estimates how likely you have mastered each question from the answer history of practice and exams. Questions fall into three states: **To Review** (no practice records yet), **Reviewing** (has records, probability below the mastered threshold) and **Mastered** (has records, probability at or above the threshold). The threshold is 50% by default and each user can adjust it in settings.
159
+ - **📅 Daily review**: each question is scheduled at Ebbinghaus intervals of 1, 2, 4, 7, 15 and 30 days. A correct answer moves it to the next interval; a wrong answer starts over. The **Review** page lists questions due today (earliest first), and the home page shows how many are due.
160
+ - **🧾 Mistake exams**: draw questions at random by notebook, knowledge point and mastery, and turn them into a printable exam of similar questions. After finishing, enter results per question; they are added to the original question's answer history.
161
+ - **🖨️ Print mistakes**: print filtered questions with your choice of question text or original image, answer, analysis and knowledge points, adjust image scale, then print or save as PDF.
162
+
163
+ ### Management and statistics
164
+
165
+ - **🔍 Filters**: filter by mastery, date range, knowledge point, grade and term, paper level and more; supports bulk actions and comparing the similarity of two questions.
166
+ - **📊 Statistics**: mastery rate, monthly trend and subject distribution for both mistakes and practice.
167
+ - **⏳ Background tasks**: the button at the bottom right shows the progress of long-running jobs such as recognition, AI generation, animation voice, bulk tagging and exam generation. Jobs keep running on the server after you leave the page.
168
+ - **💾 Import and export**: export or import data backups in **Settings**, including notebooks, questions, practice and answer records, exams, personal preferences and synthesized cloud voice; account credentials and AI settings are not included.
169
+ - **🌗 Dark mode**: the theme button in the top navigation bar switches between Auto (follow system), Light and Dark; Auto is the default. The choice is saved per account, so it carries over when you sign in on another device.
170
+ - **🕒 Application time zone**: Beijing time by default and changeable by administrators; dates and statistics follow the application time zone. See [TIME_ZONE.md](doc/TIME_ZONE.md) (Chinese).
171
+ - **🔑 One-time setup link**: fresh installs no longer ship an admin with a fixed password. On first start the server generates a setup link that works only once; open it to choose the admin email and password. The desktop and standalone Android apps open it automatically; on fnOS you enter the admin email and password in the install wizard instead; Docker, npm and source runs print it in the startup log (the token is also in `config/setup-token` in the data directory). Instances upgraded from earlier versions keep their accounts.
172
+ - **🧭 Setup wizard**: on first sign-in the admin goes through a wizard: change the default password (only for the default admin of earlier versions) → set up an AI provider (free MiniMax Code recommended) → create the first notebook. The last two steps can be skipped, and the wizard can be run again from **Settings → User Management**. Instances already in use are not interrupted after upgrading.
173
+ - **🔐 Multiple users and admin console**: sign-up and sign-in, with data isolated per user. New sign-ups are off by default (the sign-in page then hides the sign-up link and asks visitors to contact the administrator) and can be turned on under **Settings → User Management**, where admins can also cap daily AI use per user and see today's usage. Administrators open the admin console from **Settings → User Management** to view usage statistics and enable, disable or delete users. Sign-in and sign-up limit repeated failures to block password guessing.
174
+ - **🐞 Debug logs**: when something goes wrong, an admin turns on debug mode under "Settings → User Management", reproduces the problem, then exports the debug log (JSON) and sends it to the author. Debug mode records every server log, including `debug` level, plus frontend errors; API keys, passwords and tokens are removed on export. The log lives in memory only, debug mode turns off after 24 hours, and a restart clears it.
175
+ - **🔌 Openclaw integration**: an external Openclaw agent can upload question images in bulk via `POST /api/openclaw/batch-upload`; see [Environment variables](#-environment-variables).
176
+
177
+ ## 🚀 Quick Start
178
+
179
+ Ordered from easiest to most hands-on. Fresh installs have no default account: the first start generates a one-time setup link where you choose the admin email and password, then the setup wizard helps you set up an AI provider and create your first notebook. The desktop and standalone Android apps open the link automatically; for Docker run `docker logs wrong-notebook 2>&1 | grep initialize`; npm and source runs print it in the terminal. If the link host is `localhost`, replace it with the server address when opening it from another device (or set `NEXTAUTH_URL`). Until an admin exists, the sign-in page shows these instructions too.
180
+
181
+ ### Option 1: Installers (Windows / macOS / Linux / fnOS / Android / npm)
182
+
183
+ Download the package for your platform from the [download page](https://blog.margrop.net/wrong-notebook-github-pages/en/download/) (detects your OS and architecture) or from [Releases](https://github.com/margrop/wrong-notebook/releases), install it and open it:
184
+
185
+ | Platform | Package |
186
+ | :--- | :--- |
187
+ | Windows | `WrongNotebook-Win-Setup-<version>-x64.exe` (installer), `WrongNotebook-Win-Portable-<version>-x64.exe` (portable) |
188
+ | macOS | `WrongNotebook-Mac-<version>-arm64.dmg` (Apple silicon), `WrongNotebook-Mac-<version>-x64.dmg` (Intel) |
189
+ | Linux | `WrongNotebook-Linux-<version>-<arch>.AppImage`, `.deb` |
190
+ | fnOS | `WrongNotebook-FnOS-<version>-x86.fpk`, `WrongNotebook-FnOS-<version>-arm.fpk` |
191
+ | Android phone / tablet (standalone) | `WrongNotebook-Android-Phone-<version>.apk` (portrait), `WrongNotebook-Android-Tablet-<version>.apk` (rotates between portrait and landscape) |
192
+ | Android phone / tablet (client) | `WrongNotebook-Android-Client-Phone-<version>.apk`, `WrongNotebook-Android-Client-Tablet-<version>.apk` |
193
+
194
+ See the Windows [Code signing policy](doc/CODE_SIGNING.en.md) and [privacy policy](doc/PRIVACY.en.md). The project is applying to SignPath Foundation; currently published Windows installers remain unsigned. The maintainer's [setup guide](doc/WINDOWS_SIGNING.md) describes activation after approval.
195
+
196
+ > **macOS says the app is damaged or can't be opened**: the package is not signed by Apple. After dragging the app into Applications, run these commands in Terminal to remove the quarantine flag and re-sign it locally, then open it:
197
+ >
198
+ > ```bash
199
+ > xattr -cr /Applications/WrongNotebook.app
200
+ > codesign --force --deep --sign - /Applications/WrongNotebook.app
201
+ > ```
202
+
203
+ Or install with npm:
204
+
205
+ ```bash
206
+ npm install -g wrong-notebook
207
+ wrong-notebook --port 3000
208
+ ```
209
+
210
+ The npm package needs Node.js 22.15 or later and stores data in `~/.wrong-notebook` by default. The desktop app listens on `127.0.0.1` only; the fnOS package needs Node.js v24 from the fnOS app center and is served on port 39300. The standalone Android app includes the server and works right after installation. Data stays on the device (uninstalling the app deletes it, and it is excluded from Android system backup because it contains API keys, so export a backup in Settings before uninstalling or switching phones); on first launch it opens the one-time setup page where you create the admin account. It needs a 64-bit ARM device with Android 8.0 or later. The Android client does not include the server: on first launch, enter the address of a deployed server (for example `http://192.168.1.10:3000`); you can change the server under Settings → About. It needs Android 7.0 or later. Both apps support taking photos for upload, saving exported files and system printing, and can be installed side by side.
211
+
212
+ Data directories, default accounts and local builds are described in [INSTALL_PACKAGES.md](doc/INSTALL_PACKAGES.md) (Chinese).
213
+
214
+ ### Option 2: Docker image (recommended for servers and NAS)
215
+
216
+ Every release publishes an image to GitHub Container Registry, `ghcr.io/margrop/wrong-notebook`, for `linux/amd64` and `linux/arm64`. Pull it directly; no source code needed.
217
+
218
+ | Image tag | Description |
219
+ | --- | --- |
220
+ | Exact versions such as `2026.10.20` | Recommended; upgrade when you choose |
221
+ | `2026.10` | Latest release of the month |
222
+ | `latest` | Latest stable release |
223
+
224
+ 1. **Prepare directories and a secret**:
225
+
226
+ ```bash
227
+ mkdir -p wrong-notebook/data wrong-notebook/config
228
+ cd wrong-notebook
229
+ openssl rand -base64 32 # use the output as NEXTAUTH_SECRET
230
+ ```
231
+
232
+ 2. **Start the container** (either way):
233
+
234
+ ```bash
235
+ docker run -d --name wrong-notebook \
236
+ --restart always \
237
+ -e NEXTAUTH_SECRET="secret-from-previous-step" \
238
+ -e NEXTAUTH_URL="http://your-ip-or-domain:3000" \
239
+ -p 3000:3000 \
240
+ -v "$(pwd)/data:/app/data" \
241
+ -v "$(pwd)/config:/app/config" \
242
+ ghcr.io/margrop/wrong-notebook:latest
243
+ ```
244
+
245
+ Or download [`docker-compose.yml`](docker-compose.yml) into the current directory, set `NEXTAUTH_SECRET` (and `NEXTAUTH_URL`), then run `docker compose up -d`.
246
+
247
+ 3. **Sign in**: open `http://your-ip-or-domain:3000`.
248
+
249
+ 4. **Upgrade**: pull the new image and recreate the container. Data stays in the mounted directories; on startup only database migrations run. Back up the `data/` directory before upgrading.
250
+
251
+ ```bash
252
+ docker compose pull && docker compose up -d
253
+ # With docker run: docker pull the new image, docker rm -f wrong-notebook, then run the docker run command above again
254
+ ```
255
+
256
+ Data lives in the mounted `data/` (SQLite database) and `config/` (AI settings saved from the web UI, cloud voice cache, etc.) directories. **Settings → About** and `/api/health` show the running version. For HTTPS, see the [HTTPS setup guide](doc/HTTPS_SETUP.md) (Chinese) and `docker-compose.https.yml`.
257
+
258
+ > The upstream image `ghcr.io/wttwins/wrong-notebook` **does not include** the features added in this repository. Use `ghcr.io/margrop/wrong-notebook`.
259
+
260
+ ### Option 3: Run from source
261
+
262
+ 1. **Requirements**: Node.js 22 or later (24 recommended) and npm.
263
+ 2. **Clone and install dependencies**:
264
+
265
+ ```bash
266
+ git clone https://github.com/margrop/wrong-notebook.git
267
+ cd wrong-notebook
268
+ npm ci
269
+ cp .env.example .env # fill it in as described in Environment variables
270
+ ```
271
+
272
+ 3. **Initialize the database**: create the schema and the admin account, then import the system knowledge points (same as the Docker build):
273
+
274
+ ```bash
275
+ npx prisma migrate dev
276
+ npx prisma db seed
277
+ npx ts-node --compiler-options '{"module":"CommonJS"}' scripts/rebuild-system-tags.ts
278
+ ```
279
+
280
+ 4. **Start the dev server**: `npm run dev`, then open `http://localhost:3000`.
281
+
282
+ ### Option 4: Build the image from source
283
+
284
+ Build it yourself if you change the code or need unreleased changes. The build runs all tests inside the image and produces a production build:
285
+
286
+ ```bash
287
+ docker build -t wrong-notebook:local .
288
+
289
+ docker run -d --name wrong-notebook \
290
+ -e NEXTAUTH_SECRET="your_secret_key" \
291
+ -p 3000:3000 \
292
+ -v "$(pwd)/data:/app/data" \
293
+ -v "$(pwd)/config:/app/config" \
294
+ wrong-notebook:local
295
+ ```
296
+
297
+ With `docker-compose.yml`, change `image` to `wrong-notebook:local`.
298
+
299
+ ## ⚙️ AI and voice configuration
300
+
301
+ AI settings are changed in the web UI and take effect when saved, without restarting:
302
+
303
+ 1. As an administrator, click the settings icon at the top right of the home page and open **AI Provider**.
304
+ 2. Choose a provider and fill in the API key, base URL (or endpoint) and model (or deployment name). The provider links to its official API docs, and the API key and model fields link to how to get a key and the model list.
305
+ 3. Click **Test connection** to check text and image recognition; on failure the provider's original error is shown. Settings are stored in `config/app-config.json` and take precedence over `.env`.
306
+ 4. **Voice narration** further down the same page switches between the browser voice and a cloud voice. The **Prompts** tab lets you customize the prompt templates for recognition and similar-question generation.
307
+
308
+ AI settings, prompts, connection tests and model lists are admin-only. Regular users can only change their own preferences in **Settings → General**.
309
+
310
+ Grading checks equivalent results for calculation questions and the required reasoning for proofs and justification questions. Local matching only marks answers correct when no reasoning is required; other cases go to AI grading.
311
+
312
+ GeoGebra text, inequalities and caption parameters are checked against a shared command list; regeneration includes actual execution errors as feedback.
313
+
314
+ The application always supplies the output contract, field languages, grade scope and candidate-tag rules, including for older custom templates with missing variables. Recognition preserves the original question and student work; explanations and mistake analysis follow the interface language, while stored subject, grade and tag names remain unchanged. AI tags are filtered against the candidate list and deduplicated; manually added tags are unaffected. Mastery evaluation includes its evaluation time and practice intervals.
315
+
316
+ ### Supported AI providers
317
+
318
+ The official Chinese model channels call each vendor's OpenAI-compatible API, so only an API key is required; when the base URL and model are left empty, the defaults below are used. For the international site, change the base URL to its address.
319
+
320
+ | Provider | Recommended setup | Default base URL | Default model |
321
+ | :--- | :--- | :--- | :--- |
322
+ | MiniMax | [MiniMax platform](https://platform.minimax.io) | `https://api.minimax.cn/v1` (international `https://api.minimax.io/v1`) | `MiniMax-M3.1-Flash` |
323
+ | MiniMax Code OAuth | **Free account**, browser sign-in; see [below](#minimax-code-oauth) | Fixed endpoint | `MiniMax-M3.1-Flash` |
324
+ | Zhipu GLM | [Z.ai platform](https://z.ai) | `https://open.bigmodel.cn/api/paas/v4` (international `https://api.z.ai/api/paas/v4`) | `glm-5.3-flash` |
325
+ | DeepSeek | [DeepSeek platform](https://platform.deepseek.com) | `https://api.deepseek.com` | `deepseek-v4-flash` |
326
+ | Kimi | [Kimi platform](https://platform.kimi.com) | `https://api.moonshot.cn/v1` (international `https://api.moonshot.ai/v1`) | `kimi-k3.1-pro` |
327
+ | Qwen | [Alibaba Cloud Model Studio](https://bailian.console.aliyun.com), Token Plan recommended | `https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1` (pay-as-you-go `https://dashscope.aliyuncs.com/compatible-mode/v1`) | `qwen3.8-max` |
328
+ | StepFun | [StepFun platform](https://platform.stepfun.com), Step Plan recommended | `https://api.stepfun.com/step_plan/v1` (pay-as-you-go `https://api.stepfun.com/v1`, international `https://api.stepfun.ai/v1`) | `step-5-preview` |
329
+ | Volcengine Doubao | [Volcengine Ark](https://console.volcengine.com/ark), pay-as-you-go | `https://ark.cn-beijing.volces.com/api/v3` (international `https://ark.ap-southeast.bytepluses.com/api/v3`) | `doubao-seed-evolving` |
330
+ | Volcengine Agent Plan | Dedicated [Agent Plan](https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh) key; the plan includes Doubao speech synthesis | `https://ark.cn-beijing.volces.com/api/plan/v3` | `doubao-seed-evolving` |
331
+ | Volcengine Coding Plan | [Coding Plan](https://www.volcengine.com/docs/82379/1928261), Ark API key | `https://ark.cn-beijing.volces.com/api/coding/v3` (do not change it to `/api/v3`, which is not counted toward the plan) | `doubao-seed-evolving` |
332
+ | Volcengine (free trial) | **Free inference quota** for new users; see [below](#volcengine-free-trial) | `https://ark.cn-beijing.volces.com/api/v3` | `doubao-seed-evolving` |
333
+ | Anthropic and compatible APIs | [Claude Console](https://platform.claude.com/) | `https://api.anthropic.com` (without `/v1`) | `claude-sonnet-5-5` |
334
+ | Azure OpenAI | Azure portal → OpenAI resource → Keys and Endpoint | Your resource endpoint and deployment name | Deployment name |
335
+ | OpenAI and compatible APIs | [OpenAI Platform](https://platform.openai.com/api-keys); several configurations can be added and switched | `https://api.openai.com/v1` | `gpt-6.1-sol` |
336
+ | Google Gemini | [Google AI Studio](https://aistudio.google.com/apikey) | Official URL | `gemini-2.5-flash` (`gemini-3.8-flash` recommended) |
337
+
338
+ > **Compatible APIs**: the OpenAI provider works with any third-party service that implements the OpenAI API format (such as SiliconFlow), and the Anthropic provider with services that implement the Messages API. Set the base URL to the service's address and enter the platform's full model ID. Thinking output from reasoning models is ignored.
339
+
340
+ #### MiniMax Code OAuth
341
+
342
+ **Free MiniMax accounts are supported**: sign in with a MiniMax Code account in the browser. No API key or paid plan is needed.
343
+
344
+ - **Automatic daily check-in**: once signed in, the app checks in every day and collects the MiniMax Code check-in credits (streaks earn more), so you don't need to open the client.
345
+ - **Uses free credits**: AI calls such as recognition, explanations, similar-question practice and grading use the account's free credits. The remaining credits are shown on the settings page.
346
+ - **Default model `MiniMax-M3.1-Flash`**: tested and working, with image input; `MiniMax-M3`, `MiniMax-M2.7` and others are also available.
347
+
348
+ To set it up, choose MiniMax Code OAuth in "Settings → AI Provider", click "Sign in with browser" and finish authorizing on the MiniMax page that opens. The settings page shows the login status, the remaining credits and whether today's check-in was done automatically.
349
+
350
+ The credentials are stored in `minimax-code.json` in the server's config directory (next to `app-config.json`, not included in data backups), and the access token is renewed automatically before it expires. Once signed in, the server checks every hour and collects the MiniMax Code daily check-in credits if today's check-in (Beijing time) has not been done yet. You can turn auto check-in off or check in right away on the settings page. This channel uses the sign-in of the MiniMax Code desktop client (OAuth device authorization) rather than an official open API, so MiniMax may change or restrict it at any time. Follow MiniMax's terms of service.
351
+
352
+ #### Volcengine (free trial)
353
+
354
+ Every Volcengine account gets a [free inference quota](https://www.volcengine.com/docs/82379/1399514) for each model (500,000 tokens per model, per the official docs). Turn on worry-free trial mode under Activation Management in the Ark console: calls only use the free quota and pause when it is nearly used up, so you are never charged. Choose the **Volcengine (free trial)** channel and enter your Ark API key. To keep going after the quota runs out, verify your identity and switch to the **Volcengine Doubao** channel or the matching plan channel.
355
+
356
+ ### 🔊 Cloud voice narration
357
+
358
+ Animation narration uses the browser's voice by default (free, but stiff). Admins can switch to cloud TTS (natural, just like a real person) under **Settings → AI → Voice narration**:
359
+
360
+ | Cloud voice | API key | Default model / voice |
361
+ | :--- | :--- | :--- |
362
+ | MiniMax (M Plan recommended) | Shared with the MiniMax channel | `speech-2.8-hd` / `male-qn-jingying` |
363
+ | Qwen (Token Plan recommended) | Shared with the Qwen channel | `qwen-audio-3.0-tts-plus` / `longanlufeng` |
364
+ | Zhipu GLM-TTS (GLM Coding Plan recommended) | Shared with the Zhipu GLM channel | `glm-tts` / `xiaochen` |
365
+ | StepFun (Step Plan recommended) | Shared with the StepFun channel | `stepaudio-2.5-tts` / `qingniandaxuesheng` |
366
+ | Volcengine Doubao Speech (free trial available; resource pack recommended) | Its own Doubao Speech API key | `seed-tts-2.0` / `zh_male_yangguangqingnian_uranus_bigtts` |
367
+ | Volcengine Agent Plan (counts toward the plan) | Shared with the Agent Plan channel | `seed-tts-2.0` / `zh_male_yangguangqingnian_uranus_bigtts` |
368
+ | OpenAI | Optional; leave empty to use the active OpenAI configuration | `gpt-4o-mini-tts` / `cedar` |
369
+
370
+ - The default voice is a young male voice that sounds natural, clear and slightly techy, without a broadcast tone. Model, voice and endpoint can be changed; each field links to the provider's docs or voice list, and **Save and preview** saves first and then reads a sample.
371
+ - The server normalizes speech to about -15 LUFS and caches it as MP3, so each segment is synthesized once. Turning on narration synthesizes the whole animation at once as a background task, animations with generated voice open with narration on, and existing animations can **Regenerate voice**.
372
+ - Synthesized voice is included in data export and import, and the player falls back to the browser's voice if cloud voice fails. Synthesis uses the speech provider's quota and does not count toward the per-user daily AI limit.
373
+
374
+ See [AI configuration · Cloud voice narration](doc/wiki/en/AI-Configuration-en.md#cloud-voice-narration) in the wiki for each provider's API details.
375
+
376
+ ### Model requirements
377
+
378
+ The selected model must meet these requirements, or some features will fail or work poorly:
379
+
380
+ | Requirement | Used by | Notes |
381
+ | :--- | :--- | :--- |
382
+ | **Image input (multimodal)** | Recognizing photos and screenshots, AI redrawing figures, regenerating solutions when an original image exists | Text-only models can only be used with text input; image recognition will fail |
383
+ | **Accurate SVG code** | Question figures, figures in similar questions and exams, SVG animated explanations | These "images" are SVG code written by the model. **No image-generation model is called** and the model does not need to output images; its geometry and SVG animation (SMIL) skills determine the quality of figures and animations |
384
+ | **Long single outputs** | SVG animated explanations (16384-token limit), question recognition with figures (8192-token limit) | A truncated output is retried once with the model's maximum output (the official limit for known models; unknown models try 65536 first and, if the API rejects it, retry with the limit read from the error). With a maximum output below 16K, animated explanations often fail |
385
+ | **Strict output format** | All AI features | Results are parsed from tags such as `<answer_text>` and `<svg_animation>` or from JSON; a mismatch shows an error saying the AI response format is invalid and the model may be incompatible |
386
+ | **Valid LaTeX** | Questions, answers, analyses | Formulas must render in KaTeX; use **Fix LaTeX** on the details page if there are syntax errors |
387
+ | **Strong math reasoning** | Solutions, mistake analysis, difficulty stars, mastery estimates | Reasoning (thinking) models work; their thinking output is ignored. If thinking takes long, administrators can raise **AI Analysis Timeout** in **Settings → General** |
388
+
389
+ ## 🔧 Environment variables
390
+
391
+ The most common variables are below; see the collapsed table and [`.env.example`](.env.example) for the full list. AI settings can also be entered in the web UI after signing in, and those take precedence.
392
+
393
+ | Variable | Description |
394
+ | :--- | :--- |
395
+ | `NEXTAUTH_SECRET` | Session encryption secret; required in production. Generate with `openssl rand -base64 32` |
396
+ | `NEXTAUTH_URL` | The URL users visit, e.g. `http://your-domain:3000` |
397
+ | `DATABASE_URL` | SQLite database path; `file:./dev.db` from source, `file:/app/data/dev.db` in Docker |
398
+ | `AI_PROVIDER` | AI provider, `minimax` by default; see the full list for values |
399
+ | `<PROVIDER>_API_KEY` | The provider's API key, e.g. `MINIMAX_API_KEY`, `QWEN_API_KEY`, `OPENAI_API_KEY` |
400
+ | `TTS_MODE` | How animation narration is voiced, `browser` (browser voice) by default |
401
+ | `ALLOW_REGISTRATION` | Whether sign-ups are open, `false` by default |
402
+ | `AI_DAILY_LIMIT` | Daily AI actions per regular user, `0` (unlimited) by default |
403
+ | `AI_CONCURRENCY_LIMIT` | Concurrent AI calls per model, `5` by default; further calls queue |
404
+
405
+ <details>
406
+ <summary><strong>Full list of environment variables</strong></summary>
407
+
408
+ **Basics**
409
+
410
+ | Variable | Description | Default | Notes |
411
+ | :--- | :--- | :--- | :--- |
412
+ | `DATABASE_URL` | Database URL | Source: `file:./dev.db`; Docker: `file:/app/data/dev.db` | SQLite database path |
413
+ | `NEXTAUTH_SECRET` | Auth secret | None | Encrypts sessions; required in production. Generate with `openssl rand -base64 32` |
414
+ | `NEXTAUTH_URL` | Public URL | None | The URL users visit, e.g. `http://your-domain:3000` |
415
+ | `AUTH_TRUST_HOST` | Trust host header | `true` in the Docker image | When `true`, the URL is inferred from the request; suits Docker and reverse proxies |
416
+ | `LOG_LEVEL` | Log level | `debug` in development / `info` in production | `trace`, `debug`, `info`, `warn`, `error` or `fatal`; see [LOGGING_GUIDE.md](doc/LOGGING_GUIDE.md) (Chinese) |
417
+ | `DEBUG_DB` | SQL logs | `false` | When `true`, logs database queries |
418
+ | `HTTP_PROXY` / `HTTPS_PROXY` | Proxy | None | Proxy for requests to AI services |
419
+ | `ALLOW_REGISTRATION` | Allow sign-ups | `false` | When `true`, registration is open by default; the switch saved by an admin under **Settings → User Management** takes precedence |
420
+ | `AI_DAILY_LIMIT` | Daily AI limit per user | `0` (unlimited) | AI actions each regular user can start per day; admins are not limited. The value saved under **Settings → User Management** takes precedence |
421
+ | `AI_CONCURRENCY_LIMIT` | AI concurrency per model | `5` | How many AI calls the same provider, address and model may run at once (1–100). Further calls wait in a queue, avoiding 429 errors from the provider. The value saved under **Settings → User Management** takes precedence |
422
+ | `TTS_MODE` | How animation narration is voiced | `browser` | `browser` uses the browser's voice; `minimax`, `qwen`, `glm`, `stepfun`, `volcengine`, `volcengine-agent` or `openai` uses a cloud voice with that channel's API key (Doubao Speech uses `VOLCENGINE_TTS_API_KEY`; OpenAI uses the active OpenAI configuration). The value saved under **Settings → AI → Voice narration** takes precedence |
423
+
424
+ **AI** (settings saved in the web UI take precedence over environment variables)
425
+
426
+ | Variable | Description | Default | Notes |
427
+ | :--- | :--- | :--- | :--- |
428
+ | `AI_PROVIDER` | AI provider | `minimax` | `minimax`, `minimax-code`, `glm`, `deepseek`, `kimi`, `qwen`, `stepfun`, `volcengine`, `volcengine-agent`, `volcengine-coding`, `volcengine-free`, `anthropic`, `azure`, `openai` or `gemini` |
429
+ | `MINIMAX_API_KEY` / `MINIMAX_BASE_URL` / `MINIMAX_MODEL` | MiniMax | URL `https://api.minimax.cn/v1`, model `MiniMax-M3.1-Flash` | URL and model are optional |
430
+ | `MINIMAX_CODE_MODEL` | MiniMax Code model | `MiniMax-M3.1-Flash` | The account signs in from the web settings; no API key needed |
431
+ | `MINIMAX_CODE_AUTO_CHECKIN` | MiniMax Code daily auto check-in | `true` | Set to `false` to turn it off |
432
+ | `GLM_API_KEY` / `GLM_BASE_URL` / `GLM_MODEL` | Zhipu GLM | URL `https://open.bigmodel.cn/api/paas/v4`, model `glm-5.3-flash` | URL and model are optional |
433
+ | `DEEPSEEK_API_KEY` / `DEEPSEEK_BASE_URL` / `DEEPSEEK_MODEL` | DeepSeek | URL `https://api.deepseek.com`, model `deepseek-v4-flash` | URL and model are optional |
434
+ | `KIMI_API_KEY` / `KIMI_BASE_URL` / `KIMI_MODEL` | Kimi | URL `https://api.moonshot.cn/v1`, model `kimi-k3.1-pro` | URL and model are optional |
435
+ | `QWEN_API_KEY` / `QWEN_BASE_URL` / `QWEN_MODEL` | Qwen | URL `https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1` (Model Studio Token Plan), model `qwen3.8-max` | Pay-as-you-go keys use `https://dashscope.aliyuncs.com/compatible-mode/v1` |
436
+ | `STEPFUN_API_KEY` / `STEPFUN_BASE_URL` / `STEPFUN_MODEL` | StepFun | URL `https://api.stepfun.com/step_plan/v1` (Step Plan), model `step-5-preview` | Pay-as-you-go keys use `https://api.stepfun.com/v1`; international `https://api.stepfun.ai/v1` |
437
+ | `VOLCENGINE_API_KEY` / `VOLCENGINE_BASE_URL` / `VOLCENGINE_MODEL` | Volcengine Doubao | URL `https://ark.cn-beijing.volces.com/api/v3`, model `doubao-seed-evolving` | Pay-as-you-go; with an Agent Plan or similar subscription, choose the matching plan channel; international `https://ark.ap-southeast.bytepluses.com/api/v3` |
438
+ | `VOLCENGINE_AGENT_API_KEY` / `VOLCENGINE_AGENT_BASE_URL` / `VOLCENGINE_AGENT_MODEL` | Volcengine Agent Plan | URL `https://ark.cn-beijing.volces.com/api/plan/v3`, model `doubao-seed-evolving` | The plan's dedicated API key from the Agent Plan page; the plan includes Doubao speech synthesis |
439
+ | `VOLCENGINE_CODING_API_KEY` / `VOLCENGINE_CODING_BASE_URL` / `VOLCENGINE_CODING_MODEL` | Volcengine Coding Plan | URL `https://ark.cn-beijing.volces.com/api/coding/v3`, model `doubao-seed-evolving` | Ark API key; do not change it to `/api/v3` (not counted toward the plan); the plan does not include speech synthesis |
440
+ | `VOLCENGINE_FREE_API_KEY` / `VOLCENGINE_FREE_BASE_URL` / `VOLCENGINE_FREE_MODEL` | Volcengine (free trial) | URL `https://ark.cn-beijing.volces.com/api/v3`, model `doubao-seed-evolving` | Free inference quota for new users; with worry-free trial mode on, calls pause when it runs out |
441
+ | `VOLCENGINE_TTS_API_KEY` | Doubao Speech API key | None | Used when cloud voice is Volcengine Doubao Speech; different from the Volcengine Ark key |
442
+ | `ANTHROPIC_API_KEY` | Anthropic API key | None | From the [Claude Console](https://platform.claude.com/) |
443
+ | `ANTHROPIC_BASE_URL` | API URL | `https://api.anthropic.com` | For compatible services, use the URL without `/v1` |
444
+ | `ANTHROPIC_MODEL` | Model | `claude-sonnet-5-5` | e.g. `claude-opus-5-5`, `claude-haiku-5-5` |
445
+ | `AZURE_OPENAI_API_KEY` | Azure API key | None | From the Azure portal |
446
+ | `AZURE_OPENAI_ENDPOINT` | Azure endpoint | None | e.g. `https://xxx.openai.azure.com` |
447
+ | `AZURE_OPENAI_DEPLOYMENT` | Deployment name | None | The deployment name configured in Azure |
448
+ | `AZURE_OPENAI_API_VERSION` | API version | `2024-02-15-preview` | |
449
+ | `AZURE_OPENAI_MODEL` | Model name | `gpt-4o` | Display only |
450
+ | `OPENAI_API_KEY` | OpenAI API key | None | From [OpenAI Platform](https://platform.openai.com/api-keys) |
451
+ | `OPENAI_BASE_URL` | OpenAI API URL | `https://api.openai.com/v1` | Set to the provider's URL for compatible services |
452
+ | `OPENAI_MODEL` | OpenAI model | `gpt-6.1-sol` | For compatible services, use the platform's model ID |
453
+ | `GOOGLE_API_KEY` | Gemini API key | None | From [Google AI Studio](https://aistudio.google.com/apikey) |
454
+ | `GEMINI_BASE_URL` | Gemini API URL | Official URL | Usually unchanged |
455
+ | `GEMINI_MODEL` | Gemini model | `gemini-2.5-flash` | `gemini-3.8-flash` recommended |
456
+
457
+ **Openclaw integration** (optional)
458
+
459
+ | Variable | Description | Default | Notes |
460
+ | :--- | :--- | :--- | :--- |
461
+ | `OPENCLAW_API_URL` | Openclaw agent URL | None | URL of your local Openclaw agent |
462
+ | `OPENCLAW_API_KEY` | Openclaw API key | None | Used when calling the Openclaw agent |
463
+ | `OPENCLAW_TIMEOUT` | Timeout (ms) | `30000` | |
464
+ | `OPENCLAW_AUTH_MODE` | Auth mode | `credentials` | `credentials` (username and password) or `apikey` |
465
+ | `OPENCLAW_INTEGRATION_API_KEY` | This app's API key | None | Only for `apikey` mode, used by Openclaw to call this app. Generate with `openssl rand -hex 32` |
466
+
467
+ When adding environment variables, update `.env.example` as well.
468
+
469
+ </details>
470
+
471
+ ## 📚 More
472
+
473
+ ### PWA (add to home screen)
474
+
475
+ Add the app to your phone's or tablet's home screen to run it full screen and open it with one tap. Tablets can use it in landscape.
476
+
477
+ - **iPhone / iPad (Safari)**: tap **Share** at the bottom → **Add to Home Screen**.
478
+ - **Android (Chrome)**: tap the **menu** at the top right → **Add to Home screen** or **Install app**. You can also install the [Android app](#option-1-installers-windows--macos--linux--fnos--android--npm).
479
+
480
+ When served over HTTPS (or `localhost`), a service worker caches scripts, styles and icons so the app opens faster, and shows an offline page when the network is down. Questions, statistics and other data always come from the server and are not cached offline.
481
+
482
+ ### Screen capture (HTTPS required)
483
+
484
+ Screen capture requires a secure browser context (HTTPS). When running in Docker or on a LAN, follow the **[HTTPS setup guide](doc/HTTPS_SETUP.md)** (Chinese) to enable the built-in HTTPS support.
485
+
486
+ ### Tech stack
487
+
488
+ - **Framework**: [Next.js 16](https://nextjs.org/) (App Router) + [React 19](https://react.dev/) + TypeScript
489
+ - **Database**: [SQLite](https://www.sqlite.org/) (via [Prisma 5](https://www.prisma.io/))
490
+ - **Styling**: [Tailwind CSS v4](https://tailwindcss.com/) + [Radix UI](https://www.radix-ui.com/) (shadcn/ui-style components)
491
+ - **Formulas**: [KaTeX](https://katex.org/) (react-markdown + remark-math)
492
+ - **AI**: MiniMax / MiniMax Code (browser sign-in) / Zhipu GLM / DeepSeek / Kimi / Qwen / StepFun / Volcengine Doubao (including Agent Plan, Coding Plan and a free trial) / Anthropic (and compatible APIs) / Azure OpenAI / OpenAI (and compatible APIs) / Google Gemini
493
+ - **Auth**: [NextAuth.js v4](https://next-auth.js.org/)
494
+ - **Testing**: Vitest (unit, integration), Playwright (E2E)
495
+
496
+ ### Development and testing
497
+
498
+ ```bash
499
+ npm run lint # ESLint (fails on any warning)
500
+ npm run test:unit # Unit tests
501
+ npm run test:integration # Integration tests
502
+ npm test # All Vitest tests
503
+ npm run test:coverage # Test coverage (fails below the minimum thresholds)
504
+ npm run test:e2e # Playwright E2E (run node scripts/prepare-e2e.js first to set up test accounts)
505
+ bash scripts/ci.sh # Full CI (Node.js 22+, Python 3, includes production build)
506
+ ```
507
+
508
+ After changing `prisma/schema.prisma`, create a migration with `npx prisma migrate dev --name <name>` and commit it; migrations must be compatible with existing data. See [AGENTS.md](AGENTS.md) for more development conventions.
509
+
510
+ ### Utility scripts
511
+
512
+ The `scripts/` directory contains maintenance and debugging scripts, for example:
513
+
514
+ - **Reset a password**: `node scripts/reset-password.js <email> <new-password>`
515
+ - **Restore the default admin role**: `node scripts/seed-admin.js` (only restores the admin role and re-enables an existing `admin@localhost`; when no admin exists, restarting the server prints a new setup link in the log)
516
+ - **Rebuild system knowledge points**: `npx ts-node --compiler-options '{"module":"CommonJS"}' scripts/rebuild-system-tags.ts` (keeps custom tags and question links; back up before running in production)
517
+ - **Inspect the database**: `node scripts/check-db-users.js`, `node scripts/check-db-data.js`
518
+
519
+ ### Documentation
520
+
521
+ For usage, deployment and FAQ, see the [Wiki in English](https://github.com/margrop/wrong-notebook/wiki/Home-en) (also available in [Chinese](https://github.com/margrop/wrong-notebook/wiki)). The topic documents below are mostly written in Simplified Chinese.
522
+
523
+ | Document | Content |
524
+ | :--- | :--- |
525
+ | [INSTALL_PACKAGES.md](doc/INSTALL_PACKAGES.md) | npm, desktop, fnOS and Android packages and builds |
526
+ | [HTTPS_SETUP.md](doc/HTTPS_SETUP.md) | HTTPS setup (needed for screen capture) |
527
+ | [TIME_ZONE.md](doc/TIME_ZONE.md) | Application time zone |
528
+ | [LOGGING_GUIDE.md](doc/LOGGING_GUIDE.md) | Logging |
529
+ | [MARKDOWN_GUIDE.md](doc/MARKDOWN_GUIDE.md) | Markdown and formulas |
530
+ | [TABLE_RECOGNITION.md](doc/TABLE_RECOGNITION.md) | Table recognition |
531
+ | [PROJECT_OVERVIEW.md](doc/PROJECT_OVERVIEW.md), [operational_flow.md](doc/operational_flow.md) | Project structure and workflows (partly predates features added in this repository) |
532
+ | [release-guide.md](doc/release-guide.md) | Releasing |
533
+ | [BRANCH_WORKFLOW.md](doc/BRANCH_WORKFLOW.md) | Public mainline and pre-push checks |
534
+ | [setup-wsl-network.md](doc/setup-wsl-network.md) | WSL networking |
535
+
536
+ ## 💬 Community and contributing
537
+
538
+ To ask questions, share how you use the app or suggest ideas, join the QQ group **964325781** (conversations are mainly in Chinese), or scan the QR code below with QQ. Please still report bugs and feature requests in [Issues](https://github.com/margrop/wrong-notebook/issues) so they can be tracked. Before posting screenshots, hide your child's name, school, account details and server addresses.
539
+
540
+ <img src="doc/images/qq-group.webp" alt="QR code for the wrong-notebook QQ user group, group number 964325781" width="240">
541
+
542
+ You can also follow the author on X at [@MargropMe](https://x.com/MargropMe) for updates or to send a message.
543
+
544
+ Issues and pull requests are welcome. Please read the [contributing guide](CONTRIBUTING.md) (Chinese) and the [code of conduct](CODE_OF_CONDUCT.md). For questions and bug reports, see [getting help](SUPPORT.md). Report security vulnerabilities privately as described in the [security policy](SECURITY.md). See the [changelog](CHANGELOG.md) (Chinese) for changes in each stable release.
545
+
546
+ ## 📄 License
547
+
548
+ [MIT License](LICENSE)
549
+
550
+ © 2026 margrop. This project extends [wttwins/wrong-notebook](https://github.com/wttwins/wrong-notebook); copyright in the original code remains with its author.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrong-notebook",
3
- "version": "2026.10.31",
3
+ "version": "2026.11.1-2",
4
4
  "description": "错题本:上传题目图片,由 AI 识别、解析并标注知识点,支持练习、统计与打印导出",
5
5
  "keywords": [
6
6
  "wrong-notebook",
@@ -0,0 +1,16 @@
1
+ -- 仅新增索引:按用户查询错题、科目、练习记录,以及按错题查复习计划
2
+ -- CreateIndex
3
+ CREATE INDEX "ErrorItem_userId_createdAt_idx" ON "ErrorItem"("userId", "createdAt");
4
+
5
+ -- CreateIndex
6
+ CREATE INDEX "ErrorItem_subjectId_idx" ON "ErrorItem"("subjectId");
7
+
8
+ -- CreateIndex
9
+ CREATE INDEX "PracticeRecord_userId_createdAt_idx" ON "PracticeRecord"("userId", "createdAt");
10
+
11
+ -- CreateIndex
12
+ CREATE INDEX "ReviewSchedule_errorItemId_idx" ON "ReviewSchedule"("errorItemId");
13
+
14
+ -- CreateIndex
15
+ CREATE INDEX "Subject_userId_idx" ON "Subject"("userId");
16
+
@@ -0,0 +1,2 @@
1
+ -- 仅新增列:用户界面主题偏好(system 跟随系统、light 浅色、dark 深色),默认跟随系统,不影响已有数据。
2
+ ALTER TABLE "User" ADD COLUMN "themePreference" TEXT NOT NULL DEFAULT 'system';
@@ -0,0 +1,3 @@
1
+ -- 仅追加账户偏好字段,保留全部账户、错题与关联数据。
2
+ ALTER TABLE "User" ADD COLUMN "gradeRecognitionMode" TEXT NOT NULL DEFAULT 'fixed';
3
+ ALTER TABLE "User" ADD COLUMN "fixedGradeSemester" TEXT;