1.1 KiB
1.1 KiB
Intent: src/config.ts modifications
What changed
Added configuration exports for Gmail channel support.
Key sections
- readEnvFile call: Must include
GMAIL_CHANNEL_ENABLEDin the keys array. NanoClaw does NOT load.envintoprocess.env— all.envvalues must be explicitly requested viareadEnvFile(). - GMAIL_CHANNEL_ENABLED: Boolean feature flag — when
true, the Gmail channel is connected and polls for inbound emails. Whenfalse(default), Gmail is available as a tool only (agent can read/send emails when asked from other channels).
Invariants
- All existing config exports remain unchanged
- New Gmail keys are added to the
readEnvFilecall alongside existing keys - New exports are appended at the end of the file
- No existing behavior is modified — Gmail config is additive and minimal
- Both
process.envandenvConfigare checked (same pattern asASSISTANT_NAME)
Must-keep
- All existing exports (
ASSISTANT_NAME,POLL_INTERVAL,TRIGGER_PATTERN, etc.) - The
readEnvFilepattern — ALL config read from.envmust go through this function - The
escapeRegexhelper andTRIGGER_PATTERNconstruction