genkit-cli
Version:
CLI for interacting with the Google Genkit AI framework
32 lines • 997 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.McpRuntimeManager = void 0;
const manager_utils_1 = require("../utils/manager-utils");
class McpRuntimeManager {
projectRoot;
manager;
constructor(projectRoot) {
this.projectRoot = projectRoot;
}
async getManager() {
if (!this.manager) {
this.manager = await (0, manager_utils_1.startManager)(this.projectRoot, true);
}
return this.manager;
}
async getManagerWithDevProcess(command, args) {
if (this.manager) {
await this.manager.stop();
}
const devManager = await (0, manager_utils_1.startDevProcessManager)(this.projectRoot, command, args);
this.manager = devManager.manager;
return this.manager;
}
async kill() {
if (this.manager) {
await this.manager.stop();
}
}
}
exports.McpRuntimeManager = McpRuntimeManager;
//# sourceMappingURL=util.js.map