@rivet-dev/agentos-runtime-core 0.2.14 → 0.2.15
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 +1 -1
- package/commands/[ +0 -0
- package/commands/_stubs +0 -0
- package/commands/awk +0 -0
- package/commands/bash +0 -0
- package/commands/chcon +0 -0
- package/commands/chroot +0 -0
- package/commands/column +0 -0
- package/commands/diff +0 -0
- package/commands/du +0 -0
- package/commands/egrep +0 -0
- package/commands/env +0 -0
- package/commands/expr +0 -0
- package/commands/fgrep +0 -0
- package/commands/file +0 -0
- package/commands/groups +0 -0
- package/commands/gunzip +0 -0
- package/commands/gzip +0 -0
- package/commands/hostid +0 -0
- package/commands/http-test +0 -0
- package/commands/install +0 -0
- package/commands/jq +0 -0
- package/commands/nice +0 -0
- package/commands/pinky +0 -0
- package/commands/rev +0 -0
- package/commands/rg +0 -0
- package/commands/runcon +0 -0
- package/commands/sh +0 -0
- package/commands/sleep +0 -0
- package/commands/spawn-test-host +0 -0
- package/commands/ssh +0 -0
- package/commands/stdbuf +0 -0
- package/commands/strings +0 -0
- package/commands/stty +0 -0
- package/commands/sync +0 -0
- package/commands/tar +0 -0
- package/commands/test +0 -0
- package/commands/timeout +0 -0
- package/commands/tty +0 -0
- package/commands/unzip +0 -0
- package/commands/uptime +0 -0
- package/commands/users +0 -0
- package/commands/wget +0 -0
- package/commands/which +0 -0
- package/commands/who +0 -0
- package/commands/whoami +0 -0
- package/commands/yq +0 -0
- package/commands/zcat +0 -0
- package/commands/zip +0 -0
- package/dist/event-buffer.d.ts +14 -0
- package/dist/event-buffer.js +30 -1
- package/dist/generated/ExecutionLimitsConfig.d.ts +5 -0
- package/dist/generated/ExecutionLimitsConfig.js +2 -0
- package/dist/generated/VmLimitsConfig.d.ts +2 -0
- package/dist/generated-protocol.d.ts +546 -0
- package/dist/generated-protocol.js +1438 -122
- package/dist/kernel-proxy.js +1 -1
- package/dist/node-runtime.js +5 -5
- package/dist/request-payloads.d.ts +92 -0
- package/dist/request-payloads.js +62 -0
- package/dist/response-payloads.d.ts +27 -0
- package/dist/response-payloads.js +18 -0
- package/dist/sidecar-process.d.ts +4 -1
- package/dist/sidecar-process.js +15 -2
- package/dist/test-runtime.js +3 -3
- package/package.json +2 -2
|
@@ -462,6 +462,308 @@ export type ExecuteRequest = {
|
|
|
462
462
|
};
|
|
463
463
|
export declare function readExecuteRequest(bc: bare.ByteCursor): ExecuteRequest;
|
|
464
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;
|
|
465
767
|
export type WriteStdinRequest = {
|
|
466
768
|
readonly processId: string;
|
|
467
769
|
readonly chunk: ArrayBuffer;
|
|
@@ -651,6 +953,99 @@ export type RequestPayload = {
|
|
|
651
953
|
} | {
|
|
652
954
|
readonly tag: "ListMountsRequest";
|
|
653
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;
|
|
654
1049
|
};
|
|
655
1050
|
export declare function readRequestPayload(bc: bare.ByteCursor): RequestPayload;
|
|
656
1051
|
export declare function writeRequestPayload(bc: bare.ByteCursor, x: RequestPayload): void;
|
|
@@ -963,6 +1358,115 @@ export type VmFetchResponse = {
|
|
|
963
1358
|
};
|
|
964
1359
|
export declare function readVmFetchResponse(bc: bare.ByteCursor): VmFetchResponse;
|
|
965
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;
|
|
966
1470
|
export type ResponsePayload = {
|
|
967
1471
|
readonly tag: "AuthenticatedResponse";
|
|
968
1472
|
readonly val: AuthenticatedResponse;
|
|
@@ -1071,6 +1575,33 @@ export type ResponsePayload = {
|
|
|
1071
1575
|
} | {
|
|
1072
1576
|
readonly tag: "ListMountsResponse";
|
|
1073
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;
|
|
1074
1605
|
};
|
|
1075
1606
|
export declare function readResponsePayload(bc: bare.ByteCursor): ResponsePayload;
|
|
1076
1607
|
export declare function writeResponsePayload(bc: bare.ByteCursor, x: ResponsePayload): void;
|
|
@@ -1115,6 +1646,15 @@ export type ProcessExitedEvent = {
|
|
|
1115
1646
|
};
|
|
1116
1647
|
export declare function readProcessExitedEvent(bc: bare.ByteCursor): ProcessExitedEvent;
|
|
1117
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;
|
|
1118
1658
|
export type StructuredEvent = {
|
|
1119
1659
|
readonly name: string;
|
|
1120
1660
|
readonly detail: ReadonlyMap<string, string>;
|
|
@@ -1136,6 +1676,12 @@ export type EventPayload = {
|
|
|
1136
1676
|
} | {
|
|
1137
1677
|
readonly tag: "ExtEnvelope";
|
|
1138
1678
|
readonly val: ExtEnvelope;
|
|
1679
|
+
} | {
|
|
1680
|
+
readonly tag: "ExecutionOutputEvent";
|
|
1681
|
+
readonly val: ExecutionOutputEvent;
|
|
1682
|
+
} | {
|
|
1683
|
+
readonly tag: "ExecutionCompletedEvent";
|
|
1684
|
+
readonly val: ExecutionCompletedEvent;
|
|
1139
1685
|
};
|
|
1140
1686
|
export declare function readEventPayload(bc: bare.ByteCursor): EventPayload;
|
|
1141
1687
|
export declare function writeEventPayload(bc: bare.ByteCursor, x: EventPayload): void;
|