- 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
30 lines
738 B
JavaScript
30 lines
738 B
JavaScript
import { createParser } from "./index.js";
|
|
import { ParseError } from "./index.js";
|
|
class EventSourceParserStream extends TransformStream {
|
|
constructor({ onError, onRetry, onComment } = {}) {
|
|
let parser;
|
|
super({
|
|
start(controller) {
|
|
parser = createParser({
|
|
onEvent: (event) => {
|
|
controller.enqueue(event);
|
|
},
|
|
onError(error) {
|
|
onError === "terminate" ? controller.error(error) : typeof onError == "function" && onError(error);
|
|
},
|
|
onRetry,
|
|
onComment
|
|
});
|
|
},
|
|
transform(chunk) {
|
|
parser.feed(chunk);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
export {
|
|
EventSourceParserStream,
|
|
ParseError
|
|
};
|
|
//# sourceMappingURL=stream.js.map
|