- 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
33 lines
905 B
TypeScript
33 lines
905 B
TypeScript
export = pool;
|
|
|
|
/**
|
|
* An allocator as used by {@link util.pool}.
|
|
* @typedef PoolAllocator
|
|
* @type {function}
|
|
* @param {number} size Buffer size
|
|
* @returns {Uint8Array} Buffer
|
|
*/
|
|
type PoolAllocator = (size: number) => Uint8Array;
|
|
|
|
/**
|
|
* A slicer as used by {@link util.pool}.
|
|
* @typedef PoolSlicer
|
|
* @type {function}
|
|
* @param {number} start Start offset
|
|
* @param {number} end End offset
|
|
* @returns {Uint8Array} Buffer slice
|
|
* @this {Uint8Array}
|
|
*/
|
|
type PoolSlicer = (this: Uint8Array, start: number, end: number) => Uint8Array;
|
|
|
|
/**
|
|
* A general purpose buffer pool.
|
|
* @memberof util
|
|
* @function
|
|
* @param {PoolAllocator} alloc Allocator
|
|
* @param {PoolSlicer} slice Slicer
|
|
* @param {number} [size=8192] Slab size
|
|
* @returns {PoolAllocator} Pooled allocator
|
|
*/
|
|
declare function pool(alloc: PoolAllocator, slice: PoolSlicer, size?: number): PoolAllocator;
|