- 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
34 lines
996 B
JavaScript
34 lines
996 B
JavaScript
// src/jsx/dom/server.ts
|
|
import { renderToReadableStream as renderToReadableStreamHono } from "../streaming.js";
|
|
import version from "./index.js";
|
|
var renderToString = (element, options = {}) => {
|
|
if (Object.keys(options).length > 0) {
|
|
console.warn("options are not supported yet");
|
|
}
|
|
const res = element?.toString() ?? "";
|
|
if (typeof res !== "string") {
|
|
throw new Error("Async component is not supported in renderToString");
|
|
}
|
|
return res;
|
|
};
|
|
var renderToReadableStream = async (element, options = {}) => {
|
|
if (Object.keys(options).some((key) => key !== "onError")) {
|
|
console.warn("options are not supported yet, except onError");
|
|
}
|
|
if (!element || typeof element !== "object") {
|
|
element = element?.toString() ?? "";
|
|
}
|
|
return renderToReadableStreamHono(element, options.onError);
|
|
};
|
|
var server_default = {
|
|
renderToString,
|
|
renderToReadableStream,
|
|
version
|
|
};
|
|
export {
|
|
server_default as default,
|
|
renderToReadableStream,
|
|
renderToString,
|
|
version
|
|
};
|