ppio-sandbox 2.1.2 → 2.1.4-a2

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/dist/desktop.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Sandbox
3
- } from "./chunk-3OWF5GCM.mjs";
3
+ } from "./chunk-2B6TN3O4.mjs";
4
4
  import {
5
5
  ALL_TRAFFIC,
6
6
  ApiClient,
@@ -49,7 +49,7 @@ import {
49
49
  waitForProcess,
50
50
  waitForTimeout,
51
51
  waitForURL
52
- } from "./chunk-PQGBLWKQ.mjs";
52
+ } from "./chunk-DKWK5NRD.mjs";
53
53
  export {
54
54
  ALL_TRAFFIC,
55
55
  ApiClient,
@@ -69,6 +69,58 @@ interface paths {
69
69
  patch?: never;
70
70
  trace?: never;
71
71
  };
72
+ "/sandboxes/{sandboxID}/resize": {
73
+ parameters: {
74
+ query?: never;
75
+ header?: never;
76
+ path?: never;
77
+ cookie?: never;
78
+ };
79
+ get?: never;
80
+ put?: never;
81
+ post: {
82
+ parameters: {
83
+ query?: never;
84
+ header?: never;
85
+ path: {
86
+ sandboxID: components["parameters"]["sandboxID"];
87
+ };
88
+ cookie?: never;
89
+ };
90
+ requestBody: {
91
+ content: {
92
+ "application/json": components["schemas"]["SandboxResourceTargets"];
93
+ };
94
+ };
95
+ responses: {
96
+ 200: {
97
+ headers: {
98
+ [name: string]: unknown;
99
+ };
100
+ content: {
101
+ "application/json": components["schemas"]["SandboxResizeResponse"];
102
+ };
103
+ };
104
+ 207: {
105
+ headers: {
106
+ [name: string]: unknown;
107
+ };
108
+ content: {
109
+ "application/json": components["schemas"]["SandboxResizeResponse"];
110
+ };
111
+ };
112
+ 400: components["responses"]["400"];
113
+ 403: components["responses"]["403"];
114
+ 404: components["responses"]["404"];
115
+ 409: components["responses"]["409"];
116
+ };
117
+ };
118
+ delete?: never;
119
+ options?: never;
120
+ head?: never;
121
+ patch?: never;
122
+ trace?: never;
123
+ };
72
124
  "/sandboxes/{sandboxID}": {
73
125
  parameters: {
74
126
  query?: never;
@@ -1170,6 +1222,60 @@ interface paths {
1170
1222
  patch?: never;
1171
1223
  trace?: never;
1172
1224
  };
1225
+ "/sandboxes/custom": {
1226
+ parameters: {
1227
+ query?: never;
1228
+ header?: never;
1229
+ path?: never;
1230
+ cookie?: never;
1231
+ };
1232
+ get?: never;
1233
+ put?: never;
1234
+ post: {
1235
+ parameters: {
1236
+ query?: never;
1237
+ header?: never;
1238
+ path?: never;
1239
+ cookie?: never;
1240
+ };
1241
+ requestBody: {
1242
+ content: {
1243
+ "application/json": components["schemas"]["CustomSandbox"];
1244
+ };
1245
+ };
1246
+ responses: {
1247
+ 201: {
1248
+ headers: {
1249
+ [name: string]: unknown;
1250
+ };
1251
+ content: {
1252
+ "application/json": components["schemas"]["CustomSandboxResponse"];
1253
+ };
1254
+ };
1255
+ 400: components["responses"]["400"];
1256
+ 401: components["responses"]["401"];
1257
+ 403: components["responses"]["403"];
1258
+ 412: {
1259
+ headers: {
1260
+ [name: string]: unknown;
1261
+ };
1262
+ content?: never;
1263
+ };
1264
+ 429: {
1265
+ headers: {
1266
+ [name: string]: unknown;
1267
+ };
1268
+ content?: never;
1269
+ };
1270
+ 500: components["responses"]["500"];
1271
+ };
1272
+ };
1273
+ delete?: never;
1274
+ options?: never;
1275
+ head?: never;
1276
+ patch?: never;
1277
+ trace?: never;
1278
+ };
1173
1279
  "/v2/sandboxes": {
1174
1280
  parameters: {
1175
1281
  query?: never;
@@ -1754,6 +1860,36 @@ interface components {
1754
1860
  enabled: components["schemas"]["SandboxAutoResumeEnabled"];
1755
1861
  };
1756
1862
  SandboxAutoResumeEnabled: boolean;
1863
+ SandboxResourceTargets: {
1864
+ vcpu?: number;
1865
+ memory_mb?: number;
1866
+ disk_size_mb?: number;
1867
+ };
1868
+ SandboxResources: {
1869
+ vcpu: number;
1870
+ memory_mb: number;
1871
+ disk_size_mb: number;
1872
+ };
1873
+ SandboxResizeItem: {
1874
+ status: "applied" | "skipped" | "failed" | "unknown";
1875
+ requested: number;
1876
+ previous: number;
1877
+ current: number;
1878
+ code: number;
1879
+ reason?: string;
1880
+ message?: string;
1881
+ };
1882
+ SandboxResizeResponse: {
1883
+ cpu?: components["schemas"]["SandboxResizeItem"];
1884
+ memory?: components["schemas"]["SandboxResizeItem"];
1885
+ disk?: components["schemas"]["SandboxResizeItem"];
1886
+ };
1887
+ CustomSandbox: components["schemas"]["NewSandbox"] & {
1888
+ resources: components["schemas"]["SandboxResourceTargets"];
1889
+ };
1890
+ CustomSandboxResponse: components["schemas"]["Sandbox"] & {
1891
+ resources: components["schemas"]["SandboxResources"];
1892
+ };
1757
1893
  SandboxDetail: {
1758
1894
  alias?: string;
1759
1895
  allowInternetAccess?: boolean | null;
@@ -4478,7 +4614,28 @@ type SandboxInfoLifecycle = {
4478
4614
  };
4479
4615
  interface SandboxApiOpts extends Partial<Pick<ConnectionOpts, 'apiKey' | 'accessToken' | 'headers' | 'debug' | 'domain' | 'apiUrl' | 'logger' | 'requestTimeoutMs' | 'sync'>> {
4480
4616
  }
4617
+ type Resources = {
4618
+ cpu?: number;
4619
+ memoryGiB?: number;
4620
+ diskGiB?: number;
4621
+ };
4622
+ type ResizeItem = {
4623
+ status: 'applied' | 'skipped' | 'failed' | 'unknown';
4624
+ requested: number;
4625
+ previous: number;
4626
+ current: number;
4627
+ code: number;
4628
+ unit: 'cores' | 'GiB';
4629
+ reason?: string;
4630
+ message?: string;
4631
+ };
4632
+ type ResizeResult = {
4633
+ cpu?: ResizeItem;
4634
+ memory?: ResizeItem;
4635
+ disk?: ResizeItem;
4636
+ };
4481
4637
  interface SandboxOpts$1 extends ConnectionOpts {
4638
+ resources?: Resources;
4482
4639
  template?: string;
4483
4640
  metadata?: Record<string, string>;
4484
4641
  envs?: Record<string, string>;
@@ -4564,6 +4721,7 @@ interface SandboxInfo {
4564
4721
  state: SandboxState;
4565
4722
  cpuCount: number;
4566
4723
  memoryMB: number;
4724
+ diskSizeMB?: number;
4567
4725
  envdVersion?: string;
4568
4726
  allowInternetAccess?: boolean | undefined;
4569
4727
  network?: SandboxNetworkOpts;
@@ -4589,7 +4747,7 @@ declare class SandboxApi {
4589
4747
  static getMetrics(sandboxId: string, opts?: SandboxMetricsOpts): Promise<SandboxMetrics[]>;
4590
4748
  static setTimeout(sandboxId: string, timeoutMs: number, opts?: SandboxApiOpts): Promise<void>;
4591
4749
  static commit(sandboxId: string, opts?: SandboxCommitOpts): Promise<SandboxCommitResult>;
4592
- static hotplugMemory(sandboxId: string, requestedSizeMib: number, opts?: SandboxApiOpts): Promise<void>;
4750
+ static resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
4593
4751
  static reset(sandboxId: string, opts?: SandboxResetOpts): Promise<boolean>;
4594
4752
  static mountVolume(sandboxId: string, name: string, path: string, opts?: SandboxApiOpts): Promise<SandboxInfo>;
4595
4753
  static unmountVolume(sandboxId: string, path: string, opts?: SandboxApiOpts & {
@@ -5378,7 +5536,7 @@ declare class Sandbox$2 extends SandboxApi {
5378
5536
  static create<S extends typeof Sandbox$2>(this: S, opts?: SandboxOpts$1): Promise<InstanceType<S>>;
5379
5537
  static create<S extends typeof Sandbox$2>(this: S, template: string, opts?: SandboxOpts$1): Promise<InstanceType<S>>;
5380
5538
  static clone<S extends typeof Sandbox$2>(this: S, sandboxId: string, opts?: SandboxCloneOpts): Promise<SandboxCloneResult<InstanceType<S>>>;
5381
- static hotplugMemory(sandboxId: string, requestedSizeMib: number, opts?: SandboxApiOpts): Promise<void>;
5539
+ static resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5382
5540
  static mountVolume(sandboxId: string, name: string, path: string, opts?: SandboxApiOpts): Promise<SandboxInfo>;
5383
5541
  static unmountVolume(sandboxId: string, path: string, opts?: SandboxApiOpts & {
5384
5542
  force?: boolean;
@@ -5401,7 +5559,7 @@ declare class Sandbox$2 extends SandboxApi {
5401
5559
  force?: boolean;
5402
5560
  }): Promise<SandboxInfo>;
5403
5561
  kill(opts?: SandboxApiOpts): Promise<void>;
5404
- hotplugMemory(requestedSizeMib: number, opts?: SandboxApiOpts): Promise<void>;
5562
+ resize(resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5405
5563
  pause(opts?: ConnectionOpts): Promise<boolean>;
5406
5564
  betaPause(opts?: ConnectionOpts): Promise<boolean>;
5407
5565
  createSnapshot(opts?: SandboxApiOpts): Promise<SnapshotInfo>;
@@ -5767,6 +5925,7 @@ declare class RuntimeSandboxNamespace<TSandbox, TCreateOpts extends ConnectionOp
5767
5925
  getInfo(sandboxId: string, opts?: SandboxApiOpts): Promise<SandboxInfo>;
5768
5926
  getMetrics(sandboxId: string, opts?: SandboxMetricsOpts): Promise<SandboxMetrics[]>;
5769
5927
  getQuota(opts?: SandboxQuotaOpts): Promise<SandboxQuota>;
5928
+ resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5770
5929
  getEvents(opts?: SandboxEventsOpts): Promise<SandboxEventsResult>;
5771
5930
  }
5772
5931
  declare class SandboxNamespace {
@@ -5793,6 +5952,7 @@ declare class SandboxNamespace {
5793
5952
  listSnapshots(opts?: SnapshotListOpts): SnapshotPaginator;
5794
5953
  deleteSnapshot(snapshotId: string, opts?: SandboxApiOpts): Promise<boolean>;
5795
5954
  getQuota(opts?: SandboxQuotaOpts): Promise<SandboxQuota>;
5955
+ resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5796
5956
  getEvents(opts?: SandboxEventsOpts): Promise<SandboxEventsResult>;
5797
5957
  }
5798
5958
  declare class TemplateNamespace {
@@ -5877,4 +6037,4 @@ declare function getSignature({ path, operation, user, expirationInSeconds, envd
5877
6037
 
5878
6038
  declare const ALL_TRAFFIC = "0.0.0.0/0";
5879
6039
 
5880
- export { type SandboxResetOpts as $, ApiClient as A, BuildError as B, ConnectionConfig as C, type SandboxInfo as D, type EntryInfo as E, FileNotFoundError as F, GitAuthError as G, type SandboxMetrics as H, InvalidArgumentError as I, type SandboxOpts$1 as J, type SandboxApiOpts as K, type Logger as L, type SandboxConnectOpts as M, NotEnoughSpaceError as N, type SandboxBetaCreateOpts as O, PPIO as P, type SandboxMetricsOpts as Q, RateLimitError as R, Sandbox$2 as S, TemplateError as T, type Username as U, VolumeError as V, type WriteInfo as W, type SandboxCloneOpts as X, type SandboxCloneResult as Y, type SandboxCommitOpts as Z, type SandboxCommitResult as _, type ConnectionOpts as a, parseImageRef as a$, type SandboxState as a0, type SandboxListOpts as a1, SandboxPaginator as a2, type SandboxNetworkOpts as a3, type SandboxNetworkUpdateOpts as a4, type SandboxLifecycle as a5, type SandboxInfoLifecycle as a6, type SnapshotInfo as a7, type SnapshotListOpts as a8, SnapshotPaginator as a9, type GitConfigOpts as aA, type GitConfigScope as aB, type GitBranches as aC, type GitFileStatus as aD, type GitStatus as aE, Volume as aF, type VolumeInfo as aG, type VolumeAndToken as aH, Secret as aI, type SecretBinding as aJ, type SecretWriteParams as aK, ReadyCmd as aL, waitForPort as aM, waitForURL as aN, waitForProcess as aO, waitForFile as aP, waitForTimeout as aQ, LogEntry as aR, LogEntryStart as aS, LogEntryEnd as aT, type LogEntryLevel as aU, defaultBuildLogger as aV, type ImageConfig as aW, type RegistryCredentials as aX, clearImageConfigCache as aY, effectiveStartCmd as aZ, fetchImageConfig as a_, type SandboxQuota as aa, type SandboxQuotaLimit as ab, type SandboxQuotaUsage as ac, type SandboxQuotaOpts as ad, type SandboxEventItem as ae, type SandboxEventsOpts as af, type SandboxEventsResult as ag, type McpServer$1 as ah, ALL_TRAFFIC as ai, type ProcessInfo as aj, type CommandRequestOpts as ak, type CommandConnectOpts as al, type CommandStartOpts as am, Commands as an, Pty as ao, Git as ap, type GitRequestOpts as aq, type GitCloneOpts as ar, type GitInitOpts as as, type GitRemoteAddOpts as at, type GitCommitOpts as au, type GitAddOpts as av, type GitDeleteBranchOpts as aw, type GitPushOpts as ax, type GitPullOpts as ay, type GitDangerouslyAuthenticateOpts as az, AuthenticationError as b, unsupportedBase as b0, TemplateApi as b1, TemplatePaginator as b2, TemplateBase as b3, Template as b4, type BuildInfo as b5, type BuildOptions as b6, type BuildStatusReason as b7, type CopyItem as b8, type GetBuildStatusOptions as b9, OutputMessage as bA, ScaleType as bB, ChartType as bC, type ChartTypes as bD, type Chart as bE, type BarChart as bF, type BarData as bG, type LineChart as bH, type ScatterChart as bI, type BoxAndWhiskerChart as bJ, type BoxAndWhiskerData as bK, type PieChart as bL, type PieData as bM, type SuperChart as bN, type PointData as bO, Sandbox as bP, type SandboxOpts as bQ, type McpServerName as ba, type TemplateBuilder as bb, type TemplateBuildStatus as bc, type TemplateBuildStatusResponse as bd, type TemplateClass as be, type TemplateDeleteOpts as bf, type TemplateInfo as bg, type TemplateListOpts as bh, type TemplateListOptions as bi, type TemplateListResponse as bj, type TemplateTag as bk, type TemplateTagInfo as bl, type TemplateType as bm, type ImageConfigFailureMode as bn, type RegistryDispatcher as bo, Sandbox$1 as bp, type Context as bq, type RunCodeOpts as br, type CreateCodeContextOpts as bs, type CodeContextRequestOpts as bt, type Logs as bu, ExecutionError as bv, Result as bw, Execution as bx, type MIMEType as by, type RawData as bz, type components as c, GitUpstreamError as d, NotFoundError as e, SandboxError as f, SandboxNotFoundError as g, TimeoutError as h, FileUploadError as i, ImageConfigError as j, SecretError as k, getSignature as l, FileType as m, Filesystem as n, type FilesystemWriteOpts as o, type paths as p, type FilesystemReadOpts as q, FilesystemEventType as r, type FilesystemEvent as s, WatchHandle as t, CommandExitError as u, type CommandResult as v, type Stdout as w, type Stderr as x, type PtyOutput as y, CommandHandle as z };
6040
+ export { type SandboxCommitOpts as $, ApiClient as A, BuildError as B, ConnectionConfig as C, type SandboxInfo as D, type EntryInfo as E, FileNotFoundError as F, GitAuthError as G, type Resources as H, InvalidArgumentError as I, type ResizeResult as J, type SandboxMetrics as K, type Logger as L, type SandboxOpts$1 as M, NotEnoughSpaceError as N, type SandboxApiOpts as O, PPIO as P, type SandboxConnectOpts as Q, RateLimitError as R, Sandbox$2 as S, TemplateError as T, type Username as U, VolumeError as V, type WriteInfo as W, type SandboxBetaCreateOpts as X, type SandboxMetricsOpts as Y, type SandboxCloneOpts as Z, type SandboxCloneResult as _, type ConnectionOpts as a, effectiveStartCmd as a$, type SandboxCommitResult as a0, type SandboxResetOpts as a1, type SandboxState as a2, type SandboxListOpts as a3, SandboxPaginator as a4, type SandboxNetworkOpts as a5, type SandboxNetworkUpdateOpts as a6, type SandboxLifecycle as a7, type SandboxInfoLifecycle as a8, type SnapshotInfo as a9, type GitPullOpts as aA, type GitDangerouslyAuthenticateOpts as aB, type GitConfigOpts as aC, type GitConfigScope as aD, type GitBranches as aE, type GitFileStatus as aF, type GitStatus as aG, Volume as aH, type VolumeInfo as aI, type VolumeAndToken as aJ, Secret as aK, type SecretBinding as aL, type SecretWriteParams as aM, ReadyCmd as aN, waitForPort as aO, waitForURL as aP, waitForProcess as aQ, waitForFile as aR, waitForTimeout as aS, LogEntry as aT, LogEntryStart as aU, LogEntryEnd as aV, type LogEntryLevel as aW, defaultBuildLogger as aX, type ImageConfig as aY, type RegistryCredentials as aZ, clearImageConfigCache as a_, type SnapshotListOpts as aa, SnapshotPaginator as ab, type SandboxQuota as ac, type SandboxQuotaLimit as ad, type SandboxQuotaUsage as ae, type SandboxQuotaOpts as af, type SandboxEventItem as ag, type SandboxEventsOpts as ah, type SandboxEventsResult as ai, type McpServer$1 as aj, ALL_TRAFFIC as ak, type ProcessInfo as al, type CommandRequestOpts as am, type CommandConnectOpts as an, type CommandStartOpts as ao, Commands as ap, Pty as aq, Git as ar, type GitRequestOpts as as, type GitCloneOpts as at, type GitInitOpts as au, type GitRemoteAddOpts as av, type GitCommitOpts as aw, type GitAddOpts as ax, type GitDeleteBranchOpts as ay, type GitPushOpts as az, AuthenticationError as b, fetchImageConfig as b0, parseImageRef as b1, unsupportedBase as b2, TemplateApi as b3, TemplatePaginator as b4, TemplateBase as b5, Template as b6, type BuildInfo as b7, type BuildOptions as b8, type BuildStatusReason as b9, type MIMEType as bA, type RawData as bB, OutputMessage as bC, ScaleType as bD, ChartType as bE, type ChartTypes as bF, type Chart as bG, type BarChart as bH, type BarData as bI, type LineChart as bJ, type ScatterChart as bK, type BoxAndWhiskerChart as bL, type BoxAndWhiskerData as bM, type PieChart as bN, type PieData as bO, type SuperChart as bP, type PointData as bQ, Sandbox as bR, type SandboxOpts as bS, type CopyItem as ba, type GetBuildStatusOptions as bb, type McpServerName as bc, type TemplateBuilder as bd, type TemplateBuildStatus as be, type TemplateBuildStatusResponse as bf, type TemplateClass as bg, type TemplateDeleteOpts as bh, type TemplateInfo as bi, type TemplateListOpts as bj, type TemplateListOptions as bk, type TemplateListResponse as bl, type TemplateTag as bm, type TemplateTagInfo as bn, type TemplateType as bo, type ImageConfigFailureMode as bp, type RegistryDispatcher as bq, Sandbox$1 as br, type Context as bs, type RunCodeOpts as bt, type CreateCodeContextOpts as bu, type CodeContextRequestOpts as bv, type Logs as bw, ExecutionError as bx, Result as by, Execution as bz, type components as c, GitUpstreamError as d, NotFoundError as e, SandboxError as f, SandboxNotFoundError as g, TimeoutError as h, FileUploadError as i, ImageConfigError as j, SecretError as k, getSignature as l, FileType as m, Filesystem as n, type FilesystemWriteOpts as o, type paths as p, type FilesystemReadOpts as q, FilesystemEventType as r, type FilesystemEvent as s, WatchHandle as t, CommandExitError as u, type CommandResult as v, type Stdout as w, type Stderr as x, type PtyOutput as y, CommandHandle as z };
@@ -69,6 +69,58 @@ interface paths {
69
69
  patch?: never;
70
70
  trace?: never;
71
71
  };
72
+ "/sandboxes/{sandboxID}/resize": {
73
+ parameters: {
74
+ query?: never;
75
+ header?: never;
76
+ path?: never;
77
+ cookie?: never;
78
+ };
79
+ get?: never;
80
+ put?: never;
81
+ post: {
82
+ parameters: {
83
+ query?: never;
84
+ header?: never;
85
+ path: {
86
+ sandboxID: components["parameters"]["sandboxID"];
87
+ };
88
+ cookie?: never;
89
+ };
90
+ requestBody: {
91
+ content: {
92
+ "application/json": components["schemas"]["SandboxResourceTargets"];
93
+ };
94
+ };
95
+ responses: {
96
+ 200: {
97
+ headers: {
98
+ [name: string]: unknown;
99
+ };
100
+ content: {
101
+ "application/json": components["schemas"]["SandboxResizeResponse"];
102
+ };
103
+ };
104
+ 207: {
105
+ headers: {
106
+ [name: string]: unknown;
107
+ };
108
+ content: {
109
+ "application/json": components["schemas"]["SandboxResizeResponse"];
110
+ };
111
+ };
112
+ 400: components["responses"]["400"];
113
+ 403: components["responses"]["403"];
114
+ 404: components["responses"]["404"];
115
+ 409: components["responses"]["409"];
116
+ };
117
+ };
118
+ delete?: never;
119
+ options?: never;
120
+ head?: never;
121
+ patch?: never;
122
+ trace?: never;
123
+ };
72
124
  "/sandboxes/{sandboxID}": {
73
125
  parameters: {
74
126
  query?: never;
@@ -1170,6 +1222,60 @@ interface paths {
1170
1222
  patch?: never;
1171
1223
  trace?: never;
1172
1224
  };
1225
+ "/sandboxes/custom": {
1226
+ parameters: {
1227
+ query?: never;
1228
+ header?: never;
1229
+ path?: never;
1230
+ cookie?: never;
1231
+ };
1232
+ get?: never;
1233
+ put?: never;
1234
+ post: {
1235
+ parameters: {
1236
+ query?: never;
1237
+ header?: never;
1238
+ path?: never;
1239
+ cookie?: never;
1240
+ };
1241
+ requestBody: {
1242
+ content: {
1243
+ "application/json": components["schemas"]["CustomSandbox"];
1244
+ };
1245
+ };
1246
+ responses: {
1247
+ 201: {
1248
+ headers: {
1249
+ [name: string]: unknown;
1250
+ };
1251
+ content: {
1252
+ "application/json": components["schemas"]["CustomSandboxResponse"];
1253
+ };
1254
+ };
1255
+ 400: components["responses"]["400"];
1256
+ 401: components["responses"]["401"];
1257
+ 403: components["responses"]["403"];
1258
+ 412: {
1259
+ headers: {
1260
+ [name: string]: unknown;
1261
+ };
1262
+ content?: never;
1263
+ };
1264
+ 429: {
1265
+ headers: {
1266
+ [name: string]: unknown;
1267
+ };
1268
+ content?: never;
1269
+ };
1270
+ 500: components["responses"]["500"];
1271
+ };
1272
+ };
1273
+ delete?: never;
1274
+ options?: never;
1275
+ head?: never;
1276
+ patch?: never;
1277
+ trace?: never;
1278
+ };
1173
1279
  "/v2/sandboxes": {
1174
1280
  parameters: {
1175
1281
  query?: never;
@@ -1754,6 +1860,36 @@ interface components {
1754
1860
  enabled: components["schemas"]["SandboxAutoResumeEnabled"];
1755
1861
  };
1756
1862
  SandboxAutoResumeEnabled: boolean;
1863
+ SandboxResourceTargets: {
1864
+ vcpu?: number;
1865
+ memory_mb?: number;
1866
+ disk_size_mb?: number;
1867
+ };
1868
+ SandboxResources: {
1869
+ vcpu: number;
1870
+ memory_mb: number;
1871
+ disk_size_mb: number;
1872
+ };
1873
+ SandboxResizeItem: {
1874
+ status: "applied" | "skipped" | "failed" | "unknown";
1875
+ requested: number;
1876
+ previous: number;
1877
+ current: number;
1878
+ code: number;
1879
+ reason?: string;
1880
+ message?: string;
1881
+ };
1882
+ SandboxResizeResponse: {
1883
+ cpu?: components["schemas"]["SandboxResizeItem"];
1884
+ memory?: components["schemas"]["SandboxResizeItem"];
1885
+ disk?: components["schemas"]["SandboxResizeItem"];
1886
+ };
1887
+ CustomSandbox: components["schemas"]["NewSandbox"] & {
1888
+ resources: components["schemas"]["SandboxResourceTargets"];
1889
+ };
1890
+ CustomSandboxResponse: components["schemas"]["Sandbox"] & {
1891
+ resources: components["schemas"]["SandboxResources"];
1892
+ };
1757
1893
  SandboxDetail: {
1758
1894
  alias?: string;
1759
1895
  allowInternetAccess?: boolean | null;
@@ -4478,7 +4614,28 @@ type SandboxInfoLifecycle = {
4478
4614
  };
4479
4615
  interface SandboxApiOpts extends Partial<Pick<ConnectionOpts, 'apiKey' | 'accessToken' | 'headers' | 'debug' | 'domain' | 'apiUrl' | 'logger' | 'requestTimeoutMs' | 'sync'>> {
4480
4616
  }
4617
+ type Resources = {
4618
+ cpu?: number;
4619
+ memoryGiB?: number;
4620
+ diskGiB?: number;
4621
+ };
4622
+ type ResizeItem = {
4623
+ status: 'applied' | 'skipped' | 'failed' | 'unknown';
4624
+ requested: number;
4625
+ previous: number;
4626
+ current: number;
4627
+ code: number;
4628
+ unit: 'cores' | 'GiB';
4629
+ reason?: string;
4630
+ message?: string;
4631
+ };
4632
+ type ResizeResult = {
4633
+ cpu?: ResizeItem;
4634
+ memory?: ResizeItem;
4635
+ disk?: ResizeItem;
4636
+ };
4481
4637
  interface SandboxOpts$1 extends ConnectionOpts {
4638
+ resources?: Resources;
4482
4639
  template?: string;
4483
4640
  metadata?: Record<string, string>;
4484
4641
  envs?: Record<string, string>;
@@ -4564,6 +4721,7 @@ interface SandboxInfo {
4564
4721
  state: SandboxState;
4565
4722
  cpuCount: number;
4566
4723
  memoryMB: number;
4724
+ diskSizeMB?: number;
4567
4725
  envdVersion?: string;
4568
4726
  allowInternetAccess?: boolean | undefined;
4569
4727
  network?: SandboxNetworkOpts;
@@ -4589,7 +4747,7 @@ declare class SandboxApi {
4589
4747
  static getMetrics(sandboxId: string, opts?: SandboxMetricsOpts): Promise<SandboxMetrics[]>;
4590
4748
  static setTimeout(sandboxId: string, timeoutMs: number, opts?: SandboxApiOpts): Promise<void>;
4591
4749
  static commit(sandboxId: string, opts?: SandboxCommitOpts): Promise<SandboxCommitResult>;
4592
- static hotplugMemory(sandboxId: string, requestedSizeMib: number, opts?: SandboxApiOpts): Promise<void>;
4750
+ static resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
4593
4751
  static reset(sandboxId: string, opts?: SandboxResetOpts): Promise<boolean>;
4594
4752
  static mountVolume(sandboxId: string, name: string, path: string, opts?: SandboxApiOpts): Promise<SandboxInfo>;
4595
4753
  static unmountVolume(sandboxId: string, path: string, opts?: SandboxApiOpts & {
@@ -5378,7 +5536,7 @@ declare class Sandbox$2 extends SandboxApi {
5378
5536
  static create<S extends typeof Sandbox$2>(this: S, opts?: SandboxOpts$1): Promise<InstanceType<S>>;
5379
5537
  static create<S extends typeof Sandbox$2>(this: S, template: string, opts?: SandboxOpts$1): Promise<InstanceType<S>>;
5380
5538
  static clone<S extends typeof Sandbox$2>(this: S, sandboxId: string, opts?: SandboxCloneOpts): Promise<SandboxCloneResult<InstanceType<S>>>;
5381
- static hotplugMemory(sandboxId: string, requestedSizeMib: number, opts?: SandboxApiOpts): Promise<void>;
5539
+ static resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5382
5540
  static mountVolume(sandboxId: string, name: string, path: string, opts?: SandboxApiOpts): Promise<SandboxInfo>;
5383
5541
  static unmountVolume(sandboxId: string, path: string, opts?: SandboxApiOpts & {
5384
5542
  force?: boolean;
@@ -5401,7 +5559,7 @@ declare class Sandbox$2 extends SandboxApi {
5401
5559
  force?: boolean;
5402
5560
  }): Promise<SandboxInfo>;
5403
5561
  kill(opts?: SandboxApiOpts): Promise<void>;
5404
- hotplugMemory(requestedSizeMib: number, opts?: SandboxApiOpts): Promise<void>;
5562
+ resize(resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5405
5563
  pause(opts?: ConnectionOpts): Promise<boolean>;
5406
5564
  betaPause(opts?: ConnectionOpts): Promise<boolean>;
5407
5565
  createSnapshot(opts?: SandboxApiOpts): Promise<SnapshotInfo>;
@@ -5767,6 +5925,7 @@ declare class RuntimeSandboxNamespace<TSandbox, TCreateOpts extends ConnectionOp
5767
5925
  getInfo(sandboxId: string, opts?: SandboxApiOpts): Promise<SandboxInfo>;
5768
5926
  getMetrics(sandboxId: string, opts?: SandboxMetricsOpts): Promise<SandboxMetrics[]>;
5769
5927
  getQuota(opts?: SandboxQuotaOpts): Promise<SandboxQuota>;
5928
+ resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5770
5929
  getEvents(opts?: SandboxEventsOpts): Promise<SandboxEventsResult>;
5771
5930
  }
5772
5931
  declare class SandboxNamespace {
@@ -5793,6 +5952,7 @@ declare class SandboxNamespace {
5793
5952
  listSnapshots(opts?: SnapshotListOpts): SnapshotPaginator;
5794
5953
  deleteSnapshot(snapshotId: string, opts?: SandboxApiOpts): Promise<boolean>;
5795
5954
  getQuota(opts?: SandboxQuotaOpts): Promise<SandboxQuota>;
5955
+ resize(sandboxId: string, resources: Resources, opts?: SandboxApiOpts): Promise<ResizeResult>;
5796
5956
  getEvents(opts?: SandboxEventsOpts): Promise<SandboxEventsResult>;
5797
5957
  }
5798
5958
  declare class TemplateNamespace {
@@ -5877,4 +6037,4 @@ declare function getSignature({ path, operation, user, expirationInSeconds, envd
5877
6037
 
5878
6038
  declare const ALL_TRAFFIC = "0.0.0.0/0";
5879
6039
 
5880
- export { type SandboxResetOpts as $, ApiClient as A, BuildError as B, ConnectionConfig as C, type SandboxInfo as D, type EntryInfo as E, FileNotFoundError as F, GitAuthError as G, type SandboxMetrics as H, InvalidArgumentError as I, type SandboxOpts$1 as J, type SandboxApiOpts as K, type Logger as L, type SandboxConnectOpts as M, NotEnoughSpaceError as N, type SandboxBetaCreateOpts as O, PPIO as P, type SandboxMetricsOpts as Q, RateLimitError as R, Sandbox$2 as S, TemplateError as T, type Username as U, VolumeError as V, type WriteInfo as W, type SandboxCloneOpts as X, type SandboxCloneResult as Y, type SandboxCommitOpts as Z, type SandboxCommitResult as _, type ConnectionOpts as a, parseImageRef as a$, type SandboxState as a0, type SandboxListOpts as a1, SandboxPaginator as a2, type SandboxNetworkOpts as a3, type SandboxNetworkUpdateOpts as a4, type SandboxLifecycle as a5, type SandboxInfoLifecycle as a6, type SnapshotInfo as a7, type SnapshotListOpts as a8, SnapshotPaginator as a9, type GitConfigOpts as aA, type GitConfigScope as aB, type GitBranches as aC, type GitFileStatus as aD, type GitStatus as aE, Volume as aF, type VolumeInfo as aG, type VolumeAndToken as aH, Secret as aI, type SecretBinding as aJ, type SecretWriteParams as aK, ReadyCmd as aL, waitForPort as aM, waitForURL as aN, waitForProcess as aO, waitForFile as aP, waitForTimeout as aQ, LogEntry as aR, LogEntryStart as aS, LogEntryEnd as aT, type LogEntryLevel as aU, defaultBuildLogger as aV, type ImageConfig as aW, type RegistryCredentials as aX, clearImageConfigCache as aY, effectiveStartCmd as aZ, fetchImageConfig as a_, type SandboxQuota as aa, type SandboxQuotaLimit as ab, type SandboxQuotaUsage as ac, type SandboxQuotaOpts as ad, type SandboxEventItem as ae, type SandboxEventsOpts as af, type SandboxEventsResult as ag, type McpServer$1 as ah, ALL_TRAFFIC as ai, type ProcessInfo as aj, type CommandRequestOpts as ak, type CommandConnectOpts as al, type CommandStartOpts as am, Commands as an, Pty as ao, Git as ap, type GitRequestOpts as aq, type GitCloneOpts as ar, type GitInitOpts as as, type GitRemoteAddOpts as at, type GitCommitOpts as au, type GitAddOpts as av, type GitDeleteBranchOpts as aw, type GitPushOpts as ax, type GitPullOpts as ay, type GitDangerouslyAuthenticateOpts as az, AuthenticationError as b, unsupportedBase as b0, TemplateApi as b1, TemplatePaginator as b2, TemplateBase as b3, Template as b4, type BuildInfo as b5, type BuildOptions as b6, type BuildStatusReason as b7, type CopyItem as b8, type GetBuildStatusOptions as b9, OutputMessage as bA, ScaleType as bB, ChartType as bC, type ChartTypes as bD, type Chart as bE, type BarChart as bF, type BarData as bG, type LineChart as bH, type ScatterChart as bI, type BoxAndWhiskerChart as bJ, type BoxAndWhiskerData as bK, type PieChart as bL, type PieData as bM, type SuperChart as bN, type PointData as bO, Sandbox as bP, type SandboxOpts as bQ, type McpServerName as ba, type TemplateBuilder as bb, type TemplateBuildStatus as bc, type TemplateBuildStatusResponse as bd, type TemplateClass as be, type TemplateDeleteOpts as bf, type TemplateInfo as bg, type TemplateListOpts as bh, type TemplateListOptions as bi, type TemplateListResponse as bj, type TemplateTag as bk, type TemplateTagInfo as bl, type TemplateType as bm, type ImageConfigFailureMode as bn, type RegistryDispatcher as bo, Sandbox$1 as bp, type Context as bq, type RunCodeOpts as br, type CreateCodeContextOpts as bs, type CodeContextRequestOpts as bt, type Logs as bu, ExecutionError as bv, Result as bw, Execution as bx, type MIMEType as by, type RawData as bz, type components as c, GitUpstreamError as d, NotFoundError as e, SandboxError as f, SandboxNotFoundError as g, TimeoutError as h, FileUploadError as i, ImageConfigError as j, SecretError as k, getSignature as l, FileType as m, Filesystem as n, type FilesystemWriteOpts as o, type paths as p, type FilesystemReadOpts as q, FilesystemEventType as r, type FilesystemEvent as s, WatchHandle as t, CommandExitError as u, type CommandResult as v, type Stdout as w, type Stderr as x, type PtyOutput as y, CommandHandle as z };
6040
+ export { type SandboxCommitOpts as $, ApiClient as A, BuildError as B, ConnectionConfig as C, type SandboxInfo as D, type EntryInfo as E, FileNotFoundError as F, GitAuthError as G, type Resources as H, InvalidArgumentError as I, type ResizeResult as J, type SandboxMetrics as K, type Logger as L, type SandboxOpts$1 as M, NotEnoughSpaceError as N, type SandboxApiOpts as O, PPIO as P, type SandboxConnectOpts as Q, RateLimitError as R, Sandbox$2 as S, TemplateError as T, type Username as U, VolumeError as V, type WriteInfo as W, type SandboxBetaCreateOpts as X, type SandboxMetricsOpts as Y, type SandboxCloneOpts as Z, type SandboxCloneResult as _, type ConnectionOpts as a, effectiveStartCmd as a$, type SandboxCommitResult as a0, type SandboxResetOpts as a1, type SandboxState as a2, type SandboxListOpts as a3, SandboxPaginator as a4, type SandboxNetworkOpts as a5, type SandboxNetworkUpdateOpts as a6, type SandboxLifecycle as a7, type SandboxInfoLifecycle as a8, type SnapshotInfo as a9, type GitPullOpts as aA, type GitDangerouslyAuthenticateOpts as aB, type GitConfigOpts as aC, type GitConfigScope as aD, type GitBranches as aE, type GitFileStatus as aF, type GitStatus as aG, Volume as aH, type VolumeInfo as aI, type VolumeAndToken as aJ, Secret as aK, type SecretBinding as aL, type SecretWriteParams as aM, ReadyCmd as aN, waitForPort as aO, waitForURL as aP, waitForProcess as aQ, waitForFile as aR, waitForTimeout as aS, LogEntry as aT, LogEntryStart as aU, LogEntryEnd as aV, type LogEntryLevel as aW, defaultBuildLogger as aX, type ImageConfig as aY, type RegistryCredentials as aZ, clearImageConfigCache as a_, type SnapshotListOpts as aa, SnapshotPaginator as ab, type SandboxQuota as ac, type SandboxQuotaLimit as ad, type SandboxQuotaUsage as ae, type SandboxQuotaOpts as af, type SandboxEventItem as ag, type SandboxEventsOpts as ah, type SandboxEventsResult as ai, type McpServer$1 as aj, ALL_TRAFFIC as ak, type ProcessInfo as al, type CommandRequestOpts as am, type CommandConnectOpts as an, type CommandStartOpts as ao, Commands as ap, Pty as aq, Git as ar, type GitRequestOpts as as, type GitCloneOpts as at, type GitInitOpts as au, type GitRemoteAddOpts as av, type GitCommitOpts as aw, type GitAddOpts as ax, type GitDeleteBranchOpts as ay, type GitPushOpts as az, AuthenticationError as b, fetchImageConfig as b0, parseImageRef as b1, unsupportedBase as b2, TemplateApi as b3, TemplatePaginator as b4, TemplateBase as b5, Template as b6, type BuildInfo as b7, type BuildOptions as b8, type BuildStatusReason as b9, type MIMEType as bA, type RawData as bB, OutputMessage as bC, ScaleType as bD, ChartType as bE, type ChartTypes as bF, type Chart as bG, type BarChart as bH, type BarData as bI, type LineChart as bJ, type ScatterChart as bK, type BoxAndWhiskerChart as bL, type BoxAndWhiskerData as bM, type PieChart as bN, type PieData as bO, type SuperChart as bP, type PointData as bQ, Sandbox as bR, type SandboxOpts as bS, type CopyItem as ba, type GetBuildStatusOptions as bb, type McpServerName as bc, type TemplateBuilder as bd, type TemplateBuildStatus as be, type TemplateBuildStatusResponse as bf, type TemplateClass as bg, type TemplateDeleteOpts as bh, type TemplateInfo as bi, type TemplateListOpts as bj, type TemplateListOptions as bk, type TemplateListResponse as bl, type TemplateTag as bm, type TemplateTagInfo as bn, type TemplateType as bo, type ImageConfigFailureMode as bp, type RegistryDispatcher as bq, Sandbox$1 as br, type Context as bs, type RunCodeOpts as bt, type CreateCodeContextOpts as bu, type CodeContextRequestOpts as bv, type Logs as bw, ExecutionError as bx, Result as by, Execution as bz, type components as c, GitUpstreamError as d, NotFoundError as e, SandboxError as f, SandboxNotFoundError as g, TimeoutError as h, FileUploadError as i, ImageConfigError as j, SecretError as k, getSignature as l, FileType as m, Filesystem as n, type FilesystemWriteOpts as o, type paths as p, type FilesystemReadOpts as q, FilesystemEventType as r, type FilesystemEvent as s, WatchHandle as t, CommandExitError as u, type CommandResult as v, type Stdout as w, type Stderr as x, type PtyOutput as y, CommandHandle as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Sandbox } from './index-CAD08VLb.mjs';
2
- export { ai as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b5 as BuildInfo, b6 as BuildOptions, b7 as BuildStatusReason, al as CommandConnectOpts, u as CommandExitError, z as CommandHandle, ak as CommandRequestOpts, v as CommandResult, am as CommandStartOpts, an as Commands, C as ConnectionConfig, a as ConnectionOpts, b8 as CopyItem, E as EntryInfo, F as FileNotFoundError, m as FileType, i as FileUploadError, n as Filesystem, s as FilesystemEvent, r as FilesystemEventType, q as FilesystemReadOpts, o as FilesystemWriteOpts, b9 as GetBuildStatusOptions, ap as Git, av as GitAddOpts, G as GitAuthError, aC as GitBranches, ar as GitCloneOpts, au as GitCommitOpts, aA as GitConfigOpts, aB as GitConfigScope, az as GitDangerouslyAuthenticateOpts, aw as GitDeleteBranchOpts, aD as GitFileStatus, as as GitInitOpts, ay as GitPullOpts, ax as GitPushOpts, at as GitRemoteAddOpts, aq as GitRequestOpts, aE as GitStatus, d as GitUpstreamError, aW as ImageConfig, j as ImageConfigError, bn as ImageConfigFailureMode, I as InvalidArgumentError, aR as LogEntry, aT as LogEntryEnd, aU as LogEntryLevel, aS as LogEntryStart, L as Logger, ah as McpServer, ba as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, aj as ProcessInfo, ao as Pty, y as PtyOutput, R as RateLimitError, aL as ReadyCmd, aX as RegistryCredentials, bo as RegistryDispatcher, K as SandboxApiOpts, O as SandboxBetaCreateOpts, X as SandboxCloneOpts, Y as SandboxCloneResult, Z as SandboxCommitOpts, _ as SandboxCommitResult, M as SandboxConnectOpts, f as SandboxError, ae as SandboxEventItem, af as SandboxEventsOpts, ag as SandboxEventsResult, D as SandboxInfo, a6 as SandboxInfoLifecycle, a5 as SandboxLifecycle, a1 as SandboxListOpts, H as SandboxMetrics, Q as SandboxMetricsOpts, a3 as SandboxNetworkOpts, a4 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, J as SandboxOpts, a2 as SandboxPaginator, aa as SandboxQuota, ab as SandboxQuotaLimit, ad as SandboxQuotaOpts, ac as SandboxQuotaUsage, $ as SandboxResetOpts, a0 as SandboxState, aI as Secret, aJ as SecretBinding, k as SecretError, aK as SecretWriteParams, a7 as SnapshotInfo, a8 as SnapshotListOpts, a9 as SnapshotPaginator, x as Stderr, w as Stdout, b4 as Template, b1 as TemplateApi, b3 as TemplateBase, bc as TemplateBuildStatus, bd as TemplateBuildStatusResponse, bb as TemplateBuilder, be as TemplateClass, bf as TemplateDeleteOpts, T as TemplateError, bg as TemplateInfo, bi as TemplateListOptions, bh as TemplateListOpts, bj as TemplateListResponse, b2 as TemplatePaginator, bk as TemplateTag, bl as TemplateTagInfo, bm as TemplateType, h as TimeoutError, U as Username, aF as Volume, aH as VolumeAndToken, V as VolumeError, aG as VolumeInfo, t as WatchHandle, W as WriteInfo, aY as clearImageConfigCache, c as components, aV as defaultBuildLogger, aZ as effectiveStartCmd, a_ as fetchImageConfig, l as getSignature, a$ as parseImageRef, p as paths, b0 as unsupportedBase, aP as waitForFile, aM as waitForPort, aO as waitForProcess, aQ as waitForTimeout, aN as waitForURL } from './index-CAD08VLb.mjs';
1
+ import { S as Sandbox } from './index-DIHU8MXT.mjs';
2
+ export { ak as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b7 as BuildInfo, b8 as BuildOptions, b9 as BuildStatusReason, an as CommandConnectOpts, u as CommandExitError, z as CommandHandle, am as CommandRequestOpts, v as CommandResult, ao as CommandStartOpts, ap as Commands, C as ConnectionConfig, a as ConnectionOpts, ba as CopyItem, E as EntryInfo, F as FileNotFoundError, m as FileType, i as FileUploadError, n as Filesystem, s as FilesystemEvent, r as FilesystemEventType, q as FilesystemReadOpts, o as FilesystemWriteOpts, bb as GetBuildStatusOptions, ar as Git, ax as GitAddOpts, G as GitAuthError, aE as GitBranches, at as GitCloneOpts, aw as GitCommitOpts, aC as GitConfigOpts, aD as GitConfigScope, aB as GitDangerouslyAuthenticateOpts, ay as GitDeleteBranchOpts, aF as GitFileStatus, au as GitInitOpts, aA as GitPullOpts, az as GitPushOpts, av as GitRemoteAddOpts, as as GitRequestOpts, aG as GitStatus, d as GitUpstreamError, aY as ImageConfig, j as ImageConfigError, bp as ImageConfigFailureMode, I as InvalidArgumentError, aT as LogEntry, aV as LogEntryEnd, aW as LogEntryLevel, aU as LogEntryStart, L as Logger, aj as McpServer, bc as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, al as ProcessInfo, aq as Pty, y as PtyOutput, R as RateLimitError, aN as ReadyCmd, aZ as RegistryCredentials, bq as RegistryDispatcher, J as ResizeResult, H as Resources, O as SandboxApiOpts, X as SandboxBetaCreateOpts, Z as SandboxCloneOpts, _ as SandboxCloneResult, $ as SandboxCommitOpts, a0 as SandboxCommitResult, Q as SandboxConnectOpts, f as SandboxError, ag as SandboxEventItem, ah as SandboxEventsOpts, ai as SandboxEventsResult, D as SandboxInfo, a8 as SandboxInfoLifecycle, a7 as SandboxLifecycle, a3 as SandboxListOpts, K as SandboxMetrics, Y as SandboxMetricsOpts, a5 as SandboxNetworkOpts, a6 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, M as SandboxOpts, a4 as SandboxPaginator, ac as SandboxQuota, ad as SandboxQuotaLimit, af as SandboxQuotaOpts, ae as SandboxQuotaUsage, a1 as SandboxResetOpts, a2 as SandboxState, aK as Secret, aL as SecretBinding, k as SecretError, aM as SecretWriteParams, a9 as SnapshotInfo, aa as SnapshotListOpts, ab as SnapshotPaginator, x as Stderr, w as Stdout, b6 as Template, b3 as TemplateApi, b5 as TemplateBase, be as TemplateBuildStatus, bf as TemplateBuildStatusResponse, bd as TemplateBuilder, bg as TemplateClass, bh as TemplateDeleteOpts, T as TemplateError, bi as TemplateInfo, bk as TemplateListOptions, bj as TemplateListOpts, bl as TemplateListResponse, b4 as TemplatePaginator, bm as TemplateTag, bn as TemplateTagInfo, bo as TemplateType, h as TimeoutError, U as Username, aH as Volume, aJ as VolumeAndToken, V as VolumeError, aI as VolumeInfo, t as WatchHandle, W as WriteInfo, a_ as clearImageConfigCache, c as components, aX as defaultBuildLogger, a$ as effectiveStartCmd, b0 as fetchImageConfig, l as getSignature, b1 as parseImageRef, p as paths, b2 as unsupportedBase, aR as waitForFile, aO as waitForPort, aQ as waitForProcess, aS as waitForTimeout, aP as waitForURL } from './index-DIHU8MXT.mjs';
3
3
  import 'openapi-fetch';
4
4
  import 'node:fs';
5
5
  import '@connectrpc/connect';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Sandbox } from './index-CAD08VLb.js';
2
- export { ai as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b5 as BuildInfo, b6 as BuildOptions, b7 as BuildStatusReason, al as CommandConnectOpts, u as CommandExitError, z as CommandHandle, ak as CommandRequestOpts, v as CommandResult, am as CommandStartOpts, an as Commands, C as ConnectionConfig, a as ConnectionOpts, b8 as CopyItem, E as EntryInfo, F as FileNotFoundError, m as FileType, i as FileUploadError, n as Filesystem, s as FilesystemEvent, r as FilesystemEventType, q as FilesystemReadOpts, o as FilesystemWriteOpts, b9 as GetBuildStatusOptions, ap as Git, av as GitAddOpts, G as GitAuthError, aC as GitBranches, ar as GitCloneOpts, au as GitCommitOpts, aA as GitConfigOpts, aB as GitConfigScope, az as GitDangerouslyAuthenticateOpts, aw as GitDeleteBranchOpts, aD as GitFileStatus, as as GitInitOpts, ay as GitPullOpts, ax as GitPushOpts, at as GitRemoteAddOpts, aq as GitRequestOpts, aE as GitStatus, d as GitUpstreamError, aW as ImageConfig, j as ImageConfigError, bn as ImageConfigFailureMode, I as InvalidArgumentError, aR as LogEntry, aT as LogEntryEnd, aU as LogEntryLevel, aS as LogEntryStart, L as Logger, ah as McpServer, ba as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, aj as ProcessInfo, ao as Pty, y as PtyOutput, R as RateLimitError, aL as ReadyCmd, aX as RegistryCredentials, bo as RegistryDispatcher, K as SandboxApiOpts, O as SandboxBetaCreateOpts, X as SandboxCloneOpts, Y as SandboxCloneResult, Z as SandboxCommitOpts, _ as SandboxCommitResult, M as SandboxConnectOpts, f as SandboxError, ae as SandboxEventItem, af as SandboxEventsOpts, ag as SandboxEventsResult, D as SandboxInfo, a6 as SandboxInfoLifecycle, a5 as SandboxLifecycle, a1 as SandboxListOpts, H as SandboxMetrics, Q as SandboxMetricsOpts, a3 as SandboxNetworkOpts, a4 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, J as SandboxOpts, a2 as SandboxPaginator, aa as SandboxQuota, ab as SandboxQuotaLimit, ad as SandboxQuotaOpts, ac as SandboxQuotaUsage, $ as SandboxResetOpts, a0 as SandboxState, aI as Secret, aJ as SecretBinding, k as SecretError, aK as SecretWriteParams, a7 as SnapshotInfo, a8 as SnapshotListOpts, a9 as SnapshotPaginator, x as Stderr, w as Stdout, b4 as Template, b1 as TemplateApi, b3 as TemplateBase, bc as TemplateBuildStatus, bd as TemplateBuildStatusResponse, bb as TemplateBuilder, be as TemplateClass, bf as TemplateDeleteOpts, T as TemplateError, bg as TemplateInfo, bi as TemplateListOptions, bh as TemplateListOpts, bj as TemplateListResponse, b2 as TemplatePaginator, bk as TemplateTag, bl as TemplateTagInfo, bm as TemplateType, h as TimeoutError, U as Username, aF as Volume, aH as VolumeAndToken, V as VolumeError, aG as VolumeInfo, t as WatchHandle, W as WriteInfo, aY as clearImageConfigCache, c as components, aV as defaultBuildLogger, aZ as effectiveStartCmd, a_ as fetchImageConfig, l as getSignature, a$ as parseImageRef, p as paths, b0 as unsupportedBase, aP as waitForFile, aM as waitForPort, aO as waitForProcess, aQ as waitForTimeout, aN as waitForURL } from './index-CAD08VLb.js';
1
+ import { S as Sandbox } from './index-DIHU8MXT.js';
2
+ export { ak as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b7 as BuildInfo, b8 as BuildOptions, b9 as BuildStatusReason, an as CommandConnectOpts, u as CommandExitError, z as CommandHandle, am as CommandRequestOpts, v as CommandResult, ao as CommandStartOpts, ap as Commands, C as ConnectionConfig, a as ConnectionOpts, ba as CopyItem, E as EntryInfo, F as FileNotFoundError, m as FileType, i as FileUploadError, n as Filesystem, s as FilesystemEvent, r as FilesystemEventType, q as FilesystemReadOpts, o as FilesystemWriteOpts, bb as GetBuildStatusOptions, ar as Git, ax as GitAddOpts, G as GitAuthError, aE as GitBranches, at as GitCloneOpts, aw as GitCommitOpts, aC as GitConfigOpts, aD as GitConfigScope, aB as GitDangerouslyAuthenticateOpts, ay as GitDeleteBranchOpts, aF as GitFileStatus, au as GitInitOpts, aA as GitPullOpts, az as GitPushOpts, av as GitRemoteAddOpts, as as GitRequestOpts, aG as GitStatus, d as GitUpstreamError, aY as ImageConfig, j as ImageConfigError, bp as ImageConfigFailureMode, I as InvalidArgumentError, aT as LogEntry, aV as LogEntryEnd, aW as LogEntryLevel, aU as LogEntryStart, L as Logger, aj as McpServer, bc as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, al as ProcessInfo, aq as Pty, y as PtyOutput, R as RateLimitError, aN as ReadyCmd, aZ as RegistryCredentials, bq as RegistryDispatcher, J as ResizeResult, H as Resources, O as SandboxApiOpts, X as SandboxBetaCreateOpts, Z as SandboxCloneOpts, _ as SandboxCloneResult, $ as SandboxCommitOpts, a0 as SandboxCommitResult, Q as SandboxConnectOpts, f as SandboxError, ag as SandboxEventItem, ah as SandboxEventsOpts, ai as SandboxEventsResult, D as SandboxInfo, a8 as SandboxInfoLifecycle, a7 as SandboxLifecycle, a3 as SandboxListOpts, K as SandboxMetrics, Y as SandboxMetricsOpts, a5 as SandboxNetworkOpts, a6 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, M as SandboxOpts, a4 as SandboxPaginator, ac as SandboxQuota, ad as SandboxQuotaLimit, af as SandboxQuotaOpts, ae as SandboxQuotaUsage, a1 as SandboxResetOpts, a2 as SandboxState, aK as Secret, aL as SecretBinding, k as SecretError, aM as SecretWriteParams, a9 as SnapshotInfo, aa as SnapshotListOpts, ab as SnapshotPaginator, x as Stderr, w as Stdout, b6 as Template, b3 as TemplateApi, b5 as TemplateBase, be as TemplateBuildStatus, bf as TemplateBuildStatusResponse, bd as TemplateBuilder, bg as TemplateClass, bh as TemplateDeleteOpts, T as TemplateError, bi as TemplateInfo, bk as TemplateListOptions, bj as TemplateListOpts, bl as TemplateListResponse, b4 as TemplatePaginator, bm as TemplateTag, bn as TemplateTagInfo, bo as TemplateType, h as TimeoutError, U as Username, aH as Volume, aJ as VolumeAndToken, V as VolumeError, aI as VolumeInfo, t as WatchHandle, W as WriteInfo, a_ as clearImageConfigCache, c as components, aX as defaultBuildLogger, a$ as effectiveStartCmd, b0 as fetchImageConfig, l as getSignature, b1 as parseImageRef, p as paths, b2 as unsupportedBase, aR as waitForFile, aO as waitForPort, aQ as waitForProcess, aS as waitForTimeout, aP as waitForURL } from './index-DIHU8MXT.js';
3
3
  import 'openapi-fetch';
4
4
  import 'node:fs';
5
5
  import '@connectrpc/connect';