collavre 0.2.2 → 0.2.3

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: ffb51f105454c5a92cd08d432b52cce5f89b33a9b0c55d2f48d174d8c8d1e7db
4
- data.tar.gz: ccd33ef1791f4c0723dc00b0082c2278f88a1ff466dffef65079d4c13c3c3b81
3
+ metadata.gz: d5c931501423b83339fe8760249bae4ff611eb1ab835167dade3a6d8ee587630
4
+ data.tar.gz: dd34bc4c214b8a5df3cbfd189ca3dd22aa47fcf22eaa4974a63fd23b2bc8754a
5
5
  SHA512:
6
- metadata.gz: a314a1dda1349eba75c5cd567bb0442ad9b84a97667db47b6312bff6c205d00060385b97d7c5aecc1f129d0c8e96dcdec284e54fb344e385d45327d704dab539
7
- data.tar.gz: a8470f0bbe7d95698699144bd15af8456bc8a36ce6b044509ee447f2b9a67c9ec746f0cf511abfbd9954dee07ecd4bb0370380f8c74e334d13d99b4884f76e06
6
+ metadata.gz: ada88101f9013822d0aa944d16b040db4e2ce954fc1c5fd055c391a222a273d3e469a99c7f7ab255bc5ad2bc149e93dd72cdf3d597f49957ae825d3fd93fa89a
7
+ data.tar.gz: be1b0f2704a49f5cf446f639dc197d0d69fef529595e2b4a46401a4caa801c5ac44cb1df2a14799ee043e7021648f495ff41e16133b2a0a9936e7542f5af0b1e
@@ -0,0 +1,5 @@
1
+ class AddRequiresApprovalToMcpTools < ActiveRecord::Migration[8.1]
2
+ def change
3
+ add_column :mcp_tools, :requires_approval, :boolean, default: false, null: false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPendingToolCallToTasks < ActiveRecord::Migration[8.1]
2
+ def change
3
+ add_column :tasks, :pending_tool_call, :json
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ class AddPositionToTopics < ActiveRecord::Migration[8.1]
2
+ def change
3
+ add_column :topics, :position, :integer, default: 0, null: false
4
+
5
+ # Set position based on created_at order for existing topics
6
+ reversible do |dir|
7
+ dir.up do
8
+ # Group topics by creative_id and set position based on created_at order
9
+ execute <<-SQL
10
+ UPDATE topics
11
+ SET position = (
12
+ SELECT COUNT(*)
13
+ FROM topics t2
14
+ WHERE t2.creative_id = topics.creative_id
15
+ AND t2.created_at < topics.created_at
16
+ )
17
+ SQL
18
+ end
19
+ end
20
+
21
+ add_index :topics, [ :creative_id, :position ]
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module Collavre
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collavre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collavre
@@ -563,6 +563,9 @@ files:
563
563
  - db/migrate/20260131100000_migrate_active_storage_attachment_record_types.rb
564
564
  - db/migrate/20260201100000_make_google_event_id_nullable.rb
565
565
  - db/migrate/20260202150000_add_gateway_url_to_users.rb
566
+ - db/migrate/20260203002637_add_requires_approval_to_mcp_tools.rb
567
+ - db/migrate/20260203002643_add_pending_tool_call_to_tasks.rb
568
+ - db/migrate/20260203083302_add_position_to_topics.rb
566
569
  - lib/collavre.rb
567
570
  - lib/collavre/configuration.rb
568
571
  - lib/collavre/engine.rb