Interface: DeclaredGroup
Defined in: packages/core/src/types.ts:123
A named declaration that owns zero or more named members.
A family and a crew are different objects and the same thing to the panel: a
name, a count, and a list of member keys, all knowable before anything runs.
That last clause is the point: every other kind in the dev registry is a
live node that registers from its own constructor, so it exists only once
something built it, and a processableFamily() across fifty tenants would
show nothing until traffic built a member.
One contract rather than one per kind, because the alternative fails
ASK-DONT-SNIFF: separate hooks, maps, routes and panel sections per kind
mean a third kind has to edit all four. Implement the three accessors and the
registry lists you.
Methods
getGroupId()
getGroupId():
string
Defined in: packages/core/src/types.ts:130
Stable id — a chosen name where the caller gave one, otherwise generated.
The same string a family-wide override keys on, so the two agree by construction rather than by convention.
Returns
string
getGroupKind()
getGroupKind():
string
Defined in: packages/core/src/types.ts:141
What kind of declaration this is: 'family', 'crew', or something a
later primitive introduces.
An open string rather than a union, on the same reasoning as
BotOverride.effort: a closed union would have to be edited by every new
kind, which is exactly the coupling this interface exists to avoid. A panel
that meets a kind it does not know renders the generic row, which is the
honest degradation.
Returns
string
getMemberKeys()
getMemberKeys(): readonly
string[]
Defined in: packages/core/src/types.ts:149
The members built so far, in the order the group would evict them.
Read live, on every list — never recorded at registration. A family registers at declaration, when it has exactly zero members; a snapshot taken then is empty for the life of the process.
Returns
readonly string[]