beachside 0.0.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -3
- package/dist/adapter-direct.d.ts +299 -0
- package/dist/adapter-reference.d.ts +268 -0
- package/dist/bound.d.ts +1 -0
- package/dist/connection-wait.d.ts +10 -0
- package/dist/directory-read.d.ts +8 -0
- package/dist/file-read.d.ts +4 -0
- package/dist/file-transfer.d.ts +35 -0
- package/dist/filesystem-extensions.d.ts +21 -0
- package/dist/freeze-reference.d.ts +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +5300 -0
- package/dist/observability.d.ts +64 -0
- package/dist/process-output.d.ts +33 -0
- package/dist/processes.d.ts +212 -0
- package/dist/recovery-diagnostics.d.ts +10 -0
- package/dist/resource.d.ts +194 -0
- package/dist/resources.d.ts +361 -0
- package/dist/scoped-sandbox.d.ts +30 -0
- package/package.json +36 -6
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ResourceReference, MountSpec, SnapshotInfo, ImageInfo, VolumeInfo, RestoreRequest, VolumeCreateInput, type ArtifactDeletionResult, type OperationKind, type SnapshotCaptureValue } from "@beachside/adapter";
|
|
3
|
+
import { type NetworkPolicy, type ReadOptions, type SandboxHandle, type SnapshotHandle, type ImageHandle, type PreparedImage, type VolumeHandle, type OperationHandle } from "./resource.js";
|
|
4
|
+
import { AdapterSandbox, type AdapterDirectClient, type AdapterRecoveryReference } from "./adapter-direct.js";
|
|
5
|
+
/** SDK restore input; native RestoreRequest remains fully resolved. */
|
|
6
|
+
export type RestoreInput = Omit<RestoreRequest, "networkPolicy" | "lifetimeSeconds"> & {
|
|
7
|
+
/** Outbound network policy; omitted uses the adapter setup default. */
|
|
8
|
+
network?: NetworkPolicy;
|
|
9
|
+
/**
|
|
10
|
+
* Lifetime for the restored sandbox only, replacing the adapter setup's. Like `env` and
|
|
11
|
+
* `labels`, it rejects before any effect where the adapter cannot apply it on restore.
|
|
12
|
+
*/
|
|
13
|
+
lifecycle?: {
|
|
14
|
+
lifetimeSeconds?: number;
|
|
15
|
+
};
|
|
16
|
+
/** @deprecated Use `network`. */
|
|
17
|
+
networkPolicy?: string;
|
|
18
|
+
};
|
|
19
|
+
export type WaitOptions = ReadOptions & {
|
|
20
|
+
pollMs?: number;
|
|
21
|
+
};
|
|
22
|
+
export type SnapshotResult = Omit<SnapshotCaptureValue, "snapshot"> & {
|
|
23
|
+
snapshot: SnapshotHandle;
|
|
24
|
+
};
|
|
25
|
+
export declare function checkedResource(client: AdapterDirectClient, ref: ResourceReference, kind: "snapshot" | "volume" | "image"): ResourceReference;
|
|
26
|
+
/** Use the SnapshotHandle type for consumer annotations. This compatibility runtime class remains supported. */
|
|
27
|
+
export declare class AdapterSnapshot {
|
|
28
|
+
private readonly client;
|
|
29
|
+
readonly reference: ResourceReference;
|
|
30
|
+
constructor(client: AdapterDirectClient, reference: ResourceReference);
|
|
31
|
+
get provider(): string;
|
|
32
|
+
/** Native containing-resource ID; persist the full reference for immutable build selection. */
|
|
33
|
+
get id(): string;
|
|
34
|
+
inspect(options?: WaitOptions): Promise<SnapshotInfo>;
|
|
35
|
+
/** Restore private captured state with explicitly selected current volume data. */
|
|
36
|
+
submitRestore(request?: RestoreInput, options?: WaitOptions): Promise<OperationHandle<SandboxHandle<true>, OperationKind>>;
|
|
37
|
+
/** Restore requires no recorded native mounts and confirmed mountHandling: "none". */
|
|
38
|
+
restore(input?: RestoreInput, options?: WaitOptions): Promise<SandboxHandle<true>>;
|
|
39
|
+
submitDelete(options?: WaitOptions): Promise<OperationHandle<ArtifactDeletionResult, OperationKind>>;
|
|
40
|
+
delete(options?: WaitOptions): Promise<ArtifactDeletionResult>;
|
|
41
|
+
}
|
|
42
|
+
/** Use the ImageHandle type for consumer annotations. */
|
|
43
|
+
export declare class AdapterImage {
|
|
44
|
+
private readonly client;
|
|
45
|
+
readonly reference: ResourceReference;
|
|
46
|
+
constructor(client: AdapterDirectClient, reference: ResourceReference);
|
|
47
|
+
get provider(): string;
|
|
48
|
+
/** Native image ID; the value `Image.prepared()` selects. */
|
|
49
|
+
get id(): string;
|
|
50
|
+
/** The scoped prepared image for `Image.prepared()`. */
|
|
51
|
+
get prepared(): PreparedImage;
|
|
52
|
+
inspect(options?: WaitOptions): Promise<ImageInfo>;
|
|
53
|
+
/** Delete this image on the provider. Sandboxes and other artifacts are never deleted with it. */
|
|
54
|
+
submitDelete(options?: WaitOptions): Promise<OperationHandle<ArtifactDeletionResult, OperationKind>>;
|
|
55
|
+
delete(options?: WaitOptions): Promise<ArtifactDeletionResult>;
|
|
56
|
+
}
|
|
57
|
+
/** Use the VolumeHandle type for consumer annotations. This compatibility runtime class remains supported. */
|
|
58
|
+
export declare class AdapterVolume {
|
|
59
|
+
private readonly client;
|
|
60
|
+
readonly reference: ResourceReference;
|
|
61
|
+
constructor(client: AdapterDirectClient, reference: ResourceReference);
|
|
62
|
+
get provider(): string;
|
|
63
|
+
get id(): string;
|
|
64
|
+
inspect(options?: WaitOptions): Promise<VolumeInfo>;
|
|
65
|
+
at(path: string, options?: {
|
|
66
|
+
access?: "read-write" | "read-only";
|
|
67
|
+
subpath?: string;
|
|
68
|
+
}): MountSpec;
|
|
69
|
+
submitDelete(options?: WaitOptions): Promise<OperationHandle<ArtifactDeletionResult, OperationKind>>;
|
|
70
|
+
delete(options?: WaitOptions): Promise<ArtifactDeletionResult>;
|
|
71
|
+
}
|
|
72
|
+
export declare function resourceManagers(client: AdapterDirectClient): {
|
|
73
|
+
snapshots: {
|
|
74
|
+
get(ref: ResourceReference): Promise<SnapshotHandle>;
|
|
75
|
+
list(input?: SandboxListInput): Promise<{
|
|
76
|
+
items: {
|
|
77
|
+
reference: {
|
|
78
|
+
version: 1;
|
|
79
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
80
|
+
provider: string;
|
|
81
|
+
scope: {
|
|
82
|
+
authority: {
|
|
83
|
+
kind: string;
|
|
84
|
+
id: string;
|
|
85
|
+
};
|
|
86
|
+
partition: Record<string, string>;
|
|
87
|
+
};
|
|
88
|
+
nativeId: string;
|
|
89
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
90
|
+
generation?: string | undefined;
|
|
91
|
+
history?: z.core.util.JSONType | undefined;
|
|
92
|
+
receipt?: string | undefined;
|
|
93
|
+
};
|
|
94
|
+
preserve: "filesystem" | "filesystem+memory" | null;
|
|
95
|
+
restoreExecution: "resume" | "fresh" | null;
|
|
96
|
+
consistency: "unknown" | "crash-consistent" | "caller-quiesced";
|
|
97
|
+
source: {
|
|
98
|
+
id: string;
|
|
99
|
+
class: string;
|
|
100
|
+
} | null;
|
|
101
|
+
state: "unknown" | "creating" | "ready" | "deleting";
|
|
102
|
+
createdAt: string | null;
|
|
103
|
+
expiration: "unknown";
|
|
104
|
+
excludedPaths: string[] | null;
|
|
105
|
+
mounts: {
|
|
106
|
+
volume: {
|
|
107
|
+
version: 1;
|
|
108
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
109
|
+
provider: string;
|
|
110
|
+
scope: {
|
|
111
|
+
authority: {
|
|
112
|
+
kind: string;
|
|
113
|
+
id: string;
|
|
114
|
+
};
|
|
115
|
+
partition: Record<string, string>;
|
|
116
|
+
};
|
|
117
|
+
nativeId: string;
|
|
118
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
119
|
+
generation?: string | undefined;
|
|
120
|
+
history?: z.core.util.JSONType | undefined;
|
|
121
|
+
receipt?: string | undefined;
|
|
122
|
+
};
|
|
123
|
+
path: string;
|
|
124
|
+
access: "read-write" | "read-only";
|
|
125
|
+
subpath?: string | undefined;
|
|
126
|
+
}[];
|
|
127
|
+
mountHandling: "unknown" | "none" | "excluded";
|
|
128
|
+
restore: {
|
|
129
|
+
networkPolicies: string[];
|
|
130
|
+
resources: boolean;
|
|
131
|
+
mounts: boolean;
|
|
132
|
+
independentLifecycle: boolean;
|
|
133
|
+
};
|
|
134
|
+
dependencies: {
|
|
135
|
+
version: 1;
|
|
136
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
137
|
+
provider: string;
|
|
138
|
+
scope: {
|
|
139
|
+
authority: {
|
|
140
|
+
kind: string;
|
|
141
|
+
id: string;
|
|
142
|
+
};
|
|
143
|
+
partition: Record<string, string>;
|
|
144
|
+
};
|
|
145
|
+
nativeId: string;
|
|
146
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
147
|
+
generation?: string | undefined;
|
|
148
|
+
history?: z.core.util.JSONType | undefined;
|
|
149
|
+
receipt?: string | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
nativeDependencies: {
|
|
152
|
+
kind: string;
|
|
153
|
+
id: string;
|
|
154
|
+
}[] | null;
|
|
155
|
+
}[];
|
|
156
|
+
coverage: "provider-scope" | "managed";
|
|
157
|
+
nextCursor?: string | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
delete(ref: ResourceReference, options?: WaitOptions): Promise<{
|
|
160
|
+
deleted: true;
|
|
161
|
+
reference: {
|
|
162
|
+
version: 1;
|
|
163
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
164
|
+
provider: string;
|
|
165
|
+
scope: {
|
|
166
|
+
authority: {
|
|
167
|
+
kind: string;
|
|
168
|
+
id: string;
|
|
169
|
+
};
|
|
170
|
+
partition: Record<string, string>;
|
|
171
|
+
};
|
|
172
|
+
nativeId: string;
|
|
173
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
174
|
+
generation?: string | undefined;
|
|
175
|
+
history?: z.core.util.JSONType | undefined;
|
|
176
|
+
receipt?: string | undefined;
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
};
|
|
180
|
+
volumes: {
|
|
181
|
+
get(ref: ResourceReference): Promise<VolumeHandle>;
|
|
182
|
+
submitCreate(input: VolumeCreateInput, options?: WaitOptions): Promise<OperationHandle<VolumeHandle, OperationKind>>;
|
|
183
|
+
create(input: VolumeCreateInput, options?: WaitOptions): Promise<VolumeHandle>;
|
|
184
|
+
list(input?: SandboxListInput): Promise<{
|
|
185
|
+
items: {
|
|
186
|
+
reference: {
|
|
187
|
+
version: 1;
|
|
188
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
189
|
+
provider: string;
|
|
190
|
+
scope: {
|
|
191
|
+
authority: {
|
|
192
|
+
kind: string;
|
|
193
|
+
id: string;
|
|
194
|
+
};
|
|
195
|
+
partition: Record<string, string>;
|
|
196
|
+
};
|
|
197
|
+
nativeId: string;
|
|
198
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
199
|
+
generation?: string | undefined;
|
|
200
|
+
history?: z.core.util.JSONType | undefined;
|
|
201
|
+
receipt?: string | undefined;
|
|
202
|
+
};
|
|
203
|
+
name: string;
|
|
204
|
+
state: "unknown" | "creating" | "ready" | "deleting";
|
|
205
|
+
filesystem: "object-backed" | "block-backed";
|
|
206
|
+
visibility: "unknown" | "immediate";
|
|
207
|
+
durability: "unknown";
|
|
208
|
+
locking: "unknown";
|
|
209
|
+
rename: "unknown";
|
|
210
|
+
conflicts: "unknown" | "last-writer-wins";
|
|
211
|
+
}[];
|
|
212
|
+
coverage: "provider-scope" | "managed";
|
|
213
|
+
nextCursor?: string | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
delete(ref: ResourceReference, options?: WaitOptions): Promise<{
|
|
216
|
+
deleted: true;
|
|
217
|
+
reference: {
|
|
218
|
+
version: 1;
|
|
219
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
220
|
+
provider: string;
|
|
221
|
+
scope: {
|
|
222
|
+
authority: {
|
|
223
|
+
kind: string;
|
|
224
|
+
id: string;
|
|
225
|
+
};
|
|
226
|
+
partition: Record<string, string>;
|
|
227
|
+
};
|
|
228
|
+
nativeId: string;
|
|
229
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
230
|
+
generation?: string | undefined;
|
|
231
|
+
history?: z.core.util.JSONType | undefined;
|
|
232
|
+
receipt?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
}>;
|
|
235
|
+
};
|
|
236
|
+
images: {
|
|
237
|
+
/** Inspect a saved image reference and return a handle bound to this connection. */
|
|
238
|
+
get(ref: ResourceReference): Promise<ImageHandle>;
|
|
239
|
+
list(input?: SandboxListInput): Promise<{
|
|
240
|
+
items: {
|
|
241
|
+
reference: {
|
|
242
|
+
version: 1;
|
|
243
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
244
|
+
provider: string;
|
|
245
|
+
scope: {
|
|
246
|
+
authority: {
|
|
247
|
+
kind: string;
|
|
248
|
+
id: string;
|
|
249
|
+
};
|
|
250
|
+
partition: Record<string, string>;
|
|
251
|
+
};
|
|
252
|
+
nativeId: string;
|
|
253
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
254
|
+
generation?: string | undefined;
|
|
255
|
+
history?: z.core.util.JSONType | undefined;
|
|
256
|
+
receipt?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
state: "unknown" | "creating" | "ready" | "deleting";
|
|
259
|
+
createdAt: string | null;
|
|
260
|
+
source: {
|
|
261
|
+
kind: "oci";
|
|
262
|
+
value: string;
|
|
263
|
+
} | null;
|
|
264
|
+
visibility: "unknown" | "private" | "public";
|
|
265
|
+
nativeDependencies: {
|
|
266
|
+
kind: string;
|
|
267
|
+
id: string;
|
|
268
|
+
}[] | null;
|
|
269
|
+
}[];
|
|
270
|
+
coverage: "provider-scope" | "managed";
|
|
271
|
+
nextCursor?: string | undefined;
|
|
272
|
+
}>;
|
|
273
|
+
submitDelete(ref: ResourceReference, options?: WaitOptions): Promise<import("./adapter-direct.js").AdapterOperation<{
|
|
274
|
+
deleted: true;
|
|
275
|
+
reference: {
|
|
276
|
+
version: 1;
|
|
277
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
278
|
+
provider: string;
|
|
279
|
+
scope: {
|
|
280
|
+
authority: {
|
|
281
|
+
kind: string;
|
|
282
|
+
id: string;
|
|
283
|
+
};
|
|
284
|
+
partition: Record<string, string>;
|
|
285
|
+
};
|
|
286
|
+
nativeId: string;
|
|
287
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
288
|
+
generation?: string | undefined;
|
|
289
|
+
history?: z.core.util.JSONType | undefined;
|
|
290
|
+
receipt?: string | undefined;
|
|
291
|
+
};
|
|
292
|
+
}, OperationKind>>;
|
|
293
|
+
delete(ref: ResourceReference, options?: WaitOptions): Promise<{
|
|
294
|
+
deleted: true;
|
|
295
|
+
reference: {
|
|
296
|
+
version: 1;
|
|
297
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
298
|
+
provider: string;
|
|
299
|
+
scope: {
|
|
300
|
+
authority: {
|
|
301
|
+
kind: string;
|
|
302
|
+
id: string;
|
|
303
|
+
};
|
|
304
|
+
partition: Record<string, string>;
|
|
305
|
+
};
|
|
306
|
+
nativeId: string;
|
|
307
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
308
|
+
generation?: string | undefined;
|
|
309
|
+
history?: z.core.util.JSONType | undefined;
|
|
310
|
+
receipt?: string | undefined;
|
|
311
|
+
};
|
|
312
|
+
}>;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
/** Page size used by `list()` calls when `limit` is omitted. */
|
|
316
|
+
export declare const DEFAULT_SANDBOX_LIST_LIMIT = 50;
|
|
317
|
+
/** Optional page selection for `list()` calls; `limit` is 1-100 and defaults to 50. */
|
|
318
|
+
export type SandboxListInput = {
|
|
319
|
+
cursor?: string;
|
|
320
|
+
limit?: number;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* One listed sandbox; `reference` is null when the adapter cannot verify a reopenable identity.
|
|
324
|
+
* `labels` holds the labels set at create (null when the provider records none) and `createdAt`
|
|
325
|
+
* the provider's creation time (null when it reports none).
|
|
326
|
+
*/
|
|
327
|
+
export type SandboxListEntry = {
|
|
328
|
+
id: string;
|
|
329
|
+
state: import("@beachside/adapter").SandboxState;
|
|
330
|
+
reference: import("@beachside/adapter").SandboxReference | null;
|
|
331
|
+
labels: Record<string, string> | null;
|
|
332
|
+
createdAt: string | null;
|
|
333
|
+
};
|
|
334
|
+
/** A bounded page of sandboxes and whether it covers the provider scope or only Beachside-created ones. */
|
|
335
|
+
export type SandboxList = {
|
|
336
|
+
items: SandboxListEntry[];
|
|
337
|
+
nextCursor?: string;
|
|
338
|
+
coverage: "provider-scope" | "managed";
|
|
339
|
+
};
|
|
340
|
+
export declare function listSandboxes(client: AdapterDirectClient, input?: SandboxListInput): Promise<SandboxList>;
|
|
341
|
+
export declare function decodeCapture(client: AdapterDirectClient, value: SnapshotCaptureValue, ref: AdapterRecoveryReference): SnapshotResult;
|
|
342
|
+
export declare function decodeResourceResult(client: AdapterDirectClient, result: import("@beachside/adapter").RuntimeResult, ref: AdapterRecoveryReference): SnapshotResult | AdapterSandbox | {
|
|
343
|
+
deleted: true;
|
|
344
|
+
reference: {
|
|
345
|
+
version: 1;
|
|
346
|
+
kind: "volume" | "snapshot" | "sandbox" | "image" | "volume-version" | "mount" | "session";
|
|
347
|
+
provider: string;
|
|
348
|
+
scope: {
|
|
349
|
+
authority: {
|
|
350
|
+
kind: string;
|
|
351
|
+
id: string;
|
|
352
|
+
};
|
|
353
|
+
partition: Record<string, string>;
|
|
354
|
+
};
|
|
355
|
+
nativeId: string;
|
|
356
|
+
ownership: "unknown" | "borrowed" | "verified-created";
|
|
357
|
+
generation?: string | undefined;
|
|
358
|
+
history?: z.core.util.JSONType | undefined;
|
|
359
|
+
receipt?: string | undefined;
|
|
360
|
+
};
|
|
361
|
+
} | AdapterVolume;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BeachsideError, type CreateInput, type SandboxHandle, type OperationHandle, type RecoveryReference } from "./resource.js";
|
|
2
|
+
import type { DestroyValue, SandboxReference, OperationKind } from "@beachside/adapter";
|
|
3
|
+
import type { AdapterDirectClient } from "./adapter-direct.js";
|
|
4
|
+
/** Work cancellation does not cancel the separate cleanup budget. */
|
|
5
|
+
export interface SandboxScopeOptions {
|
|
6
|
+
signal?: AbortSignal;
|
|
7
|
+
/** Milliseconds to submit and observe destruction. Defaults to 30,000; maximum 300,000. */
|
|
8
|
+
cleanupTimeoutMs?: number;
|
|
9
|
+
/** Overrides the connection's storage cleanup policy; never deletes retained storage. */
|
|
10
|
+
storage?: "require-durable" | "allow-unconfirmed";
|
|
11
|
+
}
|
|
12
|
+
export type SandboxScopeCallbackOutcome<T> = {
|
|
13
|
+
status: "completed";
|
|
14
|
+
value: T;
|
|
15
|
+
} | {
|
|
16
|
+
status: "failed";
|
|
17
|
+
error: unknown;
|
|
18
|
+
};
|
|
19
|
+
/** Destruction failed or was not confirmed; neither work nor cleanup is replayed. */
|
|
20
|
+
export declare class SandboxCleanupError<T = unknown> extends BeachsideError {
|
|
21
|
+
readonly sandbox: SandboxHandle<true>;
|
|
22
|
+
readonly callbackOutcome: SandboxScopeCallbackOutcome<T>;
|
|
23
|
+
readonly cleanupError: unknown;
|
|
24
|
+
readonly cleanupOperation?: OperationHandle<DestroyValue, OperationKind> | undefined;
|
|
25
|
+
readonly sandboxId: string;
|
|
26
|
+
readonly sandboxReference: SandboxReference | null;
|
|
27
|
+
constructor(sandbox: SandboxHandle<true>, callbackOutcome: SandboxScopeCallbackOutcome<T>, cleanupError: unknown, cleanupOperation?: OperationHandle<DestroyValue, OperationKind> | undefined);
|
|
28
|
+
get cleanupReference(): RecoveryReference | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare function withSandbox<T>(client: AdapterDirectClient, input: CreateInput | undefined, callback: (sandbox: SandboxHandle<true>) => T | Promise<T>, options?: SandboxScopeOptions): Promise<T>;
|
package/package.json
CHANGED
|
@@ -1,16 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beachside",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md",
|
|
9
|
+
"LICENSE"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"check": "tsc -p tsconfig.json",
|
|
19
|
+
"build": "rm -rf dist && bun build src/index.ts --target node --format esm --splitting --outdir dist --external @beachside/adapter --external zod --external @opentelemetry/api && tsc -p tsconfig.json --noEmit false --declaration --emitDeclarationOnly --outDir dist && bun ../../scripts/rewrite-declarations.mjs"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@beachside/adapter": "0.9.0",
|
|
23
|
+
"zod": "4.6.5",
|
|
24
|
+
"@opentelemetry/api": "1.9.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@beachside-internal/provider-fake": "0.0.0",
|
|
28
|
+
"@beachside/daytona": "0.9.0",
|
|
29
|
+
"@beachside/e2b": "0.9.0"
|
|
30
|
+
},
|
|
5
31
|
"license": "Apache-2.0",
|
|
6
32
|
"repository": {
|
|
7
33
|
"type": "git",
|
|
8
34
|
"url": "git+https://github.com/pandemicsyn/beachside.git",
|
|
9
35
|
"directory": "packages/sdk"
|
|
10
36
|
},
|
|
37
|
+
"description": "Provider-neutral SDK for direct sandbox access.",
|
|
11
38
|
"homepage": "https://beachside.run/docs/direct-quickstart/",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/pandemicsyn/beachside/issues"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"types": "./dist/index.d.ts"
|
|
16
46
|
}
|