botrytis 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 98b2aad1fbfde0c8929d30456317928a419706b22bb3e27b04427ec31be28fd9
4
+ data.tar.gz: 365b2b618522e77e4f913e03759267555880deebf27e86a2e68cc52a014a791b
5
+ SHA512:
6
+ metadata.gz: 51d072e08697f9988c3ee17df20b484798e63c0ad7eebb12d75296de40018156a249e851fda897d939cc2e60efbaffdfbd1624d08e43b92a3a8aa58f293fbbc4
7
+ data.tar.gz: 50b91ccf5c4deb8d9b0015a26e910e816fda2f3b1a8a10a331bd4478cdd3c03b456c34c4e73f5cc2edff954d8eebedc0135ddb61c451c445bf7291201ecc571f
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sublayer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # Botrytis BDD
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,13 @@
1
+ module Botrytis
2
+ class Configuration
3
+ attr_accessor :llm_provider, :model_name, :confidence_threshold, :cache_enabled, :cache_directory
4
+
5
+ def initialize
6
+ @llm_provider = :openai
7
+ @model_name = "gpt-4o"
8
+ @confidence_threshold = 0.7
9
+ @cache_enabled = true
10
+ @cache_directory = File.join(Dir.pwd, ".botrytis_cache")
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ require 'sublayer'
2
+
3
+ module Botrytis
4
+ class SemanticMatchGenerator < Sublayer::Generators::Base
5
+ llm_output_adapter type: :named_strings,
6
+ name: "step_match_result",
7
+ description: "Results of semantic matching for a cucumber step",
8
+ attributes: [
9
+ { name: "match_found", description: "
10
+ ]
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Botrytis
4
+ VERSION = "0.1.0"
5
+ end
data/lib/botrytis.rb ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "botrytis/version"
4
+ require_relative "botrytis/semantic_matcher"
5
+ require_relative "botrytis/configuration"
6
+ require_relative "botrytis/formatter"
7
+
8
+ module Botrytis
9
+ class Error < StandardError; end
10
+
11
+ class << self
12
+ attr_writer :configuration
13
+
14
+ def configuration
15
+ @configuration ||= Configuration.new
16
+ end
17
+
18
+ def configure
19
+ yield(configuration)
20
+ end
21
+ end
22
+ end
data/sig/botrytis.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Botrytis
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: botrytis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Scott Werner
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: cucumber
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '9'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '9'
26
+ - !ruby/object:Gem::Dependency
27
+ name: sublayer
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.2.8
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 0.2.8
40
+ - !ruby/object:Gem::Dependency
41
+ name: rspec
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ description: Botrytis provides semantic matching for Cucumber step definitions using
55
+ LLMs
56
+ email:
57
+ - scott@sublayer.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".rspec"
63
+ - LICENSE
64
+ - README.md
65
+ - Rakefile
66
+ - lib/botrytis.rb
67
+ - lib/botrytis/configuration.rb
68
+ - lib/botrytis/semantic_match_generator.rb
69
+ - lib/botrytis/version.rb
70
+ - sig/botrytis.rbs
71
+ homepage: https://github.com/sublayerapp/botrytis
72
+ licenses: []
73
+ metadata:
74
+ homepage_uri: https://github.com/sublayerapp/botrytis
75
+ source_code_uri: https://github.com/sublayerapp/botrytis
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 3.1.0
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubygems_version: 3.6.9
91
+ specification_version: 4
92
+ summary: LLM-powered fuzzy matching for your cucumber steps
93
+ test_files: []