* feat(xiaohongshu): add 4 creator analytics commands Add creator backend support for Xiaohongshu (小红书), enabling creators to access their analytics data from the command line. New commands: - creator-profile: account info (followers, likes, creator level) - creator-stats: 7-day/30-day overview (views, likes, collects, comments, shares, new followers) with daily trend data - creator-notes: note list with per-note metrics from note manager - creator-note-detail: single note analytics breakdown (organic vs promoted vs video traffic) API discovery: - /api/galaxy/creator/home/personal_info (cookie auth, 200 OK) - /api/galaxy/creator/data/note_detail_new (cookie auth, 200 OK) - /api/galaxy/creator/data/note_detail?note_id=xxx (cookie auth, 200 OK) - Note manager DOM extraction for note list (bypasses v2 signature) All endpoints verified working with real creator account. Screenshots (redacted) included in docs/screenshots/. Requires: Chrome logged into creator.xiaohongshu.com * chore: remove screenshots from repo (will host externally for PR) * review: fix creator analytics CLI integration Co-authored-by: stone16 <stone2paul@gmail.com> * test: add site-scoped test runner Co-authored-by: stone16 <stone2paul@gmail.com> * review: ignore publish timestamps in creator note metrics --------- Co-authored-by: jackwener <jakevingoo@gmail.com>
59 lines
1.4 KiB
JSON
59 lines
1.4 KiB
JSON
{
|
|
"name": "@jackwener/opencli",
|
|
"version": "0.9.6",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"description": "Make any website your CLI. AI-powered.",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/main.js",
|
|
"bin": {
|
|
"opencli": "dist/main.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx src/main.ts",
|
|
"build": "tsc && npm run clean-yaml && npm run copy-yaml && npm run build-manifest",
|
|
"build-manifest": "node dist/build-manifest.js",
|
|
"clean-yaml": "node scripts/clean-yaml.cjs",
|
|
"copy-yaml": "node scripts/copy-yaml.cjs",
|
|
"start": "node dist/main.js",
|
|
"postinstall": "node scripts/postinstall.js || true",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "tsc --noEmit",
|
|
"prepublishOnly": "npm run build",
|
|
"test": "vitest run",
|
|
"test:site": "node scripts/test-site.mjs",
|
|
"test:watch": "vitest"
|
|
},
|
|
"keywords": [
|
|
"cli",
|
|
"browser",
|
|
"web",
|
|
"ai",
|
|
"playwright"
|
|
],
|
|
"author": "jackwener",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jackwener/opencli.git"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "^5.3.0",
|
|
"cli-table3": "^0.6.5",
|
|
"commander": "^13.1.0",
|
|
"js-yaml": "^4.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/mcp": "^0.0.68",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/node": "^22.13.10",
|
|
"tsx": "^4.19.3",
|
|
"typescript": "^5.8.2",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|