pi-advisor-flow 0.3.1 → 0.3.4

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/src/ui.ts CHANGED
@@ -224,6 +224,7 @@ export interface AdvisorSettings {
224
224
  outcomeLogging?: boolean;
225
225
  planGate: boolean;
226
226
  redactSecrets?: boolean;
227
+ scoutEnabled?: boolean;
227
228
  sessionSummary?: boolean;
228
229
  simpleMode?: boolean;
229
230
  toolPolicies?: Record<string, "full" | "summary" | "exclude">;
@@ -238,6 +239,7 @@ type AdvisorSettingsRow =
238
239
  | "alwaysOn"
239
240
  | "context"
240
241
  | "effort"
242
+ | "scoutEnabled"
241
243
  | "planGate"
242
244
  | "failureGate"
243
245
  | "completionGate"
@@ -264,6 +266,7 @@ type AdvisorSettingsRow =
264
266
  const ADVANCED_ROWS: AdvisorSettingsRow[] = [
265
267
  "context",
266
268
  "effort",
269
+ "scoutEnabled",
267
270
  "planGate",
268
271
  "failureGate",
269
272
  "completionGate",
@@ -575,6 +578,11 @@ export class AdvisorSettingsSelector implements Component, Focusable {
575
578
  const onOff = (value: boolean) => (value ? "On" : "Off");
576
579
  const rows = [
577
580
  this.row("Advisor reasoning", this.currentEffort(), "effort"),
581
+ this.row(
582
+ "Experimental Advisor Scout",
583
+ onOff(this.settings.scoutEnabled ?? false),
584
+ "scoutEnabled"
585
+ ),
578
586
  this.row("Plan gate", onOff(this.settings.planGate), "planGate"),
579
587
  this.row("Failure gate", onOff(this.settings.failureGate), "failureGate"),
580
588
  this.row(
@@ -823,6 +831,9 @@ export class AdvisorSettingsSelector implements Component, Focusable {
823
831
  );
824
832
  this.settings.effort = this.options.effortLevels[this.effortIndex];
825
833
  break;
834
+ case "scoutEnabled":
835
+ this.settings.scoutEnabled = !(this.settings.scoutEnabled ?? false);
836
+ break;
826
837
  case "planGate":
827
838
  this.settings.planGate = !this.settings.planGate;
828
839
  break;