ox-ai-workers 0.2.0 → 0.2.2

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: b6d3516a02ebb121bdf02d3de27e78ca5c71b893efa9a25b69217b9260819f7a
4
- data.tar.gz: 4ef7a7ef32d76506b5eb4e852d77a0cf979ba40c2ed74d4635081a774bf65d20
3
+ metadata.gz: 3e563672ebb8a323e88e6254ba417bdda3f602d133fc99fcc73d366a21065f95
4
+ data.tar.gz: 74c196334483c2e1d4b4222cb15ce927be00c33361c92c24f599f21cceaaf1c6
5
5
  SHA512:
6
- metadata.gz: a432bb010d43b81c4041dd01ef5bf141ad3c2a61a44690dad1d4bd20efd2e206d8e28f1618c8f6137517a8366f0e0fe25a446893e3815393599a5ba5bc34434c
7
- data.tar.gz: 7a3932acb7227a48970deed5f131d016f83340f137a97efc1fb9b9b98ba6a8668f7ce9cf5247d4540d9ecebd3388af82d4a2cb08f31a987ba85b15d208fbb82e
6
+ metadata.gz: ac84a177aa2fc34a8540938a578cfdd6e72dfb8529e0e2ba1dc85a3761e95f7397bdd7433c0a27b140b0eed5f8a569bde42f454d628788659ec9e8999cbe98d2
7
+ data.tar.gz: 007e58b6fa9b71959efde9ab05aab150df41d98857b9eb582a0858bd1156df84f05fb4e4b9d2e9c519b8445c04190478621497522bdf259551eadf7b1bc4542d
data/CHANGELOG.md CHANGED
@@ -1,8 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.2] - 2024-07-30
4
+ - fix cli
5
+ - better start script (cli: .oxaiworkers-local/start)
6
+
3
7
  ## [0.2.0] - 2024-07-30
4
8
  - fix missing require 'open3'
5
9
  - fix Steps
10
+ - cli: oxaiworkers init
6
11
 
7
12
  ## [0.1.1] - 2024-07-29
8
13
 
data/README.md CHANGED
@@ -80,6 +80,24 @@ iterator = OxAiWorkers::Iterator.new(
80
80
  iterator.addTask("Show files in current directory.")
81
81
  ```
82
82
 
83
+ ## Command Line Interface (CLI)
84
+
85
+ 1. Navigate to the required directory.
86
+
87
+ 2. Initialize with the command:
88
+
89
+ ```sh
90
+ oxaiworkers init
91
+ ```
92
+
93
+ This will create a `.oxaiworkers-local` directory with the necessary initial settings.
94
+
95
+ 3. Modify the settings as needed and run:
96
+
97
+ ```sh
98
+ .oxaiworkers-local/start
99
+ ```
100
+
83
101
  ## Features
84
102
 
85
103
  - **Generative Intelligence**: Leverages OpenAI's capabilities to enhance task execution.
data/exe/oxaiworkers ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'fileutils'
4
+
5
+ if ARGV.first == "init"
6
+ dir = '.oxaiworkers-local'
7
+ dest = "#{Dir.pwd}/#{dir}"
8
+ source = File.expand_path('../../', __FILE__)
9
+
10
+ unless Dir.exist? dir
11
+ FileUtils.mkdir_p dir + "/locales"
12
+ FileUtils.copy_entry source + "/locales", dest + "/locales"
13
+ FileUtils.cp(source+"/exe/start", dest)
14
+ puts "A #{dir} directory was created with the necessary initial settings."
15
+ puts "Modify the settings as needed and run:"
16
+ puts "#{dir}/start"
17
+ else
18
+ puts "Error: The #{dir} directory already exists."
19
+ end
20
+ end
data/exe/start ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ require "i18n"
4
+ I18n.load_path += Dir[File.expand_path(".oxaiworkers-local/locales") + "/*.yml"]
5
+ I18n.default_locale = :en
6
+
7
+ # Start your code here
8
+ require "ox-ai-workers"
9
+ require "irb"
10
+
11
+ puts "OxAiWorkers #{OxAiWorkers::VERSION}"
12
+
13
+ @assistant = OxAiWorkers::Assistant::Sysop.new()
14
+
15
+ IRB.start(__FILE__)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox-ai-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev
@@ -107,7 +107,8 @@ description: |2
107
107
  - Ease of Use: Intuitive syntax and documentation make it easy to get started with the gem.
108
108
  email:
109
109
  - smolev@me.com
110
- executables: []
110
+ executables:
111
+ - oxaiworkers
111
112
  extensions: []
112
113
  extra_rdoc_files: []
113
114
  files:
@@ -116,6 +117,8 @@ files:
116
117
  - LICENSE
117
118
  - README.md
118
119
  - Rakefile
120
+ - exe/oxaiworkers
121
+ - exe/start
119
122
  - lib/ox-ai-workers.rb
120
123
  - lib/oxaiworkers/assistant/module_base.rb
121
124
  - lib/oxaiworkers/assistant/sysop.rb