IF Commons GitHub

dialect

Written to: 3 requirements: 3 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-winget-dialect FR-001, 0002-winget-dialect FR-002, 0002-winget-dialect FR-003

The dialect of tools for WinGet: what it guarantees, how it writes an exact version and what its check answers, as data, and the call that makes the dialect from the commands of the packaging ontology. It runs the installers its manifests name, and builds nothing itself. Everything else (the command lines, the plan file, the program, the observation) is in @intellectual-frontiers/package-managers.

import { winget, TOOL_DIALECT } from "./dialect.ts";
TOOL_DIALECT.guarantees.pin; // "exact"

Source: commons/archon-dialect-winget/src/dialect.ts

Mutation score of this file: 85.7% (4 of 28 changes to its code were not noticed by a test).

4 of 5 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

DIALECT_IDconst
const DIALECT_ID: "winget"

The id of the dialect.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

SPECconst
const SPEC: ManagerSpec

The manager as the kit needs it: WinGet, whose manifests carry the SHA-256 of each installer, which it checks before it runs one.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

TOOL_DIALECTconst
const TOOL_DIALECT: ToolDialect

The dialect as Toolchain reads it.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

wingetfunction
function winget(commands: CommandSource, options?: DialectOptions): Dialect

The dialect, made from the commands of the packaging ontology (the reader of supply-chain/commands, as a function); elevate is the program that raises the rights, where the manager needs them.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

observeRequirementsfunctionno test imports it
function observeRequirements(commands: CommandSource, requirements: readonly Requirement[], o?: { readonly run?: Run | undefined; }): Promise<ReadonlyMap<RequirementId, JsonValue>>

What Archon is given of what is installed: see the kit.

Titles, headings, exports, tables, columns and requirements. Esc closes.