@vue-skuilder/db 0.2.28 → 0.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/{contentSource-DpQqTG3m.d.cts → contentSource-B6FrSihy.d.cts} +218 -2
  2. package/dist/{contentSource-BoFBwvYa.d.ts → contentSource-CqJmbOZN.d.ts} +218 -2
  3. package/dist/core/index.d.cts +13 -90
  4. package/dist/core/index.d.ts +13 -90
  5. package/dist/core/index.js +587 -179
  6. package/dist/core/index.js.map +1 -1
  7. package/dist/core/index.mjs +586 -179
  8. package/dist/core/index.mjs.map +1 -1
  9. package/dist/{dataLayerProvider-D_LJT3F4.d.ts → dataLayerProvider-B9_UCvkR.d.ts} +1 -1
  10. package/dist/{dataLayerProvider-Dl3cAAvQ.d.cts → dataLayerProvider-DUxDqMtZ.d.cts} +1 -1
  11. package/dist/diagnostics/index.d.cts +79 -6
  12. package/dist/diagnostics/index.d.ts +79 -6
  13. package/dist/diagnostics/index.js +158 -4
  14. package/dist/diagnostics/index.js.map +1 -1
  15. package/dist/diagnostics/index.mjs +156 -4
  16. package/dist/diagnostics/index.mjs.map +1 -1
  17. package/dist/impl/couch/index.d.cts +11 -2
  18. package/dist/impl/couch/index.d.ts +11 -2
  19. package/dist/impl/couch/index.js +585 -179
  20. package/dist/impl/couch/index.js.map +1 -1
  21. package/dist/impl/couch/index.mjs +585 -179
  22. package/dist/impl/couch/index.mjs.map +1 -1
  23. package/dist/impl/static/index.d.cts +8 -2
  24. package/dist/impl/static/index.d.ts +8 -2
  25. package/dist/impl/static/index.js +582 -179
  26. package/dist/impl/static/index.js.map +1 -1
  27. package/dist/impl/static/index.mjs +582 -179
  28. package/dist/impl/static/index.mjs.map +1 -1
  29. package/dist/index.d.cts +66 -5
  30. package/dist/index.d.ts +66 -5
  31. package/dist/index.js +635 -180
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +622 -180
  34. package/dist/index.mjs.map +1 -1
  35. package/package.json +3 -3
  36. package/src/core/interfaces/contentSource.ts +7 -0
  37. package/src/core/navigators/Pipeline.ts +145 -13
  38. package/src/core/navigators/PipelineAssembler.ts +19 -40
  39. package/src/core/navigators/PipelineDebugger.ts +11 -2
  40. package/src/core/navigators/SrsDebugger.ts +37 -12
  41. package/src/core/navigators/defaults.ts +29 -5
  42. package/src/core/navigators/filters/WeightedFilter.ts +5 -1
  43. package/src/core/navigators/filters/eloDistance.ts +261 -76
  44. package/src/core/navigators/filters/hierarchyDefinition.ts +5 -1
  45. package/src/core/navigators/filters/index.ts +2 -2
  46. package/src/core/navigators/filters/interferenceMitigator.ts +5 -1
  47. package/src/core/navigators/filters/relativePriority.ts +5 -1
  48. package/src/core/navigators/filters/types.ts +24 -1
  49. package/src/core/navigators/filters/userTagPreference.ts +5 -1
  50. package/src/core/navigators/generators/elo.ts +23 -53
  51. package/src/core/navigators/generators/srs.ts +27 -124
  52. package/src/core/navigators/index.ts +31 -5
  53. package/src/core/navigators/pipelinePlan.ts +245 -0
  54. package/src/core/navigators/regulators.ts +230 -0
  55. package/src/core/types/studySession.ts +3 -0
  56. package/src/diagnostics/dataset.ts +13 -2
  57. package/src/diagnostics/index.ts +3 -0
  58. package/src/diagnostics/loader.ts +5 -2
  59. package/src/diagnostics/pipeline.ts +236 -0
  60. package/src/diagnostics/text.ts +26 -3
  61. package/src/impl/couch/courseDB.ts +13 -0
  62. package/src/impl/static/courseDB.ts +9 -0
  63. package/src/index.ts +4 -0
  64. package/src/study/SessionController.ts +20 -0
  65. package/src/study/SessionOverlay.ts +7 -4
  66. package/tests/core/navigators/PipelineAssembler.test.ts +20 -5
  67. package/tests/core/navigators/eloDistanceFilter.test.ts +9 -9
