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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfd1dbb3347db56af88309b5661ed09b4120f7f069812e1f6d14511a475c13f4
4
- data.tar.gz: a3be8f866071c5d07241aa9ee237df07647e7af0b0b86bee06e46e041b4eaa18
3
+ metadata.gz: f71e270f6f8d83f96a6f89065a26276e6f124ca7ae367e8ce9215af3076636c9
4
+ data.tar.gz: b76157cc3ba0d14a2425591c36a6224de9570f8962fa64ea5bdde830dc0f96b6
5
5
  SHA512:
6
- metadata.gz: b0e8f423e03f469f18381ba52c8ccbd10e944700164a7291de6f2ebb1c0686c16e0e1c7abaade8602cc6a45bdcf28fa8c431336ab2209c49c123fb9ad326115d
7
- data.tar.gz: f2794d6df501c3f3cde10107776e7c93427914c58b9662d3084c3515624180407b685151408c8480e8691c322b9a3b52724b97b830ef8b63cbc1e218d3b649cb
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: "demo")
11
+ def initialize(args, provider: "default")
12
12
  @provider = provider
13
13
  @provider_options = {}
14
14
  @parser = OptionParser.new(USAGE) { |o| describe_options(o) }
@@ -43,4 +43,5 @@ end
43
43
 
44
44
  Elelem.configure do |config|
45
45
  config.provider(:demo) { Elelem::DemoProvider.new }
46
+ config.provider(:default) { Elelem::DemoProvider.new } unless config.names.include?("default")
46
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Elelem
4
- VERSION = "0.18.0"
4
+ VERSION = "0.19.0"
5
5
  end
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: "demo", **) = Config.build_session(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: "demo", provider_options: {}, **)
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.18.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 minimal coding harness.
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 minimal coding harness for LLMs.
266
+ summary: A coding agent you can read.
266
267
  test_files: []