@vue-skuilder/db 0.2.1 → 0.2.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.
- package/dist/core/index.js +74 -20
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +74 -20
- package/dist/core/index.mjs.map +1 -1
- package/dist/impl/couch/index.d.cts +32 -0
- package/dist/impl/couch/index.d.ts +32 -0
- package/dist/impl/couch/index.js +74 -20
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +74 -20
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.js +2 -4
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +2 -4
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.js +74 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -20
- package/dist/index.mjs.map +1 -1
- package/docs/session-lifecycle-and-replan.md +418 -0
- package/package.json +3 -3
- package/src/core/navigators/Pipeline.ts +4 -0
- package/src/core/navigators/generators/elo.ts +19 -6
- package/src/core/navigators/generators/srs.ts +10 -0
- package/src/impl/couch/courseDB.ts +146 -17
- package/src/study/SessionController.ts +33 -0
- package/src/study/services/CardHydrationService.ts +24 -0
|
@@ -1608,10 +1608,8 @@ var init_elo = __esm({
|
|
|
1608
1608
|
{ limit, elo: "user" },
|
|
1609
1609
|
(c) => !activeCards.some((ac) => c.cardID === ac.cardID)
|
|
1610
1610
|
)).map((c) => ({ ...c, status: "new" }));
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
const scored = newCards.map((c, i) => {
|
|
1614
|
-
const cardElo = cardEloData[i]?.global?.score ?? 1e3;
|
|
1611
|
+
const scored = newCards.map((c) => {
|
|
1612
|
+
const cardElo = c.elo ?? 1e3;
|
|
1615
1613
|
const distance = Math.abs(cardElo - userGlobalElo);
|
|
1616
1614
|
const rawScore = Math.max(0, 1 - distance / 500);
|
|
1617
1615
|
const samplingKey = rawScore > 0 ? Math.random() ** (1 / rawScore) : 0;
|