@vue-skuilder/db 0.2.22 → 0.2.23
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-B1pqryv6.d.ts → contentSource-BvOpKUeU.d.ts} +362 -79
- package/dist/{contentSource-CpTxVrFx.d.cts → contentSource-DT9NaX69.d.cts} +362 -79
- package/dist/core/index.d.cts +84 -352
- package/dist/core/index.d.ts +84 -352
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-BZqH27f4.d.ts → dataLayerProvider-CY2B2lyW.d.ts} +1 -1
- package/dist/{dataLayerProvider-D4c7iUc_.d.cts → dataLayerProvider-wY6s_4x9.d.cts} +1 -1
- package/dist/impl/couch/index.d.cts +3 -3
- package/dist/impl/couch/index.d.ts +3 -3
- package/dist/impl/couch/index.js.map +1 -1
- 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.map +1 -1
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/{index-rmNIwnkV.d.ts → index-BkBJlGDX.d.ts} +1 -1
- package/dist/{index-DGApnUZ-.d.cts → index-D7WdMDAs.d.cts} +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{types-r6fyuWP2.d.cts → types-DjiFOZxJ.d.cts} +1 -1
- package/dist/{types-legacy-BytY5eAR.d.cts → types-legacy-CrwyZIvI.d.cts} +1 -1
- package/dist/{types-legacy-BytY5eAR.d.ts → types-legacy-CrwyZIvI.d.ts} +1 -1
- package/dist/{types-B-Y3aoi5.d.ts → types-uJ2Xn3_X.d.ts} +1 -1
- package/dist/util/packer/index.d.cts +3 -3
- package/dist/util/packer/index.d.ts +3 -3
- package/package.json +3 -3
- package/src/core/types/studySession.ts +25 -0
- package/src/study/SessionController.ts +9 -0
|
@@ -165,4 +165,4 @@ interface QuestionRecord extends CardRecord, Evaluation {
|
|
|
165
165
|
priorAttemps: number;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export { type CardHistory as C, DocType as D, type Field as F, GuestUsername as G, type QualifiedCardID as Q, type SkuilderCourseData as S, type TagStub as T, type Tag as a,
|
|
168
|
+
export { type CardHistory as C, DocType as D, type Field as F, GuestUsername as G, type QualifiedCardID as Q, type SkuilderCourseData as S, type TagStub as T, type Tag as a, type CardRecord as b, type QuestionRecord as c, type CardData as d, type CourseListData as e, type DisplayableData as f, type DataShapeData as g, type QuestionData as h, DocTypePrefixes as i, log as l };
|
|
@@ -165,4 +165,4 @@ interface QuestionRecord extends CardRecord, Evaluation {
|
|
|
165
165
|
priorAttemps: number;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export { type CardHistory as C, DocType as D, type Field as F, GuestUsername as G, type QualifiedCardID as Q, type SkuilderCourseData as S, type TagStub as T, type Tag as a,
|
|
168
|
+
export { type CardHistory as C, DocType as D, type Field as F, GuestUsername as G, type QualifiedCardID as Q, type SkuilderCourseData as S, type TagStub as T, type Tag as a, type CardRecord as b, type QuestionRecord as c, type CardData as d, type CourseListData as e, type DisplayableData as f, type DataShapeData as g, type QuestionData as h, DocTypePrefixes as i, log as l };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig, S as StaticCourseManifest } from '../../types-
|
|
2
|
-
export { C as CouchDBToStaticPacker } from '../../index-
|
|
1
|
+
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig, S as StaticCourseManifest } from '../../types-DjiFOZxJ.cjs';
|
|
2
|
+
export { C as CouchDBToStaticPacker } from '../../index-D7WdMDAs.cjs';
|
|
3
3
|
import '@vue-skuilder/common';
|
|
4
|
-
import '../../types-legacy-
|
|
4
|
+
import '../../types-legacy-CrwyZIvI.cjs';
|
|
5
5
|
import 'moment';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig, S as StaticCourseManifest } from '../../types-
|
|
2
|
-
export { C as CouchDBToStaticPacker } from '../../index-
|
|
1
|
+
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig, S as StaticCourseManifest } from '../../types-uJ2Xn3_X.js';
|
|
2
|
+
export { C as CouchDBToStaticPacker } from '../../index-BkBJlGDX.js';
|
|
3
3
|
import '@vue-skuilder/common';
|
|
4
|
-
import '../../types-legacy-
|
|
4
|
+
import '../../types-legacy-CrwyZIvI.js';
|
|
5
5
|
import 'moment';
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.2.
|
|
7
|
+
"version": "0.2.23",
|
|
8
8
|
"description": "Database layer for vue-skuilder",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/index.mjs",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@nilock2/pouchdb-authentication": "^1.0.2",
|
|
51
|
-
"@vue-skuilder/common": "0.2.
|
|
51
|
+
"@vue-skuilder/common": "0.2.23",
|
|
52
52
|
"cross-fetch": "^4.1.0",
|
|
53
53
|
"moment": "^2.29.4",
|
|
54
54
|
"pouchdb": "^9.0.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"vite": "^8.0.0",
|
|
64
64
|
"vitest": "^4.1.0"
|
|
65
65
|
},
|
|
66
|
-
"stableVersion": "0.2.
|
|
66
|
+
"stableVersion": "0.2.23"
|
|
67
67
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocType, DocTypePrefixes } from './types-legacy';
|
|
2
2
|
import type { ReplanHints } from '../navigators/generators/types';
|
|
3
|
+
import type { GeneratorSummary, FilterImpact } from '../navigators/PipelineDebugger';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Durable per-sitting record. Join target for `CardRecord.sessionId`.
|
|
@@ -69,6 +70,30 @@ export interface StudySessionRunSummary {
|
|
|
69
70
|
finalCount: number;
|
|
70
71
|
reviewsSelected: number;
|
|
71
72
|
newSelected: number;
|
|
73
|
+
|
|
74
|
+
// --- Detail projected from PipelineRunReport at record time ------------
|
|
75
|
+
// These make a run self-explanatory after the in-memory ring buffer that
|
|
76
|
+
// holds the full `PipelineRunReport` has rolled over (MAX_RUNS=10) — which
|
|
77
|
+
// is almost always, by the time anyone reads a persisted session. The
|
|
78
|
+
// multi-KB per-card provenance trail is deliberately NOT persisted; only
|
|
79
|
+
// the compact phase summaries are. All optional: absent on runs recorded
|
|
80
|
+
// before this shipped, and on any run whose report lacked the field.
|
|
81
|
+
|
|
82
|
+
/** User's global ELO at the moment this run's pipeline executed. */
|
|
83
|
+
userElo?: number;
|
|
84
|
+
/** Per-generator contribution (name, card/new/review counts, top score). */
|
|
85
|
+
generators?: GeneratorSummary[];
|
|
86
|
+
/** Per-filter impact (boosted / penalized / passed / removed). */
|
|
87
|
+
filters?: FilterImpact[];
|
|
88
|
+
/** Ephemeral replan hints in force for this run (what the navigator was told). */
|
|
89
|
+
hints?: ReplanHints;
|
|
90
|
+
/** Compact summary of the scored-but-dropped candidate tail. */
|
|
91
|
+
discardedTail?: {
|
|
92
|
+
count: number;
|
|
93
|
+
scoreRange?: [number, number];
|
|
94
|
+
eloRange?: [number, number];
|
|
95
|
+
note: string;
|
|
96
|
+
};
|
|
72
97
|
}
|
|
73
98
|
|
|
74
99
|
/**
|
|
@@ -562,6 +562,15 @@ export class SessionController<TView = unknown> extends Loggable {
|
|
|
562
562
|
finalCount: run.finalCount,
|
|
563
563
|
reviewsSelected: run.reviewsSelected,
|
|
564
564
|
newSelected: run.newSelected,
|
|
565
|
+
// Compact detail projected off the full report so a persisted run is
|
|
566
|
+
// self-explanatory once the in-memory ring buffer has rolled over.
|
|
567
|
+
// Per-card provenance (`run.cards`) is intentionally left out — it's
|
|
568
|
+
// the dominant memory cost and not worth persisting per run.
|
|
569
|
+
...(typeof run.userElo === 'number' ? { userElo: run.userElo } : {}),
|
|
570
|
+
...(run.generators ? { generators: run.generators } : {}),
|
|
571
|
+
...(run.filters ? { filters: run.filters } : {}),
|
|
572
|
+
...(run.hints ? { hints: run.hints } : {}),
|
|
573
|
+
...(run.discardedTail ? { discardedTail: run.discardedTail } : {}),
|
|
565
574
|
});
|
|
566
575
|
}
|
|
567
576
|
}
|