Repository navigation
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
Conversation
…sheets of packages, strict TOML keys
…e private fragment
…dex offline is exit 5; specs, docs and e2e cases
…sheet's containment through path_identity; hostprogram.cppm as written for the bootstrap's scanner
… <name>@` is a usage error; e2e cases follow the reports, the compact help and the strict manifest
This was referenced Dec 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 --helpis 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 listand theinfocard 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 newreports one line and atip:; a new repository starts oninit.defaultBranch, elsemain.mcpp cleansays what it removed.Two kinds of package. A library is spelled
namespace.nameand goes to a dependency table; a tool or runtime of a provider is spelledindex:nameand goes to[xlings.workspace].mcpp searchlists the two apart;mcpp add xim:<name> --when <build|run|dev>writes a tool,mcpp remove xim:<name>takes it out;mcpp addwithout a version writes the newest version exactly;<name>@without one is a usage error.mcpp infois a card graded by what the home holds;--fetchdownloads the one package. The envelopes gainidentity,kindand 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 ofREADME.md) is printed bymcpp info <package> --agent-skill-doc, which fetches the one payload it needs; offline it prints a version the home holds or exits 5.mcpp publishrefuses 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 addwrites that canonical form (SPEC-004 §17).mcpp.lock,config.tomland 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 = falseappended to the default file defines the key twice.Network.
search,info, andaddtaking 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
.cppmstates its exported interface first; non-exported declarations, implementations and the imports only they need followmodule :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 readingimport mcpp.clioverflows 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/removeof a tool, the quoting help, the publish refusal); the changed help,new,clean,add,removeandupdatetexts;config.tomlwith a key defined twice (e2e 173).