Default amctl login to production URL#994
Conversation
📝 WalkthroughWalkthroughThe login command now defaults to connecting to the production Agent Manager platform when ChangesLogin Command Default URL
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Dependency Validation ResultsDependency name: github.com/charmbracelet/huh Next Steps
|
a817379 to
68cdf9b
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cli/go.mod`:
- Line 6: Dependency `github.com/charmbracelet/huh v1.0.0` in go.mod is failing
the repository's dependency-approval gate; resolve by adding the exact module
and version (`github.com/charmbracelet/huh v1.0.0`) to the repository's
approved-modules allowlist (or the central allowlist used by the `Validate Go
Dependencies` pipeline), or replace/remove the dependency with an
already-approved alternative, then re-run the pipeline to confirm the gate
passes; coordinate with the gate owners if you cannot add the module yourself.
In `@cli/pkg/tui/agent_create.go`:
- Around line 109-118: The validator trims input only for checking but doesn't
persist the normalized value, so leading/trailing spaces can slip into
CreateOptions; update the binding or applyAgentCreateInput to normalize fields
before use — trim strings like in.Name (and other core fields copied into
CreateOptions) when assigning to opts (or set the bound variable itself after
Validate), and ensure validate(opts) operates on trimmed values (e.g., reference
in.Name, applyAgentCreateInput, CreateOptions, validate) so checks for empty/"/"
match the actual value used in requests.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 4fc71d5e-2456-4c84-94d4-cc1921de5e60
⛔ Files ignored due to path filters (1)
cli/go.sumis excluded by!**/*.sum
📒 Files selected for processing (10)
cli/go.modcli/pkg/cmd/agent/create/create.gocli/pkg/cmd/agent/create/create_test.gocli/pkg/cmd/agent/create/interactive.gocli/pkg/cmd/agent/create/interactive_test.gocli/pkg/cmd/login.gocli/pkg/cmd/login_test.gocli/pkg/tui/agent_create.gocli/pkg/tui/tui.godocumentation/docs/reference/cli/login.mdx
| go 1.25.7 | ||
|
|
||
| require ( | ||
| github.com/charmbracelet/huh v1.0.0 |
There was a problem hiding this comment.
Dependency-approval gate is failing for this module.
The Validate Go Dependencies pipeline reports github.com/charmbracelet/huh as not in the approved module list, which will block the merge. Either add the resolved (valid) version to the repository's approved-modules allowlist or coordinate with the owners of that gate before merging.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@cli/go.mod` at line 6, Dependency `github.com/charmbracelet/huh v1.0.0` in
go.mod is failing the repository's dependency-approval gate; resolve by adding
the exact module and version (`github.com/charmbracelet/huh v1.0.0`) to the
repository's approved-modules allowlist (or the central allowlist used by the
`Validate Go Dependencies` pipeline), or replace/remove the dependency with an
already-approved alternative, then re-run the pipeline to confirm the gate
passes; coordinate with the gate owners if you cannot add the module yourself.
68cdf9b to
fe9ef98
Compare
Purpose
Make
amctl loginconnect to Agent Platform, the SaaS offering, when--urlis omitted.Approach
--urlflag to the Agent Platform endpoint without a trailing slash.runLoginfor direct callers.--urlvalues as overrides for Agent Manager instances, includinghttp://localhost:9000for local open-source installs.Automation tests
cd cli && go test ./....make -C documentation build.git diff --check upstream/main...HEAD.