feat(spec): plugin API changed