@agenticmail/core 0.5.18 → 0.5.20

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 +39 -26
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6229,18 +6229,18 @@ var DependencyInstaller = class {
6229
6229
  } catch {
6230
6230
  }
6231
6231
  const installBin = join6(appPath, "Contents", "MacOS", "install");
6232
- if (existsSync4(installBin)) {
6233
- this.onProgress("__progress__:30:Setting up CLI tools...");
6234
- const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
6235
- try {
6236
- execSync(`"${installBin}" --accept-license --user=${user}`, {
6237
- timeout: 12e4,
6238
- stdio: "ignore"
6239
- });
6240
- } catch {
6241
- }
6242
- }
6243
6232
  if (wasAlreadyRunning) {
6233
+ if (existsSync4(installBin)) {
6234
+ this.onProgress("__progress__:30:Setting up CLI tools...");
6235
+ const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
6236
+ try {
6237
+ execSync(`"${installBin}" --accept-license --user=${user}`, {
6238
+ timeout: 12e4,
6239
+ stdio: "ignore"
6240
+ });
6241
+ } catch {
6242
+ }
6243
+ }
6244
6244
  this.onProgress("__progress__:100:Engine is ready!");
6245
6245
  this.hideDockerWindow();
6246
6246
  this.configureDockerHeadless();
@@ -6253,6 +6253,17 @@ var DependencyInstaller = class {
6253
6253
  } catch {
6254
6254
  }
6255
6255
  await this.waitForDocker();
6256
+ if (existsSync4(installBin)) {
6257
+ this.onProgress("Setting up CLI tools...");
6258
+ const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
6259
+ try {
6260
+ execSync(`"${installBin}" --accept-license --user=${user}`, {
6261
+ timeout: 12e4,
6262
+ stdio: "ignore"
6263
+ });
6264
+ } catch {
6265
+ }
6266
+ }
6256
6267
  this._firstLaunchMode = false;
6257
6268
  this.configureDockerHeadless();
6258
6269
  this.hideDockerWindow();
@@ -6353,21 +6364,12 @@ var DependencyInstaller = class {
6353
6364
  } catch {
6354
6365
  throw new Error("Failed to mount Docker DMG. The download may be corrupted \u2014 try again.");
6355
6366
  }
6356
- this.onProgress("__progress__:55:Running installer...");
6357
- const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
6358
- try {
6359
- execSync(`/Volumes/Docker/Docker.app/Contents/MacOS/install --accept-license --user=${user}`, {
6360
- timeout: 12e4,
6361
- stdio: "ignore"
6362
- });
6363
- } catch {
6364
- if (!existsSync4("/Applications/Docker.app")) {
6365
- this.onProgress("__progress__:60:Trying alternative install method...");
6366
- try {
6367
- execSync('cp -R "/Volumes/Docker/Docker.app" /Applications/', { timeout: 6e4, stdio: "ignore" });
6368
- } catch {
6369
- throw new Error("Failed to install. You may need to run this with admin privileges.");
6370
- }
6367
+ this.onProgress("__progress__:55:Installing...");
6368
+ if (!existsSync4("/Applications/Docker.app")) {
6369
+ try {
6370
+ execSync('cp -R "/Volumes/Docker/Docker.app" /Applications/', { timeout: 6e4, stdio: "ignore" });
6371
+ } catch {
6372
+ throw new Error("Failed to install. You may need to run this with admin privileges.");
6371
6373
  }
6372
6374
  }
6373
6375
  try {
@@ -6386,6 +6388,17 @@ var DependencyInstaller = class {
6386
6388
  }
6387
6389
  await this.waitForDocker();
6388
6390
  this._firstLaunchMode = false;
6391
+ const installBin = "/Applications/Docker.app/Contents/MacOS/install";
6392
+ if (existsSync4(installBin)) {
6393
+ const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
6394
+ try {
6395
+ execSync(`"${installBin}" --accept-license --user=${user}`, {
6396
+ timeout: 12e4,
6397
+ stdio: "ignore"
6398
+ });
6399
+ } catch {
6400
+ }
6401
+ }
6389
6402
  this.configureDockerHeadless();
6390
6403
  this.hideDockerWindow();
6391
6404
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/core",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
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",