@lightcone-ai/daemon 0.15.18 → 0.15.19

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.18",
3
+ "version": "0.15.19",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -90,6 +90,21 @@ export const PLATFORM_CONFIGS = {
90
90
  return val !== null && val !== baseline;
91
91
  },
92
92
  },
93
+ wechat_mp: {
94
+ loginUrl: 'https://mp.weixin.qq.com',
95
+ getSessionValue: (cookies) =>
96
+ cookies.find(c => c.name === 'slave_sid')?.value
97
+ ?? cookies.find(c => c.name === 'data_bizuin')?.value
98
+ ?? cookies.find(c => c.name === 'wxuin')?.value
99
+ ?? null,
100
+ isLoggedIn: (cookies, baseline) => {
101
+ const val = cookies.find(c => c.name === 'slave_sid')?.value
102
+ ?? cookies.find(c => c.name === 'data_bizuin')?.value
103
+ ?? cookies.find(c => c.name === 'wxuin')?.value
104
+ ?? null;
105
+ return val !== null && val !== baseline;
106
+ },
107
+ },
93
108
  };
94
109
 
95
110
  export function profileDir(platform, userId) {