import { InternalExecutorRouter } from '@mochabug/adapt-plugin-toolkit/router';

export default {
  internal: new InternalExecutorRouter()
    .onStart(async (start, api, ctx) => {
      console.log('Start has been called');
      console.log(start);
      ctx.waitUntil(api.send('output', {}));
    })
    .onStop(async (stop, _api) => {
      console.log('Stop has been called');
      console.log(stop);
    })
    .onExchange(async (res, _api, name) => {
      console.log(`Exchange ${name} has been called`);
      console.log(res);
    })
};
