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 +4 -4
- data/README.md +1 -0
- data/lib/e2b/services/commands.rb +16 -0
- data/lib/e2b/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37cf3532a5666193a92732f369d5ded3df738879e752fe48d349f9a7f6c7fa56
|
|
4
|
+
data.tar.gz: 04b089d86b77bb0b5aca372dba44959377619f7559e4cdae739bd3e8f90b043d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
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.
|
|
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-
|
|
10
|
+
date: 2026-03-20 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: faraday
|