@boxes-dev/dvb-runtime 1.0.732 → 1.0.733

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/dvb.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="52ff2046-0149-5ac6-9c3f-508d7e0ae0fe")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3bc2562b-67ab-5046-bbaa-5356269c324d")}catch(e){}}();
4
4
 
5
5
  var __create = Object.create;
6
6
  var __defProp = Object.defineProperty;
@@ -74555,8 +74555,8 @@ var init_otel = __esm({
74555
74555
  return trimmed && trimmed.length > 0 ? trimmed : void 0;
74556
74556
  };
74557
74557
  readBuildMetadata = () => {
74558
- const rawPackageVersion = "1.0.732";
74559
- const rawGitSha = "5e6e7d14198b9ddc70ab71a268eb17d6518072ec";
74558
+ const rawPackageVersion = "1.0.733";
74559
+ const rawGitSha = "fbcdaeb1ba3ec94697208bb981cdf8d4cecd01d9";
74560
74560
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
74561
74561
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
74562
74562
  return { packageVersion, gitSha };
@@ -112515,9 +112515,9 @@ var init_sentry = __esm({
112515
112515
  uncaughtExceptionMonitorInstalled = false;
112516
112516
  currentDevboxSentryUser = null;
112517
112517
  readBuildMetadata2 = () => {
112518
- const rawPackageVersion = "1.0.732";
112519
- const rawGitSha = "5e6e7d14198b9ddc70ab71a268eb17d6518072ec";
112520
- const rawSentryRelease = "boxes-dev-dvb@1.0.732+5e6e7d14198b9ddc70ab71a268eb17d6518072ec";
112518
+ const rawPackageVersion = "1.0.733";
112519
+ const rawGitSha = "fbcdaeb1ba3ec94697208bb981cdf8d4cecd01d9";
112520
+ const rawSentryRelease = "boxes-dev-dvb@1.0.733+fbcdaeb1ba3ec94697208bb981cdf8d4cecd01d9";
112521
112521
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
112522
112522
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
112523
112523
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -118631,7 +118631,7 @@ var init_packageVersion = __esm({
118631
118631
  return import_node_path16.default.join(process.cwd(), "dvb");
118632
118632
  };
118633
118633
  readEmbeddedPackageVersion = () => {
118634
- const raw = "1.0.732";
118634
+ const raw = "1.0.733";
118635
118635
  return trimVersion(raw);
118636
118636
  };
118637
118637
  readNearestPackageMetadata = (basePath) => {
@@ -133601,6 +133601,9 @@ var init_controlPlane = __esm({
133601
133601
  if (!isRecord(error2) || !isRecord(error2.data)) {
133602
133602
  return null;
133603
133603
  }
133604
+ if (error2.data.code === "billing_blocked" && typeof error2.data.userMessage === "string" && error2.data.userMessage.trim().length > 0) {
133605
+ return new Error(error2.data.userMessage.trim());
133606
+ }
133604
133607
  if (error2.data.code !== E2B_DEVBOX_ALIAS_EXISTS_CODE) {
133605
133608
  return null;
133606
133609
  }
@@ -134308,9 +134311,12 @@ var init_controlPlane = __esm({
134308
134311
  };
134309
134312
  });
134310
134313
  };
134311
- provisionE2bDevbox = async (token, alias) => {
134314
+ provisionE2bDevbox = async (token, alias, options = {}) => {
134312
134315
  return await withConvexClient(token, async (client) => {
134313
- const response = await client.action(e2bDevboxProvision, { alias }).catch(
134316
+ const response = await client.action(e2bDevboxProvision, {
134317
+ alias,
134318
+ projectFingerprint: options.projectFingerprint ?? null
134319
+ }).catch(
134314
134320
  (error2) => mapE2bProvisionControlPlaneError({
134315
134321
  error: error2,
134316
134322
  requestedAlias: alias
@@ -201862,10 +201868,11 @@ var init_resolve = __esm({
201862
201868
  await e2bOperations.getDevbox(controlPlaneToken, name)
201863
201869
  );
201864
201870
  });
201865
- const createInstance = options?.createInstance ?? (async (name) => {
201871
+ const createInstance = options?.createInstance ?? (async (name, createOptions) => {
201866
201872
  const lifecycle = await e2bOperations.provisionDevbox(
201867
201873
  controlPlaneToken,
201868
- name
201874
+ name,
201875
+ { projectFingerprint: createOptions.projectFingerprint }
201869
201876
  );
201870
201877
  return {
201871
201878
  provider: "e2b",
@@ -201977,6 +201984,7 @@ var init_e2b = __esm({
201977
201984
  parsed,
201978
201985
  shouldResume,
201979
201986
  alias,
201987
+ projectFingerprint,
201980
201988
  workdir,
201981
201989
  progressEnabled,
201982
201990
  client,
@@ -202093,7 +202101,9 @@ var init_e2b = __esm({
202093
202101
  workdir,
202094
202102
  instanceCreateStartedAt: getInitState()?.instanceCreateStartedAt ?? (/* @__PURE__ */ new Date()).toISOString()
202095
202103
  });
202096
- const created = await client.createInstance(alias);
202104
+ const created = await client.createInstance(alias, {
202105
+ projectFingerprint
202106
+ });
202097
202107
  const sandboxId = typeof created.providerInstanceId === "string" ? created.providerInstanceId.trim() : "";
202098
202108
  if (!sandboxId) {
202099
202109
  throw new Error("Managed devbox provision did not return an id.");
@@ -204713,6 +204723,7 @@ var init_init = __esm({
204713
204723
  parsed,
204714
204724
  shouldResume,
204715
204725
  alias,
204726
+ projectFingerprint: fingerprint,
204716
204727
  workdir,
204717
204728
  progressEnabled,
204718
204729
  client,
@@ -209606,4 +209617,4 @@ smol-toml/dist/index.js:
209606
209617
  */
209607
209618
  //# sourceMappingURL=dvb.cjs.map
209608
209619
 
209609
- //# debugId=52ff2046-0149-5ac6-9c3f-508d7e0ae0fe
209620
+ //# debugId=3bc2562b-67ab-5046-bbaa-5356269c324d