@rivet-dev/agentos-runtime-core 0.0.0-main.2f99c77 → 0.0.0-main.5ac5a14
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.
- package/README.md +2 -2
- package/commands/[ +0 -0
- package/commands/_stubs +0 -0
- package/commands/acl_tools +0 -0
- package/commands/arch +0 -0
- package/commands/attr +0 -0
- package/commands/awk +0 -0
- package/commands/b2sum +0 -0
- package/commands/base32 +0 -0
- package/commands/base64 +0 -0
- package/commands/basename +0 -0
- package/commands/basenc +0 -0
- package/commands/bash +0 -0
- package/commands/bc +0 -0
- package/commands/cat +0 -0
- package/commands/chacl +0 -0
- package/commands/chcon +0 -0
- package/commands/chgrp +0 -0
- package/commands/chmod +0 -0
- package/commands/chown +0 -0
- package/commands/chroot +0 -0
- package/commands/cksum +0 -0
- package/commands/cmp +0 -0
- package/commands/column +0 -0
- package/commands/comm +0 -0
- package/commands/cp +0 -0
- package/commands/curl +0 -0
- package/commands/cut +0 -0
- package/commands/date +0 -0
- package/commands/dd +0 -0
- package/commands/df +0 -0
- package/commands/diff +0 -0
- package/commands/dir +0 -0
- package/commands/dircolors +0 -0
- package/commands/dirname +0 -0
- package/commands/du +0 -0
- package/commands/echo +0 -0
- package/commands/egrep +0 -0
- package/commands/env +0 -0
- package/commands/envsubst +0 -0
- package/commands/expand +0 -0
- package/commands/expr +0 -0
- package/commands/factor +0 -0
- package/commands/false +0 -0
- package/commands/fd +0 -0
- package/commands/fgrep +0 -0
- package/commands/file +0 -0
- package/commands/find +0 -0
- package/commands/findmnt +0 -0
- package/commands/fmt +0 -0
- package/commands/fold +0 -0
- package/commands/getent +0 -0
- package/commands/getfacl +0 -0
- package/commands/getfattr +0 -0
- package/commands/git +0 -0
- package/commands/git-receive-pack +0 -0
- package/commands/git-remote-http +0 -0
- package/commands/git-remote-https +0 -0
- package/commands/git-upload-archive +0 -0
- package/commands/git-upload-pack +0 -0
- package/commands/grep +0 -0
- package/commands/groups +0 -0
- package/commands/gunzip +0 -0
- package/commands/gzip +0 -0
- package/commands/head +0 -0
- package/commands/hostid +0 -0
- package/commands/hostname +0 -0
- package/commands/http-test +0 -0
- package/commands/id +0 -0
- package/commands/install +0 -0
- package/commands/join +0 -0
- package/commands/jq +0 -0
- package/commands/kill +0 -0
- package/commands/link +0 -0
- package/commands/ln +0 -0
- package/commands/logname +0 -0
- package/commands/ls +0 -0
- package/commands/md5sum +0 -0
- package/commands/mkdir +0 -0
- package/commands/mkfifo +0 -0
- package/commands/mknod +0 -0
- package/commands/mktemp +0 -0
- package/commands/more +0 -0
- package/commands/mount +0 -0
- package/commands/mv +0 -0
- package/commands/nice +0 -0
- package/commands/nl +0 -0
- package/commands/nohup +0 -0
- package/commands/nproc +0 -0
- package/commands/numfmt +0 -0
- package/commands/od +0 -0
- package/commands/paste +0 -0
- package/commands/pathchk +0 -0
- package/commands/pinky +0 -0
- package/commands/printenv +0 -0
- package/commands/printf +0 -0
- package/commands/ptx +0 -0
- package/commands/pwd +0 -0
- package/commands/readlink +0 -0
- package/commands/realpath +0 -0
- package/commands/rev +0 -0
- package/commands/rg +0 -0
- package/commands/rm +0 -0
- package/commands/rmdir +0 -0
- package/commands/runas +0 -0
- package/commands/runcon +0 -0
- package/commands/sed +0 -0
- package/commands/seq +0 -0
- package/commands/setfacl +0 -0
- package/commands/setfattr +0 -0
- package/commands/sh +0 -0
- package/commands/sha1sum +0 -0
- package/commands/sha224sum +0 -0
- package/commands/sha256sum +0 -0
- package/commands/sha384sum +0 -0
- package/commands/sha512sum +0 -0
- package/commands/shred +0 -0
- package/commands/shuf +0 -0
- package/commands/sleep +0 -0
- package/commands/sort +0 -0
- package/commands/spawn-test-host +0 -0
- package/commands/split +0 -0
- package/commands/sqlite3 +0 -0
- package/commands/ssh +0 -0
- package/commands/ssh-keysign +0 -0
- package/commands/ssh-sk-helper +0 -0
- package/commands/stat +0 -0
- package/commands/stdbuf +0 -0
- package/commands/strings +0 -0
- package/commands/stty +0 -0
- package/commands/su +0 -0
- package/commands/sum +0 -0
- package/commands/sync +0 -0
- package/commands/tac +0 -0
- package/commands/tail +0 -0
- package/commands/tar +0 -0
- package/commands/tee +0 -0
- package/commands/test +0 -0
- package/commands/timeout +0 -0
- package/commands/touch +0 -0
- package/commands/tr +0 -0
- package/commands/tree +0 -0
- package/commands/true +0 -0
- package/commands/truncate +0 -0
- package/commands/tsort +0 -0
- package/commands/tty +0 -0
- package/commands/uname +0 -0
- package/commands/unexpand +0 -0
- package/commands/uniq +0 -0
- package/commands/unlink +0 -0
- package/commands/unzip +0 -0
- package/commands/uptime +0 -0
- package/commands/users +0 -0
- package/commands/vdir +0 -0
- package/commands/wc +0 -0
- package/commands/wget +0 -0
- package/commands/which +0 -0
- package/commands/who +0 -0
- package/commands/whoami +0 -0
- package/commands/xargs +0 -0
- package/commands/xattr_tools +0 -0
- package/commands/xfs_io +0 -0
- package/commands/xu +0 -0
- package/commands/yes +0 -0
- package/commands/yq +0 -0
- package/commands/zcat +0 -0
- package/commands/zip +0 -0
- package/dist/binary.js +4 -3
- package/dist/descriptors.d.ts +2 -12
- package/dist/descriptors.js +10 -6
- package/dist/event-buffer.d.ts +14 -0
- package/dist/event-buffer.js +30 -1
- package/dist/frame-stream.d.ts +34 -0
- package/dist/frame-stream.js +121 -0
- package/dist/generated/AcpLimitsConfig.d.ts +16 -0
- package/dist/generated/BindingLimitsConfig.d.ts +10 -0
- package/dist/generated/CreateVmConfig.d.ts +4 -0
- package/dist/generated/ExecutionLimitsConfig.d.ts +5 -0
- package/dist/generated/ExecutionLimitsConfig.js +2 -0
- package/dist/generated/Http2LimitsConfig.d.ts +12 -0
- package/dist/generated/Http2LimitsConfig.js +2 -0
- package/dist/generated/JsRuntimeLimitsConfig.d.ts +1 -0
- package/dist/generated/MountPluginDescriptor.d.ts +1 -1
- package/dist/generated/ProcessLimitsConfig.d.ts +7 -0
- package/dist/generated/ProcessLimitsConfig.js +2 -0
- package/dist/generated/ReactorLimitsConfig.d.ts +23 -0
- package/dist/generated/ReactorLimitsConfig.js +2 -0
- package/dist/generated/SqliteLimitsConfig.d.ts +3 -0
- package/dist/generated/SqliteLimitsConfig.js +2 -0
- package/dist/generated/TlsLimitsConfig.d.ts +3 -0
- package/dist/generated/TlsLimitsConfig.js +2 -0
- package/dist/generated/UdpLimitsConfig.d.ts +4 -0
- package/dist/generated/UdpLimitsConfig.js +2 -0
- package/dist/generated/VmGroupConfig.d.ts +5 -0
- package/dist/generated/VmGroupConfig.js +2 -0
- package/dist/generated/VmLimitsConfig.d.ts +16 -2
- package/dist/generated/VmSqliteDescriptor.d.ts +10 -0
- package/dist/generated/VmSqliteDescriptor.js +2 -0
- package/dist/generated/VmUserAccountConfig.d.ts +9 -0
- package/dist/generated/VmUserAccountConfig.js +2 -0
- package/dist/generated/VmUserConfig.d.ts +19 -0
- package/dist/generated/VmUserConfig.js +1 -0
- package/dist/generated/WasmLimitsConfig.d.ts +1 -0
- package/dist/generated-protocol.d.ts +610 -2
- package/dist/generated-protocol.js +1534 -75
- package/dist/kernel-proxy.d.ts +4 -0
- package/dist/kernel-proxy.js +66 -34
- package/dist/native-client.d.ts +3 -3
- package/dist/native-client.js +43 -8
- package/dist/node-runtime-options-schema.d.ts +1 -1
- package/dist/node-runtime-options-schema.js +43 -1
- package/dist/node-runtime.d.ts +12 -3
- package/dist/node-runtime.js +13 -12
- package/dist/process.d.ts +5 -1
- package/dist/process.js +35 -8
- package/dist/protocol-client.d.ts +9 -2
- package/dist/protocol-client.js +127 -7
- package/dist/protocol-frames.d.ts +14 -3
- package/dist/protocol-frames.js +26 -1
- package/dist/protocol-schema.d.ts +1 -1
- package/dist/protocol-schema.js +1 -1
- package/dist/request-payloads.d.ts +100 -1
- package/dist/request-payloads.js +73 -2
- package/dist/response-payloads.d.ts +49 -1
- package/dist/response-payloads.js +51 -1
- package/dist/sidecar-errors.d.ts +22 -0
- package/dist/sidecar-errors.js +10 -0
- package/dist/sidecar-process.d.ts +20 -3
- package/dist/sidecar-process.js +104 -14
- package/dist/test-runtime.d.ts +25 -7
- package/dist/test-runtime.js +216 -69
- package/dist/vm-config.d.ts +5 -1
- package/package.json +16 -6
- package/commands/codex +0 -0
- package/commands/codex-exec +0 -0
- package/commands/http_get +0 -0
- package/dist/generated/ToolLimitsConfig.d.ts +0 -10
- /package/dist/generated/{ToolLimitsConfig.js → BindingLimitsConfig.js} +0 -0
|
@@ -241,11 +241,20 @@ export declare function readMountPluginDescriptor(bc: bare.ByteCursor): MountPlu
|
|
|
241
241
|
export declare function writeMountPluginDescriptor(bc: bare.ByteCursor, x: MountPluginDescriptor): void;
|
|
242
242
|
export type MountDescriptor = {
|
|
243
243
|
readonly guestPath: string;
|
|
244
|
+
readonly guestSource: string;
|
|
245
|
+
readonly guestFstype: string;
|
|
244
246
|
readonly readOnly: boolean;
|
|
245
247
|
readonly plugin: MountPluginDescriptor;
|
|
246
248
|
};
|
|
247
249
|
export declare function readMountDescriptor(bc: bare.ByteCursor): MountDescriptor;
|
|
248
250
|
export declare function writeMountDescriptor(bc: bare.ByteCursor, x: MountDescriptor): void;
|
|
251
|
+
export type MountInfo = {
|
|
252
|
+
readonly path: string;
|
|
253
|
+
readonly kind: string;
|
|
254
|
+
readonly readOnly: boolean;
|
|
255
|
+
};
|
|
256
|
+
export declare function readMountInfo(bc: bare.ByteCursor): MountInfo;
|
|
257
|
+
export declare function writeMountInfo(bc: bare.ByteCursor, x: MountInfo): void;
|
|
249
258
|
export type SoftwareDescriptor = {
|
|
250
259
|
readonly packageName: string;
|
|
251
260
|
readonly root: string;
|
|
@@ -330,7 +339,7 @@ export type ConfigureVmRequest = {
|
|
|
330
339
|
readonly packages: readonly PackageDescriptor[];
|
|
331
340
|
readonly packagesMountAt: string;
|
|
332
341
|
readonly bootstrapCommands: readonly string[];
|
|
333
|
-
readonly
|
|
342
|
+
readonly bindingShimCommands: readonly string[];
|
|
334
343
|
};
|
|
335
344
|
export declare function readConfigureVmRequest(bc: bare.ByteCursor): ConfigureVmRequest;
|
|
336
345
|
export declare function writeConfigureVmRequest(bc: bare.ByteCursor, x: ConfigureVmRequest): void;
|
|
@@ -435,7 +444,12 @@ export type GuestKernelCallRequest = {
|
|
|
435
444
|
};
|
|
436
445
|
export declare function readGuestKernelCallRequest(bc: bare.ByteCursor): GuestKernelCallRequest;
|
|
437
446
|
export declare function writeGuestKernelCallRequest(bc: bare.ByteCursor, x: GuestKernelCallRequest): void;
|
|
438
|
-
export type SnapshotRootFilesystemRequest =
|
|
447
|
+
export type SnapshotRootFilesystemRequest = {
|
|
448
|
+
readonly maxBytes: u64;
|
|
449
|
+
};
|
|
450
|
+
export declare function readSnapshotRootFilesystemRequest(bc: bare.ByteCursor): SnapshotRootFilesystemRequest;
|
|
451
|
+
export declare function writeSnapshotRootFilesystemRequest(bc: bare.ByteCursor, x: SnapshotRootFilesystemRequest): void;
|
|
452
|
+
export type ListMountsRequest = null;
|
|
439
453
|
export type ExecuteRequest = {
|
|
440
454
|
readonly processId: string;
|
|
441
455
|
readonly command: string | null;
|
|
@@ -448,6 +462,308 @@ export type ExecuteRequest = {
|
|
|
448
462
|
};
|
|
449
463
|
export declare function readExecuteRequest(bc: bare.ByteCursor): ExecuteRequest;
|
|
450
464
|
export declare function writeExecuteRequest(bc: bare.ByteCursor, x: ExecuteRequest): void;
|
|
465
|
+
/**
|
|
466
|
+
* First-class execution lifecycle. The legacy process request above remains an
|
|
467
|
+
* internal kernel transport while clients migrate in lockstep to these semantic
|
|
468
|
+
* operations; language/package command construction belongs to the sidecar.
|
|
469
|
+
*/
|
|
470
|
+
export declare enum ExecutionState {
|
|
471
|
+
Creating = "Creating",
|
|
472
|
+
Idle = "Idle",
|
|
473
|
+
Running = "Running",
|
|
474
|
+
Resetting = "Resetting",
|
|
475
|
+
Deleting = "Deleting",
|
|
476
|
+
Failed = "Failed"
|
|
477
|
+
}
|
|
478
|
+
export declare function readExecutionState(bc: bare.ByteCursor): ExecutionState;
|
|
479
|
+
export declare function writeExecutionState(bc: bare.ByteCursor, x: ExecutionState): void;
|
|
480
|
+
export declare enum ExecutionOutcome {
|
|
481
|
+
Succeeded = "Succeeded",
|
|
482
|
+
Failed = "Failed",
|
|
483
|
+
Cancelled = "Cancelled",
|
|
484
|
+
TimedOut = "TimedOut"
|
|
485
|
+
}
|
|
486
|
+
export declare function readExecutionOutcome(bc: bare.ByteCursor): ExecutionOutcome;
|
|
487
|
+
export declare function writeExecutionOutcome(bc: bare.ByteCursor, x: ExecutionOutcome): void;
|
|
488
|
+
export declare enum RetainedExecutionLanguage {
|
|
489
|
+
JavaScript = "JavaScript",
|
|
490
|
+
Python = "Python"
|
|
491
|
+
}
|
|
492
|
+
export declare function readRetainedExecutionLanguage(bc: bare.ByteCursor): RetainedExecutionLanguage;
|
|
493
|
+
export declare function writeRetainedExecutionLanguage(bc: bare.ByteCursor, x: RetainedExecutionLanguage): void;
|
|
494
|
+
export declare enum ExecutionStreamChannel {
|
|
495
|
+
Stdout = "Stdout",
|
|
496
|
+
Stderr = "Stderr",
|
|
497
|
+
Pty = "Pty"
|
|
498
|
+
}
|
|
499
|
+
export declare function readExecutionStreamChannel(bc: bare.ByteCursor): ExecutionStreamChannel;
|
|
500
|
+
export declare function writeExecutionStreamChannel(bc: bare.ByteCursor, x: ExecutionStreamChannel): void;
|
|
501
|
+
export declare enum JavaScriptModuleFormat {
|
|
502
|
+
Module = "Module",
|
|
503
|
+
CommonJs = "CommonJs"
|
|
504
|
+
}
|
|
505
|
+
export declare function readJavaScriptModuleFormat(bc: bare.ByteCursor): JavaScriptModuleFormat;
|
|
506
|
+
export declare function writeJavaScriptModuleFormat(bc: bare.ByteCursor, x: JavaScriptModuleFormat): void;
|
|
507
|
+
export type ExecutionIdentityOptions = {
|
|
508
|
+
readonly contextId: string | null;
|
|
509
|
+
};
|
|
510
|
+
export declare function readExecutionIdentityOptions(bc: bare.ByteCursor): ExecutionIdentityOptions;
|
|
511
|
+
export declare function writeExecutionIdentityOptions(bc: bare.ByteCursor, x: ExecutionIdentityOptions): void;
|
|
512
|
+
export type ExecutionPtyOptions = {
|
|
513
|
+
readonly cols: u16 | null;
|
|
514
|
+
readonly rows: u16 | null;
|
|
515
|
+
};
|
|
516
|
+
export declare function readExecutionPtyOptions(bc: bare.ByteCursor): ExecutionPtyOptions;
|
|
517
|
+
export declare function writeExecutionPtyOptions(bc: bare.ByteCursor, x: ExecutionPtyOptions): void;
|
|
518
|
+
export declare enum ExecutionOutputCapture {
|
|
519
|
+
None = "None",
|
|
520
|
+
Stderr = "Stderr",
|
|
521
|
+
All = "All"
|
|
522
|
+
}
|
|
523
|
+
export declare function readExecutionOutputCapture(bc: bare.ByteCursor): ExecutionOutputCapture;
|
|
524
|
+
export declare function writeExecutionOutputCapture(bc: bare.ByteCursor, x: ExecutionOutputCapture): void;
|
|
525
|
+
export type ExecutionOutputOptions = {
|
|
526
|
+
readonly capture: ExecutionOutputCapture | null;
|
|
527
|
+
readonly retainEvents: boolean | null;
|
|
528
|
+
};
|
|
529
|
+
export declare function readExecutionOutputOptions(bc: bare.ByteCursor): ExecutionOutputOptions;
|
|
530
|
+
export declare function writeExecutionOutputOptions(bc: bare.ByteCursor, x: ExecutionOutputOptions): void;
|
|
531
|
+
export type ProcessExecutionOptions = {
|
|
532
|
+
readonly identity: ExecutionIdentityOptions;
|
|
533
|
+
readonly output: ExecutionOutputOptions;
|
|
534
|
+
readonly operationId: string | null;
|
|
535
|
+
readonly background: boolean | null;
|
|
536
|
+
readonly cwd: string | null;
|
|
537
|
+
readonly env: ReadonlyMap<string, string> | null;
|
|
538
|
+
readonly args: readonly string[];
|
|
539
|
+
readonly stdin: ArrayBuffer | null;
|
|
540
|
+
readonly timeoutMs: u64 | null;
|
|
541
|
+
readonly pty: ExecutionPtyOptions | null;
|
|
542
|
+
};
|
|
543
|
+
export declare function readProcessExecutionOptions(bc: bare.ByteCursor): ProcessExecutionOptions;
|
|
544
|
+
export declare function writeProcessExecutionOptions(bc: bare.ByteCursor, x: ProcessExecutionOptions): void;
|
|
545
|
+
export type ShellExecutionRequest = {
|
|
546
|
+
readonly process: ProcessExecutionOptions;
|
|
547
|
+
readonly command: string;
|
|
548
|
+
};
|
|
549
|
+
export declare function readShellExecutionRequest(bc: bare.ByteCursor): ShellExecutionRequest;
|
|
550
|
+
export declare function writeShellExecutionRequest(bc: bare.ByteCursor, x: ShellExecutionRequest): void;
|
|
551
|
+
export type ArgvExecutionRequest = {
|
|
552
|
+
readonly process: ProcessExecutionOptions;
|
|
553
|
+
readonly command: string;
|
|
554
|
+
};
|
|
555
|
+
export declare function readArgvExecutionRequest(bc: bare.ByteCursor): ArgvExecutionRequest;
|
|
556
|
+
export declare function writeArgvExecutionRequest(bc: bare.ByteCursor, x: ArgvExecutionRequest): void;
|
|
557
|
+
export type JavaScriptExecutionRequest = {
|
|
558
|
+
readonly process: ProcessExecutionOptions;
|
|
559
|
+
readonly source: string;
|
|
560
|
+
readonly format: JavaScriptModuleFormat | null;
|
|
561
|
+
readonly filePath: string | null;
|
|
562
|
+
readonly inputs: JsonUtf8 | null;
|
|
563
|
+
};
|
|
564
|
+
export declare function readJavaScriptExecutionRequest(bc: bare.ByteCursor): JavaScriptExecutionRequest;
|
|
565
|
+
export declare function writeJavaScriptExecutionRequest(bc: bare.ByteCursor, x: JavaScriptExecutionRequest): void;
|
|
566
|
+
export type JavaScriptEvaluationRequest = {
|
|
567
|
+
readonly process: ProcessExecutionOptions;
|
|
568
|
+
readonly expression: string;
|
|
569
|
+
readonly format: JavaScriptModuleFormat | null;
|
|
570
|
+
readonly filePath: string | null;
|
|
571
|
+
readonly inputs: JsonUtf8 | null;
|
|
572
|
+
};
|
|
573
|
+
export declare function readJavaScriptEvaluationRequest(bc: bare.ByteCursor): JavaScriptEvaluationRequest;
|
|
574
|
+
export declare function writeJavaScriptEvaluationRequest(bc: bare.ByteCursor, x: JavaScriptEvaluationRequest): void;
|
|
575
|
+
export type JavaScriptFileExecutionRequest = {
|
|
576
|
+
readonly process: ProcessExecutionOptions;
|
|
577
|
+
readonly path: string;
|
|
578
|
+
};
|
|
579
|
+
export declare function readJavaScriptFileExecutionRequest(bc: bare.ByteCursor): JavaScriptFileExecutionRequest;
|
|
580
|
+
export declare function writeJavaScriptFileExecutionRequest(bc: bare.ByteCursor, x: JavaScriptFileExecutionRequest): void;
|
|
581
|
+
export type TypeScriptExecutionRequest = {
|
|
582
|
+
readonly process: ProcessExecutionOptions;
|
|
583
|
+
readonly source: string;
|
|
584
|
+
readonly filePath: string | null;
|
|
585
|
+
readonly tsconfigPath: string | null;
|
|
586
|
+
readonly compilerOptions: JsonUtf8 | null;
|
|
587
|
+
readonly inputs: JsonUtf8 | null;
|
|
588
|
+
};
|
|
589
|
+
export declare function readTypeScriptExecutionRequest(bc: bare.ByteCursor): TypeScriptExecutionRequest;
|
|
590
|
+
export declare function writeTypeScriptExecutionRequest(bc: bare.ByteCursor, x: TypeScriptExecutionRequest): void;
|
|
591
|
+
export type TypeScriptEvaluationRequest = {
|
|
592
|
+
readonly process: ProcessExecutionOptions;
|
|
593
|
+
readonly expression: string;
|
|
594
|
+
readonly filePath: string | null;
|
|
595
|
+
readonly tsconfigPath: string | null;
|
|
596
|
+
readonly compilerOptions: JsonUtf8 | null;
|
|
597
|
+
readonly inputs: JsonUtf8 | null;
|
|
598
|
+
};
|
|
599
|
+
export declare function readTypeScriptEvaluationRequest(bc: bare.ByteCursor): TypeScriptEvaluationRequest;
|
|
600
|
+
export declare function writeTypeScriptEvaluationRequest(bc: bare.ByteCursor, x: TypeScriptEvaluationRequest): void;
|
|
601
|
+
export type TypeScriptFileExecutionRequest = {
|
|
602
|
+
readonly process: ProcessExecutionOptions;
|
|
603
|
+
readonly path: string;
|
|
604
|
+
readonly tsconfigPath: string | null;
|
|
605
|
+
readonly compilerOptions: JsonUtf8 | null;
|
|
606
|
+
};
|
|
607
|
+
export declare function readTypeScriptFileExecutionRequest(bc: bare.ByteCursor): TypeScriptFileExecutionRequest;
|
|
608
|
+
export declare function writeTypeScriptFileExecutionRequest(bc: bare.ByteCursor, x: TypeScriptFileExecutionRequest): void;
|
|
609
|
+
export type TypeScriptCheckRequest = {
|
|
610
|
+
readonly identity: ExecutionIdentityOptions;
|
|
611
|
+
readonly output: ExecutionOutputOptions;
|
|
612
|
+
readonly source: string;
|
|
613
|
+
readonly cwd: string | null;
|
|
614
|
+
readonly filePath: string | null;
|
|
615
|
+
readonly tsconfigPath: string | null;
|
|
616
|
+
readonly compilerOptions: JsonUtf8 | null;
|
|
617
|
+
readonly timeoutMs: u64 | null;
|
|
618
|
+
};
|
|
619
|
+
export declare function readTypeScriptCheckRequest(bc: bare.ByteCursor): TypeScriptCheckRequest;
|
|
620
|
+
export declare function writeTypeScriptCheckRequest(bc: bare.ByteCursor, x: TypeScriptCheckRequest): void;
|
|
621
|
+
export type TypeScriptProjectCheckRequest = {
|
|
622
|
+
readonly identity: ExecutionIdentityOptions;
|
|
623
|
+
readonly output: ExecutionOutputOptions;
|
|
624
|
+
readonly cwd: string | null;
|
|
625
|
+
readonly tsconfigPath: string | null;
|
|
626
|
+
readonly timeoutMs: u64 | null;
|
|
627
|
+
};
|
|
628
|
+
export declare function readTypeScriptProjectCheckRequest(bc: bare.ByteCursor): TypeScriptProjectCheckRequest;
|
|
629
|
+
export declare function writeTypeScriptProjectCheckRequest(bc: bare.ByteCursor, x: TypeScriptProjectCheckRequest): void;
|
|
630
|
+
export type NpmProjectInstallRequest = {
|
|
631
|
+
readonly identity: ExecutionIdentityOptions;
|
|
632
|
+
readonly output: ExecutionOutputOptions;
|
|
633
|
+
readonly cwd: string | null;
|
|
634
|
+
readonly env: ReadonlyMap<string, string> | null;
|
|
635
|
+
readonly timeoutMs: u64 | null;
|
|
636
|
+
readonly frozen: boolean | null;
|
|
637
|
+
};
|
|
638
|
+
export declare function readNpmProjectInstallRequest(bc: bare.ByteCursor): NpmProjectInstallRequest;
|
|
639
|
+
export declare function writeNpmProjectInstallRequest(bc: bare.ByteCursor, x: NpmProjectInstallRequest): void;
|
|
640
|
+
export type NpmPackageInstallRequest = {
|
|
641
|
+
readonly identity: ExecutionIdentityOptions;
|
|
642
|
+
readonly output: ExecutionOutputOptions;
|
|
643
|
+
readonly cwd: string | null;
|
|
644
|
+
readonly env: ReadonlyMap<string, string> | null;
|
|
645
|
+
readonly timeoutMs: u64 | null;
|
|
646
|
+
readonly packages: readonly string[];
|
|
647
|
+
readonly dev: boolean | null;
|
|
648
|
+
readonly global: boolean | null;
|
|
649
|
+
};
|
|
650
|
+
export declare function readNpmPackageInstallRequest(bc: bare.ByteCursor): NpmPackageInstallRequest;
|
|
651
|
+
export declare function writeNpmPackageInstallRequest(bc: bare.ByteCursor, x: NpmPackageInstallRequest): void;
|
|
652
|
+
export type NpmScriptExecutionRequest = {
|
|
653
|
+
readonly process: ProcessExecutionOptions;
|
|
654
|
+
readonly script: string;
|
|
655
|
+
};
|
|
656
|
+
export declare function readNpmScriptExecutionRequest(bc: bare.ByteCursor): NpmScriptExecutionRequest;
|
|
657
|
+
export declare function writeNpmScriptExecutionRequest(bc: bare.ByteCursor, x: NpmScriptExecutionRequest): void;
|
|
658
|
+
export type NpmPackageExecutionRequest = {
|
|
659
|
+
readonly process: ProcessExecutionOptions;
|
|
660
|
+
readonly packageSpec: string;
|
|
661
|
+
readonly binary: string | null;
|
|
662
|
+
};
|
|
663
|
+
export declare function readNpmPackageExecutionRequest(bc: bare.ByteCursor): NpmPackageExecutionRequest;
|
|
664
|
+
export declare function writeNpmPackageExecutionRequest(bc: bare.ByteCursor, x: NpmPackageExecutionRequest): void;
|
|
665
|
+
export type PythonExecutionRequest = {
|
|
666
|
+
readonly process: ProcessExecutionOptions;
|
|
667
|
+
readonly source: string;
|
|
668
|
+
readonly inputs: JsonUtf8 | null;
|
|
669
|
+
};
|
|
670
|
+
export declare function readPythonExecutionRequest(bc: bare.ByteCursor): PythonExecutionRequest;
|
|
671
|
+
export declare function writePythonExecutionRequest(bc: bare.ByteCursor, x: PythonExecutionRequest): void;
|
|
672
|
+
export type PythonEvaluationRequest = {
|
|
673
|
+
readonly process: ProcessExecutionOptions;
|
|
674
|
+
readonly expression: string;
|
|
675
|
+
readonly inputs: JsonUtf8 | null;
|
|
676
|
+
};
|
|
677
|
+
export declare function readPythonEvaluationRequest(bc: bare.ByteCursor): PythonEvaluationRequest;
|
|
678
|
+
export declare function writePythonEvaluationRequest(bc: bare.ByteCursor, x: PythonEvaluationRequest): void;
|
|
679
|
+
export type PythonFileExecutionRequest = {
|
|
680
|
+
readonly process: ProcessExecutionOptions;
|
|
681
|
+
readonly path: string;
|
|
682
|
+
};
|
|
683
|
+
export declare function readPythonFileExecutionRequest(bc: bare.ByteCursor): PythonFileExecutionRequest;
|
|
684
|
+
export declare function writePythonFileExecutionRequest(bc: bare.ByteCursor, x: PythonFileExecutionRequest): void;
|
|
685
|
+
export type PythonModuleExecutionRequest = {
|
|
686
|
+
readonly process: ProcessExecutionOptions;
|
|
687
|
+
readonly module: string;
|
|
688
|
+
};
|
|
689
|
+
export declare function readPythonModuleExecutionRequest(bc: bare.ByteCursor): PythonModuleExecutionRequest;
|
|
690
|
+
export declare function writePythonModuleExecutionRequest(bc: bare.ByteCursor, x: PythonModuleExecutionRequest): void;
|
|
691
|
+
export type PythonInstallRequest = {
|
|
692
|
+
readonly identity: ExecutionIdentityOptions;
|
|
693
|
+
readonly output: ExecutionOutputOptions;
|
|
694
|
+
readonly cwd: string | null;
|
|
695
|
+
readonly env: ReadonlyMap<string, string> | null;
|
|
696
|
+
readonly timeoutMs: u64 | null;
|
|
697
|
+
readonly packages: readonly string[];
|
|
698
|
+
readonly upgrade: boolean | null;
|
|
699
|
+
readonly requirementsFile: string | null;
|
|
700
|
+
readonly indexUrl: string | null;
|
|
701
|
+
readonly extraIndexUrls: readonly string[];
|
|
702
|
+
};
|
|
703
|
+
export declare function readPythonInstallRequest(bc: bare.ByteCursor): PythonInstallRequest;
|
|
704
|
+
export declare function writePythonInstallRequest(bc: bare.ByteCursor, x: PythonInstallRequest): void;
|
|
705
|
+
export type CreateContextRequest = {
|
|
706
|
+
readonly contextId: string;
|
|
707
|
+
};
|
|
708
|
+
export declare function readCreateContextRequest(bc: bare.ByteCursor): CreateContextRequest;
|
|
709
|
+
export declare function writeCreateContextRequest(bc: bare.ByteCursor, x: CreateContextRequest): void;
|
|
710
|
+
export type GetExecutionRequest = {
|
|
711
|
+
readonly executionId: string;
|
|
712
|
+
};
|
|
713
|
+
export declare function readGetExecutionRequest(bc: bare.ByteCursor): GetExecutionRequest;
|
|
714
|
+
export declare function writeGetExecutionRequest(bc: bare.ByteCursor, x: GetExecutionRequest): void;
|
|
715
|
+
export type ListExecutionsRequest = null;
|
|
716
|
+
export type WaitExecutionRequest = {
|
|
717
|
+
readonly executionId: string;
|
|
718
|
+
};
|
|
719
|
+
export declare function readWaitExecutionRequest(bc: bare.ByteCursor): WaitExecutionRequest;
|
|
720
|
+
export declare function writeWaitExecutionRequest(bc: bare.ByteCursor, x: WaitExecutionRequest): void;
|
|
721
|
+
export type CancelExecutionRequest = {
|
|
722
|
+
readonly executionId: string;
|
|
723
|
+
};
|
|
724
|
+
export declare function readCancelExecutionRequest(bc: bare.ByteCursor): CancelExecutionRequest;
|
|
725
|
+
export declare function writeCancelExecutionRequest(bc: bare.ByteCursor, x: CancelExecutionRequest): void;
|
|
726
|
+
export type SignalExecutionRequest = {
|
|
727
|
+
readonly executionId: string;
|
|
728
|
+
readonly signal: string;
|
|
729
|
+
};
|
|
730
|
+
export declare function readSignalExecutionRequest(bc: bare.ByteCursor): SignalExecutionRequest;
|
|
731
|
+
export declare function writeSignalExecutionRequest(bc: bare.ByteCursor, x: SignalExecutionRequest): void;
|
|
732
|
+
export type ResetExecutionRequest = {
|
|
733
|
+
readonly executionId: string;
|
|
734
|
+
};
|
|
735
|
+
export declare function readResetExecutionRequest(bc: bare.ByteCursor): ResetExecutionRequest;
|
|
736
|
+
export declare function writeResetExecutionRequest(bc: bare.ByteCursor, x: ResetExecutionRequest): void;
|
|
737
|
+
export type DeleteExecutionRequest = {
|
|
738
|
+
readonly executionId: string;
|
|
739
|
+
};
|
|
740
|
+
export declare function readDeleteExecutionRequest(bc: bare.ByteCursor): DeleteExecutionRequest;
|
|
741
|
+
export declare function writeDeleteExecutionRequest(bc: bare.ByteCursor, x: DeleteExecutionRequest): void;
|
|
742
|
+
export type WriteExecutionStdinRequest = {
|
|
743
|
+
readonly executionId: string;
|
|
744
|
+
readonly chunk: ArrayBuffer;
|
|
745
|
+
};
|
|
746
|
+
export declare function readWriteExecutionStdinRequest(bc: bare.ByteCursor): WriteExecutionStdinRequest;
|
|
747
|
+
export declare function writeWriteExecutionStdinRequest(bc: bare.ByteCursor, x: WriteExecutionStdinRequest): void;
|
|
748
|
+
export type CloseExecutionStdinRequest = {
|
|
749
|
+
readonly executionId: string;
|
|
750
|
+
};
|
|
751
|
+
export declare function readCloseExecutionStdinRequest(bc: bare.ByteCursor): CloseExecutionStdinRequest;
|
|
752
|
+
export declare function writeCloseExecutionStdinRequest(bc: bare.ByteCursor, x: CloseExecutionStdinRequest): void;
|
|
753
|
+
export type ResizeExecutionPtyRequest = {
|
|
754
|
+
readonly executionId: string;
|
|
755
|
+
readonly cols: u16;
|
|
756
|
+
readonly rows: u16;
|
|
757
|
+
};
|
|
758
|
+
export declare function readResizeExecutionPtyRequest(bc: bare.ByteCursor): ResizeExecutionPtyRequest;
|
|
759
|
+
export declare function writeResizeExecutionPtyRequest(bc: bare.ByteCursor, x: ResizeExecutionPtyRequest): void;
|
|
760
|
+
export type ReadExecutionOutputRequest = {
|
|
761
|
+
readonly executionId: string;
|
|
762
|
+
readonly cursor: string | null;
|
|
763
|
+
readonly limit: u32 | null;
|
|
764
|
+
};
|
|
765
|
+
export declare function readReadExecutionOutputRequest(bc: bare.ByteCursor): ReadExecutionOutputRequest;
|
|
766
|
+
export declare function writeReadExecutionOutputRequest(bc: bare.ByteCursor, x: ReadExecutionOutputRequest): void;
|
|
451
767
|
export type WriteStdinRequest = {
|
|
452
768
|
readonly processId: string;
|
|
453
769
|
readonly chunk: ArrayBuffer;
|
|
@@ -528,6 +844,10 @@ export type VmFetchRequest = {
|
|
|
528
844
|
readonly path: string;
|
|
529
845
|
readonly headersJson: string;
|
|
530
846
|
readonly body: string | null;
|
|
847
|
+
readonly bodyBase64: string | null;
|
|
848
|
+
readonly streamOperation: string | null;
|
|
849
|
+
readonly streamId: string | null;
|
|
850
|
+
readonly maxBytes: u32 | null;
|
|
531
851
|
};
|
|
532
852
|
export declare function readVmFetchRequest(bc: bare.ByteCursor): VmFetchRequest;
|
|
533
853
|
export declare function writeVmFetchRequest(bc: bare.ByteCursor, x: VmFetchRequest): void;
|
|
@@ -630,6 +950,102 @@ export type RequestPayload = {
|
|
|
630
950
|
} | {
|
|
631
951
|
readonly tag: "ProvidedCommandsRequest";
|
|
632
952
|
readonly val: ProvidedCommandsRequest;
|
|
953
|
+
} | {
|
|
954
|
+
readonly tag: "ListMountsRequest";
|
|
955
|
+
readonly val: ListMountsRequest;
|
|
956
|
+
} | {
|
|
957
|
+
readonly tag: "ShellExecutionRequest";
|
|
958
|
+
readonly val: ShellExecutionRequest;
|
|
959
|
+
} | {
|
|
960
|
+
readonly tag: "ArgvExecutionRequest";
|
|
961
|
+
readonly val: ArgvExecutionRequest;
|
|
962
|
+
} | {
|
|
963
|
+
readonly tag: "JavaScriptExecutionRequest";
|
|
964
|
+
readonly val: JavaScriptExecutionRequest;
|
|
965
|
+
} | {
|
|
966
|
+
readonly tag: "JavaScriptEvaluationRequest";
|
|
967
|
+
readonly val: JavaScriptEvaluationRequest;
|
|
968
|
+
} | {
|
|
969
|
+
readonly tag: "JavaScriptFileExecutionRequest";
|
|
970
|
+
readonly val: JavaScriptFileExecutionRequest;
|
|
971
|
+
} | {
|
|
972
|
+
readonly tag: "TypeScriptExecutionRequest";
|
|
973
|
+
readonly val: TypeScriptExecutionRequest;
|
|
974
|
+
} | {
|
|
975
|
+
readonly tag: "TypeScriptEvaluationRequest";
|
|
976
|
+
readonly val: TypeScriptEvaluationRequest;
|
|
977
|
+
} | {
|
|
978
|
+
readonly tag: "TypeScriptFileExecutionRequest";
|
|
979
|
+
readonly val: TypeScriptFileExecutionRequest;
|
|
980
|
+
} | {
|
|
981
|
+
readonly tag: "TypeScriptCheckRequest";
|
|
982
|
+
readonly val: TypeScriptCheckRequest;
|
|
983
|
+
} | {
|
|
984
|
+
readonly tag: "TypeScriptProjectCheckRequest";
|
|
985
|
+
readonly val: TypeScriptProjectCheckRequest;
|
|
986
|
+
} | {
|
|
987
|
+
readonly tag: "NpmProjectInstallRequest";
|
|
988
|
+
readonly val: NpmProjectInstallRequest;
|
|
989
|
+
} | {
|
|
990
|
+
readonly tag: "NpmPackageInstallRequest";
|
|
991
|
+
readonly val: NpmPackageInstallRequest;
|
|
992
|
+
} | {
|
|
993
|
+
readonly tag: "NpmScriptExecutionRequest";
|
|
994
|
+
readonly val: NpmScriptExecutionRequest;
|
|
995
|
+
} | {
|
|
996
|
+
readonly tag: "NpmPackageExecutionRequest";
|
|
997
|
+
readonly val: NpmPackageExecutionRequest;
|
|
998
|
+
} | {
|
|
999
|
+
readonly tag: "PythonExecutionRequest";
|
|
1000
|
+
readonly val: PythonExecutionRequest;
|
|
1001
|
+
} | {
|
|
1002
|
+
readonly tag: "PythonEvaluationRequest";
|
|
1003
|
+
readonly val: PythonEvaluationRequest;
|
|
1004
|
+
} | {
|
|
1005
|
+
readonly tag: "PythonFileExecutionRequest";
|
|
1006
|
+
readonly val: PythonFileExecutionRequest;
|
|
1007
|
+
} | {
|
|
1008
|
+
readonly tag: "PythonModuleExecutionRequest";
|
|
1009
|
+
readonly val: PythonModuleExecutionRequest;
|
|
1010
|
+
} | {
|
|
1011
|
+
readonly tag: "PythonInstallRequest";
|
|
1012
|
+
readonly val: PythonInstallRequest;
|
|
1013
|
+
} | {
|
|
1014
|
+
readonly tag: "CreateContextRequest";
|
|
1015
|
+
readonly val: CreateContextRequest;
|
|
1016
|
+
} | {
|
|
1017
|
+
readonly tag: "GetExecutionRequest";
|
|
1018
|
+
readonly val: GetExecutionRequest;
|
|
1019
|
+
} | {
|
|
1020
|
+
readonly tag: "ListExecutionsRequest";
|
|
1021
|
+
readonly val: ListExecutionsRequest;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly tag: "WaitExecutionRequest";
|
|
1024
|
+
readonly val: WaitExecutionRequest;
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly tag: "CancelExecutionRequest";
|
|
1027
|
+
readonly val: CancelExecutionRequest;
|
|
1028
|
+
} | {
|
|
1029
|
+
readonly tag: "SignalExecutionRequest";
|
|
1030
|
+
readonly val: SignalExecutionRequest;
|
|
1031
|
+
} | {
|
|
1032
|
+
readonly tag: "ResetExecutionRequest";
|
|
1033
|
+
readonly val: ResetExecutionRequest;
|
|
1034
|
+
} | {
|
|
1035
|
+
readonly tag: "DeleteExecutionRequest";
|
|
1036
|
+
readonly val: DeleteExecutionRequest;
|
|
1037
|
+
} | {
|
|
1038
|
+
readonly tag: "WriteExecutionStdinRequest";
|
|
1039
|
+
readonly val: WriteExecutionStdinRequest;
|
|
1040
|
+
} | {
|
|
1041
|
+
readonly tag: "CloseExecutionStdinRequest";
|
|
1042
|
+
readonly val: CloseExecutionStdinRequest;
|
|
1043
|
+
} | {
|
|
1044
|
+
readonly tag: "ResizeExecutionPtyRequest";
|
|
1045
|
+
readonly val: ResizeExecutionPtyRequest;
|
|
1046
|
+
} | {
|
|
1047
|
+
readonly tag: "ReadExecutionOutputRequest";
|
|
1048
|
+
readonly val: ReadExecutionOutputRequest;
|
|
633
1049
|
};
|
|
634
1050
|
export declare function readRequestPayload(bc: bare.ByteCursor): RequestPayload;
|
|
635
1051
|
export declare function writeRequestPayload(bc: bare.ByteCursor, x: RequestPayload): void;
|
|
@@ -759,6 +1175,11 @@ export type RootFilesystemSnapshotResponse = {
|
|
|
759
1175
|
};
|
|
760
1176
|
export declare function readRootFilesystemSnapshotResponse(bc: bare.ByteCursor): RootFilesystemSnapshotResponse;
|
|
761
1177
|
export declare function writeRootFilesystemSnapshotResponse(bc: bare.ByteCursor, x: RootFilesystemSnapshotResponse): void;
|
|
1178
|
+
export type ListMountsResponse = {
|
|
1179
|
+
readonly mounts: readonly MountInfo[];
|
|
1180
|
+
};
|
|
1181
|
+
export declare function readListMountsResponse(bc: bare.ByteCursor): ListMountsResponse;
|
|
1182
|
+
export declare function writeListMountsResponse(bc: bare.ByteCursor, x: ListMountsResponse): void;
|
|
762
1183
|
export type ProcessStartedResponse = {
|
|
763
1184
|
readonly processId: string;
|
|
764
1185
|
readonly pid: u32 | null;
|
|
@@ -916,6 +1337,19 @@ export declare function writePersistenceFlushedResponse(bc: bare.ByteCursor, x:
|
|
|
916
1337
|
export type RejectedResponse = {
|
|
917
1338
|
readonly code: string;
|
|
918
1339
|
readonly message: string;
|
|
1340
|
+
readonly limitName: string | null;
|
|
1341
|
+
readonly configuredLimit: u64 | null;
|
|
1342
|
+
readonly currentUsage: u64 | null;
|
|
1343
|
+
readonly requested: u64 | null;
|
|
1344
|
+
readonly unit: string | null;
|
|
1345
|
+
readonly scope: string | null;
|
|
1346
|
+
readonly vmId: string | null;
|
|
1347
|
+
readonly sessionGeneration: u64 | null;
|
|
1348
|
+
readonly capabilityId: u64 | null;
|
|
1349
|
+
readonly operation: string | null;
|
|
1350
|
+
readonly configurationPath: string | null;
|
|
1351
|
+
readonly retryable: boolean | null;
|
|
1352
|
+
readonly errno: string | null;
|
|
919
1353
|
};
|
|
920
1354
|
export declare function readRejectedResponse(bc: bare.ByteCursor): RejectedResponse;
|
|
921
1355
|
export declare function writeRejectedResponse(bc: bare.ByteCursor, x: RejectedResponse): void;
|
|
@@ -924,6 +1358,115 @@ export type VmFetchResponse = {
|
|
|
924
1358
|
};
|
|
925
1359
|
export declare function readVmFetchResponse(bc: bare.ByteCursor): VmFetchResponse;
|
|
926
1360
|
export declare function writeVmFetchResponse(bc: bare.ByteCursor, x: VmFetchResponse): void;
|
|
1361
|
+
export type ExecutionDescriptor = {
|
|
1362
|
+
readonly executionId: string;
|
|
1363
|
+
readonly generation: u64;
|
|
1364
|
+
readonly state: ExecutionState;
|
|
1365
|
+
readonly retainedLanguage: RetainedExecutionLanguage | null;
|
|
1366
|
+
readonly processId: string | null;
|
|
1367
|
+
readonly pid: u32 | null;
|
|
1368
|
+
readonly createdAtMs: u64;
|
|
1369
|
+
readonly lastStartedAtMs: u64 | null;
|
|
1370
|
+
readonly lastCompletedAtMs: u64 | null;
|
|
1371
|
+
readonly lastOutcome: ExecutionOutcome | null;
|
|
1372
|
+
readonly lastExitCode: i32 | null;
|
|
1373
|
+
};
|
|
1374
|
+
export declare function readExecutionDescriptor(bc: bare.ByteCursor): ExecutionDescriptor;
|
|
1375
|
+
export declare function writeExecutionDescriptor(bc: bare.ByteCursor, x: ExecutionDescriptor): void;
|
|
1376
|
+
export type ExecutionErrorData = {
|
|
1377
|
+
readonly code: string;
|
|
1378
|
+
readonly name: string;
|
|
1379
|
+
readonly message: string;
|
|
1380
|
+
readonly stack: string | null;
|
|
1381
|
+
readonly details: JsonUtf8 | null;
|
|
1382
|
+
};
|
|
1383
|
+
export declare function readExecutionErrorData(bc: bare.ByteCursor): ExecutionErrorData;
|
|
1384
|
+
export declare function writeExecutionErrorData(bc: bare.ByteCursor, x: ExecutionErrorData): void;
|
|
1385
|
+
export type ExecutionAcceptedResponse = {
|
|
1386
|
+
readonly operationId: string;
|
|
1387
|
+
readonly execution: ExecutionDescriptor | null;
|
|
1388
|
+
};
|
|
1389
|
+
export declare function readExecutionAcceptedResponse(bc: bare.ByteCursor): ExecutionAcceptedResponse;
|
|
1390
|
+
export declare function writeExecutionAcceptedResponse(bc: bare.ByteCursor, x: ExecutionAcceptedResponse): void;
|
|
1391
|
+
export type ExecutionCompletedResponse = {
|
|
1392
|
+
readonly execution: ExecutionDescriptor | null;
|
|
1393
|
+
readonly outcome: ExecutionOutcome;
|
|
1394
|
+
readonly exitCode: i32 | null;
|
|
1395
|
+
readonly error: ExecutionErrorData | null;
|
|
1396
|
+
readonly stdout: ArrayBuffer | null;
|
|
1397
|
+
readonly stderr: ArrayBuffer | null;
|
|
1398
|
+
readonly stdoutTruncated: boolean | null;
|
|
1399
|
+
readonly stderrTruncated: boolean | null;
|
|
1400
|
+
readonly evaluationValue: JsonUtf8 | null;
|
|
1401
|
+
readonly typeScriptCheckResult: JsonUtf8 | null;
|
|
1402
|
+
};
|
|
1403
|
+
export declare function readExecutionCompletedResponse(bc: bare.ByteCursor): ExecutionCompletedResponse;
|
|
1404
|
+
export declare function writeExecutionCompletedResponse(bc: bare.ByteCursor, x: ExecutionCompletedResponse): void;
|
|
1405
|
+
export type ExecutionEvaluationResponse = {
|
|
1406
|
+
readonly result: ExecutionCompletedResponse;
|
|
1407
|
+
readonly value: JsonUtf8 | null;
|
|
1408
|
+
};
|
|
1409
|
+
export declare function readExecutionEvaluationResponse(bc: bare.ByteCursor): ExecutionEvaluationResponse;
|
|
1410
|
+
export declare function writeExecutionEvaluationResponse(bc: bare.ByteCursor, x: ExecutionEvaluationResponse): void;
|
|
1411
|
+
export type TypeScriptDiagnostic = {
|
|
1412
|
+
readonly code: u32;
|
|
1413
|
+
readonly category: string;
|
|
1414
|
+
readonly message: string;
|
|
1415
|
+
readonly filePath: string | null;
|
|
1416
|
+
readonly line: u32 | null;
|
|
1417
|
+
readonly column: u32 | null;
|
|
1418
|
+
};
|
|
1419
|
+
export declare function readTypeScriptDiagnostic(bc: bare.ByteCursor): TypeScriptDiagnostic;
|
|
1420
|
+
export declare function writeTypeScriptDiagnostic(bc: bare.ByteCursor, x: TypeScriptDiagnostic): void;
|
|
1421
|
+
export type TypeScriptCheckResponse = {
|
|
1422
|
+
readonly result: ExecutionCompletedResponse;
|
|
1423
|
+
readonly hasErrors: boolean | null;
|
|
1424
|
+
readonly diagnostics: readonly TypeScriptDiagnostic[];
|
|
1425
|
+
};
|
|
1426
|
+
export declare function readTypeScriptCheckResponse(bc: bare.ByteCursor): TypeScriptCheckResponse;
|
|
1427
|
+
export declare function writeTypeScriptCheckResponse(bc: bare.ByteCursor, x: TypeScriptCheckResponse): void;
|
|
1428
|
+
export type ExecutionDescriptorResponse = {
|
|
1429
|
+
readonly execution: ExecutionDescriptor;
|
|
1430
|
+
};
|
|
1431
|
+
export declare function readExecutionDescriptorResponse(bc: bare.ByteCursor): ExecutionDescriptorResponse;
|
|
1432
|
+
export declare function writeExecutionDescriptorResponse(bc: bare.ByteCursor, x: ExecutionDescriptorResponse): void;
|
|
1433
|
+
export type ExecutionListResponse = {
|
|
1434
|
+
readonly executions: readonly ExecutionDescriptor[];
|
|
1435
|
+
};
|
|
1436
|
+
export declare function readExecutionListResponse(bc: bare.ByteCursor): ExecutionListResponse;
|
|
1437
|
+
export declare function writeExecutionListResponse(bc: bare.ByteCursor, x: ExecutionListResponse): void;
|
|
1438
|
+
export type ExecutionDeletedResponse = {
|
|
1439
|
+
readonly executionId: string;
|
|
1440
|
+
};
|
|
1441
|
+
export declare function readExecutionDeletedResponse(bc: bare.ByteCursor): ExecutionDeletedResponse;
|
|
1442
|
+
export declare function writeExecutionDeletedResponse(bc: bare.ByteCursor, x: ExecutionDeletedResponse): void;
|
|
1443
|
+
export type ExecutionIoResponse = {
|
|
1444
|
+
readonly executionId: string;
|
|
1445
|
+
readonly acceptedBytes: u64 | null;
|
|
1446
|
+
};
|
|
1447
|
+
export declare function readExecutionIoResponse(bc: bare.ByteCursor): ExecutionIoResponse;
|
|
1448
|
+
export declare function writeExecutionIoResponse(bc: bare.ByteCursor, x: ExecutionIoResponse): void;
|
|
1449
|
+
export type ExecutionOutputEvent = {
|
|
1450
|
+
readonly executionId: string;
|
|
1451
|
+
readonly generation: u64;
|
|
1452
|
+
readonly processId: string | null;
|
|
1453
|
+
readonly sequence: u64;
|
|
1454
|
+
readonly channel: ExecutionStreamChannel;
|
|
1455
|
+
readonly chunk: ArrayBuffer;
|
|
1456
|
+
readonly timestampMs: u64;
|
|
1457
|
+
};
|
|
1458
|
+
export declare function readExecutionOutputEvent(bc: bare.ByteCursor): ExecutionOutputEvent;
|
|
1459
|
+
export declare function writeExecutionOutputEvent(bc: bare.ByteCursor, x: ExecutionOutputEvent): void;
|
|
1460
|
+
export type ExecutionOutputPageResponse = {
|
|
1461
|
+
readonly executionId: string;
|
|
1462
|
+
readonly generation: u64;
|
|
1463
|
+
readonly events: readonly ExecutionOutputEvent[];
|
|
1464
|
+
readonly nextCursor: string;
|
|
1465
|
+
readonly hasMore: boolean;
|
|
1466
|
+
readonly truncated: boolean;
|
|
1467
|
+
};
|
|
1468
|
+
export declare function readExecutionOutputPageResponse(bc: bare.ByteCursor): ExecutionOutputPageResponse;
|
|
1469
|
+
export declare function writeExecutionOutputPageResponse(bc: bare.ByteCursor, x: ExecutionOutputPageResponse): void;
|
|
927
1470
|
export type ResponsePayload = {
|
|
928
1471
|
readonly tag: "AuthenticatedResponse";
|
|
929
1472
|
readonly val: AuthenticatedResponse;
|
|
@@ -1029,6 +1572,36 @@ export type ResponsePayload = {
|
|
|
1029
1572
|
} | {
|
|
1030
1573
|
readonly tag: "ProvidedCommandsResponse";
|
|
1031
1574
|
readonly val: ProvidedCommandsResponse;
|
|
1575
|
+
} | {
|
|
1576
|
+
readonly tag: "ListMountsResponse";
|
|
1577
|
+
readonly val: ListMountsResponse;
|
|
1578
|
+
} | {
|
|
1579
|
+
readonly tag: "ExecutionAcceptedResponse";
|
|
1580
|
+
readonly val: ExecutionAcceptedResponse;
|
|
1581
|
+
} | {
|
|
1582
|
+
readonly tag: "ExecutionCompletedResponse";
|
|
1583
|
+
readonly val: ExecutionCompletedResponse;
|
|
1584
|
+
} | {
|
|
1585
|
+
readonly tag: "ExecutionEvaluationResponse";
|
|
1586
|
+
readonly val: ExecutionEvaluationResponse;
|
|
1587
|
+
} | {
|
|
1588
|
+
readonly tag: "TypeScriptCheckResponse";
|
|
1589
|
+
readonly val: TypeScriptCheckResponse;
|
|
1590
|
+
} | {
|
|
1591
|
+
readonly tag: "ExecutionDescriptorResponse";
|
|
1592
|
+
readonly val: ExecutionDescriptorResponse;
|
|
1593
|
+
} | {
|
|
1594
|
+
readonly tag: "ExecutionListResponse";
|
|
1595
|
+
readonly val: ExecutionListResponse;
|
|
1596
|
+
} | {
|
|
1597
|
+
readonly tag: "ExecutionDeletedResponse";
|
|
1598
|
+
readonly val: ExecutionDeletedResponse;
|
|
1599
|
+
} | {
|
|
1600
|
+
readonly tag: "ExecutionIoResponse";
|
|
1601
|
+
readonly val: ExecutionIoResponse;
|
|
1602
|
+
} | {
|
|
1603
|
+
readonly tag: "ExecutionOutputPageResponse";
|
|
1604
|
+
readonly val: ExecutionOutputPageResponse;
|
|
1032
1605
|
};
|
|
1033
1606
|
export declare function readResponsePayload(bc: bare.ByteCursor): ResponsePayload;
|
|
1034
1607
|
export declare function writeResponsePayload(bc: bare.ByteCursor, x: ResponsePayload): void;
|
|
@@ -1073,6 +1646,15 @@ export type ProcessExitedEvent = {
|
|
|
1073
1646
|
};
|
|
1074
1647
|
export declare function readProcessExitedEvent(bc: bare.ByteCursor): ProcessExitedEvent;
|
|
1075
1648
|
export declare function writeProcessExitedEvent(bc: bare.ByteCursor, x: ProcessExitedEvent): void;
|
|
1649
|
+
export type ExecutionCompletedEvent = {
|
|
1650
|
+
readonly executionId: string;
|
|
1651
|
+
readonly generation: u64;
|
|
1652
|
+
readonly outcome: ExecutionOutcome;
|
|
1653
|
+
readonly exitCode: i32 | null;
|
|
1654
|
+
readonly error: ExecutionErrorData | null;
|
|
1655
|
+
};
|
|
1656
|
+
export declare function readExecutionCompletedEvent(bc: bare.ByteCursor): ExecutionCompletedEvent;
|
|
1657
|
+
export declare function writeExecutionCompletedEvent(bc: bare.ByteCursor, x: ExecutionCompletedEvent): void;
|
|
1076
1658
|
export type StructuredEvent = {
|
|
1077
1659
|
readonly name: string;
|
|
1078
1660
|
readonly detail: ReadonlyMap<string, string>;
|
|
@@ -1094,6 +1676,12 @@ export type EventPayload = {
|
|
|
1094
1676
|
} | {
|
|
1095
1677
|
readonly tag: "ExtEnvelope";
|
|
1096
1678
|
readonly val: ExtEnvelope;
|
|
1679
|
+
} | {
|
|
1680
|
+
readonly tag: "ExecutionOutputEvent";
|
|
1681
|
+
readonly val: ExecutionOutputEvent;
|
|
1682
|
+
} | {
|
|
1683
|
+
readonly tag: "ExecutionCompletedEvent";
|
|
1684
|
+
readonly val: ExecutionCompletedEvent;
|
|
1097
1685
|
};
|
|
1098
1686
|
export declare function readEventPayload(bc: bare.ByteCursor): EventPayload;
|
|
1099
1687
|
export declare function writeEventPayload(bc: bare.ByteCursor, x: EventPayload): void;
|
|
@@ -1174,6 +1762,23 @@ export type SidecarResponseFrame = {
|
|
|
1174
1762
|
};
|
|
1175
1763
|
export declare function readSidecarResponseFrame(bc: bare.ByteCursor): SidecarResponseFrame;
|
|
1176
1764
|
export declare function writeSidecarResponseFrame(bc: bare.ByteCursor, x: SidecarResponseFrame): void;
|
|
1765
|
+
export type ShutdownControl = {
|
|
1766
|
+
readonly reason: string;
|
|
1767
|
+
};
|
|
1768
|
+
export declare function readShutdownControl(bc: bare.ByteCursor): ShutdownControl;
|
|
1769
|
+
export declare function writeShutdownControl(bc: bare.ByteCursor, x: ShutdownControl): void;
|
|
1770
|
+
export type ControlPayload = {
|
|
1771
|
+
readonly tag: "ShutdownControl";
|
|
1772
|
+
readonly val: ShutdownControl;
|
|
1773
|
+
};
|
|
1774
|
+
export declare function readControlPayload(bc: bare.ByteCursor): ControlPayload;
|
|
1775
|
+
export declare function writeControlPayload(bc: bare.ByteCursor, x: ControlPayload): void;
|
|
1776
|
+
export type ControlFrame = {
|
|
1777
|
+
readonly schema: ProtocolSchema;
|
|
1778
|
+
readonly payload: ControlPayload;
|
|
1779
|
+
};
|
|
1780
|
+
export declare function readControlFrame(bc: bare.ByteCursor): ControlFrame;
|
|
1781
|
+
export declare function writeControlFrame(bc: bare.ByteCursor, x: ControlFrame): void;
|
|
1177
1782
|
export type ProtocolFrame = {
|
|
1178
1783
|
readonly tag: "RequestFrame";
|
|
1179
1784
|
readonly val: RequestFrame;
|
|
@@ -1189,6 +1794,9 @@ export type ProtocolFrame = {
|
|
|
1189
1794
|
} | {
|
|
1190
1795
|
readonly tag: "SidecarResponseFrame";
|
|
1191
1796
|
readonly val: SidecarResponseFrame;
|
|
1797
|
+
} | {
|
|
1798
|
+
readonly tag: "ControlFrame";
|
|
1799
|
+
readonly val: ControlFrame;
|
|
1192
1800
|
};
|
|
1193
1801
|
export declare function readProtocolFrame(bc: bare.ByteCursor): ProtocolFrame;
|
|
1194
1802
|
export declare function writeProtocolFrame(bc: bare.ByteCursor, x: ProtocolFrame): void;
|