build(deps): update to latest

This commit is contained in:
ayn2op 2026-08-21 23:26:47 -04:00
parent 764a9b3775
commit 774e4059df
6 changed files with 55 additions and 20 deletions

8
go.mod
View file

@ -13,8 +13,8 @@ require (
github.com/BurntSushi/toml v1.6.0
github.com/alecthomas/chroma/v2 v2.27.0
github.com/andybalholm/brotli v1.2.2
github.com/ayn2op/arikawa/v3 v3.0.0-20260818212803-ea226484f0f9
github.com/ayn2op/ningen/v3 v3.0.1-0.20260821043610-d6e619f1798e
github.com/ayn2op/arikawa/v3 v3.0.0-20260822021902-294d139960c2
github.com/ayn2op/ningen/v3 v3.0.1-0.20260822030632-b96960d87677
github.com/ayn2op/tview v0.0.0-20260821041152-0e033858692a
github.com/bogdanfinn/fhttp v0.6.8
github.com/bogdanfinn/tls-client v1.15.1
@ -29,7 +29,7 @@ require (
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/yuin/goldmark v1.8.5
github.com/zalando/go-keyring v0.2.8
golang.design/x/clipboard v0.8.0
golang.design/x/clipboard v0.9.0
)
require (
@ -60,7 +60,7 @@ require (
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/exp/shiny v0.0.0-20260820142414-ca536658362e // indirect
golang.org/x/image v0.45.0 // indirect
golang.org/x/mobile v0.0.0-20260820023541-8e8303b9da6c // indirect
golang.org/x/mobile v0.0.0-20260821190718-4776eadac327 // indirect
golang.org/x/net v0.58.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/term v0.45.0 // indirect

16
go.sum
View file

@ -10,10 +10,10 @@ github.com/alecthomas/repr v0.5.2 h1:SU73FTI9D1P5UNtvseffFSGmdNci/O6RsqzeXJtP0Qs
github.com/alecthomas/repr v0.5.2/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
github.com/andybalholm/brotli v1.2.2 h1:HzTuoo2ErYQqf5qvcJInB8uvqSVxRttzkFexPWtnceM=
github.com/andybalholm/brotli v1.2.2/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
github.com/ayn2op/arikawa/v3 v3.0.0-20260818212803-ea226484f0f9 h1:aCFnS+/kF7Yv/Vqb/Ax+1ZQ7l9OT7LB2Q3r7KHBqJf0=
github.com/ayn2op/arikawa/v3 v3.0.0-20260818212803-ea226484f0f9/go.mod h1:O0QAm4VBLKBF01sofDEsAHGfD8+Tk8iWNYWksojTt6A=
github.com/ayn2op/ningen/v3 v3.0.1-0.20260821043610-d6e619f1798e h1:RhlLpkNzQfVXDE5k35fy9HnxQVoJx0dfyn6Qqin1e7I=
github.com/ayn2op/ningen/v3 v3.0.1-0.20260821043610-d6e619f1798e/go.mod h1:I1sTJd9BjXz2oJZDP1yEWwZ0OWeTrqB79AqLgGH0LWA=
github.com/ayn2op/arikawa/v3 v3.0.0-20260822021902-294d139960c2 h1:+c9FmGMnr8BwIykn5nxNlJFW1hHJY2ojyxzQlRn+8J8=
github.com/ayn2op/arikawa/v3 v3.0.0-20260822021902-294d139960c2/go.mod h1:C7NGoHHt0MQH/plbA9ly4YUQwG0v+n0XdgXmdEPoRpU=
github.com/ayn2op/ningen/v3 v3.0.1-0.20260822030632-b96960d87677 h1:VpX+moVq1YUHzQbFR5FbyL+ioYjZVmTyXudBIw3KNSo=
github.com/ayn2op/ningen/v3 v3.0.1-0.20260822030632-b96960d87677/go.mod h1:VyJr7bsyJmVAa0AUCSRaA5qBh6h6OER+5Yxhl0K5xs4=
github.com/ayn2op/tview v0.0.0-20260821041152-0e033858692a h1:325ZB3uIaH7DjxeGwpSVQBcDo7DgrbHow7NGvj6DNXc=
github.com/ayn2op/tview v0.0.0-20260821041152-0e033858692a/go.mod h1:iFzkW7DBltCaeLMR9SvXVUAw/zgKIbgE8JaUU8W8crk=
github.com/bdandy/go-errors v1.2.2 h1:WdFv/oukjTJCLa79UfkGmwX7ZxONAihKu4V0mLIs11Q=
@ -105,8 +105,8 @@ go.uber.org/mock v0.5.2 h1:LbtPTcP8A5k9WPXj54PPPbjcI4Y6lhyOZXn+VS7wNko=
go.uber.org/mock v0.5.2/go.mod h1:wLlUxC2vVTPTaE3UD51E0BGOAElKrILxhVSDYQLld5o=
go4.org v0.0.0-20260112195520-a5071408f32f h1:ziUVAjmTPwQMBmYR1tbdRFJPtTcQUI12fH9QQjfb0Sw=
go4.org v0.0.0-20260112195520-a5071408f32f/go.mod h1:ZRJnO5ZI4zAwMFp+dS1+V6J6MSyAowhRqAE+DPa1Xp0=
golang.design/x/clipboard v0.8.0 h1:6VEcH28wwcSgKc+vnxHHDWiRjrakTQIAJnPUrt3aOgg=
golang.design/x/clipboard v0.8.0/go.mod h1:s0pwrtA3Q9fgnVtGDmP5ZK/pp55cQKB23esKsjwWhWM=
golang.design/x/clipboard v0.9.0 h1:DIN7Fur+vO3WM22WlSx7aXmYmqdvjE2OAkoPuMZ9OTA=
golang.design/x/clipboard v0.9.0/go.mod h1:s0pwrtA3Q9fgnVtGDmP5ZK/pp55cQKB23esKsjwWhWM=
golang.design/x/x11 v0.2.0 h1:Uiwu2guGihsJX/ZCzpoDPFz5gR/Qntm08mvoBCmRydo=
golang.design/x/x11 v0.2.0/go.mod h1:/5q1mFkdc1rL8mvB7DsQFi6as4tIkBv4FXjcP07mrkE=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
@ -117,8 +117,8 @@ golang.org/x/exp/shiny v0.0.0-20260820142414-ca536658362e h1:mgkLKe+BiqOosZJGpeE
golang.org/x/exp/shiny v0.0.0-20260820142414-ca536658362e/go.mod h1:6E/1vVnyETZOZ3VE5X+A7fJ3zHILeAEV+WO0ZGk3iwA=
golang.org/x/image v0.45.0 h1:FMb1nTbH5H9vF55SriQHgFw5GnNL9Jg6L25BwXKzhB0=
golang.org/x/image v0.45.0/go.mod h1:n62x/7RqlwXDvGsSU4u6IUTUf6KghUZ9Bt7cG/T9Fx4=
golang.org/x/mobile v0.0.0-20260820023541-8e8303b9da6c h1:7EniRn2M+iJ4/2OQ/WpcHY8t5Ntv4aa1qzjh0h9FZ5A=
golang.org/x/mobile v0.0.0-20260820023541-8e8303b9da6c/go.mod h1:jMwjxoDSx9jqhNaZqPnr6nnKzb7cs+Dy1Czk7wdX+R8=
golang.org/x/mobile v0.0.0-20260821190718-4776eadac327 h1:D/wiQ6AoTYjDtSD0HMPhU8O40NUP8EF0UmDhIYCnG4I=
golang.org/x/mobile v0.0.0-20260821190718-4776eadac327/go.mod h1:D9q8rgXu13Q3uuM+Vuy6F/DG1WF/giTPLtqQ9on5B1M=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=

View file

@ -77,8 +77,20 @@ func newComposer(cfg *config.Config, chat *Model) *composer {
c.
SetPlaceholder(tview.NewLine(tview.NewSegment("Select a channel to start chatting", tcell.StyleDefault.Dim(true)))).
SetClipboard(
func(s string) { _ = clipboard.Write(clipboard.FmtText, []byte(s)) },
func() string { return string(clipboard.Read(clipboard.FmtText)) },
func(s string) {
if _, err := clipboard.Write(context.Background(), clipboard.FmtText, []byte(s)); err != nil {
slog.Error("failed to write to clipboard", "err", err)
return
}
},
func() string {
data, err := clipboard.Read(context.Background(), clipboard.FmtText)
if err != nil {
slog.Error("failed to read from clipboard", "err", err)
return ""
}
return string(data)
},
).
SetDisabled(true)
@ -222,7 +234,11 @@ type imagePastedMsg []byte
func pasteImage() tview.Cmd {
return func() tview.Msg {
data := clipboard.Read(clipboard.FmtImage)
data, err := clipboard.Read(context.Background(), clipboard.FmtImage)
if err != nil {
slog.Error("failed to read from clipboard", "err", err)
return nil
}
return imagePastedMsg(data)
}
}

View file

@ -1,6 +1,7 @@
package chat
import (
"context"
"fmt"
"log/slog"
@ -372,7 +373,10 @@ func (gt *guildsTree) yankID() tview.Cmd {
// discord.Snowflake (discord.GuildID and discord.ChannelID) have the String method.
if id, ok := node.Reference().(fmt.Stringer); ok {
return func() tview.Msg {
_ = clipboard.Write(clipboard.FmtText, []byte(id.String()))
if _, err := clipboard.Write(context.Background(), clipboard.FmtText, []byte(id.String())); err != nil {
slog.Error("failed to write to clipboard", "err", err)
return nil
}
return nil
}
}

View file

@ -1027,7 +1027,10 @@ func (ml *messagesList) yankMessageID() tview.Cmd {
}
return func() tview.Msg {
_ = clipboard.Write(clipboard.FmtText, []byte(selectedMessage.ID.String()))
if _, err := clipboard.Write(context.Background(), clipboard.FmtText, []byte(selectedMessage.ID.String())); err != nil {
slog.Error("failed to write to clipboard", "err", err)
return nil
}
return nil
}
}
@ -1039,7 +1042,10 @@ func (ml *messagesList) yankContent() tview.Cmd {
}
return func() tview.Msg {
_ = clipboard.Write(clipboard.FmtText, []byte(selectedMessage.Content))
if _, err := clipboard.Write(context.Background(), clipboard.FmtText, []byte(selectedMessage.Content)); err != nil {
slog.Error("failed to write to clipboard", "err", err)
return nil
}
return nil
}
}
@ -1051,7 +1057,10 @@ func (ml *messagesList) yankURL() tview.Cmd {
}
return func() tview.Msg {
_ = clipboard.Write(clipboard.FmtText, []byte(selectedMessage.URL()))
if _, err := clipboard.Write(context.Background(), clipboard.FmtText, []byte(selectedMessage.URL())); err != nil {
slog.Error("failed to write to clipboard", "err", err)
return nil
}
return nil
}
}

View file

@ -1,6 +1,9 @@
package login
import (
"context"
"log/slog"
"github.com/ayn2op/tview"
"golang.design/x/clipboard"
)
@ -9,7 +12,10 @@ type copyErrorMsg string
func setClipboard(content string) tview.Cmd {
return func() tview.Msg {
_ = clipboard.Write(clipboard.FmtText, []byte(content))
if _, err := clipboard.Write(context.Background(), clipboard.FmtText, []byte(content)); err != nil {
slog.Error("failed to write to clipboard", "err", err)
return nil
}
return nil
}
}