adsmarch-ads-mcp 0.1.7 → 0.1.8
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/package.json +1 -1
- package/src/index.mjs +1 -1
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -20,7 +20,7 @@ const bool = (key, fallback) => {
|
|
|
20
20
|
if (!['true', 'false'].includes(raw)) throw new Error(`${key} must be true or false`);
|
|
21
21
|
return raw === 'true';
|
|
22
22
|
};
|
|
23
|
-
const allowWrites = bool('ADS_ALLOW_WRITES',
|
|
23
|
+
const allowWrites = bool('ADS_ALLOW_WRITES', true);
|
|
24
24
|
const selected = (value('ADS_PROVIDERS') || 'google,meta').split(',').map(x => x.trim());
|
|
25
25
|
if (new Set(selected).size !== selected.length || selected.some(x => !['google', 'meta'].includes(x))) throw new Error('ADS_PROVIDERS must be google, meta, or google,meta');
|
|
26
26
|
mkdirSync(resolve(root, 'logs'), { recursive: true });
|