@vue-skuilder/standalone-ui 0.2.26 → 0.2.27

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.
@@ -25273,6 +25273,19 @@ function formatAge(t) {
25273
25273
  let u = Math.round(c / 60);
25274
25274
  return u < 24 ? `${u}h` : `${Math.round(u / 24)}d`;
25275
25275
  }
25276
+ function unmetIntroExposeTags(t, c, u) {
25277
+ if (u <= 0) return [];
25278
+ let d = new Set(t.filter((t) => t.startsWith("gpc:expose:")));
25279
+ for (let c of t) {
25280
+ if (!c.startsWith("gpc:intro:")) continue;
25281
+ let t = c.slice(10);
25282
+ t && d.add(`gpc:expose:${t}`);
25283
+ }
25284
+ return [...d].filter((t) => {
25285
+ let d = c[t];
25286
+ return !d || d.count < u;
25287
+ });
25288
+ }
25276
25289
  function pickTopByScore(t, c) {
25277
25290
  return [...t].sort((t, c) => c.score - t.score || t.cardId.localeCompare(c.cardId)).slice(0, c);
25278
25291
  }
@@ -27487,7 +27500,10 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
27487
27500
  return { cards: g };
27488
27501
  }
27489
27502
  };
27490
- } }), 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"() {
27503
+ } }), generators_exports = {}, init_generators = __esm({ "src/core/navigators/generators/index.ts"() {} }), prescribed_exports = {}, __export(prescribed_exports, {
27504
+ default: () => PrescribedCardsGenerator,
27505
+ unmetIntroExposeTags: () => unmetIntroExposeTags
27506
+ }), init_prescribed = __esm({ "src/core/navigators/generators/prescribed.ts"() {
27491
27507
  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 {
27492
27508
  constructor(t, c, u) {
27493
27509
  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`);
@@ -27647,6 +27663,7 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
27647
27663
  freshnessWindowSessions: typeof t.freshnessWindowSessions == "number" ? t.freshnessWindowSessions : DEFAULT_FRESHNESS_WINDOW,
27648
27664
  maxDirectTargetsPerRun: typeof t.maxDirectTargetsPerRun == "number" ? t.maxDirectTargetsPerRun : DEFAULT_MAX_DIRECT_PER_RUN,
27649
27665
  maxSupportCardsPerRun: typeof t.maxSupportCardsPerRun == "number" ? t.maxSupportCardsPerRun : DEFAULT_MAX_SUPPORT_PER_RUN,
27666
+ introExposeMinCount: typeof t.introExposeMinCount == "number" ? t.introExposeMinCount : DEFAULT_MIN_COUNT,
27650
27667
  hierarchyWalk: {
27651
27668
  enabled: t.hierarchyWalk?.enabled !== !1,
27652
27669
  maxDepth: typeof t.hierarchyWalk?.maxDepth == "number" ? t.hierarchyWalk.maxDepth : DEFAULT_HIERARCHY_DEPTH
@@ -27681,16 +27698,8 @@ var import_browser_ponyfill, import_browser_ponyfill$1, import_browser, import__
27681
27698
  for (let t of E) D.set(t, g.get(t) ?? []);
27682
27699
  let O = [], xr = [], Sr = /* @__PURE__ */ new Set();
27683
27700
  for (let t of E) {
27684
- let u = D.get(t) ?? [], d = this.resolveBlockedSupportTags(u, S, C, w, c.hierarchyWalk?.enabled !== !1, c.hierarchyWalk?.maxDepth ?? DEFAULT_HIERARCHY_DEPTH), m = u.filter((t) => t.startsWith("gpc:intro:")), g = new Set(u.filter((t) => t.startsWith("gpc:expose:")));
27685
- for (let t of m) {
27686
- let c = t.slice(10);
27687
- c && g.add(`gpc:expose:${c}`);
27688
- }
27689
- let b = [...g].filter((t) => {
27690
- let c = C[t];
27691
- return !c || c.count < DEFAULT_MIN_COUNT;
27692
- });
27693
- b.length > 0 && b.forEach((t) => Sr.add(t)), d.blocked || b.length > 0 ? (O.push(t), d.supportTags.forEach((t) => Sr.add(t))) : xr.push(t);
27701
+ let u = D.get(t) ?? [], d = this.resolveBlockedSupportTags(u, S, C, w, c.hierarchyWalk?.enabled !== !1, c.hierarchyWalk?.maxDepth ?? DEFAULT_HIERARCHY_DEPTH), m = unmetIntroExposeTags(u, C, c.introExposeMinCount ?? DEFAULT_MIN_COUNT);
27702
+ m.length > 0 && m.forEach((t) => Sr.add(t)), d.blocked || m.length > 0 ? (O.push(t), d.supportTags.forEach((t) => Sr.add(t))) : xr.push(t);
27694
27703
  }
27695
27704
  let Cr = dedupe([...c.supportCardIds ?? [], ...this.findSupportCardsByTags(c, g, [...Sr])]).filter((t) => !d.has(t) && !m.has(t)), wr = O.length > 0 && Sr.size > 0 && Cr.length === 0 ? this.findDiscoveredSupportCards({
27696
27705
  supportTags: [...Sr],