actionagent 1.9.7 → 1.9.9
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/app/assets/builds/action_agent.css +1 -1
- data/app/assets/builds/action_agent.js +75 -63
- data/app/jobs/action_agent/evaluation_replay_job.rb +4 -2
- data/app/jobs/action_agent/evaluation_run_job.rb +3 -1
- data/app/models/action_agent/agent_run.rb +25 -6
- data/app/models/action_agent/evaluation_run.rb +43 -0
- data/app/models/action_agent/scenario_product.rb +24 -0
- data/app/models/action_agent/scenario_set.rb +9 -0
- data/app/serializers/action_agent/evaluation_serializer.rb +6 -2
- data/app/services/action_agent/evaluation_report_import.rb +49 -2
- data/app/services/action_agent/scenario_catalog_import.rb +5 -0
- data/app/services/action_agent/scenario_evaluation_runner.rb +191 -10
- data/lib/action_agent/version.rb +1 -1
- data/lib/generators/action_agent/templates/migrations/034_add_catalog_product_criteria.rb.erb +24 -0
- data/lib/generators/action_agent/templates/migrations/035_add_catalog_pass_bars.rb.erb +28 -0
- metadata +4 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class AddCatalogProductCriteria < ActiveRecord::Migration<%= migration_version %>
|
|
4
|
+
def up
|
|
5
|
+
return unless table_exists?(products_table)
|
|
6
|
+
return if column_exists?(products_table, :criteria)
|
|
7
|
+
|
|
8
|
+
type = connection.adapter_name.to_s.downcase.include?("postgres") ? :jsonb : :json
|
|
9
|
+
add_column products_table, :criteria, type
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def down
|
|
13
|
+
return unless table_exists?(products_table)
|
|
14
|
+
return unless column_exists?(products_table, :criteria)
|
|
15
|
+
|
|
16
|
+
remove_column products_table, :criteria
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def products_table
|
|
22
|
+
"#{ActionAgent.table_name_prefix}scenario_products"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class AddCatalogPassBars < ActiveRecord::Migration<%= migration_version %>
|
|
4
|
+
def up
|
|
5
|
+
type = connection.adapter_name.to_s.downcase.include?("postgres") ? :jsonb : :json
|
|
6
|
+
catalog_tables.each do |table|
|
|
7
|
+
next unless table_exists?(table)
|
|
8
|
+
next if column_exists?(table, :pass)
|
|
9
|
+
|
|
10
|
+
add_column table, :pass, type
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def down
|
|
15
|
+
catalog_tables.each do |table|
|
|
16
|
+
next unless table_exists?(table)
|
|
17
|
+
next unless column_exists?(table, :pass)
|
|
18
|
+
|
|
19
|
+
remove_column table, :pass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
private
|
|
24
|
+
|
|
25
|
+
def catalog_tables
|
|
26
|
+
%w[scenario_products scenario_sets].map { |table| "#{ActionAgent.table_name_prefix}#{table}" }
|
|
27
|
+
end
|
|
28
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionagent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Bowen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeagent
|
|
@@ -383,6 +383,8 @@ files:
|
|
|
383
383
|
- lib/generators/action_agent/templates/migrations/030_add_evaluation_scoring_leases.rb.erb
|
|
384
384
|
- lib/generators/action_agent/templates/migrations/031_add_catalog_scenario_metadata.rb.erb
|
|
385
385
|
- lib/generators/action_agent/templates/migrations/032_create_active_agent_mcp_server_configs.rb.erb
|
|
386
|
+
- lib/generators/action_agent/templates/migrations/034_add_catalog_product_criteria.rb.erb
|
|
387
|
+
- lib/generators/action_agent/templates/migrations/035_add_catalog_pass_bars.rb.erb
|
|
386
388
|
- lib/tasks/action_agent.rake
|
|
387
389
|
- lib/tasks/browser.rake
|
|
388
390
|
- lib/tasks/claude_code.rake
|