@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
55 lines • 1.89 kB
TypeScript
/**
* Transport configuration for different output destinations
*/
import type { TransportConfig } from './types.js';
type TransportTarget = {
target: string;
options?: Record<string, unknown>;
level?: string;
};
/**
* Create a development transport with pretty printing
*/
export declare function createDevelopmentTransport(): TransportTarget;
/**
* Create a production transport with file rotation
*/
export declare function createProductionTransport(logDir?: string): TransportTarget;
/**
* Create a test transport that outputs to /dev/null
*/
export declare function createTestTransport(): TransportTarget;
/**
* Create a custom transport for specific needs
*/
export declare function createCustomTransport(config: TransportConfig): TransportTarget;
/**
* Create a multi-transport configuration
*/
export declare function createMultiTransport(): TransportTarget[];
/**
* Create a transport with buffering for high-performance scenarios
*/
export declare function createBufferedTransport(baseTransport: TransportTarget, bufferSize?: number): TransportTarget;
/**
* Create a transport for error-specific logging
*/
export declare function createErrorTransport(logDir?: string): TransportTarget;
/**
* Create a transport for audit logging
*/
export declare function createAuditTransport(logDir?: string): TransportTarget;
/**
* Get transport configuration based on environment variables
*/
export declare function getTransportFromEnvironment(): TransportTarget | TransportTarget[];
/**
* Validate transport configuration
*/
export declare function validateTransport(transport: TransportTarget): boolean;
/**
* Create transport with error handling and fallback
*/
export declare function createSafeTransport(primaryTransport: TransportTarget, fallbackTransport?: TransportTarget): TransportTarget;
export {};
//# sourceMappingURL=transports.d.ts.map