From f624717f0dd5994aeae70fc16ea730c0fd5f0a06 Mon Sep 17 00:00:00 2001 From: Kaien Date: Sun, 9 Aug 2026 22:42:13 +0300 Subject: [PATCH] chore(proto): consume chat proto Go module Co-authored-by: Cursor --- client.go | 2 +- go.mod | 3 ++- go.sum | 2 ++ history.go | 2 +- proto/l-ai-chat-proto | 2 +- subscription.go | 2 +- subscription_test.go | 2 +- 7 files changed, 9 insertions(+), 6 deletions(-) diff --git a/client.go b/client.go index 97f20b2..a3e3ed7 100644 --- a/client.go +++ b/client.go @@ -9,7 +9,7 @@ import ( "github.com/google/uuid" "google.golang.org/grpc" - pb "gitea.fe.kaien.ru/kaien/l-ai-chat-client-go/proto/l-ai-chat-proto" + pb "gitea.fe.kaien.ru/kaien/l-ai-chat-proto" ) type Client struct { diff --git a/go.mod b/go.mod index f43478b..e98c0fb 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module gitea.fe.kaien.ru/kaien/l-ai-chat-client-go go 1.25.0 require ( + gitea.fe.kaien.ru/kaien/l-ai-chat-proto v0.0.0-20260809194107-32d924f965c6 github.com/google/uuid v1.6.0 google.golang.org/grpc v1.70.0 - google.golang.org/protobuf v1.36.8 ) require ( @@ -13,4 +13,5 @@ require ( golang.org/x/sys v0.28.0 // indirect golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a // indirect + google.golang.org/protobuf v1.36.8 // indirect ) diff --git a/go.sum b/go.sum index 890be15..d3c144e 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +gitea.fe.kaien.ru/kaien/l-ai-chat-proto v0.0.0-20260809194107-32d924f965c6 h1:j7wfWjVUDEnTsvfR3T/cyta+hn/uIpamqosHJ7C2rWg= +gitea.fe.kaien.ru/kaien/l-ai-chat-proto v0.0.0-20260809194107-32d924f965c6/go.mod h1:U9NP13h7myIubtn0x3KwSkysPt6LWbjIuldnotXFrHs= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= diff --git a/history.go b/history.go index cbfe31e..f02542c 100644 --- a/history.go +++ b/history.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - pb "gitea.fe.kaien.ru/kaien/l-ai-chat-client-go/proto/l-ai-chat-proto" + pb "gitea.fe.kaien.ru/kaien/l-ai-chat-proto" ) type HistoryRequest struct { diff --git a/proto/l-ai-chat-proto b/proto/l-ai-chat-proto index 1c3ee2f..32d924f 160000 --- a/proto/l-ai-chat-proto +++ b/proto/l-ai-chat-proto @@ -1 +1 @@ -Subproject commit 1c3ee2ff136f068fe04361d4983027327c2698e2 +Subproject commit 32d924f965c625cf954dcca92970a1436f5a4ea1 diff --git a/subscription.go b/subscription.go index 92529d6..213829a 100644 --- a/subscription.go +++ b/subscription.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - pb "gitea.fe.kaien.ru/kaien/l-ai-chat-client-go/proto/l-ai-chat-proto" + pb "gitea.fe.kaien.ru/kaien/l-ai-chat-proto" ) type Delivery struct { diff --git a/subscription_test.go b/subscription_test.go index efc3eb6..5a16bcf 100644 --- a/subscription_test.go +++ b/subscription_test.go @@ -17,7 +17,7 @@ import ( "google.golang.org/grpc/status" "google.golang.org/grpc/test/bufconn" - pb "gitea.fe.kaien.ru/kaien/l-ai-chat-client-go/proto/l-ai-chat-proto" + pb "gitea.fe.kaien.ru/kaien/l-ai-chat-proto" ) type fakeChatServer struct {