@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
package/dist/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 { U as UserDBInterface, d as CourseRegistrationDoc, i 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-
|
|
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, h 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, g 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-
|
|
4
|
-
import { D as DataLayerProvider } from './dataLayerProvider-
|
|
2
|
+
import { U as UserDBInterface, d as CourseRegistrationDoc, i 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-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, 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, h 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, g 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-CTQ4kWhR.cjs';
|
|
4
|
+
import { D as DataLayerProvider } from './dataLayerProvider-DfI_KYAe.cjs';
|
|
5
5
|
import { c as CardHistory, b as CardRecord, Q as QuestionRecord } from './types-legacy-BkOYOR6U.cjs';
|
|
6
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';
|
|
7
7
|
import { SrsBacklogDebug, StrategyPressureDebug, Loggable } from './core/index.cjs';
|
|
@@ -1583,6 +1583,8 @@ interface DataLayerConfig {
|
|
|
1583
1583
|
options: {
|
|
1584
1584
|
staticContentPath?: string;
|
|
1585
1585
|
localStoragePrefix?: string;
|
|
1586
|
+
/** The host app's version (e.g. a git SHA), stamped on every study session it records. */
|
|
1587
|
+
appVersion?: string;
|
|
1586
1588
|
manifests?: Record<string, StaticCourseManifest>;
|
|
1587
1589
|
COUCHDB_SERVER_URL?: string;
|
|
1588
1590
|
COUCHDB_SERVER_PROTOCOL?: string;
|
package/dist/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 { U as UserDBInterface, d as CourseRegistrationDoc, i 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-
|
|
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, h 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, g 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-
|
|
4
|
-
import { D as DataLayerProvider } from './dataLayerProvider-
|
|
2
|
+
import { U as UserDBInterface, d as CourseRegistrationDoc, i 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-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, 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, h 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, g 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-JmWYu8IK.js';
|
|
4
|
+
import { D as DataLayerProvider } from './dataLayerProvider-rlLE2Mf-.js';
|
|
5
5
|
import { c as CardHistory, b as CardRecord, Q as QuestionRecord } from './types-legacy-BkOYOR6U.js';
|
|
6
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';
|
|
7
7
|
import { SrsBacklogDebug, StrategyPressureDebug, Loggable } from './core/index.js';
|
|
@@ -1583,6 +1583,8 @@ interface DataLayerConfig {
|
|
|
1583
1583
|
options: {
|
|
1584
1584
|
staticContentPath?: string;
|
|
1585
1585
|
localStoragePrefix?: string;
|
|
1586
|
+
/** The host app's version (e.g. a git SHA), stamped on every study session it records. */
|
|
1587
|
+
appVersion?: string;
|
|
1586
1588
|
manifests?: Record<string, StaticCourseManifest>;
|
|
1587
1589
|
COUCHDB_SERVER_URL?: string;
|
|
1588
1590
|
COUCHDB_SERVER_PROTOCOL?: string;
|
package/dist/index.js
CHANGED
|
@@ -4792,6 +4792,11 @@ var init_Pipeline = __esm({
|
|
|
4792
4792
|
* This eliminates a remote getCourseConfig() round trip per pipeline run.
|
|
4793
4793
|
*/
|
|
4794
4794
|
_cachedOrchestration = null;
|
|
4795
|
+
/**
|
|
4796
|
+
* Hash of the strategy docs this pipeline was assembled from (see
|
|
4797
|
+
* versionStamps.ts), set by whoever builds it. Stamped on every run.
|
|
4798
|
+
*/
|
|
4799
|
+
strategyHash;
|
|
4795
4800
|
/**
|
|
4796
4801
|
* Persistent tag cache. Maps cardId → tag names.
|
|
4797
4802
|
*
|
|
@@ -4985,7 +4990,8 @@ var init_Pipeline = __esm({
|
|
|
4985
4990
|
logResultCards(result);
|
|
4986
4991
|
logCardProvenance(result, 3);
|
|
4987
4992
|
try {
|
|
4988
|
-
const
|
|
4993
|
+
const courseConfig = await this.course?.getCourseConfig().catch(() => void 0);
|
|
4994
|
+
const courseName = courseConfig?.name;
|
|
4989
4995
|
const report = buildRunReport(
|
|
4990
4996
|
this.course?.getCourseID() || "unknown",
|
|
4991
4997
|
courseName,
|
|
@@ -5000,7 +5006,11 @@ var init_Pipeline = __esm({
|
|
|
5000
5006
|
scoredCards,
|
|
5001
5007
|
regulators
|
|
5002
5008
|
);
|
|
5003
|
-
|
|
5009
|
+
const versions = {
|
|
5010
|
+
...this.strategyHash ? { strategies: this.strategyHash } : {},
|
|
5011
|
+
...courseConfig?.contentVersion ? { content: courseConfig.contentVersion } : {}
|
|
5012
|
+
};
|
|
5013
|
+
captureRun({ ...report, ...Object.keys(versions).length ? { versions } : {} });
|
|
5004
5014
|
} catch (e) {
|
|
5005
5015
|
logger.debug(`[Pipeline] Failed to capture debug run: ${e}`);
|
|
5006
5016
|
}
|
|
@@ -5497,6 +5507,43 @@ var init_Pipeline = __esm({
|
|
|
5497
5507
|
}
|
|
5498
5508
|
});
|
|
5499
5509
|
|
|
5510
|
+
// src/core/versionStamps.ts
|
|
5511
|
+
function setAppVersion(version) {
|
|
5512
|
+
hostAppVersion = version;
|
|
5513
|
+
}
|
|
5514
|
+
function sessionVersions() {
|
|
5515
|
+
return { framework: FRAMEWORK_VERSION, ...hostAppVersion ? { app: hostAppVersion } : {} };
|
|
5516
|
+
}
|
|
5517
|
+
function stableStringify(value) {
|
|
5518
|
+
if (Array.isArray(value)) return `[${value.map(stableStringify).join(",")}]`;
|
|
5519
|
+
if (value && typeof value === "object") {
|
|
5520
|
+
const entries = Object.entries(value).filter(([, v]) => v !== void 0).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
5521
|
+
return `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${stableStringify(v)}`).join(",")}}`;
|
|
5522
|
+
}
|
|
5523
|
+
return JSON.stringify(value);
|
|
5524
|
+
}
|
|
5525
|
+
function strategyHash(strategies) {
|
|
5526
|
+
if (strategies.length === 0) return DEFAULT_STRATEGY_HASH;
|
|
5527
|
+
const text = strategies.map((s) => {
|
|
5528
|
+
const { _rev: _ignored, ...rest } = s;
|
|
5529
|
+
return stableStringify(rest);
|
|
5530
|
+
}).sort().join("\n");
|
|
5531
|
+
let h = 2166136261;
|
|
5532
|
+
for (let i = 0; i < text.length; i++) {
|
|
5533
|
+
h ^= text.charCodeAt(i);
|
|
5534
|
+
h = Math.imul(h, 16777619);
|
|
5535
|
+
}
|
|
5536
|
+
return (h >>> 0).toString(16).padStart(8, "0");
|
|
5537
|
+
}
|
|
5538
|
+
var FRAMEWORK_VERSION, hostAppVersion, DEFAULT_STRATEGY_HASH;
|
|
5539
|
+
var init_versionStamps = __esm({
|
|
5540
|
+
"src/core/versionStamps.ts"() {
|
|
5541
|
+
"use strict";
|
|
5542
|
+
FRAMEWORK_VERSION = true ? "0.2.32" : "dev";
|
|
5543
|
+
DEFAULT_STRATEGY_HASH = "default";
|
|
5544
|
+
}
|
|
5545
|
+
});
|
|
5546
|
+
|
|
5500
5547
|
// src/core/navigators/defaults.ts
|
|
5501
5548
|
var defaults_exports = {};
|
|
5502
5549
|
__export(defaults_exports, {
|
|
@@ -5549,7 +5596,9 @@ function createDefaultPipeline(user, course) {
|
|
|
5549
5596
|
course,
|
|
5550
5597
|
createDefaultEloDistanceStrategy(courseId)
|
|
5551
5598
|
);
|
|
5552
|
-
|
|
5599
|
+
const pipeline = new Pipeline(compositeGenerator, [eloDistanceFilter], user, course);
|
|
5600
|
+
pipeline.strategyHash = DEFAULT_STRATEGY_HASH;
|
|
5601
|
+
return pipeline;
|
|
5553
5602
|
}
|
|
5554
5603
|
var init_defaults = __esm({
|
|
5555
5604
|
"src/core/navigators/defaults.ts"() {
|
|
@@ -5561,6 +5610,7 @@ var init_defaults = __esm({
|
|
|
5561
5610
|
init_srs();
|
|
5562
5611
|
init_eloDistance();
|
|
5563
5612
|
init_types_legacy();
|
|
5613
|
+
init_versionStamps();
|
|
5564
5614
|
}
|
|
5565
5615
|
});
|
|
5566
5616
|
|
|
@@ -5704,6 +5754,7 @@ var init_PipelineAssembler = __esm({
|
|
|
5704
5754
|
init_logger();
|
|
5705
5755
|
init_CompositeGenerator();
|
|
5706
5756
|
init_pipelinePlan();
|
|
5757
|
+
init_versionStamps();
|
|
5707
5758
|
PipelineAssembler = class {
|
|
5708
5759
|
/**
|
|
5709
5760
|
* Assembles a navigation pipeline from strategy documents.
|
|
@@ -5785,6 +5836,7 @@ var init_PipelineAssembler = __esm({
|
|
|
5785
5836
|
}
|
|
5786
5837
|
}
|
|
5787
5838
|
const pipeline = new Pipeline(generator, filters, user, course);
|
|
5839
|
+
pipeline.strategyHash = strategyHash(strategies);
|
|
5788
5840
|
logger.debug(
|
|
5789
5841
|
`[PipelineAssembler] Assembled pipeline with ${generatorStrategies.length} generator(s) and ${filters.length} filter(s)`
|
|
5790
5842
|
);
|
|
@@ -11708,6 +11760,7 @@ var init_SessionController = __esm({
|
|
|
11708
11760
|
init_util2();
|
|
11709
11761
|
init_navigators();
|
|
11710
11762
|
init_Pipeline();
|
|
11763
|
+
init_versionStamps();
|
|
11711
11764
|
init_SourceMixer();
|
|
11712
11765
|
init_MixerDebugger();
|
|
11713
11766
|
init_SessionDebugger();
|
|
@@ -12006,7 +12059,8 @@ var init_SessionController = __esm({
|
|
|
12006
12059
|
...run.discardedTail ? { discardedTail: run.discardedTail } : {},
|
|
12007
12060
|
cards: persistedRunCards(run),
|
|
12008
12061
|
...run.unselectedNew ? { unselectedNew: persistedUnselectedNew(run.unselectedNew) } : {},
|
|
12009
|
-
...run.regulators ? { regulators: run.regulators.map(persistedReading) } : {}
|
|
12062
|
+
...run.regulators ? { regulators: run.regulators.map(persistedReading) } : {},
|
|
12063
|
+
...run.versions ? { versions: run.versions } : {}
|
|
12010
12064
|
});
|
|
12011
12065
|
}
|
|
12012
12066
|
}
|
|
@@ -12043,6 +12097,7 @@ var init_SessionController = __esm({
|
|
|
12043
12097
|
sourceCount: this.sources.length,
|
|
12044
12098
|
initHints: this._sessionHints
|
|
12045
12099
|
},
|
|
12100
|
+
versions: sessionVersions(),
|
|
12046
12101
|
initialQueues: { supplyQ: this.supplyQ.length, failedQ: this.failedQ.length },
|
|
12047
12102
|
runs: [...this._runLog],
|
|
12048
12103
|
stateAtStart: await this._captureState("start")
|
|
@@ -15749,6 +15804,9 @@ async function initializeDataLayer(config) {
|
|
|
15749
15804
|
if (config.options.localStoragePrefix) {
|
|
15750
15805
|
ENV.LOCAL_STORAGE_PREFIX = config.options.localStoragePrefix;
|
|
15751
15806
|
}
|
|
15807
|
+
if (config.options.appVersion) {
|
|
15808
|
+
setAppVersion(config.options.appVersion);
|
|
15809
|
+
}
|
|
15752
15810
|
if (config.type === "couch") {
|
|
15753
15811
|
if (!config.options.COUCHDB_SERVER_URL || !config.options.COUCHDB_SERVER_PROTOCOL) {
|
|
15754
15812
|
throw new Error("Missing CouchDB server URL or protocol");
|
|
@@ -15805,6 +15863,7 @@ var init_factory = __esm({
|
|
|
15805
15863
|
init_common();
|
|
15806
15864
|
init_logger();
|
|
15807
15865
|
init_navigators();
|
|
15866
|
+
init_versionStamps();
|
|
15808
15867
|
NOT_SET = "NOT_SET";
|
|
15809
15868
|
ENV = {
|
|
15810
15869
|
COUCHDB_SERVER_PROTOCOL: NOT_SET,
|