18 lines
329 B
TypeScript
18 lines
329 B
TypeScript
import { AiBridge } from './aibridge.classes.aibridge.js';
|
|
|
|
export {
|
|
AiBridge,
|
|
}
|
|
|
|
let aibridgeInstance: AiBridge;
|
|
export const runCli = async () => {
|
|
aibridgeInstance = new AiBridge();
|
|
await aibridgeInstance.start();
|
|
};
|
|
|
|
export const stop = async () => {
|
|
if (aibridgeInstance) {
|
|
await aibridgeInstance.stop();
|
|
}
|
|
};
|