logical.architectureOffunctionno test imports itfunction architectureOf(unameM: string): "aarch64" | "x86_64" | undefinedThe architecture uname -m says, where Archon knows it (arm64 is aarch64, amd64 is x86_64).
The platform of a machine read from the text of /etc/os-release and uname -m, and the platform a model declares parsed with every reason it is refused. Nothing here runs a program.
import { platformOfOsRelease } from "./platform.ts";
platformOfOsRelease('ID=debian\nVERSION_ID="13"\n').kind; // "ok"logical.architectureOffunctionno test imports itfunction architectureOf(unameM: string): "aarch64" | "x86_64" | undefinedThe architecture uname -m says, where Archon knows it (arm64 is aarch64, amd64 is x86_64).
logical.osReleaseTablefunctionno test imports itfunction osReleaseTable(text: string): ReadonlyMap<string, string>The KEY=value lines of an os-release as a table: a value may be in single or double quotes.
logical.parseDeclaredfunctionno test imports itfunction parseDeclared(input: unknown): Result<Declared, readonly string[]>A declared platform from what a model wrote, or every reason it is refused.
logical.platformDriftfunctionno test imports itfunction platformDrift(declared: Declared, observed: Observed): readonly string[]What differs between the platform declared and the one observed, one sentence each: a machine that is not what its model says is said, not converged as though it were.
logical.platformOfOsReleasefunctionno test imports itfunction platformOfOsRelease(text: string, unameM?: string | undefined): Result<Observed, string>The platform an os-release describes, or the reason it is not one Archon knows: an ID and an ID_LIKE of no known family are named, never guessed.
architectureOffunctionfunction architectureOf(unameM: string): "aarch64" | "x86_64" | undefinedThe architecture uname -m says, where Archon knows it (arm64 is aarch64, amd64 is x86_64).
osReleaseTablefunctionfunction osReleaseTable(text: string): ReadonlyMap<string, string>The KEY=value lines of an os-release as a table: a value may be in single or double quotes.
parseDeclaredfunctionfunction parseDeclared(input: unknown): Result<Declared, readonly string[]>A declared platform from what a model wrote, or every reason it is refused.
platformDriftfunctionfunction platformDrift(declared: Declared, observed: Observed): readonly string[]What differs between the platform declared and the one observed, one sentence each: a machine that is not what its model says is said, not converged as though it were.
platformOfOsReleasefunctionfunction platformOfOsRelease(text: string, unameM?: string | undefined): Result<Observed, string>The platform an os-release describes, or the reason it is not one Archon knows: an ID and an ID_LIKE of no known family are named, never guessed.