@cofy-x/axern-sdk 0.6.2 → 0.7.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 (60) hide show
  1. package/README.md +26 -65
  2. package/dist/client/index.d.ts +10 -11
  3. package/dist/client/index.js +64 -68
  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/attached_process.d.ts +1 -2
  10. package/dist/node/attached_process.js +12 -26
  11. package/dist/node/client.d.ts +4 -6
  12. package/dist/node/client.js +2 -9
  13. package/dist/node/exec.d.ts +1 -3
  14. package/dist/node/exec.js +0 -43
  15. package/dist/proto/axern/control/admin/v1/access.proto +12 -5
  16. package/dist/proto/axern/control/admin/v1/audit.proto +14 -16
  17. package/dist/proto/axern/control/admin/v1/node.proto +23 -67
  18. package/dist/proto/axern/control/admin/v1/reliability.proto +11 -78
  19. package/dist/proto/axern/control/capability/v1/capability.proto +34 -94
  20. package/dist/proto/axern/control/common/v1/common.proto +29 -102
  21. package/dist/proto/axern/control/environment/v1/environment.proto +42 -26
  22. package/dist/proto/axern/control/gateway/v1/gateway.proto +18 -59
  23. package/dist/proto/axern/control/identity/v1/identity.proto +1 -1
  24. package/dist/proto/axern/control/namespace/v1/namespace.proto +2 -3
  25. package/dist/proto/axern/control/quota/v1/quota.proto +22 -32
  26. package/dist/proto/axern/control/run/v1/run.proto +26 -22
  27. package/dist/proto/axern/control/secret/v1/secret.proto +1 -3
  28. package/dist/proto/axern/control/tunnel/v1/tunnel.proto +18 -25
  29. package/dist/proto/axern/node/sandbox/v1/node.proto +59 -375
  30. package/dist/sandbox/index.d.ts +3 -9
  31. package/dist/sandbox/index.js +13 -22
  32. package/dist/sandbox/lifecycle.d.ts +1 -1
  33. package/dist/sandbox/lifecycle.js +55 -17
  34. package/dist/tunnel/connector.js +1 -1
  35. package/dist/tunnel/control.d.ts +0 -1
  36. package/dist/tunnel/control.js +0 -1
  37. package/dist/tunnel/runtime.d.ts +0 -1
  38. package/dist/tunnel/runtime.js +0 -1
  39. package/dist/tunnel/types.d.ts +0 -1
  40. package/dist/types.d.ts +4 -21
  41. package/dist/types.js +1 -3
  42. package/dist/version.d.ts +1 -1
  43. package/dist/version.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/proto/axern/control/admin/v1/allocation_lifecycle.proto +0 -91
  46. package/dist/proto/axern/control/admin/v1/service.proto +0 -18
  47. package/dist/proto/axern/control/admin/v1/storage.proto +0 -81
  48. package/dist/proto/axern/control/agentprofile/v1/agent_profile.proto +0 -169
  49. package/dist/proto/axern/control/catalog/v1/catalog.proto +0 -127
  50. package/dist/proto/axern/control/function/v1/function.proto +0 -130
  51. package/dist/proto/axern/control/function/v1/function_types.proto +0 -233
  52. package/dist/proto/axern/control/node/v1/node_control.proto +0 -443
  53. package/dist/proto/axern/control/rollout/v1/rollout.proto +0 -344
  54. package/dist/proto/axern/control/service/v1/service.proto +0 -96
  55. package/dist/proto/axern/control/service/v1/service_event.proto +0 -47
  56. package/dist/proto/axern/control/service/v1/service_replica.proto +0 -78
  57. package/dist/proto/axern/control/service/v1/service_types.proto +0 -155
  58. package/dist/proto/axern/control/storage/v1/storage.proto +0 -107
  59. package/dist/proto/axern/control/storage/v1/storage_types.proto +0 -125
  60. package/dist/proto/axern/data/artifact/v1/artifact.proto +0 -19
@@ -15,28 +15,11 @@ message ExecSpec {
15
15
  int64 timeout_seconds = 4;
16
16
  bool tty = 5;
17
17
  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
18
  }
34
19
 
35
20
  message ExecRequest {
36
- ExecSpec spec = 3;
37
- string allocation_id = 4;
38
- int64 attempt = 5;
39
- string execution_lease_token = 6;
21
+ ExecSpec spec = 1;
22
+ string allocation_id = 2;
40
23
  }
41
24
 
