rcrewai-rails 0.7.0 → 0.7.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: e21a3a1057f9221cca3d280f2307b219d15a636995284c781404c4ed3d283fa6
4
- data.tar.gz: 9b715b0cc17839eb5fb23f578905d962c4b6450d0aae2b8b1f494d549497a8b3
3
+ metadata.gz: ec3c830730933e9510d7749b89decd73af35f5b69e5f6f441a21d0cca9290b61
4
+ data.tar.gz: 698877cbbaf6cd49924144a585b5d32a4817ddd1e51307d34cd488f51ba5d0a7
5
5
  SHA512:
6
- metadata.gz: 1be59f83c847e48c36b0ac61527ca9dedc61b903763be6145d6dd26354575a74d2dee3fc807a804e6f847660347c8368a28d70f33df6cb57d75d2b952b98657f
7
- data.tar.gz: 0f37c9c304ef0264afeb363f07ca1b23c72045d9686869fe9325e336a79f30bc1930d08f97470a6235ad7d4dc8d1e5ebab4c78eb3de9d9ae1129ea42cb48dca8
6
+ metadata.gz: 94f1e5d38e34c5a8668a4c1be005d3fe4cf6e6e29353ea580de7581485262948af2824f166feb58e4903e59e3aef8dfd3eb1c3ecf8642da021b1f15e3025e89d
7
+ data.tar.gz: 71e6c33d7e34a248ce650556a1cb5bc900d20f282f02fccb82fe2fadd71744ea45fddb618962da777488213084f0048057817e6572f46f27320d40d685b6e14f
data/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.7.1] - 2026-08-13
11
+
12
+ ### Fixed
13
+ - **`rails db:migrate` raised `NameError` on 0.7.0.** The engine registers an
14
+ `RcrewAI` acronym inflection (Zeitwerk needs it to resolve
15
+ `rcrewai/rails/span.rb` to `RcrewAI::Rails::Span`), so Rails camelizes
16
+ `create_rcrewai_tables` to `CreateRcrewAITables` — but the shipped migrations
17
+ declared `CreateRcrewaiTables`. Rails resolves a migration's class from its
18
+ filename, so following the documented install verbatim failed. Nine migrations
19
+ in `db/migrate` and the install template were affected; all now declare the
20
+ name Rails derives. Thanks to the user who reported this from a real install.
21
+
22
+ **If you already installed 0.7.0** and renamed the class by hand, no action is
23
+ needed — your migration works. Otherwise, delete the copied migration, upgrade,
24
+ and re-run the install (or `rcrew_ai_rails:install:migrations`).
25
+
10
26
  ## [0.7.0] - 2026-08-13
11
27
 
12
28
  ### Added
@@ -36,6 +52,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
52
  - `rcrewai >= 0.7.1` for agent-level tracing. On earlier 0.7.x versions traces
37
53
  contain only crew-level spans.
38
54
 
55
+ ### Upgrading
56
+ - **Existing installs need two new migrations.** Do not run the install
57
+ generator (it creates every table and will fail on duplicates). Instead run
58
+ `rails rcrew_ai_rails:install:migrations && rails db:migrate` to copy only
59
+ what is missing: `010_create_rcrewai_spans` (the trace tree) and
60
+ `011_add_observation_rollups_to_rcrewai_executions` (cost/token totals). Both
61
+ are additive — nothing existing is altered or dropped. Observation is enabled
62
+ by default once the tables exist; set `config.observation_enabled = false` to
63
+ upgrade without turning tracing on.
64
+
39
65
  ## [0.6.1] - 2026-07-07
40
66
 
41
67
  ### Fixed
@@ -152,7 +178,8 @@ existing agents, tasks, and crews build unchanged.
152
178
  ### Changed
153
179
  - Rename generators from `rcrew_a_i` to `rcrewai` namespacing.
154
180
 
155
- [Unreleased]: https://github.com/gkosmo/rcrewai-rails/compare/v0.7.0...HEAD
181
+ [Unreleased]: https://github.com/gkosmo/rcrewai-rails/compare/v0.7.1...HEAD
182
+ [0.7.1]: https://github.com/gkosmo/rcrewai-rails/compare/v0.7.0...v0.7.1
156
183
  [0.7.0]: https://github.com/gkosmo/rcrewai-rails/compare/v0.6.1...v0.7.0
157
184
  [0.6.1]: https://github.com/gkosmo/rcrewai-rails/compare/v0.6.0...v0.6.1
158
185
  [0.6.0]: https://github.com/gkosmo/rcrewai-rails/compare/v0.5.1...v0.6.0
data/README.md CHANGED
@@ -86,6 +86,40 @@ This will:
86
86
  - Add an initializer file for configuration
87
87
  - Mount the engine routes in `config/routes.rb`
88
88
 