@@ -1,6 +1,6 @@
1
1
  import { C as ClassroomDBInterface, A as AdminDBInterface } from '../../classroomDB-DLTtLZct.cjs';
2
- import { U as UserDBInterface, C as CourseDBInterface, a as CoursesDBInterface, i as CourseInfo, j as StudySessionItem, D as DataLayerResult, k as ContentNavigationStrategyData, l as ContentNavigator, R as ReplanHints, G as GeneratorResult } from '../../contentSource-DpQqTG3m.cjs';
3
- import { D as DataLayerProvider } from '../../dataLayerProvider-Dl3cAAvQ.cjs';
2
+ import { U as UserDBInterface, C as CourseDBInterface, a as CoursesDBInterface, k as CourseInfo, l as StudySessionItem, D as DataLayerResult, b as ContentNavigationStrategyData, m as ContentNavigator, n as ReplanHints, G as GeneratorResult } from '../../contentSource-B6FrSihy.cjs';
3
+ import { D as DataLayerProvider } from '../../dataLayerProvider-DUxDqMtZ.cjs';
4
4
  import { S as StaticCourseManifest } from '../../types-D0oQeJAi.cjs';
5
5
  import { CourseConfig, CourseElo, DataShape } from '@vue-skuilder/common';
6
6
  import { S as SkuilderCourseData, d as QualifiedCardID, e as TagStub, T as Tag } from '../../types-legacy-BkOYOR6U.cjs';
@@ -176,6 +176,12 @@ declare class StaticCourseDB implements CourseDBInterface {
176
176
  createNavigator(user: UserDBInterface): Promise<ContentNavigator>;
177
177
  private _pendingHints;
178
178
  setEphemeralHints(hints: ReplanHints): void;
179
+ /** Forward a presentation to the navigator (a new card restarts its intake clock). */
180
+ notePresented(card: {
181
+ cardId: string;
182
+ courseId: string;
183
+ status: string;
184
+ }): void;
179
185
  getWeightedCards(limit: number): Promise<GeneratorResult>;
180
186
  /**
181
187
  * Get attachment URL for a document and attachment name
@@ -1,6 +1,6 @@
1
1
  import { C as ClassroomDBInterface, A as AdminDBInterface } from '../../classroomDB-DLTtLZct.js';
2
- import { U as UserDBInterface, C as CourseDBInterface, a as CoursesDBInterface, i as CourseInfo, j as StudySessionItem, D as DataLayerResult, k as ContentNavigationStrategyData, l as ContentNavigator, R as ReplanHints, G as GeneratorResult } from '../../contentSource-BoFBwvYa.js';
3
- import { D as DataLayerProvider } from '../../dataLayerProvider-D_LJT3F4.js';
2
+ import { U as UserDBInterface, C as CourseDBInterface, a as CoursesDBInterface, k as CourseInfo, l as StudySessionItem, D as DataLayerResult, b as ContentNavigationStrategyData, m as ContentNavigator, n as ReplanHints, G as GeneratorResult } from '../../contentSource-CqJmbOZN.js';
3
+ import { D as DataLayerProvider } from '../../dataLayerProvider-B9_UCvkR.js';
4
4
  import { S as StaticCourseManifest } from '../../types-dXWfyz9B.js';
5
5
  import { CourseConfig, CourseElo, DataShape } from '@vue-skuilder/common';
6
6
  import { S as SkuilderCourseData, d as QualifiedCardID, e as TagStub, T as Tag } from '../../types-legacy-BkOYOR6U.js';
@@ -176,6 +176,12 @@ declare class StaticCourseDB implements CourseDBInterface {
176
176
  createNavigator(user: UserDBInterface): Promise<ContentNavigator>;
177
177
  private _pendingHints;
178
178
  setEphemeralHints(hints: ReplanHints): void;
179
+ /** Forward a presentation to the navigator (a new card restarts its intake clock). */
180
+ notePresented(card: {
181
+ cardId: string;
182
+ courseId: string;
183
+ status: string;
184
+ }): void;
179
185
  getWeightedCards(limit: number): Promise<GeneratorResult>;
180
186
  /**
181
187
  * Get attachment URL for a document and attachment name