Repository navigation
docs(shortcuts): align shortcuts guide with current behavior - #1327
Merged
Merged
Conversation
Rewrite the multi-word shortcut examples (mod tidy, docker build/run) as subcommands so they are invocable and document the first-token naming rule; correct the file-naming claim (any *.yaml in shortcuts/ loads, .yml does not); trim /agents to its list|add|remove subcommands; describe /install-opentask as the chat-agent install task that lands .github/workflows/tasks.yml on an install branch and opens a PR; describe modalities-based image-model filtering; and point /init's prompt at prompts.yaml init.prompt. Also drop the duplicated subcommand args from the README custom-docker.yaml example, which resolved to docker build build.
Contributor
|
🎉 This PR is included in version 0.208.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Resolves #1317
Summary
docs/shortcuts-guide.mddescribed shortcut loading, naming and several built-in shortcuts the way they used to work. Every claim was re-verified against the current code and corrected, and the multi-word shortcut examples were rewritten in the actually-workingsubcommands:form.Changes
name: "mod tidy",name: "docker build"andname: "docker run"examples could never match, sinceRegistry.ParseShortcut(internal/presentation/shortcuts/registry.go) takes the first whitespace-separated token as the shortcut name (/docker buildlooks up a shortcut calleddocker). Rewritten as one shortcut withsubcommands:, plus a short paragraph documenting the first-token naming rule and how subcommand args compose (args:of the shortcut, then the subcommand's name, then the subcommand'sargs:). Verified by running the resolution code on the new YAML:/mod tidy->go mod tidy,/docker build->docker build -t myapp .,/docker run->docker run -p 8080:8080 myapp.custom-docker.yamlexample the issue cites had the subcommand's own name duplicated inargs:, which resolved todocker build build ...(the loader appends the subcommand name automatically). Dropped the duplicated- build/- runentries so the README example matches the guide and actually runs.custom-*.yaml-LoadCustomShortcuts(internal/presentation/shortcuts/custom.go) loads every*.yamlinshortcuts/(that is how the seededgit.yamlandscm.yamlload). The real pitfall,.ymlfiles not being picked up, is now documented./agentssupportslist|add|removeonly (the seededa2a.yamlincmd/init/init.go);infer agentshas noenable/disablesubcommand (cmd/agents/agents.go)./install-opentaskno longer runs an interactive wizard, pre-scans for.pemfiles or generates.github/workflows/infer.yml. It takes[owner/repo] [extra context...]and sends an install task to the chat agent (internal/presentation/shortcuts/install_opentask.go), which creates or updates.github/workflows/tasks.ymlon an install branch and opens (or updates) a pull request (InstallChatPromptininternal/github/setup/install_prompt.go).ListModelsininternal/conversation/model.goviaIsChatCapableModalitiesininternal/platform/models/context.go); non-chat models can appear as view-only rows in the picker but cannot be selected./initprompt lives inprompts.yamlunderinit.prompt(envINFER_PROMPTS_INIT_PROMPT,config/prompts.go), not inconfig.yaml.Docs-only change: no user-facing behavior was altered, so no docs ticket is needed.
Side observation (out of scope here, not changed): the seeded
scm.yaml(createSCMShortcutsFileincmd/init/init.go) repeats the gh argument in the subcommandargs:, so/scm issuesresolves togh issues issue list ..., whichghrejects. Tracked in a follow-up issue.