@boxes-dev/dvb-runtime 1.0.185 → 1.0.186
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 +41 -9
- package/dist/bin/dvb.cjs.map +1 -1
- package/dist/bin/dvbd.cjs +6 -6
- package/dist/devbox/commands/init/provider/modal.d.ts.map +1 -1
- package/dist/devbox/commands/init/provider/modal.js +25 -1
- package/dist/devbox/commands/init/provider/modal.js.map +1 -1
- 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]="dab189dc-59c8-54af-b40c-b5ea0eb33006")}catch(e){}}();
|
|
4
4
|
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -88688,8 +88688,8 @@ var init_otel = __esm({
|
|
|
88688
88688
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
88689
88689
|
};
|
|
88690
88690
|
readBuildMetadata = () => {
|
|
88691
|
-
const rawPackageVersion = "1.0.
|
|
88692
|
-
const rawGitSha = "
|
|
88691
|
+
const rawPackageVersion = "1.0.186";
|
|
88692
|
+
const rawGitSha = "f12e4dee5a3533b641109fa484a2599f48441723";
|
|
88693
88693
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
88694
88694
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
88695
88695
|
return { packageVersion, gitSha };
|
|
@@ -120881,9 +120881,9 @@ var init_sentry = __esm({
|
|
|
120881
120881
|
sentryEnabled = false;
|
|
120882
120882
|
uncaughtExceptionMonitorInstalled = false;
|
|
120883
120883
|
readBuildMetadata2 = () => {
|
|
120884
|
-
const rawPackageVersion = "1.0.
|
|
120885
|
-
const rawGitSha = "
|
|
120886
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
120884
|
+
const rawPackageVersion = "1.0.186";
|
|
120885
|
+
const rawGitSha = "f12e4dee5a3533b641109fa484a2599f48441723";
|
|
120886
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.186+f12e4dee5a3533b641109fa484a2599f48441723";
|
|
120887
120887
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
120888
120888
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
120889
120889
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -124880,7 +124880,7 @@ var init_packageVersion = __esm({
|
|
|
124880
124880
|
return import_node_path8.default.join(process.cwd(), "dvb");
|
|
124881
124881
|
};
|
|
124882
124882
|
readEmbeddedPackageVersion = () => {
|
|
124883
|
-
const raw = "1.0.
|
|
124883
|
+
const raw = "1.0.186";
|
|
124884
124884
|
return trimVersion(raw);
|
|
124885
124885
|
};
|
|
124886
124886
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -221881,7 +221881,7 @@ var init_resolve = __esm({
|
|
|
221881
221881
|
});
|
|
221882
221882
|
|
|
221883
221883
|
// src/devbox/commands/init/provider/modal.ts
|
|
221884
|
-
var resolveModalControlPlaneToken, createModalResumeRestoreError, confirmTerminateExistingModalSandbox, runModalProviderInitPhases;
|
|
221884
|
+
var MODAL_TERMINATION_PROPAGATION_TIMEOUT_MS, MODAL_TERMINATION_PROPAGATION_POLL_INTERVAL_MS, sleep3, resolveModalControlPlaneToken, createModalResumeRestoreError, confirmTerminateExistingModalSandbox, waitForModalSandboxAbsenceAfterTermination, runModalProviderInitPhases;
|
|
221885
221885
|
var init_modal = __esm({
|
|
221886
221886
|
"src/devbox/commands/init/provider/modal.ts"() {
|
|
221887
221887
|
"use strict";
|
|
@@ -221892,6 +221892,9 @@ var init_modal = __esm({
|
|
|
221892
221892
|
init_logger3();
|
|
221893
221893
|
init_progress();
|
|
221894
221894
|
init_sshConfig();
|
|
221895
|
+
MODAL_TERMINATION_PROPAGATION_TIMEOUT_MS = 6e4;
|
|
221896
|
+
MODAL_TERMINATION_PROPAGATION_POLL_INTERVAL_MS = 500;
|
|
221897
|
+
sleep3 = async (ms) => await new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
221895
221898
|
resolveModalControlPlaneToken = (options) => {
|
|
221896
221899
|
const raw = options?.credentials?.controlPlaneToken;
|
|
221897
221900
|
if (typeof raw !== "string") return null;
|
|
@@ -221933,6 +221936,30 @@ var init_modal = __esm({
|
|
|
221933
221936
|
}
|
|
221934
221937
|
return true;
|
|
221935
221938
|
};
|
|
221939
|
+
waitForModalSandboxAbsenceAfterTermination = async ({
|
|
221940
|
+
alias,
|
|
221941
|
+
modalOperationOptions,
|
|
221942
|
+
timeoutMs = MODAL_TERMINATION_PROPAGATION_TIMEOUT_MS,
|
|
221943
|
+
pollIntervalMs = MODAL_TERMINATION_PROPAGATION_POLL_INTERVAL_MS
|
|
221944
|
+
}) => {
|
|
221945
|
+
const deadline = Date.now() + timeoutMs;
|
|
221946
|
+
while (true) {
|
|
221947
|
+
const existing = await findModalSandbox(
|
|
221948
|
+
{ alias, includeFinished: true },
|
|
221949
|
+
modalOperationOptions
|
|
221950
|
+
);
|
|
221951
|
+
if (!existing) {
|
|
221952
|
+
return;
|
|
221953
|
+
}
|
|
221954
|
+
const remainingMs = deadline - Date.now();
|
|
221955
|
+
if (remainingMs <= 0) {
|
|
221956
|
+
throw new Error(
|
|
221957
|
+
`Timed out waiting for modal sandbox alias "${alias}" to disappear after termination. Last seen sandbox id "${existing.sandboxId}" with status "${existing.status}".`
|
|
221958
|
+
);
|
|
221959
|
+
}
|
|
221960
|
+
await sleep3(Math.min(pollIntervalMs, remainingMs));
|
|
221961
|
+
}
|
|
221962
|
+
};
|
|
221936
221963
|
runModalProviderInitPhases = async ({
|
|
221937
221964
|
parsed,
|
|
221938
221965
|
shouldResume,
|
|
@@ -222106,6 +222133,11 @@ var init_modal = __esm({
|
|
|
222106
222133
|
`Modal reported ALREADY_EXISTS for alias "${alias}", but no matching sandbox was found to terminate.`
|
|
222107
222134
|
);
|
|
222108
222135
|
}
|
|
222136
|
+
status.stage("Waiting for Modal to finalize termination");
|
|
222137
|
+
await waitForModalSandboxAbsenceAfterTermination({
|
|
222138
|
+
alias,
|
|
222139
|
+
...modalOperationOptions ? { modalOperationOptions } : {}
|
|
222140
|
+
});
|
|
222109
222141
|
status.stage("Provisioning in Modal");
|
|
222110
222142
|
const reprovisioned = await provisionModalSandbox(
|
|
222111
222143
|
alias,
|
|
@@ -229743,4 +229775,4 @@ smol-toml/dist/index.js:
|
|
|
229743
229775
|
*/
|
|
229744
229776
|
//# sourceMappingURL=dvb.cjs.map
|
|
229745
229777
|
|
|
229746
|
-
//# debugId=
|
|
229778
|
+
//# debugId=dab189dc-59c8-54af-b40c-b5ea0eb33006
|