- 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
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import { GaxiosError, GaxiosOptions, GaxiosResponse } from './common';
|
|
/**
|
|
* Interceptors that can be run for requests or responses. These interceptors run asynchronously.
|
|
*/
|
|
export interface GaxiosInterceptor<T extends GaxiosOptions | GaxiosResponse> {
|
|
/**
|
|
* Function to be run when applying an interceptor.
|
|
*
|
|
* @param {T} configOrResponse The current configuration or response.
|
|
* @returns {Promise<T>} Promise that resolves to the modified set of options or response.
|
|
*/
|
|
resolved?: (configOrResponse: T) => Promise<T>;
|
|
/**
|
|
* Function to be run if the previous call to resolved throws / rejects or the request results in an invalid status
|
|
* as determined by the call to validateStatus.
|
|
*
|
|
* @param {GaxiosError} err The error thrown from the previously called resolved function.
|
|
*/
|
|
rejected?: (err: GaxiosError) => void;
|
|
}
|
|
/**
|
|
* Class to manage collections of GaxiosInterceptors for both requests and responses.
|
|
*/
|
|
export declare class GaxiosInterceptorManager<T extends GaxiosOptions | GaxiosResponse> extends Set<GaxiosInterceptor<T> | null> {
|
|
}
|