@moltium/core 0.1.9 → 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.mjs CHANGED
@@ -954,10 +954,10 @@ var Agent = class {
954
954
  const configMoltbook = social.moltbook;
955
955
  const apiKey = configMoltbook?.apiKey || envKey || "";
956
956
  const isPlaceholder = !apiKey || apiKey === "your-moltbook-key-here";
957
- const explicitlyDisabled = configMoltbook && configMoltbook.enabled === false;
957
+ const explicitlyDisabled = configMoltbook && configMoltbook.enabled === false && !envKey;
958
958
  const shouldConnect = !isPlaceholder && !explicitlyDisabled;
959
959
  if (explicitlyDisabled) {
960
- logger4.info("Moltbook: Disabled in config (enabled: false) \u2014 skipping");
960
+ logger4.info("Moltbook: Disabled in config and no MOLTBOOK_API_KEY in env \u2014 skipping");
961
961
  return;
962
962
  }
963
963
  if (isPlaceholder) {
@@ -1007,9 +1007,9 @@ var Agent = class {
1007
1007
  const accessSecret = creds?.accessSecret || envAccessSecret || "";
1008
1008
  const hasKey = apiKey && apiKey !== "your-twitter-api-key";
1009
1009
  const hasAllCreds = hasKey && apiSecret && accessToken && accessSecret;
1010
- const explicitlyDisabled = configTwitter && configTwitter.enabled === false;
1010
+ const explicitlyDisabled = configTwitter && configTwitter.enabled === false && !envApiKey;
1011
1011
  if (explicitlyDisabled) {
1012
- logger4.info("Twitter: Disabled in config (enabled: false) \u2014 skipping");
1012
+ logger4.info("Twitter: Disabled in config and no TWITTER_API_KEY in env \u2014 skipping");
1013
1013
  return;
1014
1014
  }
1015
1015
  if (!hasKey) {