diff --git a/cmd/project.go b/cmd/project.go index f60d3e09..b1ccd135 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -458,7 +458,7 @@ Examples: } projectDir = absDir } else { - projectDir = tui.InputWithPlaceholder(logger, "What directory should the project be created in?", "The directory to create the project in", projectDir) + projectDir = tui.InputWithPathCompletion(logger, "What directory should the project be created in?", "The directory to create the project in", projectDir) } force, _ := cmd.Flags().GetBool("force") diff --git a/go.mod b/go.mod index 2bda1397..1176d9d6 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.24.2 require ( github.com/Masterminds/semver v1.5.0 - github.com/agentuity/go-common v1.0.39 + github.com/agentuity/go-common v1.0.47 github.com/agentuity/mcp-golang/v2 v2.0.2 github.com/bep/debounce v1.2.1 github.com/bmatcuk/doublestar/v4 v4.8.1 diff --git a/go.sum b/go.sum index 62ad6e40..3b050756 100644 --- a/go.sum +++ b/go.sum @@ -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.39 h1:SZEn351+2JMdYBA/aoOUoSuPI8lTDSIKICnu17mrYo4= -github.com/agentuity/go-common v1.0.39/go.mod h1:cy1EPYpZUkp3JSMgTb+Sa3sLnS7vQQupj/RwO4An6L4= +github.com/agentuity/go-common v1.0.47 h1:xpR3JO+NseSLPbr/8h3OwjbdMAVeoaPKmYUbR1QLAgQ= +github.com/agentuity/go-common v1.0.47/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= diff --git a/internal/util/api.go b/internal/util/api.go index 609ff85f..313537f7 100644 --- a/internal/util/api.go +++ b/internal/util/api.go @@ -234,7 +234,7 @@ var testInside bool func TransformUrl(urlString string) string { // NOTE: these urls are special cases for local development inside a container if strings.Contains(urlString, "api.agentuity.dev") || strings.Contains(urlString, "localhost:") || strings.Contains(urlString, "127.0.0.1:") { - if sys.Exists("/.dockerenv") || sys.Exists("/proc/1/cgroup") || testInside { + if sys.IsRunningInsideDocker() || testInside { if strings.HasPrefix(urlString, "https://api.agentuity.dev") { u, _ := url.Parse(urlString) u.Scheme = "http"