@boxes-dev/dvb 1.0.22 → 1.0.24
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 +30 -8
- package/dist/bin/dvb.cjs.map +1 -1
- package/dist/bin/dvbd.cjs +5 -5
- package/dist/devbox/commands/version.d.ts.map +1 -1
- package/dist/devbox/commands/version.js +2 -1
- package/dist/devbox/commands/version.js.map +1 -1
- package/dist/devbox/completions/index.d.ts.map +1 -1
- package/dist/devbox/completions/index.js +2 -1
- package/dist/devbox/completions/index.js.map +1 -1
- package/dist/devbox/daemonClient.d.ts +1 -0
- package/dist/devbox/daemonClient.d.ts.map +1 -1
- package/dist/devbox/daemonClient.js +20 -0
- package/dist/devbox/daemonClient.js.map +1 -1
- package/package.json +1 -1
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]="b58a63de-f170-5c6e-8cc8-1babe78b46cc")}catch(e){}}();
|
|
4
4
|
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -88615,8 +88615,8 @@ var init_otel = __esm({
|
|
|
88615
88615
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
88616
88616
|
};
|
|
88617
88617
|
readBuildMetadata = () => {
|
|
88618
|
-
const rawPackageVersion = "1.0.
|
|
88619
|
-
const rawGitSha = "
|
|
88618
|
+
const rawPackageVersion = "1.0.24";
|
|
88619
|
+
const rawGitSha = "6e249ab7dbf89021cab66ca8e8797210f72d465c";
|
|
88620
88620
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
88621
88621
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
88622
88622
|
return { packageVersion, gitSha };
|
|
@@ -120604,9 +120604,9 @@ var init_sentry = __esm({
|
|
|
120604
120604
|
sentryEnabled = false;
|
|
120605
120605
|
uncaughtExceptionMonitorInstalled = false;
|
|
120606
120606
|
readBuildMetadata2 = () => {
|
|
120607
|
-
const rawPackageVersion = "1.0.
|
|
120608
|
-
const rawGitSha = "
|
|
120609
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
120607
|
+
const rawPackageVersion = "1.0.24";
|
|
120608
|
+
const rawGitSha = "6e249ab7dbf89021cab66ca8e8797210f72d465c";
|
|
120609
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.24+6e249ab7dbf89021cab66ca8e8797210f72d465c";
|
|
120610
120610
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
120611
120611
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
120612
120612
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -133264,7 +133264,7 @@ var init_controlPlane = __esm({
|
|
|
133264
133264
|
});
|
|
133265
133265
|
|
|
133266
133266
|
// src/devbox/daemonClient.ts
|
|
133267
|
-
var import_node_http3, import_node_module2, import_node_path9, import_node_child_process3, import_node_crypto6, import_node_fs6, import_promises6, DAEMON_TIMEOUT_MS, DaemonConnectionError, isConnectionError, expectedDaemonVersionCache, readExpectedDaemonVersion, normalizeVersion, requestJson3, requireDaemonFeatures, resolveDaemonCommand, spawnDaemon, waitForHealth, listAlternateSocketPaths, pruneDuplicateDaemons, maybeRestartDaemonForVersionMismatch, ensureDaemonRunning, waitForSocketGone, stopDaemon;
|
|
133267
|
+
var import_node_http3, import_node_module2, import_node_path9, import_node_child_process3, import_node_crypto6, import_node_fs6, import_promises6, DAEMON_TIMEOUT_MS, DaemonConnectionError, isConnectionError, expectedDaemonVersionCache, readExpectedDaemonVersion, normalizeVersion, requestJson3, requireDaemonFeatures, resolveDaemonCommand, spawnDaemon, waitForHealth, listAlternateSocketPaths, pruneDuplicateDaemons, maybeRestartDaemonForVersionMismatch, ensureDaemonRunning, ensureDaemonUpToDateIfRunning, waitForSocketGone, stopDaemon;
|
|
133268
133268
|
var init_daemonClient = __esm({
|
|
133269
133269
|
"src/devbox/daemonClient.ts"() {
|
|
133270
133270
|
"use strict";
|
|
@@ -133597,6 +133597,26 @@ var init_daemonClient = __esm({
|
|
|
133597
133597
|
spawnDaemon(socketPath);
|
|
133598
133598
|
return waitForHealth(socketPath, 5e3);
|
|
133599
133599
|
};
|
|
133600
|
+
ensureDaemonUpToDateIfRunning = async (socketPath) => {
|
|
133601
|
+
try {
|
|
133602
|
+
const response = await requestJson3(
|
|
133603
|
+
socketPath,
|
|
133604
|
+
"GET",
|
|
133605
|
+
"/health",
|
|
133606
|
+
DAEMON_TIMEOUT_MS.health
|
|
133607
|
+
);
|
|
133608
|
+
if (response.status === 200 && response.body.ok) {
|
|
133609
|
+
await pruneDuplicateDaemons(socketPath);
|
|
133610
|
+
return await maybeRestartDaemonForVersionMismatch(
|
|
133611
|
+
socketPath,
|
|
133612
|
+
response.body
|
|
133613
|
+
);
|
|
133614
|
+
}
|
|
133615
|
+
} catch (error2) {
|
|
133616
|
+
if (!isConnectionError(error2)) throw error2;
|
|
133617
|
+
}
|
|
133618
|
+
return null;
|
|
133619
|
+
};
|
|
133600
133620
|
waitForSocketGone = async (socketPath, timeoutMs = 3e3) => {
|
|
133601
133621
|
const deadline = Date.now() + timeoutMs;
|
|
133602
133622
|
while (Date.now() < deadline) {
|
|
@@ -138919,6 +138939,7 @@ var init_completions = __esm({
|
|
|
138919
138939
|
cache.aliasesLastAttemptAt = attemptAt;
|
|
138920
138940
|
try {
|
|
138921
138941
|
const socketInfo = resolveSocketInfo();
|
|
138942
|
+
await ensureDaemonUpToDateIfRunning(socketInfo.socketPath);
|
|
138922
138943
|
const response = await requestJson3(
|
|
138923
138944
|
socketInfo.socketPath,
|
|
138924
138945
|
"GET",
|
|
@@ -153724,6 +153745,7 @@ var init_version2 = __esm({
|
|
|
153724
153745
|
await store.getControlPlaneRefreshToken()
|
|
153725
153746
|
);
|
|
153726
153747
|
const socketInfo = resolveSocketInfo();
|
|
153748
|
+
await ensureDaemonUpToDateIfRunning(socketInfo.socketPath);
|
|
153727
153749
|
const daemon = await tryReadDaemonInfo(socketInfo.socketPath);
|
|
153728
153750
|
if (parsed.json) {
|
|
153729
153751
|
console.log(
|
|
@@ -155086,4 +155108,4 @@ smol-toml/dist/index.js:
|
|
|
155086
155108
|
*/
|
|
155087
155109
|
//# sourceMappingURL=dvb.cjs.map
|
|
155088
155110
|
|
|
155089
|
-
//# debugId=
|
|
155111
|
+
//# debugId=b58a63de-f170-5c6e-8cc8-1babe78b46cc
|