feat(chanmama): add commerce analytics adapters - #2191
Open
genoooool wants to merge 1 commit into
Open
Conversation
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.
Description
Add a read-only browser adapter for ChanMama (蝉妈妈), a third-party Douyin
commerce analytics service.
The adapter provides 11 commands covering:
All commands read the already-rendered Vue page state from the authenticated
ChanMama page. They do not reproduce the site's payload encryption and do not
perform write actions. Third-party estimates retain value-type/range metadata,
and masked numeric sentinels are emitted as
null.Related issue: none
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorVerification
npm run typechecknpm run buildnpm test— 559 files, 6,348 passed, 1 skippednpm run test:adapter— 473 files, 4,968 passednpm run docs:buildnpm run check:typed-error-lintnpm run check:silent-column-dropnpm run advise:listing-id-pairingnode dist/src/main.js validate chanmama— 11 commands, 0 errors, 0 warningsThe full test run used isolated
OPENCLI_CONFIG_DIRandOPENCLI_CACHE_DIRdirectories so the developer machine's saved default browser profile could not
leak into browser-targeting unit tests.
Screenshots / Output
Representative live verification results:
categories: 20 rowsproducts: 3 rowsproduct: 1 rowproduct-analysis: 3 rowsauthors: 50 rows across the site's effective 30-row component pagesvideos: 3 rowsvideo: 1 rowlive: 2 rowscard: 3 rowsaudience: 2 rows (product audience and product buyers)author-sales-videos: 3 rowsNo cookies, credentials, traces, or private site-memory fixtures are included.