@agenticmail/core 0.5.15 → 0.5.17

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6223,7 +6223,6 @@ var DependencyInstaller = class {
6223
6223
  */
6224
6224
  async setupExistingDockerApp(appPath) {
6225
6225
  const installBin = join6(appPath, "Contents", "MacOS", "install");
6226
- const isFirstLaunch = !this.isDockerLicenseAccepted();
6227
6226
  if (existsSync4(installBin)) {
6228
6227
  this.onProgress("__progress__:30:Setting up CLI tools...");
6229
6228
  const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
@@ -6235,23 +6234,28 @@ var DependencyInstaller = class {
6235
6234
  } catch {
6236
6235
  }
6237
6236
  }
6238
- if (isFirstLaunch) {
6239
- this._firstLaunchMode = true;
6240
- this.onProgress("__progress__:50:Opening Docker \u2014 please accept the license agreement...");
6241
- try {
6242
- execFileSync2("open", ["-a", appPath], { timeout: 1e4, stdio: "ignore" });
6243
- } catch {
6244
- }
6245
- await this.waitForDocker();
6246
- this._firstLaunchMode = false;
6247
- this.configureDockerHeadless();
6248
- this.hideDockerWindow();
6249
- } else {
6250
- this.onProgress("__progress__:50:Starting engine...");
6251
- this.startDockerDaemon();
6237
+ let alreadyRunning = false;
6238
+ try {
6239
+ execFileSync2("docker", ["info"], { timeout: 5e3, stdio: "ignore" });
6240
+ alreadyRunning = true;
6241
+ } catch {
6242
+ }
6243
+ if (alreadyRunning) {
6244
+ this.onProgress("__progress__:100:Engine is ready!");
6252
6245
  this.hideDockerWindow();
6253
- await this.waitForDocker();
6246
+ this.configureDockerHeadless();
6247
+ return;
6254
6248
  }
6249
+ this._firstLaunchMode = true;
6250
+ this.onProgress("__progress__:50:Please accept the Docker license agreement...");
6251
+ try {
6252
+ execFileSync2("open", [appPath], { timeout: 1e4, stdio: "ignore" });
6253
+ } catch {
6254
+ }
6255
+ await this.waitForDocker();
6256
+ this._firstLaunchMode = false;
6257
+ this.configureDockerHeadless();
6258
+ this.hideDockerWindow();
6255
6259
  }
6256
6260
  /**
6257
6261
  * Hide Docker Desktop completely — close all windows, hide from dock, make invisible.
@@ -6375,9 +6379,9 @@ var DependencyInstaller = class {
6375
6379
  } catch {
6376
6380
  }
6377
6381
  this._firstLaunchMode = true;
6378
- this.onProgress("__progress__:70:Opening Docker \u2014 please accept the license agreement...");
6382
+ this.onProgress("__progress__:70:Please accept the Docker license agreement...");
6379
6383
  try {
6380
- execFileSync2("open", ["-a", "/Applications/Docker.app"], { timeout: 1e4, stdio: "ignore" });
6384
+ execFileSync2("open", ["/Applications/Docker.app"], { timeout: 1e4, stdio: "ignore" });
6381
6385
  } catch {
6382
6386
  }
6383
6387
  await this.waitForDocker();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/core",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
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",