agent: add adapter for 58.com - #2649
Open
alectimison-maker wants to merge 3 commits into
Open
Conversation
|
@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds mirrored 58.com adapter guidance for safe classifieds workflows.
Changes:
- Adds Chrome and Firefox adapter matching and safety guidance.
- Adds host-scope, guidance, and parity tests.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/chrome/src/agent/adapters.js |
Adds the Chrome 58.com adapter. |
src/firefox/src/agent/adapters.js |
Mirrors the adapter for Firefox. |
test/run.js |
Tests host matching, guidance, and parity. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - The platform's own agreement says listing information is user-published and transactions require independent judgment. Preserve the listing URL, screenshots, chat, receipts, and other evidence; do not send deposits, recruitment fees, verification codes, ID scans, or payment through seller-supplied external links. Use an on-platform protected-payment path only when the exact listing visibly offers it and review the full payable total. | ||
| - "免费发布信息" opens post.58.com/2/ and first asks for a precise category. Before the final publish action, review city, category, title, facts, price, contact visibility, images, and any fees with the user; publishing, editing, deleting, promoting, or refreshing a listing each requires explicit authorization. | ||
| - Report a post as complete only after "我的发布" shows the new listing and its actual status or public URL. "修改/删除信息" can route to help.58.com and offer account login or "手机短信删除"; do not claim deletion from opening that help page or submitting a verification request. | ||
| - Login can require SMS/captcha. Rapid list access may redirect an initial HTTP 200 response to callback.58.com/antibot/verifycode with "访问过于频繁", "请在五分钟内完成验证", and "点击按钮进行验证". Stop for the user and do not retry or bypass it; the wall is not evidence that no listings exist. |
| - The platform's own agreement says listing information is user-published and transactions require independent judgment. Preserve the listing URL, screenshots, chat, receipts, and other evidence; do not send deposits, recruitment fees, verification codes, ID scans, or payment through seller-supplied external links. Use an on-platform protected-payment path only when the exact listing visibly offers it and review the full payable total. | ||
| - "免费发布信息" opens post.58.com/2/ and first asks for a precise category. Before the final publish action, review city, category, title, facts, price, contact visibility, images, and any fees with the user; publishing, editing, deleting, promoting, or refreshing a listing each requires explicit authorization. | ||
| - Report a post as complete only after "我的发布" shows the new listing and its actual status or public URL. "修改/删除信息" can route to help.58.com and offer account login or "手机短信删除"; do not claim deletion from opening that help page or submitting a verification request. | ||
| - Login can require SMS/captcha. Rapid list access may redirect an initial HTTP 200 response to callback.58.com/antibot/verifycode with "访问过于频繁", "请在五分钟内完成验证", and "点击按钮进行验证". Stop for the user and do not retry or bypass it; the wall is not evidence that no listings exist. |
| assert.match(adapter?.notes || '', /publishing.*editing.*deleting.*promoting.*refreshing.*explicit authorization/s); | ||
| assert.match(adapter?.notes || '', /我的发布.*actual status or public URL/s); | ||
| assert.match(adapter?.notes || '', /修改\/删除信息.*help\.58\.com.*手机短信删除/s); | ||
| assert.match(adapter?.notes || '', /HTTP 200.*callback\.58\.com\/antibot\/verifycode.*访问过于频繁.*请在五分钟内完成验证.*点击按钮进行验证/s); |
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.
Summary
Adds a mirrored 58.com / 58同城 adapter for Chrome and Firefox.
Without this adapter, the agent can silently use a geolocated city, assume every category has the same filters, treat paid or user-posted information as verified, or mistake opening a publish/delete flow for completion.
Validation
www.58.comreturned HTTP 200 and redirected to the geolocatedcs.58.comcity page.callback.58.com/antibot/verifycodewith the请输入验证码title.post.58.com/2/returned HTTP 200 with the免费发布信息category page.58-comadapter.node test/run.js: 1404/1405 passed; the single failure predates this branch (package.json26.0.4 versusCHANGELOG.md26.0.0).node test/security/injection-corpus.mjs: 60/60 passed.git diff --check: passed.Compatibility and risks
Prompt-only and mirrored across browser builds. Authenticated contact, application, publishing, editing, deletion, and payment paths were not exercised; each is guarded by explicit authorization and observable completion-state guidance. No login, contact, application, publish, delete, verification, or payment action was performed.