@vue-skuilder/db 0.2.27 → 0.2.29
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/classroomDB-DLTtLZct.d.cts +86 -0
- package/dist/classroomDB-DLTtLZct.d.ts +86 -0
- package/dist/{contentSource-LPf044hY.d.ts → contentSource-B6FrSihy.d.cts} +282 -99
- package/dist/{contentSource-D3c1fMAk.d.cts → contentSource-CqJmbOZN.d.ts} +282 -99
- package/dist/core/index.d.cts +16 -92
- package/dist/core/index.d.ts +16 -92
- package/dist/core/index.js +607 -179
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +606 -179
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-DaAootVV.d.ts → dataLayerProvider-B9_UCvkR.d.ts} +2 -8
- package/dist/{dataLayerProvider-CeLiFbHv.d.cts → dataLayerProvider-DUxDqMtZ.d.cts} +2 -8
- package/dist/diagnostics/index.d.cts +443 -0
- package/dist/diagnostics/index.d.ts +443 -0
- package/dist/diagnostics/index.js +932 -0
- package/dist/diagnostics/index.js.map +1 -0
- package/dist/diagnostics/index.mjs +881 -0
- package/dist/diagnostics/index.mjs.map +1 -0
- package/dist/impl/couch/index.d.cts +13 -3
- package/dist/impl/couch/index.d.ts +13 -3
- package/dist/impl/couch/index.js +605 -179
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +605 -179
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.d.cts +11 -5
- package/dist/impl/static/index.d.ts +11 -5
- package/dist/impl/static/index.js +602 -185
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +602 -185
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/{index-BkBJlGDX.d.ts → index-CVGehe_t.d.ts} +1 -1
- package/dist/{index-D7WdMDAs.d.cts → index-Ktg72jKb.d.cts} +1 -1
- package/dist/index.d.cts +73 -11
- package/dist/index.d.ts +73 -11
- package/dist/index.js +696 -200
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +683 -200
- package/dist/index.mjs.map +1 -1
- package/dist/{types-DjiFOZxJ.d.cts → types-D0oQeJAi.d.cts} +1 -1
- package/dist/{types-uJ2Xn3_X.d.ts → types-dXWfyz9B.d.ts} +1 -1
- package/dist/{types-legacy-CrwyZIvI.d.cts → types-legacy-BkOYOR6U.d.cts} +1 -1
- package/dist/{types-legacy-CrwyZIvI.d.ts → types-legacy-BkOYOR6U.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 +15 -3
- package/src/core/interfaces/contentSource.ts +7 -0
- package/src/core/interfaces/dataLayerProvider.ts +3 -8
- package/src/core/navigators/Pipeline.ts +149 -14
- package/src/core/navigators/PipelineAssembler.ts +19 -40
- package/src/core/navigators/PipelineDebugger.ts +74 -17
- package/src/core/navigators/SrsDebugger.ts +37 -12
- package/src/core/navigators/defaults.ts +29 -5
- package/src/core/navigators/filters/WeightedFilter.ts +5 -1
- package/src/core/navigators/filters/eloDistance.ts +261 -76
- package/src/core/navigators/filters/hierarchyDefinition.ts +5 -1
- package/src/core/navigators/filters/index.ts +2 -2
- package/src/core/navigators/filters/interferenceMitigator.ts +5 -1
- package/src/core/navigators/filters/relativePriority.ts +5 -1
- package/src/core/navigators/filters/types.ts +24 -1
- package/src/core/navigators/filters/userTagPreference.ts +5 -1
- package/src/core/navigators/generators/elo.ts +23 -53
- package/src/core/navigators/generators/srs.ts +27 -124
- package/src/core/navigators/index.ts +32 -5
- package/src/core/navigators/pipelinePlan.ts +245 -0
- package/src/core/navigators/regulators.ts +230 -0
- package/src/core/types/studySession.ts +40 -0
- package/src/diagnostics/dataset.ts +242 -0
- package/src/diagnostics/derive.ts +555 -0
- package/src/diagnostics/index.ts +27 -0
- package/src/diagnostics/loader.ts +194 -0
- package/src/diagnostics/pipeline.ts +236 -0
- package/src/diagnostics/text.ts +265 -0
- package/src/impl/couch/PouchDataLayerProvider.ts +0 -23
- package/src/impl/couch/courseDB.ts +13 -0
- package/src/impl/static/StaticDataLayerProvider.ts +0 -11
- package/src/impl/static/courseDB.ts +9 -0
- package/src/index.ts +4 -0
- package/src/study/SessionController.ts +76 -2
- package/src/study/SessionOverlay.ts +7 -4
- package/tests/core/navigators/PipelineAssembler.test.ts +20 -5
- package/tests/core/navigators/eloDistanceFilter.test.ts +9 -9
- package/tsup.config.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PackerConfig, a as PackedCourseData, S as StaticCourseManifest } from './types-
|
|
1
|
+
import { P as PackerConfig, a as PackedCourseData, S as StaticCourseManifest } from './types-dXWfyz9B.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Abstraction for file system operations needed by the migrator.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PackerConfig, a as PackedCourseData, S as StaticCourseManifest } from './types-
|
|
1
|
+
import { P as PackerConfig, a as PackedCourseData, S as StaticCourseManifest } from './types-D0oQeJAi.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Abstraction for file system operations needed by the migrator.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
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 { U as UserDBInterface, d as CourseRegistrationDoc, h as SessionEloEvent, l as StudySessionItem, W as WeightedCard, n as ReplanHints, o as StudyContentSource, x as SessionStateSnapshotProvider, G as GeneratorResult, N as NavigatorRole, b as ContentNavigationStrategyData, F as FilterKind, y as RegulatorConfig, C as CourseDBInterface } from './contentSource-B6FrSihy.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, m as ContentNavigator, v as ContentSourceID, k as CourseInfo, Q as CourseRegistration, a as CoursesDBInterface, aB as DEFAULT_REGULATOR_CONFIG, aM as DocumentUpdater, af as FilterContext, at as FilterImpact, ai as GeneratorContext, as as GeneratorSummary, _ as HYDRATION_MARKER_ID, $ as HydrationMarker, aF as INTAKE_CLOCK_KEY, aE as IntakeClockState, av as LearnableWeight, a0 as NavigatorConstructor, ab as NavigatorRoles, aa as Navigators, aw as OrchestrationContext, au as PipelineForecaster, aq as PipelineRunReport, g as RegulatorName, R as RegulatorReading, ar as RunReportCard, c as ScheduledCard, e as SessionStateSnapshot, M as SessionTrackingData, a8 as StrategyContribution, S as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, s as StudySessionNewItem, t as StudySessionReviewItem, i as StudySessionRunCard, j as StudySessionRunCardTrail, f as StudySessionRunSummary, O as UserConfig, H as UserCourseSetting, E as UserCourseSettings, B as UserDBAuthenticator, z as UserDBReader, A as UserDBWriter, Y as UserHydrationState, Z as UserHydrationStatus, T as UserOutcomeRecord, I as UsrCrsDataInterface, aL as applyReading, ax as computeDeviation, az as computeEffectiveWeight, ay as computeSpread, aA as createOrchestrationContext, ap as drainCapturedRuns, aH as frozenMsAt, am as getActivePipeline, a9 as getCardOrigin, aP as getLapses, a5 as getRegisteredFilterKind, a2 as getRegisteredNavigator, a6 as getRegisteredNavigatorNames, a4 as getRegisteredNavigatorRole, ao as getRunsForSession, aO as getStreak, w as getStudySource, a3 as hasRegisteredNavigator, a7 as initializeNavigatorRegistry, aI as intakeHours, aK as intakeReading, ad as isFilter, ac as isGenerator, u as isReview, V as makeStudySessionId, al as mountPipelineDebugger, aN as newInterval, X as newSessionId, ak as pipelineDebugAPI, a1 as registerNavigator, aG as resetIntakeClock, aD as reviewMassReading, aC as reviewWeight, an as setDebugSessionId, aJ as stepIntakeClock } from './contentSource-B6FrSihy.cjs';
|
|
4
|
+
import { D as DataLayerProvider } from './dataLayerProvider-DUxDqMtZ.cjs';
|
|
5
|
+
import { c as CardHistory, b as CardRecord, Q as QuestionRecord } from './types-legacy-BkOYOR6U.cjs';
|
|
6
|
+
export { C as CardData, g as CourseListData, h as DataShapeData, a as DisplayableData, D as DocType, f as DocTypePrefixes, F as Field, G as GuestUsername, d as QualifiedCardID, i as QuestionData, S as SkuilderCourseData, T as Tag, e as TagStub, l as log } from './types-legacy-BkOYOR6U.cjs';
|
|
6
7
|
import { SrsBacklogDebug, StrategyPressureDebug, Loggable } from './core/index.cjs';
|
|
7
|
-
export { BulkCardProcessorConfig,
|
|
8
|
+
export { BulkCardProcessorConfig, DIVERSITY_FLOOR, DIVERSITY_STRENGTH, DiversityRerankOptions, GradientObservation, GradientResult, ImportResult, PeriodUpdateInput, PeriodUpdateResult, PressureGaugeDebug, SignalConfig, StrategyLearningState, StrategyStateDoc, StrategyStateId, 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 } from './core/index.cjs';
|
|
8
9
|
import { TaggedPerformance, TagFilter, DataShape, CourseConfig } from '@vue-skuilder/common';
|
|
9
|
-
import { S as StaticCourseManifest } from './types-
|
|
10
|
-
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig } from './types-
|
|
11
|
-
import { F as FileSystemAdapter } from './index-
|
|
12
|
-
export { C as CouchDBToStaticPacker, a as FileStats, b as FileSystemError } from './index-
|
|
10
|
+
import { S as StaticCourseManifest } from './types-D0oQeJAi.cjs';
|
|
11
|
+
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig } from './types-D0oQeJAi.cjs';
|
|
12
|
+
import { F as FileSystemAdapter } from './index-Ktg72jKb.cjs';
|
|
13
|
+
export { C as CouchDBToStaticPacker, a as FileStats, b as FileSystemError } from './index-Ktg72jKb.cjs';
|
|
13
14
|
import moment from 'moment';
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -1333,6 +1334,67 @@ declare const sessionDebugAPI: {
|
|
|
1333
1334
|
*/
|
|
1334
1335
|
declare function mountSessionDebugger(): void;
|
|
1335
1336
|
|
|
1337
|
+
type PlannedNavigatorOrigin =
|
|
1338
|
+
/** From the course's strategy documents. */
|
|
1339
|
+
'strategy-doc'
|
|
1340
|
+
/** Added by the assembler because the course declared none of its kind. */
|
|
1341
|
+
| 'assembler-default'
|
|
1342
|
+
/** Part of the fallback pipeline for a course with no strategy documents. */
|
|
1343
|
+
| 'default-pipeline';
|
|
1344
|
+
interface PlannedNavigator {
|
|
1345
|
+
role: NavigatorRole;
|
|
1346
|
+
origin: PlannedNavigatorOrigin;
|
|
1347
|
+
/** The name runs report this navigator under (generator summaries, filter impacts). */
|
|
1348
|
+
name: string;
|
|
1349
|
+
implementingClass: string;
|
|
1350
|
+
/** The strategy document: the course's own, or the default the assembler supplies. */
|
|
1351
|
+
strategy: ContentNavigationStrategyData;
|
|
1352
|
+
/**
|
|
1353
|
+
* Filters only: the kind its class declares (`static kind`), read from the
|
|
1354
|
+
* navigator registry. Undefined if undeclared, which runs as a gate.
|
|
1355
|
+
*/
|
|
1356
|
+
kind?: FilterKind;
|
|
1357
|
+
}
|
|
1358
|
+
interface SkippedStrategy {
|
|
1359
|
+
strategy: ContentNavigationStrategyData;
|
|
1360
|
+
reason: string;
|
|
1361
|
+
}
|
|
1362
|
+
interface PipelinePlan {
|
|
1363
|
+
/** Assembled from strategy documents, or the fallback for a course with none. */
|
|
1364
|
+
kind: 'assembled' | 'default';
|
|
1365
|
+
generators: PlannedNavigator[];
|
|
1366
|
+
/** In run order. */
|
|
1367
|
+
filters: PlannedNavigator[];
|
|
1368
|
+
skipped: SkippedStrategy[];
|
|
1369
|
+
warnings: string[];
|
|
1370
|
+
/** Consequences of the plan worth knowing that aren't errors. */
|
|
1371
|
+
notes: string[];
|
|
1372
|
+
/** The regulator stage's settings (see regulators.ts). */
|
|
1373
|
+
regulators: RegulatorConfig;
|
|
1374
|
+
}
|
|
1375
|
+
type PipelineStageKey = 'generate' | 'filter' | 'drop-zero' | 'regulate' | 'hints' | 'diversity' | 'select';
|
|
1376
|
+
/** One step of a pipeline run, in order. Shared by views and text exports. */
|
|
1377
|
+
interface PipelineStageInfo {
|
|
1378
|
+
key: PipelineStageKey;
|
|
1379
|
+
title: string;
|
|
1380
|
+
summary: string;
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* The steps every pipeline run takes, in order (`Pipeline.getWeightedCards`).
|
|
1384
|
+
* `generate` and `filter` are where a plan's navigators run; the rest are
|
|
1385
|
+
* fixed framework behaviour.
|
|
1386
|
+
*/
|
|
1387
|
+
declare const PIPELINE_STAGES: readonly PipelineStageInfo[];
|
|
1388
|
+
/**
|
|
1389
|
+
* Plan the pipeline a course's strategy documents assemble into.
|
|
1390
|
+
*
|
|
1391
|
+
* Mirrors the assembly rules: generators keep document order, with ELO and SRS
|
|
1392
|
+
* added when absent; an ELO distance filter is added when absent; filters run
|
|
1393
|
+
* sorted by name; unknown implementing classes are skipped with a warning. With no documents at all, describes the default
|
|
1394
|
+
* pipeline that `createDefaultPipeline` builds instead.
|
|
1395
|
+
*/
|
|
1396
|
+
declare function planPipeline(strategies: ContentNavigationStrategyData[], courseId: string): PipelinePlan;
|
|
1397
|
+
|
|
1336
1398
|
interface CourseLookupDoc {
|
|
1337
1399
|
_id: string;
|
|
1338
1400
|
_rev: string;
|
|
@@ -1585,4 +1647,4 @@ interface CouchDbUserDoc extends PouchDB.Authentication.User {
|
|
|
1585
1647
|
entitlements: UserEntitlements;
|
|
1586
1648
|
}
|
|
1587
1649
|
|
|
1588
|
-
export { type ActiveSessionHandle, type AggregatedDocument, type AttachmentUploadResult, CardHistory, type CardPresentation, CardRecord, type CouchDbUserDoc, CourseDBInterface, CourseLookup, CourseRegistrationDoc, type CustomQuestionsData, DEFAULT_MIGRATION_OPTIONS, type DataLayerConfig, DataLayerProvider, type DocumentCounts, ENV, type Entitlement, FileSystemAdapter, GeneratorResult, Loggable, type MigrationOptions, type MigrationResult, type MixerCardInfo, type MixerRunReport, NOT_SET, type OutcomeObserver, type ProcessedDataShape, type ProcessedQuestionData, QuestionRecord, type QueueSnapshot, QuotaRoundRobinMixer, REVIEW_TIME_FORMAT, ReplanHints, type ReplanOptions, type ResponseResult, type RestoreProgress, type SessionAction, SessionController, type SessionControls, type SessionDebugSnapshot, type SessionDebugTarget, type SessionDrawnCardDebug, SessionEloEvent, type SessionOutcome, type SessionQueueDebug, type SessionQueueItemDebug, type SessionRunReport, SessionStateSnapshotProvider, type SourceBatch, type SourceMixer, type SourceSelectionBreakdown, type SourceSummary, SrsBacklogDebug, StaticCourseManifest, type StaticCourseValidation, StaticToCouchDBMigrator, StrategyPressureDebug, StudyContentSource, StudySessionItem, type StudySessionRecord, TagFilteredContentSource, type UserAccountStatus, UserDBInterface, type UserEntitlements, type ValidationIssue, type ValidationResult, WeightedCard, _resetDataLayer, captureMixerRun, clearStaleSessionDebugState, endSessionTracking, ensureAppDataDirectory, getActiveController, getAppDataDirectory, getDataLayer, getDbPath, initializeDataDirectory, initializeDataLayer, isDataShapeRegistered, isDataShapeSchemaAvailable, isQuestionTypeRegistered, makeScheduledCardId, mixerDebugAPI, mountMixerDebugger, mountSessionDebugger, processCustomQuestionsData, recordCardPresentation, registerActiveController, registerBlanksCard, registerCustomQuestionTypes, registerDataShape, registerQuestionType, registerSeedData, removeCustomQuestionTypes, removeDataShape, removeQuestionType, sessionDebugAPI, snapshotQueues, startSessionTracking, toggleSessionOverlay, validateMigration, validateStaticCourse };
|
|
1650
|
+
export { type ActiveSessionHandle, type AggregatedDocument, type AttachmentUploadResult, CardHistory, type CardPresentation, CardRecord, ContentNavigationStrategyData, type CouchDbUserDoc, CourseDBInterface, CourseLookup, CourseRegistrationDoc, type CustomQuestionsData, DEFAULT_MIGRATION_OPTIONS, type DataLayerConfig, DataLayerProvider, type DocumentCounts, ENV, type Entitlement, FileSystemAdapter, FilterKind, GeneratorResult, Loggable, type MigrationOptions, type MigrationResult, type MixerCardInfo, type MixerRunReport, NOT_SET, NavigatorRole, type OutcomeObserver, PIPELINE_STAGES, type PipelinePlan, type PipelineStageInfo, type PipelineStageKey, type PlannedNavigator, type PlannedNavigatorOrigin, type ProcessedDataShape, type ProcessedQuestionData, QuestionRecord, type QueueSnapshot, QuotaRoundRobinMixer, REVIEW_TIME_FORMAT, RegulatorConfig, ReplanHints, type ReplanOptions, type ResponseResult, type RestoreProgress, type SessionAction, SessionController, type SessionControls, type SessionDebugSnapshot, type SessionDebugTarget, type SessionDrawnCardDebug, SessionEloEvent, type SessionOutcome, type SessionQueueDebug, type SessionQueueItemDebug, type SessionRunReport, SessionStateSnapshotProvider, type SkippedStrategy, type SourceBatch, type SourceMixer, type SourceSelectionBreakdown, type SourceSummary, SrsBacklogDebug, StaticCourseManifest, type StaticCourseValidation, StaticToCouchDBMigrator, StrategyPressureDebug, StudyContentSource, StudySessionItem, type StudySessionRecord, TagFilteredContentSource, type UserAccountStatus, UserDBInterface, type UserEntitlements, type ValidationIssue, type ValidationResult, WeightedCard, _resetDataLayer, captureMixerRun, clearStaleSessionDebugState, endSessionTracking, ensureAppDataDirectory, getActiveController, getAppDataDirectory, getDataLayer, getDbPath, initializeDataDirectory, initializeDataLayer, isDataShapeRegistered, isDataShapeSchemaAvailable, isQuestionTypeRegistered, makeScheduledCardId, mixerDebugAPI, mountMixerDebugger, mountSessionDebugger, planPipeline, processCustomQuestionsData, recordCardPresentation, registerActiveController, registerBlanksCard, registerCustomQuestionTypes, registerDataShape, registerQuestionType, registerSeedData, removeCustomQuestionTypes, removeDataShape, removeQuestionType, sessionDebugAPI, snapshotQueues, startSessionTracking, toggleSessionOverlay, validateMigration, validateStaticCourse };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
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.js';
|
|
2
|
+
import { U as UserDBInterface, d as CourseRegistrationDoc, h as SessionEloEvent, l as StudySessionItem, W as WeightedCard, n as ReplanHints, o as StudyContentSource, x as SessionStateSnapshotProvider, G as GeneratorResult, N as NavigatorRole, b as ContentNavigationStrategyData, F as FilterKind, y as RegulatorConfig, C as CourseDBInterface } from './contentSource-CqJmbOZN.js';
|
|
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, m as ContentNavigator, v as ContentSourceID, k as CourseInfo, Q as CourseRegistration, a as CoursesDBInterface, aB as DEFAULT_REGULATOR_CONFIG, aM as DocumentUpdater, af as FilterContext, at as FilterImpact, ai as GeneratorContext, as as GeneratorSummary, _ as HYDRATION_MARKER_ID, $ as HydrationMarker, aF as INTAKE_CLOCK_KEY, aE as IntakeClockState, av as LearnableWeight, a0 as NavigatorConstructor, ab as NavigatorRoles, aa as Navigators, aw as OrchestrationContext, au as PipelineForecaster, aq as PipelineRunReport, g as RegulatorName, R as RegulatorReading, ar as RunReportCard, c as ScheduledCard, e as SessionStateSnapshot, M as SessionTrackingData, a8 as StrategyContribution, S as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, s as StudySessionNewItem, t as StudySessionReviewItem, i as StudySessionRunCard, j as StudySessionRunCardTrail, f as StudySessionRunSummary, O as UserConfig, H as UserCourseSetting, E as UserCourseSettings, B as UserDBAuthenticator, z as UserDBReader, A as UserDBWriter, Y as UserHydrationState, Z as UserHydrationStatus, T as UserOutcomeRecord, I as UsrCrsDataInterface, aL as applyReading, ax as computeDeviation, az as computeEffectiveWeight, ay as computeSpread, aA as createOrchestrationContext, ap as drainCapturedRuns, aH as frozenMsAt, am as getActivePipeline, a9 as getCardOrigin, aP as getLapses, a5 as getRegisteredFilterKind, a2 as getRegisteredNavigator, a6 as getRegisteredNavigatorNames, a4 as getRegisteredNavigatorRole, ao as getRunsForSession, aO as getStreak, w as getStudySource, a3 as hasRegisteredNavigator, a7 as initializeNavigatorRegistry, aI as intakeHours, aK as intakeReading, ad as isFilter, ac as isGenerator, u as isReview, V as makeStudySessionId, al as mountPipelineDebugger, aN as newInterval, X as newSessionId, ak as pipelineDebugAPI, a1 as registerNavigator, aG as resetIntakeClock, aD as reviewMassReading, aC as reviewWeight, an as setDebugSessionId, aJ as stepIntakeClock } from './contentSource-CqJmbOZN.js';
|
|
4
|
+
import { D as DataLayerProvider } from './dataLayerProvider-B9_UCvkR.js';
|
|
5
|
+
import { c as CardHistory, b as CardRecord, Q as QuestionRecord } from './types-legacy-BkOYOR6U.js';
|
|
6
|
+
export { C as CardData, g as CourseListData, h as DataShapeData, a as DisplayableData, D as DocType, f as DocTypePrefixes, F as Field, G as GuestUsername, d as QualifiedCardID, i as QuestionData, S as SkuilderCourseData, T as Tag, e as TagStub, l as log } from './types-legacy-BkOYOR6U.js';
|
|
6
7
|
import { SrsBacklogDebug, StrategyPressureDebug, Loggable } from './core/index.js';
|
|
7
|
-
export { BulkCardProcessorConfig,
|
|
8
|
+
export { BulkCardProcessorConfig, DIVERSITY_FLOOR, DIVERSITY_STRENGTH, DiversityRerankOptions, GradientObservation, GradientResult, ImportResult, PeriodUpdateInput, PeriodUpdateResult, PressureGaugeDebug, SignalConfig, StrategyLearningState, StrategyStateDoc, StrategyStateId, 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 } from './core/index.js';
|
|
8
9
|
import { TaggedPerformance, TagFilter, DataShape, CourseConfig } from '@vue-skuilder/common';
|
|
9
|
-
import { S as StaticCourseManifest } from './types-
|
|
10
|
-
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig } from './types-
|
|
11
|
-
import { F as FileSystemAdapter } from './index-
|
|
12
|
-
export { C as CouchDBToStaticPacker, a as FileStats, b as FileSystemError } from './index-
|
|
10
|
+
import { S as StaticCourseManifest } from './types-dXWfyz9B.js';
|
|
11
|
+
export { A as AttachmentData, C as ChunkMetadata, D as DesignDocument, I as IndexMetadata, a as PackedCourseData, P as PackerConfig } from './types-dXWfyz9B.js';
|
|
12
|
+
import { F as FileSystemAdapter } from './index-CVGehe_t.js';
|
|
13
|
+
export { C as CouchDBToStaticPacker, a as FileStats, b as FileSystemError } from './index-CVGehe_t.js';
|
|
13
14
|
import moment from 'moment';
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -1333,6 +1334,67 @@ declare const sessionDebugAPI: {
|
|
|
1333
1334
|
*/
|
|
1334
1335
|
declare function mountSessionDebugger(): void;
|
|
1335
1336
|
|
|
1337
|
+
type PlannedNavigatorOrigin =
|
|
1338
|
+
/** From the course's strategy documents. */
|
|
1339
|
+
'strategy-doc'
|
|
1340
|
+
/** Added by the assembler because the course declared none of its kind. */
|
|
1341
|
+
| 'assembler-default'
|
|
1342
|
+
/** Part of the fallback pipeline for a course with no strategy documents. */
|
|
1343
|
+
| 'default-pipeline';
|
|
1344
|
+
interface PlannedNavigator {
|
|
1345
|
+
role: NavigatorRole;
|
|
1346
|
+
origin: PlannedNavigatorOrigin;
|
|
1347
|
+
/** The name runs report this navigator under (generator summaries, filter impacts). */
|
|
1348
|
+
name: string;
|
|
1349
|
+
implementingClass: string;
|
|
1350
|
+
/** The strategy document: the course's own, or the default the assembler supplies. */
|
|
1351
|
+
strategy: ContentNavigationStrategyData;
|
|
1352
|
+
/**
|
|
1353
|
+
* Filters only: the kind its class declares (`static kind`), read from the
|
|
1354
|
+
* navigator registry. Undefined if undeclared, which runs as a gate.
|
|
1355
|
+
*/
|
|
1356
|
+
kind?: FilterKind;
|
|
1357
|
+
}
|
|
1358
|
+
interface SkippedStrategy {
|
|
1359
|
+
strategy: ContentNavigationStrategyData;
|
|
1360
|
+
reason: string;
|
|
1361
|
+
}
|
|
1362
|
+
interface PipelinePlan {
|
|
1363
|
+
/** Assembled from strategy documents, or the fallback for a course with none. */
|
|
1364
|
+
kind: 'assembled' | 'default';
|
|
1365
|
+
generators: PlannedNavigator[];
|
|
1366
|
+
/** In run order. */
|
|
1367
|
+
filters: PlannedNavigator[];
|
|
1368
|
+
skipped: SkippedStrategy[];
|
|
1369
|
+
warnings: string[];
|
|
1370
|
+
/** Consequences of the plan worth knowing that aren't errors. */
|
|
1371
|
+
notes: string[];
|
|
1372
|
+
/** The regulator stage's settings (see regulators.ts). */
|
|
1373
|
+
regulators: RegulatorConfig;
|
|
1374
|
+
}
|
|
1375
|
+
type PipelineStageKey = 'generate' | 'filter' | 'drop-zero' | 'regulate' | 'hints' | 'diversity' | 'select';
|
|
1376
|
+
/** One step of a pipeline run, in order. Shared by views and text exports. */
|
|
1377
|
+
interface PipelineStageInfo {
|
|
1378
|
+
key: PipelineStageKey;
|
|
1379
|
+
title: string;
|
|
1380
|
+
summary: string;
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* The steps every pipeline run takes, in order (`Pipeline.getWeightedCards`).
|
|
1384
|
+
* `generate` and `filter` are where a plan's navigators run; the rest are
|
|
1385
|
+
* fixed framework behaviour.
|
|
1386
|
+
*/
|
|
1387
|
+
declare const PIPELINE_STAGES: readonly PipelineStageInfo[];
|
|
1388
|
+
/**
|
|
1389
|
+
* Plan the pipeline a course's strategy documents assemble into.
|
|
1390
|
+
*
|
|
1391
|
+
* Mirrors the assembly rules: generators keep document order, with ELO and SRS
|
|
1392
|
+
* added when absent; an ELO distance filter is added when absent; filters run
|
|
1393
|
+
* sorted by name; unknown implementing classes are skipped with a warning. With no documents at all, describes the default
|
|
1394
|
+
* pipeline that `createDefaultPipeline` builds instead.
|
|
1395
|
+
*/
|
|
1396
|
+
declare function planPipeline(strategies: ContentNavigationStrategyData[], courseId: string): PipelinePlan;
|
|
1397
|
+
|
|
1336
1398
|
interface CourseLookupDoc {
|
|
1337
1399
|
_id: string;
|
|
1338
1400
|
_rev: string;
|
|
@@ -1585,4 +1647,4 @@ interface CouchDbUserDoc extends PouchDB.Authentication.User {
|
|
|
1585
1647
|
entitlements: UserEntitlements;
|
|
1586
1648
|
}
|
|
1587
1649
|
|
|
1588
|
-
export { type ActiveSessionHandle, type AggregatedDocument, type AttachmentUploadResult, CardHistory, type CardPresentation, CardRecord, type CouchDbUserDoc, CourseDBInterface, CourseLookup, CourseRegistrationDoc, type CustomQuestionsData, DEFAULT_MIGRATION_OPTIONS, type DataLayerConfig, DataLayerProvider, type DocumentCounts, ENV, type Entitlement, FileSystemAdapter, GeneratorResult, Loggable, type MigrationOptions, type MigrationResult, type MixerCardInfo, type MixerRunReport, NOT_SET, type OutcomeObserver, type ProcessedDataShape, type ProcessedQuestionData, QuestionRecord, type QueueSnapshot, QuotaRoundRobinMixer, REVIEW_TIME_FORMAT, ReplanHints, type ReplanOptions, type ResponseResult, type RestoreProgress, type SessionAction, SessionController, type SessionControls, type SessionDebugSnapshot, type SessionDebugTarget, type SessionDrawnCardDebug, SessionEloEvent, type SessionOutcome, type SessionQueueDebug, type SessionQueueItemDebug, type SessionRunReport, SessionStateSnapshotProvider, type SourceBatch, type SourceMixer, type SourceSelectionBreakdown, type SourceSummary, SrsBacklogDebug, StaticCourseManifest, type StaticCourseValidation, StaticToCouchDBMigrator, StrategyPressureDebug, StudyContentSource, StudySessionItem, type StudySessionRecord, TagFilteredContentSource, type UserAccountStatus, UserDBInterface, type UserEntitlements, type ValidationIssue, type ValidationResult, WeightedCard, _resetDataLayer, captureMixerRun, clearStaleSessionDebugState, endSessionTracking, ensureAppDataDirectory, getActiveController, getAppDataDirectory, getDataLayer, getDbPath, initializeDataDirectory, initializeDataLayer, isDataShapeRegistered, isDataShapeSchemaAvailable, isQuestionTypeRegistered, makeScheduledCardId, mixerDebugAPI, mountMixerDebugger, mountSessionDebugger, processCustomQuestionsData, recordCardPresentation, registerActiveController, registerBlanksCard, registerCustomQuestionTypes, registerDataShape, registerQuestionType, registerSeedData, removeCustomQuestionTypes, removeDataShape, removeQuestionType, sessionDebugAPI, snapshotQueues, startSessionTracking, toggleSessionOverlay, validateMigration, validateStaticCourse };
|
|
1650
|
+
export { type ActiveSessionHandle, type AggregatedDocument, type AttachmentUploadResult, CardHistory, type CardPresentation, CardRecord, ContentNavigationStrategyData, type CouchDbUserDoc, CourseDBInterface, CourseLookup, CourseRegistrationDoc, type CustomQuestionsData, DEFAULT_MIGRATION_OPTIONS, type DataLayerConfig, DataLayerProvider, type DocumentCounts, ENV, type Entitlement, FileSystemAdapter, FilterKind, GeneratorResult, Loggable, type MigrationOptions, type MigrationResult, type MixerCardInfo, type MixerRunReport, NOT_SET, NavigatorRole, type OutcomeObserver, PIPELINE_STAGES, type PipelinePlan, type PipelineStageInfo, type PipelineStageKey, type PlannedNavigator, type PlannedNavigatorOrigin, type ProcessedDataShape, type ProcessedQuestionData, QuestionRecord, type QueueSnapshot, QuotaRoundRobinMixer, REVIEW_TIME_FORMAT, RegulatorConfig, ReplanHints, type ReplanOptions, type ResponseResult, type RestoreProgress, type SessionAction, SessionController, type SessionControls, type SessionDebugSnapshot, type SessionDebugTarget, type SessionDrawnCardDebug, SessionEloEvent, type SessionOutcome, type SessionQueueDebug, type SessionQueueItemDebug, type SessionRunReport, SessionStateSnapshotProvider, type SkippedStrategy, type SourceBatch, type SourceMixer, type SourceSelectionBreakdown, type SourceSummary, SrsBacklogDebug, StaticCourseManifest, type StaticCourseValidation, StaticToCouchDBMigrator, StrategyPressureDebug, StudyContentSource, StudySessionItem, type StudySessionRecord, TagFilteredContentSource, type UserAccountStatus, UserDBInterface, type UserEntitlements, type ValidationIssue, type ValidationResult, WeightedCard, _resetDataLayer, captureMixerRun, clearStaleSessionDebugState, endSessionTracking, ensureAppDataDirectory, getActiveController, getAppDataDirectory, getDataLayer, getDbPath, initializeDataDirectory, initializeDataLayer, isDataShapeRegistered, isDataShapeSchemaAvailable, isQuestionTypeRegistered, makeScheduledCardId, mixerDebugAPI, mountMixerDebugger, mountSessionDebugger, planPipeline, processCustomQuestionsData, recordCardPresentation, registerActiveController, registerBlanksCard, registerCustomQuestionTypes, registerDataShape, registerQuestionType, registerSeedData, removeCustomQuestionTypes, removeDataShape, removeQuestionType, sessionDebugAPI, snapshotQueues, startSessionTracking, toggleSessionOverlay, validateMigration, validateStaticCourse };
|