Add hub package
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user