Skip to content

Commit eb4b96e

Browse files
committed
fix: bump cmd module to allow anonymous struct pointers to propagate args
Fixes a regression caused by switching from an embedded config pointer to a struct value. Also update acorn-io modules to their new gptscript-ai org names and bump the tui. Signed-off-by: Nick Hale <[email protected]>
1 parent 6ae4724 commit eb4b96e

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ go 1.22.3
55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.7
77
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69
8-
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d
9-
github.com/acorn-io/cmd v0.0.0-20240404013709-34f690bde37b
108
github.com/adrg/xdg v0.4.0
119
github.com/chzyer/readline v1.5.1
1210
github.com/docker/cli v26.0.0+incompatible
@@ -15,8 +13,10 @@ require (
1513
github.com/getkin/kin-openapi v0.124.0
1614
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
1715
github.com/google/uuid v1.6.0
16+
github.com/gptscript-ai/broadcaster v0.0.0-20240625175512-c43682019b86
1817
github.com/gptscript-ai/chat-completion-client v0.0.0-20240531200700-af8e7ecf0379
19-
github.com/gptscript-ai/tui v0.0.0-20240618230843-2b5961f3341b
18+
github.com/gptscript-ai/cmd v0.0.0-20240625175447-4250b42feb7d
19+
github.com/gptscript-ai/tui v0.0.0-20240625175717-1e6eca7a66c1
2020
github.com/hexops/autogold/v2 v2.2.1
2121
github.com/hexops/valast v1.4.4
2222
github.com/jaytaylor/html2text v0.0.0-20230321000545-74c2419ad056

go.sum

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ github.com/MarvinJWendt/testza v0.5.2 h1:53KDo64C1z/h/d/stCYCPY69bt/OSwjq5KpFNwi
4040
github.com/MarvinJWendt/testza v0.5.2/go.mod h1:xu53QFE5sCdjtMCKk8YMQ2MnymimEctc4n3EjyIYvEY=
4141
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
4242
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
43-
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d h1:hfpNQkJ4I2b8+DbMr8m97gG67ku0uPsMzUfskVu3cHU=
44-
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d/go.mod h1:WF6FYrEqW0+ZtY5OKb21JhSL0aeL5VJoVrm+u0d4gOE=
45-
github.com/acorn-io/cmd v0.0.0-20240404013709-34f690bde37b h1:VzGEGrJn54UcsEvTqcpJj9USv7vc6TIxQGZVS0Ff304=
46-
github.com/acorn-io/cmd v0.0.0-20240404013709-34f690bde37b/go.mod h1:9jrYuzTJCv6QgGKl5gbhKqhG3kke31PmUE2KruBHzpg=
4743
github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls=
4844
github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E=
4945
github.com/alecthomas/assert/v2 v2.2.1 h1:XivOgYcduV98QCahG8T5XTezV5bylXe+lBxLG2K2ink=
@@ -169,12 +165,16 @@ github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0=
169165
github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w=
170166
github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
171167
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
168+
github.com/gptscript-ai/broadcaster v0.0.0-20240625175512-c43682019b86 h1:m9yLtIEd0z1ia8qFjq3u0Ozb6QKwidyL856JLJp6nbA=
169+
github.com/gptscript-ai/broadcaster v0.0.0-20240625175512-c43682019b86/go.mod h1:lK3K5EZx4dyT24UG3yCt0wmspkYqrj4D/8kxdN3relk=
172170
github.com/gptscript-ai/chat-completion-client v0.0.0-20240531200700-af8e7ecf0379 h1:vYnXoIyCXzaCEw0sYifQ4bDpsv3/fO/dZ2suEsTwCIo=
173171
github.com/gptscript-ai/chat-completion-client v0.0.0-20240531200700-af8e7ecf0379/go.mod h1:7P/o6/IWa1KqsntVf68hSnLKuu3+xuqm6lYhch1w4jo=
172+
github.com/gptscript-ai/cmd v0.0.0-20240625175447-4250b42feb7d h1:sKf7T7twhGXs6AVbvD9pKDVewykkwSAPwEpmIEQIR/4=
173+
github.com/gptscript-ai/cmd v0.0.0-20240625175447-4250b42feb7d/go.mod h1:DJAo1xTht1LDkNYFNydVjTHd576TC7MlpsVRl3oloVw=
174174
github.com/gptscript-ai/go-gptscript v0.0.0-20240625134437-4b83849794cc h1:ABV7VAK65YBkqL7VlNp5ryVXnRqkKQ+U/NZfUO3ypqA=
175175
github.com/gptscript-ai/go-gptscript v0.0.0-20240625134437-4b83849794cc/go.mod h1:Dh6vYRAiVcyC3ElZIGzTvNF1FxtYwA07BHfSiFKQY7s=
176-
github.com/gptscript-ai/tui v0.0.0-20240618230843-2b5961f3341b h1:OJfmpDQ/6ffz5P4UdJJEd5xeqo2dfWnsg1YZLDqJWYo=
177-
github.com/gptscript-ai/tui v0.0.0-20240618230843-2b5961f3341b/go.mod h1:ZlyM+BRiD6mV04w+Xw2mXP1VKGEUbn8BvwrosWlplUo=
176+
github.com/gptscript-ai/tui v0.0.0-20240625175717-1e6eca7a66c1 h1:sx/dJ0IRh3P9Ehr1g1TQ/jEw83KISmQyjrssVgPGUbE=
177+
github.com/gptscript-ai/tui v0.0.0-20240625175717-1e6eca7a66c1/go.mod h1:R33cfOnNaqsEn9es5jLKR39wvDyHvsIVgeTMNqtzCb8=
178178
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
179179
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
180180
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=

pkg/cli/credential.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"text/tabwriter"
99
"time"
1010

11-
cmd2 "github.com/acorn-io/cmd"
11+
cmd2 "github.com/gptscript-ai/cmd"
1212
"github.com/gptscript-ai/gptscript/pkg/cache"
1313
"github.com/gptscript-ai/gptscript/pkg/config"
1414
"github.com/gptscript-ai/gptscript/pkg/credentials"

pkg/cli/gptscript.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strconv"
1212
"strings"
1313

14-
"github.com/acorn-io/cmd"
1514
"github.com/fatih/color"
15+
"github.com/gptscript-ai/cmd"
1616
"github.com/gptscript-ai/gptscript/pkg/assemble"
1717
"github.com/gptscript-ai/gptscript/pkg/auth"
1818
"github.com/gptscript-ai/gptscript/pkg/builtin"
@@ -84,7 +84,7 @@ func New() *cobra.Command {
8484
&Parse{},
8585
&Fmt{},
8686
&SDKServer{
87-
GPTScript: *root,
87+
GPTScript: root,
8888
},
8989
)
9090

pkg/cli/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cli
33
import (
44
"os"
55

6-
"github.com/acorn-io/cmd"
6+
"github.com/gptscript-ai/cmd"
77
"github.com/gptscript-ai/gptscript/pkg/daemon"
88
"github.com/gptscript-ai/gptscript/pkg/mvl"
99
)

pkg/cli/sdk_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
type SDKServer struct {
13-
GPTScript
13+
*GPTScript
1414
}
1515

1616
func (c *SDKServer) Customize(cmd *cobra.Command) {

pkg/sdkserver/monitor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync"
66
"time"
77

8-
"github.com/acorn-io/broadcaster"
8+
"github.com/gptscript-ai/broadcaster"
99
"github.com/gptscript-ai/gptscript/pkg/runner"
1010
gserver "github.com/gptscript-ai/gptscript/pkg/server"
1111
"github.com/gptscript-ai/gptscript/pkg/types"

pkg/sdkserver/routes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"sync"
1313
"time"
1414

15-
"github.com/acorn-io/broadcaster"
15+
"github.com/gptscript-ai/broadcaster"
1616
"github.com/gptscript-ai/gptscript/pkg/cache"
1717
gcontext "github.com/gptscript-ai/gptscript/pkg/context"
1818
"github.com/gptscript-ai/gptscript/pkg/gptscript"

pkg/sdkserver/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"syscall"
1414
"time"
1515

16-
"github.com/acorn-io/broadcaster"
1716
"github.com/google/uuid"
17+
"github.com/gptscript-ai/broadcaster"
1818
"github.com/gptscript-ai/gptscript/pkg/gptscript"
1919
"github.com/gptscript-ai/gptscript/pkg/mvl"
2020
"github.com/gptscript-ai/gptscript/pkg/runner"

0 commit comments

Comments
 (0)