@vue-skuilder/db 0.2.31 → 0.2.32
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-Doh1aVBJ.d.cts → contentSource-CTQ4kWhR.d.cts} +22 -0
- package/dist/{contentSource-DMduBjDC.d.ts → contentSource-JmWYu8IK.d.ts} +22 -0
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +50 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +50 -3
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-BW1CBAbb.d.cts → dataLayerProvider-DfI_KYAe.d.cts} +1 -1
- package/dist/{dataLayerProvider-Cxfe4nSK.d.ts → dataLayerProvider-rlLE2Mf-.d.ts} +1 -1
- package/dist/diagnostics/index.d.cts +2 -2
- package/dist/diagnostics/index.d.ts +2 -2
- package/dist/diagnostics/index.js +12 -0
- package/dist/diagnostics/index.js.map +1 -1
- package/dist/diagnostics/index.mjs +12 -0
- package/dist/diagnostics/index.mjs.map +1 -1
- package/dist/impl/couch/index.d.cts +8 -2
- package/dist/impl/couch/index.d.ts +8 -2
- package/dist/impl/couch/index.js +50 -3
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +50 -3
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.d.cts +2 -2
- package/dist/impl/static/index.d.ts +2 -2
- package/dist/impl/static/index.js +50 -3
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +50 -3
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +63 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/navigators/Pipeline.ts +13 -2
- package/src/core/navigators/PipelineAssembler.ts +2 -0
- package/src/core/navigators/PipelineDebugger.ts +12 -0
- package/src/core/navigators/defaults.ts +4 -1
- package/src/core/types/studySession.ts +11 -1
- package/src/core/versionStamps.ts +66 -0
- package/src/diagnostics/text.ts +13 -0
- package/src/factory.ts +6 -0
- package/src/study/SessionController.ts +3 -0
- package/tsup.config.ts +5 -0
|
@@ -578,6 +578,11 @@ interface FilterImpact {
|
|
|
578
578
|
passed: number;
|
|
579
579
|
removed: number;
|
|
580
580
|
}
|
|
581
|
+
/** A run's version stamps. Either may be absent: no strategy hash, or no content version set. */
|
|
582
|
+
interface RunVersions {
|
|
583
|
+
strategies?: string;
|
|
584
|
+
content?: string;
|
|
585
|
+
}
|
|
581
586
|
/** One card as retained in a {@link PipelineRunReport}. */
|
|
582
587
|
interface RunReportCard {
|
|
583
588
|
cardId: string;
|
|
@@ -646,6 +651,11 @@ interface PipelineRunReport {
|
|
|
646
651
|
};
|
|
647
652
|
/** The regulator stage's readings: each class's pressure and the multiplier it got. */
|
|
648
653
|
regulators?: RegulatorReading[];
|
|
654
|
+
/**
|
|
655
|
+
* What this run ran on (see versionStamps.ts): the hash of the strategy docs
|
|
656
|
+
* the pipeline was assembled from, and the course's content version.
|
|
657
|
+
*/
|
|
658
|
+
versions?: RunVersions;
|
|
649
659
|
/**
|
|
650
660
|
* Summary of the discarded tail of the candidate pool — cards that were
|
|
651
661
|
* generated and scored but neither selected nor retained in `cards`.
|
|
@@ -817,6 +827,16 @@ interface StudySessionDoc {
|
|
|
817
827
|
sourceCount: number;
|
|
818
828
|
initHints?: ReplanHints | null;
|
|
819
829
|
};
|
|
830
|
+
/**
|
|
831
|
+
* The code this session ran on: the framework's version (`'dev'` when run
|
|
832
|
+
* from source) and the host app's, if it reported one (`appVersion` in the
|
|
833
|
+
* data-layer config). Strategy and content versions are stamped per run.
|
|
834
|
+
* Absent on sessions recorded before this shipped.
|
|
835
|
+
*/
|
|
836
|
+
versions?: {
|
|
837
|
+
framework: string;
|
|
838
|
+
app?: string;
|
|
839
|
+
};
|
|
820
840
|
/** Queue depths after the bootstrap run, before the first draw. */
|
|
821
841
|
initialQueues: {
|
|
822
842
|
supplyQ: number;
|
|
@@ -889,6 +909,8 @@ interface StudySessionRunSummary {
|
|
|
889
909
|
};
|
|
890
910
|
/** The regulator stage's readings: review mass and intake, each with its multiplier (0.2.29+). */
|
|
891
911
|
regulators?: RegulatorReading[];
|
|
912
|
+
/** What the run ran on: the strategy docs' hash and the course's content version. */
|
|
913
|
+
versions?: RunVersions;
|
|
892
914
|
}
|
|
893
915
|
/** A card as persisted on a run. `origin` is as counted in `newSelected`/`reviewsSelected`. */
|
|
894
916
|
interface StudySessionRunCard {
|
|
@@ -578,6 +578,11 @@ interface FilterImpact {
|
|
|
578
578
|
passed: number;
|
|
579
579
|
removed: number;
|
|
580
580
|
}
|
|
581
|
+
/** A run's version stamps. Either may be absent: no strategy hash, or no content version set. */
|
|
582
|
+
interface RunVersions {
|
|
583
|
+
strategies?: string;
|
|
584
|
+
content?: string;
|
|
585
|
+
}
|
|
581
586
|
/** One card as retained in a {@link PipelineRunReport}. */
|
|
582
587
|
interface RunReportCard {
|
|
583
588
|
cardId: string;
|
|
@@ -646,6 +651,11 @@ interface PipelineRunReport {
|
|
|
646
651
|
};
|
|
647
652
|
/** The regulator stage's readings: each class's pressure and the multiplier it got. */
|
|
648
653
|
regulators?: RegulatorReading[];
|
|
654
|
+
/**
|
|
655
|
+
* What this run ran on (see versionStamps.ts): the hash of the strategy docs
|
|
656
|
+
* the pipeline was assembled from, and the course's content version.
|
|
657
|
+
*/
|
|
658
|
+
versions?: RunVersions;
|
|
649
659
|
/**
|
|
650
660
|
* Summary of the discarded tail of the candidate pool — cards that were
|
|
651
661
|
* generated and scored but neither selected nor retained in `cards`.
|
|
@@ -817,6 +827,16 @@ interface StudySessionDoc {
|
|
|
817
827
|
sourceCount: number;
|
|
818
828
|
initHints?: ReplanHints | null;
|
|
819
829
|
};
|
|
830
|
+
/**
|
|
831
|
+
* The code this session ran on: the framework's version (`'dev'` when run
|
|
832
|
+
* from source) and the host app's, if it reported one (`appVersion` in the
|
|
833
|
+
* data-layer config). Strategy and content versions are stamped per run.
|
|
834
|
+
* Absent on sessions recorded before this shipped.
|
|
835
|
+
*/
|
|
836
|
+
versions?: {
|
|
837
|
+
framework: string;
|
|
838
|
+
app?: string;
|
|
839
|
+
};
|
|
820
840
|
/** Queue depths after the bootstrap run, before the first draw. */
|
|
821
841
|
initialQueues: {
|
|
822
842
|
supplyQ: number;
|
|
@@ -889,6 +909,8 @@ interface StudySessionRunSummary {
|
|
|
889
909
|
};
|
|
890
910
|
/** The regulator stage's readings: review mass and intake, each with its multiplier (0.2.29+). */
|
|
891
911
|
regulators?: RegulatorReading[];
|
|
912
|
+
/** What the run ran on: the strategy docs' hash and the course's content version. */
|
|
913
|
+
versions?: RunVersions;
|
|
892
914
|
}
|
|
893
915
|
/** A card as persisted on a run. `origin` is as counted in `newSelected`/`reviewsSelected`. */
|
|
894
916
|
interface StudySessionRunCard {
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
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, b as ContentNavigationStrategyData, m as ContentNavigator, v as ContentSourceID, k as CourseInfo, Q as CourseRegistration, d 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, n as ReplanHints, ar as RunReportCard, c as ScheduledCard, i as SessionEloEvent, e as SessionStateSnapshot, x as SessionStateSnapshotProvider, M as SessionTrackingData, a8 as StrategyContribution, o as StudyContentSource, S as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, l as StudySessionItem, s as StudySessionNewItem, t as StudySessionReviewItem, g as StudySessionRunCard, j as StudySessionRunCardTrail, f 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-
|
|
4
|
-
export { D as DataLayerProvider } from '../dataLayerProvider-
|
|
2
|
+
import { av as LearnableWeight, T as UserOutcomeRecord, aw as OrchestrationContext, W as WeightedCard, C as CourseDBInterface } from '../contentSource-CTQ4kWhR.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, b as ContentNavigationStrategyData, m as ContentNavigator, v as ContentSourceID, k as CourseInfo, Q as CourseRegistration, d 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, n as ReplanHints, ar as RunReportCard, c as ScheduledCard, i as SessionEloEvent, e as SessionStateSnapshot, x as SessionStateSnapshotProvider, M as SessionTrackingData, a8 as StrategyContribution, o as StudyContentSource, S as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, l as StudySessionItem, s as StudySessionNewItem, t as StudySessionReviewItem, g as StudySessionRunCard, j as StudySessionRunCardTrail, f 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-CTQ4kWhR.cjs';
|
|
4
|
+
export { D as DataLayerProvider } from '../dataLayerProvider-DfI_KYAe.cjs';
|
|
5
5
|
import { D as DocType, Q as QuestionRecord, f as DocTypePrefixes, c as CardHistory, b as CardRecord } from '../types-legacy-BkOYOR6U.cjs';
|
|
6
6
|
export { C as CardData, g as CourseListData, h as DataShapeData, a as DisplayableData, 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';
|
|
7
7
|
import { DataShape, ParsedCard } from '@vue-skuilder/common';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { av as LearnableWeight, T as UserOutcomeRecord, aw as OrchestrationContext, W as WeightedCard, C as CourseDBInterface } from '../contentSource-
|
|
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, b as ContentNavigationStrategyData, m as ContentNavigator, v as ContentSourceID, k as CourseInfo, Q as CourseRegistration, d 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, n as ReplanHints, ar as RunReportCard, c as ScheduledCard, i as SessionEloEvent, e as SessionStateSnapshot, x as SessionStateSnapshotProvider, M as SessionTrackingData, a8 as StrategyContribution, o as StudyContentSource, S as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, l as StudySessionItem, s as StudySessionNewItem, t as StudySessionReviewItem, g as StudySessionRunCard, j as StudySessionRunCardTrail, f 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-
|
|
4
|
-
export { D as DataLayerProvider } from '../dataLayerProvider-
|
|
2
|
+
import { av as LearnableWeight, T as UserOutcomeRecord, aw as OrchestrationContext, W as WeightedCard, C as CourseDBInterface } from '../contentSource-JmWYu8IK.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, b as ContentNavigationStrategyData, m as ContentNavigator, v as ContentSourceID, k as CourseInfo, Q as CourseRegistration, d 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, n as ReplanHints, ar as RunReportCard, c as ScheduledCard, i as SessionEloEvent, e as SessionStateSnapshot, x as SessionStateSnapshotProvider, M as SessionTrackingData, a8 as StrategyContribution, o as StudyContentSource, S as StudySessionDoc, p as StudySessionFailedItem, q as StudySessionFailedNewItem, r as StudySessionFailedReviewItem, l as StudySessionItem, s as StudySessionNewItem, t as StudySessionReviewItem, g as StudySessionRunCard, j as StudySessionRunCardTrail, f 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-JmWYu8IK.js';
|
|
4
|
+
export { D as DataLayerProvider } from '../dataLayerProvider-rlLE2Mf-.js';
|
|
5
5
|
import { D as DocType, Q as QuestionRecord, f as DocTypePrefixes, c as CardHistory, b as CardRecord } from '../types-legacy-BkOYOR6U.js';
|
|
6
6
|
export { C as CardData, g as CourseListData, h as DataShapeData, a as DisplayableData, 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';
|
|
7
7
|
import { DataShape, ParsedCard } from '@vue-skuilder/common';
|
package/dist/core/index.js
CHANGED
|
@@ -4681,6 +4681,11 @@ var init_Pipeline = __esm({
|
|
|
4681
4681
|
* This eliminates a remote getCourseConfig() round trip per pipeline run.
|
|
4682
4682
|
*/
|
|
4683
4683
|
_cachedOrchestration = null;
|
|
4684
|
+
/**
|
|
4685
|
+
* Hash of the strategy docs this pipeline was assembled from (see
|
|
4686
|
+
* versionStamps.ts), set by whoever builds it. Stamped on every run.
|
|
4687
|
+
*/
|
|
4688
|
+
strategyHash;
|
|
4684
4689
|
/**
|
|
4685
4690
|
* Persistent tag cache. Maps cardId → tag names.
|
|
4686
4691
|
*
|
|
@@ -4874,7 +4879,8 @@ var init_Pipeline = __esm({
|
|
|
4874
4879
|
logResultCards(result);
|
|
4875
4880
|
logCardProvenance(result, 3);
|
|
4876
4881
|
try {
|
|
4877
|
-
const
|
|
4882
|
+
const courseConfig = await this.course?.getCourseConfig().catch(() => void 0);
|
|
4883
|
+
const courseName = courseConfig?.name;
|
|
4878
4884
|
const report = buildRunReport(
|
|
4879
4885
|
this.course?.getCourseID() || "unknown",
|
|
4880
4886
|
courseName,
|
|
@@ -4889,7 +4895,11 @@ var init_Pipeline = __esm({
|
|
|
4889
4895
|
scoredCards,
|
|
4890
4896
|
regulators
|
|
4891
4897
|
);
|
|
4892
|
-
|
|
4898
|
+
const versions = {
|
|
4899
|
+
...this.strategyHash ? { strategies: this.strategyHash } : {},
|
|
4900
|
+
...courseConfig?.contentVersion ? { content: courseConfig.contentVersion } : {}
|
|
4901
|
+
};
|
|
4902
|
+
captureRun({ ...report, ...Object.keys(versions).length ? { versions } : {} });
|
|
4893
4903
|
} catch (e) {
|
|
4894
4904
|
logger.debug(`[Pipeline] Failed to capture debug run: ${e}`);
|
|
4895
4905
|
}
|
|
@@ -5386,6 +5396,36 @@ var init_Pipeline = __esm({
|
|
|
5386
5396
|
}
|
|
5387
5397
|
});
|
|
5388
5398
|
|
|
5399
|
+
// src/core/versionStamps.ts
|
|
5400
|
+
function stableStringify(value) {
|
|
5401
|
+
if (Array.isArray(value)) return `[${value.map(stableStringify).join(",")}]`;
|
|
5402
|
+
if (value && typeof value === "object") {
|
|
5403
|
+
const entries = Object.entries(value).filter(([, v]) => v !== void 0).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
5404
|
+
return `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${stableStringify(v)}`).join(",")}}`;
|
|
5405
|
+
}
|
|
5406
|
+
return JSON.stringify(value);
|
|
5407
|
+
}
|
|
5408
|
+
function strategyHash(strategies) {
|
|
5409
|
+
if (strategies.length === 0) return DEFAULT_STRATEGY_HASH;
|
|
5410
|
+
const text = strategies.map((s) => {
|
|
5411
|
+
const { _rev: _ignored, ...rest } = s;
|
|
5412
|
+
return stableStringify(rest);
|
|
5413
|
+
}).sort().join("\n");
|
|
5414
|
+
let h = 2166136261;
|
|
5415
|
+
for (let i = 0; i < text.length; i++) {
|
|
5416
|
+
h ^= text.charCodeAt(i);
|
|
5417
|
+
h = Math.imul(h, 16777619);
|
|
5418
|
+
}
|
|
5419
|
+
return (h >>> 0).toString(16).padStart(8, "0");
|
|
5420
|
+
}
|
|
5421
|
+
var DEFAULT_STRATEGY_HASH;
|
|
5422
|
+
var init_versionStamps = __esm({
|
|
5423
|
+
"src/core/versionStamps.ts"() {
|
|
5424
|
+
"use strict";
|
|
5425
|
+
DEFAULT_STRATEGY_HASH = "default";
|
|
5426
|
+
}
|
|
5427
|
+
});
|
|
5428
|
+
|
|
5389
5429
|
// src/core/navigators/defaults.ts
|
|
5390
5430
|
var defaults_exports = {};
|
|
5391
5431
|
__export(defaults_exports, {
|
|
@@ -5438,7 +5478,9 @@ function createDefaultPipeline(user, course) {
|
|
|
5438
5478
|
course,
|
|
5439
5479
|
createDefaultEloDistanceStrategy(courseId)
|
|
5440
5480
|
);
|
|
5441
|
-
|
|
5481
|
+
const pipeline = new Pipeline(compositeGenerator, [eloDistanceFilter], user, course);
|
|
5482
|
+
pipeline.strategyHash = DEFAULT_STRATEGY_HASH;
|
|
5483
|
+
return pipeline;
|
|
5442
5484
|
}
|
|
5443
5485
|
var init_defaults = __esm({
|
|
5444
5486
|
"src/core/navigators/defaults.ts"() {
|
|
@@ -5450,6 +5492,7 @@ var init_defaults = __esm({
|
|
|
5450
5492
|
init_srs();
|
|
5451
5493
|
init_eloDistance();
|
|
5452
5494
|
init_types_legacy();
|
|
5495
|
+
init_versionStamps();
|
|
5453
5496
|
}
|
|
5454
5497
|
});
|
|
5455
5498
|
|
|
@@ -5593,6 +5636,7 @@ var init_PipelineAssembler = __esm({
|
|
|
5593
5636
|
init_logger();
|
|
5594
5637
|
init_CompositeGenerator();
|
|
5595
5638
|
init_pipelinePlan();
|
|
5639
|
+
init_versionStamps();
|
|
5596
5640
|
PipelineAssembler = class {
|
|
5597
5641
|
/**
|
|
5598
5642
|
* Assembles a navigation pipeline from strategy documents.
|
|
@@ -5674,6 +5718,7 @@ var init_PipelineAssembler = __esm({
|
|
|
5674
5718
|
}
|
|
5675
5719
|
}
|
|
5676
5720
|
const pipeline = new Pipeline(generator, filters, user, course);
|
|
5721
|
+
pipeline.strategyHash = strategyHash(strategies);
|
|
5677
5722
|
logger.debug(
|
|
5678
5723
|
`[PipelineAssembler] Assembled pipeline with ${generatorStrategies.length} generator(s) and ${filters.length} filter(s)`
|
|
5679
5724
|
);
|
|
@@ -9117,6 +9162,7 @@ var init_SessionController = __esm({
|
|
|
9117
9162
|
init_util2();
|
|
9118
9163
|
init_navigators();
|
|
9119
9164
|
init_Pipeline();
|
|
9165
|
+
init_versionStamps();
|
|
9120
9166
|
init_SourceMixer();
|
|
9121
9167
|
init_MixerDebugger();
|
|
9122
9168
|
init_SessionDebugger();
|
|
@@ -10677,6 +10723,7 @@ var init_factory = __esm({
|
|
|
10677
10723
|
init_common();
|
|
10678
10724
|
init_logger();
|
|
10679
10725
|
init_navigators();
|
|
10726
|
+
init_versionStamps();
|
|
10680
10727
|
NOT_SET = "NOT_SET";
|
|
10681
10728
|
ENV = {
|
|
10682
10729
|
COUCHDB_SERVER_PROTOCOL: NOT_SET,
|