governance.TierIdtypeno test imports ittype TierId = "public" | "contributor" | "releaser";The names of the tiers, lowest first: a closed union.
The audience tiers of Repoctl (commons repoctl 0002-repoctl-governance FR-003; commons headless 0010-audience-tiers): three, lowest first. public sees what only reads (the checks, the status, the plan of a release); contributor also sees what changes a checkout (the generated files, the merge, the commit, a new library, the making of a release); releaser also sees the publication. The tier is a fact of the host that runs the program (the variable REPOCTL_TIER, the key of a tool server), never a word of a message.
import { LADDER, tierOf } from "./tiers.ts";
LADDER.ladder.length; // 3
tierOf("releaser");governance.TierIdtypeno test imports ittype TierId = "public" | "contributor" | "releaser";The names of the tiers, lowest first: a closed union.
governance.TIER_IDSconstno test imports itconst TIER_IDS: readonly TierId[]Every tier, lowest first.
governance.TIERSconstno test imports itconst TIERS: Readonly<Record<TierId, TierName>>The three tiers as headless' tier names.
governance.LADDERconstno test imports itconst LADDER: TierLadderThe ladder of the program: the tier of a caller who says nothing is contributor, the person at their own checkout.
governance.tierOffunctionno test imports itfunction tierOf(word: string): TierName | undefinedThe tier named by a word, or undefined where the word is none of the three.
TierIdtypeno test imports ittype TierId = "public" | "contributor" | "releaser";The names of the tiers, lowest first: a closed union.
TIER_IDSconstconst TIER_IDS: readonly TierId[]Every tier, lowest first.
TIERSconstconst TIERS: Readonly<Record<TierId, TierName>>The three tiers as headless' tier names.
LADDERconstconst LADDER: TierLadderThe ladder of the program: the tier of a caller who says nothing is contributor, the person at their own checkout.
tierOffunctionfunction tierOf(word: string): TierName | undefinedThe tier named by a word, or undefined where the word is none of the three.