@agenticmail/core 0.5.14 → 0.5.15

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 +35 -24
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6544,34 +6544,45 @@ var DependencyInstaller = class {
6544
6544
  }
6545
6545
  const elapsed = Date.now() - start;
6546
6546
  const pct = Math.min(95, Math.round(elapsed / totalTime * 100));
6547
- const currentStrategyElapsed = elapsed - strategyIdx * perStrategyTime;
6548
- if (currentStrategyElapsed >= perStrategyTime && strategyIdx < strategies.length - 1) {
6549
- strategyIdx++;
6550
- const strategy = strategies[strategyIdx];
6551
- const msgs = {
6552
- cli: "Checking engine...",
6553
- reopen: "Restarting engine...",
6554
- background: "Trying direct launch...",
6555
- install: "Re-running installer...",
6556
- service: "Trying service command...",
6557
- snap: "Trying snap..."
6558
- };
6559
- this.onProgress(`__progress__:${pct}:${msgs[strategy] || "Trying another approach..."}`);
6560
- this.startDockerDaemon(strategy);
6561
- } else {
6547
+ if (this._firstLaunchMode) {
6562
6548
  const msgs = [
6563
- "Starting engine...",
6564
- "Waiting for engine...",
6565
- "Loading...",
6566
- "Almost there...",
6567
- "Still starting up...",
6568
- "First launch takes a bit longer...",
6569
- "Hang tight..."
6549
+ "Please accept the license agreement in the Docker window...",
6550
+ "Waiting for you to accept the terms...",
6551
+ "Accept the agreement to continue...",
6552
+ "Still waiting..."
6570
6553
  ];
6571
- const msgIdx = Math.floor(elapsed / 1e4) % msgs.length;
6554
+ const msgIdx = Math.floor(elapsed / 8e3) % msgs.length;
6572
6555
  this.onProgress(`__progress__:${pct}:${msgs[msgIdx]}`);
6556
+ } else {
6557
+ const currentStrategyElapsed = elapsed - strategyIdx * perStrategyTime;
6558
+ if (currentStrategyElapsed >= perStrategyTime && strategyIdx < strategies.length - 1) {
6559
+ strategyIdx++;
6560
+ const strategy = strategies[strategyIdx];
6561
+ const msgs = {
6562
+ cli: "Checking engine...",
6563
+ reopen: "Restarting engine...",
6564
+ background: "Trying direct launch...",
6565
+ install: "Re-running installer...",
6566
+ service: "Trying service command...",
6567
+ snap: "Trying snap..."
6568
+ };
6569
+ this.onProgress(`__progress__:${pct}:${msgs[strategy] || "Trying another approach..."}`);
6570
+ this.startDockerDaemon(strategy);
6571
+ } else {
6572
+ const msgs = [
6573
+ "Starting engine...",
6574
+ "Waiting for engine...",
6575
+ "Loading...",
6576
+ "Almost there...",
6577
+ "Still starting up...",
6578
+ "First launch takes a bit longer...",
6579
+ "Hang tight..."
6580
+ ];
6581
+ const msgIdx = Math.floor(elapsed / 1e4) % msgs.length;
6582
+ this.onProgress(`__progress__:${pct}:${msgs[msgIdx]}`);
6583
+ }
6584
+ if (os === "darwin") this.hideDockerWindow();
6573
6585
  }
6574
- if (os === "darwin" && !this._firstLaunchMode) this.hideDockerWindow();
6575
6586
  await new Promise((r) => setTimeout(r, 3e3));
6576
6587
  }
6577
6588
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/core",
3
- "version": "0.5.14",
3
+ "version": "0.5.15",
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",