@moltium/core 0.1.8 → 0.1.10

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.js CHANGED
@@ -1014,10 +1014,10 @@ var Agent = class {
1014
1014
  const configMoltbook = social.moltbook;
1015
1015
  const apiKey = configMoltbook?.apiKey || envKey || "";
1016
1016
  const isPlaceholder = !apiKey || apiKey === "your-moltbook-key-here";
1017
- const explicitlyDisabled = configMoltbook && configMoltbook.enabled === false;
1017
+ const explicitlyDisabled = configMoltbook && configMoltbook.enabled === false && !envKey;
1018
1018
  const shouldConnect = !isPlaceholder && !explicitlyDisabled;
1019
1019
  if (explicitlyDisabled) {
1020
- logger4.info("Moltbook: Disabled in config (enabled: false) \u2014 skipping");
1020
+ logger4.info("Moltbook: Disabled in config and no MOLTBOOK_API_KEY in env \u2014 skipping");
1021
1021
  return;
1022
1022
  }
1023
1023
  if (isPlaceholder) {
@@ -1067,9 +1067,9 @@ var Agent = class {
1067
1067
  const accessSecret = creds?.accessSecret || envAccessSecret || "";
1068
1068
  const hasKey = apiKey && apiKey !== "your-twitter-api-key";
1069
1069
  const hasAllCreds = hasKey && apiSecret && accessToken && accessSecret;
1070
- const explicitlyDisabled = configTwitter && configTwitter.enabled === false;
1070
+ const explicitlyDisabled = configTwitter && configTwitter.enabled === false && !envApiKey;
1071
1071
  if (explicitlyDisabled) {
1072
- logger4.info("Twitter: Disabled in config (enabled: false) \u2014 skipping");
1072
+ logger4.info("Twitter: Disabled in config and no TWITTER_API_KEY in env \u2014 skipping");
1073
1073
  return;
1074
1074
  }
1075
1075
  if (!hasKey) {