agenticmail 0.5.31 → 0.5.32
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/cli.js +23 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6421,6 +6421,29 @@ async function cmdStart() {
|
|
|
6421
6421
|
}
|
|
6422
6422
|
} catch {
|
|
6423
6423
|
}
|
|
6424
|
+
try {
|
|
6425
|
+
const base = `http://${config.api.host}:${config.api.port}`;
|
|
6426
|
+
const gwResp = await fetch(`${base}/api/agenticmail/gateway/status`, {
|
|
6427
|
+
headers: { "Authorization": `Bearer ${config.masterKey}` },
|
|
6428
|
+
signal: AbortSignal.timeout(5e3)
|
|
6429
|
+
});
|
|
6430
|
+
if (gwResp.ok) {
|
|
6431
|
+
const gwStatus = await gwResp.json();
|
|
6432
|
+
if (gwStatus.mode === "none" || !gwStatus.mode) {
|
|
6433
|
+
log2("");
|
|
6434
|
+
log2(` ${c2.dim("\u2500".repeat(50))}`);
|
|
6435
|
+
log2("");
|
|
6436
|
+
log2(` ${c2.yellow("!")} No email connected yet. Your agent can't send or receive email.`);
|
|
6437
|
+
log2("");
|
|
6438
|
+
const finish = await ask(` Run the setup wizard to finish? (Y/n) `);
|
|
6439
|
+
if (!finish.toLowerCase().startsWith("n")) {
|
|
6440
|
+
await cmdSetup();
|
|
6441
|
+
return;
|
|
6442
|
+
}
|
|
6443
|
+
}
|
|
6444
|
+
}
|
|
6445
|
+
} catch {
|
|
6446
|
+
}
|
|
6424
6447
|
await interactiveShell({ config, onExit: () => {
|
|
6425
6448
|
} });
|
|
6426
6449
|
}
|
package/package.json
CHANGED