Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<br />
<a href="https://github.com/agentuity/cli/releases"><img alt="Release version" src="https://img.shields.io/github/v/release/agentuity/cli"></a>
<a href="https://github.com/agentuity/sdk-js/blob/main/README.md"><img alt="License" src="https://badgen.now.sh/badge/license/Apache-2.0"></a>
<a href="https://discord.gg/vtn3hgUfuc"><img alt="Join the community on Discord" src="https://img.shields.io/discord/1332974865371758646.svg?style=flat"></a>
<a href="https://discord.gg/agentuity"><img alt="Join the community on Discord" src="https://img.shields.io/discord/1332974865371758646.svg?style=flat"></a>
</div>
</div>

Expand Down
17 changes: 1 addition & 16 deletions cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"os"
"os/signal"
"strings"
"syscall"
"time"

Expand Down Expand Up @@ -67,11 +66,7 @@ Examples:
errsystem.New(errsystem.ErrInvalidConfiguration, err, errsystem.WithUserMessage("Failed to validate project (%s) using the provided API key from the .env file in %s. This is most likely due to the API key being invalid or the project has been deleted.\n\nYou can import this project using the following command:\n\n"+tui.Command("project import"), theproject.Project.ProjectId, dir), errsystem.WithContextMessage(fmt.Sprintf("Failed to get project: %s", err))).ShowErrorAndExit()
}

force, _ := cmd.Flags().GetBool("force")
if !tui.HasTTY {
force = true
}
_, project = envutil.ProcessEnvFiles(ctx, log, dir, theproject.Project, project, theproject.APIURL, apiKey, force)
_, project = envutil.ProcessEnvFiles(ctx, log, dir, theproject.Project, project, theproject.APIURL, apiKey, false)

orgId := project.OrgId

Expand All @@ -81,12 +76,6 @@ Examples:
log.Fatal("failed to find available port: %s", err)
}

serverAddr, _ := cmd.Flags().GetString("server")

if strings.Contains(apiUrl, "agentuity.io") && !strings.Contains(serverAddr, "localhost") {
serverAddr = "localhost:12001"
}

server, err := dev.New(dev.ServerArgs{
Ctx: ctx,
Logger: log,
Expand All @@ -99,7 +88,6 @@ Examples:
Version: Version,
UserId: userId,
Port: port,
ServerAddr: serverAddr,
})
if err != nil {
log.Fatal("failed to create live dev connection: %s", err)
Expand Down Expand Up @@ -281,7 +269,4 @@ func init() {
rootCmd.AddCommand(devCmd)
devCmd.Flags().StringP("dir", "d", ".", "The directory to run the development server in")
devCmd.Flags().Int("port", 0, "The port to run the development server on (uses project default if not provided)")
devCmd.Flags().String("server", "echo.agentuity.cloud", "the echo server to connect to")
devCmd.Flags().MarkHidden("server")
devCmd.Flags().Bool("force", false, "Force the processing of environment files")
}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Dashboard: %s`,
tui.Muted("Build, manage and deploy AI agents"),
Version,
tui.Link("https://agentuity.dev"),
tui.Link("https://discord.gg/vtn3hgUfuc"),
tui.Link("https://discord.gg/agentuity"),
tui.Link("https://app.agentuity.com"),
))
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.24.2

require (
github.com/Masterminds/semver v1.5.0
github.com/agentuity/go-common v1.0.60
github.com/agentuity/go-common v1.0.64
github.com/agentuity/mcp-golang/v2 v2.0.2
github.com/bep/debounce v1.2.1
github.com/bmatcuk/doublestar/v4 v4.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
github.com/ProtonMail/go-crypto v1.1.5 h1:eoAQfK2dwL+tFSFpr7TbOaPNUbPiJj4fLYwwGE1FQO4=
github.com/ProtonMail/go-crypto v1.1.5/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE=
github.com/agentuity/go-common v1.0.60 h1:r9uLZrYnNasnVxsTGju7ktP9+A5D3j13ald8H3Z7AMQ=
github.com/agentuity/go-common v1.0.60/go.mod h1:cy1EPYpZUkp3JSMgTb+Sa3sLnS7vQQupj/RwO4An6L4=
github.com/agentuity/go-common v1.0.64 h1:E7PRLFcrPDd32doxSzI2reCpaHtHr3mcSmVl9yz+Ffc=
github.com/agentuity/go-common v1.0.64/go.mod h1:cy1EPYpZUkp3JSMgTb+Sa3sLnS7vQQupj/RwO4An6L4=
github.com/agentuity/mcp-golang/v2 v2.0.2 h1:wZqS/aHWZsQoU/nd1E1/iMsVY2dywWT9+PFlf+3YJxo=
github.com/agentuity/mcp-golang/v2 v2.0.2/go.mod h1:U105tZXyTatxxOBlcObRgLb/ULvGgT2DJ1nq/8++P6Q=
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
Expand Down
6 changes: 0 additions & 6 deletions internal/dev/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ type Server struct {
tlsCertificate *tls.Certificate
conn *tls.Conn
wg sync.WaitGroup
serverAddr string
cleanup func()

// Connection state
Expand All @@ -86,7 +85,6 @@ type ServerArgs struct {
UserId string
Version string
Port int
ServerAddr string
}

type ConnectionResponse struct {
Expand Down Expand Up @@ -214,9 +212,6 @@ func (s *Server) connect(initial bool) {
tlsConfig.NextProtos = []string{"h2"}

hostname := s.hostname
if hostname == "" {
hostname = s.serverAddr
}

if strings.Contains(hostname, "localhost") || strings.Contains(hostname, "127.0.0.1") {
tlsConfig.InsecureSkipVerify = true
Expand Down Expand Up @@ -626,7 +621,6 @@ func New(args ServerArgs) (*Server, error) {
apiclient: util.NewAPIClient(context.Background(), pendingLogger, args.APIURL, args.APIKey),
pendingLogger: pendingLogger,
connected: make(chan string, 1),
serverAddr: args.ServerAddr,
}

go server.connect(true)
Expand Down
2 changes: 1 addition & 1 deletion internal/dev/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (m *model) View() string {
"", "",
tui.Warning("To get help or share your feedback, join our Discord community:"),
"",
tui.Link("https://discord.gg/vtn3hgUfuc"),
tui.Link("https://discord.gg/agentuity"),
"",
)
} else if m.selectedLog != nil {
Expand Down
3 changes: 2 additions & 1 deletion internal/envutil/envutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ func HandleMissingProjectEnvs(ctx context.Context, logger logger.Logger, le []en
suffix = "them"
title = fmt.Sprintf("There are %d environment variables from %s that are not set in the project.", len(keyvalue), tui.Bold(".env"))
}
force = tui.Ask(logger, title+"\nWould you like to set "+suffix+" now?", true)
fmt.Println(title)
force = tui.Ask(logger, "Would you like to set "+suffix+" now?", true)
}
if force {
for key, val := range keyvalue {
Expand Down
2 changes: 1 addition & 1 deletion internal/errsystem/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
var Version string = "dev"

const baseDocURL = "https://agentuity.dev/errors/%s"
const discordURL = "https://discord.gg/vtn3hgUfuc"
const discordURL = "https://discord.gg/agentuity"

type crashReport struct {
ID string `json:"id"`
Expand Down
Loading