- 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
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import { Transport } from './shared/transport.js';
|
|
import { JSONRPCMessage, RequestId } from './types.js';
|
|
import { AuthInfo } from './server/auth/types.js';
|
|
/**
|
|
* In-memory transport for creating clients and servers that talk to each other within the same process.
|
|
*/
|
|
export declare class InMemoryTransport implements Transport {
|
|
private _otherTransport?;
|
|
private _messageQueue;
|
|
onclose?: () => void;
|
|
onerror?: (error: Error) => void;
|
|
onmessage?: (message: JSONRPCMessage, extra?: {
|
|
authInfo?: AuthInfo;
|
|
}) => void;
|
|
sessionId?: string;
|
|
/**
|
|
* Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server.
|
|
*/
|
|
static createLinkedPair(): [InMemoryTransport, InMemoryTransport];
|
|
start(): Promise<void>;
|
|
close(): Promise<void>;
|
|
/**
|
|
* Sends a message with optional auth info.
|
|
* This is useful for testing authentication scenarios.
|
|
*/
|
|
send(message: JSONRPCMessage, options?: {
|
|
relatedRequestId?: RequestId;
|
|
authInfo?: AuthInfo;
|
|
}): Promise<void>;
|
|
}
|
|
//# sourceMappingURL=inMemory.d.ts.map
|