lex-synapse 0.4.6 → 0.4.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/workflows/ci.yml +4 -4
- data/.rubocop.yml +14 -40
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/lib/legion/extensions/synapse/runners/challenge.rb +1 -1
- data/lib/legion/extensions/synapse/runners/propose.rb +1 -1
- data/lib/legion/extensions/synapse/runners/retrieve.rb +1 -1
- data/lib/legion/extensions/synapse/version.rb +1 -1
- data/lib/legion/extensions/synapse.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6960778e841594a06db2ac55e26f4618d66c5d0316f7e4e586d784586509171
|
|
4
|
+
data.tar.gz: cdf7db39426842d09a38241eb7ab3fb27e1329a6451d36de5bed80a669c96aa0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ece1da6b1a9ad7e142927113f23a9f10a05aee0a8cebea0aaf49dcec41fde032f9e98435254d5c7fe7ddda2d9d859c86fec6087607c2895841c5bb0eb36dbc9
|
|
7
|
+
data.tar.gz: 48564fffc100fba87f7ab707e518b76322d556cea1dc2e11a3165b2a41d9e5c1572056bbe930810dc7f91a9c621f5994b3582781ac11469785509e5a4b266922
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -10,8 +10,8 @@ jobs:
|
|
|
10
10
|
ci:
|
|
11
11
|
uses: LegionIO/.github/.github/workflows/ci.yml@main
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
uses: LegionIO/.github/.github/workflows/
|
|
13
|
+
excluded-files:
|
|
14
|
+
uses: LegionIO/.github/.github/workflows/excluded-files.yml@main
|
|
15
15
|
|
|
16
16
|
security:
|
|
17
17
|
uses: LegionIO/.github/.github/workflows/security-scan.yml@main
|
|
@@ -27,8 +27,8 @@ jobs:
|
|
|
27
27
|
uses: LegionIO/.github/.github/workflows/stale.yml@main
|
|
28
28
|
|
|
29
29
|
release:
|
|
30
|
-
needs: [ci,
|
|
30
|
+
needs: [ci, excluded-files]
|
|
31
31
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
32
32
|
uses: LegionIO/.github/.github/workflows/release.yml@main
|
|
33
33
|
secrets:
|
|
34
|
-
rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
34
|
+
rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
|
data/.rubocop.yml
CHANGED
|
@@ -1,53 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
NewCops: enable
|
|
4
|
-
SuggestExtensions: false
|
|
1
|
+
inherit_gem:
|
|
2
|
+
rubocop-legion: config/lex.yml
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
9
|
-
EnforcedStyle: space
|
|
10
|
-
Layout/HashAlignment:
|
|
11
|
-
EnforcedHashRocketStyle: table
|
|
12
|
-
EnforcedColonStyle: table
|
|
13
|
-
|
|
14
|
-
Metrics/MethodLength:
|
|
15
|
-
Max: 50
|
|
16
|
-
Metrics/ClassLength:
|
|
17
|
-
Max: 1500
|
|
18
|
-
Metrics/ModuleLength:
|
|
19
|
-
Max: 1500
|
|
20
|
-
Metrics/BlockLength:
|
|
21
|
-
Max: 40
|
|
22
|
-
Exclude:
|
|
23
|
-
- 'spec/**/*'
|
|
24
|
-
Metrics/AbcSize:
|
|
25
|
-
Max: 60
|
|
26
|
-
Metrics/CyclomaticComplexity:
|
|
27
|
-
Max: 15
|
|
28
|
-
Metrics/PerceivedComplexity:
|
|
29
|
-
Max: 17
|
|
30
|
-
Metrics/ParameterLists:
|
|
4
|
+
# Actors define `def time` as instance method — cop looks for DSL call, false positive
|
|
5
|
+
Legion/Extension/EveryActorRequiresTime:
|
|
31
6
|
Enabled: false
|
|
32
7
|
|
|
33
|
-
|
|
8
|
+
# Runner modules in this repo are designed for `include` into actors/client, not standalone
|
|
9
|
+
Legion/Extension/RunnerIncludeHelpers:
|
|
34
10
|
Enabled: false
|
|
35
|
-
Style/SymbolArray:
|
|
36
|
-
Enabled: true
|
|
37
|
-
Style/FrozenStringLiteralComment:
|
|
38
|
-
Enabled: true
|
|
39
|
-
EnforcedStyle: always
|
|
40
11
|
|
|
41
|
-
|
|
12
|
+
# Private helper methods return non-Hash values by design; only public runner methods require Hash
|
|
13
|
+
Legion/Extension/RunnerReturnHash:
|
|
42
14
|
Enabled: false
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
15
|
+
|
|
16
|
+
# migrations/ directory exists under data/; cop is checking the wrong path
|
|
17
|
+
Legion/Extension/DataRequiredWithoutMigrations:
|
|
46
18
|
Enabled: false
|
|
47
19
|
|
|
48
|
-
|
|
20
|
+
# Runner modules use Legion::JSON directly; helper mixin not included in standalone modules
|
|
21
|
+
Legion/HelperMigration/DirectJson:
|
|
49
22
|
Enabled: false
|
|
50
23
|
|
|
24
|
+
# Spec helper defines empty stub classes for actor testing
|
|
51
25
|
Lint/EmptyClass:
|
|
52
26
|
Exclude:
|
|
53
27
|
- 'spec/**/*'
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -157,7 +157,7 @@ module Legion
|
|
|
157
157
|
challenger_confidence: llm_confidence
|
|
158
158
|
)
|
|
159
159
|
rescue StandardError => e
|
|
160
|
-
|
|
160
|
+
log.warn("Challenge LLM call failed: #{e.message}")
|
|
161
161
|
Data::Model::SynapseChallenge.create(
|
|
162
162
|
proposal_id: proposal.id, challenger_type: 'llm',
|
|
163
163
|
verdict: 'abstain', reasoning: "LLM error: #{e.message}",
|
|
@@ -210,7 +210,7 @@ module Legion
|
|
|
210
210
|
)
|
|
211
211
|
{ output: result[:success] ? Legion::JSON.dump(result[:result]) : nil }
|
|
212
212
|
rescue StandardError => e
|
|
213
|
-
|
|
213
|
+
log.warn("Proposal LLM call failed: #{e.message}")
|
|
214
214
|
{ output: nil }
|
|
215
215
|
end
|
|
216
216
|
|
|
@@ -6,7 +6,7 @@ require_relative 'synapse/client'
|
|
|
6
6
|
module Legion
|
|
7
7
|
module Extensions
|
|
8
8
|
module Synapse
|
|
9
|
-
extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
|
|
9
|
+
extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core, false
|
|
10
10
|
|
|
11
11
|
def self.remote_invocable?
|
|
12
12
|
false
|