The built-in plugin library, as AgentService reads it: the seed list, a lookup and the default-install plugins (the server's PluginLibrary satisfies it structurally; the assembly binds it).
API
@Interface()
export abstract class AgentPluginLibrary {
abstract list(): LibraryPlugin[];
abstract get(name: string): LibraryPlugin | undefined;
abstract defaultInstalled(): LibraryPlugin[];
abstract resolve(names: readonly string[]): LibraryPlugin[];
abstract seed(
picked: readonly string[],
defaults: readonly Pick<LibraryPlugin, "name">[],
): string[];
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (5)
list
list(): LibraryPlugin[]@returns
LibraryPlugin[]get
get(name: string): LibraryPlugin | undefined@paramname
string@returns
LibraryPlugin | undefineddefaultInstalled
defaultInstalled(): LibraryPlugin[]@returns
LibraryPlugin[]resolve
resolve(names: readonly string[]): LibraryPlugin[]Resolves plugin names to their entries, in the order given; 404 unknown_plugin on the first name the library does not carry (the server's resolveLibraryPlugins).
@paramnames
readonly string[]@returns
LibraryPlugin[]seed
seed(picked: readonly string[], defaults: readonly Pick<LibraryPlugin, "name">[]): string[]The picked names in pick order, then each default-install plugin's name not among them (the server's seedPluginNames).
@parampicked
readonly string[]@paramdefaults
readonly Pick<LibraryPlugin, "name">[]@returns
string[]