sandcovery 0.10.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 CHANGED
@@ -110,7 +110,7 @@ await admin.credentials.set('e2b', { api_key: process.env.E2B_API_KEY ?? '' })
110
110
 
111
111
  On Pro or the Enterprise plan, an organization holds as many credentials per provider as it needs: `credentials.add(provider, fields)` adds another, a create tries a provider's credentials in the order they were added, and `credentials.deleteOne(provider, id)` deletes one. A Free organization routes one of its own keys per provider, so adding a second key of the same provider receives 403. When an organization leaves Pro or the Enterprise plan, it keeps every key, routes the oldest key of each provider, and `paused` is `true` on the others until it is on Pro or the Enterprise plan again.
112
112
 
113
- The fields each provider takes are its `credential_fields` on `sandcovery.providers.get(provider)`. `sandcovery.providers.catalog()` lists every provider on the [provider board](https://www.sandcovery.com/providers), where `routed` is `false` for a provider that is coming soon. `credentials.offer()` reads the free vCPUh your keys have earned, `credentials.countXPost()` finds your newest post on X of the last day that tags @Sandcovery and counts it as one key, reading X at most 10 times a UTC day and 30 seconds apart for an organization and otherwise answering `retry_later` with `retry_at`.
113
+ The fields each provider takes are its `credential_fields` on `sandcovery.providers.get(provider)`. `sandcovery.providers.catalog()` lists every provider on the [provider board](https://www.sandcovery.com/providers), where `routed` is `false` for a provider that is coming soon. `credentials.offer()` reads the free vCPUh your keys have earned, `credentials.countXPost()` finds your newest post on X of the last day that tags @Sandcovery and counts it as one key, counting at most 10 reads of X a UTC day for an organization, 30 seconds apart, and otherwise answering `retry_later` with `retry_at`. `credentials.countXPost()` also answers `retry_later`, without counting the read, when X answers 429 or a 5xx status, times out, or drops the connection.
114
114
 
115
115
  `billing.get()` reads the plan, the credit balance, whether credits are on sale, and auto top-up. `billing.startSubscription({ plan })` answers the Stripe Checkout page that starts a Pro or Enterprise subscription, and `billing.openBillingPortal()` answers the Stripe billing portal page where an admin manages the subscription, payment method, and invoices. `billing.buyCredits({ amount_micro_usd })` answers the Stripe Checkout page that takes a credit payment. `billing.setAutoTopUp({ amount_micro_usd, threshold_micro_usd })` sets the amount Sandcovery charges the saved card each time the credit balance falls below the threshold or a create needs credit that one top-up covers. While auto top-up is on, the change applies at once. While it is off, the answer carries the Stripe Checkout page that saves a card and then turns auto top-up on with these settings. `billing.stopAutoTopUp()` turns auto top-up off. Auto top-up charges the card its own Checkout page saved, not the card the billing portal sets, and removing that card in the portal turns auto top-up off at its next charge. To move it to another card, call `billing.stopAutoTopUp()` and then `billing.setAutoTopUp(...)` again. `billing.openBillingPortal()` throws with the error code `not_found` until the organization has a Stripe customer, which each of these Checkout pages makes.
116
116
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { $ as toTransform, $a as exists, $i as reasonAnnotations, $n as andThen, $o as identity, $r as scoped, $t as optionalKey, A as fail$2, Aa as get$4, Ai as provide, An as setAll, Ao as BaseProto, Ar as interrupt$1, At as SchemaError, B as mkUint8Array, Ba as succeed$1, Bi as succeed$3, Bn as make$20, Bo as isNullish, Br as onError, Bt as declare, Ca as map$8, Ci as provideMerge, Cn as empty$3, Co as String$6, Cr as forever, D as drainFork, Da as reduce, Di as addFinalizerExit, Dn as merge$2, Do as withFiber$1, Dr as gen, E as decodeText, Ea as of, Ei as addFinalizer, En as isRedactedName, Eo as PipeInspectableProto, Er as fromResult, F as interruptWhen, Fa as getOrThrow, Fi as isDoneUnsafe, Fn as fromSetCookie, Fo as hasProperty, Fr as mapError, Ft as Trim, G as splitLines, Ga as empty$6, Gi as fail$5, Gn as take, Go as assignProperty, Gr as provideContext, Gt as decodeUnknownSync, H as runCollect, Ha as Reference, Hi as Done, Hn as offerUnsafe, Ho as isString, Hr as onInterrupt, Ht as decodeTo$1, I as isStream, Ia as isFailure$1, Ii as makeUnsafe, In as bytes, Io as isFunction, Ir as match$2, It as TrueLiterals, J as toReadableStreamEffect, Ja as getUnsafe, Ji as hasInterruptsOnly, Jn as join$2, Jo as constTrue, Jr as runFork, Jt as is, K as suspend$1, Ka as get$3, Ki as fromReasons, Kn as getCurrent, Ko as ownEnumerableKeys, Kr as provideService, Kt as encodeSync, L as merge$1, Li as fail$3, Ln as fromInputUnsafe$1, Lo as isNotNull, Lr as matchCauseEffect, Lt as URL$2, M as fromChannel$1, Ma as map$9, Mi as doneUnsafe, Mn as make$18, Mo as NodeInspectSymbol, Mr as logError, Mt as Struct, N as fromPull, Na as all$2, Ni as fail$4, Nn as value, No as format, Nr as map$5, Nt as TaggedError$1, O as empty$4, Oa as sort, Oi as close, On as remove$1, Oo as getStackTraceLimit, Or as ignore, Ot as Record, P as fromReadableStream, Pa as fail$1, Pi as isDone, Pn as stringOrRedacted, Po as redact, Pr as mapEager, Pt as TaggedUnion, Q as mapDone, Qa as contains, Qi as makeFailReason, Qn as all$1, Qo as flow, Qr as scope, Qt as optional$3, R as mkArrayBuffer, Ra as isSuccess$1, Ri as isFailure, Rn as endUnsafe, Rr as matchEffect, Rt as Union, Sa as isReadonlyArrayNonEmpty, Si as provide$1, Sn as CurrentRedactedNames$1, Sr as forEach$1, St as NullOr, T as catchReason$1, Ti as Scope, Tn as fromRecordUnsafe, To as Prototype, Tr as forkScoped, Tt as OptionFromOptionalKey, U as runDrain, Ua as Service, Ui as UnknownError, Un as poll, Uo as isTagged, Ur as orDie, Ut as decodeUnknownEffect$1, V as run$3, Va as try_$1, Vi as void_, Vn as offer, Vo as isObjectKeyword, Vr as onExit, Vt as decodeEffect, Wa as add, Wi as done, Wn as sliding, Wo as isUndefined, Wr as provide$2, Wt as decodeUnknownOption, X as unwrap$4, Xa as merge, Xi as isFailReason, Xn as acquireRelease, Xo as constant, Xt as make$17, Y as transduce, Ya as make$21, Yi as isDieReason, Yn as runIn, Yo as constVoid, Yr as runForkWith, Yt as isNonEmpty, Z as fromTransform$1, Zi as makeDieReason, Zn as addFinalizer$1, Zo as dual, Zr as runSync, Zt as makeFilter, _ as isHttpMethod, _a as findFirstIndex, _i as catchDone, _n as redactUrl, _o as match, _r as failSync, _t as Finite, a as CliSignInStart, aa as MinimumLogLevel$1, ai as tap, an as decodeTo, ao as fromNullOr, ar as catchFilter, bi as effect, bn as fromBody, bo as some, br as fn, bt as Literals$2, ca as DisablePropagation, ci as try_, cn as unknown, co as getOrElse, cr as catchTag, da as taggedEnum, di as updateContext, dn as transformEffect, do as getOrUndefined$1, dr as context, dt as ArraySchema, ea as squash, ei as serviceOption, en as tag, eo as filter, er as as, es as memoize, et as unwrap$3, f as SANDCOVERY_ORIGIN, fa as fromInputUnsafe, fi as useSpan, fn as InvalidValue$1, fo as isNone, fr as contextWith, ft as Boolean$3, g as allShort, ga as findFirst, gi as zipWith, gn as fromInput, go as map$7, gr as failCause, gt as FalseLiterals, h as fromApi, ha as empty$5, hi as withParentSpan, hn as empty$2, ho as liftThrowable, hr as fail, ht as Error$2, i as SandcoveryApi, ia as sync$1, ii as sync, in as applyToSelfOrLastLinkEncoding, io as flatten, ir as catchEager, ja as getSomes, ji as _await, jn as isRedacted, jo as Class, jr as isEffect, jt as String$7, k as ensuring$1, ka as fromIterableWith, ki as makeUnsafe$1, kn as set, ko as setStackTraceLimit, kr as ignoreCause, kt as RedactedFromValue, la as Error$1, li as uninterruptible, ln as Transformation, lo as getOrNull, lr as catchTags, ma as toMillis, mi as withFiber, mn as CurrentRedactedNames, mo as liftPredicate, mr as ensuring, mt as Defect, n as call, na as ConsoleRef, ni as succeed$2, nn as toCodecStringTree, no as flatMap$2, nr as callback, ns as pipeArguments, o as CliSignInToken, oa as TracerEnabled$1, oi as tapCause, on as getIndexSignatureKeys, oo as fromNullishOr, or as catchIf, ot as make$19, pa as isFinite, pi as void_$1, pn as Pointer, po as isSome, pr as effectify, pt as BooleanLiterals, q as tapError, qa as getOrUndefined, qi as hasInterrupts, qn as interrupt, qo as constFalse, qr as raceFirst, qt as fromJsonString, r as read, ra as LogToStderr$1, ri as suspend, rn as decodeUnknownEffect, rr as catchCause, sa as TracerTimingEnabled$1, si as tryPromise, sn as toEncoded, so as fromUndefinedOr, sr as catchReason, ta as ClockRef, ti as sleep, tn as toCodecJson, tr as cached, ts as pipe, ua as TaggedError, ui as uninterruptibleMask, un as passthrough, uo as getOrThrowWith, ur as catch_, ut as makeUnsafe$2, va as findLast, vi as isDoneCause, vn as setAll$1, vo as none, vr as flatMap$1, vt as Json, w as callback$1, wa as match$1, wi as succeed$4, wn as fromInput$1, wo as mapInput, wr as forkChild, x as AgentId, xa as isCanonicalArrayIndex, xi as mergeAll, xn as unwrap$5, xo as toArray, xr as fnUntraced, y as Process, yi as round, yn as toString, yo as orElse, yr as flatMapEager, yt as Literal, z as mkString, za as map$6, zi as isSuccess, zn as failCauseUnsafe, zo as isNotUndefined, zr as never, zt as Unknown } from "../src-Ce-b80jJ.mjs";
3
- import { c as exhaustive, d as value$1, r as follow, t as quoted, u as tag$1 } from "../sync-KX0CReEd.mjs";
4
- import { r as onPath } from "../kubectl-BZIzN5z0.mjs";
5
- import { a as Credentials, c as credentialsFileOf, d as storedKey, f as writePrivateFile, l as startTool, u as stopSignalOf, w as noop } from "../saved-sandboxes-XNeQ5SEm.mjs";
2
+ import { $ as toTransform, $a as merge, $i as isFailReason, $n as acquireRelease, $o as dual, $t as makeFilter, A as fail$2, Aa as reduce, Ai as addFinalizerExit, An as merge$2, Ao as getStackTraceLimit, Ar as gen, At as Record, B as mkUint8Array, Bi as fail$3, Bn as fromInputUnsafe$1, Br as matchCauseEffect, Bt as Union, Ca as head, Ci as effect, Cn as fromBody, Co as toArray, Cr as fn, D as drainFork, Da as match$1, Di as succeed$4, Dn as fromInput$1, Do as Prototype, Dr as forkChild, Dt as OptionFromOptionalNullOr, E as decodeText, Ea as map$8, Ei as provideMerge, En as empty$3, Eo as mapInput, Er as forever, Et as OptionFromOptionalKey, F as interruptWhen, Fa as map$9, Fi as doneUnsafe, Fn as make$18, Fo as format, Fr as logError, Ft as TaggedError$1, G as splitLines, Ga as Reference, Gi as Done, Gn as offerUnsafe, Go as isTagged, Gr as onInterrupt, Gt as decodeUnknownEffect$1, H as runCollect, Ha as map$6, Hi as isSuccess, Hn as failCauseUnsafe, Ho as isNullish, Hr as never, Ht as declare, I as isStream, Ia as all$2, Ii as fail$4, In as value, Io as redact, Ir as map$5, It as TaggedUnion, J as toReadableStreamEffect, Ja as empty$6, Ji as fail$5, Jn as take, Jo as ownEnumerableKeys, Jr as provideContext, Jt as encodeSync, K as suspend$1, Ka as Service, Ki as UnknownError, Kn as poll, Ko as isUndefined, Kr as orDie, Kt as decodeUnknownOption, L as merge$1, La as fail$1, Li as isDone, Ln as stringOrRedacted, Lo as hasProperty, Lr as mapEager, Lt as Trim, M as fromChannel$1, Ma as fromIterableWith, Mi as makeUnsafe$1, Mn as set, Mo as BaseProto, Mr as ignoreCause, Mt as SchemaError, N as fromPull, Na as get$4, Ni as provide, Nn as setAll, No as Class, Nr as interrupt$1, Nt as String$7, O as empty$4, Oi as Scope, On as fromRecordUnsafe, Oo as PipeInspectableProto, Or as forkScoped, P as fromReadableStream, Pa as getSomes, Pi as _await, Pn as isRedacted, Po as NodeInspectSymbol, Pr as isEffect, Pt as Struct, Q as mapDone, Qa as make$21, Qi as isDieReason, Qn as runIn, Qo as constant, Qr as runForkWith, Qt as make$17, R as mkArrayBuffer, Ra as getOrThrow, Ri as isDoneUnsafe, Rn as fromSetCookie, Ro as isFunction, Rr as mapError, Rt as TrueLiterals, Si as round, Sn as toString, So as some, Sr as flatMapEager, St as NullOr, T as catchReason$1, Ta as isReadonlyArrayNonEmpty, Ti as provide$1, Tn as CurrentRedactedNames$1, To as String$6, Tr as forEach$1, Tt as OptionFromOptional, U as runDrain, Ua as succeed$1, Ui as succeed$3, Un as make$20, Uo as isObjectKeyword, Ur as onError, Ut as decodeEffect, V as run$3, Va as isSuccess$1, Vi as isFailure, Vn as endUnsafe, Vo as isNotUndefined, Vr as matchEffect, Vt as Unknown, Wa as try_$1, Wi as void_, Wn as offer, Wo as isString, Wr as onExit, Wt as decodeTo$1, X as unwrap$4, Xa as getOrUndefined, Xi as hasInterrupts, Xn as interrupt, Xo as constTrue, Xr as raceFirst, Xt as is, Y as transduce, Ya as get$3, Yi as fromReasons, Yn as getCurrent, Yo as constFalse, Yr as provideService, Yt as fromJsonString, Z as fromTransform$1, Za as getUnsafe, Zi as hasInterruptsOnly, Zn as join$2, Zo as constVoid, Zr as runFork, Zt as isNonEmpty, _ as isHttpMethod, _a as toMillis, _i as withFiber, _n as CurrentRedactedNames, _o as liftThrowable, _r as ensuring, _t as Finite, a as CliSignInStart, aa as ConsoleRef, ai as succeed$2, ao as flatMap$2, ar as callback, ba as findFirstIndex, bi as catchDone, bn as redactUrl, bo as none, br as failSync, bt as Literals$2, ca as MinimumLogLevel$1, ci as tap, cn as decodeTo, co as fromNullishOr, cr as catchFilter, da as DisablePropagation, di as try_, dn as unknown, do as getOrNull, dr as catchTag, dt as ArraySchema, ea as makeDieReason, ei as runSync, en as optional$3, er as addFinalizer$1, es as flow, et as unwrap$3, f as SANDCOVERY_ORIGIN, fa as Error$1, fi as uninterruptible, fn as Transformation, fo as getOrThrowWith, fr as catchTags, ft as Boolean$3, g as allShort, ga as isFinite, gi as void_$1, gn as Pointer, go as liftPredicate, gr as effectify, gt as FalseLiterals, h as fromApi, ha as fromInputUnsafe, hi as useSpan, hn as InvalidValue$1, ho as isSome, hr as contextWith, ht as Error$2, i as SandcoveryApi, ia as ClockRef, ii as sleep, in as toCodecStringTree, ir as cached, is as pipeArguments, ja as sort, ji as close, jn as remove$1, jo as setStackTraceLimit, jr as ignore, jt as RedactedFromValue, k as ensuring$1, ka as of, ki as addFinalizer, kn as isRedactedName, ko as withFiber$1, kr as fromResult, la as TracerEnabled$1, li as tapCause, ln as getIndexSignatureKeys, lo as fromUndefinedOr, lr as catchIf, ma as taggedEnum, mi as updateContext, mn as transformEffect, mo as isNone, mr as context, mt as Defect, n as call, na as reasonAnnotations, ni as scoped, nn as tag, no as exists, nr as andThen, ns as memoize, o as CliSignInToken, oa as LogToStderr$1, oi as suspend, on as decodeUnknownEffect, oo as flatten, or as catchCause, ot as make$19, pa as TaggedError, pi as uninterruptibleMask, pn as passthrough, po as getOrUndefined$1, pr as catch_, pt as BooleanLiterals, q as tapError, qa as add, qi as done, qn as sliding, qo as assignProperty, qr as provide$2, qt as decodeUnknownSync, r as read, ra as squash, ri as serviceOption, rn as toCodecJson, ro as filter, rr as as, rs as pipe, sa as sync$1, si as sync, sn as applyToSelfOrLastLinkEncoding, so as fromNullOr, sr as catchEager, ta as makeFailReason, ti as scope, tn as optionalKey, to as contains, tr as all$1, ts as identity, ua as TracerTimingEnabled$1, ui as tryPromise, un as toEncoded, uo as getOrElse, ur as catchReason, ut as makeUnsafe$2, va as empty$5, vi as withParentSpan, vn as empty$2, vo as map$7, vr as fail, vt as Json, w as callback$1, wa as isCanonicalArrayIndex, wi as mergeAll, wn as unwrap$5, wr as fnUntraced, x as AgentId, xa as findLast, xi as isDoneCause, xn as setAll$1, xo as orElse, xr as flatMap$1, y as Process, ya as findFirst, yi as zipWith, yn as fromInput, yo as match, yr as failCause, yt as Literal, z as mkString, za as isFailure$1, zi as makeUnsafe, zn as bytes, zo as isNotNull, zr as match$2, zt as URL$2 } from "../src-Cba__VPt.mjs";
3
+ import { c as exhaustive, d as value$1, r as follow, t as quoted, u as tag$1 } from "../sync-CZQCyiFK.mjs";
4
+ import { r as onPath } from "../kubectl-BFu8MVmy.mjs";
5
+ import { a as Credentials, c as credentialsFileOf, d as storedKey, f as writePrivateFile, l as startTool, u as stopSignalOf, w as noop } from "../saved-sandboxes-aG7Z7wiX.mjs";
6
6
  import http from "node:http";
7
7
  import * as OS from "node:os";
8
8
  import os, { constants } from "node:os";
@@ -14132,18 +14132,18 @@ const ApiOperation = Service("@coveries/cli-core/ApiOperation");
14132
14132
  const FIELD_BODIES = /* @__PURE__ */ new Map([["application/json", "Json"], ["application/x-www-form-urlencoded", "FormUrlEncoded"]]);
14133
14133
  const JsonNode = Struct({
14134
14134
  $ref: OptionFromOptionalKey(String$7),
14135
- additionalProperties: optionalKey(Json),
14135
+ additionalProperties: OptionFromOptionalKey(Json),
14136
14136
  anyOf: OptionFromOptionalKey(ArraySchema(Json)),
14137
14137
  const: OptionFromOptionalKey(Json),
14138
- description: optionalKey(String$7),
14138
+ description: OptionFromOptionalKey(String$7),
14139
14139
  enum: OptionFromOptionalKey(ArraySchema(Json)),
14140
- patternProperties: optionalKey(Record(String$7, Json)),
14141
- properties: optionalKey(Record(String$7, Json)),
14142
- required: optionalKey(ArraySchema(String$7)),
14143
- type: optionalKey(Json)
14140
+ patternProperties: OptionFromOptionalKey(Record(String$7, Json)),
14141
+ properties: OptionFromOptionalKey(Record(String$7, Json)),
14142
+ required: OptionFromOptionalKey(ArraySchema(String$7)),
14143
+ type: OptionFromOptionalKey(Json)
14144
14144
  });
14145
14145
  const Parameter = Struct({
14146
- description: optional$3(String$7),
14146
+ description: OptionFromOptional(String$7),
14147
14147
  in: Literals$2([
14148
14148
  "cookie",
14149
14149
  "header",
@@ -14151,23 +14151,23 @@ const Parameter = Struct({
14151
14151
  "query"
14152
14152
  ]),
14153
14153
  name: String$7,
14154
- required: optional$3(Boolean$3),
14155
- schema: optional$3(Json)
14154
+ required: OptionFromOptional(Boolean$3),
14155
+ schema: OptionFromOptionalNullOr(Json)
14156
14156
  });
14157
14157
  const OperationSchema = Struct({
14158
- description: optional$3(String$7),
14158
+ description: OptionFromOptional(String$7),
14159
14159
  operationId: String$7,
14160
- parameters: optional$3(ArraySchema(Parameter)),
14161
- requestBody: optional$3(Struct({ content: Record(String$7, Struct({ schema: optional$3(Json) })) })),
14162
- summary: optional$3(String$7),
14163
- tags: optional$3(ArraySchema(String$7))
14160
+ parameters: OptionFromOptional(ArraySchema(Parameter)),
14161
+ requestBody: OptionFromOptional(Struct({ content: Record(String$7, Struct({ schema: OptionFromOptionalNullOr(Json) })) })),
14162
+ summary: OptionFromOptional(String$7),
14163
+ tags: OptionFromOptional(ArraySchema(String$7))
14164
14164
  });
14165
14165
  const ApiDocumentSchema = Struct({
14166
- components: optional$3(Struct({ schemas: optional$3(Record(String$7, Json)) })),
14167
- info: optional$3(Struct({ description: optional$3(String$7) })),
14166
+ components: OptionFromOptional(Struct({ schemas: OptionFromOptional(Record(String$7, Json)) })),
14167
+ info: OptionFromOptional(Struct({ description: OptionFromOptional(String$7) })),
14168
14168
  paths: Record(String$7, Record(String$7, Unknown)),
14169
- tags: optional$3(ArraySchema(Struct({
14170
- description: optional$3(String$7),
14169
+ tags: OptionFromOptional(ArraySchema(Struct({
14170
+ description: OptionFromOptional(String$7),
14171
14171
  name: String$7
14172
14172
  })))
14173
14173
  });
@@ -14187,20 +14187,20 @@ const nodeOf = (document, schema) => {
14187
14187
  const node = decodeUnknownSync(JsonNode)(schema);
14188
14188
  return match(node.$ref, {
14189
14189
  onNone: () => node,
14190
- onSome: (ref) => nodeOf(document, getOrThrowWith(get$4(document.components?.schemas ?? {}, ref.replace("#/components/schemas/", "")), () => /* @__PURE__ */ new TypeError(`${ref} names no schema`)))
14190
+ onSome: (ref) => nodeOf(document, getOrThrowWith(get$4(document.components.pipe(flatMap$2(({ schemas }) => schemas), getOrElse(() => ({}))), ref.replace("#/components/schemas/", "")), () => /* @__PURE__ */ new TypeError(`${ref} names no schema`)))
14191
14191
  });
14192
14192
  };
14193
- const hasFixedKeys = (node) => node.type === "object" && node.additionalProperties === false && Object.values(node.patternProperties ?? {}).every((value) => value === false);
14193
+ const hasFixedKeys = (node) => contains(node.type, "object") && contains(node.additionalProperties, false) && Object.values(getOrElse(node.patternProperties, () => ({}))).every((value) => value === false);
14194
14194
  const isText = (document, schema) => {
14195
14195
  const node = nodeOf(document, schema);
14196
- return node.anyOf.pipe(map$7((members) => members.filter((member) => nodeOf(document, member).type !== "null").every((member) => isText(document, member))), orElse(() => node.enum.pipe(map$7((values) => values.every(isString)))), orElse(() => node.const.pipe(map$7(isString))), getOrElse(() => node.type === "string"));
14196
+ return node.anyOf.pipe(map$7((members) => members.filter((member) => !contains(nodeOf(document, member).type, "null")).every((member) => isText(document, member))), orElse(() => node.enum.pipe(map$7((values) => values.every(isString)))), orElse(() => node.const.pipe(map$7(isString))), getOrElse(() => contains(node.type, "string")));
14197
14197
  };
14198
14198
  const bodyOf = (document, operation) => {
14199
- const content = Object.entries(operation.requestBody?.content ?? {}).filter(([, { schema }]) => nodeOf(document, schema ?? {}).type !== "null");
14199
+ const content = Object.entries(operation.requestBody.pipe(map$7((body) => body.content), getOrElse(() => ({})))).filter(([, { schema }]) => !contains(nodeOf(document, getOrElse(schema, () => ({}))).type, "null"));
14200
14200
  const contentTypes = content.map(([contentType]) => contentType);
14201
14201
  if (contentTypes.some((type) => type.startsWith("multipart/"))) throw new TypeError(`${operation.operationId} takes a multipart body`);
14202
14202
  const fieldBody = findFirst(content, ([contentType, { schema }]) => fromNullishOr(FIELD_BODIES.get(contentType)).pipe(map$7((tag) => ({
14203
- node: nodeOf(document, schema ?? {}),
14203
+ node: nodeOf(document, getOrElse(schema, () => ({}))),
14204
14204
  tag
14205
14205
  })), filter(({ node }) => hasFixedKeys(node))));
14206
14206
  return match(fieldBody, {
@@ -14209,11 +14209,11 @@ const bodyOf = (document, operation) => {
14209
14209
  contentTypes
14210
14210
  },
14211
14211
  onSome: ({ node, tag }) => {
14212
- const required = new Set(node.required);
14212
+ const required = new Set(getOrElse(node.required, () => []));
14213
14213
  return {
14214
14214
  _tag: tag,
14215
- fields: Object.entries(node.properties ?? {}).map(([name, property]) => ({
14216
- description: nodeOf(document, property).description ?? "",
14215
+ fields: Object.entries(getOrElse(node.properties, () => ({}))).map(([name, property]) => ({
14216
+ description: nodeOf(document, property).description.pipe(getOrElse(() => "")),
14217
14217
  optional: !required.has(name),
14218
14218
  text: isText(document, property),
14219
14219
  name
@@ -14236,10 +14236,10 @@ const segmentsOf = ({ operationId }) => {
14236
14236
  if (segments.length > 2) throw new TypeError(`${operationId} has more than one dot`);
14237
14237
  return segments;
14238
14238
  };
14239
- const parameterFields = (document, operation, part) => (operation.parameters ?? []).flatMap((parameter) => parameter.in === part ? [{
14240
- description: parameter.description ?? nodeOf(document, parameter.schema ?? {}).description ?? "",
14239
+ const parameterFields = (document, operation, part) => getOrElse(operation.parameters, () => []).flatMap((parameter) => parameter.in === part ? [{
14240
+ description: parameter.description.pipe(orElse(() => nodeOf(document, getOrElse(parameter.schema, () => ({}))).description), getOrElse(() => "")),
14241
14241
  name: parameter.name,
14242
- optional: parameter.required !== true,
14242
+ optional: !contains(parameter.required, true),
14243
14243
  text: true
14244
14244
  }] : []);
14245
14245
  const FETCH_LIMIT_SECONDS = 300;
@@ -14289,7 +14289,7 @@ const CONTENT_TYPE = {
14289
14289
  const endpointCommand = (document, { body, method, operation, path }, { argument, listings, name, parents }) => {
14290
14290
  const contentTypes = body._tag === "Stdin" ? body.contentTypes : [];
14291
14291
  const media = contentTypes.length > 1 ? [CONTENT_TYPE] : [];
14292
- if ((operation.parameters ?? []).some(({ in: part }) => part === "cookie")) throw new TypeError(`${operation.operationId} takes a cookie parameter`);
14292
+ if (getOrElse(operation.parameters, () => []).some(({ in: part }) => part === "cookie")) throw new TypeError(`${operation.operationId} takes a cookie parameter`);
14293
14293
  const queryFields = parameterFields(document, operation, "query");
14294
14294
  const positional = queryFields.filter((field) => contains(argument, field.name));
14295
14295
  if (isSome(argument) && positional.length === 0) throw new TypeError(`${operation.operationId} has no query field ${argument.value}`);
@@ -14363,7 +14363,7 @@ const endpointCommand = (document, { body, method, operation, path }, { argument
14363
14363
  "2xx": ({ stream }) => stream.pipe(catchReason$1("HttpClientError", "EmptyBodyError", () => empty$4), run$3(stdio.stdout())),
14364
14364
  orElse: answeredOnStderr
14365
14365
  });
14366
- })).pipe(withDescription(operation.summary ?? operation.description ?? ""));
14366
+ })).pipe(withDescription(operation.summary.pipe(orElse(() => operation.description), getOrElse(() => ""))));
14367
14367
  };
14368
14368
  const apiCommand = (name, document, { pickers, verbs }) => {
14369
14369
  const endpoints = endpointsOf(document);
@@ -14387,9 +14387,9 @@ const apiCommand = (name, document, { pickers, verbs }) => {
14387
14387
  listings
14388
14388
  })] : []);
14389
14389
  const groups = Map.groupBy(named.filter(({ segments }) => segments.length === 2), ({ segments }) => segments[0]);
14390
- return make(name).pipe(withDescription(document.info?.description ?? ""), withSubcommands([...topLevel, ...Array.from(groups, ([group, members]) => {
14391
- const tag = members[0].endpoint.operation.tags?.at(0);
14392
- const description = document.tags?.find((entry) => entry.name === tag)?.description ?? "";
14390
+ return make(name).pipe(withDescription(document.info.pipe(flatMap$2(({ description }) => description), getOrElse(() => ""))), withSubcommands([...topLevel, ...Array.from(groups, ([group, members]) => {
14391
+ const tag = members[0].endpoint.operation.tags.pipe(flatMap$2(head));
14392
+ const description = document.tags.pipe(flatMap$2(findFirst((entry) => contains(tag, entry.name))), flatMap$2((entry) => entry.description), getOrElse(() => ""));
14393
14393
  const subcommands = members.map(({ argument, endpoint, plain, segments }) => match(flatten(plain), {
14394
14394
  onNone: () => endpointCommand(document, endpoint, {
14395
14395
  argument: none(),
@@ -14502,7 +14502,7 @@ const runApiCli = ({ answerSeconds, name, origin, spec, storedToken, token, vers
14502
14502
  });
14503
14503
  };
14504
14504
  // package.json
14505
- var version = "0.10.0";
14505
+ var version = "0.11.0";
14506
14506
  // src/cli/commands/sign-in.ts
14507
14507
  const LOGIN_USAGE = `Usage: sandcovery login
14508
14508
 
@@ -14838,8 +14838,10 @@ if (isSome(local)) {
14838
14838
  ["agents.stopAgent", PROVIDER_PACED_SECONDS],
14839
14839
  ["sandboxes.createSandbox", (ttl_seconds ?? 3600) + 60],
14840
14840
  ["sandboxes.destroySandbox", PROVIDER_PACED_SECONDS],
14841
+ ["sandboxes.detachExecSandbox", PROVIDER_PACED_SECONDS],
14841
14842
  ["sandboxes.downloadFile", PROVIDER_PACED_SECONDS],
14842
14843
  ["sandboxes.execSandbox", exec],
14844
+ ["sandboxes.getPortPreview", PROVIDER_PACED_SECONDS],
14843
14845
  ["sandboxes.listFiles", PROVIDER_PACED_SECONDS],
14844
14846
  ["sandboxes.pauseSandbox", PROVIDER_PACED_SECONDS],
14845
14847
  ["sandboxes.resumeSandbox", PROVIDER_PACED_SECONDS],
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { $a as exists, $t as optionalKey, C as SandboxId, Ct as Number$1, Da as reduce, Dt as ReadonlySet, Et as ReadonlyMap, Ho as isString, Jt as is, Lo as isNotNull, Mt as Struct, Ot as Record, Rt as Union, So as zipWith, St as NullOr, Ta as matchLeft, Wt as decodeUnknownOption, Za as all, _o as match, ao as fromNullOr, b as ProcessTerminal, ba as head, bo as some, bt as Literals, c as ProviderError, co as getOrElse, ct as update, dt as ArraySchema, eo as filter, fo as isNone, ft as Boolean$1, ga as findFirst, go as map, ho as liftThrowable, it as getAndSet, jt as String$1, lo as getOrNull, mo as liftPredicate, nt as get$1, oo as fromNullishOr, ot as make, po as isSome, qt as fromJsonString, ro as flatMapNullishOr, rt as getAndIncrement, so as fromUndefinedOr, st as set, t as Sandcovery, to as firstSomeOf, u as NoProviderAvailable, uo as getOrThrowWith, vo as none, wt as Option, xo as toArray, ya as get, zt as Unknown } from "../src-Ce-b80jJ.mjs";
3
- import { C as clamp, S as RELAY_ENV, _ as servedOrSpawned, f as writePrivateFile, g as servedAt, h as isTerminal, i as launchedRelay, l as startTool, m as READY, n as savedSandboxes, o as DESTROY_TIMEOUT_MS, p as v7, r as RELAY_PORT, s as createdSandbox, t as runningSandbox, v as socketOf, w as noop } from "../saved-sandboxes-XNeQ5SEm.mjs";
4
- import { a as terminalOf, d as value, f as when, i as runAttached, l as orElse, m as __require, n as syncCommand, o as uniq, p as __commonJSMin, s as difference, t as quoted } from "../sync-KX0CReEd.mjs";
2
+ import { Aa as reduce, At as Record, Bt as Union, C as SandboxId, Ca as head, Co as toArray, Ct as Number$1, Et as OptionFromOptionalKey, Kt as decodeUnknownOption, Nt as String$1, Oa as matchLeft, Ot as ReadonlyMap, Pt as Struct, Sa as get, So as some, St as NullOr, Vt as Unknown, Wo as isString, Xt as is, Yt as fromJsonString, _o as liftThrowable, ai as succeed, an as withDecodingDefaultKey, ao as flatMap, b as ProcessTerminal, bo as none, bt as Literals, c as ProviderError, co as fromNullishOr, ct as update, do as getOrNull, dt as ArraySchema, eo as all, fo as getOrThrowWith, ft as Boolean$1, go as liftPredicate, ho as isSome, io as firstSomeOf, it as getAndSet, kt as ReadonlySet, lo as fromUndefinedOr, mo as isNone, no as exists, nt as get$1, ot as make, ro as filter, rt as getAndIncrement, so as fromNullOr, st as set, t as Sandcovery, u as NoProviderAvailable, uo as getOrElse, vo as map, wo as zipWith, wt as Option, ya as findFirst, yo as match, zo as isNotNull } from "../src-Cba__VPt.mjs";
3
+ import { C as clamp, S as RELAY_ENV, _ as servedOrSpawned, f as writePrivateFile, g as servedAt, h as isTerminal, i as launchedRelay, l as startTool, m as READY, n as savedSandboxes, o as DESTROY_TIMEOUT_MS, p as v7, r as RELAY_PORT, s as createdSandbox, t as runningSandbox, v as socketOf, w as noop } from "../saved-sandboxes-aG7Z7wiX.mjs";
4
+ import { a as terminalOf, d as value, f as when, i as runAttached, l as orElse, m as __require, n as syncCommand, o as uniq, p as __commonJSMin, s as difference, t as quoted } from "../sync-CZQCyiFK.mjs";
5
5
  import { WebSocket } from "node:http";
6
6
  import net from "node:net";
7
7
  import { randomBytes } from "node:crypto";
@@ -6686,39 +6686,39 @@ const AdditionalContexts = Union([ContextList, Record(String$1, String$1)]);
6686
6686
  const MappingList = ArraySchema(Unknown);
6687
6687
  const Mapping = Union([MappingList, Record(String$1, Unknown)]);
6688
6688
  const Build = Union([String$1, Struct({
6689
- additional_contexts: optionalKey(AdditionalContexts),
6690
- args: optionalKey(Mapping),
6691
- context: optionalKey(String$1),
6692
- dockerfile: optionalKey(String$1),
6693
- dockerfile_inline: optionalKey(String$1)
6689
+ additional_contexts: AdditionalContexts.pipe(withDecodingDefaultKey(succeed([]))),
6690
+ args: Mapping.pipe(withDecodingDefaultKey(succeed([]))),
6691
+ context: String$1.pipe(withDecodingDefaultKey(succeed("."))),
6692
+ dockerfile: String$1.pipe(withDecodingDefaultKey(succeed(DOCKERFILE$1))),
6693
+ dockerfile_inline: OptionFromOptionalKey(String$1)
6694
6694
  })]);
6695
6695
  const Volume = Union([String$1, Struct({
6696
- source: optionalKey(String$1),
6697
- type: optionalKey(String$1)
6696
+ source: OptionFromOptionalKey(String$1),
6697
+ type: OptionFromOptionalKey(String$1)
6698
6698
  })]);
6699
6699
  const FileSource = Struct({
6700
- environment: optionalKey(String$1),
6701
- file: optionalKey(String$1)
6700
+ environment: OptionFromOptionalKey(String$1),
6701
+ file: OptionFromOptionalKey(String$1)
6702
6702
  });
6703
6703
  const Service = Struct({
6704
- build: optionalKey(Build),
6705
- env_file: optionalKey(Paths),
6706
- environment: optionalKey(Mapping),
6707
- extends: optionalKey(Union([String$1, FileSource])),
6708
- label_file: optionalKey(Texts),
6709
- volumes: optionalKey(ArraySchema(Volume))
6704
+ build: OptionFromOptionalKey(Build),
6705
+ env_file: Paths.pipe(withDecodingDefaultKey(succeed([]))),
6706
+ environment: Mapping.pipe(withDecodingDefaultKey(succeed([]))),
6707
+ extends: OptionFromOptionalKey(Union([String$1, FileSource])),
6708
+ label_file: Texts.pipe(withDecodingDefaultKey(succeed([]))),
6709
+ volumes: ArraySchema(Volume).pipe(withDecodingDefaultKey(succeed([])))
6710
6710
  });
6711
6711
  const IncludeOptions = Struct({
6712
- env_file: optionalKey(Paths),
6712
+ env_file: OptionFromOptionalKey(Paths),
6713
6713
  path: Texts,
6714
- project_directory: optionalKey(String$1)
6714
+ project_directory: OptionFromOptionalKey(String$1)
6715
6715
  });
6716
6716
  const Include = Union([String$1, IncludeOptions]);
6717
6717
  const Model = Struct({
6718
- configs: optionalKey(Record(String$1, FileSource)),
6719
- include: optionalKey(ArraySchema(Include)),
6720
- secrets: optionalKey(Record(String$1, FileSource)),
6721
- services: optionalKey(Record(String$1, NullOr(Service)))
6718
+ configs: Record(String$1, FileSource).pipe(withDecodingDefaultKey(succeed({}))),
6719
+ include: ArraySchema(Include).pipe(withDecodingDefaultKey(succeed([]))),
6720
+ secrets: Record(String$1, FileSource).pipe(withDecodingDefaultKey(succeed({}))),
6721
+ services: Record(String$1, NullOr(Service)).pipe(withDecodingDefaultKey(succeed({})))
6722
6722
  });
6723
6723
  Struct({
6724
6724
  directory: String$1,
@@ -6946,14 +6946,14 @@ const buildFound = ({ build, location }) => {
6946
6946
  location
6947
6947
  })
6948
6948
  };
6949
- const contexts = build.additional_contexts ?? [];
6949
+ const contexts = build.additional_contexts;
6950
6950
  const extras = isContextList(contexts) ? contexts.map((entry) => entry.slice(entry.indexOf("=") + 1)) : Object.values(contexts);
6951
6951
  return {
6952
6952
  ...NOTHING_FOUND,
6953
6953
  contexts: contextsOf({
6954
- context: build.context ?? ".",
6955
- dockerfile: match(fromUndefinedOr(build.dockerfile_inline), {
6956
- onNone: () => some(build.dockerfile ?? DOCKERFILE$1),
6954
+ context: build.context,
6955
+ dockerfile: match(build.dockerfile_inline, {
6956
+ onNone: () => some(build.dockerfile),
6957
6957
  onSome: () => none()
6958
6958
  }),
6959
6959
  location
@@ -6962,11 +6962,11 @@ const buildFound = ({ build, location }) => {
6962
6962
  location,
6963
6963
  values: extras
6964
6964
  }),
6965
- names: bareNames(build.args ?? [])
6965
+ names: bareNames(build.args)
6966
6966
  };
6967
6967
  };
6968
6968
  const bindSources = ({ env, volume }) => {
6969
- if (!isString(volume)) return fromUndefinedOr(volume.source).pipe(filter(() => volume.type === "bind"), map((source) => interpolated({
6969
+ if (!isString(volume)) return volume.source.pipe(filter(() => exists(volume.type, (type) => type === "bind")), map((source) => interpolated({
6970
6970
  env,
6971
6971
  text: source
6972
6972
  })), toArray);
@@ -6979,14 +6979,14 @@ const bindSources = ({ env, volume }) => {
6979
6979
  return colon > 0 && bind ? [text.slice(0, colon)] : [];
6980
6980
  };
6981
6981
  const serviceFound = ({ found, load, location, service }) => {
6982
- const built = match(fromUndefinedOr(service.build), {
6982
+ const built = match(service.build, {
6983
6983
  onNone: () => NOTHING_FOUND,
6984
6984
  onSome: (build) => buildFound({
6985
6985
  build,
6986
6986
  location
6987
6987
  })
6988
6988
  });
6989
- const bound = (service.volumes ?? []).flatMap((volume) => bindSources({
6989
+ const bound = service.volumes.flatMap((volume) => bindSources({
6990
6990
  env: location.env,
6991
6991
  volume
6992
6992
  }).flatMap((text) => homeResolved({
@@ -6995,21 +6995,21 @@ const serviceFound = ({ found, load, location, service }) => {
6995
6995
  })));
6996
6996
  const envFiles = localPaths({
6997
6997
  location,
6998
- values: pathsOf(service.env_file ?? [])
6998
+ values: pathsOf(service.env_file)
6999
6999
  });
7000
7000
  const labelFiles = localPaths({
7001
7001
  location,
7002
- values: [service.label_file ?? []].flat()
7002
+ values: [service.label_file].flat()
7003
7003
  });
7004
7004
  const parents = localPaths({
7005
7005
  location,
7006
- values: fromUndefinedOr(service.extends).pipe(filter(isFileSource), flatMapNullishOr((parent) => parent.file), toArray)
7006
+ values: service.extends.pipe(filter(isFileSource), flatMap((parent) => parent.file), toArray)
7007
7007
  });
7008
7008
  return reduce(parents, joined(found, {
7009
7009
  ...built,
7010
7010
  envFiles,
7011
7011
  mounted: [...built.mounted, ...bound],
7012
- names: [...built.names, ...bareNames(service.environment ?? [])],
7012
+ names: [...built.names, ...bareNames(service.environment)],
7013
7013
  read: [...envFiles, ...labelFiles]
7014
7014
  }), (current, file) => load({
7015
7015
  file,
@@ -7031,9 +7031,9 @@ const includeFound = ({ found, include, load, location }) => {
7031
7031
  onSome: (first) => {
7032
7032
  const directory = head(localPaths({
7033
7033
  location,
7034
- values: toArray(flatMapNullishOr(options, (named) => named.project_directory))
7034
+ values: toArray(options.pipe(flatMap((named) => named.project_directory)))
7035
7035
  })).pipe(getOrElse(() => path.dirname(first)));
7036
- const envFiles = match(flatMapNullishOr(options, (named) => named.env_file), {
7036
+ const envFiles = match(options.pipe(flatMap((named) => named.env_file)), {
7037
7037
  onNone: () => [path.join(directory, DOT_ENV)],
7038
7038
  onSome: (paths) => localPaths({
7039
7039
  location,
@@ -7088,14 +7088,14 @@ const loadFile = ({ file, found, location }) => {
7088
7088
  }).flatMap(referencedNames)),
7089
7089
  read: [file]
7090
7090
  }), (current, model) => {
7091
- const sources = [...Object.values(model.configs ?? {}), ...Object.values(model.secrets ?? {})];
7092
- const included = reduce(model.include ?? [], current, (before, include) => includeFound({
7091
+ const sources = [...Object.values(model.configs), ...Object.values(model.secrets)];
7092
+ const included = reduce(model.include, current, (before, include) => includeFound({
7093
7093
  found: before,
7094
7094
  load: loadFile,
7095
7095
  include,
7096
7096
  location
7097
7097
  }));
7098
- const served = reduce(Object.values(model.services ?? {}).filter(isNotNull), included, (before, service) => serviceFound({
7098
+ const served = reduce(Object.values(model.services).filter(isNotNull), included, (before, service) => serviceFound({
7099
7099
  found: before,
7100
7100
  load: loadFile,
7101
7101
  location,
@@ -7105,9 +7105,9 @@ const loadFile = ({ file, found, location }) => {
7105
7105
  ...NOTHING_FOUND,
7106
7106
  mounted: localPaths({
7107
7107
  location,
7108
- values: sources.flatMap((source) => [source.file ?? []].flat())
7108
+ values: sources.flatMap((source) => toArray(source.file))
7109
7109
  }),
7110
- names: sources.flatMap((source) => [source.environment ?? []].flat())
7110
+ names: sources.flatMap((source) => toArray(source.environment))
7111
7111
  });
7112
7112
  });
7113
7113
  };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { bo as some } from "../src-Ce-b80jJ.mjs";
3
- import { a as watchIdle, i as IDLE_WATCHER_ENV, n as kubectlRun } from "../kubectl-BZIzN5z0.mjs";
4
- import { l as startTool } from "../saved-sandboxes-XNeQ5SEm.mjs";
2
+ import { So as some } from "../src-Cba__VPt.mjs";
3
+ import { a as watchIdle, i as IDLE_WATCHER_ENV, n as kubectlRun } from "../kubectl-BFu8MVmy.mjs";
4
+ import { l as startTool } from "../saved-sandboxes-aG7Z7wiX.mjs";
5
5
  // src/cli/sandcovery-kubectl.ts
6
6
  await startTool({
7
7
  run: kubectlRun,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { $a as exists, Mt as Struct, Wt as decodeUnknownOption, Zt as makeFilter, _o as match, fo as isNone, go as map, lo as getOrNull, qt as fromJsonString, so as fromUndefinedOr, vo as none, xo as toArray, xt as NonEmptyString } from "../src-Ce-b80jJ.mjs";
3
- import { l as startTool, o as DESTROY_TIMEOUT_MS, s as createdSandbox, w as noop } from "../saved-sandboxes-XNeQ5SEm.mjs";
4
- import { r as onPath, t as answers } from "../kubectl-BZIzN5z0.mjs";
2
+ import { $t as makeFilter, Co as toArray, Kt as decodeUnknownOption, Pt as Struct, Yt as fromJsonString, bo as none, do as getOrNull, lo as fromUndefinedOr, mo as isNone, no as exists, vo as map, xt as NonEmptyString, yo as match } from "../src-Cba__VPt.mjs";
3
+ import { l as startTool, o as DESTROY_TIMEOUT_MS, s as createdSandbox, w as noop } from "../saved-sandboxes-aG7Z7wiX.mjs";
4
+ import { r as onPath, t as answers } from "../kubectl-BFu8MVmy.mjs";
5
5
  import { spawn } from "node:child_process";
6
6
  import { once } from "node:events";
7
7
  import { parseArgs } from "node:util";
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as CreateKeyRequest, Un as SandboxStatus, X as CreateAgentRequest, an as ProcessRequest, bt as ExecEvent, cn as Provider, dr as UpdateKeyRequest, et as CreateSandboxRequest, m as AgentSshRequest, p as AgentSessionRequest, pt as DetachedExecRequest, qt as OperatingSystemPick, rn as ProblemReportRequest, sr as SubscriptionCheckoutRequest, st as CredentialFields, tt as CreateUsageShareRequest, ut as CreditPurchaseRequest, x as AutoTopUpRequest, xt as ExecRequest, yt as EstimateRequest } from "./types-DotsDqXt.mjs";
1
+ import { $ as CreateKeyRequest, Jt as OperatingSystemPick, Wn as SandboxStatus, X as CreateAgentRequest, bt as ExecEvent, cr as SubscriptionCheckoutRequest, et as CreateSandboxRequest, in as ProblemReportRequest, ln as Provider, m as AgentSshRequest, on as ProcessRequest, p as AgentSessionRequest, pr as UpdateKeyRequest, pt as DetachedExecRequest, st as CredentialFields, tt as CreateUsageShareRequest, ut as CreditPurchaseRequest, x as AutoTopUpRequest, xt as ExecRequest, yt as EstimateRequest } from "./types-DLH1pZHc.mjs";
2
2
  /**
3
3
  * Describes the concurrency level for Effect operations that run multiple
4
4
  * effects.
@@ -6896,6 +6896,7 @@ export declare class Sandcovery {
6896
6896
  readonly custom_image: boolean;
6897
6897
  readonly detached_exec: boolean;
6898
6898
  readonly egress_modes: readonly string[];
6899
+ readonly files: boolean;
6899
6900
  readonly gpu_types: readonly string[];
6900
6901
  readonly idle_timeout: boolean;
6901
6902
  readonly max_disk_mib: number | null;
@@ -6913,6 +6914,7 @@ export declare class Sandcovery {
6913
6914
  readonly hourly_micro_usd: number;
6914
6915
  readonly type: string;
6915
6916
  }[];
6917
+ readonly home_directory: string;
6916
6918
  readonly home_url: string;
6917
6919
  readonly incidents: {
6918
6920
  readonly data: readonly {
@@ -7036,6 +7038,7 @@ export declare class Sandcovery {
7036
7038
  readonly custom_image: boolean;
7037
7039
  readonly detached_exec: boolean;
7038
7040
  readonly egress_modes: readonly string[];
7041
+ readonly files: boolean;
7039
7042
  readonly gpu_types: readonly string[];
7040
7043
  readonly idle_timeout: boolean;
7041
7044
  readonly max_disk_mib: number | null;
@@ -7053,6 +7056,7 @@ export declare class Sandcovery {
7053
7056
  readonly hourly_micro_usd: number;
7054
7057
  readonly type: string;
7055
7058
  }[];
7059
+ readonly home_directory: string;
7056
7060
  readonly home_url: string;
7057
7061
  readonly incidents: {
7058
7062
  readonly data: readonly {
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { t as Sandcovery } from "./src-Ce-b80jJ.mjs";
1
+ export { t as Sandcovery } from "./src-Cba__VPt.mjs";
@@ -1,5 +1,5 @@
1
- import { $a as exists, C as SandboxId, Ct as Number$1, Gt as decodeUnknownSync, Mt as Struct, Ra as isSuccess, Va as try_, Wt as decodeUnknownOption, _o as match, ao as fromNullOr, at as increment, bo as some, co as getOrElse, ct as update, eo as filter, fo as isNone, go as map, jt as String, lo as getOrNull, nt as get, ot as make, po as isSome, qt as fromJsonString, so as fromUndefinedOr, st as set, t as Sandcovery, tt as decrement, vo as none, xo as toArray } from "./src-Ce-b80jJ.mjs";
2
- import { C as clamp, _ as servedOrSpawned, b as KUBERNETES_GATEWAY_COMMAND, f as writePrivateFile, g as servedAt, h as isTerminal, i as launchedRelay, m as READY, n as savedSandboxes, o as DESTROY_TIMEOUT_MS, s as createdSandbox, t as runningSandbox, u as stopSignalOf, v as socketOf, w as noop, x as KUBERNETES_PORT, y as KUBERNETES_COMMAND } from "./saved-sandboxes-XNeQ5SEm.mjs";
1
+ import { C as SandboxId, Co as toArray, Ct as Number$1, Kt as decodeUnknownOption, Nt as String, Pt as Struct, So as some, Va as isSuccess, Wa as try_, Yt as fromJsonString, at as increment, bo as none, ct as update, do as getOrNull, ho as isSome, lo as fromUndefinedOr, mo as isNone, no as exists, nt as get, ot as make, qt as decodeUnknownSync, ro as filter, so as fromNullOr, st as set, t as Sandcovery, tt as decrement, uo as getOrElse, vo as map, yo as match } from "./src-Cba__VPt.mjs";
2
+ import { C as clamp, _ as servedOrSpawned, b as KUBERNETES_GATEWAY_COMMAND, f as writePrivateFile, g as servedAt, h as isTerminal, i as launchedRelay, m as READY, n as savedSandboxes, o as DESTROY_TIMEOUT_MS, s as createdSandbox, t as runningSandbox, u as stopSignalOf, v as socketOf, w as noop, x as KUBERNETES_PORT, y as KUBERNETES_COMMAND } from "./saved-sandboxes-aG7Z7wiX.mjs";
3
3
  import os from "node:os";
4
4
  import { spawn } from "node:child_process";
5
5
  import net from "node:net";
@@ -1,4 +1,4 @@
1
- import { Jt as is, Mt as Struct, Ot as Record, Rt as Union, S as KeySecret, Wt as decodeUnknownOption, _o as match, bo as some, bt as Literals, co as getOrElse, ct as update, d as Conflict, do as getOrUndefined, eo as filter, fo as isNone, go as map, ho as liftThrowable, jt as String$1, l as NotFound, m as Forbidden, no as flatMap, nt as get, ot as make, p as Unauthorized, po as isSome, qt as fromJsonString, s as Unsupported, so as fromUndefinedOr, t as Sandcovery, vo as none, yo as orElse, yt as Literal } from "./src-Ce-b80jJ.mjs";
1
+ import { At as Record, Bt as Union, Kt as decodeUnknownOption, Nt as String$1, Pt as Struct, S as KeySecret, So as some, Xt as is, Yt as fromJsonString, _o as liftThrowable, ao as flatMap, bo as none, bt as Literals, ct as update, d as Conflict, ho as isSome, l as NotFound, lo as fromUndefinedOr, m as Forbidden, mo as isNone, nt as get, ot as make, p as Unauthorized, po as getOrUndefined, ro as filter, s as Unsupported, t as Sandcovery, uo as getOrElse, vo as map, xo as orElse, yo as match, yt as Literal } from "./src-Cba__VPt.mjs";
2
2
  import http from "node:http";
3
3
  import os from "node:os";
4
4
  import { spawn } from "node:child_process";
@@ -4138,46 +4138,6 @@ const map$7 = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : some(f(
4138
4138
  */
4139
4139
  const flatMap$3 = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : f(self.value));
4140
4140
  /**
4141
- * Combines {@link flatMap} with {@link fromNullishOr}: applies a function that
4142
- * may return `null`/`undefined` to the value of a `Some`.
4143
- *
4144
- * **When to use**
4145
- *
4146
- * Use when you need to chain optional computations that use `null` or
4147
- * `undefined` instead of `Option`, such as nested property access.
4148
- *
4149
- * **Details**
4150
- *
4151
- * - `None` → `None`
4152
- * - `Some` → applies `f`, then wraps via {@link fromNullishOr}
4153
- *
4154
- * **Example** (Navigating optional properties)
4155
- *
4156
- * ```ts import.meta.vitest
4157
- * import { Option } from "effect"
4158
- *
4159
- * interface Employee {
4160
- * company?: { address?: { street?: { name?: string } } }
4161
- * }
4162
- *
4163
- * const emp: Employee = {
4164
- * company: { address: { street: { name: "high street" } } }
4165
- * }
4166
- *
4167
- * Option.some(emp).pipe(
4168
- * Option.flatMapNullishOr((e) => e.company?.address?.street?.name)
4169
- * ) // => Option.some("high street")
4170
- * ```
4171
- *
4172
- * @see {@link flatMap} when the function already returns `Option`
4173
- * @see {@link fromNullishOr} for single-value conversion
4174
- *
4175
- * @stability stable
4176
- * @category sequencing
4177
- * @since 4.0.0
4178
- */
4179
- const flatMapNullishOr = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : fromNullishOr(f(self.value)));
4180
- /**
4181
4141
  * Flattens a nested `Option<Option<A>>` into `Option<A>`.
4182
4142
  *
4183
4143
  * **When to use**
@@ -20532,6 +20492,52 @@ function optionFromOptionalKey() {
20532
20492
  });
20533
20493
  }
20534
20494
  /**
20495
+ * Decodes optional values into `Option<T>` and encodes `Option.none()` back to
20496
+ * an omitted optional value.
20497
+ *
20498
+ * **When to use**
20499
+ *
20500
+ * Use when you need a schema transformation to convert optional (possibly
20501
+ * `undefined`) values to `Option`.
20502
+ *
20503
+ * **Details**
20504
+ *
20505
+ * Decoding maps an absent or `undefined` value to `Some(None)` and a present
20506
+ * value to `Some(Some(v))`. Encoding maps `Some(None)` to `None` to omit the
20507
+ * value, and maps `Some(Some(v))` to `Some(v)`. This uses
20508
+ * `transformOptional` under the hood and filters out `undefined` on decode.
20509
+ *
20510
+ * **Example** (Converting an optional value to an Option)
20511
+ *
20512
+ * ```ts import.meta.vitest
20513
+ * import { Option, Schema, SchemaTransformation } from "effect"
20514
+ *
20515
+ * const schema = Schema.Struct({
20516
+ * age: Schema.optional(Schema.Number).pipe(
20517
+ * Schema.decodeTo(
20518
+ * Schema.Option(Schema.Number),
20519
+ * SchemaTransformation.optionFromOptional()
20520
+ * )
20521
+ * )
20522
+ * })
20523
+ * Schema.decodeSync(schema)({ age: undefined }).age // => Option.none()
20524
+ * ```
20525
+ *
20526
+ * @see {@link optionFromOptionalKey}
20527
+ * @see {@link optionFromUndefinedOr}
20528
+ * @see {@link transformOptional}
20529
+ *
20530
+ * @stability stable
20531
+ * @category transforming
20532
+ * @since 4.0.0
20533
+ */
20534
+ function optionFromOptional() {
20535
+ return transformOptional({
20536
+ decode: (ot) => ot.pipe(filter(isNotUndefined), some),
20537
+ encode: flatten$1
20538
+ });
20539
+ }
20540
+ /**
20535
20541
  * Decodes a `string` into a `URL` and encodes a `URL` back to its `href`
20536
20542
  * string.
20537
20543
  *
@@ -27647,6 +27653,46 @@ function OptionFromOptionalKey(schema) {
27647
27653
  return optionalKey(schema).pipe(decodeTo(Option(toType(schema)), optionFromOptionalKey()));
27648
27654
  }
27649
27655
  /**
27656
+ * Decodes an optional or `undefined` value `A` to a required `Option<A>`
27657
+ * value.
27658
+ *
27659
+ * **Details**
27660
+ *
27661
+ * Decoding maps a missing key or a present `undefined` value to `None`, and
27662
+ * maps all other values to `Some`. Encoding maps `None` to a missing key and
27663
+ * maps `Some` to its value.
27664
+ *
27665
+ * @stability stable
27666
+ * @category schemas
27667
+ * @since 4.0.0
27668
+ */
27669
+ function OptionFromOptional(schema) {
27670
+ return optional(schema).pipe(decodeTo(Option(toType(schema)), optionFromOptional()));
27671
+ }
27672
+ /**
27673
+ * Decodes an optional or `null` or `undefined` value `A` to a required `Option<A>`
27674
+ * value.
27675
+ *
27676
+ * **Details**
27677
+ *
27678
+ * Decoding maps a missing key, `undefined`, or `null` to `None`, and maps all
27679
+ * other values to `Some`. Encoding maps `Some` to its value. `None` is encoded
27680
+ * according to `options.onNoneEncoding`: `"omit"` encodes a missing key,
27681
+ * `null` encodes `null`, and `undefined` encodes `undefined`.
27682
+ *
27683
+ * @stability stable
27684
+ * @category schemas
27685
+ * @since 4.0.0
27686
+ */
27687
+ function OptionFromOptionalNullOr(schema, options) {
27688
+ const onNoneEncoding = options === void 0 ? "omit" : options.onNoneEncoding;
27689
+ const noneValue = onNoneEncoding === null ? null : void 0;
27690
+ return optional(NullOr(schema)).pipe(decodeTo(Option(toType(schema)), transformOptional({
27691
+ decode: (oe) => oe.pipe(filter(isNotNullish), some),
27692
+ encode: onNoneEncoding === "omit" ? flatten$1 : (ot) => some(getOrElse$1(flatten$1(ot), () => noneValue))
27693
+ })));
27694
+ }
27695
+ /**
27650
27696
  * Schema for `Redacted` values, which hide their contents from inspection.
27651
27697
  *
27652
27698
  * **Details**
@@ -31393,6 +31439,7 @@ const PortPreview = Struct({
31393
31439
  description: "A provider URL that reaches a port inside the sandbox.",
31394
31440
  identifier: "PortPreview"
31395
31441
  });
31442
+ const MIN_AGENT_TTL_SECONDS = 7200;
31396
31443
  const MAX_AGENT_LOG_LINES = 2e3;
31397
31444
  const AgentWebApp = Struct({
31398
31445
  path: String$1.annotate({ description: "Path of the web app on that port, starting with a slash." }),
@@ -33834,7 +33881,7 @@ const Forbidden = Struct({
33834
33881
  error: tag("forbidden"),
33835
33882
  message: String$1
33836
33883
  }).annotate({
33837
- description: "The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, or a Free organization adding a second key of a provider. `message` names the rule.",
33884
+ description: "The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.",
33838
33885
  httpApiStatus: 403,
33839
33886
  identifier: "ForbiddenError"
33840
33887
  });
@@ -33978,7 +34025,7 @@ const AgentsGroup = make("agents").add(get("listAgentPresets", "/agent-presets",
33978
34025
  payload: CreateAgentRequest,
33979
34026
  success: Agent.pipe(status(201))
33980
34027
  }).annotateMerge(annotations({
33981
- description: "Creates a sandbox on the routing given and installs the preset in it, and answers while the agent is `starting`. Once installed, the agent waits in `setup` until a person finishes the agent's own setup in its session, through `POST /agents/{agent_id}/session` or `POST /agents/{agent_id}/ssh`, and then runs. Sandcovery takes no model key or chat token. It renews the sandbox before it expires and carries the agent's state to the replacement. A sandbox create that fails answers its error, as `POST /sandboxes` does.",
34028
+ description: `Creates a sandbox on the routing given and installs the preset in it, and answers while the agent is \`starting\`. Once installed, the agent waits in \`setup\` until a person finishes the agent's own setup in its session, through \`POST /agents/{agent_id}/session\` or \`POST /agents/{agent_id}/ssh\`, and then runs. Sandcovery takes no model key or chat token. It renews the sandbox before it expires and carries the agent's state to the replacement. A sandbox create that fails answers its error, as \`POST /sandboxes\` does. Each sandbox must live at least ${String(MIN_AGENT_TTL_SECONDS)} seconds. Sandcovery refuses with 403 when the API key's \`max_ttl_seconds\` or \`allowed_providers\` allows less, and with 422 when the routing reaches only providers whose sandboxes live less, before it creates any sandbox. A renewal that can no longer get that life fails with \`last_error\` saying why, and Sandcovery tries again while the agent keeps its current sandbox. Once that sandbox expires, the agent is \`failed\`.`,
33982
34029
  summary: "Create an agent"
33983
34030
  })), get("listAgents", AGENTS_PATH, { success: AgentList }).annotateMerge(annotations({
33984
34031
  description: "Lists agents, newest first. An API key sees the agents it created, and a session sees the whole organization's.",
@@ -34044,15 +34091,19 @@ const AgentsGroup = make("agents").add(get("listAgentPresets", "/agent-presets",
34044
34091
  success: Agent,
34045
34092
  payload: Null
34046
34093
  }).annotateMerge(annotations({
34047
- description: "Boots a stopped or failed agent in a fresh sandbox, destroying the sandbox a failed start left, and checks an agent in `setup` again, running it once its own setup is done. Any other agent answers 409.",
34094
+ description: "Boots a stopped or failed agent in a fresh sandbox, destroying the sandbox a failed start left, and checks an agent in `setup` again, running it once its own setup is done. Any other agent answers 409. Before it changes the agent, Sandcovery refuses with 403 or 422, as on a create, when the API key that created the agent, or the agent's routing, can no longer give its sandbox the life an agent needs, and with 403 when that key or the person who created the agent can no longer act for it.",
34048
34095
  summary: "Start an agent"
34049
34096
  })), post("restartAgent", `${AGENT_PATH}/restart`, {
34050
34097
  params: params$2,
34051
- error: [NotFound, Conflict],
34098
+ error: [
34099
+ NotFound,
34100
+ Conflict,
34101
+ Unsupported
34102
+ ],
34052
34103
  success: Agent,
34053
34104
  payload: Null
34054
34105
  }).annotateMerge(annotations({
34055
- description: "Stops the agent and starts it again in the same sandbox, keeping its state. An agent with no sandbox, or one that is starting or renewing, answers 409.",
34106
+ description: "Stops the agent and starts it again in the same sandbox, keeping its state. An agent with no sandbox, or one that is starting or renewing, answers 409. Sandcovery refuses with 403 or 422, as on a create, when the API key that created the agent, or the agent's routing, can no longer give its sandbox the life an agent needs, and with 403 when that key or the person who created the agent can no longer act for it.",
34056
34107
  summary: "Restart an agent"
34057
34108
  })), get("getAgentLogs", `${AGENT_PATH}/logs`, {
34058
34109
  error: [
@@ -34566,6 +34617,7 @@ const ProviderFeatures = Struct({
34566
34617
  custom_image: Boolean$1,
34567
34618
  detached_exec: Boolean$1.annotate({ description: "Whether Sandcovery can start a command on this provider and leave it running, with no timeout and no output kept." }),
34568
34619
  egress_modes: ArraySchema(EgressMode),
34620
+ files: Boolean$1.annotate({ description: "Whether Sandcovery can list, read, and write files in a sandbox on this provider." }),
34569
34621
  gpu_types: ArraySchema(GpuType).annotate({ description: "The GPU types a sandbox on this provider can get, up to 8 GPUs of one type. Empty when the provider runs no GPU sandbox." }),
34570
34622
  idle_timeout: Boolean$1,
34571
34623
  max_disk_mib: NullOr(Natural).annotate({ description: "The largest disk size in MiB the provider takes, or null when it takes no disk size." }),
@@ -34699,6 +34751,7 @@ const ProviderBoardEntry = Struct({
34699
34751
  hourly_micro_usd: MicroUsd,
34700
34752
  type: GpuType
34701
34753
  })).annotate({ description: "List price per hour of one GPU of each type the provider runs, which a GPU sandbox adds to the price of its size. Empty when the provider runs no GPU sandbox." }),
34754
+ home_directory: String$1.annotate({ description: "The home directory of a sandbox on this provider, such as `/root` or `/workspace`." }),
34702
34755
  home_url: String$1.annotate({ description: "The provider's own home page." }),
34703
34756
  incidents: VendorIncidents,
34704
34757
  live_checks: LiveChecks,
@@ -34869,12 +34922,33 @@ const CredentialsGroup = make("credentials").add(get("listProviderCredentials",
34869
34922
  payload: Null,
34870
34923
  success: Offer
34871
34924
  }).annotateMerge(annotations({
34872
- description: `Finds the newest post on X that tags @${SANDCOVERY_X_HANDLE} among the last day's posts of the X account linked to the account that owns this organization, counts it as one key of the offer, and answers the offer with it counted. A post counts whatever it says. Sandcovery reads at most the 5 newest posts of that day and leaves reposts out, so check soon after you post. One post counts per account, and one X account counts for one Sandcovery account only, so a check after a post counted, or for an X account that already counted, answers 409 \`conflict\`, as does an account with no linked X account. 404 \`not_found\` while no offer runs, while Sandcovery reads no posts on X, or when no post of the last day tags @${SANDCOVERY_X_HANDLE}. An organization's checks read X at most ${String(10)} times a UTC day and ${String(30)} seconds apart, and a check past either answers 429 \`retry_later\` without reading X, with \`retry_at\` the time the next check may read it.`,
34925
+ description: `Finds the newest post on X that tags @${SANDCOVERY_X_HANDLE} among the last day's posts of the X account linked to the account that owns this organization, counts it as one key of the offer, and answers the offer with it counted. A post counts whatever it says. Sandcovery reads at most the 5 newest posts of that day and leaves reposts out, so check soon after you post. One post counts per account, and one X account counts for one Sandcovery account only, so a check after a post counted, or for an X account that already counted, answers 409 \`conflict\`, as does an account with no linked X account. 404 \`not_found\` while no offer runs, while Sandcovery reads no posts on X, or when no post of the last day tags @${SANDCOVERY_X_HANDLE}. Sandcovery counts at most ${String(10)} reads of X a UTC day for an organization's checks, ${String(30)} seconds apart, and a check past either answers 429 \`retry_later\` without reading X, with \`retry_at\` the time the next check may read it. A check whose read fails because X answers 429 or a 5xx status, times out, or drops the connection also answers 429 \`retry_later\`, with \`retry_at\` ${String(30)} seconds after the check or at X's rate limit reset when that is later, and that read does not count.`,
34873
34926
  summary: "Count your post on X toward the offer"
34874
34927
  }))).middleware(RequireManagement).annotateMerge(annotations({ description: "Credentials for your own provider accounts. Needs a management key or the session of an organization admin; an API key or any other session receives 403." })).prefix(API_PREFIX);
34928
+ const HealthChecks = Struct({ postgres: Boolean$1.annotate({ description: "Postgres answered a read through Hyperdrive. It holds every key, credential, sandbox, and provider board read, so the API serves nothing without it." }) }).annotate({
34929
+ description: `One boolean per store the API cannot serve without: true when it answered within ${String(5)} seconds.`,
34930
+ identifier: "HealthChecks"
34931
+ });
34932
+ // ../sandcovery-contract/src/errors/unhealthy.ts
34933
+ const Unhealthy = Struct({
34934
+ checks: HealthChecks,
34935
+ error: tag("unhealthy"),
34936
+ message: String$1,
34937
+ ok: Literal(false)
34938
+ }).annotate({
34939
+ description: "A store the API cannot serve without failed its health check. `checks` marks that store false, and `message` names it.",
34940
+ httpApiStatus: 503,
34941
+ identifier: "UnhealthyError"
34942
+ });
34875
34943
  // ../sandcovery-contract/src/groups/health.ts
34876
- const HealthGroup = make("health").add(get("health", "/api/health", { success: Struct({ ok: Literal(true) }).annotate({ identifier: "Health" }) }).annotateMerge(annotations({
34877
- description: "Answers `{\"ok\": true}` while the API Worker serves.",
34944
+ const HealthGroup = make("health").add(get("health", "/api/health", {
34945
+ error: Unhealthy,
34946
+ success: Struct({
34947
+ checks: HealthChecks,
34948
+ ok: Literal(true)
34949
+ }).annotate({ identifier: "Health" })
34950
+ }).annotateMerge(annotations({
34951
+ description: `Checks every store the API cannot serve without, each within ${String(5)} seconds. Answers \`ok: true\` with every check true, or 503 \`unhealthy\` with \`ok: false\` and the failed check false. No cache keeps the answer.`,
34878
34952
  summary: "Check health"
34879
34953
  }))).annotateMerge(annotations({ description: "Health. Needs no credential." }));
34880
34954
  // ../sandcovery-contract/src/keys.ts
@@ -35398,7 +35472,7 @@ const ProvidersGroup = make("providers").add(get("listProviders", "/providers",
35398
35472
  }).annotateMerge(annotations({
35399
35473
  description: "The sandbox provider catalog: every provider Sandcovery routes to and every provider coming soon, each with what Sandcovery measured and with the prices, limits, capabilities, operating systems, regions, and policy its public pages state, every fact beside the page it was read from. With `os`, it lists only providers that run that operating system for sandboxes or for CI runners.",
35400
35474
  summary: "List the provider catalog"
35401
- }))).annotateMerge(annotations({ description: "The public provider board and catalog. Needs no credential." })).prefix(API_PREFIX);
35475
+ }))).annotateMerge(annotations({ description: "The public provider board and catalog. Needs no credential. Every 200 answer carries a public Cache-Control and an ETag, and a request that sends the ETag back in If-None-Match answers 304 with no body while the data is unchanged." })).prefix(API_PREFIX);
35402
35476
  // ../sandcovery-contract/src/files.ts
35403
35477
  const FilePath = Struct({ path: NonEmptyString.annotate({ description: "A path inside the sandbox." }) });
35404
35478
  const FileEntry = Struct({
@@ -35448,7 +35522,7 @@ const SandboxesGroup = make("sandboxes").add(post("createSandbox", "/sandboxes",
35448
35522
  payload: EstimateRequest,
35449
35523
  success: EstimateList
35450
35524
  }).annotateMerge(annotations({
35451
- description: "Prices a spec at each candidate provider from the current rate cards, without creating anything. The candidates are every provider Sandcovery runs, whether or not the organization has connected it, so a create can still refuse a spec the estimate prices. A session that names a key in `api_key_id` gets prices under that key's maximum TTL and allowed providers. When no provider can run the spec, such as when the key's allowed providers or `provider` leave none, or the provider it names is coming soon, it answers 503 `no_provider_available` with empty `attempts` and a message naming why each provider was left out, instead of an empty list.",
35525
+ description: "Prices a spec at each provider a create with the same caller, key and body would try, in the order it would try them, from the current rate cards, without creating anything. It plans as a create does: with the providers the organization has stored a key for, the free or sponsored vCPUh when they cover the spec, and the providers the organization can pay for on credits. A session that names a key in `api_key_id` plans as that key, under its maximum TTL and allowed providers. A session with no key plans as the organization. That includes a member who isn't an admin, though that member's create must name a key. Whenever a create's planning would refuse the spec, the estimate answers the same status and message instead of an empty list: 422 `unsupported` naming the sizes that fit, or 503 `no_provider_available` with empty `attempts`, such as when no provider key is stored, the key's allowed providers or `provider` leave none, the provider it names is coming soon, fewer free or sponsored vCPUh are left than the sandbox needs over its full TTL, or its full-TTL cost on credits is more than the credit balance. It never charges a card, tops up credits, or holds anything, so a create can still refuse when it reserves, such as at the concurrency or spend limit.",
35452
35526
  summary: "Estimate cost"
35453
35527
  })), get("listUsableKeys", "/usable-keys", { success: UsableKeyList }).annotateMerge(annotations({
35454
35528
  description: "Lists the live API keys a signed-in session may create sandboxes under through `api_key_id`, newest first: every live API key of the organization to an admin, and the ones made for them to a member. It returns no secret. An API key receives 403, since it always creates under itself.",
@@ -35927,6 +36001,7 @@ const ApiError = Union([
35927
36001
  RetryLater,
35928
36002
  SpendLimitReached,
35929
36003
  Unauthorized,
36004
+ Unhealthy,
35930
36005
  Unsupported
35931
36006
  ]);
35932
36007
  // ../sandcovery-contract/src/attach.ts
@@ -36838,4 +36913,4 @@ var Sandcovery = class {
36838
36913
  set(this.#config, resolveConfig(options));
36839
36914
  }
36840
36915
  };
36841
- export { toTransform as $, exists as $a, reasonAnnotations as $i, andThen as $n, identity as $o, scoped as $r, optionalKey as $t, fail as A, get$3 as Aa, provide$3 as Ai, setAll$1 as An, BaseProto as Ao, interrupt$1 as Ar, SchemaError$1 as At, mkUint8Array as B, succeed$5 as Ba, succeed$3 as Bi, make$13 as Bn, isNullish as Bo, onError as Br, declare as Bt, SandboxId as C, map$4 as Ca, provideMerge as Ci, empty$3 as Cn, String$5 as Co, forever as Cr, Number$1 as Ct, drainFork as D, reduce as Da, addFinalizerExit as Di, merge$2 as Dn, withFiber$1 as Do, gen as Dr, ReadonlySet as Dt, decodeText as E, of as Ea, addFinalizer$1 as Ei, isRedactedName$1 as En, PipeInspectableProto as Eo, fromResult as Er, ReadonlyMap as Et, interruptWhen as F, getOrThrow as Fa, isDoneUnsafe as Fi, fromSetCookie as Fn, hasProperty as Fo, mapError as Fr, Trim as Ft, splitLines as G, empty$6 as Ga, fail$6 as Gi, take as Gn, assignProperty as Go, provideContext as Gr, decodeUnknownSync as Gt, runCollect as H, Reference as Ha, Done as Hi, offerUnsafe as Hn, isString$1 as Ho, onInterrupt as Hr, decodeTo as Ht, isStream as I, isFailure$1 as Ia, makeUnsafe$4 as Ii, bytes as In, isFunction as Io, match as Ir, TrueLiterals as It, toReadableStreamEffect as J, getUnsafe$1 as Ja, hasInterruptsOnly as Ji, join as Jn, constTrue as Jo, runFork as Jr, is as Jt, suspend as K, get$4 as Ka, fromReasons as Ki, getCurrent as Kn, ownEnumerableKeys as Ko, provideService as Kr, encodeSync as Kt, merge as L, isResult as La, fail$5 as Li, fromInputUnsafe as Ln, isNotNull as Lo, matchCauseEffect as Lr, URL$1 as Lt, fromChannel as M, map$5 as Ma, doneUnsafe as Mi, make$9 as Mn, NodeInspectSymbol as Mo, logError as Mr, Struct as Mt, fromPull as N, all$3 as Na, fail$4 as Ni, value as Nn, format$1 as No, map$1 as Nr, TaggedError as Nt, empty as O, sort as Oa, close as Oi, remove as On, getStackTraceLimit as Oo, ignore as Or, Record as Ot, fromReadableStream as P, fail$8 as Pa, isDone as Pi, stringOrRedacted as Pn, redact$2 as Po, mapEager as Pr, TaggedUnion as Pt, mapDone as Q, contains as Qa, makeFailReason as Qi, all$1 as Qn, flow as Qo, scope as Qr, optional as Qt, mkArrayBuffer as R, isSuccess$1 as Ra, isFailure as Ri, endUnsafe as Rn, isNotNullish as Ro, matchEffect as Rr, Union as Rt, KeySecret as S, isReadonlyArrayNonEmpty as Sa, provide$2 as Si, CurrentRedactedNames$1 as Sn, zipWith$2 as So, forEach as Sr, NullOr as St, catchReason as T, matchLeft as Ta, Scope as Ti, fromRecordUnsafe as Tn, Prototype as To, forkScoped as Tr, OptionFromOptionalKey as Tt, runDrain as U, Service$1 as Ua, UnknownError as Ui, poll as Un, isTagged as Uo, orDie as Ur, decodeUnknownEffect as Ut, run as V, try_$2 as Va, void_$2 as Vi, offer as Vn, isObjectKeyword as Vo, onExit$1 as Vr, decodeEffect as Vt, runForEach as W, add as Wa, done$1 as Wi, sliding as Wn, isUndefined as Wo, provide as Wr, decodeUnknownOption as Wt, unwrap as X, merge$3 as Xa, isFailReason as Xi, acquireRelease as Xn, constant as Xo, runPromiseExit as Xr, make$4 as Xt, transduce as Y, make$18 as Ya, isDieReason as Yi, runIn as Yn, constVoid as Yo, runForkWith as Yr, isNonEmpty as Yt, fromTransform as Z, all$4 as Za, makeDieReason as Zi, addFinalizer as Zn, dual as Zo, runSync$1 as Zr, makeFilter as Zt, isHttpMethod as _, findFirstIndex as _a, catchDone as _i, redactUrl as _n, match$5 as _o, failSync as _r, Finite as _t, CliSignInStart as a, MinimumLogLevel as aa, tap as ai, decodeTo$1 as an, fromNullOr as ao, catchFilter as ar, increment as at, ProcessTerminal as b, head as ba, effect as bi, fromBody as bn, some as bo, fn as br, Literals as bt, ProviderError as c, DisablePropagation as ca, try_ as ci, unknown as cn, getOrElse$1 as co, catchTag as cr, update as ct, Conflict as d, taggedEnum as da, updateContext as di, transformEffect$1 as dn, getOrUndefined$1 as do, context as dr, ArraySchema as dt, squash as ea, serviceOption as ei, tag as en, filter as eo, as as er, memoize as es, unwrap$1 as et, SANDCOVERY_ORIGIN as f, fromInputUnsafe$1 as fa, useSpan as fi, InvalidValue as fn, isNone as fo, contextWith as fr, Boolean$1 as ft, allShort as g, findFirst as ga, zipWith as gi, fromInput as gn, map$7 as go, failCause$2 as gr, FalseLiterals as gt, fromApi as h, empty$4 as ha, withParentSpan as hi, empty$2 as hn, liftThrowable as ho, fail$3 as hr, Error$1 as ht, SandcoveryApi as i, sync$1 as ia, sync as ii, applyToSelfOrLastLinkEncoding as in, flatten$1 as io, catchEager as ir, getAndSet as it, fromAsyncIterable as j, getSomes as ja, _await as ji, isRedacted as jn, Class$1 as jo, isEffect as jr, String$1 as jt, ensuring as k, fromIterableWith as ka, makeUnsafe$3 as ki, set$1 as kn, setStackTraceLimit as ko, ignoreCause as kr, RedactedFromValue as kt, NotFound as l, Error$2 as la, uninterruptible as li, Transformation as ln, getOrNull as lo, catchTags as lr, updateAndGet as lt, Forbidden as m, toMillis as ma, withFiber as mi, CurrentRedactedNames as mn, liftPredicate as mo, ensuring$2 as mr, Defect as mt, call as n, ConsoleRef as na, succeed$1 as ni, toCodecStringTree as nn, flatMap$3 as no, callback$1 as nr, pipeArguments as ns, get$1 as nt, CliSignInToken as o, TracerEnabled as oa, tapCause as oi, getIndexSignatureKeys as on, fromNullishOr as oo, catchIf as or, make$3 as ot, Unauthorized as p, isFinite$1 as pa, void_$1 as pi, Pointer as pn, isSome as po, effectify as pr, BooleanLiterals as pt, tapError as q, getOrUndefined as qa, hasInterrupts as qi, interrupt as qn, constFalse as qo, raceFirst as qr, fromJsonString as qt, read as r, LogToStderr as ra, suspend$2 as ri, decodeUnknownEffect$1 as rn, flatMapNullishOr as ro, catchCause$1 as rr, getAndIncrement as rt, Unsupported as s, TracerTimingEnabled as sa, tryPromise as si, toEncoded$1 as sn, fromUndefinedOr as so, catchReason$2 as sr, set as st, Sandcovery as t, ClockRef as ta, sleep as ti, toCodecJson as tn, firstSomeOf as to, cached as tr, pipe as ts, decrement as tt, NoProviderAvailable as u, TaggedError$1 as ua, uninterruptibleMask as ui, passthrough$1 as un, getOrThrowWith$1 as uo, catch_$1 as ur, makeUnsafe as ut, DEFAULT_TTL_SECONDS as v, findLast as va, isDoneCause as vi, setAll as vn, none as vo, flatMap as vr, Json as vt, callback as w, match$3 as wa, succeed$2 as wi, fromInput$1 as wn, mapInput as wo, forkChild as wr, Option as wt, AgentId as x, isCanonicalArrayIndex as xa, mergeAll as xi, unwrap$2 as xn, toArray as xo, fnUntraced as xr, NonEmptyString as xt, Process as y, get$2 as ya, round as yi, toString as yn, orElse as yo, flatMapEager as yr, Literal as yt, mkString as z, map$6 as za, isSuccess as zi, failCauseUnsafe as zn, isNotUndefined as zo, never$1 as zr, Unknown as zt };
36916
+ export { toTransform as $, merge$3 as $a, isFailReason as $i, acquireRelease as $n, dual as $o, runPromiseExit as $r, makeFilter as $t, fail as A, reduce as Aa, addFinalizerExit as Ai, merge$2 as An, getStackTraceLimit as Ao, gen as Ar, Record as At, mkUint8Array as B, isResult as Ba, fail$5 as Bi, fromInputUnsafe as Bn, isNotNullish as Bo, matchCauseEffect as Br, Union as Bt, SandboxId as C, head as Ca, effect as Ci, fromBody as Cn, toArray as Co, fn as Cr, Number$1 as Ct, drainFork as D, match$3 as Da, succeed$2 as Di, fromInput$1 as Dn, Prototype as Do, forkChild as Dr, OptionFromOptionalNullOr as Dt, decodeText as E, map$4 as Ea, provideMerge as Ei, empty$3 as En, mapInput as Eo, forever as Er, OptionFromOptionalKey as Et, interruptWhen as F, map$5 as Fa, doneUnsafe as Fi, make$9 as Fn, format$1 as Fo, logError as Fr, TaggedError as Ft, splitLines as G, Reference as Ga, Done as Gi, offerUnsafe as Gn, isTagged as Go, onInterrupt as Gr, decodeUnknownEffect as Gt, runCollect as H, map$6 as Ha, isSuccess as Hi, failCauseUnsafe as Hn, isNullish as Ho, never$1 as Hr, declare as Ht, isStream as I, all$3 as Ia, fail$4 as Ii, value as In, redact$2 as Io, map$1 as Ir, TaggedUnion as It, toReadableStreamEffect as J, empty$6 as Ja, fail$6 as Ji, take as Jn, ownEnumerableKeys as Jo, provideContext as Jr, encodeSync as Jt, suspend as K, Service$1 as Ka, UnknownError as Ki, poll as Kn, isUndefined as Ko, orDie as Kr, decodeUnknownOption as Kt, merge as L, fail$8 as La, isDone as Li, stringOrRedacted as Ln, hasProperty as Lo, mapEager as Lr, Trim as Lt, fromChannel as M, fromIterableWith as Ma, makeUnsafe$3 as Mi, set$1 as Mn, BaseProto as Mo, ignoreCause as Mr, SchemaError$1 as Mt, fromPull as N, get$3 as Na, provide$3 as Ni, setAll$1 as Nn, Class$1 as No, interrupt$1 as Nr, String$1 as Nt, empty as O, matchLeft as Oa, Scope as Oi, fromRecordUnsafe as On, PipeInspectableProto as Oo, forkScoped as Or, ReadonlyMap as Ot, fromReadableStream as P, getSomes as Pa, _await as Pi, isRedacted as Pn, NodeInspectSymbol as Po, isEffect as Pr, Struct as Pt, mapDone as Q, make$18 as Qa, isDieReason as Qi, runIn as Qn, constant as Qo, runForkWith as Qr, make$4 as Qt, mkArrayBuffer as R, getOrThrow as Ra, isDoneUnsafe as Ri, fromSetCookie as Rn, isFunction as Ro, mapError as Rr, TrueLiterals as Rt, KeySecret as S, get$2 as Sa, round as Si, toString as Sn, some as So, flatMapEager as Sr, NullOr as St, catchReason as T, isReadonlyArrayNonEmpty as Ta, provide$2 as Ti, CurrentRedactedNames$1 as Tn, String$5 as To, forEach as Tr, OptionFromOptional as Tt, runDrain as U, succeed$5 as Ua, succeed$3 as Ui, make$13 as Un, isObjectKeyword as Uo, onError as Ur, decodeEffect as Ut, run as V, isSuccess$1 as Va, isFailure as Vi, endUnsafe as Vn, isNotUndefined as Vo, matchEffect as Vr, Unknown as Vt, runForEach as W, try_$2 as Wa, void_$2 as Wi, offer as Wn, isString$1 as Wo, onExit$1 as Wr, decodeTo as Wt, unwrap as X, getOrUndefined as Xa, hasInterrupts as Xi, interrupt as Xn, constTrue as Xo, raceFirst as Xr, is as Xt, transduce as Y, get$4 as Ya, fromReasons as Yi, getCurrent as Yn, constFalse as Yo, provideService as Yr, fromJsonString as Yt, fromTransform as Z, getUnsafe$1 as Za, hasInterruptsOnly as Zi, join as Zn, constVoid as Zo, runFork as Zr, isNonEmpty as Zt, isHttpMethod as _, toMillis as _a, withFiber as _i, CurrentRedactedNames as _n, liftThrowable as _o, ensuring$2 as _r, Finite as _t, CliSignInStart as a, ConsoleRef as aa, succeed$1 as ai, withDecodingDefaultKey as an, flatMap$3 as ao, callback$1 as ar, increment as at, ProcessTerminal as b, findFirstIndex as ba, catchDone as bi, redactUrl as bn, none as bo, failSync as br, Literals as bt, ProviderError as c, MinimumLogLevel as ca, tap as ci, decodeTo$1 as cn, fromNullishOr as co, catchFilter as cr, update as ct, Conflict as d, DisablePropagation as da, try_ as di, unknown as dn, getOrNull as do, catchTag as dr, ArraySchema as dt, makeDieReason as ea, runSync$1 as ei, optional as en, all$4 as eo, addFinalizer as er, flow as es, unwrap$1 as et, SANDCOVERY_ORIGIN as f, Error$2 as fa, uninterruptible as fi, Transformation as fn, getOrThrowWith$1 as fo, catchTags as fr, Boolean$1 as ft, allShort as g, isFinite$1 as ga, void_$1 as gi, Pointer as gn, liftPredicate as go, effectify as gr, FalseLiterals as gt, fromApi as h, fromInputUnsafe$1 as ha, useSpan as hi, InvalidValue as hn, isSome as ho, contextWith as hr, Error$1 as ht, SandcoveryApi as i, ClockRef as ia, sleep as ii, toCodecStringTree as in, firstSomeOf as io, cached as ir, pipeArguments as is, getAndSet as it, fromAsyncIterable as j, sort as ja, close as ji, remove as jn, setStackTraceLimit as jo, ignore as jr, RedactedFromValue as jt, ensuring as k, of as ka, addFinalizer$1 as ki, isRedactedName$1 as kn, withFiber$1 as ko, fromResult as kr, ReadonlySet as kt, NotFound as l, TracerEnabled as la, tapCause as li, getIndexSignatureKeys as ln, fromUndefinedOr as lo, catchIf as lr, updateAndGet as lt, Forbidden as m, taggedEnum as ma, updateContext as mi, transformEffect$1 as mn, isNone as mo, context as mr, Defect as mt, call as n, reasonAnnotations as na, scoped as ni, tag as nn, exists as no, andThen as nr, memoize as ns, get$1 as nt, CliSignInToken as o, LogToStderr as oa, suspend$2 as oi, decodeUnknownEffect$1 as on, flatten$1 as oo, catchCause$1 as or, make$3 as ot, Unauthorized as p, TaggedError$1 as pa, uninterruptibleMask as pi, passthrough$1 as pn, getOrUndefined$1 as po, catch_$1 as pr, BooleanLiterals as pt, tapError as q, add as qa, done$1 as qi, sliding as qn, assignProperty as qo, provide as qr, decodeUnknownSync as qt, read as r, squash as ra, serviceOption as ri, toCodecJson as rn, filter as ro, as as rr, pipe as rs, getAndIncrement as rt, Unsupported as s, sync$1 as sa, sync as si, applyToSelfOrLastLinkEncoding as sn, fromNullOr as so, catchEager as sr, set as st, Sandcovery as t, makeFailReason as ta, scope as ti, optionalKey as tn, contains as to, all$1 as tr, identity as ts, decrement as tt, NoProviderAvailable as u, TracerTimingEnabled as ua, tryPromise as ui, toEncoded$1 as un, getOrElse$1 as uo, catchReason$2 as ur, makeUnsafe as ut, DEFAULT_TTL_SECONDS as v, empty$4 as va, withParentSpan as vi, empty$2 as vn, map$7 as vo, fail$3 as vr, Json as vt, callback as w, isCanonicalArrayIndex as wa, mergeAll as wi, unwrap$2 as wn, zipWith$2 as wo, fnUntraced as wr, Option as wt, AgentId as x, findLast as xa, isDoneCause as xi, setAll as xn, orElse as xo, flatMap as xr, NonEmptyString as xt, Process as y, findFirst as ya, zipWith as yi, fromInput as yn, match$5 as yo, failCause$2 as yr, Literal as yt, mkString as z, isFailure$1 as za, makeUnsafe$4 as zi, bytes as zn, isNotNull as zo, match as zr, URL$1 as zt };
@@ -1,5 +1,5 @@
1
- import { $a as exists, $o as identity, Ba as succeed, Ia as isFailure, Ko as ownEnumerableKeys, La as isResult, Mt as Struct, Ot as Record, Pa as fail, Ra as isSuccess, Ro as isNotNullish, Va as try_, W as runForEach, Wt as decodeUnknownOption, Xr as runPromiseExit, _o as match, bo as some, co as getOrElse, dt as ArraySchema, eo as filter, fo as isNone, go as map, ho as liftThrowable, j as fromAsyncIterable, jt as String$1, lt as updateAndGet, no as flatMap, ns as pipeArguments, oo as fromNullishOr, ot as make, po as isSome, qt as fromJsonString, si as tryPromise, so as fromUndefinedOr, vo as none, xo as toArray, yt as Literal } from "./src-Ce-b80jJ.mjs";
2
- import { f as writePrivateFile, p as v7, u as stopSignalOf } from "./saved-sandboxes-XNeQ5SEm.mjs";
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 $, SpendLimitPeriod as $n, PortPreview as $t, CatalogBrandTerms as A, ProviderSort as An, Health as At, CiJobConclusion as B, Sandbox as Bn, MonthlyCost as Bt, BenchmarkResult as C, ProviderCatalogEntryUptime as Cn, VendorIncidentRead as Cr, FileEntry as Ct, BrandImage as D, ProviderFeatures as Dn, GPU_TYPES as Dt, BodyTooLargeError as E, ProviderError as En, XAccountStatus as Er, ForbiddenError as Et, CatalogOperatingSystems as F, RateLimitedError as Fn, LiveCheckOutcome as Ft, CliSignInStatus as G, SecurityText as Gn, Offer as Gt, CiRunnerFailure as H, SandboxList as Hn, NoProviderAvailableError as Ht, CatalogText as I, Region as In, LiveCheckResult as It, ConcurrencyLimitReachedError as J, SharedUsageFigure as Jn, PROVIDERS as Jt, CliSignInToken as K, SharedStats as Kn, OperatingSystem as Kt, CiInstallation as L, RetryLaterError as Ln, LiveSandboxStatus as Lt, CatalogGpus as M, Provider_1 as Mn, InvalidRequestError as Mt, CatalogLimit as N, REGIONS as Nn, Key as Nt, CI_JOB_CONCLUSIONS as O, ProviderPreferences as On, Gpu as Ot, CatalogList as P, RateCardBasis as Pn, KeyList as Pt, CreateFailureReason as Q, SpendLimit as Qn, PlanBiller as Qt, CiInstallationList as R, SLUGS as Rn, LiveSandboxes as Rt, Badge as S, ProviderCatalogEntryRates as Sn, VendorIncident as Sr, ExecResult as St, BillingPortalSession as T, ProviderCredentialList as Tn, XAccountLink as Tr, FileList as Tt, CliSignIn as U, SandboxStatus as Un, NotFoundError as Ut, CiJobList as V, SandboxCost as Vn, MonthlyCostList as Vt, CliSignInStart as W, SecurityList as Wn, OPERATING_SYSTEMS as Wt, CreateAgentRequest as X, Snapshot as Xn, PaidPlan as Xt, ConflictError as Y, Slug as Yn, PROVIDER_1S as Yt, CreateAttempt as Z, SnapshotList as Zn, Plan as Zt, AgentWebLink as _, ProviderCatalogEntryLimits as _n, UsageShare as _r, Estimate as _t, ActivityList as a, ProcessRequest as an, StatsShare as ar, CredentialChoicesRequest as at, AutoTopUpChange as b, ProviderCatalogEntryPolicy as bn, UsageTotal as br, ExecEvent as bt, AgentLogs as c, Provider as cn, ThemeBrandImage as cr, CredentialRejectedError as ct, AgentPresetList as d, ProviderBoardEntry as dn, UpdateKeyRequest as dr, CreditTerms as dt, Pricing as en, SpendLimitReachedError as er, CreateSandboxRequest as et, AgentRouting as f, ProviderCatalog as fn, UsableKey as fr, DetachedExec as ft, AgentWebApp as g, ProviderCatalogEntryCreateLatencyMs as gn, UsagePeriod as gr, EgressPolicy as gt, AgentStatus as h, ProviderCatalogEntryCapabilities as hn, UsageDay as hr, EgressMode as ht, ActivityEvent as i, Process as in, StatsDay as ir, CredentialChoices as it, CatalogFlag as j, ProviderStatus as jn, IncidentImpact as jt, CatalogBenchmarkTerms as k, ProviderSecurity as kn, GpuType as kt, AgentNativeSetup as l, ProviderBenchmarkRun as ln, UnauthorizedError as lr, CreditCheckout as lt, AgentSshRequest as m, ProviderCatalogEntryBrand as mn, Usage as mr, EGRESS_MODES as mt, AccountLimit as n, ProPrice as nn, StartCliSignInRequest as nr, CreatedKey as nt, Agent as o, ProcessStatus as on, SubscriptionCheckout as or, CredentialField as ot, AgentSessionRequest as p, ProviderCatalogEntry as pn, UsableKeyList as pr, DetachedExecRequest as pt, CollectCliSignInRequest as q, SharedUsage as qn, OperatingSystemPick as qt, ActivityAction as r, ProblemReportRequest as rn, Stats as rr, CredentialChoice as rt, AgentList as s, ProcessTerminal as sn, SubscriptionCheckoutRequest as sr, CredentialFields as st, ACTIVITY_ACTIONS as t, ProInterval as tn, StandardSize as tr, CreateUsageShareRequest as tt, AgentPreset as u, ProviderBoard as un, UnsupportedError as ur, CreditPurchaseRequest as ut, ApiError as v, ProviderCatalogEntryLinks as vn, UsageShareFigure as vr, EstimateList as vt, Billing as w, ProviderCredential as wn, XAccount as wr, FileEntryType as wt, AutoTopUpRequest as x, ProviderCatalogEntryPricesItem as xn, UsageTotals as xr, ExecRequest as xt, AutoTopUp as y, ProviderCatalogEntryOperatingSystems as yn, UsageShareList as yr, EstimateRequest as yt, CiJob as z, STANDARD_SIZES as zn, LiveUsage as zt };
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 SpendLimitPeriod, $t as PortPreview, A as CatalogBrandTerms, An as ProviderSort, At as Health, B as CiJobConclusion, Bn as Sandbox, Bt as MonthlyCost, C as BenchmarkResult, Cn as ProviderCatalogEntryUptime, Cr as VendorIncidentRead, Ct as FileEntry, D as BrandImage, Dn as ProviderFeatures, Dt as GPU_TYPES, E as BodyTooLargeError, En as ProviderError, Er as XAccountStatus, Et as ForbiddenError, F as CatalogOperatingSystems, Fn as RateLimitedError, Ft as LiveCheckOutcome, G as CliSignInStatus, Gn as SecurityText, Gt as Offer, H as CiRunnerFailure, Hn as SandboxList, Ht as NoProviderAvailableError, I as CatalogText, In as Region, It as LiveCheckResult, J as ConcurrencyLimitReachedError, Jn as SharedUsageFigure, Jt as PROVIDERS, K as CliSignInToken, Kn as SharedStats, Kt as OperatingSystem, L as CiInstallation, Ln as RetryLaterError, Lt as LiveSandboxStatus, M as CatalogGpus, Mn as Provider_1, Mt as InvalidRequestError, N as CatalogLimit, Nn as REGIONS, Nt as Key, O as CI_JOB_CONCLUSIONS, On as ProviderPreferences, Ot as Gpu, P as CatalogList, Pn as RateCardBasis, Pt as KeyList, Q as CreateFailureReason, Qn as SpendLimit, Qt as PlanBiller, R as CiInstallationList, Rn as SLUGS, Rt as LiveSandboxes, S as Badge, Sn as ProviderCatalogEntryRates, Sr as VendorIncident, St as ExecResult, T as BillingPortalSession, Tn as ProviderCredentialList, Tr as XAccountLink, Tt as FileList, U as CliSignIn, Un as SandboxStatus, Ut as NotFoundError, V as CiJobList, Vn as SandboxCost, Vt as MonthlyCostList, W as CliSignInStart, Wn as SecurityList, Wt as OPERATING_SYSTEMS, X as CreateAgentRequest, Xn as Snapshot, Xt as PaidPlan, Y as ConflictError, Yn as Slug, Yt as PROVIDER_1S, Z as CreateAttempt, Zn as SnapshotList, Zt as Plan, _ as AgentWebLink, _n as ProviderCatalogEntryLimits, _r as UsageShare, _t as Estimate, a as ActivityList, an as ProcessRequest, ar as StatsShare, at as CredentialChoicesRequest, b as AutoTopUpChange, bn as ProviderCatalogEntryPolicy, br as UsageTotal, bt as ExecEvent, c as AgentLogs, cn as Provider, cr as ThemeBrandImage, ct as CredentialRejectedError, d as AgentPresetList, dn as ProviderBoardEntry, dr as UpdateKeyRequest, dt as CreditTerms, en as Pricing, er as SpendLimitReachedError, et as CreateSandboxRequest, f as AgentRouting, fn as ProviderCatalog, fr as UsableKey, ft as DetachedExec, g as AgentWebApp, gn as ProviderCatalogEntryCreateLatencyMs, gr as UsagePeriod, gt as EgressPolicy, h as AgentStatus, hn as ProviderCatalogEntryCapabilities, hr as UsageDay, ht as EgressMode, i as ActivityEvent, in as Process, ir as StatsDay, it as CredentialChoices, j as CatalogFlag, jn as ProviderStatus, jt as IncidentImpact, k as CatalogBenchmarkTerms, kn as ProviderSecurity, kt as GpuType, l as AgentNativeSetup, ln as ProviderBenchmarkRun, lr as UnauthorizedError, lt as CreditCheckout, m as AgentSshRequest, mn as ProviderCatalogEntryBrand, mr as Usage, mt as EGRESS_MODES, n as AccountLimit, nn as ProPrice, nr as StartCliSignInRequest, nt as CreatedKey, o as Agent, on as ProcessStatus, or as SubscriptionCheckout, ot as CredentialField, p as AgentSessionRequest, pn as ProviderCatalogEntry, pr as UsableKeyList, pt as DetachedExecRequest, q as CollectCliSignInRequest, qn as SharedUsage, qt as OperatingSystemPick, r as ActivityAction, rn as ProblemReportRequest, rr as Stats, rt as CredentialChoice, s as AgentList, sn as ProcessTerminal, sr as SubscriptionCheckoutRequest, st as CredentialFields, t as ACTIVITY_ACTIONS, tn as ProInterval, tr as StandardSize, tt as CreateUsageShareRequest, u as AgentPreset, un as ProviderBoard, ur as UnsupportedError, ut as CreditPurchaseRequest, v as ApiError, vn as ProviderCatalogEntryLinks, vr as UsageShareFigure, vt as EstimateList, w as Billing, wn as ProviderCredential, wr as XAccount, wt as FileEntryType, x as AutoTopUpRequest, xn as ProviderCatalogEntryPricesItem, xr as UsageTotals, xt as ExecRequest, y as AutoTopUp, yn as ProviderCatalogEntryOperatingSystems, yr as UsageShareList, yt as EstimateRequest, z as CiJob, zn as STANDARD_SIZES, zt as LiveUsage } from "./types-DotsDqXt.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, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandcovery",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "One API for every sandbox provider. Better prices, better uptime.",
5
5
  "keywords": [
6
6
  "daytona",