e2b 0.3.0 → 0.3.1

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: 103831a7280b1f523e4a7299820e40b328d0fd840f65850f42336f8c8b0e23ee
4
- data.tar.gz: d079861b11c20bc1e2280badc7e7e9032810a736a7bbca02a433802be27b2053
3
+ metadata.gz: 37cf3532a5666193a92732f369d5ded3df738879e752fe48d349f9a7f6c7fa56
4
+ data.tar.gz: 04b089d86b77bb0b5aca372dba44959377619f7559e4cdae739bd3e8f90b043d
5
5
  SHA512:
6
- metadata.gz: 9fa1e68c98160a18f31afb994e66fc55d20647cc0769f80afbc8ab6fccc45df2c2e7d0f0033a37dd3e7a1571d373b0cd92060f98f6ab675241aa61309e0e70d9
7
- data.tar.gz: 759cffe0f051858f7f851f2f7599d495b24ca6abad1d313bed0cc96a7794e2a47eecacfdd6ecc81577d6fba18c9094824ec235022b8746047d630dce697ace0c
6
+ metadata.gz: ac811b85b04472ab4993f5aea6b1e142cd4c977d42628025de060454dba5ca8c78ed70507c6f34439a5d8bd77f4fdb10e38a1926dcff619f5fc97698d5eb6e9f
7
+ data.tar.gz: 13544e102534bd82c34d4989669d1b81c330da748a4900dbe9199a9ae87f6cf4454c266a9d904c4e493a628ce92ca23f7686f4431231514010fe2e403ebfd39e
data/README.md CHANGED
@@ -132,6 +132,7 @@ sandbox = client.create(template: "base")
132
132
  | `list` | List running processes |
133
133
  | `kill(pid)` | Kill a process |
134
134
  | `send_stdin(pid, data)` | Send stdin to a process |
135
+ | `close_stdin(pid)` | Close stdin (send EOF) |
135
136
  | `connect(pid)` | Connect to running process |
136
137
 
137
138
  ### Filesystem (`sandbox.files`)
@@ -166,6 +166,22 @@ module E2B
166
166
  timeout: request_timeout || 30)
167
167
  end
168
168
 
169
+ # Close the stdin of a running process.
170
+ #
171
+ # After calling this, no more input can be sent to the process via
172
+ # {#send_stdin}.
173
+ #
174
+ # @param pid [Integer] Process ID
175
+ # @param request_timeout [Integer, nil] Request timeout in seconds
176
+ # @return [void]
177
+ # @raise [E2B::E2BError] if the process is not found
178
+ def close_stdin(pid, request_timeout: nil, headers: nil)
179
+ envd_rpc("process.Process", "CloseStdin",
180
+ body: { process: { pid: pid } },
181
+ headers: headers,
182
+ timeout: request_timeout || 30)
183
+ end
184
+
169
185
  # Connect to a running process
170
186
  #
171
187
  # @param pid [Integer] Process ID to connect to
data/lib/e2b/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module E2B
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e2b
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tao Luo
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-03-13 00:00:00.000000000 Z
10
+ date: 2026-03-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday