@vue-skuilder/db 0.2.1 → 0.2.3
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/{contentSource-Ht3N2f-y.d.ts → contentSource-Cplhv3bJ.d.ts} +1 -1
- package/dist/{contentSource-BMlMwSiG.d.cts → contentSource-kI9_jwTu.d.cts} +1 -1
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +76 -21
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +76 -21
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-BEqB8VBR.d.cts → dataLayerProvider-CiA2Rr0v.d.cts} +1 -1
- package/dist/{dataLayerProvider-DObSXjnf.d.ts → dataLayerProvider-DrBqOUa3.d.ts} +1 -1
- package/dist/impl/couch/index.d.cts +35 -3
- package/dist/impl/couch/index.d.ts +35 -3
- package/dist/impl/couch/index.js +76 -21
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +76 -21
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.d.cts +4 -4
- package/dist/impl/static/index.d.ts +4 -4
- package/dist/impl/static/index.js +4 -5
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +4 -5
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/{index-BWvO-_rJ.d.ts → index-BLLT5BYE.d.ts} +1 -1
- package/dist/{index-Ba7hYbHj.d.cts → index-k9NFHpS1.d.cts} +1 -1
- package/dist/index.d.cts +164 -10
- package/dist/index.d.ts +164 -10
- package/dist/index.js +215 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +215 -28
- package/dist/index.mjs.map +1 -1
- package/dist/{types-W8n-B6HG.d.cts → types-BFUa1pa3.d.cts} +1 -1
- package/dist/{types-CJrLM1Ew.d.ts → types-CHgpWQAY.d.ts} +1 -1
- package/dist/{types-legacy-JXDxinpU.d.cts → types-legacy-4tlwHnXo.d.cts} +1 -1
- package/dist/{types-legacy-JXDxinpU.d.ts → types-legacy-4tlwHnXo.d.ts} +1 -1
- package/dist/util/packer/index.d.cts +3 -3
- package/dist/util/packer/index.d.ts +3 -3
- package/docs/session-lifecycle-and-replan.md +418 -0
- package/package.json +3 -3
- package/src/core/navigators/Pipeline.ts +5 -1
- 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 +295 -13
- 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;
|
|
@@ -3589,7 +3587,8 @@ var init_orchestration = __esm({
|
|
|
3589
3587
|
// src/core/navigators/Pipeline.ts
|
|
3590
3588
|
var Pipeline_exports = {};
|
|
3591
3589
|
__export(Pipeline_exports, {
|
|
3592
|
-
Pipeline: () => Pipeline
|
|
3590
|
+
Pipeline: () => Pipeline,
|
|
3591
|
+
mergeHints: () => mergeHints2
|
|
3593
3592
|
});
|
|
3594
3593
|
import { toCourseElo as toCourseElo5 } from "@vue-skuilder/common";
|
|
3595
3594
|
function globToRegex(pattern) {
|