DEVEX-695: Restore agent-first root discovery for bare godaddy#52
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Restores agent-first root discovery behavior for bare godaddy in the Rust CLI by upgrading cli-engine and registering curated root-level next actions so non-interactive invocations can return a discovery envelope instead of only clap help.
Changes:
- Bump
cli-enginedependency from0.1.2→0.1.3. - Register root “next actions” via
with_root_next_actions(...)for improved root discovery behavior. - Update
Cargo.lockto reflect the dependency graph changes from thecli-engineupgrade.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| rust/src/main.rs | Adds root next-actions registration for bare-command discovery flow. |
| rust/Cargo.toml | Updates cli-engine dependency version to 0.1.3. |
| rust/Cargo.lock | Updates resolved crate versions/checksums after dependency bump. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Drop the `godaddy ` prefix so the root discovery next-actions match the relative-path convention used by every other NextAction in the CLI (e.g. `application list`, `api search <query>`). Addresses Copilot review on #52.
jgowdy-godaddy
approved these changes
Jun 5, 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.
Addresses parity gap #2 from the PR #49 Rust-port review (DEVEX-695): the TypeScript CLI returned JSON discovery on bare
godaddy, but the Rust port rendered clap long-help text for the empty command path — an agent-first discovery regression.What this does
cli-engineto the published 0.1.3 (drops the temporary local path patch used during development).with_root_next_actionshook so baregodaddy:--output json) → a JSON discovery envelope ({ data: { description, version }, next_actions }),next_actionsare pointers to existing commands (auth status,env get,application list,tree) — the agent follows only what it needs, instead of one fat payload. The engine-side capability (and the curated-help / TTY-aware-output changes) shipped in cli-engine#13 → released as cli-engine 0.1.3.Behavior
godaddy(piped)godaddy(TTY)godaddy --output json/--jsonGODADDY_OUTPUT=json godaddyBase branch
Targets
rust-port(stacks on the open port PR #49), matching the convention from #50 (DEVEX-694). It will land onmainwith the rest of the port.Testing
cargo build/cargo test(114 pass) /cargo clippy --all-targets -- -D warnings/cargo fmt --checkall green against the published cli-engine 0.1.3. Manually verified the bare-godaddyJSON envelope (piped) and human help + suggested actions (--human).🤖 Generated with Claude Code