Skip to content

2026.12.6.1: the command line for people and agents: help as an index, two kinds of package, a package's own sheet, strict TOML keys (#1043) - #1044

Merged
Sunrisepeak merged 7 commits into
mainfrom
feat/cli-surface-people-and-agents
Dec 6, 2026
Merged

Sunrisepeak merged 7 commits into
mainfrom
feat/cli-surface-people-and-agents

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

2026.12.6.1 implements the design of 2026-12-06 (.agents/docs/2026-12-06-cli-surface-people-and-agents-design.md): the command line for its two readers, people at a terminal and agents.

Help and reports. mcpp --help is an index in five sections by what a command acts on (Project, Packages, Inspect, Distribute, Machine), one line of at most 40 characters a command; rarely used commands and options are under --help --all. A command's help shows its examples, its related commands and the line of its sheet (mcpplibs.cmdline 0.4.0). self config, self env, self doctor, toolchain list and the info card are reports of one layout. On a terminal the help and the reports are styled with seven roles and wrapped to its width; in a pipe the text is the same without escapes (SPEC-012 §3.1, §4). mcpp new reports one line and a tip:; a new repository starts on init.defaultBranch, else main. mcpp clean says what it removed.

Two kinds of package. A library is spelled namespace.name and goes to a dependency table; a tool or runtime of a provider is spelled index:name and goes to [xlings.workspace]. mcpp search lists the two apart; mcpp add xim:<name> --when <build|run|dev> writes a tool, mcpp remove xim:<name> takes it out; mcpp add without a version writes the newest version exactly; <name>@ without one is a usage error. mcpp info is a card graded by what the home holds; --fetch downloads the one package. The envelopes gain identity, kind and the card's records (docs/50).

A package's own sheet. [package] agent_skill_doc (a path, or { path, lines }; else the first 100 lines of README.md) is printed by mcpp info <package> --agent-skill-doc, which fetches the one payload it needs; offline it prints a version the home holds or exits 5. mcpp publish refuses a stated file the archive does not carry (agent-skill-doc-unpublished). The sheets of mcpp state the two kinds of package, the project environment, and the order in which a library is chosen (SPEC-004 §15).

mcpp#1043. A manifest that defines a key twice, writes into an inline table, or makes one key both a value and a table is refused with both keys and lines; a dependency key that is a value and the prefix of another is reported once, with the line that quotes it, and mcpp add writes that canonical form (SPEC-004 §17). mcpp.lock, config.toml and the system configuration keep the reading of earlier releases, the later definition; for the two configurations a warning names both lines, since [index] auto_refresh = false appended to the default file defines the key twice.

Network. search, info, and add taking the newest version refresh a stale index or say how old the local one is; offline, a whole answer that needs the network exits 5 (SPEC-010 §5).

xlings. The bundled xlings is 2026.12.5.3; the message that attributed install failures to the two-index gap, which it closed, is removed.

Code layout. A .cppm states its exported interface first; non-exported declarations, implementations and the imports only they need follow module :private;, and 18 implementation units are folded into their interfaces (AGENTS.md §4). This keeps GCC 16.1 below the import-graph depth at which reading import mcpp.cli overflows its stack (mcpp#1027 UP-11). The two units of a split source now have the edges of their own imports (SPEC-019 §5 item 9, e2e 1181).

Tests: TOML and manifest unit tests for #1043 and agent_skill_doc; the help's length, ASCII and style checks over every command path; e2e 1181–1187 (search, info, --fetch, a package's sheet online and offline, add/remove of a tool, the quoting help, the publish refusal); the changed help, new, clean, add, remove and update texts; config.toml with a key defined twice (e2e 173).

@Sunrisepeak Sunrisepeak added the ci:canaries Run the canary matrix (canaries.yml) on this pull request label Dec 6, 2026
… <name>@` is a usage error; e2e cases follow the reports, the compact help and the strict manifest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:canaries Run the canary matrix (canaries.yml) on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant