@lightcone-ai/daemon 0.9.45 → 0.9.47

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.45",
3
+ "version": "0.9.47",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -132,6 +132,8 @@ export class BrowserLoginSession {
132
132
  '--window-size=800,900',
133
133
  '--disable-blink-features=AutomationControlled',
134
134
  '--disable-infobars',
135
+ '--use-mock-keychain',
136
+ '--password-store=basic',
135
137
  '--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',
136
138
  'about:blank',
137
139
  ], { stdio: 'ignore', detached: false });
@@ -273,8 +275,11 @@ export class BrowserLoginSession {
273
275
  if (this._loginCheckTimer) { clearInterval(this._loginCheckTimer); this._loginCheckTimer = null; }
274
276
  }
275
277
 
276
- close() {
278
+ async close() {
277
279
  this._stopTimers();
280
+ // Use CDP Browser.close for graceful shutdown so Chrome flushes cookies to disk
281
+ try { await this.send('Browser.close', {}, 3000); } catch {}
282
+ await sleep(1000);
278
283
  if (this._ws) { try { this._ws.close(); } catch {} this._ws = null; }
279
284
  if (this._proc) { try { this._proc.kill('SIGKILL'); } catch {} this._proc = null; }
280
285
  }