@lightcone-ai/daemon 0.9.47 → 0.9.49

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.
@@ -35,12 +35,13 @@ export class XhsAdapter {
35
35
  async checkLoginStatus() {
36
36
  // Navigate to publish page — if redirected away, session is expired
37
37
  await this._cdp.send('Page.navigate', { url: 'https://creator.xiaohongshu.com/publish/publish' });
38
- await sleep(4000);
38
+ await sleep(5000);
39
39
  const result = await this._cdp.send('Runtime.evaluate', {
40
40
  expression: 'window.location.href',
41
41
  returnByValue: true,
42
42
  });
43
43
  const url = result.result?.value ?? '';
44
+ console.error(`[XhsAdapter] checkLoginStatus url=${url}`);
44
45
  return url.includes('creator.xiaohongshu.com/publish/publish');
45
46
  }
46
47
 
@@ -129,6 +129,7 @@ async function _spawnChrome(profileDir, port) {
129
129
  '--window-size=1280,900',
130
130
  '--disable-blink-features=AutomationControlled',
131
131
  '--disable-infobars',
132
+ '--disable-component-extensions-with-background-pages',
132
133
  '--no-first-run',
133
134
  '--no-default-browser-check',
134
135
  '--disable-hang-monitor',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.9.47",
3
+ "version": "0.9.49",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -132,6 +132,7 @@ export class BrowserLoginSession {
132
132
  '--window-size=800,900',
133
133
  '--disable-blink-features=AutomationControlled',
134
134
  '--disable-infobars',
135
+ '--disable-component-extensions-with-background-pages',
135
136
  '--use-mock-keychain',
136
137
  '--password-store=basic',
137
138
  '--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',