42
25
  message ExecResponse {
@@ -45,15 +28,6 @@ message ExecResponse {
45
28
  bytes stderr = 3;
46
29
  bool stdout_truncated = 4;
47
30
  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
31
  }
58
32
 
59
33
  message TerminalResize {
@@ -61,34 +35,15 @@ message TerminalResize {
61
35
  uint32 rows = 2;
62
36
  }
63
37
 
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
38
  message ExecExit {
74
39
  int32 exit_code = 1;
75
40
  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
41
  }
86
42
 
87
43
  message ProcessOpen {
88
- ExecSpec spec = 3;
89
- string allocation_id = 4;
90
- int64 attempt = 5;
91
- string execution_lease_token = 6;
44
+ ExecSpec spec = 1;
45
+ string allocation_id = 2;
46
+ TerminalResize initial_size = 3;
92
47
  }
93
48
 
94
49
  message ProcessSignal {
@@ -116,89 +71,6 @@ message ProcessResponse {
116
71
  }
117
72
  }
118
73
 
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
74
  enum OutputStream {
203
75
  OUTPUT_STREAM_UNSPECIFIED = 0;
204
76
  OUTPUT_STREAM_STDOUT = 1;
@@ -207,10 +79,8 @@ enum OutputStream {
207
79
 
208
80
  message ReadOutputRequest {
209
81
  string allocation_id = 1;
210
- int64 attempt = 2;
211
- string execution_lease_token = 3;
212
- string cursor = 4;
213
- bool follow = 5;
82
+ string cursor = 2;
83
+ bool follow = 3;
214
84
  }
215
85
 
216
86
  message ReadOutputResponse {
@@ -226,11 +96,9 @@ message ReadOutputResponse {
226
96
 
227
97
  message CapabilityStatusRequest {
228
98
  string allocation_id = 1;
229
- int64 attempt = 2;
230
- string execution_lease_token = 3;
231
99
  }
232
100
 
233
- message CapabilityDependencyStatus {
101
+ message CapabilityProviderDependencyStatus {
234
102
  string name = 1;
235
103
  bool available = 2;
236
104
  string reason = 3;
@@ -243,7 +111,7 @@ message CapabilityProviderStatus {
243
111
  repeated string capabilities = 4;
244
112
  string backend = 5;
245
113
  string reason = 6;
246
- repeated CapabilityDependencyStatus dependencies = 7;
114
+ repeated CapabilityProviderDependencyStatus dependencies = 7;
247
115
  }
248
116
 
249
117
  message CapabilityProviderSummary {
@@ -260,59 +128,11 @@ message CapabilityStatusResponse {
260
128
  CapabilityProviderSummary provider_summary = 4;
261
129
  }
262
130
 
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
131
  // Files
310
132
 
311
133
  message StatFileRequest {
312
134
  string allocation_id = 1;
313
- int64 attempt = 2;
314
- string execution_lease_token = 3;
315
- string path = 4;
135
+ string path = 2;
316
136
  }
317
137
 
318
138
  message StatFileResponse {
@@ -321,9 +141,7 @@ message StatFileResponse {
321
141
 
322
142
  message ListDirRequest {
323
143
  string allocation_id = 1;
324
- int64 attempt = 2;
325
- string execution_lease_token = 3;
326
- string path = 4;
144
+ string path = 2;
327
145
  }
328
146
 
329
147
  message ListDirResponse {
@@ -332,9 +150,7 @@ message ListDirResponse {
332
150
 
333
151
  message ReadFileRequest {
334
152
  string allocation_id = 1;
335
- int64 attempt = 2;
336
- string execution_lease_token = 3;
337
- string path = 4;
153
+ string path = 2;
338
154
  }
339
155
 
340
156
  message ReadFileResponse {
@@ -343,60 +159,33 @@ message ReadFileResponse {
343
159
 
344
160
  message WriteFileRequest {
345
161
  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;
162
+ string path = 2;
163
+ bytes data = 3;
164
+ bool create_parents = 4;
351
165
  }
352
166
 
353
167
  message WriteFileResponse {}
354
168
 
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
169
  message MkdirRequest {
375
170
  string allocation_id = 1;
376
- int64 attempt = 2;
377
- string execution_lease_token = 3;
378
- string path = 4;
379
- bool parents = 5;
171
+ string path = 2;
172
+ bool parents = 3;
380
173
  }
381
174
 
382
175
  message MkdirResponse {}
383
176
 
384
177
  message RemoveRequest {
385
178
  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;
179
+ string path = 2;
180
+ bool recursive = 3;
181
+ bool force = 4;
391
182
  }
392
183
 
393
184
  message RemoveResponse {}
394
185
 
395
186
  message ExistsRequest {
396
187
  string allocation_id = 1;
397
- int64 attempt = 2;
398
- string execution_lease_token = 3;
399
- string path = 4;
188
+ string path = 2;
400
189
  }
401
190
 
402
191
  message ExistsResponse {
@@ -405,58 +194,48 @@ message ExistsResponse {
405
194
 
406
195
  message CopyRequest {
407
196
  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;
197
+ string src_path = 2;
198
+ string dst_path = 3;
199
+ bool recursive = 4;
200
+ bool overwrite = 5;
414
201
  }
415
202
 
416
203
  message CopyResponse {}
417
204
 
418
205
  message MoveRequest {
419
206
  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;
207
+ string src_path = 2;
208
+ string dst_path = 3;
209
+ bool overwrite = 4;
425
210
  }
426
211
 
427
212
  message MoveResponse {}
428
213
 
429
214
  message ChmodRequest {
430
215
  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;
216
+ string path = 2;
217
+ uint32 mode = 3;
218
+ bool recursive = 4;
436
219
  }
437
220
 
438
221
  message ChmodResponse {}
439
222
 
440
223
  message TouchRequest {
441
224
  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;
225
+ string path = 2;
226
+ bool create = 3;
227
+ int64 mtime_ns = 4;
447
228
  }
448
229
 
449
230
  message TouchResponse {}
450
231
 
451
232
  message UploadArchiveOpen {
452
233
  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;
234
+ string path = 2;
235
+ axern.common.file.v1.SandboxArchiveFormat format = 3;
236
+ bool create_parents = 4;
237
+ bool overwrite = 5;
238
+ axern.common.file.v1.SandboxArchiveSymlinkPolicy symlink_policy = 6;
460
239
  }
461
240
 
462
241
  message UploadArchiveRequest {
@@ -470,11 +249,9 @@ message UploadArchiveResponse {}
470
249
 
471
250
  message DownloadArchiveRequest {
472
251
  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;
252
+ string path = 2;
253
+ axern.common.file.v1.SandboxArchiveFormat format = 3;
254
+ axern.common.file.v1.SandboxArchiveSymlinkPolicy symlink_policy = 4;
478
255
  }
479
256
 
480
257
  message DownloadArchiveResponse {
@@ -485,8 +262,6 @@ message DownloadArchiveResponse {
485
262
 
486
263
  message ComputerUseStatusRequest {
487
264
  string allocation_id = 1;
488
- int64 attempt = 2;
489
- string execution_lease_token = 3;
490
265
  }
491
266
 
492
267
  message ComputerUseStatusResponse {
@@ -512,13 +287,11 @@ message ComputerUseRegion {
512
287
 
513
288
  message ComputerUseScreenshotRequest {
514
289
  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;
290
+ bool show_cursor = 2;
291
+ ComputerUseRegion region = 3;
292
+ string format = 4;
293
+ int32 quality = 5;
294
+ double scale = 6;
522
295
  }
523
296
 
524
297
  message ComputerUseScreenshotResponse {
@@ -528,8 +301,6 @@ message ComputerUseScreenshotResponse {
528
301
 
529
302
  message ComputerUseDisplayRequest {
530
303
  string allocation_id = 1;
531
- int64 attempt = 2;
532
- string execution_lease_token = 3;
533
304
  }
534
305
 
535
306
  message ComputerUseDisplayResponse {
@@ -541,116 +312,37 @@ message ComputerUseDisplayResponse {
541
312
 
542
313
  message ComputerUseMouseRequest {
543
314
  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;
315
+ string action = 2;
316
+ int32 x = 3;
317
+ int32 y = 4;
318
+ int32 to_x = 5;
319
+ int32 to_y = 6;
320
+ string button = 7;
321
+ string direction = 8;
322
+ int32 amount = 9;
554
323
  }
555
324
 
556
325
  message ComputerUseMouseResponse {}
557
326
 
558
327
  message ComputerUseKeyboardRequest {
559
328
  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;
329
+ string text = 2;
330
+ string key = 3;
331
+ repeated string keys = 4;
629
332
  int32 delay_ms = 5;
630
333
  }
631
334
 
632
- message BrowserWaitRequest {
633
- string allocation_id = 1;
634
- int64 attempt = 2;
635
- string execution_lease_token = 3;
636
- int32 timeout_ms = 4;
637
- }
335
+ message ComputerUseKeyboardResponse {}
638
336
 
639
337
  service NodeSandbox {
640
338
  rpc Exec(ExecRequest) returns (ExecResponse) {}
641
- rpc ExecStream(stream ExecStreamRequest) returns (stream ExecStreamResponse) {}
642
339
  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
340
  rpc ReadOutput(ReadOutputRequest) returns (stream ReadOutputResponse) {}
647
341
  rpc CapabilityStatus(CapabilityStatusRequest) returns (CapabilityStatusResponse) {}
648
- rpc ProxyHTTP(stream ProxyHTTPRequest) returns (stream ProxyHTTPResponse) {}
649
342
  rpc StatFile(StatFileRequest) returns (StatFileResponse) {}
650
343
  rpc ListDir(ListDirRequest) returns (ListDirResponse) {}
651
344
  rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {}
652
345
  rpc WriteFile(WriteFileRequest) returns (WriteFileResponse) {}
653
- rpc MaterializeTaskAssets(MaterializeTaskAssetsRequest) returns (MaterializeTaskAssetsResponse) {}
654
346
  rpc Mkdir(MkdirRequest) returns (MkdirResponse) {}
655
347
  rpc Remove(RemoveRequest) returns (RemoveResponse) {}
656
348
  rpc Exists(ExistsRequest) returns (ExistsResponse) {}
@@ -665,12 +357,4 @@ service NodeSandbox {
665
357
  rpc ComputerUseDisplay(ComputerUseDisplayRequest) returns (ComputerUseDisplayResponse) {}
666
358
  rpc ComputerUseMouse(ComputerUseMouseRequest) returns (ComputerUseMouseResponse) {}
667
359
  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
360
  }
@@ -8,7 +8,7 @@ import type { ExtensionCapability } from "../client/index.js";
8
8
  import type { SandboxProcess } from "../node/process.js";
9
9
  import type { ResourceQuantity } from "../resources.js";
10
10
  import type { NetworkPolicy } from "../network-policy.js";
11
- import type { ChmodOptions, CapabilityStatus, Command, ComputerUseDisplay, ComputerUseKeyboardOptions, ComputerUseMouseOptions, ComputerUseScreenshot, ComputerUseScreenshotOptions, ComputerUseStatus, CopyOptions, DownloadDirOptions, ExecOptions, ExecResult, ImageExecOptions, ImageProcessOptions, MkdirOptions, MoveOptions, NodeCallOptions, ProcessOptions, RemoveOptions, SandboxFileInfo, TunnelMetadata, TunnelOptions, TouchOptions, UploadDirOptions, VolumeMount, WriteFileOptions } from "../types.js";
11
+ import type { ChmodOptions, CapabilityStatus, Command, ComputerUseDisplay, ComputerUseKeyboardOptions, ComputerUseMouseOptions, ComputerUseScreenshot, ComputerUseScreenshotOptions, ComputerUseStatus, CopyOptions, DownloadDirOptions, ExecOptions, ExecResult, MkdirOptions, MoveOptions, NodeCallOptions, ProcessOptions, RemoveOptions, SandboxFileInfo, TunnelMetadata, TunnelOptions, TouchOptions, UploadDirOptions, WriteFileOptions } from "../types.js";
12
12
  export interface SandboxOptions {
13
13
  client: AxernClient;
14
14
  templateId?: string;
@@ -18,10 +18,8 @@ export interface SandboxOptions {
18
18
  argv?: string[];
19
19
  env?: Record<string, string>;
20
20
  cwd?: string;
21
- runtimeClass?: string;
22
21
  networkPolicy?: NetworkPolicy;
23
22
  extensionCapabilities?: readonly ExtensionCapability[];
24
- volumes?: readonly VolumeMount[];
25
23
  requestCpu?: ResourceQuantity;
26
24
  requestMemory?: ResourceQuantity;
27
25
  requestEphemeralStorage?: ResourceQuantity;
@@ -36,15 +34,13 @@ export interface SandboxOptions {
36
34
  }
37
35
  export interface SandboxState {
38
36
  environmentId: string;
39
- serviceId: string;
37
+ runId: string;
40
38
  allocationId: string;
41
39
  nodeId: string;
42
- attempt: number;
43
40
  startedAt: Date;
44
41
  }
45
42
  export interface SandboxMetadata extends SandboxState {
46
43
  namespace: string;
47
- runtimeClass: string;
48
44
  labels: Record<string, string>;
49
45
  source: "template" | "image" | "environment";
50
46
  tunnel?: TunnelMetadata;
@@ -54,7 +50,7 @@ export declare class Sandbox {
54
50
  private readonly options;
55
51
  private createdEnvironment;
56
52
  private environmentId;
57
- private serviceId;
53
+ private runId;
58
54
  private currentState?;
59
55
  private currentMetadata?;
60
56
  private tunnelRuntime?;
@@ -65,8 +61,6 @@ export declare class Sandbox {
65
61
  close(): Promise<void>;
66
62
  exec(command: Command, options?: ExecOptions): Promise<ExecResult>;
67
63
  process(command: Command, options?: ProcessOptions): Promise<SandboxProcess>;
68
- execImage(image: string, command: Command, options?: ImageExecOptions): Promise<ExecResult>;
69
- processImage(image: string, command: Command, options?: ImageProcessOptions): Promise<SandboxProcess>;
70
64
  capabilityStatus(options?: NodeCallOptions): Promise<CapabilityStatus>;
71
65
  computerUseStatus(options?: NodeCallOptions): Promise<ComputerUseStatus>;
72
66
  computerUseScreenshot(options?: ComputerUseScreenshotOptions): Promise<ComputerUseScreenshot>;