@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.d.mts CHANGED
@@ -537,6 +537,11 @@ interface UserSettings {
537
537
  enabled: boolean;
538
538
  };
539
539
  modelAllowlist?: Record<string, string[]>;
540
+ /**
541
+ * Runners the user picked for planning. Absent — not empty — is what falls
542
+ * back to the environment's defaults; `[]` is a deliberate "none of them".
543
+ */
544
+ enabledRunners?: string[];
540
545
  }
541
546
  /**
542
547
  * Where the user's toggles live. `ORDEWELL_SETTINGS_PATH` overrides it so several
@@ -570,6 +575,8 @@ declare class SettingsService {
570
575
  setResearchSubagents(enabled: boolean): void;
571
576
  getModelAllowlist(runner: string): string[] | undefined;
572
577
  setModelAllowlist(runner: string, ids: string[] | undefined): void;
578
+ getEnabledRunners(): string[] | undefined;
579
+ setEnabledRunners(ids: string[]): void;
573
580
  private load;
574
581
  private persist;
575
582
  }
package/dist/index.d.ts CHANGED
@@ -537,6 +537,11 @@ interface UserSettings {
537
537
  enabled: boolean;
538
538
  };
539
539
  modelAllowlist?: Record<string, string[]>;
540
+ /**
541
+ * Runners the user picked for planning. Absent — not empty — is what falls
542
+ * back to the environment's defaults; `[]` is a deliberate "none of them".
543
+ */
544
+ enabledRunners?: string[];
540
545
  }
541
546
  /**
542
547
  * Where the user's toggles live. `ORDEWELL_SETTINGS_PATH` overrides it so several
@@ -570,6 +575,8 @@ declare class SettingsService {
570
575
  setResearchSubagents(enabled: boolean): void;
571
576
  getModelAllowlist(runner: string): string[] | undefined;
572
577
  setModelAllowlist(runner: string, ids: string[] | undefined): void;
578
+ getEnabledRunners(): string[] | undefined;
579
+ setEnabledRunners(ids: string[]): void;
573
580
  private load;
574
581
  private persist;
575
582
  }
package/dist/index.js CHANGED
@@ -12715,6 +12715,14 @@ var SettingsService = class {
12715
12715
  }
12716
12716
  this.persist();
12717
12717
  }
12718
+ getEnabledRunners() {
12719
+ return this.getAll().enabledRunners;
12720
+ }
12721
+ setEnabledRunners(ids) {
12722
+ this.getAll();
12723
+ this.cache.enabledRunners = [...ids];
12724
+ this.persist();
12725
+ }
12718
12726
  load() {
12719
12727
  try {
12720
12728
  if (fs8.existsSync(this.filePath)) {
@@ -12732,6 +12740,9 @@ var SettingsService = class {
12732
12740
  if (raw.modelAllowlist !== void 0) {
12733
12741
  settings.modelAllowlist = raw.modelAllowlist;
12734
12742
  }
12743
+ if (Array.isArray(raw.enabledRunners)) {
12744
+ settings.enabledRunners = raw.enabledRunners.map(String);
12745
+ }
12735
12746
  return settings;
12736
12747
  }
12737
12748
  } catch {