elelem 0.18.0 → 0.19.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 +4 -4
- data/lib/elelem/cli.rb +1 -1
- data/lib/elelem/plugins/demo.rb +1 -0
- data/lib/elelem/version.rb +1 -1
- data/lib/elelem.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f71e270f6f8d83f96a6f89065a26276e6f124ca7ae367e8ce9215af3076636c9
|
|
4
|
+
data.tar.gz: b76157cc3ba0d14a2425591c36a6224de9570f8962fa64ea5bdde830dc0f96b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37274ab558b384cc506367de967e1e69d5592217b088d901e0baca0cc4a54028c33540d2bc9e60ca6bab076cf5692a5869123f1992ab0505363e177c394a759a
|
|
7
|
+
data.tar.gz: cd385fea17dcbcb7bbd96aa3941b0122c7af56830f053714741a852b7b44c6ce0e5d814dbc50b3ce4c22749bb1dbed46e499b91cc2b9009643ef324ceeebd0f2
|
data/lib/elelem/cli.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Elelem
|
|
|
8
8
|
USAGE = "Usage: #{File.basename($PROGRAM_NAME)} [options] [prompt]\n\nOptions:".freeze
|
|
9
9
|
private_constant :USAGE
|
|
10
10
|
|
|
11
|
-
def initialize(args, provider: "
|
|
11
|
+
def initialize(args, provider: "default")
|
|
12
12
|
@provider = provider
|
|
13
13
|
@provider_options = {}
|
|
14
14
|
@parser = OptionParser.new(USAGE) { |o| describe_options(o) }
|
data/lib/elelem/plugins/demo.rb
CHANGED
data/lib/elelem/version.rb
CHANGED
data/lib/elelem.rb
CHANGED
|
@@ -38,7 +38,7 @@ module Elelem
|
|
|
38
38
|
LOG_SIZE_LIMIT = 1024 * 1024
|
|
39
39
|
private_constant :OLD_LOGS_KEPT, :LOG_SIZE_LIMIT
|
|
40
40
|
|
|
41
|
-
def self.build(provider: "
|
|
41
|
+
def self.build(provider: "default", **) = Config.build_session(provider, **)
|
|
42
42
|
def self.start(**) = repl(build(**), **).run
|
|
43
43
|
def self.ask(prompt, output: NullOutput.new, **) = build(input: NullInput.new, output:, **).turn(prompt)
|
|
44
44
|
|
|
@@ -48,7 +48,7 @@ module Elelem
|
|
|
48
48
|
sock.each_client { repl.run }
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
def self.repl(session, provider: "
|
|
51
|
+
def self.repl(session, provider: "default", provider_options: {}, **)
|
|
52
52
|
Repl.new(session, provider:, model: provider_options[:model])
|
|
53
53
|
end
|
|
54
54
|
private_class_method :repl
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elelem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mo khan
|
|
@@ -191,7 +191,8 @@ dependencies:
|
|
|
191
191
|
- - "~>"
|
|
192
192
|
- !ruby/object:Gem::Version
|
|
193
193
|
version: '0.3'
|
|
194
|
-
description: A
|
|
194
|
+
description: A small agent loop in Ruby, with read, write and execute tools. Plugins
|
|
195
|
+
add more tools, commands and models.
|
|
195
196
|
email:
|
|
196
197
|
- mo@mokhan.ca
|
|
197
198
|
executables:
|
|
@@ -262,5 +263,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
262
263
|
requirements: []
|
|
263
264
|
rubygems_version: 4.0.20
|
|
264
265
|
specification_version: 4
|
|
265
|
-
summary: A
|
|
266
|
+
summary: A coding agent you can read.
|
|
266
267
|
test_files: []
|