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/AGENT.md +12 -10
- package/README.md +16 -5
- package/package.json +5 -5
- package/src/concurrency.ts +156 -44
- package/src/index.ts +137 -40
- package/src/params.ts +73 -5
- package/src/schema.ts +3 -1
- package/src/state.ts +29 -4
- package/src/tui-format.ts +382 -4
- package/src/tui.ts +793 -522
- package/src/types.ts +12 -2
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
|
|
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 ? "
|
|
1000
|
+
return n === 0 ? "Unlimited" : String(n);
|
|
991
1001
|
}
|
|
992
1002
|
|
|
993
1003
|
/**
|