Skip to content

agent: add adapter for Kuaishou - #2653

Merged
esokullu merged 3 commits into
webbrain-one:mainfrom
alectimison-maker:agent/kuaishou-adapter
Aug 2, 2026
Merged

agent: add adapter for Kuaishou#2653
esokullu merged 3 commits into
webbrain-one:mainfrom
alectimison-maker:agent/kuaishou-adapter

Conversation

@alectimison-maker

Copy link
Copy Markdown
Contributor

Summary

Adds mirrored Kuaishou guidance for video/search/live surfaces, the current HTTP-200 JSON access failure, safe interaction boundaries, login, and publication completion.

Validation

  • Test-first assertion failed before implementation, then passed.
  • Playwright: main returned HTTP 200 with {"result":2,...}; live returned HTTP 200 with current navigation, stream metadata, and login controls.
  • Full suite: 1404/1405 (sole pre-existing package/changelog mismatch). Security corpus: 60/60. git diff --check: passed.

Risks

Prompt-only and browser-mirrored. No login, interaction, upload, publication, recharge, purchase, or gift action was performed.

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds mirrored Kuaishou adapters with safe browsing, interaction, login, and publication guidance.

Changes:

  • Matches Kuaishou video, search, profile, short-link, and live URLs.
  • Documents HTTP-200 JSON access failures and safe publication completion.
  • Adds Chrome/Firefox adapter tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/chrome/src/agent/adapters.js Adds the Chrome Kuaishou adapter.
src/firefox/src/agent/adapters.js Mirrors the adapter for Firefox.
test/run.js Tests matching and guidance parity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/run.js Outdated
test('matches Kuaishou video and live surfaces with access and publication guidance', () => {
const urls=['https://kuaishou.com/','https://www.kuaishou.com/search/video?searchKey=x','https://www.kuaishou.com/short-video/abc','https://www.kuaishou.com/profile/abc','https://live.kuaishou.com/123','https://v.kuaishou.com/abc'];
for(const url of urls){assert.equal(getActiveAdapter(url)?.name,'kuaishou');assert.equal(getActiveAdapterFx(url)?.name,'kuaishou');}
for(const url of ['https://ir.kuaishou.com/','https://kuaishou.com.phishing.example/']) assert.notEqual(getActiveAdapter(url)?.name,'kuaishou');
Comment thread test/run.js Outdated
const a=getActiveAdapter(urls[0]),f=getActiveAdapterFx(urls[4]);
assert.match(a?.notes||'',/2026-08.*HTTP 200.*"result":2.*live\.kuaishou\.com/s);
assert.match(a?.notes||'',/请输入内容进行搜索.*关注.*推荐.*热门.*赛事.*分类/s);
assert.match(a?.notes||'',/关注.*点赞.*评论.*私信/s);assert.match(a?.notes||'',/explicit confirmation.*final publish/s);assert.equal(f?.notes,a?.notes);
@esokullu
esokullu merged commit a5d1851 into webbrain-one:main Aug 2, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants