@deckasoft/waify 0.4.2 → 0.4.4

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/index.js CHANGED
@@ -887,9 +887,12 @@ var init_start = __esm({
887
887
  }
888
888
  });
889
889
 
890
- // src/cli/index.ts
890
+ // src/cli/env.ts
891
891
  init_paths();
892
892
  import { config as dotenvConfig } from "dotenv";
893
+ dotenvConfig({ path: envPath() });
894
+
895
+ // src/cli/index.ts
893
896
  import { Command } from "commander";
894
897
 
895
898
  // src/cli/commands/init.ts
@@ -1308,7 +1311,7 @@ var registerSetup = (program2) => {
1308
1311
  method: "POST",
1309
1312
  headers: { "X-API-Key": openwaApiKey }
1310
1313
  },
1311
- 3e4
1314
+ 6e4
1312
1315
  );
1313
1316
  if (!startRes.ok && startRes.status !== 400) {
1314
1317
  throw new Error(
@@ -1316,7 +1319,7 @@ var registerSetup = (program2) => {
1316
1319
  );
1317
1320
  }
1318
1321
  } catch (err) {
1319
- if (err instanceof Error && err.name === "TimeoutError") {
1322
+ if (err instanceof Error && (err.name === "TimeoutError" || err.name === "AbortError")) {
1320
1323
  console.warn(
1321
1324
  " (Engine start is taking longer than expected \u2014 Chromium may still be loading, continuing\u2026)"
1322
1325
  );
@@ -1651,7 +1654,6 @@ var registerTui = (program2) => {
1651
1654
  };
1652
1655
 
1653
1656
  // src/cli/index.ts
1654
- dotenvConfig({ path: envPath() });
1655
1657
  var program = new Command();
1656
1658
  program.name("waify").description("AI-powered daily message sender for WhatsApp").version("0.1.0");
1657
1659
  registerInit(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deckasoft/waify",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "AI-powered daily message sender for WhatsApp, powered by OpenWA",
5
5
  "keywords": [
6
6
  "whatsapp",