@agenticmail/core 0.5.13 → 0.5.14

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/dist/index.d.ts CHANGED
@@ -1416,6 +1416,7 @@ type InstallProgress = (message: string) => void;
1416
1416
  */
1417
1417
  declare class DependencyInstaller {
1418
1418
  private onProgress;
1419
+ private _firstLaunchMode;
1419
1420
  constructor(onProgress?: InstallProgress);
1420
1421
  /**
1421
1422
  * Ensure Docker is installed AND the daemon is running.
package/dist/index.js CHANGED
@@ -6061,6 +6061,7 @@ function hasHomebrew() {
6061
6061
  }
6062
6062
  var DependencyInstaller = class {
6063
6063
  onProgress;
6064
+ _firstLaunchMode = false;
6064
6065
  constructor(onProgress) {
6065
6066
  this.onProgress = onProgress ?? (() => {
6066
6067
  });
@@ -6235,12 +6236,14 @@ var DependencyInstaller = class {
6235
6236
  }
6236
6237
  }
6237
6238
  if (isFirstLaunch) {
6239
+ this._firstLaunchMode = true;
6238
6240
  this.onProgress("__progress__:50:Opening Docker \u2014 please accept the license agreement...");
6239
6241
  try {
6240
6242
  execFileSync2("open", ["-a", appPath], { timeout: 1e4, stdio: "ignore" });
6241
6243
  } catch {
6242
6244
  }
6243
6245
  await this.waitForDocker();
6246
+ this._firstLaunchMode = false;
6244
6247
  this.configureDockerHeadless();
6245
6248
  this.hideDockerWindow();
6246
6249
  } else {
@@ -6371,12 +6374,14 @@ var DependencyInstaller = class {
6371
6374
  await unlink(dmgPath);
6372
6375
  } catch {
6373
6376
  }
6377
+ this._firstLaunchMode = true;
6374
6378
  this.onProgress("__progress__:70:Opening Docker \u2014 please accept the license agreement...");
6375
6379
  try {
6376
6380
  execFileSync2("open", ["-a", "/Applications/Docker.app"], { timeout: 1e4, stdio: "ignore" });
6377
6381
  } catch {
6378
6382
  }
6379
6383
  await this.waitForDocker();
6384
+ this._firstLaunchMode = false;
6380
6385
  this.configureDockerHeadless();
6381
6386
  this.hideDockerWindow();
6382
6387
  }
@@ -6566,7 +6571,7 @@ var DependencyInstaller = class {
6566
6571
  const msgIdx = Math.floor(elapsed / 1e4) % msgs.length;
6567
6572
  this.onProgress(`__progress__:${pct}:${msgs[msgIdx]}`);
6568
6573
  }
6569
- if (os === "darwin" && this.isDockerLicenseAccepted()) this.hideDockerWindow();
6574
+ if (os === "darwin" && !this._firstLaunchMode) this.hideDockerWindow();
6570
6575
  await new Promise((r) => setTimeout(r, 3e3));
6571
6576
  }
6572
6577
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/core",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "Core SDK for AgenticMail \u2014 email, SMS, and phone number access for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",