@agenticmail/core 0.5.25 → 0.5.26
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 +6 -0
- package/dist/index.js +29 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1434,6 +1434,12 @@ declare class DependencyInstaller {
|
|
|
1434
1434
|
* Installs colima + docker + docker-compose via Homebrew, then starts Colima.
|
|
1435
1435
|
*/
|
|
1436
1436
|
private installDockerMac;
|
|
1437
|
+
/**
|
|
1438
|
+
* Link docker-compose as a Docker CLI plugin so `docker compose` (v2 syntax) works.
|
|
1439
|
+
* Brew installs docker-compose as a standalone binary, but many tools expect
|
|
1440
|
+
* the `docker compose` subcommand.
|
|
1441
|
+
*/
|
|
1442
|
+
private linkComposePlugin;
|
|
1437
1443
|
/**
|
|
1438
1444
|
* Start Colima and wait for Docker to be ready.
|
|
1439
1445
|
*/
|
package/dist/index.js
CHANGED
|
@@ -6119,9 +6119,33 @@ var DependencyInstaller = class {
|
|
|
6119
6119
|
"Installation completed but colima/docker not found in PATH.\nTry running manually: brew install colima docker docker-compose"
|
|
6120
6120
|
);
|
|
6121
6121
|
}
|
|
6122
|
+
this.linkComposePlugin();
|
|
6122
6123
|
this.onProgress("__progress__:50:Starting container engine...");
|
|
6123
6124
|
await this.startColima();
|
|
6124
6125
|
}
|
|
6126
|
+
/**
|
|
6127
|
+
* Link docker-compose as a Docker CLI plugin so `docker compose` (v2 syntax) works.
|
|
6128
|
+
* Brew installs docker-compose as a standalone binary, but many tools expect
|
|
6129
|
+
* the `docker compose` subcommand.
|
|
6130
|
+
*/
|
|
6131
|
+
linkComposePlugin() {
|
|
6132
|
+
try {
|
|
6133
|
+
const composeBin = execFileSync2("which", ["docker-compose"], { timeout: 5e3, stdio: ["ignore", "pipe", "ignore"] }).toString().trim();
|
|
6134
|
+
if (!composeBin) return;
|
|
6135
|
+
const pluginDir = join6(homedir5(), ".docker", "cli-plugins");
|
|
6136
|
+
const pluginPath = join6(pluginDir, "docker-compose");
|
|
6137
|
+
if (existsSync4(pluginPath)) return;
|
|
6138
|
+
try {
|
|
6139
|
+
execSync(`mkdir -p "${pluginDir}"`, { timeout: 5e3, stdio: "ignore" });
|
|
6140
|
+
} catch {
|
|
6141
|
+
}
|
|
6142
|
+
try {
|
|
6143
|
+
execSync(`ln -sf "${composeBin}" "${pluginPath}"`, { timeout: 5e3, stdio: "ignore" });
|
|
6144
|
+
} catch {
|
|
6145
|
+
}
|
|
6146
|
+
} catch {
|
|
6147
|
+
}
|
|
6148
|
+
}
|
|
6125
6149
|
/**
|
|
6126
6150
|
* Start Colima and wait for Docker to be ready.
|
|
6127
6151
|
*/
|
|
@@ -6354,7 +6378,11 @@ var DependencyInstaller = class {
|
|
|
6354
6378
|
}
|
|
6355
6379
|
}
|
|
6356
6380
|
this.onProgress("__progress__:10:Pulling mail server image...");
|
|
6357
|
-
|
|
6381
|
+
if (platform2() === "darwin") this.linkComposePlugin();
|
|
6382
|
+
let composeResult = await runWithRollingOutput("docker", ["compose", "-f", composePath, "up", "-d"], { timeout: 12e4 });
|
|
6383
|
+
if (composeResult.exitCode !== 0 && hasCommand("docker-compose")) {
|
|
6384
|
+
composeResult = await runWithRollingOutput("docker-compose", ["-f", composePath, "up", "-d"], { timeout: 12e4 });
|
|
6385
|
+
}
|
|
6358
6386
|
if (composeResult.exitCode !== 0) {
|
|
6359
6387
|
throw new Error("Failed to start mail server container. Check Docker is running.");
|
|
6360
6388
|
}
|