ox-ai-workers 0.2.1 → 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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +18 -0
- data/exe/oxaiworkers +10 -3
- data/exe/start +15 -0
- data/lib/oxaiworkers/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e563672ebb8a323e88e6254ba417bdda3f602d133fc99fcc73d366a21065f95
|
4
|
+
data.tar.gz: 74c196334483c2e1d4b4222cb15ce927be00c33361c92c24f599f21cceaaf1c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac84a177aa2fc34a8540938a578cfdd6e72dfb8529e0e2ba1dc85a3761e95f7397bdd7433c0a27b140b0eed5f8a569bde42f454d628788659ec9e8999cbe98d2
|
7
|
+
data.tar.gz: 007e58b6fa9b71959efde9ab05aab150df41d98857b9eb582a0858bd1156df84f05fb4e4b9d2e9c519b8445c04190478621497522bdf259551eadf7b1bc4542d
|
data/CHANGELOG.md
CHANGED
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
CHANGED
@@ -7,7 +7,14 @@ if ARGV.first == "init"
|
|
7
7
|
dest = "#{Dir.pwd}/#{dir}"
|
8
8
|
source = File.expand_path('../../', __FILE__)
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
13
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__)
|
data/lib/oxaiworkers/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Smolev
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- README.md
|
119
119
|
- Rakefile
|
120
120
|
- exe/oxaiworkers
|
121
|
+
- exe/start
|
121
122
|
- lib/ox-ai-workers.rb
|
122
123
|
- lib/oxaiworkers/assistant/module_base.rb
|
123
124
|
- lib/oxaiworkers/assistant/sysop.rb
|