@boxes-dev/dvb-runtime 1.0.695 → 1.0.697
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 +37 -14
- package/dist/bin/dvb.cjs.map +1 -1
- package/dist/bin/dvbd.cjs +6 -6
- package/package.json +2 -2
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]="
|
|
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]="dcb885dc-d63f-5e43-b4e7-cc99b4b4b9bf")}catch(e){}}();
|
|
4
4
|
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -67514,8 +67514,8 @@ var init_otel = __esm({
|
|
|
67514
67514
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
67515
67515
|
};
|
|
67516
67516
|
readBuildMetadata = () => {
|
|
67517
|
-
const rawPackageVersion = "1.0.
|
|
67518
|
-
const rawGitSha = "
|
|
67517
|
+
const rawPackageVersion = "1.0.697";
|
|
67518
|
+
const rawGitSha = "e9ec3748ef008b823c7d05bdfe9528d2bc2fab55";
|
|
67519
67519
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
67520
67520
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
67521
67521
|
return { packageVersion, gitSha };
|
|
@@ -105481,9 +105481,9 @@ var init_sentry = __esm({
|
|
|
105481
105481
|
uncaughtExceptionMonitorInstalled = false;
|
|
105482
105482
|
currentDevboxSentryUser = null;
|
|
105483
105483
|
readBuildMetadata2 = () => {
|
|
105484
|
-
const rawPackageVersion = "1.0.
|
|
105485
|
-
const rawGitSha = "
|
|
105486
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
105484
|
+
const rawPackageVersion = "1.0.697";
|
|
105485
|
+
const rawGitSha = "e9ec3748ef008b823c7d05bdfe9528d2bc2fab55";
|
|
105486
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.697+e9ec3748ef008b823c7d05bdfe9528d2bc2fab55";
|
|
105487
105487
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
105488
105488
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
105489
105489
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -111484,7 +111484,7 @@ var init_packageVersion = __esm({
|
|
|
111484
111484
|
return import_node_path13.default.join(process.cwd(), "dvb");
|
|
111485
111485
|
};
|
|
111486
111486
|
readEmbeddedPackageVersion = () => {
|
|
111487
|
-
const raw = "1.0.
|
|
111487
|
+
const raw = "1.0.697";
|
|
111488
111488
|
return trimVersion(raw);
|
|
111489
111489
|
};
|
|
111490
111490
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -130707,7 +130707,8 @@ var init_controlPlane = __esm({
|
|
|
130707
130707
|
sandboxId: typeof response?.sandboxId === "string" ? response.sandboxId : null,
|
|
130708
130708
|
providerDestroyed: response?.providerDestroyed === true,
|
|
130709
130709
|
lifecycleRemoved: response?.lifecycleRemoved === true,
|
|
130710
|
-
instanceRemoved: response?.instanceRemoved === true
|
|
130710
|
+
instanceRemoved: response?.instanceRemoved === true,
|
|
130711
|
+
destroyedForkCount: typeof response?.destroyedForkCount === "number" ? response.destroyedForkCount : 0
|
|
130711
130712
|
};
|
|
130712
130713
|
});
|
|
130713
130714
|
};
|
|
@@ -171546,7 +171547,13 @@ var init_destroyE2b = __esm({
|
|
|
171546
171547
|
if (!result.lifecycleRemoved) {
|
|
171547
171548
|
status.stage("Managed lifecycle already removed", "warn");
|
|
171548
171549
|
}
|
|
171550
|
+
if ((result.destroyedForkCount ?? 0) > 0) {
|
|
171551
|
+
status.stage(
|
|
171552
|
+
`Deleted ${String(result.destroyedForkCount)} fork${result.destroyedForkCount === 1 ? "" : "s"}`
|
|
171553
|
+
);
|
|
171554
|
+
}
|
|
171549
171555
|
await dependencies.clearLocalState({ socketPath, alias });
|
|
171556
|
+
return result;
|
|
171550
171557
|
};
|
|
171551
171558
|
}
|
|
171552
171559
|
});
|
|
@@ -171960,7 +171967,7 @@ var init_destroy = __esm({
|
|
|
171960
171967
|
json: readBooleanFlag(flags, "json")
|
|
171961
171968
|
};
|
|
171962
171969
|
};
|
|
171963
|
-
confirmDestroy = async (displayName) => {
|
|
171970
|
+
confirmDestroy = async (displayName, warnsAboutForks) => {
|
|
171964
171971
|
if (!process.stdin.isTTY) {
|
|
171965
171972
|
throw new Error(
|
|
171966
171973
|
"Destroy needs an interactive terminal. Use `--force` to skip confirmation."
|
|
@@ -171970,6 +171977,9 @@ var init_destroy = __esm({
|
|
|
171970
171977
|
input: process.stdin,
|
|
171971
171978
|
output: process.stdout
|
|
171972
171979
|
});
|
|
171980
|
+
if (warnsAboutForks) {
|
|
171981
|
+
console.log("This also deletes any forks of this devbox.");
|
|
171982
|
+
}
|
|
171973
171983
|
const answer = await rl.question(
|
|
171974
171984
|
`Type "${displayName}" to confirm destroy: `
|
|
171975
171985
|
);
|
|
@@ -172023,11 +172033,15 @@ var init_destroy = __esm({
|
|
|
172023
172033
|
);
|
|
172024
172034
|
if (!parsed.force) {
|
|
172025
172035
|
status.stop();
|
|
172026
|
-
const confirmed = await confirmDestroy(
|
|
172036
|
+
const confirmed = await confirmDestroy(
|
|
172037
|
+
displayName,
|
|
172038
|
+
computeProvider === "e2b"
|
|
172039
|
+
);
|
|
172027
172040
|
if (!confirmed) {
|
|
172028
172041
|
throw new Error("Destroy cancelled.");
|
|
172029
172042
|
}
|
|
172030
172043
|
}
|
|
172044
|
+
let destroyedForkCount = 0;
|
|
172031
172045
|
if (computeProvider === "e2b") {
|
|
172032
172046
|
status.stage("Resolving managed provider");
|
|
172033
172047
|
const controlPlaneToken = await ensureControlPlaneToken(
|
|
@@ -172039,7 +172053,7 @@ var init_destroy = __esm({
|
|
|
172039
172053
|
"Not logged in. Run `dvb setup` to log in to boxes.dev before destroying this devbox."
|
|
172040
172054
|
);
|
|
172041
172055
|
}
|
|
172042
|
-
await destroyE2bDevbox2({
|
|
172056
|
+
const managedDestroyResult = await destroyE2bDevbox2({
|
|
172043
172057
|
alias,
|
|
172044
172058
|
socketPath: socketInfo.socketPath,
|
|
172045
172059
|
controlPlaneToken,
|
|
@@ -172049,6 +172063,7 @@ var init_destroy = __esm({
|
|
|
172049
172063
|
clearLocalState: clearDestroyLocalState
|
|
172050
172064
|
}
|
|
172051
172065
|
});
|
|
172066
|
+
destroyedForkCount = managedDestroyResult.destroyedForkCount ?? 0;
|
|
172052
172067
|
} else {
|
|
172053
172068
|
status.stage("Removing local devbox metadata");
|
|
172054
172069
|
await clearDestroyLocalState({
|
|
@@ -172079,10 +172094,18 @@ var init_destroy = __esm({
|
|
|
172079
172094
|
}
|
|
172080
172095
|
status.stop();
|
|
172081
172096
|
if (parsed.json) {
|
|
172082
|
-
console.log(
|
|
172097
|
+
console.log(
|
|
172098
|
+
JSON.stringify({ ok: true, alias, destroyedForkCount }, null, 2)
|
|
172099
|
+
);
|
|
172083
172100
|
return;
|
|
172084
172101
|
}
|
|
172085
|
-
|
|
172102
|
+
if (destroyedForkCount > 0) {
|
|
172103
|
+
console.log(
|
|
172104
|
+
`devbox destroyed: ${alias} (${String(destroyedForkCount)} fork${destroyedForkCount === 1 ? "" : "s"} also destroyed)`
|
|
172105
|
+
);
|
|
172106
|
+
} else {
|
|
172107
|
+
console.log(`devbox destroyed: ${alias}`);
|
|
172108
|
+
}
|
|
172086
172109
|
};
|
|
172087
172110
|
try {
|
|
172088
172111
|
await run2();
|
|
@@ -201442,4 +201465,4 @@ smol-toml/dist/index.js:
|
|
|
201442
201465
|
*/
|
|
201443
201466
|
//# sourceMappingURL=dvb.cjs.map
|
|
201444
201467
|
|
|
201445
|
-
//# debugId=
|
|
201468
|
+
//# debugId=dcb885dc-d63f-5e43-b4e7-cc99b4b4b9bf
|