Open source AI Employees. 8 scheduled business roles, 60 routines, on Claude Code and 10 other harnesses. They drive your browser the way you do and improve every run. You own the files.
JavaScript ai-agentsai-employeeai-employeesantigravityautomationclaude-codeclaude-skillcodexhermes-agentopenclawopencodescheduled-taskssmall-business
Mask markdown link anchors in every kit's autolink rule
markfulton9982fc2763ec
diff --git a/employees/ad-manager-employee/scripts/copy-check.mjs b/employees/ad-manager-employee/scripts/copy-check.mjsindex fc14989..68c7922 100644--- a/employees/ad-manager-employee/scripts/copy-check.mjs+++ b/employees/ad-manager-employee/scripts/copy-check.mjs@@ -558,7 +558,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {diff --git a/employees/chief-of-staff/scripts/copy-check.mjs b/employees/chief-of-staff/scripts/copy-check.mjsindex aa1c82e..457b63e 100644--- a/employees/chief-of-staff/scripts/copy-check.mjs+++ b/employees/chief-of-staff/scripts/copy-check.mjs@@ -554,7 +554,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {diff --git a/employees/customer-satisfaction-employee/scripts/copy-check.mjs b/employees/customer-satisfaction-employee/scripts/copy-check.mjsindex a13311b..7d7480c 100644--- a/employees/customer-satisfaction-employee/scripts/copy-check.mjs+++ b/employees/customer-satisfaction-employee/scripts/copy-check.mjs@@ -591,7 +591,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));// The middle group takes any number of labels, so a three label host is// caught. Without it the scan matched help.example, found example was not// a suffix it knew, and skipped past the .com entirely.diff --git a/employees/gtm-engineer/scripts/copy-check.mjs b/employees/gtm-engineer/scripts/copy-check.mjsindex 23e0f74..e35e2cb 100644--- a/employees/gtm-engineer/scripts/copy-check.mjs+++ b/employees/gtm-engineer/scripts/copy-check.mjs@@ -558,7 +558,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {diff --git a/employees/sales-employee/scripts/copy-check.mjs b/employees/sales-employee/scripts/copy-check.mjsindex c0c74c7..7095ddf 100644--- a/employees/sales-employee/scripts/copy-check.mjs+++ b/employees/sales-employee/scripts/copy-check.mjs@@ -558,7 +558,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {diff --git a/employees/seo-employee/scripts/copy-check.mjs b/employees/seo-employee/scripts/copy-check.mjsindex 0db8869..dc92390 100644--- a/employees/seo-employee/scripts/copy-check.mjs+++ b/employees/seo-employee/scripts/copy-check.mjs@@ -558,7 +558,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {diff --git a/employees/social-media-employee/scripts/copy-check.mjs b/employees/social-media-employee/scripts/copy-check.mjsindex bad3767..2d5e8bf 100644--- a/employees/social-media-employee/scripts/copy-check.mjs+++ b/employees/social-media-employee/scripts/copy-check.mjs@@ -667,7 +667,9 @@ function check(text, dest, ctx) {/* Rule 11. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {diff --git a/employees/web-dev-employee/scripts/copy-check.mjs b/employees/web-dev-employee/scripts/copy-check.mjsindex 112c01a..b2b3d53 100644--- a/employees/web-dev-employee/scripts/copy-check.mjs+++ b/employees/web-dev-employee/scripts/copy-check.mjs@@ -560,7 +560,9 @@ function check(text, dest, ctx) {/* Rule 7. Autolinker bait. */if (profile.autolink) {- const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]));+ // Email addresses and the anchor text of a markdown link are masked first: a dotted token inside+ // [anchor](url) is a real link already, not bait for an autolinker.+ const linkView = maskRanges(prose, rangesOf(prose, [/[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+\.[A-Za-z.]{2,}/g]).concat(rangesOf(text, [/\[[^\]\n]{1,200}\]\(/g])));const re = /(^|[^\w@/\\.])([A-Za-z0-9][\w-]{1,})\.([A-Za-z]{2,24})(?![\w-])/g;let m;while ((m = re.exec(linkView)) !== null) {