@vue-skuilder/db 0.2.35 → 0.2.36
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/CLAUDE.md +15 -4
- package/build.entries.mjs +12 -0
- package/dist/_virtual/_rolldown/runtime.mjs +8 -0
- package/dist/{contentSource-BteiDpxH.d.ts → contentSource-D_E7JaxR.d.ts} +1 -1
- package/dist/core/UserDBDebugger.mjs +285 -0
- package/dist/core/UserDBDebugger.mjs.map +1 -0
- package/dist/core/bulkImport/cardProcessor.mjs +106 -0
- package/dist/core/bulkImport/cardProcessor.mjs.map +1 -0
- package/dist/core/{index.js → index.cjs} +6438 -7784
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.mjs +20 -11368
- package/dist/core/interfaces/contentSource.mjs +20 -0
- package/dist/core/interfaces/contentSource.mjs.map +1 -0
- package/dist/core/navigators/Pipeline.mjs +723 -0
- package/dist/core/navigators/Pipeline.mjs.map +1 -0
- package/dist/core/navigators/PipelineAssembler.mjs +86 -0
- package/dist/core/navigators/PipelineAssembler.mjs.map +1 -0
- package/dist/core/navigators/PipelineDebugger.mjs +771 -0
- package/dist/core/navigators/PipelineDebugger.mjs.map +1 -0
- package/dist/core/navigators/SrsDebugger.mjs +34 -0
- package/dist/core/navigators/SrsDebugger.mjs.map +1 -0
- package/dist/core/navigators/StrategyPressureDebugger.mjs +19 -0
- package/dist/core/navigators/StrategyPressureDebugger.mjs.map +1 -0
- package/dist/core/navigators/defaults.mjs +96 -0
- package/dist/core/navigators/defaults.mjs.map +1 -0
- package/dist/core/navigators/diversityRerank.mjs +85 -0
- package/dist/core/navigators/diversityRerank.mjs.map +1 -0
- package/dist/core/navigators/filters/WeightedFilter.mjs +81 -0
- package/dist/core/navigators/filters/WeightedFilter.mjs.map +1 -0
- package/dist/core/navigators/filters/eloDistance.mjs +244 -0
- package/dist/core/navigators/filters/eloDistance.mjs.map +1 -0
- package/dist/core/navigators/filters/hierarchyDefinition.mjs +235 -0
- package/dist/core/navigators/filters/hierarchyDefinition.mjs.map +1 -0
- package/dist/core/navigators/filters/interferenceMitigator.mjs +201 -0
- package/dist/core/navigators/filters/interferenceMitigator.mjs.map +1 -0
- package/dist/core/navigators/filters/relativePriority.mjs +135 -0
- package/dist/core/navigators/filters/relativePriority.mjs.map +1 -0
- package/dist/core/navigators/filters/userTagPreference.mjs +101 -0
- package/dist/core/navigators/filters/userTagPreference.mjs.map +1 -0
- package/dist/core/navigators/generators/CompositeGenerator.mjs +203 -0
- package/dist/core/navigators/generators/CompositeGenerator.mjs.map +1 -0
- package/dist/core/navigators/generators/elo.mjs +77 -0
- package/dist/core/navigators/generators/elo.mjs.map +1 -0
- package/dist/core/navigators/generators/prescribed.mjs +676 -0
- package/dist/core/navigators/generators/prescribed.mjs.map +1 -0
- package/dist/core/navigators/generators/srs.mjs +158 -0
- package/dist/core/navigators/generators/srs.mjs.map +1 -0
- package/dist/core/navigators/index.mjs +345 -0
- package/dist/core/navigators/index.mjs.map +1 -0
- package/dist/core/navigators/pipelinePlan.mjs +109 -0
- package/dist/core/navigators/pipelinePlan.mjs.map +1 -0
- package/dist/core/navigators/regulators.mjs +128 -0
- package/dist/core/navigators/regulators.mjs.map +1 -0
- package/dist/core/orchestration/gradient.mjs +101 -0
- package/dist/core/orchestration/gradient.mjs.map +1 -0
- package/dist/core/orchestration/index.mjs +115 -0
- package/dist/core/orchestration/index.mjs.map +1 -0
- package/dist/core/orchestration/learning.mjs +140 -0
- package/dist/core/orchestration/learning.mjs.map +1 -0
- package/dist/core/orchestration/recording.mjs +64 -0
- package/dist/core/orchestration/recording.mjs.map +1 -0
- package/dist/core/orchestration/signal.mjs +40 -0
- package/dist/core/orchestration/signal.mjs.map +1 -0
- package/dist/core/types/contentNavigationStrategy.mjs +10 -0
- package/dist/core/types/contentNavigationStrategy.mjs.map +1 -0
- package/dist/core/types/hydration.mjs +13 -0
- package/dist/core/types/hydration.mjs.map +1 -0
- package/dist/core/types/strategyState.mjs +16 -0
- package/dist/core/types/strategyState.mjs.map +1 -0
- package/dist/core/types/studySession.mjs +14 -0
- package/dist/core/types/studySession.mjs.map +1 -0
- package/dist/core/types/types-legacy.mjs +44 -0
- package/dist/core/types/types-legacy.mjs.map +1 -0
- package/dist/core/util/index.mjs +31 -0
- package/dist/core/util/index.mjs.map +1 -0
- package/dist/core/versionStamps.mjs +46 -0
- package/dist/core/versionStamps.mjs.map +1 -0
- package/dist/courseConfigRegistration.mjs +306 -0
- package/dist/courseConfigRegistration.mjs.map +1 -0
- package/dist/{dataLayerProvider-C_QWzHf-.d.ts → dataLayerProvider-BDshhSp_.d.ts} +1 -1
- package/dist/diagnostics/dataset.mjs +118 -0
- package/dist/diagnostics/dataset.mjs.map +1 -0
- package/dist/diagnostics/derive.mjs +318 -0
- package/dist/diagnostics/derive.mjs.map +1 -0
- package/dist/diagnostics/{index.js → index.cjs} +1 -1
- package/dist/diagnostics/index.d.ts +3 -3
- package/dist/diagnostics/index.mjs +7 -1042
- package/dist/diagnostics/loader.mjs +151 -0
- package/dist/diagnostics/loader.mjs.map +1 -0
- package/dist/diagnostics/pipeline.mjs +161 -0
- package/dist/diagnostics/pipeline.mjs.map +1 -0
- package/dist/diagnostics/tagElo.mjs +177 -0
- package/dist/diagnostics/tagElo.mjs.map +1 -0
- package/dist/diagnostics/text.mjs +174 -0
- package/dist/diagnostics/text.mjs.map +1 -0
- package/dist/factory.mjs +70 -0
- package/dist/factory.mjs.map +1 -0
- package/dist/impl/common/BaseUserDB.mjs +1103 -0
- package/dist/impl/common/BaseUserDB.mjs.map +1 -0
- package/dist/impl/common/userDBHelpers.mjs +49 -0
- package/dist/impl/common/userDBHelpers.mjs.map +1 -0
- package/dist/impl/common/userDBKeys.mjs +45 -0
- package/dist/impl/common/userDBKeys.mjs.map +1 -0
- package/dist/impl/couch/CouchDBSyncStrategy.mjs +272 -0
- package/dist/impl/couch/CouchDBSyncStrategy.mjs.map +1 -0
- package/dist/impl/couch/CourseSyncService.mjs +242 -0
- package/dist/impl/couch/CourseSyncService.mjs.map +1 -0
- package/dist/impl/couch/PouchDataLayerProvider.mjs +74 -0
- package/dist/impl/couch/PouchDataLayerProvider.mjs.map +1 -0
- package/dist/impl/couch/adminDB.mjs +61 -0
- package/dist/impl/couch/adminDB.mjs.map +1 -0
- package/dist/impl/couch/auth.mjs +33 -0
- package/dist/impl/couch/auth.mjs.map +1 -0
- package/dist/impl/couch/classroomDB.mjs +227 -0
- package/dist/impl/couch/classroomDB.mjs.map +1 -0
- package/dist/impl/couch/clientCache.mjs +15 -0
- package/dist/impl/couch/clientCache.mjs.map +1 -0
- package/dist/impl/couch/courseAPI.mjs +183 -0
- package/dist/impl/couch/courseAPI.mjs.map +1 -0
- package/dist/impl/couch/courseDB.mjs +729 -0
- package/dist/impl/couch/courseDB.mjs.map +1 -0
- package/dist/impl/couch/courseLookupDB.mjs +94 -0
- package/dist/impl/couch/courseLookupDB.mjs.map +1 -0
- package/dist/impl/couch/{index.js → index.cjs} +6911 -10367
- package/dist/impl/couch/index.cjs.map +1 -0
- package/dist/impl/couch/index.d.ts +12 -5
- package/dist/impl/couch/index.mjs +134 -12146
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/couch/pouchdb-setup.mjs +15 -0
- package/dist/impl/couch/pouchdb-setup.mjs.map +1 -0
- package/dist/impl/couch/updateQueue.mjs +101 -0
- package/dist/impl/couch/updateQueue.mjs.map +1 -0
- package/dist/impl/couch/user-course-relDB.mjs +55 -0
- package/dist/impl/couch/user-course-relDB.mjs.map +1 -0
- package/dist/impl/static/NoOpSyncStrategy.mjs +49 -0
- package/dist/impl/static/NoOpSyncStrategy.mjs.map +1 -0
- package/dist/impl/static/StaticDataLayerProvider.mjs +94 -0
- package/dist/impl/static/StaticDataLayerProvider.mjs.map +1 -0
- package/dist/impl/static/StaticDataUnpacker.mjs +311 -0
- package/dist/impl/static/StaticDataUnpacker.mjs.map +1 -0
- package/dist/impl/static/courseDB.mjs +368 -0
- package/dist/impl/static/courseDB.mjs.map +1 -0
- package/dist/impl/static/coursesDB.mjs +38 -0
- package/dist/impl/static/coursesDB.mjs.map +1 -0
- package/dist/impl/static/{index.js → index.cjs} +2461 -5992
- package/dist/impl/static/index.cjs.map +1 -0
- package/dist/impl/static/index.d.ts +4 -4
- package/dist/impl/static/index.mjs +6 -10741
- package/dist/{index-C745YB_6.d.ts → index-BLDpFYG3.d.ts} +1 -1
- package/dist/{index.js → index.cjs} +14070 -14239
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +12 -23
- package/dist/index.mjs +38 -16937
- package/dist/pouch/{index.js → index.cjs} +5 -1
- package/dist/pouch/index.cjs.map +1 -0
- package/dist/pouch/index.mjs +2 -19
- package/dist/study/ItemQueue.mjs +95 -0
- package/dist/study/ItemQueue.mjs.map +1 -0
- package/dist/study/MixerDebugger.mjs +303 -0
- package/dist/study/MixerDebugger.mjs.map +1 -0
- package/dist/study/SessionController.mjs +1187 -0
- package/dist/study/SessionController.mjs.map +1 -0
- package/dist/study/SessionDebugger.mjs +271 -0
- package/dist/study/SessionDebugger.mjs.map +1 -0
- package/dist/study/SessionOverlay.mjs +407 -0
- package/dist/study/SessionOverlay.mjs.map +1 -0
- package/dist/study/SourceMixer.mjs +45 -0
- package/dist/study/SourceMixer.mjs.map +1 -0
- package/dist/study/SpacedRepetition.mjs +108 -0
- package/dist/study/SpacedRepetition.mjs.map +1 -0
- package/dist/study/TagFilteredContentSource.mjs +136 -0
- package/dist/study/TagFilteredContentSource.mjs.map +1 -0
- package/dist/study/services/CardHydrationService.mjs +172 -0
- package/dist/study/services/CardHydrationService.mjs.map +1 -0
- package/dist/study/services/EloService.mjs +217 -0
- package/dist/study/services/EloService.mjs.map +1 -0
- package/dist/study/services/ResponseProcessor.mjs +190 -0
- package/dist/study/services/ResponseProcessor.mjs.map +1 -0
- package/dist/study/services/SrsService.mjs +49 -0
- package/dist/study/services/SrsService.mjs.map +1 -0
- package/dist/study/services/tagRecent.mjs +65 -0
- package/dist/study/services/tagRecent.mjs.map +1 -0
- package/dist/{types-DF0JuPbs.d.ts → types-DChCz22D.d.ts} +1 -1
- package/dist/{types-legacy-DdVjg81H.d.cts → types-legacy-fT5Y1Wuy.d.ts} +1 -1
- package/dist/userDBKeys-ne1g4Xuq.d.ts +16 -0
- package/dist/util/Loggable.mjs +14 -0
- package/dist/util/Loggable.mjs.map +1 -0
- package/dist/util/dataDirectory.mjs +47 -0
- package/dist/util/dataDirectory.mjs.map +1 -0
- package/dist/util/logger.mjs +86 -0
- package/dist/util/logger.mjs.map +1 -0
- package/dist/util/migrator/FileSystemAdapter.mjs +18 -0
- package/dist/util/migrator/FileSystemAdapter.mjs.map +1 -0
- package/dist/util/migrator/StaticToCouchDBMigrator.mjs +428 -0
- package/dist/util/migrator/StaticToCouchDBMigrator.mjs.map +1 -0
- package/dist/util/migrator/types.mjs +11 -0
- package/dist/util/migrator/types.mjs.map +1 -0
- package/dist/util/migrator/validation.mjs +334 -0
- package/dist/util/migrator/validation.mjs.map +1 -0
- package/dist/util/packer/CouchDBToStaticPacker.mjs +438 -0
- package/dist/util/packer/CouchDBToStaticPacker.mjs.map +1 -0
- package/dist/util/packer/{index.js → index.cjs} +73 -9
- package/dist/util/packer/index.cjs.map +1 -0
- package/dist/util/packer/index.d.ts +3 -3
- package/dist/util/packer/index.mjs +2 -537
- package/eslint.config.mjs +9 -1
- package/package.json +25 -13
- package/rolldown.config.mjs +44 -0
- package/src/core/UserDBDebugger.ts +47 -46
- package/src/core/navigators/Pipeline.ts +10 -10
- package/src/core/navigators/PipelineDebugger.ts +55 -55
- package/src/core/navigators/filters/eloDistance.ts +1 -1
- package/src/core/navigators/generators/elo.ts +5 -1
- package/src/core/navigators/index.ts +9 -3
- package/src/factory.ts +10 -1
- package/src/impl/common/BaseUserDB.ts +1 -3
- package/src/impl/common/index.ts +2 -0
- package/src/impl/common/userDBHelpers.ts +4 -58
- package/src/impl/common/userDBKeys.ts +64 -0
- package/src/impl/couch/courseDB.ts +15 -3
- package/src/impl/couch/index.ts +2 -18
- package/src/impl/couch/pouchdb-setup.ts +8 -0
- package/src/index.ts +1 -1
- package/src/study/MixerDebugger.ts +46 -46
- package/src/study/SessionDebugger.ts +20 -20
- package/src/study/SessionOverlay.ts +4 -4
- package/src/util/logger.ts +112 -13
- package/tests/core/navigators/eloGenerator.test.ts +36 -0
- package/tsup.config.ts +24 -21
- package/dist/SyncStrategy-BXliog1m.d.cts +0 -116
- package/dist/classroomDB-DLTtLZct.d.cts +0 -86
- package/dist/contentSource-FQZcZopC.d.cts +0 -2007
- package/dist/core/index.d.cts +0 -521
- package/dist/core/index.js.map +0 -1
- package/dist/core/index.mjs.map +0 -1
- package/dist/dataLayerProvider-3y21KtF-.d.cts +0 -61
- package/dist/diagnostics/index.d.cts +0 -561
- package/dist/diagnostics/index.mjs.map +0 -1
- package/dist/impl/couch/index.d.cts +0 -620
- package/dist/impl/couch/index.js.map +0 -1
- package/dist/impl/static/index.d.cts +0 -232
- package/dist/impl/static/index.js.map +0 -1
- package/dist/impl/static/index.mjs.map +0 -1
- package/dist/index-BIum9Ue2.d.cts +0 -137
- package/dist/index.d.cts +0 -1663
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/pouch/index.d.cts +0 -1
- package/dist/pouch/index.js.map +0 -1
- package/dist/pouch/index.mjs.map +0 -1
- package/dist/types-BcWVH4ww.d.cts +0 -58
- package/dist/types-legacy-DdVjg81H.d.ts +0 -168
- package/dist/util/packer/index.d.cts +0 -5
- package/dist/util/packer/index.js.map +0 -1
- package/dist/util/packer/index.mjs.map +0 -1
- package/src/study/getCardDataShape.ts +0 -34
- /package/dist/diagnostics/{index.js.map → index.cjs.map} +0 -0
package/dist/core/index.d.cts
DELETED
|
@@ -1,521 +0,0 @@
|
|
|
1
|
-
export { A as AdminDBInterface, d as AssignedCard, a as AssignedContent, c as AssignedCourse, b as AssignedTag, C as ClassroomDBInterface, S as StudentClassroomDBInterface, T as TeacherClassroomDBInterface } from '../classroomDB-DLTtLZct.cjs';
|
|
2
|
-
import { av as LearnableWeight, T as UserOutcomeRecord, aw as OrchestrationContext, W as WeightedCard, C as CourseDBInterface } from '../contentSource-FQZcZopC.cjs';
|
|
3
|
-
export { P as ActivityRecord, ae as CardFilter, ag as CardFilterFactory, ah as CardGenerator, aj as CardGeneratorFactory, K as ClassroomRegistration, J as ClassroomRegistrationDesignation, L as ClassroomRegistrationDoc, c as ContentNavigationStrategyData, d as ContentNavigator, v as ContentSourceID, b as CourseInfo, Q as CourseRegistration, g as CourseRegistrationDoc, a as CoursesDBInterface, af as FilterContext, at as FilterImpact, F as FilterKind, ai as GeneratorContext, G as GeneratorResult, as as GeneratorSummary, _ as HYDRATION_MARKER_ID, $ as HydrationMarker, a0 as NavigatorConstructor, N as NavigatorRole, ab as NavigatorRoles, aa as Navigators, au as PipelineForecaster, aq as PipelineRunReport, R as ReplanHints, ar as RunReportCard, f as ScheduledCard, m as SessionEloEvent, h as SessionStateSnapshot, x as SessionStateSnapshotProvider, M as SessionTrackingData, a8 as StrategyContribution, o as StudyContentSource, e as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, S as StudySessionItem, s as StudySessionNewItem, t as StudySessionReviewItem, k as StudySessionRunCard, n as StudySessionRunCardTrail, i as StudySessionRunSummary, O as UserConfig, H as UserCourseSetting, E as UserCourseSettings, B as UserDBAuthenticator, U as UserDBInterface, z as UserDBReader, A as UserDBWriter, Y as UserHydrationState, Z as UserHydrationStatus, I as UsrCrsDataInterface, ax as computeDeviation, az as computeEffectiveWeight, ay as computeSpread, aA as createOrchestrationContext, ap as drainCapturedRuns, am as getActivePipeline, a9 as getCardOrigin, a5 as getRegisteredFilterKind, a2 as getRegisteredNavigator, a6 as getRegisteredNavigatorNames, a4 as getRegisteredNavigatorRole, ao as getRunsForSession, w as getStudySource, a3 as hasRegisteredNavigator, a7 as initializeNavigatorRegistry, ad as isFilter, ac as isGenerator, u as isReview, V as makeStudySessionId, al as mountPipelineDebugger, X as newSessionId, ak as pipelineDebugAPI, a1 as registerNavigator, an as setDebugSessionId } from '../contentSource-FQZcZopC.cjs';
|
|
4
|
-
export { D as DataLayerProvider } from '../dataLayerProvider-3y21KtF-.cjs';
|
|
5
|
-
import { D as DocType, d as QuestionRecord, f as DocTypePrefixes, e as CardHistory, c as CardRecord } from '../types-legacy-DdVjg81H.cjs';
|
|
6
|
-
export { C as CardData, g as CourseListData, h as DataShapeData, b as DisplayableData, F as Field, G as GuestUsername, Q as QualifiedCardID, i as QuestionData, S as SkuilderCourseData, a as Tag, T as TagStub, l as log } from '../types-legacy-DdVjg81H.cjs';
|
|
7
|
-
import { DataShape, ParsedCard } from '@vue-skuilder/common';
|
|
8
|
-
import 'moment';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Snapshot of the learning state for a strategy.
|
|
12
|
-
*
|
|
13
|
-
* Stored in the CourseDB for observability and debugging.
|
|
14
|
-
* Updated periodically by the gradient learning system.
|
|
15
|
-
*/
|
|
16
|
-
interface StrategyLearningState {
|
|
17
|
-
/**
|
|
18
|
-
* Unique ID: "STRATEGY_LEARNING_STATE::{courseId}::{strategyId}"
|
|
19
|
-
*/
|
|
20
|
-
_id: string;
|
|
21
|
-
/** Allow CouchDB to manage revisions */
|
|
22
|
-
_rev?: string;
|
|
23
|
-
docType: DocType.STRATEGY_LEARNING_STATE;
|
|
24
|
-
courseId: string;
|
|
25
|
-
strategyId: string;
|
|
26
|
-
/** Current learned weight (mirrors the strategy doc, for convenience) */
|
|
27
|
-
currentWeight: LearnableWeight;
|
|
28
|
-
/** Most recent regression statistics */
|
|
29
|
-
regression: {
|
|
30
|
-
/** Slope of the linear regression (deviation vs outcome) */
|
|
31
|
-
gradient: number;
|
|
32
|
-
/** Y-intercept of the regression line */
|
|
33
|
-
intercept: number;
|
|
34
|
-
/** R-squared value (0-1), measure of fit quality */
|
|
35
|
-
rSquared: number;
|
|
36
|
-
/** Number of observations used in this regression */
|
|
37
|
-
sampleSize: number;
|
|
38
|
-
/** ISO timestamp of when this regression was computed */
|
|
39
|
-
computedAt: string;
|
|
40
|
-
};
|
|
41
|
-
/** Historical weight snapshots for visualization */
|
|
42
|
-
history: Array<{
|
|
43
|
-
timestamp: string;
|
|
44
|
-
weight: number;
|
|
45
|
-
confidence: number;
|
|
46
|
-
gradient: number;
|
|
47
|
-
}>;
|
|
48
|
-
/** ISO timestamp of last update */
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Data point for gradient computation: (deviation, outcome) pair.
|
|
53
|
-
*/
|
|
54
|
-
interface GradientObservation {
|
|
55
|
-
/** User's deviation for this strategy [-1, 1] */
|
|
56
|
-
deviation: number;
|
|
57
|
-
/** User's outcome value [0, 1] */
|
|
58
|
-
outcomeValue: number;
|
|
59
|
-
/** Optional: weight for this observation (default 1.0) */
|
|
60
|
-
weight?: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Result of linear regression on (deviation, outcome) pairs.
|
|
64
|
-
*/
|
|
65
|
-
interface GradientResult {
|
|
66
|
-
/** Slope: positive = higher deviation correlates with better outcomes */
|
|
67
|
-
gradient: number;
|
|
68
|
-
/** Y-intercept */
|
|
69
|
-
intercept: number;
|
|
70
|
-
/** R-squared: 0-1, how well the line fits */
|
|
71
|
-
rSquared: number;
|
|
72
|
-
/** Number of observations */
|
|
73
|
-
sampleSize: number;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Extract (deviation, outcome) observations for a specific strategy
|
|
78
|
-
* from a collection of UserOutcomeRecords.
|
|
79
|
-
*
|
|
80
|
-
* @param outcomes - Collection of outcome records (from multiple users)
|
|
81
|
-
* @param strategyId - The strategy to extract observations for
|
|
82
|
-
* @returns Array of gradient observations
|
|
83
|
-
*/
|
|
84
|
-
declare function aggregateOutcomesForGradient(outcomes: UserOutcomeRecord[], strategyId: string): GradientObservation[];
|
|
85
|
-
/**
|
|
86
|
-
* Compute linear regression on (deviation, outcome) pairs.
|
|
87
|
-
*
|
|
88
|
-
* Uses ordinary least squares to find the best fit line:
|
|
89
|
-
* outcome = gradient * deviation + intercept
|
|
90
|
-
*
|
|
91
|
-
* The gradient tells us:
|
|
92
|
-
* - Positive: users with higher deviation (higher weight) had better outcomes
|
|
93
|
-
* → we should increase the peak weight
|
|
94
|
-
* - Negative: users with higher deviation (higher weight) had worse outcomes
|
|
95
|
-
* → we should decrease the peak weight
|
|
96
|
-
* - Near zero: weight doesn't affect outcomes much
|
|
97
|
-
* → we're near optimal, increase confidence
|
|
98
|
-
*
|
|
99
|
-
* @param observations - Array of (deviation, outcome) pairs
|
|
100
|
-
* @returns Regression result, or null if insufficient data
|
|
101
|
-
*/
|
|
102
|
-
declare function computeStrategyGradient(observations: GradientObservation[]): GradientResult | null;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Compute updated weight based on gradient result.
|
|
106
|
-
*
|
|
107
|
-
* The update logic:
|
|
108
|
-
* - Positive gradient: users with higher weight did better → increase weight
|
|
109
|
-
* - Negative gradient: users with higher weight did worse → decrease weight
|
|
110
|
-
* - Flat gradient: weight doesn't affect outcome → increase confidence
|
|
111
|
-
*
|
|
112
|
-
* @param current - Current learnable weight
|
|
113
|
-
* @param gradient - Computed gradient result
|
|
114
|
-
* @returns Updated learnable weight
|
|
115
|
-
*/
|
|
116
|
-
declare function updateStrategyWeight(current: LearnableWeight, gradient: GradientResult): LearnableWeight;
|
|
117
|
-
/**
|
|
118
|
-
* Create or update a StrategyLearningState document.
|
|
119
|
-
*
|
|
120
|
-
* @param courseId - Course ID
|
|
121
|
-
* @param strategyId - Strategy ID
|
|
122
|
-
* @param currentWeight - Current learned weight
|
|
123
|
-
* @param gradient - Gradient result from recent computation
|
|
124
|
-
* @param existing - Existing learning state (if any)
|
|
125
|
-
* @returns Updated learning state document
|
|
126
|
-
*/
|
|
127
|
-
declare function updateLearningState(courseId: string, strategyId: string, currentWeight: LearnableWeight, gradient: GradientResult, existing?: StrategyLearningState): StrategyLearningState;
|
|
128
|
-
/**
|
|
129
|
-
* Input data for running a period update on a single strategy.
|
|
130
|
-
*/
|
|
131
|
-
interface PeriodUpdateInput {
|
|
132
|
-
courseId: string;
|
|
133
|
-
strategyId: string;
|
|
134
|
-
currentWeight: LearnableWeight;
|
|
135
|
-
gradient: GradientResult;
|
|
136
|
-
existingState?: StrategyLearningState;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Result of a period update for a single strategy.
|
|
140
|
-
*/
|
|
141
|
-
interface PeriodUpdateResult {
|
|
142
|
-
strategyId: string;
|
|
143
|
-
previousWeight: LearnableWeight;
|
|
144
|
-
newWeight: LearnableWeight;
|
|
145
|
-
gradient: GradientResult;
|
|
146
|
-
learningState: StrategyLearningState;
|
|
147
|
-
updated: boolean;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Run a period update for a single strategy.
|
|
151
|
-
*
|
|
152
|
-
* This function:
|
|
153
|
-
* 1. Takes the computed gradient
|
|
154
|
-
* 2. Computes the new weight
|
|
155
|
-
* 3. Generates the updated learning state
|
|
156
|
-
*
|
|
157
|
-
* Note: Actual persistence (updating strategy doc, saving learning state)
|
|
158
|
-
* must be done by the caller with appropriate DB access.
|
|
159
|
-
*
|
|
160
|
-
* @param input - Update input data
|
|
161
|
-
* @returns Update result with new weight and learning state
|
|
162
|
-
*/
|
|
163
|
-
declare function runPeriodUpdate(input: PeriodUpdateInput): PeriodUpdateResult;
|
|
164
|
-
/**
|
|
165
|
-
* Create a default LearnableWeight for strategies that don't have one.
|
|
166
|
-
*/
|
|
167
|
-
declare function getDefaultLearnableWeight(): LearnableWeight;
|
|
168
|
-
|
|
169
|
-
interface SignalConfig {
|
|
170
|
-
/** Target accuracy for "in the zone" learning (default: 0.85) */
|
|
171
|
-
targetAccuracy?: number;
|
|
172
|
-
/** Width of the peak plateau (default: 0.05) */
|
|
173
|
-
tolerance?: number;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Computes a scalar signal (0-1) representing the quality of the learning outcome.
|
|
177
|
-
*
|
|
178
|
-
* Current implementation focuses on "accuracy within Zone of Proximal Development".
|
|
179
|
-
* Future versions should include ELO gain rate.
|
|
180
|
-
*
|
|
181
|
-
* @param records - List of question attempts in the period
|
|
182
|
-
* @param config - Configuration for the signal function
|
|
183
|
-
* @returns Score 0.0-1.0, or null if insufficient data
|
|
184
|
-
*/
|
|
185
|
-
declare function computeOutcomeSignal(records: QuestionRecord[], config?: SignalConfig): number | null;
|
|
186
|
-
/**
|
|
187
|
-
* Scores an accuracy value based on how close it is to the target "sweet spot".
|
|
188
|
-
*
|
|
189
|
-
* The function defines a plateau of width (2 * tolerance) around the target
|
|
190
|
-
* where score is 1.0. Outside this plateau, it falls off linearly.
|
|
191
|
-
*
|
|
192
|
-
* @param accuracy - Observed accuracy (0-1)
|
|
193
|
-
* @param target - Target accuracy (e.g. 0.85)
|
|
194
|
-
* @param tolerance - +/- range allowed for max score
|
|
195
|
-
*/
|
|
196
|
-
declare function scoreAccuracyInZone(accuracy: number, target: number, tolerance: number): number;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Records a learning outcome for a specific period of time.
|
|
200
|
-
*
|
|
201
|
-
* This function:
|
|
202
|
-
* 1. Computes a scalar "success" signal from the provided question records
|
|
203
|
-
* 2. Re-computes the deviations that were active for this user/course
|
|
204
|
-
* 3. Persists a UserOutcomeRecord to the user's database
|
|
205
|
-
*
|
|
206
|
-
* This record is later used by the optimization job to correlate
|
|
207
|
-
* deviations with outcomes (Evolutionary Orchestration).
|
|
208
|
-
*
|
|
209
|
-
* @param context - Orchestration context (user, course, etc.)
|
|
210
|
-
* @param periodStart - ISO timestamp of period start
|
|
211
|
-
* @param periodEnd - ISO timestamp of period end (now)
|
|
212
|
-
* @param records - Question records generated during this period
|
|
213
|
-
* @param activeStrategyIds - IDs of strategies active in this course
|
|
214
|
-
* @param eloStart - User's ELO at start of period (optional)
|
|
215
|
-
* @param eloEnd - User's ELO at end of period (optional)
|
|
216
|
-
* @param config - Optional configuration for signal computation
|
|
217
|
-
*/
|
|
218
|
-
declare function recordUserOutcome(context: OrchestrationContext, periodStart: string, periodEnd: string, records: QuestionRecord[], activeStrategyIds: string[], eloStart?: number, eloEnd?: number, config?: SignalConfig): Promise<void>;
|
|
219
|
-
|
|
220
|
-
declare abstract class Loggable {
|
|
221
|
-
protected abstract readonly _className: string;
|
|
222
|
-
protected log(...args: unknown[]): void;
|
|
223
|
-
protected error(...args: unknown[]): void;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/** Per-course snapshot of SRS backlog state, captured on each SRS generator run. */
|
|
227
|
-
interface SrsBacklogDebug {
|
|
228
|
-
courseId: string;
|
|
229
|
-
/** Total reviews scheduled for this course (due + not-yet-due). */
|
|
230
|
-
scheduledTotal: number;
|
|
231
|
-
/** Reviews eligible (due) right now. */
|
|
232
|
-
dueNow: number;
|
|
233
|
-
/** Healthy review mass (card-equivalents); the multiplier is ×1.0 at or below it. */
|
|
234
|
-
healthyBacklog: number;
|
|
235
|
-
/**
|
|
236
|
-
* Review mass: the due reviews' filtered scores against a reference, each at
|
|
237
|
-
* most 1. Set by the regulator stage; null until it has run.
|
|
238
|
-
*/
|
|
239
|
-
reviewMass: number | null;
|
|
240
|
-
/** Multiplier the regulator stage applied to every due review this run (>= 1.0, unbounded). */
|
|
241
|
-
backlogMultiplier: number;
|
|
242
|
-
/** Exponential growth-rate base the multiplier climbs by per multiple of healthy mass in excess. */
|
|
243
|
-
backlogGrowthRate: number;
|
|
244
|
-
/** Highest review urgency score from the SRS generator (before filters and regulators); null if none due. */
|
|
245
|
-
topReviewScore: number | null;
|
|
246
|
-
/** Human-readable time until the next review comes due, or null if some are due now. */
|
|
247
|
-
nextDueIn: string | null;
|
|
248
|
-
/** Epoch ms of capture. */
|
|
249
|
-
timestamp: number;
|
|
250
|
-
}
|
|
251
|
-
/** Current backlog snapshot for every course seen, newest-first. */
|
|
252
|
-
declare function getSrsBacklogDebug(): SrsBacklogDebug[];
|
|
253
|
-
/** Drop all captured snapshots (called on session start, alongside pipeline history). */
|
|
254
|
-
declare function clearSrsBacklogDebug(): void;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* A single named pressure reading. The common shape across strategies: a
|
|
258
|
-
* multiplier that climbs under some accumulated condition (staleness, debt,
|
|
259
|
-
* blockage), optionally clamped at a cap.
|
|
260
|
-
*/
|
|
261
|
-
interface PressureGaugeDebug {
|
|
262
|
-
/** Stable identifier within the source (e.g. 'group:intro-core:target'). */
|
|
263
|
-
id: string;
|
|
264
|
-
/** Short display label (e.g. 'intro-core targets'). */
|
|
265
|
-
label: string;
|
|
266
|
-
/** Current pressure multiplier (×1.0 = no pressure). */
|
|
267
|
-
multiplier: number;
|
|
268
|
-
/** Clamp ceiling, if the multiplier is capped. Omit for unbounded. */
|
|
269
|
-
max?: number;
|
|
270
|
-
/** One-line context for the reading (counts, mode, staleness). */
|
|
271
|
-
detail?: string;
|
|
272
|
-
/** Expandable rows (blocked target ids, per-tag debt ages, ...). */
|
|
273
|
-
items?: Array<{
|
|
274
|
-
label: string;
|
|
275
|
-
value?: string;
|
|
276
|
-
}>;
|
|
277
|
-
}
|
|
278
|
-
/** One strategy's pressure snapshot for one course, captured once per run. */
|
|
279
|
-
interface StrategyPressureDebug {
|
|
280
|
-
/** Producer identity — implementingClass name (e.g. 'prescribed'). */
|
|
281
|
-
source: string;
|
|
282
|
-
courseId: string;
|
|
283
|
-
gauges: PressureGaugeDebug[];
|
|
284
|
-
/**
|
|
285
|
-
* Highest score this strategy emitted into the candidate pool this run;
|
|
286
|
-
* null if it emitted nothing. Compare against the supplyQ head score to
|
|
287
|
-
* read how the pressure is competing for slots (same crossover read as the
|
|
288
|
-
* SRS panel's `top review`).
|
|
289
|
-
*/
|
|
290
|
-
topScore?: number | null;
|
|
291
|
-
/** Label of any one-shot hints emitted alongside the cards this run. */
|
|
292
|
-
hintsLabel?: string;
|
|
293
|
-
/** Epoch ms of capture. */
|
|
294
|
-
timestamp: number;
|
|
295
|
-
}
|
|
296
|
-
/** Called by a strategy once per run. Latest snapshot per (source, course) wins. */
|
|
297
|
-
declare function captureStrategyPressure(snapshot: StrategyPressureDebug): void;
|
|
298
|
-
/** Current pressure snapshot for every source seen, newest-first. */
|
|
299
|
-
declare function getStrategyPressureDebug(): StrategyPressureDebug[];
|
|
300
|
-
/** Drop all captured snapshots (called on session start, alongside pipeline history). */
|
|
301
|
-
declare function clearStrategyPressureDebug(): void;
|
|
302
|
-
|
|
303
|
-
interface DiversityRerankOptions {
|
|
304
|
-
/**
|
|
305
|
-
* How hard repetition is penalised. Larger → steeper demotion of repeated
|
|
306
|
-
* distinctive tags. Penalty = 1 / (1 + strength·load).
|
|
307
|
-
*/
|
|
308
|
-
strength?: number;
|
|
309
|
-
/**
|
|
310
|
-
* Minimum penalty multiplier. A card is never demoted below `floor × score`,
|
|
311
|
-
* however much it repeats. Keeps a strong-but-repeated card from being driven
|
|
312
|
-
* under downstream "well-indicated" thresholds (which would mislabel it as
|
|
313
|
-
* filler and could trigger spurious quality-replans). Tunes "perturb ordering"
|
|
314
|
-
* vs "annihilate candidates."
|
|
315
|
-
*/
|
|
316
|
-
floor?: number;
|
|
317
|
-
}
|
|
318
|
-
/** Default repetition strength. See DiversityRerankOptions.strength. */
|
|
319
|
-
declare const DIVERSITY_STRENGTH = 0.6;
|
|
320
|
-
/** Default penalty floor. See DiversityRerankOptions.floor. */
|
|
321
|
-
declare const DIVERSITY_FLOOR = 0.3;
|
|
322
|
-
/**
|
|
323
|
-
* Re-rank a scored candidate pool for answer/concept variety.
|
|
324
|
-
*
|
|
325
|
-
* Pure: returns a new array (diversified order, adjusted scores, appended
|
|
326
|
-
* provenance) and does not mutate the input cards. Cards entering are assumed
|
|
327
|
-
* to have score > 0 (the Pipeline strips zero-score cards before this stage).
|
|
328
|
-
* Non-finite scores (mandatory `requireCards`, score = +Infinity) are emitted
|
|
329
|
-
* untouched and still count toward repetition for later cards.
|
|
330
|
-
*
|
|
331
|
-
* @param cards - Post-filter, post-hint candidates.
|
|
332
|
-
* @param opts - Optional strength/floor overrides (defaults are sane and
|
|
333
|
-
* course-general; promote to strategy config if you ever want
|
|
334
|
-
* this learnable under the orchestration layer).
|
|
335
|
-
* @returns Cards in diversified order with penalised scores.
|
|
336
|
-
*/
|
|
337
|
-
declare function diversityRerank(cards: WeightedCard[], opts?: DiversityRerankOptions): WeightedCard[];
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Template literal type for strategy state document IDs.
|
|
341
|
-
*
|
|
342
|
-
* Format: `STRATEGY_STATE-{courseId}-{strategyKey}`
|
|
343
|
-
*/
|
|
344
|
-
type StrategyStateId = `${(typeof DocTypePrefixes)[DocType.STRATEGY_STATE]}::${string}::${string}`;
|
|
345
|
-
/**
|
|
346
|
-
* Document storing strategy-specific state in the user database.
|
|
347
|
-
*
|
|
348
|
-
* Each strategy can persist its own state (user preferences, learned patterns,
|
|
349
|
-
* temporal tracking, etc.) using this document type. The state is scoped to
|
|
350
|
-
* a (user, course, strategy) tuple.
|
|
351
|
-
*
|
|
352
|
-
* ## Use Cases
|
|
353
|
-
*
|
|
354
|
-
* 1. **Explicit user preferences**: User configures tag filters, difficulty
|
|
355
|
-
* preferences, or learning goals. UI writes to strategy state.
|
|
356
|
-
*
|
|
357
|
-
* 2. **Learned/temporal state**: Strategy tracks patterns over time, e.g.,
|
|
358
|
-
* "when did I last introduce confusable concepts together?"
|
|
359
|
-
*
|
|
360
|
-
* 3. **Adaptive personalization**: Strategy infers user preferences from
|
|
361
|
-
* behavior and stores them for future sessions.
|
|
362
|
-
*
|
|
363
|
-
* ## Storage Location
|
|
364
|
-
*
|
|
365
|
-
* These documents live in the **user database**, not the course database.
|
|
366
|
-
* They sync with the user's data across devices.
|
|
367
|
-
*
|
|
368
|
-
* ## Document ID Format
|
|
369
|
-
*
|
|
370
|
-
* `STRATEGY_STATE::{courseId}::{strategyKey}`
|
|
371
|
-
*
|
|
372
|
-
* Example: `STRATEGY_STATE::piano-basics::UserTagPreferenceFilter`
|
|
373
|
-
*
|
|
374
|
-
* @template T - The shape of the strategy-specific data payload
|
|
375
|
-
*/
|
|
376
|
-
interface StrategyStateDoc<T = unknown> {
|
|
377
|
-
_id: StrategyStateId;
|
|
378
|
-
_rev?: string;
|
|
379
|
-
docType: DocType.STRATEGY_STATE;
|
|
380
|
-
/**
|
|
381
|
-
* The course this state applies to.
|
|
382
|
-
*/
|
|
383
|
-
courseId: string;
|
|
384
|
-
/**
|
|
385
|
-
* Unique key identifying the strategy instance.
|
|
386
|
-
* Typically the strategy class name (e.g., "UserTagPreferenceFilter",
|
|
387
|
-
* "InterferenceMitigatorNavigator").
|
|
388
|
-
*
|
|
389
|
-
* If a course has multiple instances of the same strategy type with
|
|
390
|
-
* different configurations, use a more specific key.
|
|
391
|
-
*/
|
|
392
|
-
strategyKey: string;
|
|
393
|
-
/**
|
|
394
|
-
* Strategy-specific data payload.
|
|
395
|
-
* Each strategy defines its own schema for this field.
|
|
396
|
-
*/
|
|
397
|
-
data: T;
|
|
398
|
-
/**
|
|
399
|
-
* ISO timestamp of last update.
|
|
400
|
-
* Use `moment.utc(updatedAt)` to parse into a Moment object.
|
|
401
|
-
*/
|
|
402
|
-
updatedAt: string;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* Build the document ID for a strategy state document.
|
|
406
|
-
*
|
|
407
|
-
* @param courseId - The course ID
|
|
408
|
-
* @param strategyKey - The strategy key (typically class name)
|
|
409
|
-
* @returns The document ID in format `STRATEGY_STATE::{courseId}::{strategyKey}`
|
|
410
|
-
*/
|
|
411
|
-
declare function buildStrategyStateId(courseId: string, strategyKey: string): StrategyStateId;
|
|
412
|
-
|
|
413
|
-
declare function areQuestionRecords(h: CardHistory<CardRecord>): h is CardHistory<QuestionRecord>;
|
|
414
|
-
declare function isQuestionRecord(c: CardRecord): c is QuestionRecord;
|
|
415
|
-
declare function getCardHistoryID(courseID: string, cardID: string): PouchDB.Core.DocumentId;
|
|
416
|
-
declare function parseCardHistoryID(id: string): {
|
|
417
|
-
courseID: string;
|
|
418
|
-
cardID: string;
|
|
419
|
-
};
|
|
420
|
-
interface PouchDBError extends Error {
|
|
421
|
-
error?: string;
|
|
422
|
-
reason?: string;
|
|
423
|
-
}
|
|
424
|
-
declare function docIsDeleted(e: PouchDBError): boolean;
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Interface representing the result of a bulk import operation for a single card
|
|
428
|
-
*/
|
|
429
|
-
interface ImportResult {
|
|
430
|
-
/** The original text input for the card */
|
|
431
|
-
originalText: string;
|
|
432
|
-
/** Status of the import operation */
|
|
433
|
-
status: 'success' | 'error';
|
|
434
|
-
/** Message describing the result or error */
|
|
435
|
-
message: string;
|
|
436
|
-
/** ID of the newly created card (only for success) */
|
|
437
|
-
cardId?: string;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Configuration for the bulk card processor
|
|
441
|
-
*/
|
|
442
|
-
interface BulkCardProcessorConfig {
|
|
443
|
-
/** The data shape to use for the cards */
|
|
444
|
-
dataShape: DataShape;
|
|
445
|
-
/** The course code used for adding notes */
|
|
446
|
-
courseCode: string;
|
|
447
|
-
/** The username of the current user */
|
|
448
|
-
userName: string;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* Processes multiple cards from bulk text input
|
|
453
|
-
*
|
|
454
|
-
* @param parsedCards - Array of parsed cards to import
|
|
455
|
-
* @param courseDB - Course database interface
|
|
456
|
-
* @param config - Configuration for the card processor
|
|
457
|
-
* @returns Array of import results
|
|
458
|
-
*/
|
|
459
|
-
declare function importParsedCards(parsedCards: ParsedCard[], courseDB: CourseDBInterface, config: BulkCardProcessorConfig): Promise<ImportResult[]>;
|
|
460
|
-
/**
|
|
461
|
-
* Validates the configuration for bulk card processing
|
|
462
|
-
*
|
|
463
|
-
* @param config - Configuration to validate
|
|
464
|
-
* @returns Object with validation result and error message if any
|
|
465
|
-
*/
|
|
466
|
-
declare function validateProcessorConfig(config: Partial<BulkCardProcessorConfig>): {
|
|
467
|
-
isValid: boolean;
|
|
468
|
-
errorMessage?: string;
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Console API object exposed on window.skuilder.userdb
|
|
473
|
-
*/
|
|
474
|
-
declare const userDBDebugAPI: {
|
|
475
|
-
/**
|
|
476
|
-
* Show current user information
|
|
477
|
-
*/
|
|
478
|
-
showUser(): void;
|
|
479
|
-
/**
|
|
480
|
-
* Show scheduled reviews
|
|
481
|
-
*/
|
|
482
|
-
showScheduledReviews(courseId?: string): Promise<void>;
|
|
483
|
-
/**
|
|
484
|
-
* Show course registrations
|
|
485
|
-
*/
|
|
486
|
-
showCourseRegistrations(): Promise<void>;
|
|
487
|
-
/**
|
|
488
|
-
* Show card history for a specific card
|
|
489
|
-
*/
|
|
490
|
-
showCardHistory(cardId: string): Promise<void>;
|
|
491
|
-
/**
|
|
492
|
-
* Query documents by type
|
|
493
|
-
*/
|
|
494
|
-
queryByType(docType: keyof typeof DocType, limit?: number): Promise<void>;
|
|
495
|
-
/**
|
|
496
|
-
* Show database info and statistics
|
|
497
|
-
*/
|
|
498
|
-
dbInfo(): Promise<void>;
|
|
499
|
-
/**
|
|
500
|
-
* List all document types
|
|
501
|
-
*/
|
|
502
|
-
listDocTypes(): void;
|
|
503
|
-
/**
|
|
504
|
-
* Export database contents (limited, for debugging)
|
|
505
|
-
*/
|
|
506
|
-
export(includeContent?: boolean): Promise<string>;
|
|
507
|
-
/**
|
|
508
|
-
* Execute raw PouchDB query
|
|
509
|
-
*/
|
|
510
|
-
raw(queryFn: (db: PouchDB.Database) => Promise<any>): Promise<void>;
|
|
511
|
-
/**
|
|
512
|
-
* Show help
|
|
513
|
-
*/
|
|
514
|
-
help(): void;
|
|
515
|
-
};
|
|
516
|
-
/**
|
|
517
|
-
* Mount the debug API on window.skuilder.userdb
|
|
518
|
-
*/
|
|
519
|
-
declare function mountUserDBDebugger(): void;
|
|
520
|
-
|
|
521
|
-
export { type BulkCardProcessorConfig, CardHistory, CardRecord, CourseDBInterface, DIVERSITY_FLOOR, DIVERSITY_STRENGTH, type DiversityRerankOptions, DocType, DocTypePrefixes, type GradientObservation, type GradientResult, type ImportResult, LearnableWeight, Loggable, OrchestrationContext, type PeriodUpdateInput, type PeriodUpdateResult, type PressureGaugeDebug, QuestionRecord, type SignalConfig, type SrsBacklogDebug, type StrategyLearningState, type StrategyPressureDebug, type StrategyStateDoc, type StrategyStateId, UserOutcomeRecord, WeightedCard, aggregateOutcomesForGradient, areQuestionRecords, buildStrategyStateId, captureStrategyPressure, clearSrsBacklogDebug, clearStrategyPressureDebug, computeOutcomeSignal, computeStrategyGradient, diversityRerank, docIsDeleted, getCardHistoryID, getDefaultLearnableWeight, getSrsBacklogDebug, getStrategyPressureDebug, importParsedCards, isQuestionRecord, mountUserDBDebugger, parseCardHistoryID, recordUserOutcome, runPeriodUpdate, scoreAccuracyInZone, updateLearningState, updateStrategyWeight, userDBDebugAPI, validateProcessorConfig };
|