legion-data 1.9.0 → 1.10.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: 92fba520187d3940bae5ac79e43f2155b16a0c7e3949e664233dd012871d56e7
4
- data.tar.gz: da5ff3d58c176ccb65fc03bdc6855318acba28b4974cf76e8b986eec2b70d5c3
3
+ metadata.gz: ec6d2ef95eb45caa64e713c5dc236752a856cb7298e6b054099587b4faedcda1
4
+ data.tar.gz: 7df69945231cc4e38501cd1e49149ea44110db060600ea6606fb11008c5d1df6
5
5
  SHA512:
6
- metadata.gz: 748443ee5df5494f60e080a6ad6405df97ed4166ed71e58fc58159b540ab2c9748195447c2a05e697a5ecc00889b17d7ff84337d0b718644c27c1312a6c47ab5
7
- data.tar.gz: 9417467c46a3a4b1651c68760ff682b07648cc021d51601bc844fb1afdccf68ae0a807f897823a818450658e8503feea7e409ecaacd2b80c757dd0847a037b22
6
+ metadata.gz: 3bd4a9fc8ed37d9fcbf92796baab4891601dbbed4b75a4bc1f752ee164a437af5a6e22516796977051c67c1bf555145fab2d2043a8754c7f7bf86175ebc977df
7
+ data.tar.gz: 3af41e387d8b98a3c7a8b527b88c6824b022d3baacc27c7243b5bafb7e7dc8c7e2876edc71e66994456667ade8a9b4b8854f55b1cffcfd1630ac082ffd87cdb0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Legion::Data Changelog
2
2
 
3
+ ## [1.10.1] - 2026-06-01
4
+
5
+ ### Added
6
+
7
+ - Migration 130: adds `pii_types_json` (TEXT), `jurisdictions_json` (TEXT), and `schema_version` (Integer, default 15) to `llm_conversations`. Required by lex-llm-ledger OfficialRecordWriter for compliance metadata.
8
+ - Migration 131: adds `schema_version` (Integer, default 15) to `llm_tool_calls`. Required by lex-llm-ledger OfficialRecordWriter.
9
+
10
+ ## [1.10.0] - 2026-06-01
11
+
12
+ ### Added
13
+
14
+ - Migration 129: creates `llm_skill_events` table as a core LLM lifecycle table (moved from lex-llm-ledger extension). Columns: `uuid`, `conversation_id`, `request_ref`, `skill_name`, `skill_version`, `trigger`, `status`, `duration_ms`, `identity_canonical_name`, `identity_principal_id`, `identity_id`, `schema_version`, `recorded_at`, `inserted_at`. Indexes on `conversation_id`, `request_ref`, `skill_name`, `identity_canonical_name`, `recorded_at`, `inserted_at`.
15
+
3
16
  ## [1.9.0] - 2026-06-01
4
17
 
5
18
  ### Added
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ Sequel.migration do
4
+ up do
5
+ create_table(:llm_skill_events) do
6
+ primary_key :id
7
+
8
+ String :uuid, null: false, unique: true, size: 36
9
+ Integer :conversation_id, index: true
10
+ String :request_ref, index: true
11
+ String :skill_name, null: false, index: true
12
+ String :skill_version
13
+ String :trigger
14
+ String :status, null: false, default: 'completed'
15
+ Integer :duration_ms, default: 0
16
+ String :identity_canonical_name, index: true
17
+ Integer :identity_principal_id
18
+ Integer :identity_id
19
+ Integer :schema_version, null: false, default: 15
20
+ DateTime :recorded_at, null: false, index: true
21
+ DateTime :inserted_at, null: false, default: Sequel::CURRENT_TIMESTAMP, index: true
22
+ end
23
+ end
24
+
25
+ down do
26
+ drop_table :llm_skill_events
27
+ end
28
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ Sequel.migration do
4
+ up do
5
+ alter_table(:llm_conversations) do
6
+ add_column :pii_types_json, :text, null: true
7
+ add_column :jurisdictions_json, :text, null: true
8
+ add_column :schema_version, Integer, null: false, default: 15
9
+ end
10
+ end
11
+
12
+ down do
13
+ alter_table(:llm_conversations) do
14
+ drop_column :schema_version
15
+ drop_column :jurisdictions_json
16
+ drop_column :pii_types_json
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ Sequel.migration do
4
+ up do
5
+ alter_table(:llm_tool_calls) do
6
+ add_column :schema_version, Integer, null: false, default: 15
7
+ end
8
+ end
9
+
10
+ down do
11
+ alter_table(:llm_tool_calls) do
12
+ drop_column :schema_version
13
+ end
14
+ end
15
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Data
5
- VERSION = '1.9.0'
5
+ VERSION = '1.10.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -275,6 +275,9 @@ files:
275
275
  - lib/legion/data/migrations/126_add_llm_message_inference_responses_audit_columns.rb
276
276
  - lib/legion/data/migrations/127_add_llm_message_inference_requests_audit_columns.rb
277
277
  - lib/legion/data/migrations/128_add_identity_columns_to_shared_tables.rb
278
+ - lib/legion/data/migrations/129_create_llm_skill_events.rb
279
+ - lib/legion/data/migrations/130_add_llm_conversations_compliance_columns.rb
280
+ - lib/legion/data/migrations/131_add_llm_tool_calls_schema_version.rb
278
281
  - lib/legion/data/model.rb
279
282
  - lib/legion/data/models/apollo/access_log.rb
280
283
  - lib/legion/data/models/apollo/entries.rb