mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
fix(scanner): avoid generic pay purchase tags
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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/,
|
||||
|
||||
Reference in New Issue
Block a user