@ordewell/core 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -11231,6 +11231,14 @@ var SettingsService = class {
11231
11231
  }
11232
11232
  this.persist();
11233
11233
  }
11234
+ getEnabledRunners() {
11235
+ return this.getAll().enabledRunners;
11236
+ }
11237
+ setEnabledRunners(ids) {
11238
+ this.getAll();
11239
+ this.cache.enabledRunners = [...ids];
11240
+ this.persist();
11241
+ }
11234
11242
  load() {
11235
11243
  try {
11236
11244
  if (fs8.existsSync(this.filePath)) {
@@ -11248,6 +11256,9 @@ var SettingsService = class {
11248
11256
  if (raw.modelAllowlist !== void 0) {
11249
11257
  settings.modelAllowlist = raw.modelAllowlist;
11250
11258
  }
11259
+ if (Array.isArray(raw.enabledRunners)) {
11260
+ settings.enabledRunners = raw.enabledRunners.map(String);
11261
+ }
11251
11262
  return settings;
11252
11263
  }
11253
11264
  } catch {