@vibemancer/core 0.1.5 → 0.1.7

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.
@@ -207,7 +207,7 @@ function currentRuleset() {
207
207
  }
208
208
 
209
209
  // src/engine-version.ts
210
- var ENGINE_VERSION = 1781975653307;
210
+ var ENGINE_VERSION = 1782217711211;
211
211
 
212
212
  // src/engine/hooks-runtime.ts
213
213
  var _g = globalThis;
@@ -9535,6 +9535,22 @@ function scoreFightAsWizard2(result) {
9535
9535
  return score;
9536
9536
  }
9537
9537
 
9538
+ // src/banned-bot-names.ts
9539
+ var BANNED_EXACT = /* @__PURE__ */ new Set([
9540
+ // e.g. 'somebrand',
9541
+ ]);
9542
+ var BANNED_PATTERNS = [
9543
+ // e.g. /^somebrand[-_ ]?bot$/,
9544
+ ];
9545
+ function matchesAnyBanRule(name, exact, patterns) {
9546
+ const normalized = name.trim().toLowerCase();
9547
+ if (exact.has(normalized)) return true;
9548
+ return patterns.some((re) => re.test(normalized));
9549
+ }
9550
+ function isBannedBotName(name) {
9551
+ return matchesAnyBanRule(name, BANNED_EXACT, BANNED_PATTERNS);
9552
+ }
9553
+
9538
9554
  // src/engine/sandbox-browser.ts
9539
9555
  var WORKER_BOOTSTRAP = `
9540
9556
  ;(function() {
@@ -10581,6 +10597,8 @@ export {
10581
10597
  narrowRange,
10582
10598
  scoreFight,
10583
10599
  scoreFightAsWizard2,
10600
+ matchesAnyBanRule,
10601
+ isBannedBotName,
10584
10602
  createWorkerScript,
10585
10603
  BrowserMatchSandbox,
10586
10604
  browserSandboxFight,
@@ -10596,4 +10614,4 @@ export {
10596
10614
  diagnoseTrace,
10597
10615
  formatDiagnosis
10598
10616
  };
10599
- //# sourceMappingURL=chunk-W7HWJFQ4.js.map
10617
+ //# sourceMappingURL=chunk-TQUJO647.js.map