feat(utilities): block reserved usernames for agentic protocols and AI integrations#632
Draft
feat(utilities): block reserved usernames for agentic protocols and AI integrations#632
Conversation
…I integrations Adds keywords for emerging AI/agent payment protocols (x402, mpp, ap2, acp, ucp, l402, a2a, kyapay, skyfire, etc.), major AI agent frameworks and IDE integrations partnered with Apify (crewai, langchain, cursor, claude-code, zapier, etc.), Apify routes/features (contact-sales, creator-plan, standby, pay-per-event, ultimate-scraper, agent-skills), and all current Apify blog topic slugs to prevent collision with apify.com/[username] URLs. https://claude.ai/code/session_014z55ZWS7ebA5nEWwyb6nCg
…list Remove brand/company names (zapier, n8n, vercel-ai, langchain, crewai, cursor, pinecone, etc.) and blog topic slugs so those companies and topic owners can later create or claim their usernames. Keep open agentic protocols (x402, mpp, ap2, acp, ucp, l402, a2a, kyapay, ...), generic terms (ai, agent, agentic), and Apify-specific routes/features. https://claude.ai/code/session_014z55ZWS7ebA5nEWwyb6nCg
…arketing slugs Adds focused groups based on business risk: trust/verification handles (official, verified, apify-official, apify-hq, staff, ...), Apify subdomain/service names that may grow into routes (console, sdk, cli, studio, gateway, mcp-server, ...), region codes (asia, latam, emea, apac, i18n, ...), currency/payment generics (usd, usdc, btc, crypto, stablecoin, payments, ...), compliance/certifications (soc2, iso-27001, hipaa, pci-dss, kyc, ...), open-source/community roles (contributor, maintainer, oss, ...), anti-abuse/scam-bait names (spam, phishing, giveaway, airdrop, ...), and marketing/campaign slugs (launch, webinar, meetup, summit, ...). 1- and 2-char names are already blocked by USERNAME.MIN_LENGTH=3 so 2-char codes (us, eu, etc.) are not added. https://claude.ai/code/session_014z55ZWS7ebA5nEWwyb6nCg
Remove redundant entries that are blocked elsewhere:
- `ai` is blocked by USERNAME.MIN_LENGTH=3
- All `apify*` variants (apify.com, apify-support, apify-team, apify-hq,
apifyhq, apify-news, apify-blog, apify-events, apify-staff,
apify-help, apify-giveaway, apify-official, apify-inc, apifyinc) are
blocked by USERNAME.RESTRICTED_REGEX `/^(?!.*apify)[a-z0-9_.-]{3,30}$/i`
Drop the corresponding tests for `ai`, `apify.com`, `apify_com`, and
`apifyxcom` since the regex pattern they exercised was removed.
https://claude.ai/code/session_014z55ZWS7ebA5nEWwyb6nCg
Even though USERNAME.RESTRICTED_REGEX in @apify/consts already rejects any username containing 'apify', keep the explicit `apify.com` regex (plus its tests) here as a safety net in case the upstream check is ever bypassed or removed. https://claude.ai/code/session_014z55ZWS7ebA5nEWwyb6nCg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds keywords for emerging AI/agent payment protocols, major AI agent frameworks and IDE integrations partnered with Apify (crewai, langchain, cursor, claude-code, zapier, etc.), Apify routes/features (contact-sales, creator-plan, standby, pay-per-event, ultimate-scraper, agent-skills)...
https://claude.ai/code/session_014z55ZWS7ebA5nEWwyb6nCg