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 +4 -4
- data/.github/CODEOWNERS +7 -0
- data/.github/dependabot.yml +18 -0
- data/.github/workflows/ci.yml +20 -2
- data/CHANGELOG.md +5 -0
- data/LICENSE +89 -55
- data/lib/legion/mcp/override_broadcast.rb +5 -6
- data/lib/legion/mcp/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5fb13bd52360660f5ec746ccd39b61938e88f6162d6fec55e7e6d059b8e587ef
|
|
4
|
+
data.tar.gz: 54686c0f6a9e748903766e4492b83fed3bd1780295795fd17bcd14142f3a1703
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a2830fb09b04b792a8b15e118e39b71135db74cc1e9a8e701940283b12bad28b406003005b3a39effda3c213b6b73e360dc767c91152a0c466f50196ec7b99e
|
|
7
|
+
data.tar.gz: adfb0ea1edb2f5851e9ca7855687a976f33d6959ed891ca95e0666dd738fd74934234132d26a2c72315a39308150f845544caba3a306d4bebb05bbbc1e0971c2
|
data/.github/CODEOWNERS
ADDED
|
@@ -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"
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -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
|
|
36
|
-
the License, as indicated by a
|
|
37
|
-
|
|
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
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
or
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
|
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
|
|
80
|
-
or counterclaim in a lawsuit) alleging that the Work
|
|
81
|
-
|
|
82
|
-
infringement, then any patent licenses
|
|
83
|
-
License for
|
|
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
|
|
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,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
the
|
|
109
|
-
Derivative Works;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
may
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
|
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
|
|
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
|
|
157
|
-
commercial damages or losses), even if such Contributor
|
|
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
|
|
165
|
-
|
|
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::
|
|
47
|
+
return unless defined?(Legion::Apollo) && Legion::Apollo.started?
|
|
48
48
|
|
|
49
|
-
Legion::
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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)
|
data/lib/legion/mcp/version.rb
CHANGED
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.
|
|
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"
|