// SPDX-License-Identifier: MIT
import { loadKernel } from '@metaharness/kernel';
import adapter from '@metaharness/host-{{host}}';

const HARNESS_NAME = '{{name}}';

async function main(): Promise<number> {
  const kernel = await loadKernel();
  const info = kernel.kernelInfo();
  console.log(`${HARNESS_NAME} — customer support harness`);
  console.log(`Kernel ${info.version} (${kernel.backend}), host: ${adapter.name}`);
  console.log('Drop KB articles in kb/ and they will be indexed automatically.');
  return 0;
}

main().then(c => process.exit(c)).catch(err => { console.error(err); process.exit(1); });
