- Add full Telegram bot functionality with Z.AI API integration
- Implement 4 tools: Bash, FileEdit, WebSearch, Git
- Add 3 agents: Code Reviewer, Architect, DevOps Engineer
- Add 6 skills for common coding tasks
- Add systemd service file for 24/7 operation
- Add nginx configuration for HTTPS webhook
- Add comprehensive documentation
- Implement WebSocket server for real-time updates
- Add logging system with Winston
- Add environment validation
🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration
45 lines
1.8 KiB
TypeScript
45 lines
1.8 KiB
TypeScript
import type { LoggerConfig, LoggerConfigurator } from '../types';
|
|
/**
|
|
* Configuration for a specific logger pattern
|
|
*
|
|
* @experimental This feature is in development as per the OpenTelemetry specification.
|
|
*/
|
|
export interface LoggerPattern {
|
|
/**
|
|
* The logger name or pattern to match.
|
|
* Use '*' for wildcard matching.
|
|
*
|
|
* @experimental This feature is in development as per the OpenTelemetry specification.
|
|
*/
|
|
pattern: string;
|
|
/**
|
|
* The configuration to apply to matching loggers.
|
|
* Partial config is allowed; unspecified properties will use defaults.
|
|
*
|
|
* @experimental This feature is in development as per the OpenTelemetry specification.
|
|
*/
|
|
config: LoggerConfig;
|
|
}
|
|
/**
|
|
* Creates a LoggerConfigurator from an array of logger patterns.
|
|
* Patterns are evaluated in order, and the first matching pattern's config is used.
|
|
* Supports exact matching and simple wildcard patterns with '*'.
|
|
*
|
|
* The returned configurator computes a complete LoggerConfig by merging the matched
|
|
* pattern's config with default values for any unspecified properties.
|
|
*
|
|
* @param patterns - Array of logger patterns with their configurations
|
|
* @returns A LoggerConfigurator function that computes complete LoggerConfig
|
|
* @experimental This feature is in development as per the OpenTelemetry specification.
|
|
*
|
|
* @example
|
|
* ```typescript
|
|
* const configurator = createLoggerConfigurator([
|
|
* { pattern: 'debug-logger', config: { minimumSeverity: SeverityNumber.DEBUG } },
|
|
* { pattern: 'prod-*', config: { minimumSeverity: SeverityNumber.WARN } },
|
|
* { pattern: '*', config: { minimumSeverity: SeverityNumber.INFO } },
|
|
* ]);
|
|
* ```
|
|
*/
|
|
export declare function createLoggerConfigurator(patterns: LoggerPattern[]): LoggerConfigurator;
|
|
//# sourceMappingURL=LoggerConfigurators.d.ts.map
|