sylvia 0.2.0 → 0.2.1
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/sylvia/cli.rb +4 -1
- data/lib/sylvia/version.rb +1 -1
- data/sylvia.gemspec +1 -0
- metadata +15 -2
- data/Gemfile.lock +0 -91
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3400a3b8c14a722b2319389c619bbcb5fb141c0900b53eff8ab3cb0d3dfe0e4c
|
4
|
+
data.tar.gz: 734a5c7955a4f6210d3d7d48e87727c8c9654d3c2ce2db19ce1c0f4ffd5d9807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a5beda98de772f434ed84d85776925105b136ab26ab3a92f38175b615d2cfaf8c9b73181d7a0cba8f3cfff775a537a5d904264be38d6c94ffe68e887c40ab2
|
7
|
+
data.tar.gz: 9e0784427701bac5cbf4b8d6ada49069cc618da76aec4c55f518a09531735d09e4175c3c89a070b6f04e6a8a9783f1344a028f33aeed3c0c18b40f274e3614ae
|
data/lib/sylvia/cli.rb
CHANGED
@@ -27,6 +27,7 @@ module Sylvia
|
|
27
27
|
def self.setup_llm
|
28
28
|
content = <<~RUBY
|
29
29
|
require 'ruby_llm'
|
30
|
+
require 'tty-markdown'
|
30
31
|
require 'dotenv'
|
31
32
|
Dotenv.load
|
32
33
|
|
@@ -38,7 +39,9 @@ module Sylvia
|
|
38
39
|
|
39
40
|
response = chat.ask "how to improve this code", with: ["assets/example.rb", "assets/example2.rb"]
|
40
41
|
|
41
|
-
|
42
|
+
markdown = response.content.to_s
|
43
|
+
|
44
|
+
puts TTY::Markdown.parse(markdown)
|
42
45
|
RUBY
|
43
46
|
|
44
47
|
File.write(FILE_NAME, content)
|
data/lib/sylvia/version.rb
CHANGED
data/sylvia.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sylvia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whdzera
|
@@ -37,6 +37,20 @@ dependencies:
|
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: tty-markdown
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
40
54
|
- !ruby/object:Gem::Dependency
|
41
55
|
name: syntax_tree
|
42
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +81,6 @@ files:
|
|
67
81
|
- CHANGELOG.md
|
68
82
|
- CODE_OF_CONDUCT.md
|
69
83
|
- Gemfile
|
70
|
-
- Gemfile.lock
|
71
84
|
- LICENSE.txt
|
72
85
|
- README.md
|
73
86
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
sylvia (0.1.0)
|
5
|
-
dotenv
|
6
|
-
ruby_llm
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
base64 (0.3.0)
|
12
|
-
date (3.4.1)
|
13
|
-
diff-lcs (1.6.2)
|
14
|
-
dotenv (3.1.8)
|
15
|
-
erb (5.0.2)
|
16
|
-
event_stream_parser (1.0.0)
|
17
|
-
faraday (2.13.4)
|
18
|
-
faraday-net_http (>= 2.0, < 3.5)
|
19
|
-
json
|
20
|
-
logger
|
21
|
-
faraday-multipart (1.1.1)
|
22
|
-
multipart-post (~> 2.0)
|
23
|
-
faraday-net_http (3.4.1)
|
24
|
-
net-http (>= 0.5.0)
|
25
|
-
faraday-retry (2.3.2)
|
26
|
-
faraday (~> 2.0)
|
27
|
-
io-console (0.8.1)
|
28
|
-
irb (1.15.2)
|
29
|
-
pp (>= 0.6.0)
|
30
|
-
rdoc (>= 4.0.0)
|
31
|
-
reline (>= 0.4.2)
|
32
|
-
json (2.13.2)
|
33
|
-
logger (1.7.0)
|
34
|
-
marcel (1.0.4)
|
35
|
-
multipart-post (2.4.1)
|
36
|
-
net-http (0.6.0)
|
37
|
-
uri
|
38
|
-
pp (0.6.2)
|
39
|
-
prettyprint
|
40
|
-
prettier_print (1.2.1)
|
41
|
-
prettyprint (0.2.0)
|
42
|
-
psych (5.2.6)
|
43
|
-
date
|
44
|
-
stringio
|
45
|
-
rake (13.3.0)
|
46
|
-
rdoc (6.14.2)
|
47
|
-
erb
|
48
|
-
psych (>= 4.0.0)
|
49
|
-
reline (0.6.2)
|
50
|
-
io-console (~> 0.5)
|
51
|
-
rspec (3.13.0)
|
52
|
-
rspec-core (~> 3.13.0)
|
53
|
-
rspec-expectations (~> 3.13.0)
|
54
|
-
rspec-mocks (~> 3.13.0)
|
55
|
-
rspec-core (3.13.4)
|
56
|
-
rspec-support (~> 3.13.0)
|
57
|
-
rspec-expectations (3.13.5)
|
58
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
59
|
-
rspec-support (~> 3.13.0)
|
60
|
-
rspec-mocks (3.13.5)
|
61
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
62
|
-
rspec-support (~> 3.13.0)
|
63
|
-
rspec-support (3.13.4)
|
64
|
-
ruby_llm (1.5.1)
|
65
|
-
base64
|
66
|
-
event_stream_parser (~> 1)
|
67
|
-
faraday (>= 1.10.0)
|
68
|
-
faraday-multipart (>= 1)
|
69
|
-
faraday-net_http (>= 1)
|
70
|
-
faraday-retry (>= 1)
|
71
|
-
marcel (~> 1.0)
|
72
|
-
zeitwerk (~> 2)
|
73
|
-
stringio (3.1.7)
|
74
|
-
syntax_tree (6.2.0)
|
75
|
-
prettier_print (>= 1.2.0)
|
76
|
-
uri (1.0.3)
|
77
|
-
zeitwerk (2.7.3)
|
78
|
-
|
79
|
-
PLATFORMS
|
80
|
-
ruby
|
81
|
-
x86_64-linux
|
82
|
-
|
83
|
-
DEPENDENCIES
|
84
|
-
irb
|
85
|
-
rake (~> 13.0)
|
86
|
-
rspec (~> 3.0)
|
87
|
-
sylvia!
|
88
|
-
syntax_tree (= 6.2.0)
|
89
|
-
|
90
|
-
BUNDLED WITH
|
91
|
-
2.6.9
|