fix(scanner): avoid generic pay purchase tags

This commit is contained in:
Vincent Koc
2026-05-02 23:13:59 -07:00
parent 46354c9967
commit cf5a6f6e8b
2 changed files with 14 additions and 1 deletions
+12
View File
@@ -90,6 +90,18 @@ describe("deriveSkillCapabilityTags", () => {
expect(tags).toEqual([]);
});
it("does not treat generic pay attention wording as a purchase signal", () => {
const tags = deriveSkillCapabilityTags({
slug: "alon-fact-check",
displayName: "Alon Fact Check",
frontmatter: {},
readmeText: "Pay attention to dates — a source from 2020 may not be current.",
fileContents: [],
});
expect(tags).toEqual([]);
});
it("still detects token swap wording as a crypto signal", () => {
const tags = deriveSkillCapabilityTags({
slug: "token-router",
+2 -1
View File
@@ -66,7 +66,8 @@ const WALLET_PATTERNS = [
] satisfies RegExp[];
const PURCHASE_PATTERNS = [
/\bpay(?:ment|ments)?\b/,
/\bpayments?\b/,
/\bpay\s+(?:for|with|using|via|in)\b/,
/\bpaid automatically\b/,
/\bpay per call\b/,
/\bmicro-?payments?\b/,