@lightcone-ai/daemon 0.15.6 → 0.15.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.15.6",
3
+ "version": "0.15.7",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -64,9 +64,12 @@ export const PLATFORM_CONFIGS = {
64
64
  },
65
65
  },
66
66
  kuaishou: {
67
- // Use creator platform so QR scan establishes a creator session (cp.kuaishou.com).
68
- // www.kuaishou.com session is separate it cannot access the creator publish APIs.
69
- loginUrl: 'https://cp.kuaishou.com',
67
+ // Go directly to the passport login page (skip the cp.kuaishou.com intro page which
68
+ // requires an extra "立即登录" click before the actual login form appears).
69
+ // callback brings the user back to cp.kuaishou.com/profile after login.
70
+ loginUrl: 'https://passport.kuaishou.com/pc/account/login/?sid=kuaishou.web.cp.api&callback=https%3A%2F%2Fcp.kuaishou.com%2Frest%2Finfra%2Fsts%3FfollowUrl%3Dhttps%253A%252F%252Fcp.kuaishou.com%252Fprofile%26setRootDomain%3Dtrue',
71
+ // Empty array enables _switchToQrLogin() which falls through to text-match "扫码登录".
72
+ qrTabSelector: [],
70
73
  getSessionValue: (cookies) => cookies.find(c => c.name === 'passToken')?.value ?? null,
71
74
  isLoggedIn: (cookies, baseline) => {
72
75
  const val = cookies.find(c => c.name === 'passToken')?.value ?? null;