@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.
- package/dist/index.js +9 -20
- 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
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
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 (
|
|
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", [
|
|
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:
|
|
6382
|
+
this.onProgress("__progress__:70:Please accept the Docker license agreement...");
|
|
6394
6383
|
try {
|
|
6395
|
-
execFileSync2("open", ["
|
|
6384
|
+
execFileSync2("open", ["/Applications/Docker.app"], { timeout: 1e4, stdio: "ignore" });
|
|
6396
6385
|
} catch {
|
|
6397
6386
|
}
|
|
6398
6387
|
await this.waitForDocker();
|