Repository navigation
0.3.0: aliases, help levels, annotations, trailing arguments, synonyms, the help command, described candidates; the completion protocol as a contract - #18
Merged
Conversation
…lt with cmdline need in common Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…, the help command and described candidates -- one declaration answers them all (G1-G7) Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…of 0.3.0 Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…guments, as --help does (G9) Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
`lst` near `list` and its alias `ls` suggested both; it suggests 'list'. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
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.
Sub-design:
.agents/docs/2026-12-05-generic-cli-capabilities-design.md(asked for by openxlings/xlings's ecosystem design §22: xlings declares its command tree with cmdline only, and these are the gaps every program built with cmdline has in common).App::alias-- parsed, listed beside the name, completed by name; a name or alias two subcommands share is refused when made (std::invalid_argument).Level(common / more / expert) on commands and options ----help,--help --all,--help --all --expert; the help says what it left out. Parse and completion take every level.annotate(key, value)-- into the snapshot, not interpreted;agent_skills::check(..., {.required_annotations}).Arg::trailing()-- the word that fills it ends the options (tool script x.lua --helppasses--helpon;tool exec box --net none -- makekeeps--netthe command's).synonyms({{word, instead}})-- an unknown command with what to type (ParseError::hint), never a run.HelpOptions::help_command--tool help a bistool a b --help.DescribedCandidates-- candidates with descriptions and theCompletionContextthey stand in.docs/completion-protocol.md-- the protocol and adapters as a contract; its examples are run by the tests.Additive: with none of it chosen, help, completion and snapshot are as in 0.2.0 (the existing tests are unchanged). Version 0.3.0.
Tests:
tests/capabilities_test.cpp(new), the skills fixture checks the required annotation.Co-authored-by: speak-agent 248744407+speak-agent@users.noreply.github.com