pinesandbox 0.3.20 → 0.3.22

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.
@@ -1,5 +1,5 @@
1
1
  module PineSandbox
2
- VERSION = "0.3.20"
2
+ VERSION = "0.3.22"
3
3
  # What the SDK's requests send as User-Agent.
4
4
  USER_AGENT = "pinesandbox-ruby/#{VERSION}".freeze
5
5
  end
@@ -1,6 +1,8 @@
1
1
  require "faraday"
2
2
  require "uri"
3
3
 
4
+ require_relative "adapters/connect_aware_net_http"
5
+
4
6
  module PineSandbox
5
7
  # Resolves the per-deployment hosts from a single zone (e.g. "pinesandbox.io"):
6
8
  #
@@ -54,6 +56,7 @@ module PineSandbox
54
56
  url, host_header = dial(scheme: scheme, host: host, gateway_url: gateway_url)
55
57
  Faraday.new(url: url) do |conn|
56
58
  conn.headers["Host"] = host_header if host_header
59
+ conn.adapter Adapters::ConnectAwareNetHttp
57
60
  yield conn if block_given?
58
61
  end
59
62
  end
data/lib/pinesandbox.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require_relative "pinesandbox/version"
2
2
  require_relative "pinesandbox/clock"
3
+ require_relative "pinesandbox/timeouts"
3
4
  require_relative "pinesandbox/errors"
4
5
  require_relative "pinesandbox/operations"
5
6
  require_relative "pinesandbox/response_handler"
@@ -11,6 +12,7 @@ require_relative "pinesandbox/models/artifact"
11
12
  require_relative "pinesandbox/models/artifact_file"
12
13
  require_relative "pinesandbox/sse_frame_parser"
13
14
  require_relative "pinesandbox/control_events"
15
+ require_relative "pinesandbox/terminal_reason"
14
16
  require_relative "pinesandbox/agent_events"
15
17
  require_relative "pinesandbox/agent_turn"
16
18
  require_relative "pinesandbox/control_state"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinesandbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.20
4
+ version: 0.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pine AI
@@ -121,6 +121,7 @@ files:
121
121
  - README.md
122
122
  - Rakefile
123
123
  - lib/pinesandbox.rb
124
+ - lib/pinesandbox/adapters/connect_aware_net_http.rb
124
125
  - lib/pinesandbox/adapters/coordinator_adapter.rb
125
126
  - lib/pinesandbox/adapters/snapshot_adapter.rb
126
127
  - lib/pinesandbox/agent_events.rb
@@ -154,6 +155,7 @@ files:
154
155
  - lib/pinesandbox/models/file_entry.rb
155
156
  - lib/pinesandbox/operations.rb
156
157
  - lib/pinesandbox/response_handler.rb
158
+ - lib/pinesandbox/runtime_admission.rb
157
159
  - lib/pinesandbox/sandbox_details.rb
158
160
  - lib/pinesandbox/sandbox_handle.rb
159
161
  - lib/pinesandbox/session.rb
@@ -162,6 +164,8 @@ files:
162
164
  - lib/pinesandbox/sse_frame_parser.rb
163
165
  - lib/pinesandbox/state_hpke.rb
164
166
  - lib/pinesandbox/streamed_read.rb
167
+ - lib/pinesandbox/terminal_reason.rb
168
+ - lib/pinesandbox/timeouts.rb
165
169
  - lib/pinesandbox/version.rb
166
170
  - lib/pinesandbox/zone.rb
167
171
  - pinesandbox.gemspec