brl-subagent 2.5.1 → 2.6.0

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/types.ts CHANGED
@@ -577,6 +577,16 @@ export type DelegateTaskDetails =
577
577
  */
578
578
  export type DelegateTaskParams = Static<typeof delegateTaskParamsSchema>;
579
579
 
580
+ /**
581
+ * The multi-unit breakdown shown in the footer while a graph/chain dispatch is
582
+ * in flight (issue #133). `SessionState.modeContext` carries it for the
583
+ * duration of the dispatch; the footer formatter (src/tui-format.ts) renders
584
+ * it, so the shape lives here rather than in `state.ts`.
585
+ */
586
+ export type ModeContext =
587
+ | { kind: "graph"; wave: number; totalWaves: number; node: number; totalNodes: number }
588
+ | { kind: "chain"; step: number; totalSteps: number };
589
+
580
590
  // ---------------------------------------------------------------------------
581
591
  // Resolved params (after preset merging + validation)
582
592
  // ---------------------------------------------------------------------------
@@ -983,11 +993,11 @@ export function coherentFailureReason(
983
993
  }
984
994
 
985
995
  export function formatModel(m: { provider: string; id: string } | undefined): string {
986
- return m ? `${m.provider}/${m.id}` : "Not set (will use main agent\u2019s model)";
996
+ return m ? `${m.provider}/${m.id}` : "Not set";
987
997
  }
988
998
 
989
999
  export function formatMaxParallel(n: number): string {
990
- return n === 0 ? "unlimited" : String(n);
1000
+ return n === 0 ? "Unlimited" : String(n);
991
1001
  }
992
1002
 
993
1003
  /**