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 +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/legion/data/migrations/129_create_llm_skill_events.rb +28 -0
- data/lib/legion/data/migrations/130_add_llm_conversations_compliance_columns.rb +19 -0
- data/lib/legion/data/migrations/131_add_llm_tool_calls_schema_version.rb +15 -0
- data/lib/legion/data/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec6d2ef95eb45caa64e713c5dc236752a856cb7298e6b054099587b4faedcda1
|
|
4
|
+
data.tar.gz: 7df69945231cc4e38501cd1e49149ea44110db060600ea6606fb11008c5d1df6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/legion/data/version.rb
CHANGED
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.
|
|
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
|