 d7ad321176
			
		
	
	d7ad321176
	
	
	
		
			
			This comprehensive implementation includes: - FastAPI backend with MCP server integration - React/TypeScript frontend with Vite - PostgreSQL database with Redis caching - Grafana/Prometheus monitoring stack - Docker Compose orchestration - Full MCP protocol support for Claude Code integration Features: - Agent discovery and management across network - Visual workflow editor and execution engine - Real-time task coordination and monitoring - Multi-model support with specialized agents - Distributed development task allocation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			928 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			928 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { JSONRPCMessageSchema } from "../types.js";
 | |
| /**
 | |
|  * Buffers a continuous stdio stream into discrete JSON-RPC messages.
 | |
|  */
 | |
| export class ReadBuffer {
 | |
|     append(chunk) {
 | |
|         this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
 | |
|     }
 | |
|     readMessage() {
 | |
|         if (!this._buffer) {
 | |
|             return null;
 | |
|         }
 | |
|         const index = this._buffer.indexOf("\n");
 | |
|         if (index === -1) {
 | |
|             return null;
 | |
|         }
 | |
|         const line = this._buffer.toString("utf8", 0, index).replace(/\r$/, '');
 | |
|         this._buffer = this._buffer.subarray(index + 1);
 | |
|         return deserializeMessage(line);
 | |
|     }
 | |
|     clear() {
 | |
|         this._buffer = undefined;
 | |
|     }
 | |
| }
 | |
| export function deserializeMessage(line) {
 | |
|     return JSONRPCMessageSchema.parse(JSON.parse(line));
 | |
| }
 | |
| export function serializeMessage(message) {
 | |
|     return JSON.stringify(message) + "\n";
 | |
| }
 | |
| //# sourceMappingURL=stdio.js.map
 |