- 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
20 lines
1008 B
TypeScript
20 lines
1008 B
TypeScript
import type { Socket, Server } from 'node:net';
|
|
import type { Duplex } from 'node:stream';
|
|
import type { ResolvedParentProxy } from './parent-proxy.js';
|
|
export interface HttpProxyServerOptions {
|
|
filter(port: number, host: string, socket: Socket | Duplex): Promise<boolean> | boolean;
|
|
/**
|
|
* Optional function to get the MITM proxy socket path for a given host.
|
|
* If returns a socket path, the request will be routed through that MITM proxy.
|
|
* If returns undefined, the request will be handled directly.
|
|
*/
|
|
getMitmSocketPath?(host: string): string | undefined;
|
|
/**
|
|
* Optional upstream HTTP proxy. When present, direct-connect traffic (i.e.
|
|
* not routed via mitmProxy) is tunnelled through this parent instead of
|
|
* connecting directly. NO_PROXY-matched hosts still connect directly.
|
|
*/
|
|
parentProxy?: ResolvedParentProxy;
|
|
}
|
|
export declare function createHttpProxyServer(options: HttpProxyServerOptions): Server;
|
|
//# sourceMappingURL=http-proxy.d.ts.map
|