@sentzunhat/zacatl
Version:
A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.
45 lines • 1.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Desktop = void 0;
const error_1 = require("../../../error/index.js");
class Desktop {
window;
platform;
constructor(config) {
this.window = config.window;
this.platform = config.platform;
}
async registerEntrypoints(_entryPoints) {
throw new error_1.InternalServerError({
message: `Desktop IPC entrypoint registration for '${this.window.title}' is not yet implemented`,
reason: 'ServiceType.DESKTOP IPC handler registration and event routing are not implemented. ' +
'This feature is planned for v0.1.0. Use ServiceType.SERVER for HTTP-based services.',
component: 'Desktop',
operation: 'registerEntrypoints',
metadata: {
platform: this.platform,
window: { title: this.window.title },
},
});
}
async start(_input) {
throw new error_1.InternalServerError({
message: `Desktop platform '${this.window.title}' (${this.platform}) is not yet implemented`,
reason: 'ServiceType.DESKTOP is declared but window initialization and IPC handler registration are not implemented. ' +
'This feature is planned for v0.1.0. Use ServiceType.SERVER for HTTP-based services.',
component: 'Desktop',
operation: 'start',
metadata: {
platform: this.platform,
window: {
title: this.window.title,
width: this.window.width,
height: this.window.height,
},
},
});
}
async stop() { }
}
exports.Desktop = Desktop;
//# sourceMappingURL=desktop.js.map