@vue-skuilder/standalone-ui 0.2.15 → 0.2.17
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/assets/{TagViewer-Czt6W7JQ.js → TagViewer-Dna5v2Eb.js} +2 -2
- package/dist/assets/{TagViewer-Czt6W7JQ.js.map → TagViewer-Dna5v2Eb.js.map} +1 -1
- package/dist/assets/common-ui.es-B2FxUhyq.js +1 -0
- package/dist/assets/{common-ui.es-ibXGK5ti.js → common-ui.es-DLmRVq1W.js} +4 -4
- package/dist/assets/{common-ui.es-ibXGK5ti.js.map → common-ui.es-DLmRVq1W.js.map} +1 -1
- package/dist/assets/{dist-DlSLFgY8.js → dist-DTlcpk3F.js} +10 -10
- package/dist/assets/dist-DTlcpk3F.js.map +1 -0
- package/dist/assets/{index-CKXq4U_A.js → index-DDgb6Bcu.js} +5 -5
- package/dist/assets/{index-CKXq4U_A.js.map → index-DDgb6Bcu.js.map} +1 -1
- package/dist/index.html +3 -3
- package/dist-lib/questions.cjs.js +11 -11
- package/dist-lib/questions.cjs.js.map +1 -1
- package/dist-lib/questions.mjs +168 -35
- package/dist-lib/questions.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/assets/common-ui.es-xI0w3GT-.js +0 -1
- package/dist/assets/dist-DlSLFgY8.js.map +0 -1
package/dist-lib/questions.mjs
CHANGED
|
@@ -24654,8 +24654,10 @@ var init_v4 = __esmMin((() => {
|
|
|
24654
24654
|
areQuestionRecords: () => areQuestionRecords,
|
|
24655
24655
|
buildStrategyStateId: () => buildStrategyStateId,
|
|
24656
24656
|
captureMixerRun: () => captureMixerRun,
|
|
24657
|
+
captureStrategyPressure: () => captureStrategyPressure,
|
|
24657
24658
|
clearSrsBacklogDebug: () => clearSrsBacklogDebug,
|
|
24658
24659
|
clearStaleSessionDebugState: () => clearStaleSessionDebugState,
|
|
24660
|
+
clearStrategyPressureDebug: () => clearStrategyPressureDebug,
|
|
24659
24661
|
computeDeviation: () => computeDeviation,
|
|
24660
24662
|
computeEffectiveWeight: () => computeEffectiveWeight,
|
|
24661
24663
|
computeOutcomeSignal: () => computeOutcomeSignal,
|
|
@@ -24678,6 +24680,7 @@ var init_v4 = __esmMin((() => {
|
|
|
24678
24680
|
getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
|
|
24679
24681
|
getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
|
|
24680
24682
|
getSrsBacklogDebug: () => getSrsBacklogDebug,
|
|
24683
|
+
getStrategyPressureDebug: () => getStrategyPressureDebug,
|
|
24681
24684
|
getStudySource: () => getStudySource,
|
|
24682
24685
|
hasRegisteredNavigator: () => hasRegisteredNavigator,
|
|
24683
24686
|
importParsedCards: () => importParsedCards,
|
|
@@ -25254,6 +25257,15 @@ function getSrsBacklogDebug() {
|
|
|
25254
25257
|
function clearSrsBacklogDebug() {
|
|
25255
25258
|
snapshots.clear();
|
|
25256
25259
|
}
|
|
25260
|
+
function captureStrategyPressure(t) {
|
|
25261
|
+
snapshots2.set(`${t.source}:${t.courseId}`, t);
|
|
25262
|
+
}
|
|
25263
|
+
function getStrategyPressureDebug() {
|
|
25264
|
+
return [...snapshots2.values()].sort((t, c) => c.timestamp - t.timestamp);
|
|
25265
|
+
}
|
|
25266
|
+
function clearStrategyPressureDebug() {
|
|
25267
|
+
snapshots2.clear();
|
|
25268
|
+
}
|
|
25257
25269
|
function mergeHints(t) {
|
|
25258
25270
|
let c = t.filter((t) => t !== void 0);
|
|
25259
25271
|
if (c.length === 0) return;
|
|
@@ -25302,6 +25314,12 @@ function shuffleInPlace(t) {
|
|
|
25302
25314
|
[t[c], t[u]] = [t[u], t[c]];
|
|
25303
25315
|
}
|
|
25304
25316
|
}
|
|
25317
|
+
function formatAge(t) {
|
|
25318
|
+
let c = Math.max(0, Math.round(t / 6e4));
|
|
25319
|
+
if (c < 60) return `${c}m`;
|
|
25320
|
+
let u = Math.round(c / 60);
|
|
25321
|
+
return u < 24 ? `${u}h` : `${Math.round(u / 24)}d`;
|
|
25322
|
+
}
|
|
25305
25323
|
function pickTopByScore(t, c) {
|
|
25306
25324
|
return [...t].sort((t, c) => c.score - t.score || t.cardId.localeCompare(c.cardId)).slice(0, c);
|
|
25307
25325
|
}
|
|
@@ -26608,7 +26626,7 @@ function render() {
|
|
|
26608
26626
|
overlayEl.innerHTML = headerHtml(), attachHandlers();
|
|
26609
26627
|
return;
|
|
26610
26628
|
}
|
|
26611
|
-
overlayEl.innerHTML = headerHtml() + replanHtml(c) + metaHtml(c) + hintsHtml(c.sessionHints) + backlogHtml(c.reviewBacklog) + queueHtml("supplyQ", "supplyQ", c.supplyQ) + queueHtml("failedQ", "failedQ", c.failedQ) + drawnHtml("drawn", c.drawnCards), attachHandlers();
|
|
26629
|
+
overlayEl.innerHTML = headerHtml() + replanHtml(c) + metaHtml(c) + hintsHtml(c.sessionHints) + backlogHtml(c.reviewBacklog) + strategyPressureHtml(c.strategyPressure) + queueHtml("supplyQ", "supplyQ", c.supplyQ) + queueHtml("failedQ", "failedQ", c.failedQ) + drawnHtml("drawn", c.drawnCards), attachHandlers();
|
|
26612
26630
|
}
|
|
26613
26631
|
function attachHandlers() {
|
|
26614
26632
|
if (!overlayEl) return;
|
|
@@ -26660,6 +26678,30 @@ function backlogHtml(t) {
|
|
|
26660
26678
|
return `<div style="margin-left:6px"><span style="opacity:.7">${esc(t.courseId.slice(0, 8))}</span> due ${t.dueNow}/${t.scheduledTotal} <span style="opacity:.6">(healthy ${t.healthyBacklog})</span>${g}<div style="margin-left:6px">pressure <span style="color:${u}">\xD7${t.backlogMultiplier.toFixed(2)}</span> <span style="opacity:.6">${d} \xB7 top review ${m}</span></div></div>`;
|
|
26661
26679
|
}).join("")}</div>` : "";
|
|
26662
26680
|
}
|
|
26681
|
+
function pressureColor(t, c) {
|
|
26682
|
+
return t <= 1.001 ? "#86efac" : c !== void 0 && c > 1 ? (t - 1) / (c - 1) >= .75 ? "#fca5a5" : "#fcd34d" : t >= 3 ? "#fca5a5" : "#fcd34d";
|
|
26683
|
+
}
|
|
26684
|
+
function toggleKey(t) {
|
|
26685
|
+
return t.replace(/[^\w:.|-]/g, "_");
|
|
26686
|
+
}
|
|
26687
|
+
function gaugeHtml(t, c) {
|
|
26688
|
+
let u = c.max === void 0 ? "" : `<span style="opacity:.5">/${c.max}</span>`, d = c.detail ? ` <span style="opacity:.6">${esc(c.detail)}</span>` : "", m = `<div style="margin-left:6px">${esc(c.label)} <span style="color:${pressureColor(c.multiplier, c.max)}">\xD7${c.multiplier.toFixed(2)}</span>${u}${d}`, g = c.items ?? [];
|
|
26689
|
+
if (g.length > 0) {
|
|
26690
|
+
let u = toggleKey(`sp|${t}|${c.id}`), d = !!expanded[u], b = d ? g : g.slice(0, INLINE_THRESHOLD);
|
|
26691
|
+
if (m += "<div style=\"margin-left:6px\">" + b.map((t) => `<div style="white-space:nowrap;opacity:.75">${esc(t.label)}${t.value ? ` <span style="opacity:.6">${esc(t.value)}</span>` : ""}</div>`).join(""), g.length > INLINE_THRESHOLD) {
|
|
26692
|
+
let t = d ? "▾ show less" : `\u2026 +${g.length - b.length} more`;
|
|
26693
|
+
m += `<div data-q="${u}" style="cursor:pointer;opacity:.6">${t}</div>`;
|
|
26694
|
+
}
|
|
26695
|
+
m += "</div>";
|
|
26696
|
+
}
|
|
26697
|
+
return m + "</div>";
|
|
26698
|
+
}
|
|
26699
|
+
function strategyPressureHtml(t) {
|
|
26700
|
+
return t.length ? `<div style="margin-bottom:6px"><div style="color:#fdba74">strategy backpressure</div>${t.map((t) => {
|
|
26701
|
+
let c = `${t.source}:${t.courseId.slice(0, 8)}`, u = t.topScore !== null && t.topScore !== void 0 ? t.topScore.toFixed(2) : "—", d = t.hintsLabel ? `<div style="margin-left:6px;opacity:.6">hints: ${esc(t.hintsLabel)}</div>` : "";
|
|
26702
|
+
return `<div style="margin-left:6px"><span style="opacity:.7">${esc(t.source)} \xB7 ${esc(t.courseId.slice(0, 8))}</span> <span style="opacity:.6">top score ${u}</span>` + t.gauges.map((t) => gaugeHtml(c, t)).join("") + d + "</div>";
|
|
26703
|
+
}).join("")}</div>` : "";
|
|
26704
|
+
}
|
|
26663
26705
|
function fmtScore(t) {
|
|
26664
26706
|
return t === void 0 ? "" : Number.isFinite(t) ? t.toFixed(2) : "REQ";
|
|
26665
26707
|
}
|
|
@@ -26705,6 +26747,19 @@ function snapshotToText(t) {
|
|
|
26705
26747
|
c.push(` ${u.courseId.slice(0, 8)}: due ${u.dueNow}/${u.scheduledTotal} (healthy ${u.healthyBacklog})${m}; pressure \xD7${u.backlogMultiplier.toFixed(2)} ${t}; top review ${d}`);
|
|
26706
26748
|
}
|
|
26707
26749
|
}
|
|
26750
|
+
if (t.strategyPressure.length) {
|
|
26751
|
+
c.push(""), c.push("strategy backpressure:");
|
|
26752
|
+
for (let u of t.strategyPressure) {
|
|
26753
|
+
let t = u.topScore !== null && u.topScore !== void 0 ? u.topScore.toFixed(2) : "—";
|
|
26754
|
+
c.push(` ${u.source} (${u.courseId.slice(0, 8)}): top score ${t}`);
|
|
26755
|
+
for (let t of u.gauges) {
|
|
26756
|
+
let u = t.max === void 0 ? "" : `/${t.max}`;
|
|
26757
|
+
c.push(` ${t.label} \xD7${t.multiplier.toFixed(2)}${u}${t.detail ? ` \u2014 ${t.detail}` : ""}`);
|
|
26758
|
+
for (let u of t.items ?? []) c.push(` ${u.label}${u.value ? ` (${u.value})` : ""}`);
|
|
26759
|
+
}
|
|
26760
|
+
u.hintsLabel && c.push(` hints: ${u.hintsLabel}`);
|
|
26761
|
+
}
|
|
26762
|
+
}
|
|
26708
26763
|
let queueText = (t, u) => {
|
|
26709
26764
|
c.push(""), c.push(`${t}: ${u.length} (drawn ${u.dequeueCount})`), u.cards.forEach((t, u) => {
|
|
26710
26765
|
let d = fmtScore(t.score), m = `${t.origin === "review" ? "r" : "n"}${d ? " " + d : ""}`;
|
|
@@ -26724,7 +26779,7 @@ function esc(t) {
|
|
|
26724
26779
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
26725
26780
|
}
|
|
26726
26781
|
function clearStaleSessionDebugState() {
|
|
26727
|
-
clearRunHistory(), clearSrsBacklogDebug();
|
|
26782
|
+
clearRunHistory(), clearSrsBacklogDebug(), clearStrategyPressureDebug();
|
|
26728
26783
|
}
|
|
26729
26784
|
function startSessionTracking(t, c) {
|
|
26730
26785
|
let u = `session-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -26832,7 +26887,7 @@ function mountSessionDebugger() {
|
|
|
26832
26887
|
let t = window;
|
|
26833
26888
|
t.skuilder = t.skuilder || {}, t.skuilder.session = sessionDebugAPI;
|
|
26834
26889
|
}
|
|
26835
|
-
var import___vite_browser_external, import___vite_browser_external$1, import___vite_browser_external$2, import_browser_ponyfill, import_browser_ponyfill$1, import_browser, _SessionController2, __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, init_dataDirectory, REVIEW_TIME_FORMAT, log2, init_userDBHelpers, Loggable, init_Loggable, UpdateQueue, init_updateQueue, UsrCrsData, init_user_course_relDB, 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, DISCARDED_KEEP_TOP, _uiContainer, _selectedRunIndex, _cardSearchQuery, pipelineDebugAPI, init_PipelineDebugger, SrsDebugger_exports, snapshots, init_SrsDebugger, CompositeGenerator_exports, AggregationMode, DEFAULT_AGGREGATION_MODE, FREQUENCY_BOOST_FACTOR, CompositeGenerator, init_CompositeGenerator, elo_exports, ELO_RELEVANCE_SIGMA, 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, srs_exports, DEFAULT_HEALTHY_BACKLOG, BACKLOG_GROWTH_RATE, SRSNavigator, init_srs, types_exports, init_types, globImport_generators, init_, DEFAULT_LEARNABLE_WEIGHT, init_contentNavigationStrategy, WeightedFilter_exports, WeightedFilter, init_WeightedFilter, eloDistance_exports, DEFAULT_HALF_LIFE, DEFAULT_MIN_MULTIPLIER, DEFAULT_MAX_MULTIPLIER, 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, 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, log3, CouchDBSyncStrategy, init_CouchDBSyncStrategy, isBrowser, GUEST_LOCAL_DB, localUserDB, pouchDBincludeCredentialsConfig, REVIEW_TIME_FORMAT2, init_couch, log4, BaseUser, userCoursesDoc, userClassroomsDoc, init_BaseUserDB, init_common, PouchDataLayerProvider_exports, CouchDataLayerProvider, init_PouchDataLayerProvider, pathUtils, nodeFS, StaticDataUnpacker, init_StaticDataUnpacker, StaticCourseDB, init_courseDB2, StaticCoursesDB, init_coursesDB, NoOpSyncStrategy, init_NoOpSyncStrategy, StaticDataLayerProvider_exports, StaticDataLayerProvider, init_StaticDataLayerProvider, NOT_SET, ENV, dataLayerInstance, init_factory, TagFilteredContentSource, init_TagFilteredContentSource, init_contentSource, init_courseDB3, init_dataLayerProvider, init_userDB, init_interfaces, init_user, init_strategyState, init_userOutcome, init_cardProcessor, init_types3, init_bulkImport, userDBDebugAPI, init_UserDBDebugger, init_core, duration, SrsService, EloService, ResponseProcessor, CardHydrationService, ItemQueue, CouchDBToStaticPacker, DEFAULT_MIGRATION_OPTIONS, FileSystemError, nodeFS2, nodeFS3, nodePath, StaticToCouchDBMigrator, QuotaRoundRobinMixer, MAX_RUNS2, runHistory2, mixerDebugAPI, activeController, OVERLAY_ID, POLL_MS, INLINE_THRESHOLD, SPINNER_FRAMES, spinnerFrame, overlayEl, pollHandle, lastSnapshot, copyFlashUntil, minified, expanded, activeSession, sessionHistory, MAX_HISTORY, sessionDebugAPI, SessionController, init_dist = __esmMin((() => {
|
|
26890
|
+
var import___vite_browser_external, import___vite_browser_external$1, import___vite_browser_external$2, import_browser_ponyfill, import_browser_ponyfill$1, import_browser, _SessionController2, __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, init_dataDirectory, REVIEW_TIME_FORMAT, log2, init_userDBHelpers, Loggable, init_Loggable, UpdateQueue, init_updateQueue, UsrCrsData, init_user_course_relDB, 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, 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, ELO_RELEVANCE_SIGMA, 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, srs_exports, DEFAULT_HEALTHY_BACKLOG, BACKLOG_GROWTH_RATE, SRSNavigator, init_srs, types_exports, init_types, globImport_generators, init_, DEFAULT_LEARNABLE_WEIGHT, init_contentNavigationStrategy, WeightedFilter_exports, WeightedFilter, init_WeightedFilter, eloDistance_exports, DEFAULT_HALF_LIFE, DEFAULT_MIN_MULTIPLIER, DEFAULT_MAX_MULTIPLIER, 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, 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, log3, CouchDBSyncStrategy, init_CouchDBSyncStrategy, isBrowser, GUEST_LOCAL_DB, localUserDB, pouchDBincludeCredentialsConfig, REVIEW_TIME_FORMAT2, init_couch, log4, BaseUser, userCoursesDoc, userClassroomsDoc, init_BaseUserDB, init_common, PouchDataLayerProvider_exports, CouchDataLayerProvider, init_PouchDataLayerProvider, pathUtils, nodeFS, StaticDataUnpacker, init_StaticDataUnpacker, StaticCourseDB, init_courseDB2, StaticCoursesDB, init_coursesDB, NoOpSyncStrategy, init_NoOpSyncStrategy, StaticDataLayerProvider_exports, StaticDataLayerProvider, init_StaticDataLayerProvider, NOT_SET, ENV, dataLayerInstance, init_factory, TagFilteredContentSource, init_TagFilteredContentSource, init_contentSource, init_courseDB3, init_dataLayerProvider, init_userDB, init_interfaces, init_user, init_strategyState, init_userOutcome, init_cardProcessor, init_types3, init_bulkImport, userDBDebugAPI, init_UserDBDebugger, init_core, duration, SrsService, EloService, ResponseProcessor, CardHydrationService, ItemQueue, CouchDBToStaticPacker, DEFAULT_MIGRATION_OPTIONS, FileSystemError, nodeFS2, nodeFS3, nodePath, StaticToCouchDBMigrator, QuotaRoundRobinMixer, MAX_RUNS2, runHistory2, mixerDebugAPI, activeController, OVERLAY_ID, POLL_MS, INLINE_THRESHOLD, SPINNER_FRAMES, spinnerFrame, overlayEl, pollHandle, lastSnapshot, copyFlashUntil, minified, expanded, activeSession, sessionHistory, MAX_HISTORY, sessionDebugAPI, SessionController, init_dist = __esmMin((() => {
|
|
26836
26891
|
init_defineProperty(), init_index_browser_es$5(), init_index_browser_es(), init_index_es(), 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), init_moment(), init_dist$1(), init_esm_browser(), 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), __defProp = Object.defineProperty, __getOwnPropNames = Object.getOwnPropertyNames, __glob = (t) => (c) => {
|
|
26837
26892
|
var u = t[c];
|
|
26838
26893
|
if (u) return u();
|
|
@@ -27266,6 +27321,12 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27266
27321
|
getSrsBacklogDebug: () => getSrsBacklogDebug
|
|
27267
27322
|
}), init_SrsDebugger = __esm({ "src/core/navigators/SrsDebugger.ts"() {
|
|
27268
27323
|
snapshots = /* @__PURE__ */ new Map();
|
|
27324
|
+
} }), StrategyPressureDebugger_exports = {}, __export(StrategyPressureDebugger_exports, {
|
|
27325
|
+
captureStrategyPressure: () => captureStrategyPressure,
|
|
27326
|
+
clearStrategyPressureDebug: () => clearStrategyPressureDebug,
|
|
27327
|
+
getStrategyPressureDebug: () => getStrategyPressureDebug
|
|
27328
|
+
}), init_StrategyPressureDebugger = __esm({ "src/core/navigators/StrategyPressureDebugger.ts"() {
|
|
27329
|
+
snapshots2 = /* @__PURE__ */ new Map();
|
|
27269
27330
|
} }), CompositeGenerator_exports = {}, __export(CompositeGenerator_exports, {
|
|
27270
27331
|
AggregationMode: () => AggregationMode,
|
|
27271
27332
|
default: () => CompositeGenerator
|
|
@@ -27400,7 +27461,7 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27400
27461
|
}
|
|
27401
27462
|
};
|
|
27402
27463
|
} }), generators_exports = {}, init_generators = __esm({ "src/core/navigators/generators/index.ts"() {} }), prescribed_exports = {}, __export(prescribed_exports, { default: () => PrescribedCardsGenerator }), init_prescribed = __esm({ "src/core/navigators/generators/prescribed.ts"() {
|
|
27403
|
-
init_navigators(), init_logger(), DEFAULT_FRESHNESS_WINDOW = 3, DEFAULT_MAX_DIRECT_PER_RUN = 3, DEFAULT_MAX_SUPPORT_PER_RUN = 3, DEFAULT_HIERARCHY_DEPTH = 2, DEFAULT_MIN_COUNT = 3, DEFAULT_PRACTICE_MIN_COUNT = 3, DEFAULT_MAX_PRACTICE_PER_RUN = 4, BASE_TARGET_SCORE = 1, BASE_SUPPORT_SCORE = .8, DISCOVERED_SUPPORT_SCORE = 12, BASE_PRACTICE_SCORE = 1, PRACTICE_BASE_MULT = 2, MAX_PRACTICE_MULTIPLIER = 4, PRACTICE_STALENESS_BUMP_PER_DAY = .5, MAX_TARGET_MULTIPLIER = 8, MAX_SUPPORT_MULTIPLIER = 4, PRESCRIBED_DEBUG_VERSION = "testversion-prescribed-v3", PrescribedCardsGenerator = class extends ContentNavigator {
|
|
27464
|
+
init_navigators(), init_StrategyPressureDebugger(), init_logger(), DEFAULT_FRESHNESS_WINDOW = 3, DEFAULT_MAX_DIRECT_PER_RUN = 3, DEFAULT_MAX_SUPPORT_PER_RUN = 3, DEFAULT_HIERARCHY_DEPTH = 2, DEFAULT_MIN_COUNT = 3, DEFAULT_PRACTICE_MIN_COUNT = 3, DEFAULT_MAX_PRACTICE_PER_RUN = 4, BASE_TARGET_SCORE = 1, BASE_SUPPORT_SCORE = .8, DISCOVERED_SUPPORT_SCORE = 12, BASE_PRACTICE_SCORE = 1, PRACTICE_BASE_MULT = 2, MAX_PRACTICE_MULTIPLIER = 4, PRACTICE_STALENESS_BUMP_PER_DAY = .5, MAX_TARGET_MULTIPLIER = 8, MAX_SUPPORT_MULTIPLIER = 4, PRESCRIBED_DEBUG_VERSION = "testversion-prescribed-v3", PrescribedCardsGenerator = class extends ContentNavigator {
|
|
27404
27465
|
constructor(t, c, u) {
|
|
27405
27466
|
super(t, c, u), _defineProperty$2(this, "name", void 0), _defineProperty$2(this, "config", void 0), this.name = u.name || "Prescribed Cards", this.config = this.parseConfig(u.serializedData), logger.debug(`[Prescribed] Initialized with ${this.config.groups.length} groups and ${this.config.groups.reduce((t, c) => t + c.targetCardIds.length, 0)} targets`);
|
|
27406
27467
|
}
|
|
@@ -27424,7 +27485,7 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27424
27485
|
let Cr = {
|
|
27425
27486
|
updatedAt: isoNow(),
|
|
27426
27487
|
groups: {}
|
|
27427
|
-
}, wr = [], Tr = /* @__PURE__ */ new Set(), Er = [], Dr = S.practiceDebt ?? {}, Or = {};
|
|
27488
|
+
}, wr = [], Tr = /* @__PURE__ */ new Set(), Er = [], Dr = S.practiceDebt ?? {}, Or = {}, kr = /* @__PURE__ */ new Map();
|
|
27428
27489
|
for (let t of this.config.groups) {
|
|
27429
27490
|
let c = this.buildGroupRuntimeState({
|
|
27430
27491
|
group: t,
|
|
@@ -27451,43 +27512,43 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27451
27512
|
priorPracticeDebt: Dr,
|
|
27452
27513
|
nextPracticeDebt: Or
|
|
27453
27514
|
});
|
|
27454
|
-
wr.push(...d, ...g, ...w, ...D);
|
|
27515
|
+
kr.set(t.id, D.debts), wr.push(...d, ...g, ...w, ...D.cards);
|
|
27455
27516
|
}
|
|
27456
27517
|
Cr.practiceDebt = Or;
|
|
27457
|
-
let
|
|
27458
|
-
boostTags:
|
|
27459
|
-
_label: `prescribed-support (${
|
|
27518
|
+
let Ar = this.buildSupportHintSummary(Er), jr = Object.keys(Ar.boostTags).length > 0 ? {
|
|
27519
|
+
boostTags: Ar.boostTags,
|
|
27520
|
+
_label: `prescribed-support (${Ar.supportTags.length} tags; blocked=${Ar.blockedTargetIds.length}; testversion=${PRESCRIBED_DEBUG_VERSION})`
|
|
27460
27521
|
} : void 0;
|
|
27461
|
-
if (
|
|
27462
|
-
let t = Object.entries(
|
|
27522
|
+
if (jr) {
|
|
27523
|
+
let t = Object.entries(jr.boostTags ?? {});
|
|
27463
27524
|
logger.info(`[Prescribed] Emitting ${t.length} boost hint(s): ` + t.map(([t, c]) => `${t}\xD7${c.toFixed(1)}`).join(", "));
|
|
27464
27525
|
} else logger.info("[Prescribed] No hints to emit (no blocked targets or no support tags)");
|
|
27465
|
-
if (wr.length === 0) return logger.info("[Prescribed] 0 cards emitted (all targets blocked, authored/discovered support candidates exhausted)" + (
|
|
27526
|
+
if (this.capturePressureSnapshot(u, Er, kr, wr, jr), wr.length === 0) return logger.info("[Prescribed] 0 cards emitted (all targets blocked, authored/discovered support candidates exhausted)" + (jr ? " — boost hints emitted but may not survive filters" : "")), await this.putStrategyState(Cr).catch((t) => {
|
|
27466
27527
|
logger.debug(`[Prescribed] Failed to persist empty-state update: ${t}`);
|
|
27467
|
-
}),
|
|
27528
|
+
}), jr ? {
|
|
27468
27529
|
cards: [],
|
|
27469
|
-
hints:
|
|
27530
|
+
hints: jr
|
|
27470
27531
|
} : { cards: [] };
|
|
27471
|
-
let
|
|
27472
|
-
for (let t of
|
|
27532
|
+
let Mr = pickTopByScore(wr, t), Nr = /* @__PURE__ */ new Map();
|
|
27533
|
+
for (let t of Mr) {
|
|
27473
27534
|
let c = t.provenance[0];
|
|
27474
27535
|
if (c?.reason.includes("mode=practice")) continue;
|
|
27475
27536
|
let u = c?.reason.match(/group=([^;]+)/)?.[1], d = c?.reason.includes("mode=support") ? "supportIds" : "targetIds";
|
|
27476
|
-
u && (
|
|
27537
|
+
u && (Nr.has(u) || Nr.set(u, {
|
|
27477
27538
|
targetIds: [],
|
|
27478
27539
|
supportIds: []
|
|
27479
|
-
}),
|
|
27540
|
+
}), Nr.get(u)[d].push(t.cardId));
|
|
27480
27541
|
}
|
|
27481
27542
|
for (let t of this.config.groups) {
|
|
27482
|
-
let c = Cr.groups[t.id], u =
|
|
27543
|
+
let c = Cr.groups[t.id], u = Nr.get(t.id);
|
|
27483
27544
|
u && (u.targetIds.length > 0 || u.supportIds.length > 0) && (c.lastSurfacedAt = isoNow(), c.sessionsSinceSurfaced = 0, u.supportIds.length > 0 && (c.lastSupportAt = isoNow()));
|
|
27484
27545
|
}
|
|
27485
27546
|
return await this.putStrategyState(Cr).catch((t) => {
|
|
27486
27547
|
logger.debug(`[Prescribed] Failed to persist prescribed progress: ${t}`);
|
|
27487
|
-
}), logger.info(`[Prescribed] Emitting ${
|
|
27488
|
-
cards:
|
|
27489
|
-
hints:
|
|
27490
|
-
} : { cards:
|
|
27548
|
+
}), logger.info(`[Prescribed] Emitting ${Mr.length} cards (${Mr.filter((t) => t.provenance[0]?.reason.includes("mode=target")).length} target, ${Mr.filter((t) => t.provenance[0]?.reason.includes("mode=support")).length} support, ${Mr.filter((t) => t.provenance[0]?.reason.includes("mode=discovered-support")).length} discovered support)`), jr ? {
|
|
27549
|
+
cards: Mr,
|
|
27550
|
+
hints: jr
|
|
27551
|
+
} : { cards: Mr };
|
|
27491
27552
|
}
|
|
27492
27553
|
buildSupportHintSummary(t) {
|
|
27493
27554
|
let c = {}, u = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
@@ -27501,6 +27562,53 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27501
27562
|
supportTags: [...d].sort()
|
|
27502
27563
|
};
|
|
27503
27564
|
}
|
|
27565
|
+
capturePressureSnapshot(t, c, u, d, m) {
|
|
27566
|
+
let g = Date.now(), b = [];
|
|
27567
|
+
for (let t of c) {
|
|
27568
|
+
let c = t.group, d = c.freshnessWindowSessions ?? DEFAULT_FRESHNESS_WINDOW;
|
|
27569
|
+
if (b.push({
|
|
27570
|
+
id: `group:${c.id}:target`,
|
|
27571
|
+
label: `${c.id} targets`,
|
|
27572
|
+
multiplier: t.pressureMultiplier,
|
|
27573
|
+
max: MAX_TARGET_MULTIPLIER,
|
|
27574
|
+
detail: `${t.pendingTargets.length} pending (${t.surfaceableTargets.length} surfaceable, ${t.blockedTargets.length} blocked) \xB7 sinceSurfaced ${t.sessionsSinceSurfaced}/${d}`,
|
|
27575
|
+
items: t.blockedTargets.map((t) => ({
|
|
27576
|
+
label: t,
|
|
27577
|
+
value: "blocked"
|
|
27578
|
+
}))
|
|
27579
|
+
}), t.blockedTargets.length > 0) {
|
|
27580
|
+
let u = t.supportCandidates.length > 0 ? "direct-support" : t.discoveredSupportCandidates.length > 0 ? "inserted-support" : "boost-only";
|
|
27581
|
+
b.push({
|
|
27582
|
+
id: `group:${c.id}:support`,
|
|
27583
|
+
label: `${c.id} support`,
|
|
27584
|
+
multiplier: t.supportMultiplier,
|
|
27585
|
+
max: MAX_SUPPORT_MULTIPLIER,
|
|
27586
|
+
detail: `mode=${u} \xB7 ${t.supportTags.length} support tag(s)`,
|
|
27587
|
+
items: t.supportTags.map((t) => ({ label: t }))
|
|
27588
|
+
});
|
|
27589
|
+
}
|
|
27590
|
+
let m = u.get(c.id) ?? [];
|
|
27591
|
+
m.length > 0 && b.push({
|
|
27592
|
+
id: `group:${c.id}:practice-debt`,
|
|
27593
|
+
label: `${c.id} practice debt`,
|
|
27594
|
+
multiplier: Math.max(...m.map((t) => t.multiplier)),
|
|
27595
|
+
max: MAX_PRACTICE_MULTIPLIER,
|
|
27596
|
+
detail: `${m.length} under-practiced skill(s)`,
|
|
27597
|
+
items: m.map((t) => ({
|
|
27598
|
+
label: t.tag,
|
|
27599
|
+
value: `\xD7${t.multiplier.toFixed(2)} \xB7 open ${formatAge(g - new Date(t.firstOwedAt).getTime())}`
|
|
27600
|
+
}))
|
|
27601
|
+
});
|
|
27602
|
+
}
|
|
27603
|
+
captureStrategyPressure({
|
|
27604
|
+
source: "prescribed",
|
|
27605
|
+
courseId: t,
|
|
27606
|
+
gauges: b,
|
|
27607
|
+
topScore: d.length > 0 ? Math.max(...d.map((t) => t.score)) : null,
|
|
27608
|
+
hintsLabel: m?._label,
|
|
27609
|
+
timestamp: g
|
|
27610
|
+
});
|
|
27611
|
+
}
|
|
27504
27612
|
parseConfig(t) {
|
|
27505
27613
|
try {
|
|
27506
27614
|
let c = JSON.parse(t);
|
|
@@ -27579,6 +27687,7 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27579
27687
|
supportTags: [...br],
|
|
27580
27688
|
pressureMultiplier: Er,
|
|
27581
27689
|
supportMultiplier: Dr,
|
|
27690
|
+
sessionsSinceSurfaced: Cr,
|
|
27582
27691
|
debugVersion: PRESCRIBED_DEBUG_VERSION
|
|
27583
27692
|
};
|
|
27584
27693
|
}
|
|
@@ -27649,9 +27758,15 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27649
27758
|
}
|
|
27650
27759
|
buildPracticeCards(t) {
|
|
27651
27760
|
let { group: c, courseId: u, emittedIds: d, cardsByTag: m, hierarchyConfigs: g, userTagElo: b, userGlobalElo: S, activeIds: C, seenIds: w, priorPracticeDebt: T, nextPracticeDebt: E } = t, D = c.practiceTagPatterns ?? [];
|
|
27652
|
-
if (D.length === 0) return
|
|
27761
|
+
if (D.length === 0) return {
|
|
27762
|
+
cards: [],
|
|
27763
|
+
debts: []
|
|
27764
|
+
};
|
|
27653
27765
|
let O = c.practiceMinCount ?? DEFAULT_PRACTICE_MIN_COUNT, yr = c.maxPracticeCardsPerRun ?? DEFAULT_MAX_PRACTICE_PER_RUN, br = [...m.keys()].filter((t) => D.some((c) => matchesTagPattern(t, c)) && this.isUnlockedGatedSkill(t, g, b, S) && (b[t]?.count ?? 0) < O);
|
|
27654
|
-
if (br.length === 0) return
|
|
27766
|
+
if (br.length === 0) return {
|
|
27767
|
+
cards: [],
|
|
27768
|
+
debts: []
|
|
27769
|
+
};
|
|
27655
27770
|
let xr = Date.now(), Sr = 1440 * 60 * 1e3, Cr = /* @__PURE__ */ new Map();
|
|
27656
27771
|
for (let t of br) {
|
|
27657
27772
|
let c = T[t] ?? isoNow();
|
|
@@ -27659,7 +27774,11 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27659
27774
|
let u = Math.max(0, (xr - new Date(c).getTime()) / 864e5), d = clamp(PRACTICE_BASE_MULT + u * PRACTICE_STALENESS_BUMP_PER_DAY, PRACTICE_BASE_MULT, MAX_PRACTICE_MULTIPLIER);
|
|
27660
27775
|
Cr.set(t, d);
|
|
27661
27776
|
}
|
|
27662
|
-
let wr =
|
|
27777
|
+
let wr = br.map((t) => ({
|
|
27778
|
+
tag: t,
|
|
27779
|
+
multiplier: Cr.get(t) ?? PRACTICE_BASE_MULT,
|
|
27780
|
+
firstOwedAt: E[t]
|
|
27781
|
+
})).sort((t, c) => c.multiplier - t.multiplier || t.tag.localeCompare(c.tag)), Tr = this.findDiscoveredSupportCards({
|
|
27663
27782
|
supportTags: br,
|
|
27664
27783
|
cardsByTag: m,
|
|
27665
27784
|
activeIds: C,
|
|
@@ -27667,15 +27786,18 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27667
27786
|
excludedIds: d,
|
|
27668
27787
|
limit: yr
|
|
27669
27788
|
});
|
|
27670
|
-
if (
|
|
27671
|
-
|
|
27672
|
-
|
|
27673
|
-
|
|
27789
|
+
if (Tr.length === 0) return {
|
|
27790
|
+
cards: [],
|
|
27791
|
+
debts: wr
|
|
27792
|
+
};
|
|
27793
|
+
logger.info(`[Prescribed] Group '${c.id}' practice: ${br.length} unlocked under-practiced skill(s), emitting ${Tr.length} drill card(s)`);
|
|
27794
|
+
let Er = [];
|
|
27795
|
+
for (let t of Tr) {
|
|
27674
27796
|
d.add(t);
|
|
27675
27797
|
let g = PRACTICE_BASE_MULT;
|
|
27676
27798
|
for (let c of br) (m.get(c)?.includes(t) ?? !1) && (g = Math.max(g, Cr.get(c) ?? PRACTICE_BASE_MULT));
|
|
27677
27799
|
let b = BASE_PRACTICE_SCORE * g;
|
|
27678
|
-
|
|
27800
|
+
Er.push({
|
|
27679
27801
|
cardId: t,
|
|
27680
27802
|
courseId: u,
|
|
27681
27803
|
score: b,
|
|
@@ -27689,7 +27811,10 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
27689
27811
|
}]
|
|
27690
27812
|
});
|
|
27691
27813
|
}
|
|
27692
|
-
return
|
|
27814
|
+
return {
|
|
27815
|
+
cards: Er,
|
|
27816
|
+
debts: wr
|
|
27817
|
+
};
|
|
27693
27818
|
}
|
|
27694
27819
|
isUnlockedGatedSkill(t, c, u, d) {
|
|
27695
27820
|
let m = c.map((c) => c.prerequisites[t]).filter((t) => Array.isArray(t) && t.length > 0);
|
|
@@ -28622,6 +28747,7 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
28622
28747
|
"./PipelineAssembler.ts": () => Promise.resolve().then(() => (init_PipelineAssembler(), PipelineAssembler_exports)),
|
|
28623
28748
|
"./PipelineDebugger.ts": () => Promise.resolve().then(() => (init_PipelineDebugger(), PipelineDebugger_exports)),
|
|
28624
28749
|
"./SrsDebugger.ts": () => Promise.resolve().then(() => (init_SrsDebugger(), SrsDebugger_exports)),
|
|
28750
|
+
"./StrategyPressureDebugger.ts": () => Promise.resolve().then(() => (init_StrategyPressureDebugger(), StrategyPressureDebugger_exports)),
|
|
28625
28751
|
"./defaults.ts": () => Promise.resolve().then(() => (init_defaults(), defaults_exports)),
|
|
28626
28752
|
"./diversityRerank.ts": () => Promise.resolve().then(() => (init_diversityRerank(), diversityRerank_exports)),
|
|
28627
28753
|
"./filters/WeightedFilter.ts": () => Promise.resolve().then(() => (init_WeightedFilter(), WeightedFilter_exports)),
|
|
@@ -28649,7 +28775,9 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
28649
28775
|
NavigatorRole: () => NavigatorRole,
|
|
28650
28776
|
NavigatorRoles: () => NavigatorRoles,
|
|
28651
28777
|
Navigators: () => Navigators,
|
|
28778
|
+
captureStrategyPressure: () => captureStrategyPressure,
|
|
28652
28779
|
clearSrsBacklogDebug: () => clearSrsBacklogDebug,
|
|
28780
|
+
clearStrategyPressureDebug: () => clearStrategyPressureDebug,
|
|
28653
28781
|
diversityRerank: () => diversityRerank,
|
|
28654
28782
|
getActivePipeline: () => getActivePipeline,
|
|
28655
28783
|
getCardOrigin: () => getCardOrigin,
|
|
@@ -28657,6 +28785,7 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
28657
28785
|
getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
|
|
28658
28786
|
getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
|
|
28659
28787
|
getSrsBacklogDebug: () => getSrsBacklogDebug,
|
|
28788
|
+
getStrategyPressureDebug: () => getStrategyPressureDebug,
|
|
28660
28789
|
hasRegisteredNavigator: () => hasRegisteredNavigator,
|
|
28661
28790
|
initializeNavigatorRegistry: () => initializeNavigatorRegistry,
|
|
28662
28791
|
isFilter: () => isFilter,
|
|
@@ -28665,7 +28794,7 @@ var import___vite_browser_external, import___vite_browser_external$1, import___v
|
|
|
28665
28794
|
pipelineDebugAPI: () => pipelineDebugAPI,
|
|
28666
28795
|
registerNavigator: () => registerNavigator
|
|
28667
28796
|
}), init_navigators = __esm({ "src/core/navigators/index.ts"() {
|
|
28668
|
-
init_diversityRerank(), init_PipelineDebugger(), init_SrsDebugger(), init_logger(), init_(), init_2(), init_3(), navigatorRegistry = /* @__PURE__ */ new Map(), Navigators = /* @__PURE__ */ ((t) => (t.ELO = "elo", t.SRS = "srs", t.PRESCRIBED = "prescribed", t.HIERARCHY = "hierarchyDefinition", t.INTERFERENCE = "interferenceMitigator", t.RELATIVE_PRIORITY = "relativePriority", t.USER_TAG_PREFERENCE = "userTagPreference", t))(Navigators || {}), NavigatorRole = /* @__PURE__ */ ((t) => (t.GENERATOR = "generator", t.FILTER = "filter", t))(NavigatorRole || {}), NavigatorRoles = {
|
|
28797
|
+
init_diversityRerank(), init_PipelineDebugger(), init_SrsDebugger(), init_StrategyPressureDebugger(), init_logger(), init_(), init_2(), init_3(), navigatorRegistry = /* @__PURE__ */ new Map(), Navigators = /* @__PURE__ */ ((t) => (t.ELO = "elo", t.SRS = "srs", t.PRESCRIBED = "prescribed", t.HIERARCHY = "hierarchyDefinition", t.INTERFERENCE = "interferenceMitigator", t.RELATIVE_PRIORITY = "relativePriority", t.USER_TAG_PREFERENCE = "userTagPreference", t))(Navigators || {}), NavigatorRole = /* @__PURE__ */ ((t) => (t.GENERATOR = "generator", t.FILTER = "filter", t))(NavigatorRole || {}), NavigatorRoles = {
|
|
28669
28798
|
elo: "generator",
|
|
28670
28799
|
srs: "generator",
|
|
28671
28800
|
prescribed: "generator",
|
|
@@ -31299,7 +31428,10 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
|
|
|
31299
31428
|
S.length > 0 && (logger.debug(`[CardHydrationService] Prefetching ${S.length} audio files for card ${t.cardID}`), await Promise.allSettled(S.map(prefetchAudio)));
|
|
31300
31429
|
let C = g.map(displayableDataToViewData).reverse();
|
|
31301
31430
|
this.hydratedCards.set(t.cardID, {
|
|
31302
|
-
item:
|
|
31431
|
+
item: {
|
|
31432
|
+
...t,
|
|
31433
|
+
elo: toCourseElo(u.elo).global.score
|
|
31434
|
+
},
|
|
31303
31435
|
view: m,
|
|
31304
31436
|
data: C,
|
|
31305
31437
|
tags: d.get(t.cardID) ?? []
|
|
@@ -32075,7 +32207,7 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
|
|
|
32075
32207
|
help() {
|
|
32076
32208
|
logger.info("\n🎨 Mixer Debug API\n\nCommands:\n .showLastMix() Show summary of most recent mixer run\n .showRun(id|index) Show summary of a specific run (by index or ID suffix)\n .explainSourceBalance() Analyze source balance and selection patterns\n .compareScores() Compare score distributions across sources\n .showCard(cardId) Show mixer decisions for a specific card\n .listRuns() List all captured runs in table format\n .export() Export run history as JSON for bug reports\n .clear() Clear run history\n .runs Access raw run history array\n .help() Show this help message\n\nExample:\n window.skuilder.mixer.showLastMix()\n window.skuilder.mixer.explainSourceBalance()\n window.skuilder.mixer.compareScores()\n");
|
|
32077
32209
|
}
|
|
32078
|
-
}, mountMixerDebugger(), init_logger(), init_PipelineDebugger(), init_SrsDebugger(), init_logger(), activeController = null, OVERLAY_ID = "skuilder-session-overlay", POLL_MS = 300, INLINE_THRESHOLD = 5, SPINNER_FRAMES = [
|
|
32210
|
+
}, mountMixerDebugger(), init_logger(), init_PipelineDebugger(), init_SrsDebugger(), init_StrategyPressureDebugger(), init_logger(), activeController = null, OVERLAY_ID = "skuilder-session-overlay", POLL_MS = 300, INLINE_THRESHOLD = 5, SPINNER_FRAMES = [
|
|
32079
32211
|
"⠋",
|
|
32080
32212
|
"⠙",
|
|
32081
32213
|
"⠹",
|
|
@@ -32254,6 +32386,7 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
|
|
|
32254
32386
|
supplyQ: describe(this.supplyQ),
|
|
32255
32387
|
failedQ: describe(this.failedQ),
|
|
32256
32388
|
reviewBacklog: getSrsBacklogDebug(),
|
|
32389
|
+
strategyPressure: getStrategyPressureDebug(),
|
|
32257
32390
|
drawnCards: t
|
|
32258
32391
|
};
|
|
32259
32392
|
}
|