mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 18:55:37 -04:00
bb250deb3a
Create shared.ts with common configuration types that can be used across agent-core and zee gateway: - Session primitives: SessionScope, ReplyMode, TypingMode, ReplyToMode - Policy types: DmPolicy, GroupPolicy - Logging: LogLevel, ConsoleStyle, LoggingConfig - Network: RetryConfig, BindMode - Model/Provider: ModelApi, ModelDefinition, ProviderDefinition - Processing: ThinkingLevel, QueueMode, QueueDropPolicy Update types.ts to use shared primitives: - GeneralSettings.logLevel now uses shared LogLevel - WhatsAppConfig extended with dmPolicy, groupPolicy, allowFrom, retry - TelegramConfig extended with dmPolicy, groupPolicy, allowFrom, retry This is the first step toward config consolidation between agent-core and zee gateway, enabling type-safe sharing of common configuration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>