refactor: remove GMAIL_CHANNEL_ENABLED env flag from add-gmail skill

Channel vs tool-only is now a code-level decision at skill apply time.
If the user chose channel mode, GmailChannel is wired unconditionally.
If tool-only, no channel code is added. No runtime flag needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Fritzzzz
2026-02-24 23:46:24 +02:00
parent 41e2424856
commit 6dd90829e1
7 changed files with 21 additions and 148 deletions

View File

@@ -3,7 +3,6 @@ import path from 'path';
import {
ASSISTANT_NAME,
GMAIL_CHANNEL_ENABLED,
IDLE_TIMEOUT,
MAIN_GROUP_FOLDER,
POLL_INTERVAL,
@@ -451,11 +450,9 @@ async function main(): Promise<void> {
channels.push(whatsapp);
await whatsapp.connect();
if (GMAIL_CHANNEL_ENABLED) {
const gmail = new GmailChannel(channelOpts);
channels.push(gmail);
await gmail.connect();
}
const gmail = new GmailChannel(channelOpts);
channels.push(gmail);
await gmail.connect();
// Start subsystems (independently of connection handler)
startSchedulerLoop({