Skip to content

The design language that makes your AI harness better at design.

JavaScript

Sync generated provider output

github-actions[bot]043a15734950
diff --git a/.agents/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.agents/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.agents/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.agents/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.claude/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.claude/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.claude/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.claude/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.cursor/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.cursor/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.cursor/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.cursor/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.gemini/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.gemini/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.gemini/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.gemini/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.github/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.github/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.github/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.github/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.grok/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.grok/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.grok/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.grok/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.kiro/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.kiro/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.kiro/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.kiro/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.opencode/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.opencode/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.opencode/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.opencode/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.pi/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.pi/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.pi/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.pi/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.qoder/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.qoder/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.qoder/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.qoder/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.rovodev/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.rovodev/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.rovodev/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.rovodev/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.trae-cn/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.trae-cn/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.trae-cn/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.trae-cn/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.trae/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.trae/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.trae/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.trae/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/.vibe/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/.vibe/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/.vibe/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/.vibe/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;
diff --git a/plugin/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs b/plugin/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
index 669dedcb9..686aae95a 100644
--- a/plugin/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
+++ b/plugin/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
@@ -309,8 +309,16 @@ const REGEX_ANALYZERS = [
// Em-dash overuse: 5+ em-dashes or "--" in body text content
// (occasional em-dash use in prose is fine; the pattern fires only
// when count crosses into AI-cadence territory).
+ //
+ // stripHtmlToText drops tags but leaves character-entity escapes intact, so
+ // a model that writes `—`, `—`, or `—` renders an em-dash
+ // the counter never saw. Decode the em-dash entities (named, zero-padded
+ // decimal, upper/lower hex) to the literal glyph first. En-dash entities are
+ // deliberately left alone: the rule counts em-dashes, and the literal `–`
+ // was never counted either.
(content, filePath) => {
- const text = stripHtmlToText(content);
+ const text = stripHtmlToText(content)
+ .replace(/—|&#0*8212;|&#x0*2014;/gi, '—');
let count = 0;
const re = /[—]|--(?=\S)/g;
while (re.exec(text) !== null) count++;