refactor(plugins): install-time gates, the capability-audit hash chain and the registry through repositories

This commit is contained in:
jubnl
2026-09-24 03:24:23 +02:00
parent f29216c5af
commit d522882590
30 changed files with 834 additions and 313 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ export class PluginsService {
*/
private async assertRequiredFilled(id: string, scope: 'instance' | 'user', config: Record<string, unknown>): Promise<void> {
const required = await this.pluginSettingsFields.listRequiredFieldKeys(id, scope);
const defaults = await settingDefaults(this.db, id, scope);
const defaults = await settingDefaults(this.pluginSettingsFields, id, scope);
for (const fieldKey of required) {
// The runtime resolves the default too, so it counts as filled here as well.
if (!isFilled(config[fieldKey] ?? defaults[fieldKey])) throw new MissingRequiredSettingError(fieldKey);