sandcovery 0.4.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 +6 -2
- package/dist/{Schema-CFI3ZMu8.mjs → Schema-fLas6rbA.mjs} +7960 -957
- package/dist/cli/index.mjs +2 -1688
- 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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{origin-BTx2gX8x.mjs → origin-5maEGWRg.mjs} +9 -2
- package/dist/{spec-B4c-Ug3B.mjs → spec-cGDeWJ3v.mjs} +372 -17
- package/dist/{src-DPDVOBkr.mjs → src-zWk1RjrB.mjs} +4 -3
- package/dist/start-B8ruSPVb.mjs +1992 -0
- package/dist/{telemetry-delivery-Yd6CeynR.mjs → telemetry-delivery-8t5RXWli.mjs} +1 -1
- package/dist/{types-DvoIdTvQ.d.mts → types-ZqbGCXKy.d.mts} +2 -0
- package/dist/types.d.mts +1 -1
- package/package.json +16 -14
- package/dist/handlers-BS1KuMqq.mjs +0 -6546
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
@@ -24,6 +24,7 @@ interface Badge {
|
|
|
24
24
|
}
|
|
25
25
|
interface Billing {
|
|
26
26
|
readonly credit_balance_micro_usd: number;
|
|
27
|
+
readonly credits_on_sale: boolean;
|
|
27
28
|
readonly plan: Plan;
|
|
28
29
|
readonly pro_price: ProPrice | null;
|
|
29
30
|
}
|
|
@@ -473,6 +474,7 @@ interface ProviderCredential {
|
|
|
473
474
|
readonly created_at: string;
|
|
474
475
|
readonly hint: string;
|
|
475
476
|
readonly id: string;
|
|
477
|
+
readonly paused: boolean;
|
|
476
478
|
readonly provider: Provider;
|
|
477
479
|
readonly updated_at: string;
|
|
478
480
|
}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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
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/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,26 +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/sandcovery-
|
|
46
|
-
"@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",
|
|
47
44
|
"@types/node": "^26.6.6",
|
|
48
45
|
"effect": "^4.1.1",
|
|
49
46
|
"es-toolkit": "^1.53.1",
|
|
50
47
|
"tar": "^7.5.22",
|
|
51
48
|
"typescript": "^7.0.2",
|
|
52
49
|
"uuid": "^14.0.3",
|
|
53
|
-
"vite-plus": "
|
|
50
|
+
"vite-plus": "1.4.0",
|
|
51
|
+
"yaml": "^2.9.1"
|
|
54
52
|
},
|
|
55
53
|
"engines": {
|
|
56
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"
|
|
57
59
|
}
|
|
58
|
-
}
|
|
60
|
+
}
|