roast-ai 0.1.2 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 303226cd96dea4eb1edad783b8dd44c6457bc7ee5f639e31819800a0c5927aec
4
- data.tar.gz: b00fa9b11708139368b0902a9992fb044397002b30323ac0aa19d8d47ada1e8c
3
+ metadata.gz: e40b7ab08d8d4c70d9d884c2c76027ad1426bcdacbae92121b162cc33aa45548
4
+ data.tar.gz: 936ab6e40dfbfbcef29f68edbb1a7ea41a895d719782f2125c24f47e71005eeb
5
5
  SHA512:
6
- metadata.gz: e109b56b0c3ae1c192e2e427be837c37e20ec445021fbebe3cd84570b65acbc031d1c875c9ab38be9f01a62a1e64cabcef04e8eade793dbf28994b5147f5b0cd
7
- data.tar.gz: 8f51781fdb486a77b4e03daee346e7efd6e932e57a0c2f803a73dded9d3fc3941b27653da1b3b05664eb7b8d47169e238b5c4a32d9b64fb69ee7f278715ab1b4
6
+ metadata.gz: 7c8de8b0ac1ee9496a869d056fb75de2101b4f1b674bde76c703a913ae749d22c650b44c783e8ebff4127862baa168e4ba1680f1e62bd60574068ba53c88f154
7
+ data.tar.gz: f770140fee92dd287d171c52b61d437bbbb3ad7bbe0edc121c68cdb71d4b7628ebbbe1e56946cd8a251ecb991e803e79e62f7d084d59a0efc0efc2ce30b13769
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.3] - 2024-05-10
9
+
10
+ ### Fixed
11
+ - ReadFile tool now handles absolute and relative paths correctly
12
+
13
+ [0.1.3]: https://github.com/Shopify/roast/releases/tag/v0.1.3
14
+
15
+
8
16
  ## [0.1.2] - 2024-05-09
9
17
 
10
18
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roast-ai (0.1.2)
4
+ roast-ai (0.1.3)
5
5
  activesupport (~> 8.0)
6
6
  faraday-retry
7
7
  json-schema
data/README.md CHANGED
@@ -15,7 +15,7 @@ Roast provides a structured, declarative approach to building AI workflows with:
15
15
  - **Step customization**: Steps can be fully configured with their own AI models and parameters.
16
16
  - **Session replay**: Rerun previous sessions starting at a specified step to speed up development time
17
17
  - **Parallel execution**: Run multiple steps concurrently to speed up workflow execution
18
- - **Function caching:**: Flexibly cache the results of tool function calls to speed up workflows
18
+ - **Function caching**: Flexibly cache the results of tool function calls to speed up workflows
19
19
  - **Extensive instrumentation**: Monitor and track workflow execution, AI calls, and tool usage ([see instrumentation documentation](docs/INSTRUMENTATION.md))
20
20
 
21
21
  ## What does it look like?
@@ -423,13 +423,13 @@ your-project/
423
423
  ## Installation
424
424
 
425
425
  ```bash
426
- $ gem install roast
426
+ $ gem install roast-ai
427
427
  ```
428
428
 
429
429
  Or add to your Gemfile:
430
430
 
431
431
  ```ruby
432
- gem 'roast'
432
+ gem 'roast-ai'
433
433
  ```
434
434
 
435
435
  ## Development
@@ -32,11 +32,12 @@ module Roast
32
32
  end
33
33
 
34
34
  def call(path)
35
+ path = File.expand_path(path)
35
36
  Roast::Helpers::Logger.info("📖 Reading file: #{path}\n")
36
37
  if File.directory?(path)
37
38
  %x(ls -la #{path})
38
39
  else
39
- File.read(File.join(Dir.pwd, path))
40
+ File.read(path)
40
41
  end
41
42
  rescue StandardError => e
42
43
  "Error reading file: #{e.message}".tap do |error_message|
data/lib/roast/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Roast
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roast-ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify