@vue-skuilder/standalone-ui 0.2.9 → 0.2.11

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.
@@ -28903,9 +28903,10 @@ ${g.rows.map((t) => ` ${t.id}-${t.key}
28903
28903
  return u;
28904
28904
  }
28905
28905
  async getAllCardIds() {
28906
+ let t = `${DocTypePrefixes.CARD}-`;
28906
28907
  return (await this.db.allDocs({
28907
- startkey: "CARD-",
28908
- endkey: "CARD-￰",
28908
+ startkey: t,
28909
+ endkey: `${t}\uFFF0`,
28909
28910
  include_docs: !1
28910
28911
  })).rows.map((t) => t.id);
28911
28912
  }
@@ -31147,16 +31148,16 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
31147
31148
  m.card.tags.includes("srs:skip") || this.srsService.scheduleReview(c, u);
31148
31149
  let { globalScore: S, taggedPerformance: C } = this.parsePerformance(t.performance);
31149
31150
  if (C) {
31150
- let t = Object.keys(C).filter((t) => t !== "_global"), c = t.filter((t) => C[t] === null), u = t.filter((t) => C[t] !== null);
31151
- logger.info(`[ResponseProcessor] per-tag ELO update for ${b}: scored=[${u.join(", ")}] count-only=[${c.join(", ")}]`), this.eloService.updateUserAndCardEloPerTag(C, g, b, d, m);
31151
+ let u = Object.keys(C).filter((t) => t !== "_global"), S = u.filter((t) => C[t] === null), w = u.filter((t) => C[t] !== null);
31152
+ logger.info(`[FirstContactElo] correct first-attempt per-tag ELO update for ${b} (historyLen=${c.records.length}, priorAttemps=${t.priorAttemps}): scored=[${w.join(", ")}] count-only=[${S.join(", ")}]`), this.eloService.updateUserAndCardEloPerTag(C, g, b, d, m);
31152
31153
  } else {
31153
- let t = .5 + S / 2;
31154
- if (c.records.length === 1) this.eloService.updateUserAndCardElo(t, g, b, d, m);
31154
+ let u = .5 + S / 2;
31155
+ if (c.records.length === 1) this.eloService.updateUserAndCardElo(u, g, b, d, m);
31155
31156
  else {
31156
- let u = Math.ceil(32 / c.records.length);
31157
- this.eloService.updateUserAndCardElo(t, g, b, d, m, u);
31157
+ let t = Math.ceil(32 / c.records.length);
31158
+ this.eloService.updateUserAndCardElo(u, g, b, d, m, t);
31158
31159
  }
31159
- logger.info("[ResponseProcessor] Processed correct response with SRS scheduling and ELO update");
31160
+ logger.info(`[FirstContactElo] correct first-attempt ELO update (score=${u.toFixed(3)}) for ${b} (historyLen=${c.records.length}, priorAttemps=${t.priorAttemps})`);
31160
31161
  }
31161
31162
  return {
31162
31163
  nextCardAction: "dismiss-success",
@@ -31178,8 +31179,8 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
31178
31179
  }
31179
31180
  }
31180
31181
  processIncorrectResponse(t, c, u, d, m, g, b, S, C) {
31181
- let { taggedPerformance: w } = this.parsePerformance(t.performance);
31182
- return c.records.length !== 1 && t.priorAttemps === 0 ? w ? (this.eloService.updateUserAndCardEloPerTag(w, m, g, u, d), logger.info(`[ResponseProcessor] Processed incorrect response with per-tag ELO update (${Object.keys(w).length - 1} tags)`)) : (this.eloService.updateUserAndCardElo(0, m, g, u, d), logger.info("[ResponseProcessor] Processed incorrect response with ELO update")) : logger.info("[ResponseProcessor] Processed incorrect response (no ELO update needed)"), d.records.length >= b ? C >= S ? (w ? this.eloService.updateUserAndCardEloPerTag(w, m, g, u, d) : this.eloService.updateUserAndCardElo(0, m, g, u, d), {
31182
+ let { taggedPerformance: w } = this.parsePerformance(t.performance), T = !1;
31183
+ return t.priorAttemps === 0 ? (w ? (this.eloService.updateUserAndCardEloPerTag(w, m, g, u, d), logger.info(`[FirstContactElo] incorrect first-attempt per-tag ELO update for ${g} (historyLen=${c.records.length}, priorAttemps=${t.priorAttemps}, tags=${Object.keys(w).length - 1})`)) : (this.eloService.updateUserAndCardElo(0, m, g, u, d), logger.info(`[FirstContactElo] incorrect first-attempt ELO update (score=0) for ${g} (historyLen=${c.records.length}, priorAttemps=${t.priorAttemps})`)), T = !0) : logger.info(`[FirstContactElo] incorrect retry \u2014 no ELO update for ${g} (historyLen=${c.records.length}, priorAttemps=${t.priorAttemps})`), d.records.length >= b ? C >= S ? (T ? logger.info(`[FirstContactElo] dismiss-failed \u2014 ELO already updated this response, skipping double penalty for ${g}`) : (w ? this.eloService.updateUserAndCardEloPerTag(w, m, g, u, d) : this.eloService.updateUserAndCardElo(0, m, g, u, d), logger.info(`[FirstContactElo] dismiss-failed final ELO penalty for ${g} (historyLen=${c.records.length}, sessionViews=${C})`)), {
31183
31184
  nextCardAction: "dismiss-failed",
31184
31185
  shouldLoadNextCard: !0,
31185
31186
  isCorrect: !1,