@rivet-dev/agentos-runtime-core 0.0.0-agent-acp-codex-session-benchmark.62b1f46
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 +7 -0
- package/commands/[ +0 -0
- package/commands/_stubs +0 -0
- package/commands/arch +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/cat +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/codex +0 -0
- package/commands/codex-exec +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/fmt +0 -0
- package/commands/fold +0 -0
- package/commands/git +0 -0
- package/commands/git-remote-http +0 -0
- package/commands/git-remote-https +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/http_get +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/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/runcon +0 -0
- package/commands/sed +0 -0
- package/commands/seq +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/stat +0 -0
- package/commands/stdbuf +0 -0
- package/commands/strings +0 -0
- package/commands/stty +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/which +0 -0
- package/commands/who +0 -0
- package/commands/whoami +0 -0
- package/commands/xargs +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.d.ts +4 -0
- package/dist/binary.js +25 -0
- package/dist/bytes.d.ts +2 -0
- package/dist/bytes.js +6 -0
- package/dist/callbacks.d.ts +41 -0
- package/dist/callbacks.js +94 -0
- package/dist/correlation.d.ts +7 -0
- package/dist/correlation.js +52 -0
- package/dist/descriptors.d.ts +81 -0
- package/dist/descriptors.js +57 -0
- package/dist/event-buffer.d.ts +98 -0
- package/dist/event-buffer.js +333 -0
- package/dist/ext.d.ts +7 -0
- package/dist/ext.js +13 -0
- package/dist/filesystem.d.ts +33 -0
- package/dist/filesystem.js +52 -0
- package/dist/frame-payload-codec.d.ts +8 -0
- package/dist/frame-payload-codec.js +14 -0
- package/dist/frame-rpc.d.ts +45 -0
- package/dist/frame-rpc.js +98 -0
- package/dist/frame-stream.d.ts +34 -0
- package/dist/frame-stream.js +109 -0
- package/dist/framing.d.ts +8 -0
- package/dist/framing.js +23 -0
- package/dist/generated/AcpLimitsConfig.d.ts +4 -0
- package/dist/generated/AcpLimitsConfig.js +2 -0
- package/dist/generated/CreateVmConfig.d.ts +26 -0
- package/dist/generated/CreateVmConfig.js +1 -0
- package/dist/generated/FsPermissionRule.d.ts +6 -0
- package/dist/generated/FsPermissionRule.js +1 -0
- package/dist/generated/FsPermissionRuleSet.d.ts +6 -0
- package/dist/generated/FsPermissionRuleSet.js +1 -0
- package/dist/generated/FsPermissionScope.d.ts +3 -0
- package/dist/generated/FsPermissionScope.js +1 -0
- package/dist/generated/HttpLimitsConfig.d.ts +3 -0
- package/dist/generated/HttpLimitsConfig.js +2 -0
- package/dist/generated/JsModuleResolution.d.ts +1 -0
- package/dist/generated/JsModuleResolution.js +2 -0
- package/dist/generated/JsRuntimeConfig.d.ts +31 -0
- package/dist/generated/JsRuntimeConfig.js +1 -0
- package/dist/generated/JsRuntimeLimitsConfig.d.ts +8 -0
- package/dist/generated/JsRuntimeLimitsConfig.js +2 -0
- package/dist/generated/JsRuntimePlatform.d.ts +1 -0
- package/dist/generated/JsRuntimePlatform.js +2 -0
- package/dist/generated/MountPluginDescriptor.d.ts +4 -0
- package/dist/generated/MountPluginDescriptor.js +2 -0
- package/dist/generated/NativeRootFilesystemConfig.d.ts +5 -0
- package/dist/generated/NativeRootFilesystemConfig.js +1 -0
- package/dist/generated/PatternPermissionRule.d.ts +6 -0
- package/dist/generated/PatternPermissionRule.js +1 -0
- package/dist/generated/PatternPermissionRuleSet.d.ts +6 -0
- package/dist/generated/PatternPermissionRuleSet.js +1 -0
- package/dist/generated/PatternPermissionScope.d.ts +3 -0
- package/dist/generated/PatternPermissionScope.js +1 -0
- package/dist/generated/PermissionMode.d.ts +1 -0
- package/dist/generated/PermissionMode.js +2 -0
- package/dist/generated/PermissionsPolicy.d.ts +10 -0
- package/dist/generated/PermissionsPolicy.js +1 -0
- package/dist/generated/PluginLimitsConfig.d.ts +4 -0
- package/dist/generated/PluginLimitsConfig.js +2 -0
- package/dist/generated/PythonLimitsConfig.d.ts +6 -0
- package/dist/generated/PythonLimitsConfig.js +2 -0
- package/dist/generated/ResourceLimitsConfig.d.ts +24 -0
- package/dist/generated/ResourceLimitsConfig.js +2 -0
- package/dist/generated/RootFilesystemConfig.d.ts +9 -0
- package/dist/generated/RootFilesystemConfig.js +1 -0
- package/dist/generated/RootFilesystemEntry.d.ts +13 -0
- package/dist/generated/RootFilesystemEntry.js +1 -0
- package/dist/generated/RootFilesystemEntryEncoding.d.ts +1 -0
- package/dist/generated/RootFilesystemEntryEncoding.js +2 -0
- package/dist/generated/RootFilesystemEntryKind.d.ts +1 -0
- package/dist/generated/RootFilesystemEntryKind.js +2 -0
- package/dist/generated/RootFilesystemLowerDescriptor.d.ts +7 -0
- package/dist/generated/RootFilesystemLowerDescriptor.js +1 -0
- package/dist/generated/RootFilesystemMode.d.ts +1 -0
- package/dist/generated/RootFilesystemMode.js +2 -0
- package/dist/generated/ToolLimitsConfig.d.ts +10 -0
- package/dist/generated/ToolLimitsConfig.js +2 -0
- package/dist/generated/VmDnsConfig.d.ts +6 -0
- package/dist/generated/VmDnsConfig.js +2 -0
- package/dist/generated/VmLimitsConfig.d.ts +18 -0
- package/dist/generated/VmLimitsConfig.js +1 -0
- package/dist/generated/VmListenPolicyConfig.d.ts +5 -0
- package/dist/generated/VmListenPolicyConfig.js +2 -0
- package/dist/generated/WasmLimitsConfig.d.ts +7 -0
- package/dist/generated/WasmLimitsConfig.js +2 -0
- package/dist/generated-protocol.d.ts +1452 -0
- package/dist/generated-protocol.js +3936 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +26 -0
- package/dist/json.d.ts +2 -0
- package/dist/json.js +20 -0
- package/dist/native-client.d.ts +47 -0
- package/dist/native-client.js +136 -0
- package/dist/numbers.d.ts +1 -0
- package/dist/numbers.js +8 -0
- package/dist/ownership.d.ts +18 -0
- package/dist/ownership.js +77 -0
- package/dist/permissions.d.ts +29 -0
- package/dist/permissions.js +68 -0
- package/dist/process.d.ts +22 -0
- package/dist/process.js +97 -0
- package/dist/protocol-client.d.ts +67 -0
- package/dist/protocol-client.js +270 -0
- package/dist/protocol-frames.d.ts +68 -0
- package/dist/protocol-frames.js +139 -0
- package/dist/protocol-maps.d.ts +31 -0
- package/dist/protocol-maps.js +273 -0
- package/dist/protocol-schema.d.ts +10 -0
- package/dist/protocol-schema.js +11 -0
- package/dist/request-payloads.d.ts +207 -0
- package/dist/request-payloads.js +357 -0
- package/dist/response-payloads.d.ts +268 -0
- package/dist/response-payloads.js +402 -0
- package/dist/sidecar-client.d.ts +19 -0
- package/dist/sidecar-client.js +1 -0
- package/dist/sidecar-errors.d.ts +44 -0
- package/dist/sidecar-errors.js +62 -0
- package/dist/sidecar-process.d.ts +434 -0
- package/dist/sidecar-process.js +1252 -0
- package/dist/state.d.ts +42 -0
- package/dist/state.js +45 -0
- package/dist/vm-config.d.ts +31 -0
- package/dist/vm-config.js +1 -0
- package/package.json +189 -0
|
@@ -0,0 +1,1452 @@
|
|
|
1
|
+
import * as bare from "@rivetkit/bare-ts";
|
|
2
|
+
export type i32 = number;
|
|
3
|
+
export type i64 = bigint;
|
|
4
|
+
export type u16 = number;
|
|
5
|
+
export type u32 = number;
|
|
6
|
+
export type u64 = bigint;
|
|
7
|
+
export type JsonUtf8 = string;
|
|
8
|
+
export declare function readJsonUtf8(bc: bare.ByteCursor): JsonUtf8;
|
|
9
|
+
export declare function writeJsonUtf8(bc: bare.ByteCursor, x: JsonUtf8): void;
|
|
10
|
+
export type ProtocolSchema = {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly version: u16;
|
|
13
|
+
};
|
|
14
|
+
export declare function readProtocolSchema(bc: bare.ByteCursor): ProtocolSchema;
|
|
15
|
+
export declare function writeProtocolSchema(bc: bare.ByteCursor, x: ProtocolSchema): void;
|
|
16
|
+
export type RequestId = i64;
|
|
17
|
+
export declare function readRequestId(bc: bare.ByteCursor): RequestId;
|
|
18
|
+
export declare function writeRequestId(bc: bare.ByteCursor, x: RequestId): void;
|
|
19
|
+
export type ExtEnvelope = {
|
|
20
|
+
readonly namespace: string;
|
|
21
|
+
readonly payload: ArrayBuffer;
|
|
22
|
+
};
|
|
23
|
+
export declare function readExtEnvelope(bc: bare.ByteCursor): ExtEnvelope;
|
|
24
|
+
export declare function writeExtEnvelope(bc: bare.ByteCursor, x: ExtEnvelope): void;
|
|
25
|
+
export type ConnectionOwnership = {
|
|
26
|
+
readonly connectionId: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function readConnectionOwnership(bc: bare.ByteCursor): ConnectionOwnership;
|
|
29
|
+
export declare function writeConnectionOwnership(bc: bare.ByteCursor, x: ConnectionOwnership): void;
|
|
30
|
+
export type SessionOwnership = {
|
|
31
|
+
readonly connectionId: string;
|
|
32
|
+
readonly sessionId: string;
|
|
33
|
+
};
|
|
34
|
+
export declare function readSessionOwnership(bc: bare.ByteCursor): SessionOwnership;
|
|
35
|
+
export declare function writeSessionOwnership(bc: bare.ByteCursor, x: SessionOwnership): void;
|
|
36
|
+
export type VmOwnership = {
|
|
37
|
+
readonly connectionId: string;
|
|
38
|
+
readonly sessionId: string;
|
|
39
|
+
readonly vmId: string;
|
|
40
|
+
};
|
|
41
|
+
export declare function readVmOwnership(bc: bare.ByteCursor): VmOwnership;
|
|
42
|
+
export declare function writeVmOwnership(bc: bare.ByteCursor, x: VmOwnership): void;
|
|
43
|
+
export type OwnershipScope = {
|
|
44
|
+
readonly tag: "ConnectionOwnership";
|
|
45
|
+
readonly val: ConnectionOwnership;
|
|
46
|
+
} | {
|
|
47
|
+
readonly tag: "SessionOwnership";
|
|
48
|
+
readonly val: SessionOwnership;
|
|
49
|
+
} | {
|
|
50
|
+
readonly tag: "VmOwnership";
|
|
51
|
+
readonly val: VmOwnership;
|
|
52
|
+
};
|
|
53
|
+
export declare function readOwnershipScope(bc: bare.ByteCursor): OwnershipScope;
|
|
54
|
+
export declare function writeOwnershipScope(bc: bare.ByteCursor, x: OwnershipScope): void;
|
|
55
|
+
export type AuthenticateRequest = {
|
|
56
|
+
readonly clientName: string;
|
|
57
|
+
readonly authToken: string;
|
|
58
|
+
readonly protocolVersion: u16;
|
|
59
|
+
readonly bridgeVersion: u32;
|
|
60
|
+
};
|
|
61
|
+
export declare function readAuthenticateRequest(bc: bare.ByteCursor): AuthenticateRequest;
|
|
62
|
+
export declare function writeAuthenticateRequest(bc: bare.ByteCursor, x: AuthenticateRequest): void;
|
|
63
|
+
export type SidecarPlacementShared = {
|
|
64
|
+
readonly pool: string | null;
|
|
65
|
+
};
|
|
66
|
+
export declare function readSidecarPlacementShared(bc: bare.ByteCursor): SidecarPlacementShared;
|
|
67
|
+
export declare function writeSidecarPlacementShared(bc: bare.ByteCursor, x: SidecarPlacementShared): void;
|
|
68
|
+
export type SidecarPlacementExplicit = {
|
|
69
|
+
readonly sidecarId: string;
|
|
70
|
+
};
|
|
71
|
+
export declare function readSidecarPlacementExplicit(bc: bare.ByteCursor): SidecarPlacementExplicit;
|
|
72
|
+
export declare function writeSidecarPlacementExplicit(bc: bare.ByteCursor, x: SidecarPlacementExplicit): void;
|
|
73
|
+
export type SidecarPlacement = {
|
|
74
|
+
readonly tag: "SidecarPlacementShared";
|
|
75
|
+
readonly val: SidecarPlacementShared;
|
|
76
|
+
} | {
|
|
77
|
+
readonly tag: "SidecarPlacementExplicit";
|
|
78
|
+
readonly val: SidecarPlacementExplicit;
|
|
79
|
+
};
|
|
80
|
+
export declare function readSidecarPlacement(bc: bare.ByteCursor): SidecarPlacement;
|
|
81
|
+
export declare function writeSidecarPlacement(bc: bare.ByteCursor, x: SidecarPlacement): void;
|
|
82
|
+
export type OpenSessionRequest = {
|
|
83
|
+
readonly placement: SidecarPlacement;
|
|
84
|
+
};
|
|
85
|
+
export declare function readOpenSessionRequest(bc: bare.ByteCursor): OpenSessionRequest;
|
|
86
|
+
export declare function writeOpenSessionRequest(bc: bare.ByteCursor, x: OpenSessionRequest): void;
|
|
87
|
+
export type CloseSessionRequest = {
|
|
88
|
+
readonly sessionId: string;
|
|
89
|
+
};
|
|
90
|
+
export declare function readCloseSessionRequest(bc: bare.ByteCursor): CloseSessionRequest;
|
|
91
|
+
export declare function writeCloseSessionRequest(bc: bare.ByteCursor, x: CloseSessionRequest): void;
|
|
92
|
+
export declare enum GuestRuntimeKind {
|
|
93
|
+
JavaScript = "JavaScript",
|
|
94
|
+
Python = "Python",
|
|
95
|
+
WebAssembly = "WebAssembly"
|
|
96
|
+
}
|
|
97
|
+
export declare function readGuestRuntimeKind(bc: bare.ByteCursor): GuestRuntimeKind;
|
|
98
|
+
export declare function writeGuestRuntimeKind(bc: bare.ByteCursor, x: GuestRuntimeKind): void;
|
|
99
|
+
export declare enum RootFilesystemMode {
|
|
100
|
+
Ephemeral = "Ephemeral",
|
|
101
|
+
ReadOnly = "ReadOnly"
|
|
102
|
+
}
|
|
103
|
+
export declare function readRootFilesystemMode(bc: bare.ByteCursor): RootFilesystemMode;
|
|
104
|
+
export declare function writeRootFilesystemMode(bc: bare.ByteCursor, x: RootFilesystemMode): void;
|
|
105
|
+
export declare enum RootFilesystemEntryKind {
|
|
106
|
+
File = "File",
|
|
107
|
+
Directory = "Directory",
|
|
108
|
+
Symlink = "Symlink"
|
|
109
|
+
}
|
|
110
|
+
export declare function readRootFilesystemEntryKind(bc: bare.ByteCursor): RootFilesystemEntryKind;
|
|
111
|
+
export declare function writeRootFilesystemEntryKind(bc: bare.ByteCursor, x: RootFilesystemEntryKind): void;
|
|
112
|
+
export declare enum RootFilesystemEntryEncoding {
|
|
113
|
+
UtF8 = "UtF8",
|
|
114
|
+
BasE64 = "BasE64"
|
|
115
|
+
}
|
|
116
|
+
export declare function readRootFilesystemEntryEncoding(bc: bare.ByteCursor): RootFilesystemEntryEncoding;
|
|
117
|
+
export declare function writeRootFilesystemEntryEncoding(bc: bare.ByteCursor, x: RootFilesystemEntryEncoding): void;
|
|
118
|
+
export type RootFilesystemEntry = {
|
|
119
|
+
readonly path: string;
|
|
120
|
+
readonly kind: RootFilesystemEntryKind;
|
|
121
|
+
readonly mode: u32 | null;
|
|
122
|
+
readonly uid: u32 | null;
|
|
123
|
+
readonly gid: u32 | null;
|
|
124
|
+
readonly content: string | null;
|
|
125
|
+
readonly encoding: RootFilesystemEntryEncoding | null;
|
|
126
|
+
readonly target: string | null;
|
|
127
|
+
readonly executable: boolean;
|
|
128
|
+
};
|
|
129
|
+
export declare function readRootFilesystemEntry(bc: bare.ByteCursor): RootFilesystemEntry;
|
|
130
|
+
export declare function writeRootFilesystemEntry(bc: bare.ByteCursor, x: RootFilesystemEntry): void;
|
|
131
|
+
export type SnapshotRootFilesystemLower = {
|
|
132
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
133
|
+
};
|
|
134
|
+
export declare function readSnapshotRootFilesystemLower(bc: bare.ByteCursor): SnapshotRootFilesystemLower;
|
|
135
|
+
export declare function writeSnapshotRootFilesystemLower(bc: bare.ByteCursor, x: SnapshotRootFilesystemLower): void;
|
|
136
|
+
export type BundledBaseFilesystemLower = null;
|
|
137
|
+
export type RootFilesystemLowerDescriptor = {
|
|
138
|
+
readonly tag: "SnapshotRootFilesystemLower";
|
|
139
|
+
readonly val: SnapshotRootFilesystemLower;
|
|
140
|
+
} | {
|
|
141
|
+
readonly tag: "BundledBaseFilesystemLower";
|
|
142
|
+
readonly val: BundledBaseFilesystemLower;
|
|
143
|
+
};
|
|
144
|
+
export declare function readRootFilesystemLowerDescriptor(bc: bare.ByteCursor): RootFilesystemLowerDescriptor;
|
|
145
|
+
export declare function writeRootFilesystemLowerDescriptor(bc: bare.ByteCursor, x: RootFilesystemLowerDescriptor): void;
|
|
146
|
+
export type RootFilesystemDescriptor = {
|
|
147
|
+
readonly mode: RootFilesystemMode;
|
|
148
|
+
readonly disableDefaultBaseLayer: boolean;
|
|
149
|
+
readonly lowers: readonly RootFilesystemLowerDescriptor[];
|
|
150
|
+
readonly bootstrapEntries: readonly RootFilesystemEntry[];
|
|
151
|
+
};
|
|
152
|
+
export declare function readRootFilesystemDescriptor(bc: bare.ByteCursor): RootFilesystemDescriptor;
|
|
153
|
+
export declare function writeRootFilesystemDescriptor(bc: bare.ByteCursor, x: RootFilesystemDescriptor): void;
|
|
154
|
+
export declare function encodeRootFilesystemDescriptor(x: RootFilesystemDescriptor, config?: Partial<bare.Config>): Uint8Array;
|
|
155
|
+
export declare function decodeRootFilesystemDescriptor(bytes: Uint8Array): RootFilesystemDescriptor;
|
|
156
|
+
export declare enum PermissionMode {
|
|
157
|
+
Allow = "Allow",
|
|
158
|
+
Ask = "Ask",
|
|
159
|
+
Deny = "Deny"
|
|
160
|
+
}
|
|
161
|
+
export declare function readPermissionMode(bc: bare.ByteCursor): PermissionMode;
|
|
162
|
+
export declare function writePermissionMode(bc: bare.ByteCursor, x: PermissionMode): void;
|
|
163
|
+
export type FsPermissionRule = {
|
|
164
|
+
readonly mode: PermissionMode;
|
|
165
|
+
readonly operations: readonly string[] | null;
|
|
166
|
+
readonly paths: readonly string[] | null;
|
|
167
|
+
};
|
|
168
|
+
export declare function readFsPermissionRule(bc: bare.ByteCursor): FsPermissionRule;
|
|
169
|
+
export declare function writeFsPermissionRule(bc: bare.ByteCursor, x: FsPermissionRule): void;
|
|
170
|
+
export type FsPermissionRuleSet = {
|
|
171
|
+
readonly default: PermissionMode | null;
|
|
172
|
+
readonly rules: readonly FsPermissionRule[];
|
|
173
|
+
};
|
|
174
|
+
export declare function readFsPermissionRuleSet(bc: bare.ByteCursor): FsPermissionRuleSet;
|
|
175
|
+
export declare function writeFsPermissionRuleSet(bc: bare.ByteCursor, x: FsPermissionRuleSet): void;
|
|
176
|
+
export type FsPermissionScope = {
|
|
177
|
+
readonly tag: "PermissionMode";
|
|
178
|
+
readonly val: PermissionMode;
|
|
179
|
+
} | {
|
|
180
|
+
readonly tag: "FsPermissionRuleSet";
|
|
181
|
+
readonly val: FsPermissionRuleSet;
|
|
182
|
+
};
|
|
183
|
+
export declare function readFsPermissionScope(bc: bare.ByteCursor): FsPermissionScope;
|
|
184
|
+
export declare function writeFsPermissionScope(bc: bare.ByteCursor, x: FsPermissionScope): void;
|
|
185
|
+
export type PatternPermissionRule = {
|
|
186
|
+
readonly mode: PermissionMode;
|
|
187
|
+
readonly operations: readonly string[] | null;
|
|
188
|
+
readonly patterns: readonly string[] | null;
|
|
189
|
+
};
|
|
190
|
+
export declare function readPatternPermissionRule(bc: bare.ByteCursor): PatternPermissionRule;
|
|
191
|
+
export declare function writePatternPermissionRule(bc: bare.ByteCursor, x: PatternPermissionRule): void;
|
|
192
|
+
export type PatternPermissionRuleSet = {
|
|
193
|
+
readonly default: PermissionMode | null;
|
|
194
|
+
readonly rules: readonly PatternPermissionRule[];
|
|
195
|
+
};
|
|
196
|
+
export declare function readPatternPermissionRuleSet(bc: bare.ByteCursor): PatternPermissionRuleSet;
|
|
197
|
+
export declare function writePatternPermissionRuleSet(bc: bare.ByteCursor, x: PatternPermissionRuleSet): void;
|
|
198
|
+
export type PatternPermissionScope = {
|
|
199
|
+
readonly tag: "PermissionMode";
|
|
200
|
+
readonly val: PermissionMode;
|
|
201
|
+
} | {
|
|
202
|
+
readonly tag: "PatternPermissionRuleSet";
|
|
203
|
+
readonly val: PatternPermissionRuleSet;
|
|
204
|
+
};
|
|
205
|
+
export declare function readPatternPermissionScope(bc: bare.ByteCursor): PatternPermissionScope;
|
|
206
|
+
export declare function writePatternPermissionScope(bc: bare.ByteCursor, x: PatternPermissionScope): void;
|
|
207
|
+
export type PermissionsPolicy = {
|
|
208
|
+
readonly fs: FsPermissionScope | null;
|
|
209
|
+
readonly network: PatternPermissionScope | null;
|
|
210
|
+
readonly childProcess: PatternPermissionScope | null;
|
|
211
|
+
readonly process: PatternPermissionScope | null;
|
|
212
|
+
readonly env: PatternPermissionScope | null;
|
|
213
|
+
readonly binding: PatternPermissionScope | null;
|
|
214
|
+
};
|
|
215
|
+
export declare function readPermissionsPolicy(bc: bare.ByteCursor): PermissionsPolicy;
|
|
216
|
+
export declare function writePermissionsPolicy(bc: bare.ByteCursor, x: PermissionsPolicy): void;
|
|
217
|
+
export type CreateVmRequest = {
|
|
218
|
+
readonly runtime: GuestRuntimeKind;
|
|
219
|
+
readonly config: JsonUtf8;
|
|
220
|
+
};
|
|
221
|
+
export declare function readCreateVmRequest(bc: bare.ByteCursor): CreateVmRequest;
|
|
222
|
+
export declare function writeCreateVmRequest(bc: bare.ByteCursor, x: CreateVmRequest): void;
|
|
223
|
+
export declare enum DisposeReason {
|
|
224
|
+
Requested = "Requested",
|
|
225
|
+
ConnectionClosed = "ConnectionClosed",
|
|
226
|
+
HostShutdown = "HostShutdown"
|
|
227
|
+
}
|
|
228
|
+
export declare function readDisposeReason(bc: bare.ByteCursor): DisposeReason;
|
|
229
|
+
export declare function writeDisposeReason(bc: bare.ByteCursor, x: DisposeReason): void;
|
|
230
|
+
export type DisposeVmRequest = {
|
|
231
|
+
readonly reason: DisposeReason;
|
|
232
|
+
};
|
|
233
|
+
export declare function readDisposeVmRequest(bc: bare.ByteCursor): DisposeVmRequest;
|
|
234
|
+
export declare function writeDisposeVmRequest(bc: bare.ByteCursor, x: DisposeVmRequest): void;
|
|
235
|
+
export type BootstrapRootFilesystemRequest = {
|
|
236
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
237
|
+
};
|
|
238
|
+
export declare function readBootstrapRootFilesystemRequest(bc: bare.ByteCursor): BootstrapRootFilesystemRequest;
|
|
239
|
+
export declare function writeBootstrapRootFilesystemRequest(bc: bare.ByteCursor, x: BootstrapRootFilesystemRequest): void;
|
|
240
|
+
export type MountPluginDescriptor = {
|
|
241
|
+
readonly id: string;
|
|
242
|
+
readonly config: JsonUtf8 | null;
|
|
243
|
+
};
|
|
244
|
+
export declare function readMountPluginDescriptor(bc: bare.ByteCursor): MountPluginDescriptor;
|
|
245
|
+
export declare function writeMountPluginDescriptor(bc: bare.ByteCursor, x: MountPluginDescriptor): void;
|
|
246
|
+
export type MountDescriptor = {
|
|
247
|
+
readonly guestPath: string;
|
|
248
|
+
readonly readOnly: boolean | null;
|
|
249
|
+
readonly plugin: MountPluginDescriptor;
|
|
250
|
+
};
|
|
251
|
+
export declare function readMountDescriptor(bc: bare.ByteCursor): MountDescriptor;
|
|
252
|
+
export declare function writeMountDescriptor(bc: bare.ByteCursor, x: MountDescriptor): void;
|
|
253
|
+
export declare enum WasmPermissionTier {
|
|
254
|
+
Full = "Full",
|
|
255
|
+
ReadWrite = "ReadWrite",
|
|
256
|
+
ReadOnly = "ReadOnly",
|
|
257
|
+
Isolated = "Isolated"
|
|
258
|
+
}
|
|
259
|
+
export declare function readWasmPermissionTier(bc: bare.ByteCursor): WasmPermissionTier;
|
|
260
|
+
export declare function writeWasmPermissionTier(bc: bare.ByteCursor, x: WasmPermissionTier): void;
|
|
261
|
+
/**
|
|
262
|
+
* Native sidecars accept a trusted host path. It normally names the packed
|
|
263
|
+
* `.aospkg`; a directory is accepted only for local transition fixtures.
|
|
264
|
+
*/
|
|
265
|
+
export type PackagePath = {
|
|
266
|
+
readonly path: string;
|
|
267
|
+
};
|
|
268
|
+
export declare function readPackagePath(bc: bare.ByteCursor): PackagePath;
|
|
269
|
+
export declare function writePackagePath(bc: bare.ByteCursor, x: PackagePath): void;
|
|
270
|
+
/**
|
|
271
|
+
* Browser sidecars cannot dereference host paths. Their package manager forwards
|
|
272
|
+
* the complete opaque `.aospkg` bytes; only the sidecar decodes metadata.
|
|
273
|
+
*/
|
|
274
|
+
export type PackageInline = {
|
|
275
|
+
readonly content: ArrayBuffer;
|
|
276
|
+
};
|
|
277
|
+
export declare function readPackageInline(bc: bare.ByteCursor): PackageInline;
|
|
278
|
+
export declare function writePackageInline(bc: bare.ByteCursor, x: PackageInline): void;
|
|
279
|
+
/**
|
|
280
|
+
* agentOS package input. The sidecar reads the vbare manifest and mount index,
|
|
281
|
+
* projects the package read-only under `<packagesMountAt>/pkgs/<name>/<version>`,
|
|
282
|
+
* and links its commands onto $PATH. Clients never send parsed package metadata.
|
|
283
|
+
*/
|
|
284
|
+
export type PackageDescriptor = {
|
|
285
|
+
readonly tag: "PackagePath";
|
|
286
|
+
readonly val: PackagePath;
|
|
287
|
+
} | {
|
|
288
|
+
readonly tag: "PackageInline";
|
|
289
|
+
readonly val: PackageInline;
|
|
290
|
+
};
|
|
291
|
+
export declare function readPackageDescriptor(bc: bare.ByteCursor): PackageDescriptor;
|
|
292
|
+
export declare function writePackageDescriptor(bc: bare.ByteCursor, x: PackageDescriptor): void;
|
|
293
|
+
export type AgentosProjectedAgent = {
|
|
294
|
+
readonly id: string;
|
|
295
|
+
readonly acpEntrypoint: string;
|
|
296
|
+
readonly adapterEntrypoint: string;
|
|
297
|
+
};
|
|
298
|
+
export declare function readAgentosProjectedAgent(bc: bare.ByteCursor): AgentosProjectedAgent;
|
|
299
|
+
export declare function writeAgentosProjectedAgent(bc: bare.ByteCursor, x: AgentosProjectedAgent): void;
|
|
300
|
+
export type LinkPackageRequest = {
|
|
301
|
+
readonly package: PackageDescriptor;
|
|
302
|
+
};
|
|
303
|
+
export declare function readLinkPackageRequest(bc: bare.ByteCursor): LinkPackageRequest;
|
|
304
|
+
export declare function writeLinkPackageRequest(bc: bare.ByteCursor, x: LinkPackageRequest): void;
|
|
305
|
+
export type PackageCommands = {
|
|
306
|
+
readonly packageName: string;
|
|
307
|
+
readonly commands: readonly string[];
|
|
308
|
+
};
|
|
309
|
+
export declare function readPackageCommands(bc: bare.ByteCursor): PackageCommands;
|
|
310
|
+
export declare function writePackageCommands(bc: bare.ByteCursor, x: PackageCommands): void;
|
|
311
|
+
export type ProvidedCommandsRequest = null;
|
|
312
|
+
export type ProvidedCommandsResponse = {
|
|
313
|
+
readonly packages: readonly PackageCommands[];
|
|
314
|
+
};
|
|
315
|
+
export declare function readProvidedCommandsResponse(bc: bare.ByteCursor): ProvidedCommandsResponse;
|
|
316
|
+
export declare function writeProvidedCommandsResponse(bc: bare.ByteCursor, x: ProvidedCommandsResponse): void;
|
|
317
|
+
export type ProjectedCommand = {
|
|
318
|
+
readonly name: string;
|
|
319
|
+
readonly guestPath: string;
|
|
320
|
+
};
|
|
321
|
+
export declare function readProjectedCommand(bc: bare.ByteCursor): ProjectedCommand;
|
|
322
|
+
export declare function writeProjectedCommand(bc: bare.ByteCursor, x: ProjectedCommand): void;
|
|
323
|
+
export type PackageLinkedResponse = {
|
|
324
|
+
readonly projectedCommands: readonly ProjectedCommand[];
|
|
325
|
+
readonly agents: readonly AgentosProjectedAgent[];
|
|
326
|
+
};
|
|
327
|
+
export declare function readPackageLinkedResponse(bc: bare.ByteCursor): PackageLinkedResponse;
|
|
328
|
+
export declare function writePackageLinkedResponse(bc: bare.ByteCursor, x: PackageLinkedResponse): void;
|
|
329
|
+
export type ConfigureVmRequest = {
|
|
330
|
+
readonly mounts: readonly MountDescriptor[] | null;
|
|
331
|
+
readonly permissions: PermissionsPolicy | null;
|
|
332
|
+
readonly commandPermissions: ReadonlyMap<string, WasmPermissionTier> | null;
|
|
333
|
+
readonly loopbackExemptPorts: Uint16Array | null;
|
|
334
|
+
readonly packages: readonly PackageDescriptor[] | null;
|
|
335
|
+
readonly packagesMountAt: string | null;
|
|
336
|
+
};
|
|
337
|
+
export declare function readConfigureVmRequest(bc: bare.ByteCursor): ConfigureVmRequest;
|
|
338
|
+
export declare function writeConfigureVmRequest(bc: bare.ByteCursor, x: ConfigureVmRequest): void;
|
|
339
|
+
export type RegisteredHostCallbackExample = {
|
|
340
|
+
readonly description: string;
|
|
341
|
+
readonly input: JsonUtf8;
|
|
342
|
+
};
|
|
343
|
+
export declare function readRegisteredHostCallbackExample(bc: bare.ByteCursor): RegisteredHostCallbackExample;
|
|
344
|
+
export declare function writeRegisteredHostCallbackExample(bc: bare.ByteCursor, x: RegisteredHostCallbackExample): void;
|
|
345
|
+
export type RegisteredHostCallbackDefinition = {
|
|
346
|
+
readonly description: string;
|
|
347
|
+
readonly inputSchema: JsonUtf8;
|
|
348
|
+
readonly timeoutMs: u64 | null;
|
|
349
|
+
readonly examples: readonly RegisteredHostCallbackExample[];
|
|
350
|
+
};
|
|
351
|
+
export declare function readRegisteredHostCallbackDefinition(bc: bare.ByteCursor): RegisteredHostCallbackDefinition;
|
|
352
|
+
export declare function writeRegisteredHostCallbackDefinition(bc: bare.ByteCursor, x: RegisteredHostCallbackDefinition): void;
|
|
353
|
+
export type RegisterHostCallbacksRequest = {
|
|
354
|
+
readonly name: string;
|
|
355
|
+
readonly description: string;
|
|
356
|
+
readonly callbacks: ReadonlyMap<string, RegisteredHostCallbackDefinition>;
|
|
357
|
+
};
|
|
358
|
+
export declare function readRegisterHostCallbacksRequest(bc: bare.ByteCursor): RegisterHostCallbacksRequest;
|
|
359
|
+
export declare function writeRegisterHostCallbacksRequest(bc: bare.ByteCursor, x: RegisterHostCallbacksRequest): void;
|
|
360
|
+
/**
|
|
361
|
+
* Atomic AgentOS VM initialization. The sidecar creates the VM, reaches ready,
|
|
362
|
+
* applies explicit mounts/packages, and registers host callback metadata before
|
|
363
|
+
* returning one resolved VM view. Omitted collections remain sidecar defaults.
|
|
364
|
+
*/
|
|
365
|
+
export type InitializeVmRequest = {
|
|
366
|
+
readonly runtime: GuestRuntimeKind;
|
|
367
|
+
readonly config: JsonUtf8;
|
|
368
|
+
readonly mounts: readonly MountDescriptor[] | null;
|
|
369
|
+
readonly packages: readonly PackageDescriptor[] | null;
|
|
370
|
+
readonly packagesMountAt: string | null;
|
|
371
|
+
readonly hostCallbacks: readonly RegisterHostCallbacksRequest[] | null;
|
|
372
|
+
};
|
|
373
|
+
export declare function readInitializeVmRequest(bc: bare.ByteCursor): InitializeVmRequest;
|
|
374
|
+
export declare function writeInitializeVmRequest(bc: bare.ByteCursor, x: InitializeVmRequest): void;
|
|
375
|
+
export type CreateLayerRequest = null;
|
|
376
|
+
export type SealLayerRequest = {
|
|
377
|
+
readonly layerId: string;
|
|
378
|
+
};
|
|
379
|
+
export declare function readSealLayerRequest(bc: bare.ByteCursor): SealLayerRequest;
|
|
380
|
+
export declare function writeSealLayerRequest(bc: bare.ByteCursor, x: SealLayerRequest): void;
|
|
381
|
+
export type ImportSnapshotRequest = {
|
|
382
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
383
|
+
};
|
|
384
|
+
export declare function readImportSnapshotRequest(bc: bare.ByteCursor): ImportSnapshotRequest;
|
|
385
|
+
export declare function writeImportSnapshotRequest(bc: bare.ByteCursor, x: ImportSnapshotRequest): void;
|
|
386
|
+
export type ExportSnapshotRequest = {
|
|
387
|
+
readonly layerId: string;
|
|
388
|
+
};
|
|
389
|
+
export declare function readExportSnapshotRequest(bc: bare.ByteCursor): ExportSnapshotRequest;
|
|
390
|
+
export declare function writeExportSnapshotRequest(bc: bare.ByteCursor, x: ExportSnapshotRequest): void;
|
|
391
|
+
export type CreateOverlayRequest = {
|
|
392
|
+
readonly mode: RootFilesystemMode | null;
|
|
393
|
+
readonly upperLayerId: string | null;
|
|
394
|
+
readonly lowerLayerIds: readonly string[];
|
|
395
|
+
};
|
|
396
|
+
export declare function readCreateOverlayRequest(bc: bare.ByteCursor): CreateOverlayRequest;
|
|
397
|
+
export declare function writeCreateOverlayRequest(bc: bare.ByteCursor, x: CreateOverlayRequest): void;
|
|
398
|
+
export declare enum GuestFilesystemOperation {
|
|
399
|
+
ReadFile = "ReadFile",
|
|
400
|
+
WriteFile = "WriteFile",
|
|
401
|
+
CreateDir = "CreateDir",
|
|
402
|
+
Mkdir = "Mkdir",
|
|
403
|
+
Exists = "Exists",
|
|
404
|
+
Stat = "Stat",
|
|
405
|
+
Lstat = "Lstat",
|
|
406
|
+
ReadDir = "ReadDir",
|
|
407
|
+
ReadDirRecursive = "ReadDirRecursive",
|
|
408
|
+
RemoveFile = "RemoveFile",
|
|
409
|
+
RemoveDir = "RemoveDir",
|
|
410
|
+
Remove = "Remove",
|
|
411
|
+
Copy = "Copy",
|
|
412
|
+
Move = "Move",
|
|
413
|
+
Rename = "Rename",
|
|
414
|
+
Realpath = "Realpath",
|
|
415
|
+
Symlink = "Symlink",
|
|
416
|
+
ReadLink = "ReadLink",
|
|
417
|
+
Link = "Link",
|
|
418
|
+
Chmod = "Chmod",
|
|
419
|
+
Chown = "Chown",
|
|
420
|
+
Utimes = "Utimes",
|
|
421
|
+
Truncate = "Truncate",
|
|
422
|
+
Pread = "Pread",
|
|
423
|
+
Pwrite = "Pwrite"
|
|
424
|
+
}
|
|
425
|
+
export declare function readGuestFilesystemOperation(bc: bare.ByteCursor): GuestFilesystemOperation;
|
|
426
|
+
export declare function writeGuestFilesystemOperation(bc: bare.ByteCursor, x: GuestFilesystemOperation): void;
|
|
427
|
+
export type GuestFilesystemCallRequest = {
|
|
428
|
+
readonly operation: GuestFilesystemOperation;
|
|
429
|
+
readonly path: string;
|
|
430
|
+
readonly destinationPath: string | null;
|
|
431
|
+
readonly target: string | null;
|
|
432
|
+
readonly content: string | null;
|
|
433
|
+
readonly encoding: RootFilesystemEntryEncoding | null;
|
|
434
|
+
readonly recursive: boolean | null;
|
|
435
|
+
readonly maxDepth: u32 | null;
|
|
436
|
+
readonly mode: u32 | null;
|
|
437
|
+
readonly uid: u32 | null;
|
|
438
|
+
readonly gid: u32 | null;
|
|
439
|
+
readonly atimeMs: u64 | null;
|
|
440
|
+
readonly mtimeMs: u64 | null;
|
|
441
|
+
readonly len: u64 | null;
|
|
442
|
+
readonly offset: u64 | null;
|
|
443
|
+
};
|
|
444
|
+
export declare function readGuestFilesystemCallRequest(bc: bare.ByteCursor): GuestFilesystemCallRequest;
|
|
445
|
+
export declare function writeGuestFilesystemCallRequest(bc: bare.ByteCursor, x: GuestFilesystemCallRequest): void;
|
|
446
|
+
export type GuestKernelCallRequest = {
|
|
447
|
+
readonly executionId: string;
|
|
448
|
+
readonly operation: string;
|
|
449
|
+
readonly payload: ArrayBuffer;
|
|
450
|
+
};
|
|
451
|
+
export declare function readGuestKernelCallRequest(bc: bare.ByteCursor): GuestKernelCallRequest;
|
|
452
|
+
export declare function writeGuestKernelCallRequest(bc: bare.ByteCursor, x: GuestKernelCallRequest): void;
|
|
453
|
+
export type SnapshotRootFilesystemRequest = null;
|
|
454
|
+
export type PtyOptions = {
|
|
455
|
+
readonly cols: u16 | null;
|
|
456
|
+
readonly rows: u16 | null;
|
|
457
|
+
};
|
|
458
|
+
export declare function readPtyOptions(bc: bare.ByteCursor): PtyOptions;
|
|
459
|
+
export declare function writePtyOptions(bc: bare.ByteCursor, x: PtyOptions): void;
|
|
460
|
+
export type ExecuteRequest = {
|
|
461
|
+
readonly processId: string | null;
|
|
462
|
+
readonly command: string | null;
|
|
463
|
+
readonly shellCommand: string | null;
|
|
464
|
+
readonly runtime: GuestRuntimeKind | null;
|
|
465
|
+
readonly entrypoint: string | null;
|
|
466
|
+
readonly args: readonly string[];
|
|
467
|
+
readonly env: ReadonlyMap<string, string> | null;
|
|
468
|
+
readonly cwd: string | null;
|
|
469
|
+
readonly wasmPermissionTier: WasmPermissionTier | null;
|
|
470
|
+
readonly pty: PtyOptions | null;
|
|
471
|
+
readonly keepStdinOpen: boolean | null;
|
|
472
|
+
readonly timeoutMs: u64 | null;
|
|
473
|
+
readonly captureOutput: boolean | null;
|
|
474
|
+
};
|
|
475
|
+
export declare function readExecuteRequest(bc: bare.ByteCursor): ExecuteRequest;
|
|
476
|
+
export declare function writeExecuteRequest(bc: bare.ByteCursor, x: ExecuteRequest): void;
|
|
477
|
+
export type WriteStdinRequest = {
|
|
478
|
+
readonly processId: string;
|
|
479
|
+
readonly chunk: ArrayBuffer;
|
|
480
|
+
};
|
|
481
|
+
export declare function readWriteStdinRequest(bc: bare.ByteCursor): WriteStdinRequest;
|
|
482
|
+
export declare function writeWriteStdinRequest(bc: bare.ByteCursor, x: WriteStdinRequest): void;
|
|
483
|
+
export type ResizePtyRequest = {
|
|
484
|
+
readonly processId: string;
|
|
485
|
+
readonly cols: u16;
|
|
486
|
+
readonly rows: u16;
|
|
487
|
+
};
|
|
488
|
+
export declare function readResizePtyRequest(bc: bare.ByteCursor): ResizePtyRequest;
|
|
489
|
+
export declare function writeResizePtyRequest(bc: bare.ByteCursor, x: ResizePtyRequest): void;
|
|
490
|
+
export type CloseStdinRequest = {
|
|
491
|
+
readonly processId: string;
|
|
492
|
+
};
|
|
493
|
+
export declare function readCloseStdinRequest(bc: bare.ByteCursor): CloseStdinRequest;
|
|
494
|
+
export declare function writeCloseStdinRequest(bc: bare.ByteCursor, x: CloseStdinRequest): void;
|
|
495
|
+
export type KillProcessRequest = {
|
|
496
|
+
readonly processId: string;
|
|
497
|
+
readonly signal: string;
|
|
498
|
+
};
|
|
499
|
+
export declare function readKillProcessRequest(bc: bare.ByteCursor): KillProcessRequest;
|
|
500
|
+
export declare function writeKillProcessRequest(bc: bare.ByteCursor, x: KillProcessRequest): void;
|
|
501
|
+
export type GetProcessSnapshotRequest = null;
|
|
502
|
+
export type GetResourceSnapshotRequest = null;
|
|
503
|
+
export type FindListenerRequest = {
|
|
504
|
+
readonly host: string | null;
|
|
505
|
+
readonly port: u16 | null;
|
|
506
|
+
readonly path: string | null;
|
|
507
|
+
};
|
|
508
|
+
export declare function readFindListenerRequest(bc: bare.ByteCursor): FindListenerRequest;
|
|
509
|
+
export declare function writeFindListenerRequest(bc: bare.ByteCursor, x: FindListenerRequest): void;
|
|
510
|
+
export type FindBoundUdpRequest = {
|
|
511
|
+
readonly host: string | null;
|
|
512
|
+
readonly port: u16 | null;
|
|
513
|
+
};
|
|
514
|
+
export declare function readFindBoundUdpRequest(bc: bare.ByteCursor): FindBoundUdpRequest;
|
|
515
|
+
export declare function writeFindBoundUdpRequest(bc: bare.ByteCursor, x: FindBoundUdpRequest): void;
|
|
516
|
+
export type GetSignalStateRequest = {
|
|
517
|
+
readonly processId: string;
|
|
518
|
+
};
|
|
519
|
+
export declare function readGetSignalStateRequest(bc: bare.ByteCursor): GetSignalStateRequest;
|
|
520
|
+
export declare function writeGetSignalStateRequest(bc: bare.ByteCursor, x: GetSignalStateRequest): void;
|
|
521
|
+
export type GetZombieTimerCountRequest = null;
|
|
522
|
+
export declare enum FilesystemOperation {
|
|
523
|
+
Read = "Read",
|
|
524
|
+
Write = "Write",
|
|
525
|
+
Stat = "Stat",
|
|
526
|
+
ReadDir = "ReadDir",
|
|
527
|
+
Mkdir = "Mkdir",
|
|
528
|
+
Remove = "Remove",
|
|
529
|
+
Rename = "Rename"
|
|
530
|
+
}
|
|
531
|
+
export declare function readFilesystemOperation(bc: bare.ByteCursor): FilesystemOperation;
|
|
532
|
+
export declare function writeFilesystemOperation(bc: bare.ByteCursor, x: FilesystemOperation): void;
|
|
533
|
+
export type HostFilesystemCallRequest = {
|
|
534
|
+
readonly operation: FilesystemOperation;
|
|
535
|
+
readonly path: string;
|
|
536
|
+
readonly payloadSizeBytes: u64;
|
|
537
|
+
};
|
|
538
|
+
export declare function readHostFilesystemCallRequest(bc: bare.ByteCursor): HostFilesystemCallRequest;
|
|
539
|
+
export declare function writeHostFilesystemCallRequest(bc: bare.ByteCursor, x: HostFilesystemCallRequest): void;
|
|
540
|
+
export type PersistenceLoadRequest = {
|
|
541
|
+
readonly key: string;
|
|
542
|
+
};
|
|
543
|
+
export declare function readPersistenceLoadRequest(bc: bare.ByteCursor): PersistenceLoadRequest;
|
|
544
|
+
export declare function writePersistenceLoadRequest(bc: bare.ByteCursor, x: PersistenceLoadRequest): void;
|
|
545
|
+
export type PersistenceFlushRequest = {
|
|
546
|
+
readonly key: string;
|
|
547
|
+
readonly payloadSizeBytes: u64;
|
|
548
|
+
};
|
|
549
|
+
export declare function readPersistenceFlushRequest(bc: bare.ByteCursor): PersistenceFlushRequest;
|
|
550
|
+
export declare function writePersistenceFlushRequest(bc: bare.ByteCursor, x: PersistenceFlushRequest): void;
|
|
551
|
+
export type VmFetchRequest = {
|
|
552
|
+
readonly port: u16;
|
|
553
|
+
readonly method: string;
|
|
554
|
+
readonly path: string;
|
|
555
|
+
readonly headersJson: string;
|
|
556
|
+
readonly body: string | null;
|
|
557
|
+
};
|
|
558
|
+
export declare function readVmFetchRequest(bc: bare.ByteCursor): VmFetchRequest;
|
|
559
|
+
export declare function writeVmFetchRequest(bc: bare.ByteCursor, x: VmFetchRequest): void;
|
|
560
|
+
export declare enum CronOverlap {
|
|
561
|
+
Allow = "Allow",
|
|
562
|
+
Skip = "Skip",
|
|
563
|
+
Queue = "Queue"
|
|
564
|
+
}
|
|
565
|
+
export declare function readCronOverlap(bc: bare.ByteCursor): CronOverlap;
|
|
566
|
+
export declare function writeCronOverlap(bc: bare.ByteCursor, x: CronOverlap): void;
|
|
567
|
+
/**
|
|
568
|
+
* `action` is an opaque, client-authored JSON value. The sidecar owns schedule
|
|
569
|
+
* parsing and lifecycle state; the client only retains/runs host resources that
|
|
570
|
+
* cannot cross the protocol (notably callback closures).
|
|
571
|
+
*/
|
|
572
|
+
export type ScheduleCronRequest = {
|
|
573
|
+
readonly id: string | null;
|
|
574
|
+
readonly schedule: string;
|
|
575
|
+
readonly action: JsonUtf8;
|
|
576
|
+
readonly overlap: CronOverlap | null;
|
|
577
|
+
};
|
|
578
|
+
export declare function readScheduleCronRequest(bc: bare.ByteCursor): ScheduleCronRequest;
|
|
579
|
+
export declare function writeScheduleCronRequest(bc: bare.ByteCursor, x: ScheduleCronRequest): void;
|
|
580
|
+
export type ListCronJobsRequest = null;
|
|
581
|
+
export type CancelCronJobRequest = {
|
|
582
|
+
readonly id: string;
|
|
583
|
+
};
|
|
584
|
+
export declare function readCancelCronJobRequest(bc: bare.ByteCursor): CancelCronJobRequest;
|
|
585
|
+
export declare function writeCancelCronJobRequest(bc: bare.ByteCursor, x: CancelCronJobRequest): void;
|
|
586
|
+
export type WakeCronRequest = {
|
|
587
|
+
readonly generation: u64;
|
|
588
|
+
};
|
|
589
|
+
export declare function readWakeCronRequest(bc: bare.ByteCursor): WakeCronRequest;
|
|
590
|
+
export declare function writeWakeCronRequest(bc: bare.ByteCursor, x: WakeCronRequest): void;
|
|
591
|
+
export type CompleteCronRunRequest = {
|
|
592
|
+
readonly runId: string;
|
|
593
|
+
readonly error: string | null;
|
|
594
|
+
};
|
|
595
|
+
export declare function readCompleteCronRunRequest(bc: bare.ByteCursor): CompleteCronRunRequest;
|
|
596
|
+
export declare function writeCompleteCronRunRequest(bc: bare.ByteCursor, x: CompleteCronRunRequest): void;
|
|
597
|
+
/**
|
|
598
|
+
* Opaque sidecar-owned persistence. Hosts may store and return this value but
|
|
599
|
+
* must not inspect, merge, or manufacture it.
|
|
600
|
+
*/
|
|
601
|
+
export type ExportCronStateRequest = null;
|
|
602
|
+
export type ImportCronStateRequest = {
|
|
603
|
+
readonly state: JsonUtf8;
|
|
604
|
+
};
|
|
605
|
+
export declare function readImportCronStateRequest(bc: bare.ByteCursor): ImportCronStateRequest;
|
|
606
|
+
export declare function writeImportCronStateRequest(bc: bare.ByteCursor, x: ImportCronStateRequest): void;
|
|
607
|
+
export type RequestPayload = {
|
|
608
|
+
readonly tag: "AuthenticateRequest";
|
|
609
|
+
readonly val: AuthenticateRequest;
|
|
610
|
+
} | {
|
|
611
|
+
readonly tag: "OpenSessionRequest";
|
|
612
|
+
readonly val: OpenSessionRequest;
|
|
613
|
+
} | {
|
|
614
|
+
readonly tag: "CreateVmRequest";
|
|
615
|
+
readonly val: CreateVmRequest;
|
|
616
|
+
} | {
|
|
617
|
+
readonly tag: "DisposeVmRequest";
|
|
618
|
+
readonly val: DisposeVmRequest;
|
|
619
|
+
} | {
|
|
620
|
+
readonly tag: "BootstrapRootFilesystemRequest";
|
|
621
|
+
readonly val: BootstrapRootFilesystemRequest;
|
|
622
|
+
} | {
|
|
623
|
+
readonly tag: "ConfigureVmRequest";
|
|
624
|
+
readonly val: ConfigureVmRequest;
|
|
625
|
+
} | {
|
|
626
|
+
readonly tag: "RegisterHostCallbacksRequest";
|
|
627
|
+
readonly val: RegisterHostCallbacksRequest;
|
|
628
|
+
} | {
|
|
629
|
+
readonly tag: "CreateLayerRequest";
|
|
630
|
+
readonly val: CreateLayerRequest;
|
|
631
|
+
} | {
|
|
632
|
+
readonly tag: "SealLayerRequest";
|
|
633
|
+
readonly val: SealLayerRequest;
|
|
634
|
+
} | {
|
|
635
|
+
readonly tag: "ImportSnapshotRequest";
|
|
636
|
+
readonly val: ImportSnapshotRequest;
|
|
637
|
+
} | {
|
|
638
|
+
readonly tag: "ExportSnapshotRequest";
|
|
639
|
+
readonly val: ExportSnapshotRequest;
|
|
640
|
+
} | {
|
|
641
|
+
readonly tag: "CreateOverlayRequest";
|
|
642
|
+
readonly val: CreateOverlayRequest;
|
|
643
|
+
} | {
|
|
644
|
+
readonly tag: "GuestFilesystemCallRequest";
|
|
645
|
+
readonly val: GuestFilesystemCallRequest;
|
|
646
|
+
} | {
|
|
647
|
+
readonly tag: "SnapshotRootFilesystemRequest";
|
|
648
|
+
readonly val: SnapshotRootFilesystemRequest;
|
|
649
|
+
} | {
|
|
650
|
+
readonly tag: "ExecuteRequest";
|
|
651
|
+
readonly val: ExecuteRequest;
|
|
652
|
+
} | {
|
|
653
|
+
readonly tag: "WriteStdinRequest";
|
|
654
|
+
readonly val: WriteStdinRequest;
|
|
655
|
+
} | {
|
|
656
|
+
readonly tag: "CloseStdinRequest";
|
|
657
|
+
readonly val: CloseStdinRequest;
|
|
658
|
+
} | {
|
|
659
|
+
readonly tag: "KillProcessRequest";
|
|
660
|
+
readonly val: KillProcessRequest;
|
|
661
|
+
} | {
|
|
662
|
+
readonly tag: "GetProcessSnapshotRequest";
|
|
663
|
+
readonly val: GetProcessSnapshotRequest;
|
|
664
|
+
} | {
|
|
665
|
+
readonly tag: "FindListenerRequest";
|
|
666
|
+
readonly val: FindListenerRequest;
|
|
667
|
+
} | {
|
|
668
|
+
readonly tag: "FindBoundUdpRequest";
|
|
669
|
+
readonly val: FindBoundUdpRequest;
|
|
670
|
+
} | {
|
|
671
|
+
readonly tag: "GetSignalStateRequest";
|
|
672
|
+
readonly val: GetSignalStateRequest;
|
|
673
|
+
} | {
|
|
674
|
+
readonly tag: "GetZombieTimerCountRequest";
|
|
675
|
+
readonly val: GetZombieTimerCountRequest;
|
|
676
|
+
} | {
|
|
677
|
+
readonly tag: "HostFilesystemCallRequest";
|
|
678
|
+
readonly val: HostFilesystemCallRequest;
|
|
679
|
+
} | {
|
|
680
|
+
readonly tag: "PersistenceLoadRequest";
|
|
681
|
+
readonly val: PersistenceLoadRequest;
|
|
682
|
+
} | {
|
|
683
|
+
readonly tag: "PersistenceFlushRequest";
|
|
684
|
+
readonly val: PersistenceFlushRequest;
|
|
685
|
+
} | {
|
|
686
|
+
readonly tag: "VmFetchRequest";
|
|
687
|
+
readonly val: VmFetchRequest;
|
|
688
|
+
} | {
|
|
689
|
+
readonly tag: "ExtEnvelope";
|
|
690
|
+
readonly val: ExtEnvelope;
|
|
691
|
+
} | {
|
|
692
|
+
readonly tag: "GuestKernelCallRequest";
|
|
693
|
+
readonly val: GuestKernelCallRequest;
|
|
694
|
+
} | {
|
|
695
|
+
readonly tag: "ResizePtyRequest";
|
|
696
|
+
readonly val: ResizePtyRequest;
|
|
697
|
+
} | {
|
|
698
|
+
readonly tag: "GetResourceSnapshotRequest";
|
|
699
|
+
readonly val: GetResourceSnapshotRequest;
|
|
700
|
+
} | {
|
|
701
|
+
readonly tag: "LinkPackageRequest";
|
|
702
|
+
readonly val: LinkPackageRequest;
|
|
703
|
+
} | {
|
|
704
|
+
readonly tag: "ProvidedCommandsRequest";
|
|
705
|
+
readonly val: ProvidedCommandsRequest;
|
|
706
|
+
} | {
|
|
707
|
+
readonly tag: "ScheduleCronRequest";
|
|
708
|
+
readonly val: ScheduleCronRequest;
|
|
709
|
+
} | {
|
|
710
|
+
readonly tag: "ListCronJobsRequest";
|
|
711
|
+
readonly val: ListCronJobsRequest;
|
|
712
|
+
} | {
|
|
713
|
+
readonly tag: "CancelCronJobRequest";
|
|
714
|
+
readonly val: CancelCronJobRequest;
|
|
715
|
+
} | {
|
|
716
|
+
readonly tag: "WakeCronRequest";
|
|
717
|
+
readonly val: WakeCronRequest;
|
|
718
|
+
} | {
|
|
719
|
+
readonly tag: "CompleteCronRunRequest";
|
|
720
|
+
readonly val: CompleteCronRunRequest;
|
|
721
|
+
} | {
|
|
722
|
+
readonly tag: "ExportCronStateRequest";
|
|
723
|
+
readonly val: ExportCronStateRequest;
|
|
724
|
+
} | {
|
|
725
|
+
readonly tag: "ImportCronStateRequest";
|
|
726
|
+
readonly val: ImportCronStateRequest;
|
|
727
|
+
} | {
|
|
728
|
+
readonly tag: "InitializeVmRequest";
|
|
729
|
+
readonly val: InitializeVmRequest;
|
|
730
|
+
} | {
|
|
731
|
+
readonly tag: "CloseSessionRequest";
|
|
732
|
+
readonly val: CloseSessionRequest;
|
|
733
|
+
};
|
|
734
|
+
export declare function readRequestPayload(bc: bare.ByteCursor): RequestPayload;
|
|
735
|
+
export declare function writeRequestPayload(bc: bare.ByteCursor, x: RequestPayload): void;
|
|
736
|
+
export type RequestFrame = {
|
|
737
|
+
readonly schema: ProtocolSchema;
|
|
738
|
+
readonly requestId: RequestId;
|
|
739
|
+
readonly ownership: OwnershipScope;
|
|
740
|
+
readonly payload: RequestPayload;
|
|
741
|
+
};
|
|
742
|
+
export declare function readRequestFrame(bc: bare.ByteCursor): RequestFrame;
|
|
743
|
+
export declare function writeRequestFrame(bc: bare.ByteCursor, x: RequestFrame): void;
|
|
744
|
+
export type AuthenticatedResponse = {
|
|
745
|
+
readonly sidecarId: string;
|
|
746
|
+
readonly connectionId: string;
|
|
747
|
+
readonly maxFrameBytes: u32;
|
|
748
|
+
};
|
|
749
|
+
export declare function readAuthenticatedResponse(bc: bare.ByteCursor): AuthenticatedResponse;
|
|
750
|
+
export declare function writeAuthenticatedResponse(bc: bare.ByteCursor, x: AuthenticatedResponse): void;
|
|
751
|
+
export type SessionOpenedResponse = {
|
|
752
|
+
readonly sessionId: string;
|
|
753
|
+
readonly ownerConnectionId: string;
|
|
754
|
+
};
|
|
755
|
+
export declare function readSessionOpenedResponse(bc: bare.ByteCursor): SessionOpenedResponse;
|
|
756
|
+
export declare function writeSessionOpenedResponse(bc: bare.ByteCursor, x: SessionOpenedResponse): void;
|
|
757
|
+
export type SessionClosedResponse = {
|
|
758
|
+
readonly sessionId: string;
|
|
759
|
+
};
|
|
760
|
+
export declare function readSessionClosedResponse(bc: bare.ByteCursor): SessionClosedResponse;
|
|
761
|
+
export declare function writeSessionClosedResponse(bc: bare.ByteCursor, x: SessionClosedResponse): void;
|
|
762
|
+
export type VmCreatedResponse = {
|
|
763
|
+
readonly vmId: string;
|
|
764
|
+
readonly guestCwd: string;
|
|
765
|
+
readonly guestEnv: ReadonlyMap<string, string>;
|
|
766
|
+
/**
|
|
767
|
+
* Sidecar-resolved bound for completed host process callback routes. Clients
|
|
768
|
+
* retain only lightweight terminal correlation up to this count.
|
|
769
|
+
*/
|
|
770
|
+
readonly processRouteRetention: u64;
|
|
771
|
+
};
|
|
772
|
+
export declare function readVmCreatedResponse(bc: bare.ByteCursor): VmCreatedResponse;
|
|
773
|
+
export declare function writeVmCreatedResponse(bc: bare.ByteCursor, x: VmCreatedResponse): void;
|
|
774
|
+
export type VmDisposedResponse = {
|
|
775
|
+
readonly vmId: string;
|
|
776
|
+
};
|
|
777
|
+
export declare function readVmDisposedResponse(bc: bare.ByteCursor): VmDisposedResponse;
|
|
778
|
+
export declare function writeVmDisposedResponse(bc: bare.ByteCursor, x: VmDisposedResponse): void;
|
|
779
|
+
export type RootFilesystemBootstrappedResponse = {
|
|
780
|
+
readonly entryCount: u32;
|
|
781
|
+
};
|
|
782
|
+
export declare function readRootFilesystemBootstrappedResponse(bc: bare.ByteCursor): RootFilesystemBootstrappedResponse;
|
|
783
|
+
export declare function writeRootFilesystemBootstrappedResponse(bc: bare.ByteCursor, x: RootFilesystemBootstrappedResponse): void;
|
|
784
|
+
export type VmConfiguredResponse = {
|
|
785
|
+
readonly appliedMounts: u32;
|
|
786
|
+
readonly projectedCommands: readonly ProjectedCommand[];
|
|
787
|
+
readonly agents: readonly AgentosProjectedAgent[];
|
|
788
|
+
};
|
|
789
|
+
export declare function readVmConfiguredResponse(bc: bare.ByteCursor): VmConfiguredResponse;
|
|
790
|
+
export declare function writeVmConfiguredResponse(bc: bare.ByteCursor, x: VmConfiguredResponse): void;
|
|
791
|
+
export type HostCallbacksRegisteredResponse = {
|
|
792
|
+
readonly registration: string;
|
|
793
|
+
readonly commandCount: u32;
|
|
794
|
+
};
|
|
795
|
+
export declare function readHostCallbacksRegisteredResponse(bc: bare.ByteCursor): HostCallbacksRegisteredResponse;
|
|
796
|
+
export declare function writeHostCallbacksRegisteredResponse(bc: bare.ByteCursor, x: HostCallbacksRegisteredResponse): void;
|
|
797
|
+
export type VmInitializedResponse = {
|
|
798
|
+
readonly vmId: string;
|
|
799
|
+
readonly guestCwd: string;
|
|
800
|
+
readonly guestEnv: ReadonlyMap<string, string>;
|
|
801
|
+
readonly processRouteRetention: u64;
|
|
802
|
+
readonly appliedMounts: u32;
|
|
803
|
+
readonly projectedCommands: readonly ProjectedCommand[];
|
|
804
|
+
readonly agents: readonly AgentosProjectedAgent[];
|
|
805
|
+
readonly hostCallbacks: readonly HostCallbacksRegisteredResponse[];
|
|
806
|
+
};
|
|
807
|
+
export declare function readVmInitializedResponse(bc: bare.ByteCursor): VmInitializedResponse;
|
|
808
|
+
export declare function writeVmInitializedResponse(bc: bare.ByteCursor, x: VmInitializedResponse): void;
|
|
809
|
+
export type LayerCreatedResponse = {
|
|
810
|
+
readonly layerId: string;
|
|
811
|
+
};
|
|
812
|
+
export declare function readLayerCreatedResponse(bc: bare.ByteCursor): LayerCreatedResponse;
|
|
813
|
+
export declare function writeLayerCreatedResponse(bc: bare.ByteCursor, x: LayerCreatedResponse): void;
|
|
814
|
+
export type LayerSealedResponse = {
|
|
815
|
+
readonly layerId: string;
|
|
816
|
+
};
|
|
817
|
+
export declare function readLayerSealedResponse(bc: bare.ByteCursor): LayerSealedResponse;
|
|
818
|
+
export declare function writeLayerSealedResponse(bc: bare.ByteCursor, x: LayerSealedResponse): void;
|
|
819
|
+
export type SnapshotImportedResponse = {
|
|
820
|
+
readonly layerId: string;
|
|
821
|
+
};
|
|
822
|
+
export declare function readSnapshotImportedResponse(bc: bare.ByteCursor): SnapshotImportedResponse;
|
|
823
|
+
export declare function writeSnapshotImportedResponse(bc: bare.ByteCursor, x: SnapshotImportedResponse): void;
|
|
824
|
+
export type SnapshotExportedResponse = {
|
|
825
|
+
readonly layerId: string;
|
|
826
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
827
|
+
};
|
|
828
|
+
export declare function readSnapshotExportedResponse(bc: bare.ByteCursor): SnapshotExportedResponse;
|
|
829
|
+
export declare function writeSnapshotExportedResponse(bc: bare.ByteCursor, x: SnapshotExportedResponse): void;
|
|
830
|
+
export type OverlayCreatedResponse = {
|
|
831
|
+
readonly layerId: string;
|
|
832
|
+
};
|
|
833
|
+
export declare function readOverlayCreatedResponse(bc: bare.ByteCursor): OverlayCreatedResponse;
|
|
834
|
+
export declare function writeOverlayCreatedResponse(bc: bare.ByteCursor, x: OverlayCreatedResponse): void;
|
|
835
|
+
export type GuestFilesystemStat = {
|
|
836
|
+
readonly mode: u32;
|
|
837
|
+
readonly size: u64;
|
|
838
|
+
readonly blocks: u64;
|
|
839
|
+
readonly dev: u64;
|
|
840
|
+
readonly rdev: u64;
|
|
841
|
+
readonly isDirectory: boolean;
|
|
842
|
+
readonly isSymbolicLink: boolean;
|
|
843
|
+
readonly atimeMs: u64;
|
|
844
|
+
readonly mtimeMs: u64;
|
|
845
|
+
readonly ctimeMs: u64;
|
|
846
|
+
readonly birthtimeMs: u64;
|
|
847
|
+
readonly ino: u64;
|
|
848
|
+
readonly nlink: u64;
|
|
849
|
+
readonly uid: u32;
|
|
850
|
+
readonly gid: u32;
|
|
851
|
+
};
|
|
852
|
+
export declare function readGuestFilesystemStat(bc: bare.ByteCursor): GuestFilesystemStat;
|
|
853
|
+
export declare function writeGuestFilesystemStat(bc: bare.ByteCursor, x: GuestFilesystemStat): void;
|
|
854
|
+
export type GuestDirEntry = {
|
|
855
|
+
readonly name: string;
|
|
856
|
+
readonly path: string;
|
|
857
|
+
readonly isDirectory: boolean;
|
|
858
|
+
readonly isSymbolicLink: boolean;
|
|
859
|
+
readonly size: u64;
|
|
860
|
+
};
|
|
861
|
+
export declare function readGuestDirEntry(bc: bare.ByteCursor): GuestDirEntry;
|
|
862
|
+
export declare function writeGuestDirEntry(bc: bare.ByteCursor, x: GuestDirEntry): void;
|
|
863
|
+
export type GuestFilesystemResultResponse = {
|
|
864
|
+
readonly operation: GuestFilesystemOperation;
|
|
865
|
+
readonly path: string;
|
|
866
|
+
readonly content: string | null;
|
|
867
|
+
readonly encoding: RootFilesystemEntryEncoding | null;
|
|
868
|
+
readonly entries: readonly GuestDirEntry[] | null;
|
|
869
|
+
readonly stat: GuestFilesystemStat | null;
|
|
870
|
+
readonly exists: boolean | null;
|
|
871
|
+
readonly target: string | null;
|
|
872
|
+
};
|
|
873
|
+
export declare function readGuestFilesystemResultResponse(bc: bare.ByteCursor): GuestFilesystemResultResponse;
|
|
874
|
+
export declare function writeGuestFilesystemResultResponse(bc: bare.ByteCursor, x: GuestFilesystemResultResponse): void;
|
|
875
|
+
export type GuestKernelResultResponse = {
|
|
876
|
+
readonly payload: ArrayBuffer;
|
|
877
|
+
};
|
|
878
|
+
export declare function readGuestKernelResultResponse(bc: bare.ByteCursor): GuestKernelResultResponse;
|
|
879
|
+
export declare function writeGuestKernelResultResponse(bc: bare.ByteCursor, x: GuestKernelResultResponse): void;
|
|
880
|
+
export type RootFilesystemSnapshotResponse = {
|
|
881
|
+
readonly entries: readonly RootFilesystemEntry[];
|
|
882
|
+
};
|
|
883
|
+
export declare function readRootFilesystemSnapshotResponse(bc: bare.ByteCursor): RootFilesystemSnapshotResponse;
|
|
884
|
+
export declare function writeRootFilesystemSnapshotResponse(bc: bare.ByteCursor, x: RootFilesystemSnapshotResponse): void;
|
|
885
|
+
export type ProcessStartedResponse = {
|
|
886
|
+
readonly processId: string;
|
|
887
|
+
readonly pid: u32 | null;
|
|
888
|
+
};
|
|
889
|
+
export declare function readProcessStartedResponse(bc: bare.ByteCursor): ProcessStartedResponse;
|
|
890
|
+
export declare function writeProcessStartedResponse(bc: bare.ByteCursor, x: ProcessStartedResponse): void;
|
|
891
|
+
export type StdinWrittenResponse = {
|
|
892
|
+
readonly processId: string;
|
|
893
|
+
readonly acceptedBytes: u64;
|
|
894
|
+
};
|
|
895
|
+
export declare function readStdinWrittenResponse(bc: bare.ByteCursor): StdinWrittenResponse;
|
|
896
|
+
export declare function writeStdinWrittenResponse(bc: bare.ByteCursor, x: StdinWrittenResponse): void;
|
|
897
|
+
export type PtyResizedResponse = {
|
|
898
|
+
readonly processId: string;
|
|
899
|
+
readonly cols: u16;
|
|
900
|
+
readonly rows: u16;
|
|
901
|
+
};
|
|
902
|
+
export declare function readPtyResizedResponse(bc: bare.ByteCursor): PtyResizedResponse;
|
|
903
|
+
export declare function writePtyResizedResponse(bc: bare.ByteCursor, x: PtyResizedResponse): void;
|
|
904
|
+
export type StdinClosedResponse = {
|
|
905
|
+
readonly processId: string;
|
|
906
|
+
};
|
|
907
|
+
export declare function readStdinClosedResponse(bc: bare.ByteCursor): StdinClosedResponse;
|
|
908
|
+
export declare function writeStdinClosedResponse(bc: bare.ByteCursor, x: StdinClosedResponse): void;
|
|
909
|
+
export type ProcessKilledResponse = {
|
|
910
|
+
readonly processId: string;
|
|
911
|
+
};
|
|
912
|
+
export declare function readProcessKilledResponse(bc: bare.ByteCursor): ProcessKilledResponse;
|
|
913
|
+
export declare function writeProcessKilledResponse(bc: bare.ByteCursor, x: ProcessKilledResponse): void;
|
|
914
|
+
export declare enum ProcessSnapshotStatus {
|
|
915
|
+
Running = "Running",
|
|
916
|
+
Exited = "Exited",
|
|
917
|
+
Stopped = "Stopped"
|
|
918
|
+
}
|
|
919
|
+
export declare function readProcessSnapshotStatus(bc: bare.ByteCursor): ProcessSnapshotStatus;
|
|
920
|
+
export declare function writeProcessSnapshotStatus(bc: bare.ByteCursor, x: ProcessSnapshotStatus): void;
|
|
921
|
+
export type ProcessSnapshotEntry = {
|
|
922
|
+
readonly processId: string;
|
|
923
|
+
readonly pid: u32;
|
|
924
|
+
readonly ppid: u32;
|
|
925
|
+
readonly pgid: u32;
|
|
926
|
+
readonly sid: u32;
|
|
927
|
+
readonly driver: string;
|
|
928
|
+
readonly command: string;
|
|
929
|
+
readonly args: readonly string[];
|
|
930
|
+
readonly cwd: string;
|
|
931
|
+
readonly status: ProcessSnapshotStatus;
|
|
932
|
+
readonly exitCode: i32 | null;
|
|
933
|
+
readonly startTimeMs: u64;
|
|
934
|
+
readonly exitTimeMs: u64 | null;
|
|
935
|
+
};
|
|
936
|
+
export declare function readProcessSnapshotEntry(bc: bare.ByteCursor): ProcessSnapshotEntry;
|
|
937
|
+
export declare function writeProcessSnapshotEntry(bc: bare.ByteCursor, x: ProcessSnapshotEntry): void;
|
|
938
|
+
export type ProcessSnapshotResponse = {
|
|
939
|
+
readonly processes: readonly ProcessSnapshotEntry[];
|
|
940
|
+
};
|
|
941
|
+
export declare function readProcessSnapshotResponse(bc: bare.ByteCursor): ProcessSnapshotResponse;
|
|
942
|
+
export declare function writeProcessSnapshotResponse(bc: bare.ByteCursor, x: ProcessSnapshotResponse): void;
|
|
943
|
+
export type QueueSnapshotEntry = {
|
|
944
|
+
readonly name: string;
|
|
945
|
+
readonly category: string;
|
|
946
|
+
readonly depth: u64;
|
|
947
|
+
readonly highWater: u64;
|
|
948
|
+
readonly capacity: u64;
|
|
949
|
+
readonly fillPercent: u64;
|
|
950
|
+
};
|
|
951
|
+
export declare function readQueueSnapshotEntry(bc: bare.ByteCursor): QueueSnapshotEntry;
|
|
952
|
+
export declare function writeQueueSnapshotEntry(bc: bare.ByteCursor, x: QueueSnapshotEntry): void;
|
|
953
|
+
export type ResourceSnapshotResponse = {
|
|
954
|
+
readonly runningProcesses: u64;
|
|
955
|
+
readonly exitedProcesses: u64;
|
|
956
|
+
readonly fdTables: u64;
|
|
957
|
+
readonly openFds: u64;
|
|
958
|
+
readonly pipes: u64;
|
|
959
|
+
readonly pipeBufferedBytes: u64;
|
|
960
|
+
readonly ptys: u64;
|
|
961
|
+
readonly ptyBufferedInputBytes: u64;
|
|
962
|
+
readonly ptyBufferedOutputBytes: u64;
|
|
963
|
+
readonly sockets: u64;
|
|
964
|
+
readonly socketListeners: u64;
|
|
965
|
+
readonly socketConnections: u64;
|
|
966
|
+
readonly socketBufferedBytes: u64;
|
|
967
|
+
readonly socketDatagramQueueLen: u64;
|
|
968
|
+
readonly queueSnapshots: readonly QueueSnapshotEntry[];
|
|
969
|
+
};
|
|
970
|
+
export declare function readResourceSnapshotResponse(bc: bare.ByteCursor): ResourceSnapshotResponse;
|
|
971
|
+
export declare function writeResourceSnapshotResponse(bc: bare.ByteCursor, x: ResourceSnapshotResponse): void;
|
|
972
|
+
export type SocketStateEntry = {
|
|
973
|
+
readonly processId: string;
|
|
974
|
+
readonly host: string | null;
|
|
975
|
+
readonly port: u16 | null;
|
|
976
|
+
readonly path: string | null;
|
|
977
|
+
};
|
|
978
|
+
export declare function readSocketStateEntry(bc: bare.ByteCursor): SocketStateEntry;
|
|
979
|
+
export declare function writeSocketStateEntry(bc: bare.ByteCursor, x: SocketStateEntry): void;
|
|
980
|
+
export type ListenerSnapshotResponse = {
|
|
981
|
+
readonly listener: SocketStateEntry | null;
|
|
982
|
+
};
|
|
983
|
+
export declare function readListenerSnapshotResponse(bc: bare.ByteCursor): ListenerSnapshotResponse;
|
|
984
|
+
export declare function writeListenerSnapshotResponse(bc: bare.ByteCursor, x: ListenerSnapshotResponse): void;
|
|
985
|
+
export type BoundUdpSnapshotResponse = {
|
|
986
|
+
readonly socket: SocketStateEntry | null;
|
|
987
|
+
};
|
|
988
|
+
export declare function readBoundUdpSnapshotResponse(bc: bare.ByteCursor): BoundUdpSnapshotResponse;
|
|
989
|
+
export declare function writeBoundUdpSnapshotResponse(bc: bare.ByteCursor, x: BoundUdpSnapshotResponse): void;
|
|
990
|
+
export declare enum SignalDispositionAction {
|
|
991
|
+
Default = "Default",
|
|
992
|
+
Ignore = "Ignore",
|
|
993
|
+
User = "User"
|
|
994
|
+
}
|
|
995
|
+
export declare function readSignalDispositionAction(bc: bare.ByteCursor): SignalDispositionAction;
|
|
996
|
+
export declare function writeSignalDispositionAction(bc: bare.ByteCursor, x: SignalDispositionAction): void;
|
|
997
|
+
export type SignalHandlerRegistration = {
|
|
998
|
+
readonly action: SignalDispositionAction;
|
|
999
|
+
readonly mask: Uint32Array;
|
|
1000
|
+
readonly flags: u32;
|
|
1001
|
+
};
|
|
1002
|
+
export declare function readSignalHandlerRegistration(bc: bare.ByteCursor): SignalHandlerRegistration;
|
|
1003
|
+
export declare function writeSignalHandlerRegistration(bc: bare.ByteCursor, x: SignalHandlerRegistration): void;
|
|
1004
|
+
export type SignalStateResponse = {
|
|
1005
|
+
readonly processId: string;
|
|
1006
|
+
readonly handlers: ReadonlyMap<u32, SignalHandlerRegistration>;
|
|
1007
|
+
};
|
|
1008
|
+
export declare function readSignalStateResponse(bc: bare.ByteCursor): SignalStateResponse;
|
|
1009
|
+
export declare function writeSignalStateResponse(bc: bare.ByteCursor, x: SignalStateResponse): void;
|
|
1010
|
+
export type ZombieTimerCountResponse = {
|
|
1011
|
+
readonly count: u64;
|
|
1012
|
+
};
|
|
1013
|
+
export declare function readZombieTimerCountResponse(bc: bare.ByteCursor): ZombieTimerCountResponse;
|
|
1014
|
+
export declare function writeZombieTimerCountResponse(bc: bare.ByteCursor, x: ZombieTimerCountResponse): void;
|
|
1015
|
+
export type FilesystemResultResponse = {
|
|
1016
|
+
readonly operation: FilesystemOperation;
|
|
1017
|
+
readonly status: string;
|
|
1018
|
+
readonly payloadSizeBytes: u64;
|
|
1019
|
+
};
|
|
1020
|
+
export declare function readFilesystemResultResponse(bc: bare.ByteCursor): FilesystemResultResponse;
|
|
1021
|
+
export declare function writeFilesystemResultResponse(bc: bare.ByteCursor, x: FilesystemResultResponse): void;
|
|
1022
|
+
export type PermissionDecisionResponse = {
|
|
1023
|
+
readonly capability: string;
|
|
1024
|
+
readonly decision: PermissionMode;
|
|
1025
|
+
};
|
|
1026
|
+
export declare function readPermissionDecisionResponse(bc: bare.ByteCursor): PermissionDecisionResponse;
|
|
1027
|
+
export declare function writePermissionDecisionResponse(bc: bare.ByteCursor, x: PermissionDecisionResponse): void;
|
|
1028
|
+
export type PersistenceStateResponse = {
|
|
1029
|
+
readonly key: string;
|
|
1030
|
+
readonly found: boolean;
|
|
1031
|
+
readonly payloadSizeBytes: u64;
|
|
1032
|
+
};
|
|
1033
|
+
export declare function readPersistenceStateResponse(bc: bare.ByteCursor): PersistenceStateResponse;
|
|
1034
|
+
export declare function writePersistenceStateResponse(bc: bare.ByteCursor, x: PersistenceStateResponse): void;
|
|
1035
|
+
export type PersistenceFlushedResponse = {
|
|
1036
|
+
readonly key: string;
|
|
1037
|
+
readonly committedBytes: u64;
|
|
1038
|
+
};
|
|
1039
|
+
export declare function readPersistenceFlushedResponse(bc: bare.ByteCursor): PersistenceFlushedResponse;
|
|
1040
|
+
export declare function writePersistenceFlushedResponse(bc: bare.ByteCursor, x: PersistenceFlushedResponse): void;
|
|
1041
|
+
export type RejectedResponse = {
|
|
1042
|
+
readonly code: string;
|
|
1043
|
+
readonly message: string;
|
|
1044
|
+
};
|
|
1045
|
+
export declare function readRejectedResponse(bc: bare.ByteCursor): RejectedResponse;
|
|
1046
|
+
export declare function writeRejectedResponse(bc: bare.ByteCursor, x: RejectedResponse): void;
|
|
1047
|
+
export type VmFetchResponse = {
|
|
1048
|
+
readonly responseJson: string;
|
|
1049
|
+
};
|
|
1050
|
+
export declare function readVmFetchResponse(bc: bare.ByteCursor): VmFetchResponse;
|
|
1051
|
+
export declare function writeVmFetchResponse(bc: bare.ByteCursor, x: VmFetchResponse): void;
|
|
1052
|
+
export type CronAlarm = {
|
|
1053
|
+
readonly generation: u64;
|
|
1054
|
+
readonly nextAlarmMs: u64 | null;
|
|
1055
|
+
};
|
|
1056
|
+
export declare function readCronAlarm(bc: bare.ByteCursor): CronAlarm;
|
|
1057
|
+
export declare function writeCronAlarm(bc: bare.ByteCursor, x: CronAlarm): void;
|
|
1058
|
+
export type CronJobEntry = {
|
|
1059
|
+
readonly id: string;
|
|
1060
|
+
readonly schedule: string;
|
|
1061
|
+
readonly action: JsonUtf8;
|
|
1062
|
+
readonly overlap: CronOverlap;
|
|
1063
|
+
readonly lastRunMs: u64 | null;
|
|
1064
|
+
readonly nextRunMs: u64 | null;
|
|
1065
|
+
readonly runCount: u64;
|
|
1066
|
+
readonly running: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
export declare function readCronJobEntry(bc: bare.ByteCursor): CronJobEntry;
|
|
1069
|
+
export declare function writeCronJobEntry(bc: bare.ByteCursor, x: CronJobEntry): void;
|
|
1070
|
+
export type CronRun = {
|
|
1071
|
+
readonly runId: string;
|
|
1072
|
+
readonly jobId: string;
|
|
1073
|
+
readonly action: JsonUtf8;
|
|
1074
|
+
};
|
|
1075
|
+
export declare function readCronRun(bc: bare.ByteCursor): CronRun;
|
|
1076
|
+
export declare function writeCronRun(bc: bare.ByteCursor, x: CronRun): void;
|
|
1077
|
+
export declare enum CronEventKind {
|
|
1078
|
+
Fire = "Fire",
|
|
1079
|
+
Complete = "Complete",
|
|
1080
|
+
Error = "Error"
|
|
1081
|
+
}
|
|
1082
|
+
export declare function readCronEventKind(bc: bare.ByteCursor): CronEventKind;
|
|
1083
|
+
export declare function writeCronEventKind(bc: bare.ByteCursor, x: CronEventKind): void;
|
|
1084
|
+
export type CronEventRecord = {
|
|
1085
|
+
readonly kind: CronEventKind;
|
|
1086
|
+
readonly jobId: string;
|
|
1087
|
+
readonly timeMs: u64;
|
|
1088
|
+
readonly durationMs: u64 | null;
|
|
1089
|
+
readonly error: string | null;
|
|
1090
|
+
};
|
|
1091
|
+
export declare function readCronEventRecord(bc: bare.ByteCursor): CronEventRecord;
|
|
1092
|
+
export declare function writeCronEventRecord(bc: bare.ByteCursor, x: CronEventRecord): void;
|
|
1093
|
+
export type CronScheduledResponse = {
|
|
1094
|
+
readonly id: string;
|
|
1095
|
+
readonly alarm: CronAlarm;
|
|
1096
|
+
};
|
|
1097
|
+
export declare function readCronScheduledResponse(bc: bare.ByteCursor): CronScheduledResponse;
|
|
1098
|
+
export declare function writeCronScheduledResponse(bc: bare.ByteCursor, x: CronScheduledResponse): void;
|
|
1099
|
+
export type CronJobsResponse = {
|
|
1100
|
+
readonly jobs: readonly CronJobEntry[];
|
|
1101
|
+
readonly alarm: CronAlarm;
|
|
1102
|
+
};
|
|
1103
|
+
export declare function readCronJobsResponse(bc: bare.ByteCursor): CronJobsResponse;
|
|
1104
|
+
export declare function writeCronJobsResponse(bc: bare.ByteCursor, x: CronJobsResponse): void;
|
|
1105
|
+
export type CronCancelledResponse = {
|
|
1106
|
+
readonly id: string;
|
|
1107
|
+
readonly cancelled: boolean;
|
|
1108
|
+
readonly alarm: CronAlarm;
|
|
1109
|
+
};
|
|
1110
|
+
export declare function readCronCancelledResponse(bc: bare.ByteCursor): CronCancelledResponse;
|
|
1111
|
+
export declare function writeCronCancelledResponse(bc: bare.ByteCursor, x: CronCancelledResponse): void;
|
|
1112
|
+
export type CronWakeResponse = {
|
|
1113
|
+
readonly alarm: CronAlarm;
|
|
1114
|
+
readonly runs: readonly CronRun[];
|
|
1115
|
+
readonly events: readonly CronEventRecord[];
|
|
1116
|
+
};
|
|
1117
|
+
export declare function readCronWakeResponse(bc: bare.ByteCursor): CronWakeResponse;
|
|
1118
|
+
export declare function writeCronWakeResponse(bc: bare.ByteCursor, x: CronWakeResponse): void;
|
|
1119
|
+
export type CronRunCompletedResponse = {
|
|
1120
|
+
readonly alarm: CronAlarm;
|
|
1121
|
+
readonly runs: readonly CronRun[];
|
|
1122
|
+
readonly events: readonly CronEventRecord[];
|
|
1123
|
+
};
|
|
1124
|
+
export declare function readCronRunCompletedResponse(bc: bare.ByteCursor): CronRunCompletedResponse;
|
|
1125
|
+
export declare function writeCronRunCompletedResponse(bc: bare.ByteCursor, x: CronRunCompletedResponse): void;
|
|
1126
|
+
export type CronStateExportedResponse = {
|
|
1127
|
+
readonly state: JsonUtf8;
|
|
1128
|
+
};
|
|
1129
|
+
export declare function readCronStateExportedResponse(bc: bare.ByteCursor): CronStateExportedResponse;
|
|
1130
|
+
export declare function writeCronStateExportedResponse(bc: bare.ByteCursor, x: CronStateExportedResponse): void;
|
|
1131
|
+
export type CronStateImportedResponse = {
|
|
1132
|
+
readonly alarm: CronAlarm;
|
|
1133
|
+
readonly runs: readonly CronRun[];
|
|
1134
|
+
readonly events: readonly CronEventRecord[];
|
|
1135
|
+
};
|
|
1136
|
+
export declare function readCronStateImportedResponse(bc: bare.ByteCursor): CronStateImportedResponse;
|
|
1137
|
+
export declare function writeCronStateImportedResponse(bc: bare.ByteCursor, x: CronStateImportedResponse): void;
|
|
1138
|
+
export type ResponsePayload = {
|
|
1139
|
+
readonly tag: "AuthenticatedResponse";
|
|
1140
|
+
readonly val: AuthenticatedResponse;
|
|
1141
|
+
} | {
|
|
1142
|
+
readonly tag: "SessionOpenedResponse";
|
|
1143
|
+
readonly val: SessionOpenedResponse;
|
|
1144
|
+
} | {
|
|
1145
|
+
readonly tag: "VmCreatedResponse";
|
|
1146
|
+
readonly val: VmCreatedResponse;
|
|
1147
|
+
} | {
|
|
1148
|
+
readonly tag: "VmDisposedResponse";
|
|
1149
|
+
readonly val: VmDisposedResponse;
|
|
1150
|
+
} | {
|
|
1151
|
+
readonly tag: "RootFilesystemBootstrappedResponse";
|
|
1152
|
+
readonly val: RootFilesystemBootstrappedResponse;
|
|
1153
|
+
} | {
|
|
1154
|
+
readonly tag: "VmConfiguredResponse";
|
|
1155
|
+
readonly val: VmConfiguredResponse;
|
|
1156
|
+
} | {
|
|
1157
|
+
readonly tag: "HostCallbacksRegisteredResponse";
|
|
1158
|
+
readonly val: HostCallbacksRegisteredResponse;
|
|
1159
|
+
} | {
|
|
1160
|
+
readonly tag: "LayerCreatedResponse";
|
|
1161
|
+
readonly val: LayerCreatedResponse;
|
|
1162
|
+
} | {
|
|
1163
|
+
readonly tag: "LayerSealedResponse";
|
|
1164
|
+
readonly val: LayerSealedResponse;
|
|
1165
|
+
} | {
|
|
1166
|
+
readonly tag: "SnapshotImportedResponse";
|
|
1167
|
+
readonly val: SnapshotImportedResponse;
|
|
1168
|
+
} | {
|
|
1169
|
+
readonly tag: "SnapshotExportedResponse";
|
|
1170
|
+
readonly val: SnapshotExportedResponse;
|
|
1171
|
+
} | {
|
|
1172
|
+
readonly tag: "OverlayCreatedResponse";
|
|
1173
|
+
readonly val: OverlayCreatedResponse;
|
|
1174
|
+
} | {
|
|
1175
|
+
readonly tag: "GuestFilesystemResultResponse";
|
|
1176
|
+
readonly val: GuestFilesystemResultResponse;
|
|
1177
|
+
} | {
|
|
1178
|
+
readonly tag: "RootFilesystemSnapshotResponse";
|
|
1179
|
+
readonly val: RootFilesystemSnapshotResponse;
|
|
1180
|
+
} | {
|
|
1181
|
+
readonly tag: "ProcessStartedResponse";
|
|
1182
|
+
readonly val: ProcessStartedResponse;
|
|
1183
|
+
} | {
|
|
1184
|
+
readonly tag: "StdinWrittenResponse";
|
|
1185
|
+
readonly val: StdinWrittenResponse;
|
|
1186
|
+
} | {
|
|
1187
|
+
readonly tag: "StdinClosedResponse";
|
|
1188
|
+
readonly val: StdinClosedResponse;
|
|
1189
|
+
} | {
|
|
1190
|
+
readonly tag: "ProcessKilledResponse";
|
|
1191
|
+
readonly val: ProcessKilledResponse;
|
|
1192
|
+
} | {
|
|
1193
|
+
readonly tag: "ProcessSnapshotResponse";
|
|
1194
|
+
readonly val: ProcessSnapshotResponse;
|
|
1195
|
+
} | {
|
|
1196
|
+
readonly tag: "ListenerSnapshotResponse";
|
|
1197
|
+
readonly val: ListenerSnapshotResponse;
|
|
1198
|
+
} | {
|
|
1199
|
+
readonly tag: "BoundUdpSnapshotResponse";
|
|
1200
|
+
readonly val: BoundUdpSnapshotResponse;
|
|
1201
|
+
} | {
|
|
1202
|
+
readonly tag: "SignalStateResponse";
|
|
1203
|
+
readonly val: SignalStateResponse;
|
|
1204
|
+
} | {
|
|
1205
|
+
readonly tag: "ZombieTimerCountResponse";
|
|
1206
|
+
readonly val: ZombieTimerCountResponse;
|
|
1207
|
+
} | {
|
|
1208
|
+
readonly tag: "FilesystemResultResponse";
|
|
1209
|
+
readonly val: FilesystemResultResponse;
|
|
1210
|
+
} | {
|
|
1211
|
+
readonly tag: "PermissionDecisionResponse";
|
|
1212
|
+
readonly val: PermissionDecisionResponse;
|
|
1213
|
+
} | {
|
|
1214
|
+
readonly tag: "PersistenceStateResponse";
|
|
1215
|
+
readonly val: PersistenceStateResponse;
|
|
1216
|
+
} | {
|
|
1217
|
+
readonly tag: "PersistenceFlushedResponse";
|
|
1218
|
+
readonly val: PersistenceFlushedResponse;
|
|
1219
|
+
} | {
|
|
1220
|
+
readonly tag: "RejectedResponse";
|
|
1221
|
+
readonly val: RejectedResponse;
|
|
1222
|
+
} | {
|
|
1223
|
+
readonly tag: "VmFetchResponse";
|
|
1224
|
+
readonly val: VmFetchResponse;
|
|
1225
|
+
} | {
|
|
1226
|
+
readonly tag: "ExtEnvelope";
|
|
1227
|
+
readonly val: ExtEnvelope;
|
|
1228
|
+
} | {
|
|
1229
|
+
readonly tag: "GuestKernelResultResponse";
|
|
1230
|
+
readonly val: GuestKernelResultResponse;
|
|
1231
|
+
} | {
|
|
1232
|
+
readonly tag: "PtyResizedResponse";
|
|
1233
|
+
readonly val: PtyResizedResponse;
|
|
1234
|
+
} | {
|
|
1235
|
+
readonly tag: "ResourceSnapshotResponse";
|
|
1236
|
+
readonly val: ResourceSnapshotResponse;
|
|
1237
|
+
} | {
|
|
1238
|
+
readonly tag: "PackageLinkedResponse";
|
|
1239
|
+
readonly val: PackageLinkedResponse;
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly tag: "ProvidedCommandsResponse";
|
|
1242
|
+
readonly val: ProvidedCommandsResponse;
|
|
1243
|
+
} | {
|
|
1244
|
+
readonly tag: "CronScheduledResponse";
|
|
1245
|
+
readonly val: CronScheduledResponse;
|
|
1246
|
+
} | {
|
|
1247
|
+
readonly tag: "CronJobsResponse";
|
|
1248
|
+
readonly val: CronJobsResponse;
|
|
1249
|
+
} | {
|
|
1250
|
+
readonly tag: "CronCancelledResponse";
|
|
1251
|
+
readonly val: CronCancelledResponse;
|
|
1252
|
+
} | {
|
|
1253
|
+
readonly tag: "CronWakeResponse";
|
|
1254
|
+
readonly val: CronWakeResponse;
|
|
1255
|
+
} | {
|
|
1256
|
+
readonly tag: "CronRunCompletedResponse";
|
|
1257
|
+
readonly val: CronRunCompletedResponse;
|
|
1258
|
+
} | {
|
|
1259
|
+
readonly tag: "CronStateExportedResponse";
|
|
1260
|
+
readonly val: CronStateExportedResponse;
|
|
1261
|
+
} | {
|
|
1262
|
+
readonly tag: "CronStateImportedResponse";
|
|
1263
|
+
readonly val: CronStateImportedResponse;
|
|
1264
|
+
} | {
|
|
1265
|
+
readonly tag: "VmInitializedResponse";
|
|
1266
|
+
readonly val: VmInitializedResponse;
|
|
1267
|
+
} | {
|
|
1268
|
+
readonly tag: "SessionClosedResponse";
|
|
1269
|
+
readonly val: SessionClosedResponse;
|
|
1270
|
+
};
|
|
1271
|
+
export declare function readResponsePayload(bc: bare.ByteCursor): ResponsePayload;
|
|
1272
|
+
export declare function writeResponsePayload(bc: bare.ByteCursor, x: ResponsePayload): void;
|
|
1273
|
+
export type ResponseFrame = {
|
|
1274
|
+
readonly schema: ProtocolSchema;
|
|
1275
|
+
readonly requestId: RequestId;
|
|
1276
|
+
readonly ownership: OwnershipScope;
|
|
1277
|
+
readonly payload: ResponsePayload;
|
|
1278
|
+
};
|
|
1279
|
+
export declare function readResponseFrame(bc: bare.ByteCursor): ResponseFrame;
|
|
1280
|
+
export declare function writeResponseFrame(bc: bare.ByteCursor, x: ResponseFrame): void;
|
|
1281
|
+
export declare enum VmLifecycleState {
|
|
1282
|
+
Creating = "Creating",
|
|
1283
|
+
Ready = "Ready",
|
|
1284
|
+
Disposing = "Disposing",
|
|
1285
|
+
Disposed = "Disposed",
|
|
1286
|
+
Failed = "Failed"
|
|
1287
|
+
}
|
|
1288
|
+
export declare function readVmLifecycleState(bc: bare.ByteCursor): VmLifecycleState;
|
|
1289
|
+
export declare function writeVmLifecycleState(bc: bare.ByteCursor, x: VmLifecycleState): void;
|
|
1290
|
+
export type VmLifecycleEvent = {
|
|
1291
|
+
readonly state: VmLifecycleState;
|
|
1292
|
+
};
|
|
1293
|
+
export declare function readVmLifecycleEvent(bc: bare.ByteCursor): VmLifecycleEvent;
|
|
1294
|
+
export declare function writeVmLifecycleEvent(bc: bare.ByteCursor, x: VmLifecycleEvent): void;
|
|
1295
|
+
export declare enum StreamChannel {
|
|
1296
|
+
Stdout = "Stdout",
|
|
1297
|
+
Stderr = "Stderr"
|
|
1298
|
+
}
|
|
1299
|
+
export declare function readStreamChannel(bc: bare.ByteCursor): StreamChannel;
|
|
1300
|
+
export declare function writeStreamChannel(bc: bare.ByteCursor, x: StreamChannel): void;
|
|
1301
|
+
export type ProcessOutputEvent = {
|
|
1302
|
+
readonly processId: string;
|
|
1303
|
+
readonly channel: StreamChannel;
|
|
1304
|
+
readonly chunk: ArrayBuffer;
|
|
1305
|
+
};
|
|
1306
|
+
export declare function readProcessOutputEvent(bc: bare.ByteCursor): ProcessOutputEvent;
|
|
1307
|
+
export declare function writeProcessOutputEvent(bc: bare.ByteCursor, x: ProcessOutputEvent): void;
|
|
1308
|
+
export type ProcessExitedEvent = {
|
|
1309
|
+
readonly processId: string;
|
|
1310
|
+
readonly exitCode: i32;
|
|
1311
|
+
readonly stdout: ArrayBuffer | null;
|
|
1312
|
+
readonly stderr: ArrayBuffer | null;
|
|
1313
|
+
readonly error: RejectedResponse | null;
|
|
1314
|
+
};
|
|
1315
|
+
export declare function readProcessExitedEvent(bc: bare.ByteCursor): ProcessExitedEvent;
|
|
1316
|
+
export declare function writeProcessExitedEvent(bc: bare.ByteCursor, x: ProcessExitedEvent): void;
|
|
1317
|
+
/**
|
|
1318
|
+
* Asynchronous cron state produced after a sidecar-owned action finishes. Hosts
|
|
1319
|
+
* use the alarm to arm their one wake primitive, deliver lifecycle records, and
|
|
1320
|
+
* invoke only the callback runs whose closures cannot cross the protocol.
|
|
1321
|
+
*/
|
|
1322
|
+
export type CronDispatchEvent = {
|
|
1323
|
+
readonly alarm: CronAlarm;
|
|
1324
|
+
readonly runs: readonly CronRun[];
|
|
1325
|
+
readonly events: readonly CronEventRecord[];
|
|
1326
|
+
};
|
|
1327
|
+
export declare function readCronDispatchEvent(bc: bare.ByteCursor): CronDispatchEvent;
|
|
1328
|
+
export declare function writeCronDispatchEvent(bc: bare.ByteCursor, x: CronDispatchEvent): void;
|
|
1329
|
+
export type StructuredEvent = {
|
|
1330
|
+
readonly name: string;
|
|
1331
|
+
readonly detail: ReadonlyMap<string, string>;
|
|
1332
|
+
};
|
|
1333
|
+
export declare function readStructuredEvent(bc: bare.ByteCursor): StructuredEvent;
|
|
1334
|
+
export declare function writeStructuredEvent(bc: bare.ByteCursor, x: StructuredEvent): void;
|
|
1335
|
+
export type EventPayload = {
|
|
1336
|
+
readonly tag: "VmLifecycleEvent";
|
|
1337
|
+
readonly val: VmLifecycleEvent;
|
|
1338
|
+
} | {
|
|
1339
|
+
readonly tag: "ProcessOutputEvent";
|
|
1340
|
+
readonly val: ProcessOutputEvent;
|
|
1341
|
+
} | {
|
|
1342
|
+
readonly tag: "ProcessExitedEvent";
|
|
1343
|
+
readonly val: ProcessExitedEvent;
|
|
1344
|
+
} | {
|
|
1345
|
+
readonly tag: "CronDispatchEvent";
|
|
1346
|
+
readonly val: CronDispatchEvent;
|
|
1347
|
+
} | {
|
|
1348
|
+
readonly tag: "StructuredEvent";
|
|
1349
|
+
readonly val: StructuredEvent;
|
|
1350
|
+
} | {
|
|
1351
|
+
readonly tag: "ExtEnvelope";
|
|
1352
|
+
readonly val: ExtEnvelope;
|
|
1353
|
+
};
|
|
1354
|
+
export declare function readEventPayload(bc: bare.ByteCursor): EventPayload;
|
|
1355
|
+
export declare function writeEventPayload(bc: bare.ByteCursor, x: EventPayload): void;
|
|
1356
|
+
export type EventFrame = {
|
|
1357
|
+
readonly schema: ProtocolSchema;
|
|
1358
|
+
readonly ownership: OwnershipScope;
|
|
1359
|
+
readonly payload: EventPayload;
|
|
1360
|
+
};
|
|
1361
|
+
export declare function readEventFrame(bc: bare.ByteCursor): EventFrame;
|
|
1362
|
+
export declare function writeEventFrame(bc: bare.ByteCursor, x: EventFrame): void;
|
|
1363
|
+
export type HostCallbackRequest = {
|
|
1364
|
+
readonly invocationId: string;
|
|
1365
|
+
readonly callbackKey: string;
|
|
1366
|
+
readonly input: JsonUtf8;
|
|
1367
|
+
readonly timeoutMs: u64;
|
|
1368
|
+
};
|
|
1369
|
+
export declare function readHostCallbackRequest(bc: bare.ByteCursor): HostCallbackRequest;
|
|
1370
|
+
export declare function writeHostCallbackRequest(bc: bare.ByteCursor, x: HostCallbackRequest): void;
|
|
1371
|
+
export type JsBridgeCallRequest = {
|
|
1372
|
+
readonly callId: string;
|
|
1373
|
+
readonly mountId: string;
|
|
1374
|
+
readonly operation: string;
|
|
1375
|
+
readonly args: JsonUtf8;
|
|
1376
|
+
};
|
|
1377
|
+
export declare function readJsBridgeCallRequest(bc: bare.ByteCursor): JsBridgeCallRequest;
|
|
1378
|
+
export declare function writeJsBridgeCallRequest(bc: bare.ByteCursor, x: JsBridgeCallRequest): void;
|
|
1379
|
+
export type SidecarRequestPayload = {
|
|
1380
|
+
readonly tag: "HostCallbackRequest";
|
|
1381
|
+
readonly val: HostCallbackRequest;
|
|
1382
|
+
} | {
|
|
1383
|
+
readonly tag: "JsBridgeCallRequest";
|
|
1384
|
+
readonly val: JsBridgeCallRequest;
|
|
1385
|
+
} | {
|
|
1386
|
+
readonly tag: "ExtEnvelope";
|
|
1387
|
+
readonly val: ExtEnvelope;
|
|
1388
|
+
};
|
|
1389
|
+
export declare function readSidecarRequestPayload(bc: bare.ByteCursor): SidecarRequestPayload;
|
|
1390
|
+
export declare function writeSidecarRequestPayload(bc: bare.ByteCursor, x: SidecarRequestPayload): void;
|
|
1391
|
+
export type SidecarRequestFrame = {
|
|
1392
|
+
readonly schema: ProtocolSchema;
|
|
1393
|
+
readonly requestId: RequestId;
|
|
1394
|
+
readonly ownership: OwnershipScope;
|
|
1395
|
+
readonly payload: SidecarRequestPayload;
|
|
1396
|
+
};
|
|
1397
|
+
export declare function readSidecarRequestFrame(bc: bare.ByteCursor): SidecarRequestFrame;
|
|
1398
|
+
export declare function writeSidecarRequestFrame(bc: bare.ByteCursor, x: SidecarRequestFrame): void;
|
|
1399
|
+
export type HostCallbackResultResponse = {
|
|
1400
|
+
readonly invocationId: string;
|
|
1401
|
+
readonly result: JsonUtf8 | null;
|
|
1402
|
+
readonly error: string | null;
|
|
1403
|
+
};
|
|
1404
|
+
export declare function readHostCallbackResultResponse(bc: bare.ByteCursor): HostCallbackResultResponse;
|
|
1405
|
+
export declare function writeHostCallbackResultResponse(bc: bare.ByteCursor, x: HostCallbackResultResponse): void;
|
|
1406
|
+
export type JsBridgeResultResponse = {
|
|
1407
|
+
readonly callId: string;
|
|
1408
|
+
readonly result: JsonUtf8 | null;
|
|
1409
|
+
readonly error: string | null;
|
|
1410
|
+
};
|
|
1411
|
+
export declare function readJsBridgeResultResponse(bc: bare.ByteCursor): JsBridgeResultResponse;
|
|
1412
|
+
export declare function writeJsBridgeResultResponse(bc: bare.ByteCursor, x: JsBridgeResultResponse): void;
|
|
1413
|
+
export type SidecarResponsePayload = {
|
|
1414
|
+
readonly tag: "HostCallbackResultResponse";
|
|
1415
|
+
readonly val: HostCallbackResultResponse;
|
|
1416
|
+
} | {
|
|
1417
|
+
readonly tag: "JsBridgeResultResponse";
|
|
1418
|
+
readonly val: JsBridgeResultResponse;
|
|
1419
|
+
} | {
|
|
1420
|
+
readonly tag: "ExtEnvelope";
|
|
1421
|
+
readonly val: ExtEnvelope;
|
|
1422
|
+
};
|
|
1423
|
+
export declare function readSidecarResponsePayload(bc: bare.ByteCursor): SidecarResponsePayload;
|
|
1424
|
+
export declare function writeSidecarResponsePayload(bc: bare.ByteCursor, x: SidecarResponsePayload): void;
|
|
1425
|
+
export type SidecarResponseFrame = {
|
|
1426
|
+
readonly schema: ProtocolSchema;
|
|
1427
|
+
readonly requestId: RequestId;
|
|
1428
|
+
readonly ownership: OwnershipScope;
|
|
1429
|
+
readonly payload: SidecarResponsePayload;
|
|
1430
|
+
};
|
|
1431
|
+
export declare function readSidecarResponseFrame(bc: bare.ByteCursor): SidecarResponseFrame;
|
|
1432
|
+
export declare function writeSidecarResponseFrame(bc: bare.ByteCursor, x: SidecarResponseFrame): void;
|
|
1433
|
+
export type ProtocolFrame = {
|
|
1434
|
+
readonly tag: "RequestFrame";
|
|
1435
|
+
readonly val: RequestFrame;
|
|
1436
|
+
} | {
|
|
1437
|
+
readonly tag: "ResponseFrame";
|
|
1438
|
+
readonly val: ResponseFrame;
|
|
1439
|
+
} | {
|
|
1440
|
+
readonly tag: "EventFrame";
|
|
1441
|
+
readonly val: EventFrame;
|
|
1442
|
+
} | {
|
|
1443
|
+
readonly tag: "SidecarRequestFrame";
|
|
1444
|
+
readonly val: SidecarRequestFrame;
|
|
1445
|
+
} | {
|
|
1446
|
+
readonly tag: "SidecarResponseFrame";
|
|
1447
|
+
readonly val: SidecarResponseFrame;
|
|
1448
|
+
};
|
|
1449
|
+
export declare function readProtocolFrame(bc: bare.ByteCursor): ProtocolFrame;
|
|
1450
|
+
export declare function writeProtocolFrame(bc: bare.ByteCursor, x: ProtocolFrame): void;
|
|
1451
|
+
export declare function encodeProtocolFrame(x: ProtocolFrame, config?: Partial<bare.Config>): Uint8Array;
|
|
1452
|
+
export declare function decodeProtocolFrame(bytes: Uint8Array): ProtocolFrame;
|