@cofy-x/axern-sdk 0.6.2 → 0.8.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.
Files changed (68) hide show
  1. package/README.md +28 -76
  2. package/dist/client/index.d.ts +49 -11
  3. package/dist/client/index.js +207 -58
  4. package/dist/config/index.d.ts +0 -1
  5. package/dist/config/index.js +2 -4
  6. package/dist/generated/proto.js +0 -1
  7. package/dist/index.d.ts +4 -5
  8. package/dist/index.js +1 -2
  9. package/dist/node/archive.js +1 -1
  10. package/dist/node/attached_process.d.ts +1 -2
  11. package/dist/node/attached_process.js +14 -28
  12. package/dist/node/capabilities.js +1 -1
  13. package/dist/node/client.d.ts +4 -6
  14. package/dist/node/client.js +2 -9
  15. package/dist/node/computer_use.js +1 -1
  16. package/dist/node/context.d.ts +1 -1
  17. package/dist/node/context.js +1 -1
  18. package/dist/node/exec.d.ts +1 -3
  19. package/dist/node/exec.js +1 -44
  20. package/dist/node/files.js +1 -1
  21. package/dist/node/process.d.ts +11 -6
  22. package/dist/node/process.js +45 -6
  23. package/dist/proto/axern/control/admin/v1/access.proto +12 -5
  24. package/dist/proto/axern/control/admin/v1/audit.proto +14 -16
  25. package/dist/proto/axern/control/admin/v1/node.proto +23 -67
  26. package/dist/proto/axern/control/admin/v1/reliability.proto +11 -78
  27. package/dist/proto/axern/control/capability/v1/capability.proto +34 -94
  28. package/dist/proto/axern/control/common/v1/common.proto +41 -98
  29. package/dist/proto/axern/control/environment/v1/environment.proto +42 -26
  30. package/dist/proto/axern/control/identity/v1/identity.proto +1 -1
  31. package/dist/proto/axern/control/namespace/v1/namespace.proto +2 -3
  32. package/dist/proto/axern/control/quota/v1/quota.proto +22 -32
  33. package/dist/proto/axern/control/run/v1/run.proto +25 -22
  34. package/dist/proto/axern/control/secret/v1/secret.proto +1 -3
  35. package/dist/proto/axern/control/tunnel/v1/tunnel.proto +20 -29
  36. package/dist/proto/axern/node/sandbox/v1/node.proto +106 -375
  37. package/dist/sandbox/index.d.ts +5 -11
  38. package/dist/sandbox/index.js +24 -25
  39. package/dist/sandbox/lifecycle.d.ts +1 -1
  40. package/dist/sandbox/lifecycle.js +55 -17
  41. package/dist/tunnel/connector.js +1 -1
  42. package/dist/tunnel/control.d.ts +0 -1
  43. package/dist/tunnel/control.js +0 -1
  44. package/dist/tunnel/runtime.d.ts +0 -1
  45. package/dist/tunnel/runtime.js +0 -1
  46. package/dist/tunnel/types.d.ts +0 -1
  47. package/dist/types.d.ts +4 -24
  48. package/dist/types.js +1 -3
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
  52. package/dist/proto/axern/control/admin/v1/allocation_lifecycle.proto +0 -91
  53. package/dist/proto/axern/control/admin/v1/service.proto +0 -18
  54. package/dist/proto/axern/control/admin/v1/storage.proto +0 -81
  55. package/dist/proto/axern/control/agentprofile/v1/agent_profile.proto +0 -169
  56. package/dist/proto/axern/control/catalog/v1/catalog.proto +0 -127
  57. package/dist/proto/axern/control/function/v1/function.proto +0 -130
  58. package/dist/proto/axern/control/function/v1/function_types.proto +0 -233
  59. package/dist/proto/axern/control/gateway/v1/gateway.proto +0 -92
  60. package/dist/proto/axern/control/node/v1/node_control.proto +0 -443
  61. package/dist/proto/axern/control/rollout/v1/rollout.proto +0 -344
  62. package/dist/proto/axern/control/service/v1/service.proto +0 -96
  63. package/dist/proto/axern/control/service/v1/service_event.proto +0 -47
  64. package/dist/proto/axern/control/service/v1/service_replica.proto +0 -78
  65. package/dist/proto/axern/control/service/v1/service_types.proto +0 -155
  66. package/dist/proto/axern/control/storage/v1/storage.proto +0 -107
  67. package/dist/proto/axern/control/storage/v1/storage_types.proto +0 -125
  68. package/dist/proto/axern/data/artifact/v1/artifact.proto +0 -19
