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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ddf6c7e7730f55843f51ac1ea037abbd9e071a16a06d1b40896ebee66dc9bd7
4
- data.tar.gz: 3a0769394095c3b8b5bfcae45cfd8a28c41833adefed7a5b8c16eb575da1f330
3
+ metadata.gz: 16edfae01384fd803fd52f1babba84126ff981a49f2d86377742068d676c8dd8
4
+ data.tar.gz: 6ddb3cd61d6d759ec835a6454de8ef02b28cbed5b5c4db1513cf8089af3e3967
5
5
  SHA512:
6
- metadata.gz: b8b1758695c42ae4ca116c3f5d771c4523d2294298826a0e872e11121b3386703745a6fcc0c2979919238dd1fbf05182562b114e2fff140dfd191fe6ceb0963a
7
- data.tar.gz: 75f3f05bb3e6cbc7bfadb25579c4a5f7cb438fbf26ad02e7b7ff2cb3dbb863e66a6d0f04d4dc7b717cabbdf418ee525c5f58d21a55e3a325d917195515cd52dd
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: :prompt_manager_prompt_execution)`
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 `prompt_manager_prompt_execution` association with `prompt` and `response` attributes
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: :prompt_manager_prompt_execution).find_by!(uuid: params[:id])
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: :prompt_manager_prompt_execution)
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.prompt_manager_prompt_execution
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
@@ -1,3 +1,3 @@
1
1
  module ChatManager
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chat_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dhq_boiler