legion-mcp 0.5.6 → 0.5.7

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: c9e0929e9bf734d95007fba20225c5cc02ef7116f999c90de380f18eb3753929
4
- data.tar.gz: dff5f7f858ca527c917620be9c05996d33f33fe8847617a79d267414f02810bd
3
+ metadata.gz: 5fb13bd52360660f5ec746ccd39b61938e88f6162d6fec55e7e6d059b8e587ef
4
+ data.tar.gz: 54686c0f6a9e748903766e4492b83fed3bd1780295795fd17bcd14142f3a1703
5
5
  SHA512:
6
- metadata.gz: 979b0bb726e1cdbe455335be790e50bbd1f282b62bb857b6d865fa046a35eb7ce9eee3a914d44990a5a51452e8e0c0c4532419cba44f65f73aef16808030ce48
7
- data.tar.gz: e786d20f88f1f75a982cb2c9fda17e1094b82ff748aed02395f6556624492c356bca8ace07ea249923f0a4a0c407c6f75c1252345fbad5cf823abf6e227f8e29
6
+ metadata.gz: 4a2830fb09b04b792a8b15e118e39b71135db74cc1e9a8e701940283b12bad28b406003005b3a39effda3c213b6b73e360dc767c91152a0c466f50196ec7b99e
7
+ data.tar.gz: adfb0ea1edb2f5851e9ca7855687a976f33d6959ed891ca95e0666dd738fd74934234132d26a2c72315a39308150f845544caba3a306d4bebb05bbbc1e0971c2
@@ -0,0 +1,7 @@
1
+ # Auto-generated from team-config.yml
2
+ # Team: ai
3
+ #
4
+ # To apply: scripts/apply-codeowners.sh legion-mcp
5
+
6
+ * @LegionIO/maintainers
7
+ * @LegionIO/ai
@@ -0,0 +1,18 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ day: monday
8
+ open-pull-requests-limit: 5
9
+ labels:
10
+ - "type:dependencies"
11
+ - package-ecosystem: github-actions
12
+ directory: /
13
+ schedule:
14
+ interval: weekly
15
+ day: monday
16
+ open-pull-requests-limit: 5
17
+ labels:
18
+ - "type:dependencies"
@@ -3,14 +3,32 @@ on:
3
3
  push:
4
4
  branches: [main]
5
5
  pull_request:
6
+ schedule:
7
+ - cron: '0 9 * * 1'
6
8
 
7
9
  jobs:
8
10
  ci:
9
11
  uses: LegionIO/.github/.github/workflows/ci.yml@main
10
12
 
13
+ lint:
14
+ uses: LegionIO/.github/.github/workflows/lint-patterns.yml@main
15
+
16
+ security:
17
+ uses: LegionIO/.github/.github/workflows/security-scan.yml@main
18
+
19
+ version-changelog:
20
+ uses: LegionIO/.github/.github/workflows/version-changelog.yml@main
21
+
22
+ dependency-review:
23
+ uses: LegionIO/.github/.github/workflows/dependency-review.yml@main
24
+
25
+ stale:
26
+ if: github.event_name == 'schedule'
27
+ uses: LegionIO/.github/.github/workflows/stale.yml@main
28
+
11
29
  release:
12
- needs: ci
30
+ needs: [ci, lint]
13
31
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
14
32
  uses: LegionIO/.github/.github/workflows/release.yml@main
15
33
  secrets:
16
- rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
34
+ rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # legion-mcp Changelog
2
2
 
3
+ ## [0.5.7] - 2026-03-25
4
+
5
+ ### Changed
6
+ - `OverrideBroadcast#store_to_apollo` now routes through `Legion::Apollo.ingest` (core library) instead of calling `Legion::Extensions::Apollo::Runners::Knowledge.handle_ingest` directly — removes the hard coupling to the co-located extension
7
+
3
8
  ## [0.5.6] - 2026-03-24
4
9
 
5
10
  ### Changed
data/LICENSE CHANGED
@@ -32,33 +32,36 @@
32
32
  not limited to compiled object code, generated documentation,
33
33
  and conversions to other media types.
34
34
 
35
- "Work" shall mean the work of authorship made available under
36
- the License, as indicated by a copyright notice that is included in
37
- or attached to the work (an example is provided in the Appendix below).
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
38
39
 
39
40
  "Derivative Works" shall mean any work, whether in Source or Object
40
41
  form, that is based on (or derived from) the Work and for which the
41
- editorial revisions, annotations, elaborations, or other transformations
42
+ editorial revisions, annotations, elaborations, or other modifications
42
43
  represent, as a whole, an original work of authorship. For the purposes
43
44
  of this License, Derivative Works shall not include works that remain
44
45
  separable from, or merely link (or bind by name) to the interfaces of,
45
46
  the Work and Derivative Works thereof.
46
47
 
47
- "Contribution" shall mean, as submitted to the Licensor for inclusion
48
- in the Work by the copyright owner or by an individual or Legal Entity
49
- authorized to submit on behalf of the copyright owner. For the purposes
50
- of this definition, "submitted" means any form of electronic, verbal,
51
- or written communication sent to the Licensor or its representatives,
52
- including but not limited to communication on electronic mailing lists,
53
- source code control systems, and issue tracking systems that are managed
54
- by, or on behalf of, the Licensor for the purpose of tracking and
55
- discussing the Work, but excluding communication that is conspicuously
56
- marked or designated in writing by the copyright owner as "Not a
57
- Contribution."
58
-
59
- "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
- whom a Contribution has been received by the Licensor and included
61
- within the Work.
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
62
65
 
63
66
  2. Grant of Copyright License. Subject to the terms and conditions of
64
67
  this License, each Contributor hereby grants to You a perpetual,