@@ -3,6 +3,8 @@ syntax = "proto3";
3
3
  package axern.node.sandbox.v1;
4
4
 
5
5
  import "axern/common/file/v1/file.proto";
6
+ import "axern/control/common/v1/common.proto";
7
+ import "google/protobuf/timestamp.proto";
6
8
 
7
9
  option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/node/sandbox/v1;nodesandboxv1";
8
10
 
@@ -15,28 +17,11 @@ message ExecSpec {
15
17
  int64 timeout_seconds = 4;
16
18
  bool tty = 5;
17
19
  string user = 6;
18
- ManagedProxySpec managed_proxy = 7;
19
- }
20
-
21
- message ManagedProxySpec {
22
- string provider = 1;
23
- string upstream_base_url = 2;
24
- string upstream_bearer_token = 3;
25
- }
26
-
27
- message ManagedProxyReport {
28
- string provider = 1;
29
- int32 request_count = 2;
30
- int32 response_count = 3;
31
- int32 error_count = 4;
32
- bytes report_json = 5;
33
20
  }
34
21
 
35
22
  message ExecRequest {
36
- ExecSpec spec = 3;
37
- string allocation_id = 4;
38
- int64 attempt = 5;
39
- string execution_lease_token = 6;
23
+ ExecSpec spec = 1;
24
+ string allocation_id = 2;
40
25
  }
41
26
 
