18 lines
538 B
TypeScript
18 lines
538 B
TypeScript
import * as plugins from '../plugins.js';
|
|
import type { ToolRegistry } from '../tools/classes.toolregistry.js';
|
|
|
|
export class AutomationRunner {
|
|
public context: plugins.shxSdk.ShxAutomationContext;
|
|
|
|
constructor(private toolRegistry: ToolRegistry) {
|
|
this.context = new plugins.shxSdk.ShxAutomationContext({
|
|
callerId: 'hub:automation-runner',
|
|
executePlan: async (planArg: plugins.shxInterfaces.data.IToolPlan) => this.toolRegistry.executePlan(planArg),
|
|
});
|
|
}
|
|
|
|
public async start() {}
|
|
|
|
public async stop() {}
|
|
}
|