feat(cli): add API v2 AgentInstance workflows - #2559
Conversation
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
This reverts commit 1e6d4d9. Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
EItanya
left a comment
There was a problem hiding this comment.
Initial review, I'm still looking for more simplifications, but this is a good start
There was a problem hiding this comment.
This API is still technically supported. Is there a way we can retain this functionality?
There was a problem hiding this comment.
tracing this again, the wizard was only used by the removed add-mcp command and wrote to the legacy kagent.yaml project workflow. From my understanding, I think it should remain deleted, with AgentTemplate manifests as the mcp binding but open to suggestions
| } | ||
|
|
||
| func prepareCreateCfg(cfg *CreateCfg) error { | ||
| if cfg.Harness == "" { |
There was a problem hiding this comment.
The following just merged: 76cde41
We can get this out of clientside code
There was a problem hiding this comment.
Yep, done. I removed the client-side create/delete validation and left that to the shared Protovalidate interceptor. The CLI just generates a request ID when one is not supplied.
There was a problem hiding this comment.
Can we please delete this file and viper, it's just complicated.
There was a problem hiding this comment.
I removed the internal config package and Viper/ishell from the CLI. Root flags now pass through a small explicit connection options struct. Viper still shows up indirectly through the lint tooling, but the CLI no longer uses it.
There was a problem hiding this comment.
note that the code line count decreased but added some file change churn, fyi to reviewers
…-cli-pr1-split Signed-off-by: Cody Hartsook <cody.hartsook@solo.io> # Conflicts: # go/core/v2/a2agateway/gateway.go # go/core/v2/a2agateway/gateway_test.go
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Summary
mcpNote that of the 64 files changed, 35 were removals from the legacy CLI project workflow ; no server-side APIs or controllers are removed.
This is the first of three related CLI PRs:
applyand establish the CLI authentication seam.Suspend and resume are deliberately not exposed by this CLI work.
Related to #2366 and the K13 CLI cutover in
docs/plans/api-v2-execution-plan.md.Test plan
make -C go testgo test ./core/cli/...make -C go lintmake -C go build