diff --git a/chat.proto b/chat.proto index 4f50fbb..19b42e1 100644 --- a/chat.proto +++ b/chat.proto @@ -34,7 +34,7 @@ message CodeSnippet { // `autogenpb:nomute string content = 2; } -message Chat { // `autogenpb:nomutex` +message ChatEntry { // `autogenpb:nomutex` Who from = 1; google.protobuf.Timestamp ctime = 2; string content = 3; @@ -45,6 +45,19 @@ message Chat { // `autogenpb:nomute repeated CodeSnippet Snippets = 8; } +message Chat { // `autogenpb:nomutex` + Who from = 1; + google.protobuf.Timestamp ctime = 2; + string content = 3; + Table table = 4; + repeated ToolCall ToolCalls = 5; + string ContentFile = 6; // `autogenpb:unique` `autogenpb:sort` + string uuid = 7; // `autogenpb:unique` `autogenpb:sort` + repeated CodeSnippet Snippets = 8; + string ChatName = 9; + repeated ChatEntry Entries = 10; +} + message Chats { // `autogenpb:marshal` `autogenpb:mutex` string uuid = 1; // `autogenpb:uuid:9fd31f10-c25d-4d66-bc8d-5f6eb7c79057` string version = 2; // `autogenpb:version:v0.0.1` diff --git a/config.go b/config.go index 6a2b096..a7c79fe 100644 --- a/config.go +++ b/config.go @@ -56,7 +56,7 @@ func (all *Chats) ConfigSave() error { } return err } - if err := configWrite("gemini.pb", data); err != nil { + if err := configWrite("gemini.pb", data); err != nil { log.Infof("chatpb.ConfigSave() failed len(Chats)=%d bytes=%d", len(cleanChats.Chats), len(data)) return err }