sandcovery 0.9.0 → 0.11.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 +6 -4
- package/dist/cli/index.mjs +80 -44
- package/dist/cli/sandcovery-docker.mjs +43 -43
- package/dist/cli/sandcovery-kubectl.mjs +3 -3
- package/dist/cli/sandcovery-t3.mjs +71 -14
- package/dist/index.d.mts +382 -23
- package/dist/index.mjs +1 -1
- package/dist/{kubectl-Ck04daor.mjs → kubectl-BFu8MVmy.mjs} +2 -2
- package/dist/{saved-sandboxes-BMjkAVGx.mjs → saved-sandboxes-aG7Z7wiX.mjs} +1 -1
- package/dist/{src-DjOLw-ft.mjs → src-Cba__VPt.mjs} +3174 -2849
- package/dist/{sync-rEFjHNC4.mjs → sync-CZQCyiFK.mjs} +2 -2
- package/dist/{types-DotsDqXt.d.mts → types-DLH1pZHc.d.mts} +14 -2
- package/dist/types.d.mts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { f as writePrivateFile, p as v7, u as stopSignalOf } from "./saved-sandboxes-
|
|
1
|
+
import { $r as runPromiseExit, At as Record, Ba as isResult, Bo as isNotNullish, Co as toArray, Jo as ownEnumerableKeys, Kt as decodeUnknownOption, La as fail, Nt as String$1, Pt as Struct, So as some, Ua as succeed, Va as isSuccess, W as runForEach, Wa as try_, Yt as fromJsonString, _o as liftThrowable, ao as flatMap, bo as none, co as fromNullishOr, dt as ArraySchema, ho as isSome, is as pipeArguments, j as fromAsyncIterable, lo as fromUndefinedOr, lt as updateAndGet, mo as isNone, no as exists, ot as make, ro as filter, ts as identity, ui as tryPromise, uo as getOrElse, vo as map, yo as match, yt as Literal, za as isFailure } from "./src-Cba__VPt.mjs";
|
|
2
|
+
import { f as writePrivateFile, p as v7, u as stopSignalOf } from "./saved-sandboxes-aG7Z7wiX.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import Cs from "node:stream";
|
|
@@ -476,8 +476,12 @@ interface Gpu {
|
|
|
476
476
|
declare const GPU_TYPES: readonly ['b200', 'b300', 'h100', 'h200', 'mi355x', 'rtx-4090', 'rtx-5090', 'rtx-pro-6000'];
|
|
477
477
|
type GpuType = (typeof GPU_TYPES)[number] | (string & Record<never, never>);
|
|
478
478
|
interface Health {
|
|
479
|
+
readonly checks: HealthChecks;
|
|
479
480
|
readonly ok: true;
|
|
480
481
|
}
|
|
482
|
+
interface HealthChecks {
|
|
483
|
+
readonly postgres: boolean;
|
|
484
|
+
}
|
|
481
485
|
type IncidentImpact = 'none' | 'minor' | 'major' | 'critical' | 'maintenance';
|
|
482
486
|
interface InvalidRequestError {
|
|
483
487
|
readonly error: 'invalid_request';
|
|
@@ -677,6 +681,7 @@ interface ProviderBoardEntry {
|
|
|
677
681
|
readonly hourly_micro_usd: number;
|
|
678
682
|
readonly type: GpuType;
|
|
679
683
|
}[];
|
|
684
|
+
readonly home_directory: string;
|
|
680
685
|
readonly home_url: string;
|
|
681
686
|
readonly incidents: VendorIncidentRead | null;
|
|
682
687
|
readonly live_checks: readonly LiveCheckResult[];
|
|
@@ -852,6 +857,7 @@ interface ProviderFeatures {
|
|
|
852
857
|
readonly custom_image: boolean;
|
|
853
858
|
readonly detached_exec: boolean;
|
|
854
859
|
readonly egress_modes: readonly EgressMode[];
|
|
860
|
+
readonly files: boolean;
|
|
855
861
|
readonly gpu_types: readonly GpuType[];
|
|
856
862
|
readonly idle_timeout: boolean;
|
|
857
863
|
readonly max_disk_mib: number | null;
|
|
@@ -1170,6 +1176,12 @@ interface UnauthorizedError {
|
|
|
1170
1176
|
readonly error: 'unauthorized';
|
|
1171
1177
|
readonly message: string;
|
|
1172
1178
|
}
|
|
1179
|
+
interface UnhealthyError {
|
|
1180
|
+
readonly checks: HealthChecks;
|
|
1181
|
+
readonly error: 'unhealthy';
|
|
1182
|
+
readonly message: string;
|
|
1183
|
+
readonly ok: false;
|
|
1184
|
+
}
|
|
1173
1185
|
interface UnsupportedError {
|
|
1174
1186
|
readonly error: 'unsupported';
|
|
1175
1187
|
readonly message: string;
|
|
@@ -1260,5 +1272,5 @@ interface XAccountLink {
|
|
|
1260
1272
|
interface XAccountStatus {
|
|
1261
1273
|
readonly linked: XAccount | null;
|
|
1262
1274
|
}
|
|
1263
|
-
type ApiError = BodyTooLargeError | ConcurrencyLimitReachedError | ConflictError | CredentialRejectedError | ForbiddenError | InvalidRequestError | NoProviderAvailableError | NotFoundError | ProviderError | RateLimitedError | RetryLaterError | SpendLimitReachedError | UnauthorizedError | UnsupportedError;
|
|
1264
|
-
export { CreateKeyRequest as $,
|
|
1275
|
+
type ApiError = BodyTooLargeError | ConcurrencyLimitReachedError | ConflictError | CredentialRejectedError | ForbiddenError | InvalidRequestError | NoProviderAvailableError | NotFoundError | ProviderError | RateLimitedError | RetryLaterError | SpendLimitReachedError | UnauthorizedError | UnhealthyError | UnsupportedError;
|
|
1276
|
+
export { CreateKeyRequest as $, SpendLimit as $n, PlanBiller as $t, CatalogBrandTerms as A, ProviderSecurity as An, Health as At, CiJobConclusion as B, STANDARD_SIZES as Bn, LiveUsage as Bt, BenchmarkResult as C, ProviderCatalogEntryRates as Cn, UsageTotals as Cr, FileEntry as Ct, BrandImage as D, ProviderError as Dn, XAccountLink as Dr, GPU_TYPES as Dt, BodyTooLargeError as E, ProviderCredentialList as En, XAccount as Er, ForbiddenError as Et, CatalogOperatingSystems as F, RateCardBasis as Fn, KeyList as Ft, CliSignInStatus as G, SecurityList as Gn, OPERATING_SYSTEMS as Gt, CiRunnerFailure as H, SandboxCost as Hn, MonthlyCostList as Ht, CatalogText as I, RateLimitedError as In, LiveCheckOutcome as It, ConcurrencyLimitReachedError as J, SharedUsage as Jn, OperatingSystemPick as Jt, CliSignInToken as K, SecurityText as Kn, Offer as Kt, CiInstallation as L, Region as Ln, LiveCheckResult as Lt, CatalogGpus as M, ProviderStatus as Mn, IncidentImpact as Mt, CatalogLimit as N, Provider_1 as Nn, InvalidRequestError as Nt, CI_JOB_CONCLUSIONS as O, ProviderFeatures as On, XAccountStatus as Or, Gpu as Ot, CatalogList as P, REGIONS as Pn, Key as Pt, CreateFailureReason as Q, SnapshotList as Qn, Plan as Qt, CiInstallationList as R, RetryLaterError as Rn, LiveSandboxStatus as Rt, Badge as S, ProviderCatalogEntryPricesItem as Sn, UsageTotal as Sr, ExecResult as St, BillingPortalSession as T, ProviderCredential as Tn, VendorIncidentRead as Tr, FileList as Tt, CliSignIn as U, SandboxList as Un, NoProviderAvailableError as Ut, CiJobList as V, Sandbox as Vn, MonthlyCost as Vt, CliSignInStart as W, SandboxStatus as Wn, NotFoundError as Wt, CreateAgentRequest as X, Slug as Xn, PROVIDER_1S as Xt, ConflictError as Y, SharedUsageFigure as Yn, PROVIDERS as Yt, CreateAttempt as Z, Snapshot as Zn, PaidPlan as Zt, AgentWebLink as _, ProviderCatalogEntryCreateLatencyMs as _n, UsageDay as _r, Estimate as _t, ActivityList as a, Process as an, StatsDay as ar, CredentialChoicesRequest as at, AutoTopUpChange as b, ProviderCatalogEntryOperatingSystems as bn, UsageShareFigure as br, ExecEvent as bt, AgentLogs as c, ProcessTerminal as cn, SubscriptionCheckoutRequest as cr, CredentialRejectedError as ct, AgentPresetList as d, ProviderBoard as dn, UnhealthyError as dr, CreditTerms as dt, PortPreview as en, SpendLimitPeriod as er, CreateSandboxRequest as et, AgentRouting as f, ProviderBoardEntry as fn, UnsupportedError as fr, DetachedExec as ft, AgentWebApp as g, ProviderCatalogEntryCapabilities as gn, Usage as gr, EgressPolicy as gt, AgentStatus as h, ProviderCatalogEntryBrand as hn, UsableKeyList as hr, EgressMode as ht, ActivityEvent as i, ProblemReportRequest as in, Stats as ir, CredentialChoices as it, CatalogFlag as j, ProviderSort as jn, HealthChecks as jt, CatalogBenchmarkTerms as k, ProviderPreferences as kn, GpuType as kt, AgentNativeSetup as l, Provider as ln, ThemeBrandImage as lr, CreditCheckout as lt, AgentSshRequest as m, ProviderCatalogEntry as mn, UsableKey as mr, EGRESS_MODES as mt, AccountLimit as n, ProInterval as nn, StandardSize as nr, CreatedKey as nt, Agent as o, ProcessRequest as on, StatsShare as or, CredentialField as ot, AgentSessionRequest as p, ProviderCatalog as pn, UpdateKeyRequest as pr, DetachedExecRequest as pt, CollectCliSignInRequest as q, SharedStats as qn, OperatingSystem as qt, ActivityAction as r, ProPrice as rn, StartCliSignInRequest as rr, CredentialChoice as rt, AgentList as s, ProcessStatus as sn, SubscriptionCheckout as sr, CredentialFields as st, ACTIVITY_ACTIONS as t, Pricing as tn, SpendLimitReachedError as tr, CreateUsageShareRequest as tt, AgentPreset as u, ProviderBenchmarkRun as un, UnauthorizedError as ur, CreditPurchaseRequest as ut, ApiError as v, ProviderCatalogEntryLimits as vn, UsagePeriod as vr, EstimateList as vt, Billing as w, ProviderCatalogEntryUptime as wn, VendorIncident as wr, FileEntryType as wt, AutoTopUpRequest as x, ProviderCatalogEntryPolicy as xn, UsageShareList as xr, ExecRequest as xt, AutoTopUp as y, ProviderCatalogEntryLinks as yn, UsageShare as yr, EstimateRequest as yt, CiJob as z, SLUGS as zn, LiveSandboxes as zt };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as CreateKeyRequest, $n as
|
|
2
|
-
export { ACTIVITY_ACTIONS, AccountLimit, ActivityAction, ActivityEvent, ActivityList, Agent, AgentList, AgentLogs, AgentNativeSetup, AgentPreset, AgentPresetList, AgentRouting, AgentSessionRequest, AgentSshRequest, AgentStatus, AgentWebApp, AgentWebLink, ApiError, AutoTopUp, AutoTopUpChange, AutoTopUpRequest, Badge, BenchmarkResult, Billing, BillingPortalSession, BodyTooLargeError, BrandImage, CI_JOB_CONCLUSIONS, CatalogBenchmarkTerms, CatalogBrandTerms, CatalogFlag, CatalogGpus, CatalogLimit, CatalogList, CatalogOperatingSystems, CatalogText, CiInstallation, CiInstallationList, CiJob, CiJobConclusion, CiJobList, CiRunnerFailure, CliSignIn, CliSignInStart, CliSignInStatus, CliSignInToken, CollectCliSignInRequest, ConcurrencyLimitReachedError, ConflictError, CreateAgentRequest, CreateAttempt, CreateFailureReason, CreateKeyRequest, CreateSandboxRequest, CreateUsageShareRequest, CreatedKey, CredentialChoice, CredentialChoices, CredentialChoicesRequest, CredentialField, CredentialFields, CredentialRejectedError, 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, KeyList, LiveCheckOutcome, LiveCheckResult, LiveSandboxStatus, LiveSandboxes, LiveUsage, MonthlyCost, MonthlyCostList, NoProviderAvailableError, NotFoundError, OPERATING_SYSTEMS, Offer, OperatingSystem, OperatingSystemPick, PROVIDERS, PROVIDER_1S, PaidPlan, Plan, PlanBiller, PortPreview, Pricing, ProInterval, ProPrice, ProblemReportRequest, Process, ProcessRequest, ProcessStatus, ProcessTerminal, Provider, ProviderBenchmarkRun, ProviderBoard, ProviderBoardEntry, ProviderCatalog, ProviderCatalogEntry, ProviderCatalogEntryBrand, ProviderCatalogEntryCapabilities, ProviderCatalogEntryCreateLatencyMs, ProviderCatalogEntryLimits, ProviderCatalogEntryLinks, ProviderCatalogEntryOperatingSystems, ProviderCatalogEntryPolicy, ProviderCatalogEntryPricesItem, ProviderCatalogEntryRates, ProviderCatalogEntryUptime, ProviderCredential, ProviderCredentialList, ProviderError, ProviderFeatures, ProviderPreferences, ProviderSecurity, ProviderSort, ProviderStatus, Provider_1, REGIONS, RateCardBasis, RateLimitedError, Region, RetryLaterError, SLUGS, STANDARD_SIZES, Sandbox, SandboxCost, SandboxList, SandboxStatus, SecurityList, SecurityText, SharedStats, SharedUsage, SharedUsageFigure, Slug, Snapshot, SnapshotList, SpendLimit, SpendLimitPeriod, SpendLimitReachedError, StandardSize, StartCliSignInRequest, Stats, StatsDay, StatsShare, SubscriptionCheckout, SubscriptionCheckoutRequest, ThemeBrandImage, UnauthorizedError, UnsupportedError, UpdateKeyRequest, UsableKey, UsableKeyList, Usage, UsageDay, UsagePeriod, UsageShare, UsageShareFigure, UsageShareList, UsageTotal, UsageTotals, VendorIncident, VendorIncidentRead, XAccount, XAccountLink, XAccountStatus };
|
|
1
|
+
import { $ as CreateKeyRequest, $n as SpendLimit, $t as PlanBiller, A as CatalogBrandTerms, An as ProviderSecurity, At as Health, B as CiJobConclusion, Bn as STANDARD_SIZES, Bt as LiveUsage, C as BenchmarkResult, Cn as ProviderCatalogEntryRates, Cr as UsageTotals, Ct as FileEntry, D as BrandImage, Dn as ProviderError, Dr as XAccountLink, Dt as GPU_TYPES, E as BodyTooLargeError, En as ProviderCredentialList, Er as XAccount, Et as ForbiddenError, F as CatalogOperatingSystems, Fn as RateCardBasis, Ft as KeyList, G as CliSignInStatus, Gn as SecurityList, Gt as OPERATING_SYSTEMS, H as CiRunnerFailure, Hn as SandboxCost, Ht as MonthlyCostList, I as CatalogText, In as RateLimitedError, It as LiveCheckOutcome, J as ConcurrencyLimitReachedError, Jn as SharedUsage, Jt as OperatingSystemPick, K as CliSignInToken, Kn as SecurityText, Kt as Offer, L as CiInstallation, Ln as Region, Lt as LiveCheckResult, M as CatalogGpus, Mn as ProviderStatus, Mt as IncidentImpact, N as CatalogLimit, Nn as Provider_1, Nt as InvalidRequestError, O as CI_JOB_CONCLUSIONS, On as ProviderFeatures, Or as XAccountStatus, Ot as Gpu, P as CatalogList, Pn as REGIONS, Pt as Key, Q as CreateFailureReason, Qn as SnapshotList, Qt as Plan, R as CiInstallationList, Rn as RetryLaterError, Rt as LiveSandboxStatus, S as Badge, Sn as ProviderCatalogEntryPricesItem, Sr as UsageTotal, St as ExecResult, T as BillingPortalSession, Tn as ProviderCredential, Tr as VendorIncidentRead, Tt as FileList, U as CliSignIn, Un as SandboxList, Ut as NoProviderAvailableError, V as CiJobList, Vn as Sandbox, Vt as MonthlyCost, W as CliSignInStart, Wn as SandboxStatus, Wt as NotFoundError, X as CreateAgentRequest, Xn as Slug, Xt as PROVIDER_1S, Y as ConflictError, Yn as SharedUsageFigure, Yt as PROVIDERS, Z as CreateAttempt, Zn as Snapshot, Zt as PaidPlan, _ as AgentWebLink, _n as ProviderCatalogEntryCreateLatencyMs, _r as UsageDay, _t as Estimate, a as ActivityList, an as Process, ar as StatsDay, at as CredentialChoicesRequest, b as AutoTopUpChange, bn as ProviderCatalogEntryOperatingSystems, br as UsageShareFigure, bt as ExecEvent, c as AgentLogs, cn as ProcessTerminal, cr as SubscriptionCheckoutRequest, ct as CredentialRejectedError, d as AgentPresetList, dn as ProviderBoard, dr as UnhealthyError, dt as CreditTerms, en as PortPreview, er as SpendLimitPeriod, et as CreateSandboxRequest, f as AgentRouting, fn as ProviderBoardEntry, fr as UnsupportedError, ft as DetachedExec, g as AgentWebApp, gn as ProviderCatalogEntryCapabilities, gr as Usage, gt as EgressPolicy, h as AgentStatus, hn as ProviderCatalogEntryBrand, hr as UsableKeyList, ht as EgressMode, i as ActivityEvent, in as ProblemReportRequest, ir as Stats, it as CredentialChoices, j as CatalogFlag, jn as ProviderSort, jt as HealthChecks, k as CatalogBenchmarkTerms, kn as ProviderPreferences, kt as GpuType, l as AgentNativeSetup, ln as Provider, lr as ThemeBrandImage, lt as CreditCheckout, m as AgentSshRequest, mn as ProviderCatalogEntry, mr as UsableKey, mt as EGRESS_MODES, n as AccountLimit, nn as ProInterval, nr as StandardSize, nt as CreatedKey, o as Agent, on as ProcessRequest, or as StatsShare, ot as CredentialField, p as AgentSessionRequest, pn as ProviderCatalog, pr as UpdateKeyRequest, pt as DetachedExecRequest, q as CollectCliSignInRequest, qn as SharedStats, qt as OperatingSystem, r as ActivityAction, rn as ProPrice, rr as StartCliSignInRequest, rt as CredentialChoice, s as AgentList, sn as ProcessStatus, sr as SubscriptionCheckout, st as CredentialFields, t as ACTIVITY_ACTIONS, tn as Pricing, tr as SpendLimitReachedError, tt as CreateUsageShareRequest, u as AgentPreset, un as ProviderBenchmarkRun, ur as UnauthorizedError, ut as CreditPurchaseRequest, v as ApiError, vn as ProviderCatalogEntryLimits, vr as UsagePeriod, vt as EstimateList, w as Billing, wn as ProviderCatalogEntryUptime, wr as VendorIncident, wt as FileEntryType, x as AutoTopUpRequest, xn as ProviderCatalogEntryPolicy, xr as UsageShareList, xt as ExecRequest, y as AutoTopUp, yn as ProviderCatalogEntryLinks, yr as UsageShare, yt as EstimateRequest, z as CiJob, zn as SLUGS, zt as LiveSandboxes } from "./types-DLH1pZHc.mjs";
|
|
2
|
+
export { ACTIVITY_ACTIONS, AccountLimit, ActivityAction, ActivityEvent, ActivityList, Agent, AgentList, AgentLogs, AgentNativeSetup, AgentPreset, AgentPresetList, AgentRouting, AgentSessionRequest, AgentSshRequest, AgentStatus, AgentWebApp, AgentWebLink, ApiError, AutoTopUp, AutoTopUpChange, AutoTopUpRequest, Badge, BenchmarkResult, Billing, BillingPortalSession, BodyTooLargeError, BrandImage, CI_JOB_CONCLUSIONS, CatalogBenchmarkTerms, CatalogBrandTerms, CatalogFlag, CatalogGpus, CatalogLimit, CatalogList, CatalogOperatingSystems, CatalogText, CiInstallation, CiInstallationList, CiJob, CiJobConclusion, CiJobList, CiRunnerFailure, CliSignIn, CliSignInStart, CliSignInStatus, CliSignInToken, CollectCliSignInRequest, ConcurrencyLimitReachedError, ConflictError, CreateAgentRequest, CreateAttempt, CreateFailureReason, CreateKeyRequest, CreateSandboxRequest, CreateUsageShareRequest, CreatedKey, CredentialChoice, CredentialChoices, CredentialChoicesRequest, CredentialField, CredentialFields, CredentialRejectedError, CreditCheckout, CreditPurchaseRequest, CreditTerms, DetachedExec, DetachedExecRequest, EGRESS_MODES, EgressMode, EgressPolicy, Estimate, EstimateList, EstimateRequest, ExecEvent, ExecRequest, ExecResult, FileEntry, FileEntryType, FileList, ForbiddenError, GPU_TYPES, Gpu, GpuType, Health, HealthChecks, IncidentImpact, InvalidRequestError, Key, KeyList, LiveCheckOutcome, LiveCheckResult, LiveSandboxStatus, LiveSandboxes, LiveUsage, MonthlyCost, MonthlyCostList, NoProviderAvailableError, NotFoundError, OPERATING_SYSTEMS, Offer, OperatingSystem, OperatingSystemPick, PROVIDERS, PROVIDER_1S, PaidPlan, Plan, PlanBiller, PortPreview, Pricing, ProInterval, ProPrice, ProblemReportRequest, Process, ProcessRequest, ProcessStatus, ProcessTerminal, Provider, ProviderBenchmarkRun, ProviderBoard, ProviderBoardEntry, ProviderCatalog, ProviderCatalogEntry, ProviderCatalogEntryBrand, ProviderCatalogEntryCapabilities, ProviderCatalogEntryCreateLatencyMs, ProviderCatalogEntryLimits, ProviderCatalogEntryLinks, ProviderCatalogEntryOperatingSystems, ProviderCatalogEntryPolicy, ProviderCatalogEntryPricesItem, ProviderCatalogEntryRates, ProviderCatalogEntryUptime, ProviderCredential, ProviderCredentialList, ProviderError, ProviderFeatures, ProviderPreferences, ProviderSecurity, ProviderSort, ProviderStatus, Provider_1, REGIONS, RateCardBasis, RateLimitedError, Region, RetryLaterError, SLUGS, STANDARD_SIZES, Sandbox, SandboxCost, SandboxList, SandboxStatus, SecurityList, SecurityText, SharedStats, SharedUsage, SharedUsageFigure, Slug, Snapshot, SnapshotList, SpendLimit, SpendLimitPeriod, SpendLimitReachedError, StandardSize, StartCliSignInRequest, Stats, StatsDay, StatsShare, SubscriptionCheckout, SubscriptionCheckoutRequest, ThemeBrandImage, UnauthorizedError, UnhealthyError, UnsupportedError, UpdateKeyRequest, UsableKey, UsableKeyList, Usage, UsageDay, UsagePeriod, UsageShare, UsageShareFigure, UsageShareList, UsageTotal, UsageTotals, VendorIncident, VendorIncidentRead, XAccount, XAccountLink, XAccountStatus };
|