@agenticmail/core 0.5.9 → 0.5.11
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.d.ts +2 -2
- package/dist/index.js +54 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1460,8 +1460,8 @@ declare class DependencyInstaller {
|
|
|
1460
1460
|
*/
|
|
1461
1461
|
private setupExistingDockerApp;
|
|
1462
1462
|
/**
|
|
1463
|
-
* Hide
|
|
1464
|
-
* Called after starting Docker to
|
|
1463
|
+
* Hide Docker Desktop completely — close all windows, hide from dock, make invisible.
|
|
1464
|
+
* Called after starting Docker to ensure the user never sees any Docker UI.
|
|
1465
1465
|
*/
|
|
1466
1466
|
private hideDockerWindow;
|
|
1467
1467
|
/**
|
package/dist/index.js
CHANGED
|
@@ -6086,7 +6086,7 @@ var DependencyInstaller = class {
|
|
|
6086
6086
|
}
|
|
6087
6087
|
const dockerApp = this.findDockerApp();
|
|
6088
6088
|
if (dockerApp) {
|
|
6089
|
-
this.onProgress("__progress__:10:
|
|
6089
|
+
this.onProgress("__progress__:10:Setting up mail server engine...");
|
|
6090
6090
|
await this.setupExistingDockerApp(dockerApp);
|
|
6091
6091
|
return;
|
|
6092
6092
|
}
|
|
@@ -6184,18 +6184,37 @@ var DependencyInstaller = class {
|
|
|
6184
6184
|
try {
|
|
6185
6185
|
const userDockerDir = join6(process.env.HOME || "", "Library/Group Containers/group.com.docker");
|
|
6186
6186
|
const settingsFile = join6(userDockerDir, "settings-store.json");
|
|
6187
|
+
const headlessDefaults = {
|
|
6188
|
+
AcceptedLicense: true,
|
|
6189
|
+
AutoStart: false,
|
|
6190
|
+
// Don't auto-start on login (we start it ourselves)
|
|
6191
|
+
OpenUIOnStartupDisabled: true,
|
|
6192
|
+
// Don't show dashboard on start
|
|
6193
|
+
TipShown: true,
|
|
6194
|
+
// Don't show tips/welcome
|
|
6195
|
+
SUAutomaticallyUpdate: false,
|
|
6196
|
+
// Don't nag about updates
|
|
6197
|
+
AnalyticsEnabled: false
|
|
6198
|
+
// No analytics prompts
|
|
6199
|
+
};
|
|
6187
6200
|
if (existsSync4(settingsFile)) {
|
|
6188
6201
|
const raw = readFileSync2(settingsFile, "utf-8");
|
|
6189
6202
|
try {
|
|
6190
6203
|
const settings = JSON.parse(raw);
|
|
6191
|
-
|
|
6192
|
-
|
|
6204
|
+
let changed = false;
|
|
6205
|
+
for (const [key, val] of Object.entries(headlessDefaults)) {
|
|
6206
|
+
if (settings[key] !== val) {
|
|
6207
|
+
settings[key] = val;
|
|
6208
|
+
changed = true;
|
|
6209
|
+
}
|
|
6210
|
+
}
|
|
6211
|
+
if (changed) {
|
|
6193
6212
|
writeFileSync3(settingsFile, JSON.stringify(settings, null, 2));
|
|
6194
6213
|
}
|
|
6195
6214
|
} catch {
|
|
6196
6215
|
}
|
|
6197
6216
|
} else if (existsSync4(userDockerDir)) {
|
|
6198
|
-
writeFileSync3(settingsFile, JSON.stringify(
|
|
6217
|
+
writeFileSync3(settingsFile, JSON.stringify(headlessDefaults, null, 2));
|
|
6199
6218
|
}
|
|
6200
6219
|
} catch {
|
|
6201
6220
|
}
|
|
@@ -6225,8 +6244,8 @@ var DependencyInstaller = class {
|
|
|
6225
6244
|
await this.waitForDocker();
|
|
6226
6245
|
}
|
|
6227
6246
|
/**
|
|
6228
|
-
* Hide
|
|
6229
|
-
* Called after starting Docker to
|
|
6247
|
+
* Hide Docker Desktop completely — close all windows, hide from dock, make invisible.
|
|
6248
|
+
* Called after starting Docker to ensure the user never sees any Docker UI.
|
|
6230
6249
|
*/
|
|
6231
6250
|
hideDockerWindow() {
|
|
6232
6251
|
try {
|
|
@@ -6250,6 +6269,25 @@ var DependencyInstaller = class {
|
|
|
6250
6269
|
);
|
|
6251
6270
|
} catch {
|
|
6252
6271
|
}
|
|
6272
|
+
const dockerApp = this.findDockerApp();
|
|
6273
|
+
if (dockerApp) {
|
|
6274
|
+
const plistPath = join6(dockerApp, "Contents", "Info.plist");
|
|
6275
|
+
try {
|
|
6276
|
+
const plistContent = readFileSync2(plistPath, "utf-8");
|
|
6277
|
+
if (!plistContent.includes("LSUIElement")) {
|
|
6278
|
+
execSync(
|
|
6279
|
+
`/usr/libexec/PlistBuddy -c "Add :LSUIElement bool true" "${plistPath}" 2>/dev/null`,
|
|
6280
|
+
{ timeout: 5e3, stdio: "ignore" }
|
|
6281
|
+
);
|
|
6282
|
+
} else if (!plistContent.includes("<key>LSUIElement</key>\n <true/>") && !plistContent.includes("<key>LSUIElement</key><true/>")) {
|
|
6283
|
+
execSync(
|
|
6284
|
+
`/usr/libexec/PlistBuddy -c "Set :LSUIElement true" "${plistPath}" 2>/dev/null`,
|
|
6285
|
+
{ timeout: 5e3, stdio: "ignore" }
|
|
6286
|
+
);
|
|
6287
|
+
}
|
|
6288
|
+
} catch {
|
|
6289
|
+
}
|
|
6290
|
+
}
|
|
6253
6291
|
}
|
|
6254
6292
|
/**
|
|
6255
6293
|
* Full Docker Desktop install on macOS.
|
|
@@ -6258,7 +6296,7 @@ var DependencyInstaller = class {
|
|
|
6258
6296
|
*/
|
|
6259
6297
|
async installDockerMac() {
|
|
6260
6298
|
if (hasHomebrew()) {
|
|
6261
|
-
this.onProgress("__progress__:5:Installing
|
|
6299
|
+
this.onProgress("__progress__:5:Installing mail server engine...");
|
|
6262
6300
|
try {
|
|
6263
6301
|
const brewResult = await runSilent(
|
|
6264
6302
|
"brew",
|
|
@@ -6266,7 +6304,7 @@ var DependencyInstaller = class {
|
|
|
6266
6304
|
{ timeout: 6e5 }
|
|
6267
6305
|
);
|
|
6268
6306
|
if (brewResult.exitCode === 0) {
|
|
6269
|
-
this.onProgress("__progress__:45:
|
|
6307
|
+
this.onProgress("__progress__:45:Mail server engine installed!");
|
|
6270
6308
|
const appPath = this.findDockerApp();
|
|
6271
6309
|
if (appPath) {
|
|
6272
6310
|
await this.setupExistingDockerApp(appPath);
|
|
@@ -6281,7 +6319,7 @@ var DependencyInstaller = class {
|
|
|
6281
6319
|
const archName = cpu === "arm64" ? "arm64" : "amd64";
|
|
6282
6320
|
const dmgUrl = `https://desktop.docker.com/mac/main/${archName}/Docker.dmg`;
|
|
6283
6321
|
const dmgPath = "/tmp/Docker.dmg";
|
|
6284
|
-
this.onProgress("__progress__:5:Downloading
|
|
6322
|
+
this.onProgress("__progress__:5:Downloading mail server engine...");
|
|
6285
6323
|
const dlResult = await runSilent("curl", [
|
|
6286
6324
|
"-fSL",
|
|
6287
6325
|
"-o",
|
|
@@ -6291,7 +6329,7 @@ var DependencyInstaller = class {
|
|
|
6291
6329
|
if (dlResult.exitCode !== 0) {
|
|
6292
6330
|
throw new Error("Failed to download Docker Desktop. Check your internet connection and try again.");
|
|
6293
6331
|
}
|
|
6294
|
-
this.onProgress("__progress__:40:Installing
|
|
6332
|
+
this.onProgress("__progress__:40:Installing mail server engine...");
|
|
6295
6333
|
try {
|
|
6296
6334
|
try {
|
|
6297
6335
|
execSync("hdiutil detach /Volumes/Docker 2>/dev/null", { timeout: 1e4, stdio: "ignore" });
|
|
@@ -6496,10 +6534,10 @@ var DependencyInstaller = class {
|
|
|
6496
6534
|
strategyIdx++;
|
|
6497
6535
|
const strategy = strategies[strategyIdx];
|
|
6498
6536
|
const msgs = {
|
|
6499
|
-
cli: "
|
|
6500
|
-
reopen: "Restarting
|
|
6537
|
+
cli: "Checking engine...",
|
|
6538
|
+
reopen: "Restarting engine...",
|
|
6501
6539
|
background: "Trying direct launch...",
|
|
6502
|
-
install: "Re-running
|
|
6540
|
+
install: "Re-running installer...",
|
|
6503
6541
|
service: "Trying service command...",
|
|
6504
6542
|
snap: "Trying snap..."
|
|
6505
6543
|
};
|
|
@@ -6507,9 +6545,9 @@ var DependencyInstaller = class {
|
|
|
6507
6545
|
this.startDockerDaemon(strategy);
|
|
6508
6546
|
} else {
|
|
6509
6547
|
const msgs = [
|
|
6510
|
-
"Starting
|
|
6511
|
-
"Waiting for
|
|
6512
|
-
"
|
|
6548
|
+
"Starting engine...",
|
|
6549
|
+
"Waiting for engine...",
|
|
6550
|
+
"Loading...",
|
|
6513
6551
|
"Almost there...",
|
|
6514
6552
|
"Still starting up...",
|
|
6515
6553
|
"First launch takes a bit longer...",
|