42
27
  message ExecResponse {
@@ -45,15 +30,6 @@ message ExecResponse {
45
30
  bytes stderr = 3;
46
31
  bool stdout_truncated = 4;
47
32
  bool stderr_truncated = 5;
48
- ManagedProxyReport managed_proxy_report = 6;
49
- }
50
-
51
- message ExecStreamOpen {
52
- ExecSpec spec = 3;
53
- string allocation_id = 4;
54
- int64 attempt = 5;
55
- string execution_lease_token = 6;
56
- TerminalResize initial_size = 7;
57
33
  }
58
34
 
59
35
  message TerminalResize {
@@ -61,34 +37,15 @@ message TerminalResize {
61
37
  uint32 rows = 2;
62
38
  }
63
39
 
64
- message ExecStreamRequest {
65
- oneof payload {
66
- ExecStreamOpen open = 1;
67
- bytes stdin = 2;
68
- TerminalResize resize = 3;
69
- bool close_stdin = 4;
70
- }
71
- }
72
-
73
40
  message ExecExit {
74
41
  int32 exit_code = 1;
75
42
  string message = 2;
76
- ManagedProxyReport managed_proxy_report = 3;
77
- }
78
-
79
- message ExecStreamResponse {
80
- oneof payload {
81
- bytes stdout = 1;
82
- bytes stderr = 2;
83
- ExecExit exit = 3;
84
- }
85
43
  }
86
44
 
87
45
  message ProcessOpen {
88
- ExecSpec spec = 3;
89
- string allocation_id = 4;
90
- int64 attempt = 5;
91
- string execution_lease_token = 6;
46
+ ExecSpec spec = 1;
47
+ string allocation_id = 2;
48
+ TerminalResize initial_size = 3;
92
49
  }
93
50
 
94
51
  message ProcessSignal {
@@ -116,89 +73,6 @@ message ProcessResponse {
116
73
  }
117
74
  }
118
75
 
119
- message ImageProcessMount {
120
- string sandbox_path = 1;
121
- string target_path = 2;
122
- bool readonly = 3;
123
- repeated string options = 4;
124
- }
125
-
126
- message ImageProcessSpec {
127
- string image = 1;
128
- repeated string argv = 2;
129
- map<string, string> env = 3;
130
- string cwd = 4;
131
- int64 timeout_seconds = 5;
132
- bool tty = 6;
133
- string user = 7;
134
- repeated ImageProcessMount mounts = 8;
135
- ManagedProxySpec managed_proxy = 9;
136
- }
137
-
138
- message ExecImageRequest {
139
- ImageProcessSpec spec = 3;
140
- string allocation_id = 4;
141
- int64 attempt = 5;
142
- string execution_lease_token = 6;
143
- }
144
-
145
- message ExecImageResponse {
146
- int32 exit_code = 1;
147
- bytes stdout = 2;
148
- bytes stderr = 3;
149
- bool stdout_truncated = 4;
150
- bool stderr_truncated = 5;
151
- ManagedProxyReport managed_proxy_report = 6;
152
- }
153
-
154
- message ProcessImageOpen {
155
- ImageProcessSpec spec = 3;
156
- string allocation_id = 4;
157
- int64 attempt = 5;
158
- string execution_lease_token = 6;
159
- }
160
-
161
- message ProcessImageRequest {
162
- oneof payload {
163
- ProcessImageOpen open = 1;
164
- bytes stdin = 2;
165
- TerminalResize resize = 3;
166
- bool close_stdin = 4;
167
- ProcessSignal signal = 5;
168
- }
169
- }
170
-
171
- message ProcessImageResponse {
172
- oneof payload {
173
- bytes stdout = 1;
174
- bytes stderr = 2;
175
- ExecExit exit = 3;
176
- ProcessReady ready = 4;
177
- }
178
- }
179
-
180
- // Lifecycle
181
-
182
- enum SandboxProcessState {
183
- SANDBOX_PROCESS_STATE_UNSPECIFIED = 0;
184
- SANDBOX_PROCESS_STATE_RUNNING = 1;
185
- SANDBOX_PROCESS_STATE_EXITED = 2;
186
- SANDBOX_PROCESS_STATE_UNKNOWN = 3;
187
- }
188
-
189
- message WaitSandboxRequest {
190
- string allocation_id = 3;
191
- int64 attempt = 4;
192
- string execution_lease_token = 5;
193
- }
194
-
195
- message WaitSandboxResponse {
196
- SandboxProcessState state = 1;
197
- int32 exit_code = 2;
198
- bool exit_code_known = 3;
199
- string message = 4;
200
- }
201
-
202
76
  enum OutputStream {
203
77
  OUTPUT_STREAM_UNSPECIFIED = 0;
204
78
  OUTPUT_STREAM_STDOUT = 1;
@@ -207,10 +81,8 @@ enum OutputStream {
207
81
 
208
82
  message ReadOutputRequest {
209
83
  string allocation_id = 1;
210
- int64 attempt = 2;
211
- string execution_lease_token = 3;
212
- string cursor = 4;
213
- bool follow = 5;
84
+ string cursor = 2;
85
+ bool follow = 3;
214
86
  }
215
87
 
216
88
  message ReadOutputResponse {
@@ -222,15 +94,56 @@ message ReadOutputResponse {
222
94
  int64 observed_at_unix_milli = 6;
223
95
  }
224
96
 
97
+ enum SealedOutputStatus {
98
+ SEALED_OUTPUT_STATUS_UNSPECIFIED = 0;
99
+ SEALED_OUTPUT_STATUS_AVAILABLE = 1;
100
+ SEALED_OUTPUT_STATUS_MISSING = 2;
101
+ SEALED_OUTPUT_STATUS_REJECTED = 3;
102
+ SEALED_OUTPUT_STATUS_CAPTURE_FAILED = 4;
103
+ SEALED_OUTPUT_STATUS_NODE_UNAVAILABLE = 5;
104
+ }
105
+
106
+ message SealedOutput {
107
+ string output_id = 1;
108
+ string path = 2;
109
+ int64 size_bytes = 3;
110
+ string sha256 = 4;
111
+ string media_type = 5;
112
+ axern.control.common.v1.DeclaredOutputFormat format = 6;
113
+ SealedOutputStatus status = 7;
114
+ string reason = 8;
115
+ google.protobuf.Timestamp sealed_at = 9;
116
+ google.protobuf.Timestamp expires_at = 10;
117
+ }
118
+
119
+ message GetSealedOutputManifestRequest {
120
+ string allocation_id = 1;
121
+ }
122
+
123
+ message GetSealedOutputManifestResponse {
124
+ repeated SealedOutput outputs = 1;
125
+ google.protobuf.Timestamp expires_at = 2;
126
+ }
127
+
128
+ message DownloadSealedOutputRequest {
129
+ string allocation_id = 1;
130
+ string output_id = 2;
131
+ int64 offset = 3;
132
+ }
133
+
134
+ message DownloadSealedOutputResponse {
135
+ bytes data = 1;
136
+ int64 next_offset = 2;
137
+ bool eof = 3;
138
+ }
139
+
225
140
  // Capabilities
226
141
 
227
142
  message CapabilityStatusRequest {
228
143
  string allocation_id = 1;
229
- int64 attempt = 2;
230
- string execution_lease_token = 3;
231
144
  }
232
145
 
233
- message CapabilityDependencyStatus {
146
+ message CapabilityProviderDependencyStatus {
234
147
  string name = 1;
235
148
  bool available = 2;
236
149
  string reason = 3;
@@ -243,7 +156,7 @@ message CapabilityProviderStatus {
243
156
  repeated string capabilities = 4;
244
157
  string backend = 5;
245
158
  string reason = 6;
246
- repeated CapabilityDependencyStatus dependencies = 7;
159
+ repeated CapabilityProviderDependencyStatus dependencies = 7;
247
160
  }
248
161
 
249
162
  message CapabilityProviderSummary {
@@ -260,59 +173,11 @@ message CapabilityStatusResponse {
260
173
  CapabilityProviderSummary provider_summary = 4;
261
174
  }
262
175
 
263
- // HTTP proxying
264
-
265
- message ProxyHTTPHeader {
266
- string key = 1;
267
- string value = 2;
268
- }
269
-
270
- message ProxyHTTPOpen {
271
- string allocation_id = 1;
272
- int64 attempt = 2;
273
- string execution_lease_token = 3;
274
- int32 port = 4;
275
- string method = 5;
276
- string path = 6;
277
- string query = 7;
278
- repeated ProxyHTTPHeader headers = 8;
279
- bool has_body = 9;
280
- int64 content_length = 10;
281
- }
282
-
283
- message ProxyHTTPResponseHead {
284
- int32 status_code = 1;
285
- repeated ProxyHTTPHeader headers = 2;
286
- }
287
-
288
- message ProxyHTTPTrailers {
289
- repeated ProxyHTTPHeader headers = 1;
290
- }
291
-
292
- message ProxyHTTPRequest {
293
- oneof payload {
294
- ProxyHTTPOpen open = 1;
295
- bytes body = 2;
296
- bool close_body = 3;
297
- }
298
- }
299
-
300
- message ProxyHTTPResponse {
301
- oneof payload {
302
- ProxyHTTPResponseHead head = 1;
303
- bytes body = 2;
304
- ProxyHTTPTrailers trailers = 3;
305
- string error = 4;
306
- }
307
- }
308
-
309
176
  // Files
310
177
 
311
178
  message StatFileRequest {
312
179
  string allocation_id = 1;
313
- int64 attempt = 2;
314
- string execution_lease_token = 3;
315
- string path = 4;
180
+ string path = 2;
316
181
  }
317
182
 
318
183
  message StatFileResponse {
@@ -321,9 +186,7 @@ message StatFileResponse {
321
186
 
322
187
  message ListDirRequest {
323
188
  string allocation_id = 1;
324
- int64 attempt = 2;
325
- string execution_lease_token = 3;
326
- string path = 4;
189
+ string path = 2;
327
190
  }
328
191
 
329
192
  message ListDirResponse {
@@ -332,9 +195,7 @@ message ListDirResponse {
332
195
 
333
196
  message ReadFileRequest {
334
197
  string allocation_id = 1;
335
- int64 attempt = 2;
336
- string execution_lease_token = 3;
337
- string path = 4;
198
+ string path = 2;
338
199
  }
339
200
 
340
201
  message ReadFileResponse {
@@ -343,60 +204,33 @@ message ReadFileResponse {
343
204
 
344
205
  message WriteFileRequest {
345
206
  string allocation_id = 1;
346
- int64 attempt = 2;
347
- string execution_lease_token = 3;
348
- string path = 4;
349
- bytes data = 5;
350
- bool create_parents = 6;
207
+ string path = 2;
208
+ bytes data = 3;
209
+ bool create_parents = 4;
351
210
  }
352
211
 
353
212
  message WriteFileResponse {}
354
213
 
355
- enum TaskAssetKind {
356
- TASK_ASSET_KIND_UNSPECIFIED = 0;
357
- TASK_ASSET_KIND_VERIFIER = 1;
358
- TASK_ASSET_KIND_ORACLE = 2;
359
- }
360
-
361
- message MaterializeTaskAssetsRequest {
362
- string allocation_id = 1;
363
- int64 attempt = 2;
364
- string execution_lease_token = 3;
365
- string source_path = 4;
366
- string target = 5;
367
- TaskAssetKind kind = 6;
368
- }
369
-
370
- message MaterializeTaskAssetsResponse {
371
- int64 duration_ms = 1;
372
- }
373
-
374
214
  message MkdirRequest {
375
215
  string allocation_id = 1;
376
- int64 attempt = 2;
377
- string execution_lease_token = 3;
378
- string path = 4;
379
- bool parents = 5;
216
+ string path = 2;
217
+ bool parents = 3;
380
218
  }
381
219
 
382
220
  message MkdirResponse {}
383
221
 
384
222
  message RemoveRequest {
385
223
  string allocation_id = 1;
386
- int64 attempt = 2;
387
- string execution_lease_token = 3;
388
- string path = 4;
389
- bool recursive = 5;
390
- bool force = 6;
224
+ string path = 2;
225
+ bool recursive = 3;
226
+ bool force = 4;
391
227
  }
392
228
 
393
229
  message RemoveResponse {}
394
230
 
395
231
  message ExistsRequest {
396
232
  string allocation_id = 1;
397
- int64 attempt = 2;
398
- string execution_lease_token = 3;
399
- string path = 4;
233
+ string path = 2;
400
234
  }
401
235
 
402
236
  message ExistsResponse {
@@ -405,58 +239,48 @@ message ExistsResponse {
405
239
 
406
240
  message CopyRequest {
407
241
  string allocation_id = 1;
408
- int64 attempt = 2;
409
- string execution_lease_token = 3;
410
- string src_path = 4;
411
- string dst_path = 5;
412
- bool recursive = 6;
413
- bool overwrite = 7;
242
+ string src_path = 2;
243
+ string dst_path = 3;
244
+ bool recursive = 4;
245
+ bool overwrite = 5;
414
246
  }
415
247
 
416
248
  message CopyResponse {}
417
249
 
418
250
  message MoveRequest {
419
251
  string allocation_id = 1;
420
- int64 attempt = 2;
421
- string execution_lease_token = 3;
422
- string src_path = 4;
423
- string dst_path = 5;
424
- bool overwrite = 6;
252
+ string src_path = 2;
253
+ string dst_path = 3;
254
+ bool overwrite = 4;
425
255
  }
426
256
 
427
257
  message MoveResponse {}
428
258
 
429
259
  message ChmodRequest {
430
260
  string allocation_id = 1;
431
- int64 attempt = 2;
432
- string execution_lease_token = 3;
433
- string path = 4;
434
- uint32 mode = 5;
435
- bool recursive = 6;
261
+ string path = 2;
262
+ uint32 mode = 3;
263
+ bool recursive = 4;
436
264
  }
437
265
 
438
266
  message ChmodResponse {}
439
267
 
440
268
  message TouchRequest {
441
269
  string allocation_id = 1;
442
- int64 attempt = 2;
443
- string execution_lease_token = 3;
444
- string path = 4;
445
- bool create = 5;
446
- int64 mtime_ns = 6;
270
+ string path = 2;
271
+ bool create = 3;
272
+ int64 mtime_ns = 4;
447
273
  }
448
274
 
449
275
  message TouchResponse {}
450
276
 
451
277
  message UploadArchiveOpen {
452
278
  string allocation_id = 1;
453
- int64 attempt = 2;
454
- string execution_lease_token = 3;
455
- string path = 4;
456
- axern.common.file.v1.SandboxArchiveFormat format = 5;
457
- bool create_parents = 6;
458
- bool overwrite = 7;
459
- axern.common.file.v1.SandboxArchiveSymlinkPolicy symlink_policy = 8;
279
+ string path = 2;
280
+ axern.common.file.v1.SandboxArchiveFormat format = 3;
281
+ bool create_parents = 4;
282
+ bool overwrite = 5;
283
+ axern.common.file.v1.SandboxArchiveSymlinkPolicy symlink_policy = 6;
460
284
  }
461
285
 
462
286
  message UploadArchiveRequest {
@@ -470,11 +294,9 @@ message UploadArchiveResponse {}
470
294
 
471
295
  message DownloadArchiveRequest {
472
296
  string allocation_id = 1;
473
- int64 attempt = 2;
474
- string execution_lease_token = 3;
475
- string path = 4;
476
- axern.common.file.v1.SandboxArchiveFormat format = 5;
477
- axern.common.file.v1.SandboxArchiveSymlinkPolicy symlink_policy = 6;
297
+ string path = 2;
298
+ axern.common.file.v1.SandboxArchiveFormat format = 3;
299
+ axern.common.file.v1.SandboxArchiveSymlinkPolicy symlink_policy = 4;
478
300
  }
479
301
 
480
302
  message DownloadArchiveResponse {
@@ -485,8 +307,6 @@ message DownloadArchiveResponse {
485
307
 
486
308
  message ComputerUseStatusRequest {
487
309
  string allocation_id = 1;
488
- int64 attempt = 2;
489
- string execution_lease_token = 3;
490
310
  }
491
311
 
492
312
  message ComputerUseStatusResponse {
@@ -512,13 +332,11 @@ message ComputerUseRegion {
512
332
 
513
333
  message ComputerUseScreenshotRequest {
514
334
  string allocation_id = 1;
515
- int64 attempt = 2;
516
- string execution_lease_token = 3;
517
- bool show_cursor = 4;
518
- ComputerUseRegion region = 5;
519
- string format = 6;
520
- int32 quality = 7;
521
- double scale = 8;
335
+ bool show_cursor = 2;
336
+ ComputerUseRegion region = 3;
337
+ string format = 4;
338
+ int32 quality = 5;
339
+ double scale = 6;
522
340
  }
523
341
 
524
342
  message ComputerUseScreenshotResponse {
@@ -528,8 +346,6 @@ message ComputerUseScreenshotResponse {
528
346
 
529
347
  message ComputerUseDisplayRequest {
530
348
  string allocation_id = 1;
531
- int64 attempt = 2;
532
- string execution_lease_token = 3;
533
349
  }
534
350
 
535
351
  message ComputerUseDisplayResponse {
@@ -541,116 +357,39 @@ message ComputerUseDisplayResponse {
541
357
 
542
358
  message ComputerUseMouseRequest {
543
359
  string allocation_id = 1;
544
- int64 attempt = 2;
545
- string execution_lease_token = 3;
546
- string action = 4;
547
- int32 x = 5;
548
- int32 y = 6;
549
- int32 to_x = 7;
550
- int32 to_y = 8;
551
- string button = 9;
552
- string direction = 10;
553
- int32 amount = 11;
360
+ string action = 2;
361
+ int32 x = 3;
362
+ int32 y = 4;
363
+ int32 to_x = 5;
364
+ int32 to_y = 6;
365
+ string button = 7;
366
+ string direction = 8;
367
+ int32 amount = 9;
554
368
  }
555
369
 
556
370
  message ComputerUseMouseResponse {}
557
371
 
558
372
  message ComputerUseKeyboardRequest {
559
373
  string allocation_id = 1;
560
- int64 attempt = 2;
561
- string execution_lease_token = 3;
562
- string text = 4;
563
- string key = 5;
564
- repeated string keys = 6;
565
- int32 delay_ms = 7;
566
- }
567
-
568
- message ComputerUseKeyboardResponse {}
569
-
570
- // Browser
571
-
572
- message BrowserStatusRequest {
573
- string allocation_id = 1;
574
- int64 attempt = 2;
575
- string execution_lease_token = 3;
576
- }
577
-
578
- message BrowserStatusResponse {
579
- bool available = 1;
580
- string command = 2;
581
- bool running = 3;
582
- int32 pid = 4;
583
- string url = 5;
584
- string reason = 6;
585
- }
586
-
587
- message BrowserOpenRequest {
588
- string allocation_id = 1;
589
- int64 attempt = 2;
590
- string execution_lease_token = 3;
591
- string url = 4;
592
- }
593
-
594
- message BrowserCloseRequest {
595
- string allocation_id = 1;
596
- int64 attempt = 2;
597
- string execution_lease_token = 3;
598
- }
599
-
600
- message BrowserNavigateRequest {
601
- string allocation_id = 1;
602
- int64 attempt = 2;
603
- string execution_lease_token = 3;
604
- string url = 4;
605
- }
606
-
607
- message BrowserResizeRequest {
608
- string allocation_id = 1;
609
- int64 attempt = 2;
610
- string execution_lease_token = 3;
611
- int32 width = 4;
612
- int32 height = 5;
613
- }
614
-
615
- message BrowserClickRequest {
616
- string allocation_id = 1;
617
- int64 attempt = 2;
618
- string execution_lease_token = 3;
619
- int32 x = 4;
620
- int32 y = 5;
621
- string button = 6;
622
- }
623
-
624
- message BrowserTypeRequest {
625
- string allocation_id = 1;
626
- int64 attempt = 2;
627
- string execution_lease_token = 3;
628
- string text = 4;
374
+ string text = 2;
375
+ string key = 3;
376
+ repeated string keys = 4;
629
377
  int32 delay_ms = 5;
630
378
  }
631
379
 
632
- message BrowserWaitRequest {
633
- string allocation_id = 1;
634
- int64 attempt = 2;
635
- string execution_lease_token = 3;
636
- int32 timeout_ms = 4;
637
- }
380
+ message ComputerUseKeyboardResponse {}
638
381
 
639
382
  service NodeSandbox {
640
383
  rpc Exec(ExecRequest) returns (ExecResponse) {}
641
- rpc ExecStream(stream ExecStreamRequest) returns (stream ExecStreamResponse) {}
642
384
  rpc Process(stream ProcessRequest) returns (stream ProcessResponse) {}
643
- rpc ExecImage(ExecImageRequest) returns (ExecImageResponse) {}
644
- rpc ProcessImage(stream ProcessImageRequest) returns (stream ProcessImageResponse) {}
645
- rpc WaitSandbox(WaitSandboxRequest) returns (WaitSandboxResponse) {}
646
385
  rpc ReadOutput(ReadOutputRequest) returns (stream ReadOutputResponse) {}
386
+ rpc GetSealedOutputManifest(GetSealedOutputManifestRequest) returns (GetSealedOutputManifestResponse) {}
387
+ rpc DownloadSealedOutput(DownloadSealedOutputRequest) returns (stream DownloadSealedOutputResponse) {}
647
388
  rpc CapabilityStatus(CapabilityStatusRequest) returns (CapabilityStatusResponse) {}
648
- rpc ProxyHTTP(stream ProxyHTTPRequest) returns (stream ProxyHTTPResponse) {}
649
389
  rpc StatFile(StatFileRequest) returns (StatFileResponse) {}
650
390
  rpc ListDir(ListDirRequest) returns (ListDirResponse) {}
651
391
  rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {}
652
392
  rpc WriteFile(WriteFileRequest) returns (WriteFileResponse) {}
653
- rpc MaterializeTaskAssets(MaterializeTaskAssetsRequest) returns (MaterializeTaskAssetsResponse) {}
654
393
  rpc Mkdir(MkdirRequest) returns (MkdirResponse) {}
655
394
  rpc Remove(RemoveRequest) returns (RemoveResponse) {}
656
395
  rpc Exists(ExistsRequest) returns (ExistsResponse) {}
@@ -665,12 +404,4 @@ service NodeSandbox {
665
404
  rpc ComputerUseDisplay(ComputerUseDisplayRequest) returns (ComputerUseDisplayResponse) {}
666
405
  rpc ComputerUseMouse(ComputerUseMouseRequest) returns (ComputerUseMouseResponse) {}
667
406
  rpc ComputerUseKeyboard(ComputerUseKeyboardRequest) returns (ComputerUseKeyboardResponse) {}
668
- rpc BrowserStatus(BrowserStatusRequest) returns (BrowserStatusResponse) {}
669
- rpc BrowserOpen(BrowserOpenRequest) returns (BrowserStatusResponse) {}
670
- rpc BrowserClose(BrowserCloseRequest) returns (BrowserStatusResponse) {}
671
- rpc BrowserNavigate(BrowserNavigateRequest) returns (BrowserStatusResponse) {}
672
- rpc BrowserResize(BrowserResizeRequest) returns (BrowserStatusResponse) {}
673
- rpc BrowserClick(BrowserClickRequest) returns (BrowserStatusResponse) {}
674
- rpc BrowserType(BrowserTypeRequest) returns (BrowserStatusResponse) {}
675
- rpc BrowserWait(BrowserWaitRequest) returns (BrowserStatusResponse) {}
676
407
  }