llmed 0.1.1 → 0.1.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/exe/llmed +5 -4
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3c14772724d875ead130cb19f08a232b34e197d18a27f062695bbb0bf14e091
4
- data.tar.gz: b6e061736119a7c1550d45a517f1dec49206be09a2b0d63ce75d49fb5ccb0787
3
+ metadata.gz: 116ce17bb90d2908505272e57f0299e97b1ba13c155cdf2c4a14531bb2ef10e5
4
+ data.tar.gz: c57f0ff71d1d3e6de806056cd395f70dc5debbe2032d6f7e1780aebe044229a2
5
5
  SHA512:
6
- metadata.gz: 7e7e7ae58ce1b736bbc38973b36263924d434da42a11bf5230e3565c2fd2d5f44d4f150e326910c2b6cedc5c2872714ad95c4f2fc4e3a02a8f79c66d1ecd7124
7
- data.tar.gz: 72afee21c7172ce2ff848bdbdf920aea4f5fcd76a339b2039ca588f9be2e88ec089a1e07982ef6288724a1a93c61a56b9468daac9cc240d51b9129c459d8f0b0
6
+ metadata.gz: 82c421317ae0821912a5f7670c31679955dcb72af477bdafd4c498be314509ca46fb931d5137370de43e904b7362f91276a1f676b4f8afe56af972bc7f4ba32a
7
+ data.tar.gz: af38198d4280f91e5e9343b0b014e2a0def5e7783970b58bbd57b1741e386c9e372fad0c41f93ccddda90201da279813d1c1359e4b7ec7fe05d8a03f7d4652b4
data/exe/llmed CHANGED
@@ -10,17 +10,18 @@ release_dir = output_dir
10
10
  template = <<-TMP
11
11
  set_llm provider: :openai, api_key: ENV['OPENAI_API_KEY'], model: 'gpt-4o'
12
12
 
13
- application "hi world", language: '<HERE LANGUAGE>', output_file: "<HERE NAME>.rb" do
13
+ # Increment the RELEASE number once you approve the output.
14
+ application "hi world", release: nil, language: '<HERE LANGUAGE>', output_file: "<HERE NAME>.ollmed" do
14
15
  context "main" do
15
16
  <<-LLM
16
- Application do print 'hi world!'.
17
+ Show to user 'hi world!'.
17
18
  LLM
18
19
  end
19
20
  end
20
21
  TMP
21
22
 
22
23
  OptionParser.new do |parser|
23
- parser.banner = "Usage: llmed [options]"
24
+ parser.banner = "Usage: llmed [options] <application file .llmed or stdin>"
24
25
  parser.on_tail("-h", "--help", "Show this message") do
25
26
  puts parser
26
27
  exit
@@ -38,7 +39,7 @@ OptionParser.new do |parser|
38
39
  parser.on('--release-dir DIR', String) do |path|
39
40
  release_dir = path
40
41
  end
41
- end
42
+ end.parse!
42
43
 
43
44
  source_path = ARGF.read
44
45
  if ARGF.respond_to?(:path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llmed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovany Leandro G.C
@@ -66,7 +66,9 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.75'
69
- description: LLM Execution Development
69
+ description: Use this 'compiler' to build software using LLMs in a controlled way.
70
+ In classical terms, the LLM is the compiler, the context description is the programming
71
+ language, and the generated output is the binary.
70
72
  email: bit4bit@riseup.net
71
73
  executables:
72
74
  - llmed
@@ -98,7 +100,5 @@ requirements: []
98
100
  rubygems_version: 3.3.15
99
101
  signing_key:
100
102
  specification_version: 4
101
- summary: Use this 'compiler' to build software using LLMs in a controlled way. In
102
- classical terms, the LLM is the compiler, the context description is the programming
103
- language, and the generated output is the binary.
103
+ summary: LLM Execution Development
104
104
  test_files: []