@agenticmail/core 0.5.16 → 0.5.18

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 +10 -21
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6222,6 +6222,12 @@ var DependencyInstaller = class {
6222
6222
  * then starts Docker Desktop hidden (no GUI window).
6223
6223
  */
6224
6224
  async setupExistingDockerApp(appPath) {
6225
+ let wasAlreadyRunning = false;
6226
+ try {
6227
+ execFileSync2("docker", ["info"], { timeout: 5e3, stdio: "ignore" });
6228
+ wasAlreadyRunning = true;
6229
+ } catch {
6230
+ }
6225
6231
  const installBin = join6(appPath, "Contents", "MacOS", "install");
6226
6232
  if (existsSync4(installBin)) {
6227
6233
  this.onProgress("__progress__:30:Setting up CLI tools...");
@@ -6234,33 +6240,16 @@ var DependencyInstaller = class {
6234
6240
  } catch {
6235
6241
  }
6236
6242
  }
6237
- this.onProgress("__progress__:50:Starting engine...");
6238
- this.startDockerDaemon();
6239
- let dockerReady = false;
6240
- for (let i = 0; i < 5; i++) {
6241
- await new Promise((r) => setTimeout(r, 3e3));
6242
- try {
6243
- execFileSync2("docker", ["info"], { timeout: 5e3, stdio: "ignore" });
6244
- dockerReady = true;
6245
- break;
6246
- } catch {
6247
- }
6248
- }
6249
- if (dockerReady) {
6243
+ if (wasAlreadyRunning) {
6250
6244
  this.onProgress("__progress__:100:Engine is ready!");
6251
6245
  this.hideDockerWindow();
6252
6246
  this.configureDockerHeadless();
6253
6247
  return;
6254
6248
  }
6255
- try {
6256
- execSync(`osascript -e 'quit app "Docker"'`, { timeout: 5e3, stdio: "ignore" });
6257
- } catch {
6258
- }
6259
- await new Promise((r) => setTimeout(r, 2e3));
6260
6249
  this._firstLaunchMode = true;
6261
6250
  this.onProgress("__progress__:50:Please accept the Docker license agreement...");
6262
6251
  try {
6263
- execFileSync2("open", ["-a", appPath], { timeout: 1e4, stdio: "ignore" });
6252
+ execFileSync2("open", [appPath], { timeout: 1e4, stdio: "ignore" });
6264
6253
  } catch {
6265
6254
  }
6266
6255
  await this.waitForDocker();
@@ -6390,9 +6379,9 @@ var DependencyInstaller = class {
6390
6379
  } catch {
6391
6380
  }
6392
6381
  this._firstLaunchMode = true;
6393
- this.onProgress("__progress__:70:Opening Docker \u2014 please accept the license agreement...");
6382
+ this.onProgress("__progress__:70:Please accept the Docker license agreement...");
6394
6383
  try {
6395
- execFileSync2("open", ["-a", "/Applications/Docker.app"], { timeout: 1e4, stdio: "ignore" });
6384
+ execFileSync2("open", ["/Applications/Docker.app"], { timeout: 1e4, stdio: "ignore" });
6396
6385
  } catch {
6397
6386
  }
6398
6387
  await this.waitForDocker();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/core",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
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",