import { Capabilities , PreloadRegistrar } from '@kui-shell/core' ; import { metricListMode , metricYamlMode } from './models/metrics' ; import { exprcreateMode , decisionMode } from './models/renderCreateExpr' ; export default async ( registrar ) => { if ( ! Capabilities . isHeadless ( ) ) { await registrar . registerModes ( exprcreateMode , decisionMode , metricListMode , metricYamlMode ) ; const { notebookVFS } = await import ( '@kui-shell/plugin-core-support' ) ; notebookVFS . mkdir ( { argvNoOptions : [ 'mkdir' , '/kui/iter8' ] } ) ; notebookVFS . cp ( undefined , [ 'plugin://plugin-iter8/notebooks/welcome.md' , 'plugin://plugin-iter8/notebooks/tutorial1.md' ] , '/kui/iter8/' ) ; } } ;