@@ -74,22 +77,22 @@
74
77
  use, offer to sell, sell, import, and otherwise transfer the Work,
75
78
  where such license applies only to those patent claims licensable
76
79
  by such Contributor that are necessarily infringed by their
77
- Contribution(s) alone or by the combination of their Contribution(s)
80
+ Contribution(s) alone or by combination of their Contribution(s)
78
81
  with the Work to which such Contribution(s) was submitted. If You
79
- institute patent litigation against any entity (including a cross-claim
80
- or counterclaim in a lawsuit) alleging that the Work or any patent
81
- claims in the Work constituting direct or contributory patent
82
- infringement, then any patent licenses granted to You under this
83
- License for the Work shall terminate as of the date such litigation
84
- is filed.
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
85
88
 
86
89
  4. Redistribution. You may reproduce and distribute copies of the
87
90
  Work or Derivative Works thereof in any medium, with or without
88
91
  modifications, and in Source or Object form, provided that You
89
92
  meet the following conditions:
90
93
 
91
- (a) You must give any other recipients of the Work or Derivative
92
- Works a copy of this License; and
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
93
96
 
94
97
  (b) You must cause any modified files to carry prominent notices
95
98
  stating that You changed the files; and
@@ -101,26 +104,28 @@
101
104
  the Derivative Works; and
102
105
 
103
106
  (d) If the Work includes a "NOTICE" text file as part of its
104
- distribution, You must include a readable copy of the
105
- attribution notices contained within such NOTICE file, in
106
- at least one of the following places: within a NOTICE text
107
- file distributed as part of the Derivative Works; within
108
- the Source form or documentation, if provided along with the
109
- Derivative Works; or, within a display generated by the
110
- Derivative Works, if and wherever such third-party notices
111
- normally appear. The contents of the NOTICE file are for
112
- informational purposes only and do not modify the License.
113
- You may add Your own attribution notices within Derivative
114
- Works that You distribute, alongside or in addition to the
115
- NOTICE text from the Work, provided that such additional
116
- attribution notices cannot be construed as modifying the
117
- License.
118
-
119
- You may add Your own license statement for Your modifications and
120
- may provide additional grant of rights to use, copy, modify, merge,
121
- publish, distribute, sublicense, and/or sell copies of the
122
- Derivative Works, and to permit persons to whom the Derivative Works
123
- is furnished to do so, subject to the following conditions.
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
124
129
 
125
130
  5. Submission of Contributions. Unless You explicitly state otherwise,
126
131
  any Contribution intentionally submitted for inclusion in the Work
@@ -142,7 +147,7 @@
142
147
  implied, including, without limitation, any warranties or conditions
143
148
  of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
144
149
  PARTICULAR PURPOSE. You are solely responsible for determining the
145
- appropriateness of using or reproducing the Work and assume any
150
+ appropriateness of using or redistributing the Work and assume any
146
151
  risks associated with Your exercise of permissions under this License.
147
152
 
148
153
  8. Limitation of Liability. In no event and under no legal theory,
@@ -150,18 +155,47 @@
150
155
  unless required by applicable law (such as deliberate and grossly
151
156
  negligent acts) or agreed to in writing, shall any Contributor be
152
157
  liable to You for damages, including any direct, indirect, special,
153
- incidental, or exemplary damages of any character arising as a
158
+ incidental, or consequential damages of any character arising as a
154
159
  result of this License or out of the use or inability to use the
155
160
  Work (including but not limited to damages for loss of goodwill,
156
- work stoppage, computer failure or malfunction, or all other
157
- commercial damages or losses), even if such Contributor has been
158
- advised of the possibility of such damages.
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
159
164
 
160
165
  9. Accepting Warranty or Additional Liability. While redistributing
161
166
  the Work or Derivative Works thereof, You may choose to offer,
162
167
  and charge a fee for, acceptance of support, warranty, indemnity,
163
168
  or other liability obligations and/or rights consistent with this
164
- License. However, in accepting such obligations, You may offer only
165
- conditions consistent in kind with this terms of this License.
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
166
175
 
167
176
  END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2021 Esity
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -44,15 +44,14 @@ module Legion
44
44
  end
45
45
 
46
46
  def store_to_apollo(tool:, lex:, confidence:, tests:, node:)
47
- return unless defined?(Legion::Extensions::Apollo::Runners::Knowledge)
47
+ return unless defined?(Legion::Apollo) && Legion::Apollo.started?
48
48
 
49
- Legion::Extensions::Apollo::Runners::Knowledge.handle_ingest(
49
+ Legion::Apollo.ingest(
50
50
  content: "Override confirmed: #{tool} -> #{lex} (confidence: #{confidence}, tests: #{tests})",
51
- content_type: 'fact',
52
51
  tags: %w[override mesh_confirmed] + [tool],
53
- source_agent: "mesh:#{node}",
54
- knowledge_domain: 'system',
55
- context: { tool: tool, lex: lex, confidence: confidence, tests: tests }
52
+ source_channel: 'mesh',
53
+ submitted_by: "mesh:#{node}",
54
+ knowledge_domain: 'system'
56
55
  )
57
56
  rescue StandardError => e
58
57
  Legion::Logging.warn("OverrideBroadcast#store_to_apollo failed: #{e.message}") if defined?(Legion::Logging)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module MCP
5
- VERSION = '0.5.6'
5
+ VERSION = '0.5.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -104,6 +104,8 @@ extra_rdoc_files:
104
104
  - LICENSE
105
105
  - README.md
106
106
  files:
107
+ - ".github/CODEOWNERS"
108
+ - ".github/dependabot.yml"
107
109
  - ".github/workflows/ci.yml"
108
110
  - ".gitignore"
109
111
  - ".rspec"