@agenticmail/core 0.5.16 → 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 +9 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6234,33 +6234,22 @@ var DependencyInstaller = class {
6234
6234
  } catch {
6235
6235
  }
6236
6236
  }
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
- }
6237
+ let alreadyRunning = false;
6238
+ try {
6239
+ execFileSync2("docker", ["info"], { timeout: 5e3, stdio: "ignore" });
6240
+ alreadyRunning = true;
6241
+ } catch {
6248
6242
  }
6249
- if (dockerReady) {
6243
+ if (alreadyRunning) {
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.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",