IF Commons GitHub

physical/program

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-anyfs-cli-surfaces FR-015

The program anyfs as Headless' tree (commons anyfs-cli 0004-anyfs-cli-surfaces FR-015; commons headless 0003-headless-output, 0009-composition, 0010-audience-tiers, 0013-mcp-surface): its verbs and the facts of their actions, their options, operands and examples, and the data Headless configures itself with (the name and version, the prefix of the variables, the codes it explains, the tiers). This is the one place the tree is made; the command line runs it, the tool server serves it by tier (anyfs mcp), and anything that describes a program (a documentation lens, the REST description) reads it. A tool server lets an agent browse and move files across stores with the same typed operations and the same reach policy: it sees only what its tier sees, and a destruction from it is a preview, never an apply.

import { anyfsProgram, INERT_HOST } from "@intellectual-frontiers/anyfs-cli/physical";
anyfsProgram(INERT_HOST).name; // "anyfs"

Source: commons/anyfs-cli/src/physical/program.ts

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

INERT_HOSTconst
const INERT_HOST: Host

A host that does nothing: the tree of a program is made from it without opening anything, and describe never runs a verb.

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

heldTierfunctionno test imports it
function heldTier(env: (name: string) => string | undefined): { readonly tier: TierName; } | { readonly unknown: string; }

The held tier of a host: the one the variable names, the ladder's default where it says nothing, or the word that is no tier.

anyfsProgramfunction
function anyfsProgram(host: Host, run?: RunLocal): Program

anyfs as a Headless program, for the host it runs on.

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

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