sandcovery 0.3.0 → 0.5.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 +14 -5
- package/dist/{Schema-DiSfJzMf.mjs → Schema-fLas6rbA.mjs} +8069 -930
- package/dist/cli/index.mjs +2 -1707
- package/dist/cli/sandcovery-docker.d.mts +1 -0
- package/dist/cli/sandcovery-docker.mjs +8 -0
- package/dist/handlers-qYjkPftS.mjs +18077 -0
- package/dist/index.d.mts +23 -1
- package/dist/index.mjs +1 -1
- package/dist/{origin-CIA-1Jia.mjs → origin-5maEGWRg.mjs} +105 -74
- package/dist/{spec-DfgmzDj-.mjs → spec-cGDeWJ3v.mjs} +951 -122
- package/dist/{src-YrynO3hz.mjs → src-zWk1RjrB.mjs} +241 -23
- package/dist/start-B8ruSPVb.mjs +1992 -0
- package/dist/{telemetry-delivery-zinKRHRc.mjs → telemetry-delivery-8t5RXWli.mjs} +3 -3
- package/dist/{types-DMB8KnA3.d.mts → types-ZqbGCXKy.d.mts} +153 -12
- package/dist/types.d.mts +2 -2
- package/dist/types.mjs +18 -18
- package/package.json +17 -13
- package/dist/handlers-rkx0CsMY.mjs +0 -2459
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as fromJsonString, R as optional, S as decodeUnknownOption, _ as Struct, g as String$1, rr as isNone, s as Int, t as ArraySchema } from "./Schema-fLas6rbA.mjs";
|
|
2
2
|
import { t as loopbackOrigin } from "./telemetry-BYnuVdoZ.mjs";
|
|
3
3
|
import { constants } from "node:fs";
|
|
4
4
|
import { isAbsolute } from "node:path";
|
|
5
5
|
import { createInterface } from "node:readline";
|
|
6
6
|
import { platform, release } from "node:os";
|
|
7
|
-
import { dirname, isAbsolute as isAbsolute$1, posix, relative, sep } from "path";
|
|
7
|
+
import { dirname, isAbsolute as isAbsolute$1, posix as posix$1, relative, sep } from "path";
|
|
8
8
|
import { open } from "node:fs/promises";
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
10
10
|
import { gzip } from "node:zlib";
|
|
@@ -22,7 +22,7 @@ function createGetModuleFromFilename(basePath = process.argv[1] ? dirname(proces
|
|
|
22
22
|
return (filename) => {
|
|
23
23
|
if (!filename) return;
|
|
24
24
|
const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;
|
|
25
|
-
let { dir, base: file, ext } = posix.parse(normalizedFilename);
|
|
25
|
+
let { dir, base: file, ext } = posix$1.parse(normalizedFilename);
|
|
26
26
|
if (".js" === ext || ".mjs" === ext || ".cjs" === ext) file = file.slice(0, -1 * ext.length);
|
|
27
27
|
const decodedFile = decodeURIComponent(file);
|
|
28
28
|
if (!dir) dir = ".";
|
|
@@ -14,16 +14,35 @@ interface ActivityList {
|
|
|
14
14
|
readonly data: readonly ActivityEvent[];
|
|
15
15
|
readonly next_cursor: string | null;
|
|
16
16
|
}
|
|
17
|
+
interface Badge {
|
|
18
|
+
readonly earned_at: string | null;
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly progress: number;
|
|
22
|
+
readonly target: number;
|
|
23
|
+
readonly unit: string;
|
|
24
|
+
}
|
|
17
25
|
interface Billing {
|
|
18
26
|
readonly credit_balance_micro_usd: number;
|
|
27
|
+
readonly credits_on_sale: boolean;
|
|
19
28
|
readonly plan: Plan;
|
|
20
29
|
readonly pro_price: ProPrice | null;
|
|
21
30
|
}
|
|
31
|
+
interface BrandImage {
|
|
32
|
+
readonly source_url: string;
|
|
33
|
+
readonly tile: boolean;
|
|
34
|
+
readonly url: string;
|
|
35
|
+
}
|
|
22
36
|
interface CatalogBenchmarkTerms {
|
|
23
37
|
readonly detail: string | null;
|
|
24
38
|
readonly source_url: string | null;
|
|
25
39
|
readonly value: "barred" | "conditional" | "no_bar_found";
|
|
26
40
|
}
|
|
41
|
+
interface CatalogBrandTerms {
|
|
42
|
+
readonly detail: string | null;
|
|
43
|
+
readonly source_url: string | null;
|
|
44
|
+
readonly value: "barred" | "conditional" | "no_bar_found";
|
|
45
|
+
}
|
|
27
46
|
interface CatalogFlag {
|
|
28
47
|
readonly detail: string | null;
|
|
29
48
|
readonly source_url: string | null;
|
|
@@ -53,6 +72,43 @@ interface CatalogText {
|
|
|
53
72
|
readonly source_url: string | null;
|
|
54
73
|
readonly value: string;
|
|
55
74
|
}
|
|
75
|
+
interface CiInstallation {
|
|
76
|
+
readonly account: string;
|
|
77
|
+
readonly api_key_id: string;
|
|
78
|
+
readonly installation_id: number;
|
|
79
|
+
readonly linked_at: string;
|
|
80
|
+
readonly provider_order: readonly Provider[];
|
|
81
|
+
}
|
|
82
|
+
interface CiInstallationList {
|
|
83
|
+
readonly data: readonly CiInstallation[];
|
|
84
|
+
}
|
|
85
|
+
interface CiJob {
|
|
86
|
+
readonly completed_at: string | null;
|
|
87
|
+
readonly conclusion: CiJobConclusion | null;
|
|
88
|
+
readonly cost_micro_usd: number | null;
|
|
89
|
+
readonly duration_ms: number | null;
|
|
90
|
+
readonly github_hosted_cost_micro_usd: number | null;
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly job_name: string;
|
|
93
|
+
readonly provider: Provider | null;
|
|
94
|
+
readonly queued_at: string;
|
|
95
|
+
readonly repository: string;
|
|
96
|
+
readonly runner_error: string | null;
|
|
97
|
+
readonly runner_label: string;
|
|
98
|
+
readonly sandbox_id: string | null;
|
|
99
|
+
readonly started_at: string | null;
|
|
100
|
+
readonly status: CiJobStatus;
|
|
101
|
+
readonly wait_ms: number | null;
|
|
102
|
+
readonly workflow_job_id: number;
|
|
103
|
+
readonly workflow_run_id: number;
|
|
104
|
+
}
|
|
105
|
+
declare const CI_JOB_CONCLUSIONS: readonly ["action_required", "cancelled", "failure", "neutral", "skipped", "success", "timed_out"];
|
|
106
|
+
type CiJobConclusion = (typeof CI_JOB_CONCLUSIONS)[number] | (string & Record<never, never>);
|
|
107
|
+
interface CiJobList {
|
|
108
|
+
readonly data: readonly CiJob[];
|
|
109
|
+
readonly next_cursor: string | null;
|
|
110
|
+
}
|
|
111
|
+
type CiJobStatus = "completed" | "in_progress" | "queued";
|
|
56
112
|
interface ConcurrencyLimitReachedError {
|
|
57
113
|
readonly concurrency_cap: number;
|
|
58
114
|
readonly error: "concurrency_limit_reached";
|
|
@@ -92,12 +148,11 @@ interface CreateSandboxRequest {
|
|
|
92
148
|
readonly gpu?: Gpu;
|
|
93
149
|
readonly idle_timeout_seconds?: number;
|
|
94
150
|
readonly image?: string;
|
|
95
|
-
readonly memory_mib?: number;
|
|
96
151
|
readonly ports?: readonly number[];
|
|
97
152
|
readonly region?: Region;
|
|
98
|
-
readonly size?: SizeName;
|
|
99
153
|
readonly ttl_seconds?: number;
|
|
100
|
-
readonly
|
|
154
|
+
readonly slug?: Slug;
|
|
155
|
+
readonly slugs?: readonly Slug[];
|
|
101
156
|
readonly provider?: ProviderPreferences;
|
|
102
157
|
readonly snapshot_id?: string;
|
|
103
158
|
}
|
|
@@ -113,6 +168,12 @@ interface CreditCheckout {
|
|
|
113
168
|
interface CreditPurchaseRequest {
|
|
114
169
|
readonly amount_micro_usd: number;
|
|
115
170
|
}
|
|
171
|
+
interface CreditTerms {
|
|
172
|
+
readonly fee_fixed_micro_usd: number;
|
|
173
|
+
readonly fee_rate_basis_points: number;
|
|
174
|
+
readonly max_micro_usd: number;
|
|
175
|
+
readonly min_micro_usd: number;
|
|
176
|
+
}
|
|
116
177
|
interface DetachedExec {
|
|
117
178
|
readonly started_at: string;
|
|
118
179
|
}
|
|
@@ -135,6 +196,7 @@ interface Estimate {
|
|
|
135
196
|
readonly hourly_micro_usd: number;
|
|
136
197
|
readonly provider: Provider;
|
|
137
198
|
readonly rate_card_version: string;
|
|
199
|
+
readonly slug: Slug;
|
|
138
200
|
readonly ttl_micro_usd: number;
|
|
139
201
|
}
|
|
140
202
|
interface EstimateList {
|
|
@@ -147,12 +209,11 @@ interface EstimateRequest {
|
|
|
147
209
|
readonly gpu?: Gpu;
|
|
148
210
|
readonly idle_timeout_seconds?: number;
|
|
149
211
|
readonly image?: string;
|
|
150
|
-
readonly memory_mib?: number;
|
|
151
212
|
readonly ports?: readonly number[];
|
|
152
213
|
readonly region?: Region;
|
|
153
|
-
readonly size?: SizeName;
|
|
154
214
|
readonly ttl_seconds?: number;
|
|
155
|
-
readonly
|
|
215
|
+
readonly slug?: Slug;
|
|
216
|
+
readonly slugs?: readonly Slug[];
|
|
156
217
|
readonly provider?: ProviderPreferences;
|
|
157
218
|
}
|
|
158
219
|
type ExecEvent = {
|
|
@@ -235,6 +296,22 @@ type KeyKind_1 = "api" | "management";
|
|
|
235
296
|
interface KeyList {
|
|
236
297
|
readonly data: readonly Key[];
|
|
237
298
|
}
|
|
299
|
+
interface LiveSandboxes {
|
|
300
|
+
readonly accrued_micro_usd: number;
|
|
301
|
+
readonly api_key_id: string | null;
|
|
302
|
+
readonly gpus: number;
|
|
303
|
+
readonly hourly_micro_usd: number;
|
|
304
|
+
readonly memory_mib: number;
|
|
305
|
+
readonly provider: Provider | null;
|
|
306
|
+
readonly sandbox_count: number;
|
|
307
|
+
readonly status: LiveSandboxStatus;
|
|
308
|
+
readonly vcpus: number;
|
|
309
|
+
}
|
|
310
|
+
type LiveSandboxStatus = "creating" | "destroying" | "paused" | "running";
|
|
311
|
+
interface LiveUsage {
|
|
312
|
+
readonly at: string;
|
|
313
|
+
readonly data: readonly LiveSandboxes[];
|
|
314
|
+
}
|
|
238
315
|
interface NoProviderAvailableError {
|
|
239
316
|
readonly attempts: readonly CreateAttempt[];
|
|
240
317
|
readonly error: "no_provider_available";
|
|
@@ -261,6 +338,10 @@ interface PortPreview {
|
|
|
261
338
|
readonly port: number;
|
|
262
339
|
readonly url: string;
|
|
263
340
|
}
|
|
341
|
+
interface Pricing {
|
|
342
|
+
readonly credits: CreditTerms;
|
|
343
|
+
readonly pro_price: ProPrice | null;
|
|
344
|
+
}
|
|
264
345
|
type ProInterval = "day" | "month" | "week" | "year";
|
|
265
346
|
interface ProPrice {
|
|
266
347
|
readonly interval: ProInterval;
|
|
@@ -280,6 +361,7 @@ interface ProviderBoardEntry {
|
|
|
280
361
|
};
|
|
281
362
|
readonly credential_fields: readonly CredentialField[];
|
|
282
363
|
readonly docs_only_adapter: boolean;
|
|
364
|
+
readonly favicon: ThemedBrandImage | null;
|
|
283
365
|
readonly features: ProviderFeatures;
|
|
284
366
|
readonly gpu_prices: readonly {
|
|
285
367
|
readonly hourly_micro_usd: number;
|
|
@@ -312,7 +394,12 @@ interface ProviderCatalog {
|
|
|
312
394
|
interface ProviderCatalogEntry {
|
|
313
395
|
readonly adapter_source_urls: readonly string[];
|
|
314
396
|
readonly billing: CatalogText | null;
|
|
397
|
+
readonly brand: {
|
|
398
|
+
readonly favicon: ThemedBrandImage | null;
|
|
399
|
+
readonly logo: ThemedBrandImage | null;
|
|
400
|
+
};
|
|
315
401
|
readonly capabilities: {
|
|
402
|
+
readonly ci_runner: CatalogFlag | null;
|
|
316
403
|
readonly custom_image: CatalogFlag | null;
|
|
317
404
|
readonly environment: CatalogFlag | null;
|
|
318
405
|
readonly files: CatalogFlag | null;
|
|
@@ -350,6 +437,7 @@ interface ProviderCatalogEntry {
|
|
|
350
437
|
readonly name: string;
|
|
351
438
|
readonly policy: {
|
|
352
439
|
readonly benchmark_terms: CatalogBenchmarkTerms;
|
|
440
|
+
readonly brand_terms: CatalogBrandTerms;
|
|
353
441
|
readonly compliance: SecurityList | null;
|
|
354
442
|
readonly data_location: SecurityText | null;
|
|
355
443
|
readonly free_allowance: CatalogText | null;
|
|
@@ -385,6 +473,8 @@ interface ProviderCatalogEntry {
|
|
|
385
473
|
interface ProviderCredential {
|
|
386
474
|
readonly created_at: string;
|
|
387
475
|
readonly hint: string;
|
|
476
|
+
readonly id: string;
|
|
477
|
+
readonly paused: boolean;
|
|
388
478
|
readonly provider: Provider;
|
|
389
479
|
readonly updated_at: string;
|
|
390
480
|
}
|
|
@@ -428,7 +518,7 @@ type ProviderStatus = "degraded" | "down" | "operational" | "unknown";
|
|
|
428
518
|
declare const REGIONS: readonly ["asia", "eu", "us"];
|
|
429
519
|
type Region = (typeof REGIONS)[number] | (string & Record<never, never>);
|
|
430
520
|
interface Sandbox {
|
|
431
|
-
readonly api_key_id: string;
|
|
521
|
+
readonly api_key_id: string | null;
|
|
432
522
|
readonly attempts: readonly CreateAttempt[];
|
|
433
523
|
readonly cost: SandboxCost;
|
|
434
524
|
readonly created_at: string;
|
|
@@ -446,7 +536,7 @@ interface Sandbox {
|
|
|
446
536
|
readonly provider: Provider | null;
|
|
447
537
|
readonly provider_sandbox_id: string | null;
|
|
448
538
|
readonly region: Region | null;
|
|
449
|
-
readonly
|
|
539
|
+
readonly slug: Slug | null;
|
|
450
540
|
readonly started_at: string | null;
|
|
451
541
|
readonly status: SandboxStatus;
|
|
452
542
|
readonly ttl_seconds: number;
|
|
@@ -477,8 +567,8 @@ interface SecurityText {
|
|
|
477
567
|
readonly source_url: string;
|
|
478
568
|
readonly value: string;
|
|
479
569
|
}
|
|
480
|
-
declare const
|
|
481
|
-
type
|
|
570
|
+
declare const SLUGS: readonly ["sandcovery/2x4", "sandcovery/2x4:cheapest", "sandcovery/nx16:cheapest", "sandcovery/2xn:fastest", "sandcovery/nxn:most-reliable", "boat/2x4", "e2b/2x0.5"];
|
|
571
|
+
type Slug = (typeof SLUGS)[number] | (string & Record<never, never>);
|
|
482
572
|
interface Snapshot {
|
|
483
573
|
readonly created_at: string;
|
|
484
574
|
readonly id: string;
|
|
@@ -499,6 +589,39 @@ interface SpendLimitReachedError {
|
|
|
499
589
|
}
|
|
500
590
|
declare const STANDARD_SIZES: readonly ["1x2", "2x4", "4x8", "8x16"];
|
|
501
591
|
type StandardSize = (typeof STANDARD_SIZES)[number] | (string & Record<never, never>);
|
|
592
|
+
interface Stats {
|
|
593
|
+
readonly badges: readonly Badge[];
|
|
594
|
+
readonly busiest_day: StatsDay | null;
|
|
595
|
+
readonly days: readonly StatsDay[];
|
|
596
|
+
readonly largest_sandbox: {
|
|
597
|
+
readonly memory_mib: number;
|
|
598
|
+
readonly provider: Provider;
|
|
599
|
+
readonly sandbox_id: string;
|
|
600
|
+
readonly vcpus: number;
|
|
601
|
+
} | null;
|
|
602
|
+
readonly level: number;
|
|
603
|
+
readonly level_vcpu_seconds: number;
|
|
604
|
+
readonly longest_run: {
|
|
605
|
+
readonly provider: Provider;
|
|
606
|
+
readonly sandbox_id: string;
|
|
607
|
+
readonly seconds: number;
|
|
608
|
+
} | null;
|
|
609
|
+
readonly next_level_vcpu_seconds: number;
|
|
610
|
+
readonly sandbox_count: number;
|
|
611
|
+
readonly streak: {
|
|
612
|
+
readonly current_days: number;
|
|
613
|
+
readonly longest_days: number;
|
|
614
|
+
};
|
|
615
|
+
readonly vcpu_seconds: number;
|
|
616
|
+
}
|
|
617
|
+
interface StatsDay {
|
|
618
|
+
readonly date: string;
|
|
619
|
+
readonly sandbox_count: number;
|
|
620
|
+
}
|
|
621
|
+
interface ThemedBrandImage {
|
|
622
|
+
readonly dark: BrandImage;
|
|
623
|
+
readonly light: BrandImage;
|
|
624
|
+
}
|
|
502
625
|
interface UnauthorizedError {
|
|
503
626
|
readonly error: "unauthorized";
|
|
504
627
|
readonly message: string;
|
|
@@ -521,12 +644,30 @@ interface Usage {
|
|
|
521
644
|
readonly data: readonly UsageDay[];
|
|
522
645
|
}
|
|
523
646
|
interface UsageDay {
|
|
524
|
-
readonly api_key_id: string;
|
|
647
|
+
readonly api_key_id: string | null;
|
|
525
648
|
readonly date: string;
|
|
526
649
|
readonly estimated_micro_usd: number;
|
|
650
|
+
readonly gpu_seconds: number;
|
|
651
|
+
readonly memory_gib_seconds: number;
|
|
527
652
|
readonly provider: Provider;
|
|
528
653
|
readonly sandbox_count: number;
|
|
529
654
|
readonly sandbox_seconds: number;
|
|
655
|
+
readonly vcpu_seconds: number;
|
|
656
|
+
}
|
|
657
|
+
type UsagePeriod = "day" | "month" | "total" | "week";
|
|
658
|
+
interface UsageTotal {
|
|
659
|
+
readonly estimated_micro_usd: number;
|
|
660
|
+
readonly gpu_seconds: number;
|
|
661
|
+
readonly memory_gib_seconds: number;
|
|
662
|
+
readonly period: UsagePeriod;
|
|
663
|
+
readonly sandbox_count: number;
|
|
664
|
+
readonly sandbox_seconds: number;
|
|
665
|
+
readonly since: string | null;
|
|
666
|
+
readonly vcpu_seconds: number;
|
|
667
|
+
}
|
|
668
|
+
interface UsageTotals {
|
|
669
|
+
readonly at: string;
|
|
670
|
+
readonly data: readonly UsageTotal[];
|
|
530
671
|
}
|
|
531
672
|
interface VendorIncident {
|
|
532
673
|
readonly id: string;
|
|
@@ -542,4 +683,4 @@ interface VendorIncidentRead {
|
|
|
542
683
|
readonly source_url: string;
|
|
543
684
|
}
|
|
544
685
|
type ApiError = ConcurrencyLimitReachedError | ConflictError | ForbiddenError | InvalidRequestError | NoProviderAvailableError | NotFoundError | ProviderError | SpendLimitReachedError | UnauthorizedError | UnsupportedError;
|
|
545
|
-
export {
|
|
686
|
+
export { GpuType as $, ThemedBrandImage as $t, CreatedKey as A, ProviderSecurity as At, EgressPolicy as B, SandboxEndReason as Bt, CiJobStatus as C, ProviderCatalog as Ct, CreateFailureReason as D, ProviderError as Dt, CreateAttempt as E, ProviderCredentialList as Et, CreditTerms as F, Region as Ft, ExecRequest as G, Slug as Gt, EstimateList as H, SandboxStatus as Ht, DetachedExec as I, SLUGS as It, FileEntryType as J, SpendLimitPeriod as Jt, ExecResult as K, Snapshot as Kt, DetachedExecRequest as L, STANDARD_SIZES as Lt, CredentialFields as M, ProviderStatus as Mt, CreditCheckout as N, Provider_1 as Nt, CreateKeyRequest as O, ProviderFeatures as Ot, CreditPurchaseRequest as P, REGIONS as Pt, Gpu as Q, StatsDay as Qt, EGRESS_MODES as R, Sandbox as Rt, CiJobList as S, ProviderBoardEntry as St, ConflictError as T, ProviderCredential as Tt, EstimateRequest as U, SecurityList as Ut, Estimate as V, SandboxList as Vt, ExecEvent as W, SecurityText as Wt, ForbiddenError as X, StandardSize as Xt, FileList as Y, SpendLimitReachedError as Yt, GPU_TYPES as Z, Stats as Zt, CatalogText as _, Pricing as _t, ApiError as a, UsagePeriod as an, KeyKind_1 as at, CiJob as b, Provider as bt, BrandImage as c, VendorIncident as cn, LiveSandboxes as ct, CatalogBrandTerms as d, NotFoundError as dt, UnauthorizedError as en, Health as et, CatalogFlag as f, Offer as ft, CatalogMeasurement as g, PortPreview as gt, CatalogList as h, Plan as ht, ActivityList as i, UsageDay as in, KeyKind as it, CredentialField as j, ProviderSort as jt, CreateSandboxRequest as k, ProviderPreferences as kt, CI_JOB_CONCLUSIONS as l, VendorIncidentRead as ln, LiveUsage as lt, CatalogLimit as m, PROVIDER_1S as mt, ActivityAction as n, UpdateKeyRequest as nn, InvalidRequestError as nt, Badge as o, UsageTotal as on, KeyList as ot, CatalogGpus as p, PROVIDERS as pt, FileEntry as q, SpendLimit as qt, ActivityEvent as r, Usage as rn, Key as rt, Billing as s, UsageTotals as sn, LiveSandboxStatus as st, ACTIVITY_ACTIONS as t, UnsupportedError as tn, IncidentImpact as tt, CatalogBenchmarkTerms as u, NoProviderAvailableError as ut, CiInstallation as v, ProInterval as vt, ConcurrencyLimitReachedError as w, ProviderCatalogEntry as wt, CiJobConclusion as x, ProviderBoard as xt, CiInstallationList as y, ProPrice as yt, EgressMode as z, SandboxCost as zt };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ACTIVITY_ACTIONS, ActivityAction, ActivityEvent, ActivityList, ApiError, Billing, CatalogBenchmarkTerms, CatalogFlag, CatalogGpus, CatalogLimit, CatalogList, CatalogMeasurement, CatalogText, ConcurrencyLimitReachedError, ConflictError, CreateAttempt, CreateFailureReason, CreateKeyRequest, CreateSandboxRequest, CreatedKey, CredentialField, CredentialFields, CreditCheckout, CreditPurchaseRequest, DetachedExec, DetachedExecRequest, EGRESS_MODES, EgressMode, EgressPolicy, Estimate, EstimateList, EstimateRequest, ExecEvent, ExecRequest, ExecResult, FileEntry, FileEntryType, FileList, ForbiddenError, GPU_TYPES, Gpu, GpuType, Health, IncidentImpact, InvalidRequestError, Key, KeyKind, KeyKind_1, KeyList, NoProviderAvailableError, NotFoundError, Offer, PROVIDERS, PROVIDER_1S, Plan, PortPreview, ProInterval, ProPrice, Provider, ProviderBoard, ProviderBoardEntry, ProviderCatalog, ProviderCatalogEntry, ProviderCredential, ProviderCredentialList, ProviderError, ProviderFeatures, ProviderPreferences, ProviderSecurity, ProviderSort, ProviderStatus, Provider_1, REGIONS, Region,
|
|
1
|
+
import { $ as GpuType, $t as ThemedBrandImage, A as CreatedKey, At as ProviderSecurity, B as EgressPolicy, Bt as SandboxEndReason, C as CiJobStatus, Ct as ProviderCatalog, D as CreateFailureReason, Dt as ProviderError, E as CreateAttempt, Et as ProviderCredentialList, F as CreditTerms, Ft as Region, G as ExecRequest, Gt as Slug, H as EstimateList, Ht as SandboxStatus, I as DetachedExec, It as SLUGS, J as FileEntryType, Jt as SpendLimitPeriod, K as ExecResult, Kt as Snapshot, L as DetachedExecRequest, Lt as STANDARD_SIZES, M as CredentialFields, Mt as ProviderStatus, N as CreditCheckout, Nt as Provider_1, O as CreateKeyRequest, Ot as ProviderFeatures, P as CreditPurchaseRequest, Pt as REGIONS, Q as Gpu, Qt as StatsDay, R as EGRESS_MODES, Rt as Sandbox, S as CiJobList, St as ProviderBoardEntry, T as ConflictError, Tt as ProviderCredential, U as EstimateRequest, Ut as SecurityList, V as Estimate, Vt as SandboxList, W as ExecEvent, Wt as SecurityText, X as ForbiddenError, Xt as StandardSize, Y as FileList, Yt as SpendLimitReachedError, Z as GPU_TYPES, Zt as Stats, _ as CatalogText, _t as Pricing, a as ApiError, an as UsagePeriod, at as KeyKind_1, b as CiJob, bt as Provider, c as BrandImage, cn as VendorIncident, ct as LiveSandboxes, d as CatalogBrandTerms, dt as NotFoundError, en as UnauthorizedError, et as Health, f as CatalogFlag, ft as Offer, g as CatalogMeasurement, gt as PortPreview, h as CatalogList, ht as Plan, i as ActivityList, in as UsageDay, it as KeyKind, j as CredentialField, jt as ProviderSort, k as CreateSandboxRequest, kt as ProviderPreferences, l as CI_JOB_CONCLUSIONS, ln as VendorIncidentRead, lt as LiveUsage, m as CatalogLimit, mt as PROVIDER_1S, n as ActivityAction, nn as UpdateKeyRequest, nt as InvalidRequestError, o as Badge, on as UsageTotal, ot as KeyList, p as CatalogGpus, pt as PROVIDERS, q as FileEntry, qt as SpendLimit, r as ActivityEvent, rn as Usage, rt as Key, s as Billing, sn as UsageTotals, st as LiveSandboxStatus, t as ACTIVITY_ACTIONS, tn as UnsupportedError, tt as IncidentImpact, u as CatalogBenchmarkTerms, ut as NoProviderAvailableError, v as CiInstallation, vt as ProInterval, w as ConcurrencyLimitReachedError, wt as ProviderCatalogEntry, x as CiJobConclusion, xt as ProviderBoard, y as CiInstallationList, yt as ProPrice, z as EgressMode, zt as SandboxCost } from "./types-ZqbGCXKy.mjs";
|
|
2
|
+
export { ACTIVITY_ACTIONS, ActivityAction, ActivityEvent, ActivityList, ApiError, Badge, Billing, BrandImage, CI_JOB_CONCLUSIONS, CatalogBenchmarkTerms, CatalogBrandTerms, CatalogFlag, CatalogGpus, CatalogLimit, CatalogList, CatalogMeasurement, CatalogText, CiInstallation, CiInstallationList, CiJob, CiJobConclusion, CiJobList, CiJobStatus, ConcurrencyLimitReachedError, ConflictError, CreateAttempt, CreateFailureReason, CreateKeyRequest, CreateSandboxRequest, CreatedKey, CredentialField, CredentialFields, CreditCheckout, CreditPurchaseRequest, CreditTerms, DetachedExec, DetachedExecRequest, EGRESS_MODES, EgressMode, EgressPolicy, Estimate, EstimateList, EstimateRequest, ExecEvent, ExecRequest, ExecResult, FileEntry, FileEntryType, FileList, ForbiddenError, GPU_TYPES, Gpu, GpuType, Health, IncidentImpact, InvalidRequestError, Key, KeyKind, KeyKind_1, KeyList, LiveSandboxStatus, LiveSandboxes, LiveUsage, NoProviderAvailableError, NotFoundError, Offer, PROVIDERS, PROVIDER_1S, Plan, PortPreview, Pricing, ProInterval, ProPrice, Provider, ProviderBoard, ProviderBoardEntry, ProviderCatalog, ProviderCatalogEntry, ProviderCredential, ProviderCredentialList, ProviderError, ProviderFeatures, ProviderPreferences, ProviderSecurity, ProviderSort, ProviderStatus, Provider_1, REGIONS, Region, SLUGS, STANDARD_SIZES, Sandbox, SandboxCost, SandboxEndReason, SandboxList, SandboxStatus, SecurityList, SecurityText, Slug, Snapshot, SpendLimit, SpendLimitPeriod, SpendLimitReachedError, StandardSize, Stats, StatsDay, ThemedBrandImage, UnauthorizedError, UnsupportedError, UpdateKeyRequest, Usage, UsageDay, UsagePeriod, UsageTotal, UsageTotals, VendorIncident, VendorIncidentRead };
|
package/dist/types.mjs
CHANGED
|
@@ -8,6 +8,15 @@ const ACTIVITY_ACTIONS = [
|
|
|
8
8
|
"sandbox.resume",
|
|
9
9
|
"sandbox.snapshot"
|
|
10
10
|
];
|
|
11
|
+
const CI_JOB_CONCLUSIONS = [
|
|
12
|
+
"action_required",
|
|
13
|
+
"cancelled",
|
|
14
|
+
"failure",
|
|
15
|
+
"neutral",
|
|
16
|
+
"skipped",
|
|
17
|
+
"success",
|
|
18
|
+
"timed_out"
|
|
19
|
+
];
|
|
11
20
|
const EGRESS_MODES = [
|
|
12
21
|
"allow_all",
|
|
13
22
|
"allowlist",
|
|
@@ -40,23 +49,14 @@ const REGIONS = [
|
|
|
40
49
|
"eu",
|
|
41
50
|
"us"
|
|
42
51
|
];
|
|
43
|
-
const
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"2x4
|
|
50
|
-
"
|
|
51
|
-
"2x4:most-reliable",
|
|
52
|
-
"4x8",
|
|
53
|
-
"4x8:cheapest",
|
|
54
|
-
"4x8:fastest",
|
|
55
|
-
"4x8:most-reliable",
|
|
56
|
-
"8x16",
|
|
57
|
-
"8x16:cheapest",
|
|
58
|
-
"8x16:fastest",
|
|
59
|
-
"8x16:most-reliable"
|
|
52
|
+
const SLUGS = [
|
|
53
|
+
"sandcovery/2x4",
|
|
54
|
+
"sandcovery/2x4:cheapest",
|
|
55
|
+
"sandcovery/nx16:cheapest",
|
|
56
|
+
"sandcovery/2xn:fastest",
|
|
57
|
+
"sandcovery/nxn:most-reliable",
|
|
58
|
+
"boat/2x4",
|
|
59
|
+
"e2b/2x0.5"
|
|
60
60
|
];
|
|
61
61
|
const STANDARD_SIZES = [
|
|
62
62
|
"1x2",
|
|
@@ -64,4 +64,4 @@ const STANDARD_SIZES = [
|
|
|
64
64
|
"4x8",
|
|
65
65
|
"8x16"
|
|
66
66
|
];
|
|
67
|
-
export { ACTIVITY_ACTIONS, EGRESS_MODES, GPU_TYPES, PROVIDERS, PROVIDER_1S, REGIONS,
|
|
67
|
+
export { ACTIVITY_ACTIONS, CI_JOB_CONCLUSIONS, EGRESS_MODES, GPU_TYPES, PROVIDERS, PROVIDER_1S, REGIONS, SLUGS, STANDARD_SIZES };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sandcovery",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "TypeScript client for the Sandcovery API: one API and one key for ephemeral sandboxes across providers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"daytona",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"directory": "packages/sdk-node"
|
|
18
18
|
},
|
|
19
19
|
"bin": {
|
|
20
|
-
"sandcovery": "dist/cli/index.mjs"
|
|
20
|
+
"sandcovery": "dist/cli/index.mjs",
|
|
21
|
+
"sandcovery-docker": "dist/cli/sandcovery-docker.mjs"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
24
|
"dist"
|
|
@@ -33,24 +34,27 @@
|
|
|
33
34
|
"default": "./dist/types.mjs"
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "vp pack src/index.ts src/types.ts src/cli/index.ts --dts",
|
|
38
|
-
"prepack": "pnpm run build --env.SANDCOVERY_RELEASE true",
|
|
39
|
-
"typecheck": "tsc"
|
|
40
|
-
},
|
|
41
37
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"@coveries/
|
|
44
|
-
"@coveries/
|
|
45
|
-
"@coveries/
|
|
38
|
+
"@balena/dockerignore": "^1.0.2",
|
|
39
|
+
"@coveries/cli-core": "0.0.0",
|
|
40
|
+
"@coveries/format": "0.0.0",
|
|
41
|
+
"@coveries/sandcovery-contract": "0.0.0",
|
|
42
|
+
"@coveries/sandcovery-runner": "0.0.0",
|
|
43
|
+
"@coveries/tsconfig": "0.0.0",
|
|
46
44
|
"@types/node": "^26.6.6",
|
|
47
45
|
"effect": "^4.1.1",
|
|
48
46
|
"es-toolkit": "^1.53.1",
|
|
47
|
+
"tar": "^7.5.22",
|
|
49
48
|
"typescript": "^7.0.2",
|
|
50
49
|
"uuid": "^14.0.3",
|
|
51
|
-
"vite-plus": "
|
|
50
|
+
"vite-plus": "1.4.0",
|
|
51
|
+
"yaml": "^2.9.1"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=24"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "vp pack src/index.ts src/types.ts src/cli/index.ts src/cli/sandcovery-docker.ts --dts",
|
|
58
|
+
"typecheck": "tsc"
|
|
55
59
|
}
|
|
56
|
-
}
|
|
60
|
+
}
|