omniai-anthropic 2.0.0 → 2.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01ccd0fcd0d33004c8a3f553f02d98dad9eb45830ea20382390331017a52bfbd
|
4
|
+
data.tar.gz: 8b0dd8c4dd5a8e561b273be8d7cef6258a59a81bd082d8f2a1fefe015ddccdf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d390e445637a515eee0437b193943a35faef8d70b65b7c93e58f0ed2893c6466787b10882896adfde878527d33d6fdd03394ccecbb8bc08897ad46312b4ab1f5
|
7
|
+
data.tar.gz: 47f551fec380f7dca59480556c669a7c0eec5d12948942a57b452334141c1ae90d719e43420be62809a190e5d97224d4867636ed2db347ab8e19616aab8a4a14
|
@@ -127,7 +127,7 @@ module OmniAI
|
|
127
127
|
content = @data["content"][index]
|
128
128
|
content["text"] += data["delta"]["text"]
|
129
129
|
|
130
|
-
block&.call(OmniAI::Chat::Delta.new(text:
|
130
|
+
block&.call(OmniAI::Chat::Delta.new(text:))
|
131
131
|
end
|
132
132
|
|
133
133
|
# Handler for Type::CONTENT_BLOCK_DELTA w/ ContentBlockDeltaType::INPUT_JSON_DELTA
|
@@ -93,8 +93,8 @@ module OmniAI
|
|
93
93
|
# @return [Array<Hash>]
|
94
94
|
def perform(action:, text: nil, coordinate: nil) # rubocop:disable Metrics/CyclomaticComplexity
|
95
95
|
case action
|
96
|
-
when Action::KEY then key(text:
|
97
|
-
when Action::TYPE then type(text:
|
96
|
+
when Action::KEY then key(text:)
|
97
|
+
when Action::TYPE then type(text:)
|
98
98
|
when Action::CURSOR_POSITION then mouse_location
|
99
99
|
when Action::LEFT_CLICK then click(button: Button::LEFT)
|
100
100
|
when Action::MIDDLE_CLICK then click(button: Button::MIDDLE)
|
@@ -182,7 +182,7 @@ module OmniAI
|
|
182
182
|
tempfile.rewind
|
183
183
|
data = Base64.encode64(tempfile.read)
|
184
184
|
|
185
|
-
{ type: "base64", media_type: "image/png", data:
|
185
|
+
{ type: "base64", media_type: "image/png", data: }
|
186
186
|
ensure
|
187
187
|
tempfile.close
|
188
188
|
tempfile.unlink
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniai-anthropic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sylvestre
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-28 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: event_stream_parser
|
@@ -29,14 +29,14 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '2.
|
32
|
+
version: '2.2'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '2.
|
39
|
+
version: '2.2'
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: zeitwerk
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|