@lightcone-ai/daemon 0.9.40 → 0.9.41

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.9.40",
3
+ "version": "0.9.41",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -17,7 +17,11 @@ export const PLATFORM_CONFIGS = {
17
17
  xhs: {
18
18
  loginUrl: 'https://www.xiaohongshu.com',
19
19
  isLoggedIn: (cookies) => cookies.some(c => c.name === 'web_session' && c.value?.length > 0),
20
- sessionCookies: [{ name: 'web_session', domain: '.xiaohongshu.com' }],
20
+ // Both domain variants to cover host-only and domain cookies
21
+ sessionCookies: [
22
+ { name: 'web_session', domain: '.xiaohongshu.com' },
23
+ { name: 'web_session', domain: 'www.xiaohongshu.com' },
24
+ ],
21
25
  },
22
26
  douyin: {
23
27
  loginUrl: 'https://www.douyin.com',
@@ -26,7 +30,9 @@ export const PLATFORM_CONFIGS = {
26
30
  ),
27
31
  sessionCookies: [
28
32
  { name: 'sessionid', domain: '.douyin.com' },
33
+ { name: 'sessionid', domain: 'www.douyin.com' },
29
34
  { name: 'sid_guard', domain: '.douyin.com' },
35
+ { name: 'sid_guard', domain: 'www.douyin.com' },
30
36
  ],
31
37
  },
32
38
  kuaishou: {
@@ -36,7 +42,9 @@ export const PLATFORM_CONFIGS = {
36
42
  ),
37
43
  sessionCookies: [
38
44
  { name: 'userId', domain: '.kuaishou.com' },
45
+ { name: 'userId', domain: 'www.kuaishou.com' },
39
46
  { name: 'passToken', domain: '.kuaishou.com' },
47
+ { name: 'passToken', domain: 'www.kuaishou.com' },
40
48
  ],
41
49
  },
42
50
  };