Skip to content

0.1.0: flags before actions, help sections, and the Agent Skills build helper - #16

Merged
Sunrisepeak merged 10 commits into
mainfrom
feat/0.1.0-agent-cli
Dec 3, 2026
Merged

Sunrisepeak merged 10 commits into
mainfrom
feat/0.1.0-agent-cli

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

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 after parse and before the action; --help keeps 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-skills feature) — install reads bodies and appends an index; install_default reads a generated sheet[] table, resolves self.auth.add → self.auth → auth, and generates the root/self indexes from command lists. Not installed = no flag.
  • mcpp/cmdline package (mcpplibs.mplugin.cmdline) — a host module that scans docs/<app>-skills, validates frontmatter/name/description/line limit/key uniqueness/body, normalizes BOM+CRLF, refuses symlinks outside the root, sorts deterministically, and writes sheet[]; 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.
  • mcpp only — xmake.lua, examples/xmake.lua, tests/xmake.lua and the two README xmake sections are gone; README is English with README.zh.md; CI is Linux/macOS/Windows and builds fixtures/skills.
  • Version 0.1.0.

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-doc for root, a command, and self.world.

Release notes

0.1.0 — mcpp only; the runtime API is additive. See README.md for the two new flags and the optional module.

…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.
@Sunrisepeak
Sunrisepeak merged commit 5e7e506 into main Dec 3, 2026
2 checks passed
@Sunrisepeak
Sunrisepeak deleted the feat/0.1.0-agent-cli branch December 3, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant