CAPABILITIESconstconst CAPABILITIES: Readonly<Record<HostKind, ReadonlySet<Capability>>>The capabilities of each kind: GitHub the common four and the three a host adds, GitLab those and groups to any depth, plain Git the common four alone.
What each kind of Git host offers (commons 0001-githost FR-002): the table of ifccm:GitManagerKind and its ifccm:supports, as the pure types the adapters and the workspace read, and the typed answer for a capability a kind lacks. A test holds this table equal to the ontology's.
CAPABILITIESconstconst CAPABILITIES: Readonly<Record<HostKind, ReadonlySet<Capability>>>The capabilities of each kind: GitHub the common four and the three a host adds, GitLab those and groups to any depth, plain Git the common four alone.
COMMON_CAPABILITIESconstconst COMMON_CAPABILITIES: readonly Capability[]The four capabilities every kind offers (ifccm:CloneUrl, ifccm:Credentials, ifccm:DefaultBranch, ifccm:SignedCommits).
maxDepthfunctionfunction maxDepth(kind: HostKind): numberThe most path segments (owner or groups, then repository) a kind of host takes: 2 where it has no nested groups, unlimited where it has.
supportsfunctionfunction supports(kind: HostKind, capability: Capability): booleanWhether a kind of host offers a capability.
unsupportedfunctionfunction unsupported(host: HostKind, capability: Capability): Result<never, HostFailure>The answer for a capability that a kind of host does not offer: typed, naming the host and the capability, never a guess (0001-githost FR-003).