refactor(editor): make all states inspectable from repl, remove some enum and interfaces