luo 0.1.20 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8704c313023d8ec033957282a0585bdbeeb51d9f76a7fe5415b48dbfff412c75
4
- data.tar.gz: 847d8309389a0f8de711bb674014b45942c64a3719a027009a309a7ca741ef63
3
+ metadata.gz: 88bde636d015458883a5e90dc2e1303b47843740c9c46aec01fc4805ed324a47
4
+ data.tar.gz: 1a6342aa5c4fc95af0334a393a86ff096209d605c2b4c26a039754a2ca37c2ac
5
5
  SHA512:
6
- metadata.gz: 240f45ee887a39ed426da4288ac259b4666a714dfa9c725417ba2b7ffe877f8bce2f58205c93847d64babcec8f59f8c2ea571a14c2a6736bc7731b9620bec788
7
- data.tar.gz: d6fd03c0f45a0e406ff4861d4aef98d669fede266960620da40886f3c25fd95ba1d97cf80b9a00a95018e1e9cffec2cd9b50f8b0296c8858fe5d5be945cfcf58
6
+ metadata.gz: 4d6c1b65328aab12bb181dbe4aa9c075469a721b2b402b1a11323a2e21271452052da3f88423627f0ce37a01928bab5a1086d0eb11e1704ef0d362903791610a
7
+ data.tar.gz: 1722fa1125d04b9e0ac977465099d932a79347a39467c52f809a1194b9d11954448fcee9cfd8d782544bcc406e41bd590d3837e7116a216482edfdeac3abea43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luo (0.1.19)
4
+ luo (0.1.22)
5
5
  dotenv (~> 2.8, >= 2.8.1)
6
6
  dry-cli (~> 1.0)
7
7
  dry-configurable (~> 1.0, >= 1.0.1)
data/README.zh.md CHANGED
@@ -3,19 +3,20 @@
3
3
 
4
4
  ## 安装
5
5
 
6
- ###
6
+ ### ruby 原生(不推荐)
7
7
  ```
8
8
  gem install luo
9
9
  ```
10
10
 
11
- ###
12
- 把下面这行代码添加到 ~/.zshrc 或者 ~/.bashrc 中
11
+ ### docker (推荐)
12
+ 1. 安装docker
13
13
 
14
14
  ```
15
- alias luo='docker run --rm -it -v "$PWD:/workdir" ghcr.io/mjason/luo:latest'
15
+ docker pull ghcr.io/mjason/luo:latest
16
+ # 把下面这句话添加到 ~/.bashrc 或者 ~/.zshrc
17
+ alias luo='docker run --rm -it -p 8888:8888 -v "$PWD:/workdir" ghcr.io/mjason/luo:latest'
16
18
  ```
17
19
 
18
-
19
20
  ## 环境变量说明
20
21
  ```Bash
21
22
  OPENAI_ACCESS_TOKEN= # OpenAI的访问令牌
@@ -34,7 +35,7 @@ XINGHUO_ACCESS_TOKEN= # 星火大模型的访问令牌
34
35
  2. cd demo
35
36
  3. luo init
36
37
  4. 修改 .env 的环境变量
37
- 5. ruby application.rb
38
+ 5. luo r
38
39
 
39
40
  ### Messages 说明
40
41
  ```ruby
@@ -15,6 +15,7 @@ module Luo
15
15
  source 'https://rubygems.org'
16
16
  gem 'luo', '~> #{version}'
17
17
  gem 'iruby'
18
+ gem 'pry'
18
19
  GEMFILE
19
20
  File.open('Gemfile', 'w') do |file|
20
21
  file.puts(gemfile)
@@ -7,10 +7,4 @@ require 'luo'
7
7
  include Luo
8
8
 
9
9
  Loader.push_dir(File.join(__dir__, 'agents'))
10
- Loader.setup
11
-
12
- begin
13
- IRuby::Kernel.instance.switch_backend!(:pry)
14
- rescue => e
15
- #
16
- end
10
+ Loader.setup
data/lib/luo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luo
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.22"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