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 +4 -4
- data/CHANGELOG.md +28 -1
- data/README.md +34 -0
- data/db/migrate/002_add_config_to_rcrewai_agents.rb +1 -1
- data/db/migrate/003_add_output_processing_to_rcrewai_tasks.rb +1 -1
- data/db/migrate/004_add_lifecycle_to_rcrewai_crews.rb +1 -1
- data/db/migrate/005_add_batch_id_to_rcrewai_executions.rb +1 -1
- data/db/migrate/006_create_rcrewai_knowledge_sources.rb +1 -1
- data/db/migrate/007_create_rcrewai_flows.rb +1 -1
- data/db/migrate/008_add_consensus_agents_to_rcrewai_crews.rb +1 -1
- data/db/migrate/010_create_rcrewai_spans.rb +1 -1
- data/db/migrate/011_add_observation_rollups_to_rcrewai_executions.rb +1 -1
- data/lib/generators/rcrewai/rails/install/templates/create_rcrewai_tables.rb +1 -1
- data/lib/rcrewai/rails/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: ec3c830730933e9510d7749b89decd73af35f5b69e5f6f441a21d0cca9290b61
|
|
4
|
+
data.tar.gz: 698877cbbaf6cd49924144a585b5d32a4817ddd1e51307d34cd488f51ba5d0a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|