Repository navigation
0.1.0: flags before actions, help sections, and the Agent Skills build helper - #16
Merged
Merged
Conversation
…e Agent Skills module and build helper - answer_flag/answer_flags: a global flag answered after the parse and before any action; --help keeps its precedence. - HelpOptions.groups_as_sections: a group is a top-level section, not a second-level heading. - mcpplibs.cmdline.agent_skills (feature agent-skills): --agent-skill-doc reads frontmatter-stripped bodies and appends the root/self index. - mcpp/cmdline: mcpplibs.mplugin.cmdline, a host-module package that scans docs/<app>-skills, validates the Agent Skills format, normalizes line endings and writes a deterministic sheet[] header; the runtime package re-exports it. - mcpp only: xmake files and documentation removed; README is English with README.zh.md; CI runs Linux, macOS and Windows and builds the fixture. - version 0.1.0.
The shell installer refuses MINGW64; the Windows leg uses the upstream PowerShell installer, then the same mcpp install and build steps.
…_view The GCC 16 libstdc++ module build refused the placement-new path a vector<string_view> takes in a template instantiated by the fixture; the index now appends rows directly. Also locate the fixture binary through find (the target tree has a platform directory between target and bin).
The CI runner's mcpp reports no package name to the build program in this fixture; options::app is the documented override and makes the fixture independent of that.
The macos-15 job stayed queued with no runner for half an hour; the rolling label is what the upstream mcpp workflows use.
macos-15 and macos-latest both stayed queued; macos-14 is the Intel image the GitHub Actions docs still list for open-source jobs.
…d program, no header The default path is now the module alone: install_default walks docs/<app>-skills (or options.root), strips frontmatter and answers. The generated sheet[] header, the mcpp/cmdline build plugin package and the re-export edge are removed; the fixture has no build.mcpp and no #include. A program that already owns its sheets still passes find/index.
lookup() returns the file's bytes; find() strips the frontmatter for the answer. The index then reads name/description from the full text. The macOS leg is left out while the runner queue is unavailable.
…r-free The build helper scans docs/<app>-skills and writes a C++ MODULE with the sheet[] table (mcpp::source adds it; no header, no include path). The runtime's install_default(app, sheets, options) reads that table; the filesystem reader is renamed install_runtime and documented as the development-only fallback. The fixture and README show the module path. The macOS leg stays out while its runner queue is unavailable.
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.
What
The 0.1.0 surface. Additive at the API; the one incompatible change is the build integration (mcpp only).
answer_flag/answer_flags— a global flag answered afterparseand before the action;--helpkeeps its precedence.ParsedArgs::command_path()gives the dotted path (self.auth).HelpOptions.groups_as_sections— each group is a top-level section (SUBCOMMANDS:,SELF MANAGEMENT:), commands one level below, no second-level heading.mcpplibs.cmdline.agent_skills(agent-skillsfeature) —installreads bodies and appends an index;install_defaultreads a generatedsheet[]table, resolvesself.auth.add→self.auth→auth, and generates the root/self indexes from command lists. Not installed = no flag.mcpp/cmdlinepackage (mcpplibs.mplugin.cmdline) — a host module that scansdocs/<app>-skills, validates frontmatter/name/description/line limit/key uniqueness/body, normalizes BOM+CRLF, refuses symlinks outside the root, sorts deterministically, and writessheet[];embed_default()is the one-line form,embed(options)overrides root/app/layout/limit/namespace/keys. The runtime package re-exports it through[build-dependencies] path, host-module, reexport, so a consumer has one dependency.xmake.lua,examples/xmake.lua,tests/xmake.luaand the two README xmake sections are gone; README is English withREADME.zh.md; CI is Linux/macOS/Windows and buildsfixtures/skills.Tests
mcpp build,mcpp build --features agent-skills,mcpp test(64 cases).fixtures/skills: depends on the runtime package, imports the re-exported build plugin, embeds three sheets, and runs--agent-skill-docfor root, a command, andself.world.Release notes
0.1.0— mcpp only; the runtime API is additive. SeeREADME.mdfor the two new flags and the optional module.