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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b3b4eb6c020db58b365cb68881b30440eb11e30513237a3ff7dca7260274d3e
4
- data.tar.gz: b5382e6983a58bd732c428c311072ffacd6fbece4d65a47e32033ce70a219610
3
+ metadata.gz: 3e563672ebb8a323e88e6254ba417bdda3f602d133fc99fcc73d366a21065f95
4
+ data.tar.gz: 74c196334483c2e1d4b4222cb15ce927be00c33361c92c24f599f21cceaaf1c6
5
5
  SHA512:
6
- metadata.gz: 84868bddc15e283d49b6ff586f90a5eb6abfc8ea09f53a8ab22a656cf09e5198ae44a08eff90a399097c9a321de2c37546c514220607d9bc643f8309040169df
7
- data.tar.gz: 1c27771f8ace9608d603f27e96bad758b901fbe90596ed69d679793ee5ac5603b7da7086e6c0fb1ed924426d81ad4468bbe380a0bda9a080ab2888599f4c45e6
6
+ metadata.gz: ac84a177aa2fc34a8540938a578cfdd6e72dfb8529e0e2ba1dc85a3761e95f7397bdd7433c0a27b140b0eed5f8a569bde42f454d628788659ec9e8999cbe98d2
7
+ data.tar.gz: 007e58b6fa9b71959efde9ab05aab150df41d98857b9eb582a0858bd1156df84f05fb4e4b9d2e9c519b8445c04190478621497522bdf259551eadf7b1bc4542d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
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
- FileUtils.mkdir_p dir + "/locales"
11
- FileUtils.copy_entry source + "/locales", dest + "/locales"
12
- FileUtils.cp(source+"/bin/console", dest)
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__)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = "0.2.1"
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.1
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