We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f943e4a commit f0e9017Copy full SHA for f0e9017
1 file changed
bin/cli.mjs
@@ -309,8 +309,9 @@ async function main() {
309
}
310
311
if (subcommand === 'watch') {
312
- const pollerRooms = config?.poller?.rooms;
313
- const pollerApiKey = config?.poller?.api_key;
+ const rawRooms = config?.poller?.rooms;
+ const pollerRooms = Array.isArray(rawRooms) ? rawRooms : (typeof rawRooms === 'string' ? rawRooms.split(',').map(s=>s.trim()) : null);
314
+ const pollerApiKey = config?.poller?.api_key || config?.poller?.apiKey || config?.intent?.apiKey || process.env.ANTIGRAVITY_API_KEY;
315
const pollerHandle = config?.poller?.handle;
316
if (!pollerRooms || !pollerApiKey || !pollerHandle) {
317
console.error('Error: poller.rooms, poller.api_key, and poller.handle must be set in config');
0 commit comments