From e7615fb30b8906855a91e1231421a27b0eca533d Mon Sep 17 00:00:00 2001 From: Robin Diddams Date: Mon, 20 Oct 2025 15:43:44 -0500 Subject: [PATCH 1/2] Use new url for devmode connection --- cmd/run.go | 9 +++++---- internal/util/api.go | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/run.go b/cmd/run.go index 0c95cf62..f28f2ab7 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -21,9 +21,10 @@ import ( ) var runCmd = &cobra.Command{ - Use: "run", - Args: cobra.NoArgs, - Short: "Run the production server", + Hidden: true, // not working yet + Use: "run", + Args: cobra.NoArgs, + Short: "Run the production server", Long: `Run the production server for connecting to the Agentuity Cloud. This command starts a local production server that connects to the Agentuity Cloud @@ -171,7 +172,7 @@ func init() { rootCmd.AddCommand(runCmd) runCmd.Flags().StringP("dir", "d", ".", "The directory to run the server in") runCmd.Flags().Int("port", 0, "The port to run the server on (uses project default if not provided)") - runCmd.Flags().String("gravity-url", "grpc://gravity.agentuity.com", "The URL to the gravity server") + runCmd.Flags().String("gravity-url", "grpc://devmode.agentuity.com", "The URL to the devmode/gravity server") runCmd.Flags().String("transport-url", "https://agentuity.ai", "The URL to the transport server") runCmd.Flags().MarkHidden("gravity-url") runCmd.Flags().MarkHidden("transport-url") diff --git a/internal/util/api.go b/internal/util/api.go index a8c2062e..41ec32c7 100644 --- a/internal/util/api.go +++ b/internal/util/api.go @@ -279,7 +279,7 @@ func GetURLs(logger logger.Logger) CLIUrls { appUrl = "https://app.agentuity.io" } if gravityUrl == "" { - gravityUrl = "grpc://gravity.agentuity.com" + gravityUrl = "grpc://devmode.agentuity.com" } if apiUrl == "https://api.agentuity.com" && transportUrl != "https://agentuity.ai" { logger.Debug("switching transport url to production since the api url is production") From dc8ea00906624d4e0a4ad6d1768d210f895ed025 Mon Sep 17 00:00:00 2001 From: Robin Diddams Date: Mon, 20 Oct 2025 15:51:58 -0500 Subject: [PATCH 2/2] use prod for run --- cmd/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index f28f2ab7..486f938a 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -172,7 +172,7 @@ func init() { rootCmd.AddCommand(runCmd) runCmd.Flags().StringP("dir", "d", ".", "The directory to run the server in") runCmd.Flags().Int("port", 0, "The port to run the server on (uses project default if not provided)") - runCmd.Flags().String("gravity-url", "grpc://devmode.agentuity.com", "The URL to the devmode/gravity server") + runCmd.Flags().String("gravity-url", "grpc://gravity.agentuity.com", "The URL to the gravity server") runCmd.Flags().String("transport-url", "https://agentuity.ai", "The URL to the transport server") runCmd.Flags().MarkHidden("gravity-url") runCmd.Flags().MarkHidden("transport-url")