chat_manager 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/chat_manager/csv_downloadable.rb +3 -3
- data/lib/chat_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16edfae01384fd803fd52f1babba84126ff981a49f2d86377742068d676c8dd8
|
|
4
|
+
data.tar.gz: 6ddb3cd61d6d759ec835a6454de8ef02b28cbed5b5c4db1513cf8089af3e3967
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 057d03aa7ac342ae540112510d452f23f18d9a8d8bdae7378f49818a33354efc963911933c5e3376849fa5691ad65e44bc629d6527622843fb4dfff7f285c148
|
|
7
|
+
data.tar.gz: 05fcf885384c8caa57492464f11260d182cd1a46a9418f3342b06f32f62e362fd333a8d4877a81d1b617b06a01b9129f8350249a78d290890e4b6fb9c0287063
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [1.1.1] - 2026-05-11
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `ChatManager::CsvDownloadable` referenced the old `prompt_manager_prompt_execution` association name, raising `ActiveRecord::AssociationNotFoundError` when host apps had migrated to `prompt_navigator`. The concern (and README/CLAUDE.md docs) now use `prompt_navigator_prompt_execution`.
|
|
13
|
+
|
|
8
14
|
## [1.1.0] - 2026-04-22
|
|
9
15
|
|
|
10
16
|
### Added
|
data/README.md
CHANGED
|
@@ -110,9 +110,9 @@ CSV output includes the following columns: `Chat Title`, `Role`, `Message Conten
|
|
|
110
110
|
**Prerequisites:** The host application must provide:
|
|
111
111
|
|
|
112
112
|
- `current_user` method in the controller (returning an object with a `chats` association)
|
|
113
|
-
- `chats` association that supports `.includes(messages: :
|
|
113
|
+
- `chats` association that supports `.includes(messages: :prompt_navigator_prompt_execution)`
|
|
114
114
|
- `ordered_messages` method on the Chat model
|
|
115
|
-
- Each message must have a `role` attribute and a `
|
|
115
|
+
- Each message must have a `role` attribute and a `prompt_navigator_prompt_execution` association with `prompt` and `response` attributes
|
|
116
116
|
|
|
117
117
|
### TitleGeneratable (Model Concern)
|
|
118
118
|
|
|
@@ -9,7 +9,7 @@ module ChatManager
|
|
|
9
9
|
CSV_HEADERS = [ "Chat Title", "Role", "Message Content", "Sent At", "Model" ].freeze
|
|
10
10
|
|
|
11
11
|
def download_csv
|
|
12
|
-
chat = current_user.chats.includes(messages: :
|
|
12
|
+
chat = current_user.chats.includes(messages: :prompt_navigator_prompt_execution).find_by!(uuid: params[:id])
|
|
13
13
|
|
|
14
14
|
csv_data = generate_csv_for_chats([ chat ])
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ module ChatManager
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def download_all_csv
|
|
21
|
-
chats = current_user.chats.includes(messages: :
|
|
21
|
+
chats = current_user.chats.includes(messages: :prompt_navigator_prompt_execution)
|
|
22
22
|
|
|
23
23
|
csv_data = generate_csv_for_chats(chats)
|
|
24
24
|
|
|
@@ -32,7 +32,7 @@ module ChatManager
|
|
|
32
32
|
csv << CSV_HEADERS
|
|
33
33
|
chats.each do |chat|
|
|
34
34
|
chat.ordered_messages.each do |msg|
|
|
35
|
-
pe = msg.
|
|
35
|
+
pe = msg.prompt_navigator_prompt_execution
|
|
36
36
|
content = msg.role == "user" ? pe&.prompt : pe&.response
|
|
37
37
|
csv << [ chat.title, msg.role, content, msg.created_at, chat.model ]
|
|
38
38
|
end
|
data/lib/chat_manager/version.rb
CHANGED