@vue-skuilder/standalone-ui 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.
@@ -25796,6 +25796,27 @@ function logCardProvenance(t, c = 3) {
25796
25796
  }
25797
25797
  }
25798
25798
  }
25799
+ function setAppVersion(t) {
25800
+ hostAppVersion = t;
25801
+ }
25802
+ function sessionVersions() {
25803
+ return {
25804
+ framework: FRAMEWORK_VERSION,
25805
+ ...hostAppVersion ? { app: hostAppVersion } : {}
25806
+ };
25807
+ }
25808
+ function stableStringify(t) {
25809
+ return Array.isArray(t) ? `[${t.map(stableStringify).join(",")}]` : t && typeof t == "object" ? `{${Object.entries(t).filter(([, t]) => t !== void 0).sort(([t], [c]) => t < c ? -1 : t > c ? 1 : 0).map(([t, c]) => `${JSON.stringify(t)}:${stableStringify(c)}`).join(",")}}` : JSON.stringify(t);
25810
+ }
25811
+ function strategyHash(t) {
25812
+ if (t.length === 0) return DEFAULT_STRATEGY_HASH;
25813
+ let c = t.map((t) => {
25814
+ let { _rev: c, ...u } = t;
25815
+ return stableStringify(u);
25816
+ }).sort().join("\n"), u = 2166136261;
25817
+ for (let t = 0; t < c.length; t++) u ^= c.charCodeAt(t), u = Math.imul(u, 16777619);
25818
+ return (u >>> 0).toString(16).padStart(8, "0");
25819
+ }
25799
25820
  function createDefaultEloStrategy(t) {
25800
25821
  return {
25801
25822
  _id: "NAVIGATION_STRATEGY-ELO-default",
@@ -25830,8 +25851,8 @@ function createDefaultEloDistanceStrategy(t) {
25830
25851
  };
25831
25852
  }
25832
25853
  function createDefaultPipeline(t, c) {
25833
- let u = c.getCourseID(), d = new ELONavigator(t, c, createDefaultEloStrategy(u)), m = new SRSNavigator(t, c, createDefaultSrsStrategy(u)), g = new CompositeGenerator([d, m]), b = new EloDistanceFilter(t, c, createDefaultEloDistanceStrategy(u));
25834
- return new Pipeline(g, [b], t, c);
25854
+ let u = c.getCourseID(), d = new ELONavigator(t, c, createDefaultEloStrategy(u)), m = new SRSNavigator(t, c, createDefaultSrsStrategy(u)), g = new CompositeGenerator([d, m]), b = new EloDistanceFilter(t, c, createDefaultEloDistanceStrategy(u)), S = new Pipeline(g, [b], t, c);
25855
+ return S.strategyHash = DEFAULT_STRATEGY_HASH, S;
25835
25856
  }
25836
25857
  function planned(t, c, u) {
25837
25858
  let d = c === "filter" ? getRegisteredFilterKind(t.implementingClass) : void 0;
@@ -26964,7 +26985,7 @@ async function getUserClassrooms(t) {
26964
26985
  }
26965
26986
  async function initializeDataLayer(t) {
26966
26987
  if (dataLayerInstance) return logger.warn("Data layer already initialized. Returning existing instance."), dataLayerInstance;
26967
- if (await initializeNavigatorRegistry(), t.options.localStoragePrefix && (ENV.LOCAL_STORAGE_PREFIX = t.options.localStoragePrefix), t.type === "couch") {
26988
+ if (await initializeNavigatorRegistry(), t.options.localStoragePrefix && (ENV.LOCAL_STORAGE_PREFIX = t.options.localStoragePrefix), t.options.appVersion && setAppVersion(t.options.appVersion), t.type === "couch") {
26968
26989
  if (!t.options.COUCHDB_SERVER_URL || !t.options.COUCHDB_SERVER_PROTOCOL) throw Error("Missing CouchDB server URL or protocol");
26969
26990
  if (ENV.COUCHDB_SERVER_PROTOCOL = t.options.COUCHDB_SERVER_PROTOCOL, ENV.COUCHDB_SERVER_URL = t.options.COUCHDB_SERVER_URL, ENV.COUCHDB_USERNAME = t.options.COUCHDB_USERNAME, ENV.COUCHDB_PASSWORD = t.options.COUCHDB_PASSWORD, t.options.courseSync) {
26970
26991
  let { CourseSyncService: c } = await Promise.resolve().then(() => (init_CourseSyncService(), CourseSyncService_exports));
@@ -27285,7 +27306,7 @@ async function registerCustomQuestionTypes(t, c, u, d) {
27285
27306
  };
27286
27307
  }
27287
27308
  }
27288
- var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import___vite_browser_external, import___vite_browser_external$1, import___vite_browser_external$2, __defProp, __getOwnPropNames, __glob, __esm, __export, init_adminDB, init_classroomDB, init_SyncStrategy, isDevelopment, logger, init_logger, GuestUsername, log, DocType, DocTypePrefixes, init_types_legacy, init_util, pouchdb_setup_default, init_pouchdb_setup, Loggable, init_Loggable, UpdateQueue, init_updateQueue, CLIENT_CACHE, init_clientCache, AlreadyTaggedErr, init_courseAPI, courseLookupDBTitle, CourseLookup, init_courseLookupDB, diversityRerank_exports, DIVERSITY_STRENGTH, DIVERSITY_FLOOR, STRATEGY, STRATEGY_ID, STRATEGY_NAME, init_diversityRerank, PipelineDebugger_exports, _activePipeline, MAX_RUNS, runHistory, _currentSessionId, _pendingRuns, DISCARDED_KEEP_TOP, _uiContainer, _selectedRunIndex, _cardSearchQuery, pipelineDebugAPI, init_PipelineDebugger, SrsDebugger_exports, snapshots, init_SrsDebugger, StrategyPressureDebugger_exports, snapshots2, init_StrategyPressureDebugger, CompositeGenerator_exports, AggregationMode, DEFAULT_AGGREGATION_MODE, FREQUENCY_BOOST_FACTOR, CompositeGenerator, init_CompositeGenerator, elo_exports, ELONavigator, init_elo, generators_exports, init_generators, prescribed_exports, DEFAULT_FRESHNESS_WINDOW, DEFAULT_MAX_DIRECT_PER_RUN, DEFAULT_MAX_SUPPORT_PER_RUN, DEFAULT_HIERARCHY_DEPTH, DEFAULT_MIN_COUNT, DEFAULT_PRACTICE_MIN_COUNT, DEFAULT_MAX_PRACTICE_PER_RUN, BASE_TARGET_SCORE, BASE_SUPPORT_SCORE, DISCOVERED_SUPPORT_SCORE, BASE_PRACTICE_SCORE, PRACTICE_BASE_MULT, MAX_PRACTICE_MULTIPLIER, PRACTICE_STALENESS_BUMP_PER_DAY, MAX_TARGET_MULTIPLIER, MAX_SUPPORT_MULTIPLIER, PRESCRIBED_DEBUG_VERSION, PrescribedCardsGenerator, init_prescribed, regulators_exports, DEFAULT_REGULATOR_CONFIG, INTAKE_CLOCK_KEY, REGULATOR_LABEL, init_regulators, srs_exports, SRSNavigator, init_srs, types_exports, init_types, globImport_generators, init_, DEFAULT_LEARNABLE_WEIGHT, init_contentNavigationStrategy, WeightedFilter_exports, WeightedFilter, init_WeightedFilter, eloDistance_exports, DEFAULT_ELO_DISTANCE_CONFIG, TAG_CONFIDENCE_HALF, DEFAULT_CARD_ELO, MULTI_DIM_ELO_KEY, multiDimElo, EloDistanceFilter, init_eloDistance, hierarchyDefinition_exports, DEFAULT_MIN_COUNT2, HierarchyDefinitionNavigator, init_hierarchyDefinition, userTagPreference_exports, UserTagPreferenceFilter, init_userTagPreference, filters_exports, init_filters, inferredPreferenceStub_exports, INFERRED_PREFERENCE_NAVIGATOR_STUB, init_inferredPreferenceStub, interferenceMitigator_exports, DEFAULT_MIN_COUNT3, DEFAULT_MIN_ELAPSED_DAYS, DEFAULT_INTERFERENCE_DECAY, InterferenceMitigatorNavigator, init_interferenceMitigator, relativePriority_exports, DEFAULT_PRIORITY, DEFAULT_PRIORITY_INFLUENCE, DEFAULT_COMBINE_MODE, RelativePriorityNavigator, init_relativePriority, types_exports2, init_types2, userGoalStub_exports, USER_GOAL_NAVIGATOR_STUB, init_userGoalStub, globImport_filters, init_2, init_gradient, MIN_OBSERVATIONS_FOR_UPDATE, LEARNING_RATE, MAX_WEIGHT_DELTA, MIN_R_SQUARED_FOR_GRADIENT, FLAT_GRADIENT_THRESHOLD, MAX_HISTORY_LENGTH, init_learning, init_signal, init_recording, MIN_SPREAD, MAX_SPREAD, MIN_WEIGHT, MAX_WEIGHT, init_orchestration, Pipeline_exports, VERBOSE_RESULTS, Pipeline, init_Pipeline, defaults_exports, init_defaults, pipelinePlan_exports, PIPELINE_STAGES, init_pipelinePlan, PipelineAssembler_exports, PipelineAssembler, init_PipelineAssembler, globImport, init_3, navigators_exports, navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator, init_navigators, CoursesDB, CourseDB, init_courseDB, classroomLookupDBTitle, CLASSROOM_CONFIG, ClassroomDBBase, StudentClassroomDB, TeacherClassroomDB, ClassroomLookupDB, init_classroomDB2, AdminDB, init_adminDB2, CourseSyncService_exports, DEFAULT_REPLICATION, CourseSyncService, init_CourseSyncService, init_auth, CouchDBSyncStrategy_exports, log2, CouchDBSyncStrategy, init_CouchDBSyncStrategy, isBrowser, GUEST_LOCAL_DB, localUserDB, pouchDBincludeCredentialsConfig, REVIEW_TIME_FORMAT, init_couch, duration, init_SpacedRepetition, SrsService, init_SrsService, init_tagRecent, EloService, init_EloService, ResponseProcessor, init_ResponseProcessor, CardHydrationService, init_CardHydrationService, ItemQueue, init_ItemQueue, init_studySession, init_types3, CouchDBToStaticPacker, init_CouchDBToStaticPacker, init_packer, DEFAULT_MIGRATION_OPTIONS, init_types4, FileSystemError, init_FileSystemAdapter, nodeFS, init_validation, nodeFS2, nodePath, StaticToCouchDBMigrator, init_StaticToCouchDBMigrator, init_migrator, init_dataDirectory, init_util2, QuotaRoundRobinMixer, init_SourceMixer, MAX_RUNS2, runHistory2, mixerDebugAPI, init_MixerDebugger, activeController, OVERLAY_ID, POLL_MS, INLINE_THRESHOLD, SPINNER_FRAMES, spinnerFrame, overlayEl, pollHandle, lastSnapshot, copyFlashUntil, minified, expanded, init_SessionOverlay, activeSession, sessionHistory, MAX_HISTORY, sessionDebugAPI, init_SessionDebugger, PERSISTED_RUNNERS_UP, SessionController, init_SessionController, TagFilteredContentSource, init_TagFilteredContentSource, init_study, REVIEW_TIME_FORMAT2, log3, init_userDBHelpers, UsrCrsData, init_user_course_relDB, log4, HYDRATION_TIMEOUT_MS, BaseUser, userCoursesDoc, userClassroomsDoc, init_BaseUserDB, init_common, PouchDataLayerProvider_exports, CouchDataLayerProvider, init_PouchDataLayerProvider, pathUtils, nodeFS3, StaticDataUnpacker, init_StaticDataUnpacker, StaticCourseDB, init_courseDB2, StaticCoursesDB, init_coursesDB, NoOpSyncStrategy, init_NoOpSyncStrategy, StaticDataLayerProvider_exports, StaticDataLayerProvider, init_StaticDataLayerProvider, NOT_SET, ENV, dataLayerInstance, init_factory, init_contentSource, init_courseDB3, init_dataLayerProvider, init_userDB, init_interfaces, init_user, init_strategyState, init_userOutcome, HYDRATION_MARKER_ID, init_hydration, init_cardProcessor, init_types5, init_bulkImport, userDBDebugAPI, init_UserDBDebugger, init_core, init_dist = __esmMin((() => {
27309
+ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import___vite_browser_external, import___vite_browser_external$1, import___vite_browser_external$2, __defProp, __getOwnPropNames, __glob, __esm, __export, init_adminDB, init_classroomDB, init_SyncStrategy, isDevelopment, logger, init_logger, GuestUsername, log, DocType, DocTypePrefixes, init_types_legacy, init_util, pouchdb_setup_default, init_pouchdb_setup, Loggable, init_Loggable, UpdateQueue, init_updateQueue, CLIENT_CACHE, init_clientCache, AlreadyTaggedErr, init_courseAPI, courseLookupDBTitle, CourseLookup, init_courseLookupDB, diversityRerank_exports, DIVERSITY_STRENGTH, DIVERSITY_FLOOR, STRATEGY, STRATEGY_ID, STRATEGY_NAME, init_diversityRerank, PipelineDebugger_exports, _activePipeline, MAX_RUNS, runHistory, _currentSessionId, _pendingRuns, DISCARDED_KEEP_TOP, _uiContainer, _selectedRunIndex, _cardSearchQuery, pipelineDebugAPI, init_PipelineDebugger, SrsDebugger_exports, snapshots, init_SrsDebugger, StrategyPressureDebugger_exports, snapshots2, init_StrategyPressureDebugger, CompositeGenerator_exports, AggregationMode, DEFAULT_AGGREGATION_MODE, FREQUENCY_BOOST_FACTOR, CompositeGenerator, init_CompositeGenerator, elo_exports, ELONavigator, init_elo, generators_exports, init_generators, prescribed_exports, DEFAULT_FRESHNESS_WINDOW, DEFAULT_MAX_DIRECT_PER_RUN, DEFAULT_MAX_SUPPORT_PER_RUN, DEFAULT_HIERARCHY_DEPTH, DEFAULT_MIN_COUNT, DEFAULT_PRACTICE_MIN_COUNT, DEFAULT_MAX_PRACTICE_PER_RUN, BASE_TARGET_SCORE, BASE_SUPPORT_SCORE, DISCOVERED_SUPPORT_SCORE, BASE_PRACTICE_SCORE, PRACTICE_BASE_MULT, MAX_PRACTICE_MULTIPLIER, PRACTICE_STALENESS_BUMP_PER_DAY, MAX_TARGET_MULTIPLIER, MAX_SUPPORT_MULTIPLIER, PRESCRIBED_DEBUG_VERSION, PrescribedCardsGenerator, init_prescribed, regulators_exports, DEFAULT_REGULATOR_CONFIG, INTAKE_CLOCK_KEY, REGULATOR_LABEL, init_regulators, srs_exports, SRSNavigator, init_srs, types_exports, init_types, globImport_generators, init_, DEFAULT_LEARNABLE_WEIGHT, init_contentNavigationStrategy, WeightedFilter_exports, WeightedFilter, init_WeightedFilter, eloDistance_exports, DEFAULT_ELO_DISTANCE_CONFIG, TAG_CONFIDENCE_HALF, DEFAULT_CARD_ELO, MULTI_DIM_ELO_KEY, multiDimElo, EloDistanceFilter, init_eloDistance, hierarchyDefinition_exports, DEFAULT_MIN_COUNT2, HierarchyDefinitionNavigator, init_hierarchyDefinition, userTagPreference_exports, UserTagPreferenceFilter, init_userTagPreference, filters_exports, init_filters, inferredPreferenceStub_exports, INFERRED_PREFERENCE_NAVIGATOR_STUB, init_inferredPreferenceStub, interferenceMitigator_exports, DEFAULT_MIN_COUNT3, DEFAULT_MIN_ELAPSED_DAYS, DEFAULT_INTERFERENCE_DECAY, InterferenceMitigatorNavigator, init_interferenceMitigator, relativePriority_exports, DEFAULT_PRIORITY, DEFAULT_PRIORITY_INFLUENCE, DEFAULT_COMBINE_MODE, RelativePriorityNavigator, init_relativePriority, types_exports2, init_types2, userGoalStub_exports, USER_GOAL_NAVIGATOR_STUB, init_userGoalStub, globImport_filters, init_2, init_gradient, MIN_OBSERVATIONS_FOR_UPDATE, LEARNING_RATE, MAX_WEIGHT_DELTA, MIN_R_SQUARED_FOR_GRADIENT, FLAT_GRADIENT_THRESHOLD, MAX_HISTORY_LENGTH, init_learning, init_signal, init_recording, MIN_SPREAD, MAX_SPREAD, MIN_WEIGHT, MAX_WEIGHT, init_orchestration, Pipeline_exports, VERBOSE_RESULTS, Pipeline, init_Pipeline, FRAMEWORK_VERSION, hostAppVersion, DEFAULT_STRATEGY_HASH, init_versionStamps, defaults_exports, init_defaults, pipelinePlan_exports, PIPELINE_STAGES, init_pipelinePlan, PipelineAssembler_exports, PipelineAssembler, init_PipelineAssembler, globImport, init_3, navigators_exports, navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator, init_navigators, CoursesDB, CourseDB, init_courseDB, classroomLookupDBTitle, CLASSROOM_CONFIG, ClassroomDBBase, StudentClassroomDB, TeacherClassroomDB, ClassroomLookupDB, init_classroomDB2, AdminDB, init_adminDB2, CourseSyncService_exports, DEFAULT_REPLICATION, CourseSyncService, init_CourseSyncService, init_auth, CouchDBSyncStrategy_exports, log2, CouchDBSyncStrategy, init_CouchDBSyncStrategy, isBrowser, GUEST_LOCAL_DB, localUserDB, pouchDBincludeCredentialsConfig, REVIEW_TIME_FORMAT, init_couch, duration, init_SpacedRepetition, SrsService, init_SrsService, init_tagRecent, EloService, init_EloService, ResponseProcessor, init_ResponseProcessor, CardHydrationService, init_CardHydrationService, ItemQueue, init_ItemQueue, init_studySession, init_types3, CouchDBToStaticPacker, init_CouchDBToStaticPacker, init_packer, DEFAULT_MIGRATION_OPTIONS, init_types4, FileSystemError, init_FileSystemAdapter, nodeFS, init_validation, nodeFS2, nodePath, StaticToCouchDBMigrator, init_StaticToCouchDBMigrator, init_migrator, init_dataDirectory, init_util2, QuotaRoundRobinMixer, init_SourceMixer, MAX_RUNS2, runHistory2, mixerDebugAPI, init_MixerDebugger, activeController, OVERLAY_ID, POLL_MS, INLINE_THRESHOLD, SPINNER_FRAMES, spinnerFrame, overlayEl, pollHandle, lastSnapshot, copyFlashUntil, minified, expanded, init_SessionOverlay, activeSession, sessionHistory, MAX_HISTORY, sessionDebugAPI, init_SessionDebugger, PERSISTED_RUNNERS_UP, SessionController, init_SessionController, TagFilteredContentSource, init_TagFilteredContentSource, init_study, REVIEW_TIME_FORMAT2, log3, init_userDBHelpers, UsrCrsData, init_user_course_relDB, log4, HYDRATION_TIMEOUT_MS, BaseUser, userCoursesDoc, userClassroomsDoc, init_BaseUserDB, init_common, PouchDataLayerProvider_exports, CouchDataLayerProvider, init_PouchDataLayerProvider, pathUtils, nodeFS3, StaticDataUnpacker, init_StaticDataUnpacker, StaticCourseDB, init_courseDB2, StaticCoursesDB, init_coursesDB, NoOpSyncStrategy, init_NoOpSyncStrategy, StaticDataLayerProvider_exports, StaticDataLayerProvider, init_StaticDataLayerProvider, NOT_SET, ENV, dataLayerInstance, init_factory, init_contentSource, init_courseDB3, init_dataLayerProvider, init_userDB, init_interfaces, init_user, init_strategyState, init_userOutcome, HYDRATION_MARKER_ID, init_hydration, init_cardProcessor, init_types5, init_bulkImport, userDBDebugAPI, init_UserDBDebugger, init_core, init_dist = __esmMin((() => {
27289
27310
  init_defineProperty(), init_index_browser_es$5(), init_index_browser_es(), init_index_es(), init_dist$1(), init_esm_browser(), init_moment(), import_browser_ponyfill = /* @__PURE__ */ __toESM$2(require_browser_ponyfill(), 1), import_browser_ponyfill$1 = /* @__PURE__ */ __toESM$2(require_browser_ponyfill(), 1), import_browser = /* @__PURE__ */ __toESM$2(require_browser(), 1), import___vite_browser_external = /* @__PURE__ */ __toESM$2(require___vite_browser_external(), 1), import___vite_browser_external$1 = /* @__PURE__ */ __toESM$2(require___vite_browser_external(), 1), import___vite_browser_external$2 = /* @__PURE__ */ __toESM$2(require___vite_browser_external(), 1), __defProp = Object.defineProperty, __getOwnPropNames = Object.getOwnPropertyNames, __glob = (t) => (c) => {
27290
27311
  var u = t[c];
27291
27312
  if (u) return u();
@@ -28817,7 +28838,7 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
28817
28838
  }), init_Pipeline = __esm({ "src/core/navigators/Pipeline.ts"() {
28818
28839
  init_navigators(), init_logger(), init_orchestration(), init_PipelineDebugger(), init_diversityRerank(), init_regulators(), init_SrsDebugger(), VERBOSE_RESULTS = !0, Pipeline = class extends ContentNavigator {
28819
28840
  constructor(t, c, u, d) {
28820
- super(), _defineProperty$2(this, "generator", void 0), _defineProperty$2(this, "filters", void 0), _defineProperty$2(this, "_cachedOrchestration", null), _defineProperty$2(this, "_tagCache", /* @__PURE__ */ new Map()), _defineProperty$2(this, "_ephemeralHints", null), _defineProperty$2(this, "_intakeClock", null), _defineProperty$2(this, "_intakeClockWrite", Promise.resolve()), this.generator = t, this.filters = c, this.user = u, this.course = d, d.getCourseConfig().then((t) => {
28841
+ super(), _defineProperty$2(this, "generator", void 0), _defineProperty$2(this, "filters", void 0), _defineProperty$2(this, "_cachedOrchestration", null), _defineProperty$2(this, "strategyHash", void 0), _defineProperty$2(this, "_tagCache", /* @__PURE__ */ new Map()), _defineProperty$2(this, "_ephemeralHints", null), _defineProperty$2(this, "_intakeClock", null), _defineProperty$2(this, "_intakeClockWrite", Promise.resolve()), this.generator = t, this.filters = c, this.user = u, this.course = d, d.getCourseConfig().then((t) => {
28821
28842
  logger.debug(`[pipeline] Crated pipeline for ${t.name}`);
28822
28843
  }).catch((t) => {
28823
28844
  logger.error(`[pipeline] Failed to lookup courseCfg: ${t}`);
@@ -28899,8 +28920,14 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
28899
28920
  let kr = Or.slice(0, 3).map((t) => t.score);
28900
28921
  logExecutionSummary(this.generator.name, C, this.filters.length, Or.length, kr, xr), logResultCards(Or), logCardProvenance(Or, 3);
28901
28922
  try {
28902
- let t = await this.course?.getCourseConfig().then((t) => t.name).catch(() => void 0);
28903
- captureRun(buildRunReport(this.course?.getCourseID() || "unknown", t, this.generator.name, w, C, xr, b, Or, u.userElo, Er ?? void 0, wr, Tr));
28923
+ let t = await this.course?.getCourseConfig().catch(() => void 0), c = t?.name, d = buildRunReport(this.course?.getCourseID() || "unknown", c, this.generator.name, w, C, xr, b, Or, u.userElo, Er ?? void 0, wr, Tr), m = {
28924
+ ...this.strategyHash ? { strategies: this.strategyHash } : {},
28925
+ ...t?.contentVersion ? { content: t.contentVersion } : {}
28926
+ };
28927
+ captureRun({
28928
+ ...d,
28929
+ ...Object.keys(m).length ? { versions: m } : {}
28930
+ });
28904
28931
  } catch (t) {
28905
28932
  logger.debug(`[Pipeline] Failed to capture debug run: ${t}`);
28906
28933
  }
@@ -29136,13 +29163,15 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
29136
29163
  return O;
29137
29164
  }
29138
29165
  };
29166
+ } }), init_versionStamps = __esm({ "src/core/versionStamps.ts"() {
29167
+ FRAMEWORK_VERSION = "0.2.32", DEFAULT_STRATEGY_HASH = "default";
29139
29168
  } }), defaults_exports = {}, __export(defaults_exports, {
29140
29169
  createDefaultEloDistanceStrategy: () => createDefaultEloDistanceStrategy,
29141
29170
  createDefaultEloStrategy: () => createDefaultEloStrategy,
29142
29171
  createDefaultPipeline: () => createDefaultPipeline,
29143
29172
  createDefaultSrsStrategy: () => createDefaultSrsStrategy
29144
29173
  }), init_defaults = __esm({ "src/core/navigators/defaults.ts"() {
29145
- init_navigators(), init_Pipeline(), init_CompositeGenerator(), init_elo(), init_srs(), init_eloDistance(), init_types_legacy();
29174
+ init_navigators(), init_Pipeline(), init_CompositeGenerator(), init_elo(), init_srs(), init_eloDistance(), init_types_legacy(), init_versionStamps();
29146
29175
  } }), pipelinePlan_exports = {}, __export(pipelinePlan_exports, {
29147
29176
  PIPELINE_STAGES: () => PIPELINE_STAGES,
29148
29177
  planPipeline: () => planPipeline
@@ -29185,7 +29214,7 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
29185
29214
  }
29186
29215
  ];
29187
29216
  } }), PipelineAssembler_exports = {}, __export(PipelineAssembler_exports, { PipelineAssembler: () => PipelineAssembler }), init_PipelineAssembler = __esm({ "src/core/navigators/PipelineAssembler.ts"() {
29188
- init_navigators(), init_WeightedFilter(), init_Pipeline(), init_logger(), init_CompositeGenerator(), init_pipelinePlan(), PipelineAssembler = class {
29217
+ init_navigators(), init_WeightedFilter(), init_Pipeline(), init_logger(), init_CompositeGenerator(), init_pipelinePlan(), init_versionStamps(), PipelineAssembler = class {
29189
29218
  async assemble(t) {
29190
29219
  let { strategies: c, user: u, course: d } = t, m = [];
29191
29220
  if (c.length === 0) return {
@@ -29217,7 +29246,7 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
29217
29246
  m.push(`Failed to instantiate filter '${t.name}': ${c}`);
29218
29247
  }
29219
29248
  let T = new Pipeline(C, w, u, d);
29220
- return logger.debug(`[PipelineAssembler] Assembled pipeline with ${b.length} generator(s) and ${w.length} filter(s)`), {
29249
+ return T.strategyHash = strategyHash(c), logger.debug(`[PipelineAssembler] Assembled pipeline with ${b.length} generator(s) and ${w.length} filter(s)`), {
29221
29250
  pipeline: T,
29222
29251
  generatorStrategies: b,
29223
29252
  filterStrategies: S,
@@ -31462,7 +31491,7 @@ ${t.stack}` : JSON.stringify(t);
31462
31491
  }, mountSessionDebugger();
31463
31492
  } }), init_SessionController = __esm({ "src/study/SessionController.ts"() {
31464
31493
  var t;
31465
- init_SrsService(), init_EloService(), init_ResponseProcessor(), init_CardHydrationService(), init_ItemQueue(), init_couch(), init_core(), init_types_legacy(), init_studySession(), init_recording(), init_util2(), init_navigators(), init_Pipeline(), init_SourceMixer(), init_MixerDebugger(), init_SessionDebugger(), init_SessionOverlay(), init_logger(), PERSISTED_RUNNERS_UP = 5, SessionController = (t = class _SessionController extends Loggable {
31494
+ init_SrsService(), init_EloService(), init_ResponseProcessor(), init_CardHydrationService(), init_ItemQueue(), init_couch(), init_core(), init_types_legacy(), init_studySession(), init_recording(), init_util2(), init_navigators(), init_Pipeline(), init_versionStamps(), init_SourceMixer(), init_MixerDebugger(), init_SessionDebugger(), init_SessionOverlay(), init_logger(), PERSISTED_RUNNERS_UP = 5, SessionController = (t = class _SessionController extends Loggable {
31466
31495
  set sessionRecord(t) {
31467
31496
  this._sessionRecord = t;
31468
31497
  }
@@ -31528,7 +31557,8 @@ ${t.stack}` : JSON.stringify(t);
31528
31557
  ...u.discardedTail ? { discardedTail: u.discardedTail } : {},
31529
31558
  cards: persistedRunCards(u),
31530
31559
  ...u.unselectedNew ? { unselectedNew: persistedUnselectedNew(u.unselectedNew) } : {},
31531
- ...u.regulators ? { regulators: u.regulators.map(persistedReading) } : {}
31560
+ ...u.regulators ? { regulators: u.regulators.map(persistedReading) } : {},
31561
+ ...u.versions ? { versions: u.versions } : {}
31532
31562
  });
31533
31563
  }
31534
31564
  }
@@ -31558,6 +31588,7 @@ ${t.stack}` : JSON.stringify(t);
31558
31588
  sourceCount: this.sources.length,
31559
31589
  initHints: this._sessionHints
31560
31590
  },
31591
+ versions: sessionVersions(),
31561
31592
  initialQueues: {
31562
31593
  supplyQ: this.supplyQ.length,
31563
31594
  failedQ: this.failedQ.length
@@ -33361,7 +33392,7 @@ Currently logged-in as ${this._username}.`);
33361
33392
  }
33362
33393
  };
33363
33394
  } }), init_factory = __esm({ "src/factory.ts"() {
33364
- init_common(), init_logger(), init_navigators(), NOT_SET = "NOT_SET", ENV = {
33395
+ init_common(), init_logger(), init_navigators(), init_versionStamps(), NOT_SET = "NOT_SET", ENV = {
33365
33396
  COUCHDB_SERVER_PROTOCOL: NOT_SET,
33366
33397
  COUCHDB_SERVER_URL: NOT_SET,
33367
33398
  LOCAL_STORAGE_PREFIX: ""