function handlerResultToFixResult(result) {
            return {
                caption: result.caption,
                meta: "action",
                onSelect: function(edit) {
                    var session = edit.getSession();
                    // SUPER ugly hack to pass in additional info to the command
                    session.$cmdInfo = result.info;
                    command.exec(result.command, edit, session);
                }
            };
        }
Result format:
{
   caption: "Do ABC"
   command: "Some:Command",
   info: { random data},
   score: number
}