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>
29 lines
681 B
JavaScript
29 lines
681 B
JavaScript
"use strict";
|
|
|
|
import stream from "stream";
|
|
|
|
class ZlibHeaderTransformStream extends stream.Transform {
|
|
__transform(chunk, encoding, callback) {
|
|
this.push(chunk);
|
|
callback();
|
|
}
|
|
|
|
_transform(chunk, encoding, callback) {
|
|
if (chunk.length !== 0) {
|
|
this._transform = this.__transform;
|
|
|
|
// Add Default Compression headers if no zlib headers are present
|
|
if (chunk[0] !== 120) { // Hex: 78
|
|
const header = Buffer.alloc(2);
|
|
header[0] = 120; // Hex: 78
|
|
header[1] = 156; // Hex: 9C
|
|
this.push(header, encoding);
|
|
}
|
|
}
|
|
|
|
this.__transform(chunk, encoding, callback);
|
|
}
|
|
}
|
|
|
|
export default ZlibHeaderTransformStream;
|