@bonginkan/maria 4.1.15 → 4.2.1

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/index.js CHANGED
@@ -39120,9 +39120,9 @@ var FeatureFlagController = class {
39120
39120
  config;
39121
39121
  status;
39122
39122
  userCache = /* @__PURE__ */ new Map();
39123
- // User -> should use V2
39123
+ // User -> should use standard
39124
39124
  commandCache = /* @__PURE__ */ new Map();
39125
- // Command -> should use V2
39125
+ // Command -> should use standard
39126
39126
  healthHistory = [];
39127
39127
  MAX_HISTORY = 100;
39128
39128
  monitoringInterval;
@@ -39135,7 +39135,7 @@ var FeatureFlagController = class {
39135
39135
  /**
39136
39136
  * Determine if a command execution should use SystemCommand
39137
39137
  */
39138
- shouldUseV2(context2) {
39138
+ shouldUseStandard(context2) {
39139
39139
  if (this.config.disabledCommands.includes(context2.commandName)) {
39140
39140
  return false;
39141
39141
  }
@@ -39285,7 +39285,7 @@ var FeatureFlagController = class {
39285
39285
  return this.status.statistics.abTestResults;
39286
39286
  }
39287
39287
  /**
39288
- * Apply targeting strategy to determine V2 usage
39288
+ * Apply targeting strategy to determine standard usage
39289
39289
  */
39290
39290
  applyTargetingStrategy(context2) {
39291
39291
  const rolloutPercentage = this.config.rolloutPercentage;
@@ -51787,7 +51787,7 @@ var HotCache = class extends EventEmitter {
51787
51787
  if (this.cache.size <= this.config.maxSize) {
51788
51788
  return;
51789
51789
  }
51790
- let entriesToRemove = this.cache.size - this.config.maxSize + 1;
51790
+ const entriesToRemove = this.cache.size - this.config.maxSize + 1;
51791
51791
  if (this.config.enableLru) {
51792
51792
  const entries = Array.from(this.cache.entries()).sort(([, a2], [, b]) => a2.lastAccessedAt.getTime() - b.lastAccessedAt.getTime());
51793
51793
  for (let i = 0; i < entriesToRemove && i < entries.length; i++) {
@@ -52624,7 +52624,7 @@ var PreciseCostCalculator = class extends EventEmitter {
52624
52624
  async calculateRawCost(costModel, inputTokens, outputTokens, qualityFactor, latencyFactor, currentUsage) {
52625
52625
  let inputCost = 0;
52626
52626
  let outputCost = 0;
52627
- let fixedCost = costModel.basePrice || 0;
52627
+ const fixedCost = costModel.basePrice || 0;
52628
52628
  let billableInputTokens = inputTokens;
52629
52629
  let billableOutputTokens = outputTokens;
52630
52630
  if (costModel.freeQuota) {