The family of a Kanon library (commons 0033-kanonFR-021): the naming rule of the packages that extend a host, as data of the host's table, and the names that rule makes and reads. A host @scope/archon has dialects @scope/archon-dialect-<tool> and plugins @scope/archon-<noun>; the rule is two templates, never a pattern in a program.
Parse, don't validate: an instance name, a plugin noun and a template are branded types made only by their smart constructors, so a function that takes one never checks it again. The name of a member is derived from the rule (memberPackage), never written twice, and read back by classify, which returns one case of the closed union Member; a dialect is tried before a plugin, so a noun that would read as a dialect (dialect-x) is not a plugin, and memberPackage refuses it.
typeFamilyRule= {
readonlydialect:NameTemplate;
readonlyplugin:NameTemplate;
/** The subpath of the host's `exports` that is the plugin contract (`./plugin`): each plugin imports it, and the host exports it. */readonlycontract?:string;
/** Whose scope a member may be of: `own` (the host's, where absent) or `any` (0033-kanon FR-027). */readonlyscope?:"own"|"any";
};
The naming rule of a family, as data (0033-kanonFR-021): a template for the dialects and one for the plugins, and optionally the export of the host that defines what a plugin is.
The package of a member of the host's family, from the rule: the one way a member's package name is made. A plugin whose noun would read as a dialect is refused.