89
+ ### Upgrading an existing install
90
+
91
+ The install generator above is for **new** installs — it creates every table, so
92
+ running it against an app that already has the RcrewAI tables will fail on
93
+ duplicates.
94
+
95
+ If you are already running rcrewai-rails, pull in only the migrations you are
96
+ missing using the standard Rails engine task:
97
+
98
+ ```bash
99
+ $ rails rcrew_ai_rails:install:migrations
100
+ $ rails db:migrate
101
+ ```
102
+
103
+ (The task name comes from the engine's railtie name, `rcrew_ai_rails`.)
104
+
105
+ Rails copies only the migrations your app does not already have. Upgrading to
106
+ 0.7.0 from 0.6.x adds two:
107
+
108
+ | Migration | Purpose |
109
+ |---|---|
110
+ | `010_create_rcrewai_spans` | `rcrewai_spans` and `rcrewai_span_events` — the observation engine's trace tree |
111
+ | `011_add_observation_rollups_to_rcrewai_executions` | `total_cost_usd`, `total_tokens`, `span_count`, `error_count` on executions |
112
+
113
+ Both are additive: no existing column or table is changed, and nothing is
114
+ dropped. Existing crews, agents, tasks, and executions are unaffected, and
115
+ observation is enabled by default once the tables exist. To upgrade the gem
116
+ without turning tracing on, set `config.observation_enabled = false` in
117
+ `config/initializers/rcrewai.rb` before migrating.
118
+
119
+ If your schema was created by hand (the install generator did not copy a
120
+ migration before 0.7.0, so this is likely), review the copied migrations before
121
+ running `db:migrate` and delete any whose tables you already have.
122
+
89
123
  ### Manual Routes Setup
90
124
 
91
125
  If you need to mount the routes manually, add this to your `config/routes.rb`:
@@ -1,4 +1,4 @@
1
- class AddConfigToRcrewaiAgents < ActiveRecord::Migration[7.0]
1
+ class AddConfigToRcrewAIAgents < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  # max_rpm and llm_config already exist on rcrewai_agents from the
4
4
  # original create table; only the 0.5.0 additions are new.
@@ -1,4 +1,4 @@
1
- class AddOutputProcessingToRcrewaiTasks < ActiveRecord::Migration[7.0]
1
+ class AddOutputProcessingToRcrewAITasks < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  # output_file already exists on rcrewai_tasks from the original create
4
4
  # table; only the new 0.4/0.5 output-processing options are added here.
@@ -1,4 +1,4 @@
1
- class AddLifecycleToRcrewaiCrews < ActiveRecord::Migration[7.0]
1
+ class AddLifecycleToRcrewAICrews < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  add_column :rcrewai_crews, :planning, :boolean, default: false, null: false
4
4
  add_column :rcrewai_crews, :planning_llm, :string
@@ -1,4 +1,4 @@
1
- class AddBatchIdToRcrewaiExecutions < ActiveRecord::Migration[7.0]
1
+ class AddBatchIdToRcrewAIExecutions < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  add_column :rcrewai_executions, :batch_id, :string
4
4
  add_index :rcrewai_executions, :batch_id
@@ -1,4 +1,4 @@
1
- class CreateRcrewaiKnowledgeSources < ActiveRecord::Migration[7.0]
1
+ class CreateRcrewAIKnowledgeSources < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :rcrewai_knowledge_sources do |t|
4
4
  t.references :owner, polymorphic: true, null: false
@@ -1,4 +1,4 @@
1
- class CreateRcrewaiFlows < ActiveRecord::Migration[7.0]
1
+ class CreateRcrewAIFlows < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :rcrewai_flow_states do |t|
4
4
  t.string :state_id, null: false
@@ -1,4 +1,4 @@
1
- class AddConsensusAgentsToRcrewaiCrews < ActiveRecord::Migration[7.0]
1
+ class AddConsensusAgentsToRcrewAICrews < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  add_column :rcrewai_crews, :consensus_agents, :integer
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateRcrewaiSpans < ActiveRecord::Migration[7.0]
1
+ class CreateRcrewAISpans < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :rcrewai_spans do |t|
4
4
  t.references :execution, null: false, foreign_key: { to_table: :rcrewai_executions }
@@ -1,4 +1,4 @@
1
- class AddObservationRollupsToRcrewaiExecutions < ActiveRecord::Migration[7.0]
1
+ class AddObservationRollupsToRcrewAIExecutions < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  add_column :rcrewai_executions, :total_cost_usd, :decimal, precision: 12, scale: 6
4
4
  add_column :rcrewai_executions, :total_tokens, :integer
@@ -1,4 +1,4 @@
1
- class CreateRcrewaiTables < ActiveRecord::Migration[7.0]
1
+ class CreateRcrewAITables < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :rcrewai_crews do |t|
4
4
  t.string :name, null: false
@@ -1,6 +1,6 @@
1
1
  module RcrewAI
2
2
  module Rails
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  Version = VERSION
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcrewai-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gkosmo