@boxes-dev/dvb-runtime 1.0.1108 → 1.0.1110
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.mjs +43 -9
- package/dist/bin/dvbd.mjs +34 -9
- package/dist/product-docs/references/desktop-workbench.md +7 -2
- package/dist/product-docs/references/fork-workflows.md +17 -0
- package/dist/product-docs/references/mobile.md +3 -3
- package/dist/product-docs/references/onbox-agent-tools.md +11 -0
- package/dist/product-docs/references/ports-terminal-and-runtime.md +32 -0
- package/dist/product-docs/references/threads-and-agents.md +13 -9
- package/dist/product-docs/references/troubleshooting.md +16 -0
- package/package.json +2 -2
package/dist/bin/dvb.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
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]="b75ee37e-da65-53e0-8c16-cf918b68afea")}catch(e){}}();
|
|
4
4
|
import { createRequire as __dvbCreateRequire } from "node:module";
|
|
5
5
|
import { dirname as __dvbDirname } from "node:path";
|
|
6
6
|
import { fileURLToPath as __dvbFileURLToPath } from "node:url";
|
|
@@ -70400,9 +70400,9 @@ var init_sentry = __esm({
|
|
|
70400
70400
|
uncaughtExceptionMonitorInstalled = false;
|
|
70401
70401
|
currentDevboxSentryUser = null;
|
|
70402
70402
|
readBuildMetadata = () => {
|
|
70403
|
-
const rawPackageVersion = "1.0.
|
|
70404
|
-
const rawGitSha = "
|
|
70405
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
70403
|
+
const rawPackageVersion = "1.0.1110";
|
|
70404
|
+
const rawGitSha = "6e7b194ea70de8578eaaf7d8a423140209cd0369";
|
|
70405
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.1110+6e7b194ea70de8578eaaf7d8a423140209cd0369";
|
|
70406
70406
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
70407
70407
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
70408
70408
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -76046,7 +76046,7 @@ var init_packageVersion = __esm({
|
|
|
76046
76046
|
return path18.join(process.cwd(), "dvb");
|
|
76047
76047
|
};
|
|
76048
76048
|
readEmbeddedPackageVersion = () => {
|
|
76049
|
-
const raw = "1.0.
|
|
76049
|
+
const raw = "1.0.1110";
|
|
76050
76050
|
return trimVersion(raw);
|
|
76051
76051
|
};
|
|
76052
76052
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -94824,7 +94824,7 @@ var init_help = __esm({
|
|
|
94824
94824
|
|
|
94825
94825
|
// ../daemon/src/spritesRegistry.ts
|
|
94826
94826
|
import { createHash as createHash6, randomUUID as randomUUID6 } from "node:crypto";
|
|
94827
|
-
var MANAGED_DAEMON_NOT_READY_CODE2, MANAGED_DAEMON_WAKING_TIMEOUT_MS, ManagedDaemonNotReadyError2, delay, registryGet, registryUpsert, registryUsage, registryRemoveChunked, instancesList2, helloViewerGet2, managedDaemonControlGrantIssue, managedDaemonRecoverForInstance2, logger3, TOKEN_REFRESH_BUFFER_MS, CONVEX_REQUEST_TIMEOUT_MS, MANAGED_DAEMON_HOT_PATH_CONVEX_REQUEST_TIMEOUT_MS, clientCache, clientCacheAuthFingerprint, clientCacheViewerAuthFingerprint, trimEnv, fingerprintToken, resolveConvexUrl2, resolveControlPlaneUrl2, requireConvexConfig, decodeJwtPayload2, parseTokenExpiresAt, shouldRefreshToken, isUnauthorizedError, clearControlPlaneAccessToken, resetClientCache, forceReconnectControlPlaneClient, getControlPlaneConnectionState, subscribeToControlPlaneConnectionState, handleUnauthorized, refreshSession, discardInvalidControlPlaneRefreshToken, loadControlPlaneToken, requireControlPlaneToken, getClient2, boxPortsList, logRequest, logResponse, withConvexRequestTimeout, resolveInstanceIdFromEntries, loadViewerIdentity, ensureViewerIdentity, resolveProjectCanonical, normalizeOptionalString3, resolveProjectForInstance, resolveProjectForInstanceLineage, toLegacyRegistry, resolveInstanceIdForAlias2, getRegistryFromConvex, fetchRegistry, listViewerInstances2, subscribeViewerInstancesWithClient, subscribePortsForInstanceWithClient, subscribeViewerInstances, upsertRegistry, recordRegistryUsage, removeRegistryEntry, resolveManagedDaemonControlTarget, recoverManagedDaemonControlTarget, resolveManagedDaemonProxyConnectInfo, subscribeBoxPorts, subscribeInstancePorts, fetchBoxPorts, fetchInstancePorts;
|
|
94827
|
+
var MANAGED_DAEMON_NOT_READY_CODE2, MANAGED_DAEMON_WAKING_TIMEOUT_MS, ManagedDaemonNotReadyError2, delay, registryGet, registryUpsert, registryUsage, registryRemoveChunked, instancesList2, helloViewerGet2, managedDaemonControlGrantIssue, managedDaemonRecoverForInstance2, logger3, TOKEN_REFRESH_BUFFER_MS, CONVEX_REQUEST_TIMEOUT_MS, MANAGED_DAEMON_HOT_PATH_CONVEX_REQUEST_TIMEOUT_MS, clientCache, clientCacheAuthFingerprint, clientCacheViewerAuthFingerprint, trimEnv, fingerprintToken, resolveConvexUrl2, resolveControlPlaneUrl2, requireConvexConfig, decodeJwtPayload2, parseTokenExpiresAt, shouldRefreshToken, isUnauthorizedError, clearControlPlaneAccessToken, resetClientCache, forceReconnectControlPlaneClient, getControlPlaneConnectionState, subscribeToControlPlaneConnectionState, handleUnauthorized, refreshSession, discardInvalidControlPlaneRefreshToken, loadControlPlaneToken, DaemonNotLoggedInError, requireControlPlaneToken, getClient2, boxPortsList, logRequest, logResponse, withConvexRequestTimeout, resolveInstanceIdFromEntries, loadViewerIdentity, ensureViewerIdentity, resolveProjectCanonical, normalizeOptionalString3, resolveProjectForInstance, resolveProjectForInstanceLineage, toLegacyRegistry, resolveInstanceIdForAlias2, getRegistryFromConvex, fetchRegistry, listViewerInstances2, subscribeViewerInstancesWithClient, subscribePortsForInstanceWithClient, subscribeViewerInstances, upsertRegistry, recordRegistryUsage, removeRegistryEntry, resolveManagedDaemonControlTarget, recoverManagedDaemonControlTarget, resolveManagedDaemonProxyConnectInfo, subscribeBoxPorts, subscribeInstancePorts, fetchBoxPorts, fetchInstancePorts;
|
|
94828
94828
|
var init_spritesRegistry = __esm({
|
|
94829
94829
|
"../daemon/src/spritesRegistry.ts"() {
|
|
94830
94830
|
"use strict";
|
|
@@ -95092,10 +95092,16 @@ var init_spritesRegistry = __esm({
|
|
|
95092
95092
|
syncDevboxSentryUserFromControlPlaneToken(token);
|
|
95093
95093
|
return token ?? null;
|
|
95094
95094
|
};
|
|
95095
|
+
DaemonNotLoggedInError = class extends Error {
|
|
95096
|
+
constructor() {
|
|
95097
|
+
super("Not logged in. Run `dvb setup` to log in to boxes.dev.");
|
|
95098
|
+
this.name = "DaemonNotLoggedInError";
|
|
95099
|
+
}
|
|
95100
|
+
};
|
|
95095
95101
|
requireControlPlaneToken = async () => {
|
|
95096
95102
|
const token = await loadControlPlaneToken();
|
|
95097
95103
|
if (!token) {
|
|
95098
|
-
throw new
|
|
95104
|
+
throw new DaemonNotLoggedInError();
|
|
95099
95105
|
}
|
|
95100
95106
|
return token;
|
|
95101
95107
|
};
|
|
@@ -95212,7 +95218,7 @@ var init_spritesRegistry = __esm({
|
|
|
95212
95218
|
await clearControlPlaneAccessToken();
|
|
95213
95219
|
await resetClientCache();
|
|
95214
95220
|
logger3.warn("control_plane_session_cleared", { error: "no_viewer" });
|
|
95215
|
-
throw new
|
|
95221
|
+
throw new DaemonNotLoggedInError();
|
|
95216
95222
|
}
|
|
95217
95223
|
syncDevboxSentryUserFromViewerIdentity(viewer);
|
|
95218
95224
|
clientCacheViewerAuthFingerprint = authFingerprint;
|
|
@@ -96539,6 +96545,7 @@ var init_ports2 = __esm({
|
|
|
96539
96545
|
throw new Error("Port forward owner is required.");
|
|
96540
96546
|
}
|
|
96541
96547
|
this.noteBox(box);
|
|
96548
|
+
await this.resolveComputeProviderForBox(box);
|
|
96542
96549
|
const map3 = this.getPortMap(box);
|
|
96543
96550
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
96544
96551
|
let record3 = map3.get(port);
|
|
@@ -97805,6 +97812,13 @@ var init_src = __esm({
|
|
|
97805
97812
|
...upgradeRequired.minVersion ? { minVersion: upgradeRequired.minVersion } : {}
|
|
97806
97813
|
};
|
|
97807
97814
|
}
|
|
97815
|
+
if (error55 instanceof DaemonNotLoggedInError) {
|
|
97816
|
+
return {
|
|
97817
|
+
statusCode: 401,
|
|
97818
|
+
error: "control_plane_auth_invalid",
|
|
97819
|
+
message: error55.message
|
|
97820
|
+
};
|
|
97821
|
+
}
|
|
97808
97822
|
const message = error55 instanceof Error ? error55.message.trim() : typeof error55 === "string" ? error55.trim() : String(error55);
|
|
97809
97823
|
if (errorType === "registry_error") {
|
|
97810
97824
|
const normalized = message.toLowerCase();
|
|
@@ -97840,6 +97854,17 @@ var init_src = __esm({
|
|
|
97840
97854
|
});
|
|
97841
97855
|
return;
|
|
97842
97856
|
}
|
|
97857
|
+
if (classified.error === "control_plane_auth_invalid") {
|
|
97858
|
+
logger5.warn(errorType, {
|
|
97859
|
+
error: String(error55),
|
|
97860
|
+
statusCode: classified.statusCode
|
|
97861
|
+
});
|
|
97862
|
+
writeJson(res, classified.statusCode, {
|
|
97863
|
+
error: classified.error,
|
|
97864
|
+
message: classified.message
|
|
97865
|
+
});
|
|
97866
|
+
return;
|
|
97867
|
+
}
|
|
97843
97868
|
logger5.error(errorType, { error: String(error55) });
|
|
97844
97869
|
captureDevboxException(error55, {
|
|
97845
97870
|
tags: {
|
|
@@ -98959,6 +98984,7 @@ var init_daemonClient = __esm({
|
|
|
98959
98984
|
"src/devbox/daemonClient.ts"() {
|
|
98960
98985
|
"use strict";
|
|
98961
98986
|
init_devboxCore();
|
|
98987
|
+
init_authErrors();
|
|
98962
98988
|
init_controlPlane();
|
|
98963
98989
|
init_daemonWorkingDirectory();
|
|
98964
98990
|
init_logger3();
|
|
@@ -99015,6 +99041,14 @@ var init_daemonClient = __esm({
|
|
|
99015
99041
|
if (upgradeRequired) {
|
|
99016
99042
|
throw upgradeRequired;
|
|
99017
99043
|
}
|
|
99044
|
+
const errorCode = readNonEmptyString6(
|
|
99045
|
+
extractDaemonErrorPayload(response.body).error
|
|
99046
|
+
);
|
|
99047
|
+
if (errorCode === "control_plane_auth_invalid" || errorCode === "control_plane_auth_missing") {
|
|
99048
|
+
throw new ControlPlaneLoginRequiredError("signed_out", {
|
|
99049
|
+
message: formatDaemonResponseError(response)
|
|
99050
|
+
});
|
|
99051
|
+
}
|
|
99018
99052
|
throw new Error(formatDaemonResponseError(response));
|
|
99019
99053
|
};
|
|
99020
99054
|
DaemonConnectionError = class extends Error {
|
|
@@ -300946,4 +300980,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
300946
300980
|
*)
|
|
300947
300981
|
*/
|
|
300948
300982
|
|
|
300949
|
-
//# debugId=
|
|
300983
|
+
//# debugId=b75ee37e-da65-53e0-8c16-cf918b68afea
|
package/dist/bin/dvbd.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
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]="8ec136bf-2ffa-50a3-94ec-1d953da56139")}catch(e){}}();
|
|
4
4
|
import { createRequire as __dvbCreateRequire } from "node:module";
|
|
5
5
|
import { dirname as __dvbDirname } from "node:path";
|
|
6
6
|
import { fileURLToPath as __dvbFileURLToPath } from "node:url";
|
|
@@ -64679,9 +64679,9 @@ var init_sentry = __esm({
|
|
|
64679
64679
|
uncaughtExceptionMonitorInstalled = false;
|
|
64680
64680
|
currentDevboxSentryUser = null;
|
|
64681
64681
|
readBuildMetadata = () => {
|
|
64682
|
-
const rawPackageVersion = "1.0.
|
|
64683
|
-
const rawGitSha = "
|
|
64684
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
64682
|
+
const rawPackageVersion = "1.0.1110";
|
|
64683
|
+
const rawGitSha = "6e7b194ea70de8578eaaf7d8a423140209cd0369";
|
|
64684
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.1110+6e7b194ea70de8578eaaf7d8a423140209cd0369";
|
|
64685
64685
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
64686
64686
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
64687
64687
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -67203,7 +67203,7 @@ var init_packageVersion = __esm({
|
|
|
67203
67203
|
return path8.join(process.cwd(), "dvb");
|
|
67204
67204
|
};
|
|
67205
67205
|
readEmbeddedPackageVersion = () => {
|
|
67206
|
-
const raw = "1.0.
|
|
67206
|
+
const raw = "1.0.1110";
|
|
67207
67207
|
return trimVersion(raw);
|
|
67208
67208
|
};
|
|
67209
67209
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -76703,7 +76703,7 @@ var init_server = __esm({
|
|
|
76703
76703
|
|
|
76704
76704
|
// ../daemon/src/spritesRegistry.ts
|
|
76705
76705
|
import { createHash, randomUUID as randomUUID4 } from "node:crypto";
|
|
76706
|
-
var MANAGED_DAEMON_NOT_READY_CODE, MANAGED_DAEMON_WAKING_TIMEOUT_MS, ManagedDaemonNotReadyError, delay, registryGet, registryUpsert, registryUsage, registryRemoveChunked, instancesList, helloViewerGet, managedDaemonControlGrantIssue, managedDaemonRecoverForInstance, logger2, TOKEN_REFRESH_BUFFER_MS, CONVEX_REQUEST_TIMEOUT_MS, MANAGED_DAEMON_HOT_PATH_CONVEX_REQUEST_TIMEOUT_MS, clientCache, clientCacheAuthFingerprint, clientCacheViewerAuthFingerprint, trimEnv, fingerprintToken, resolveConvexUrl, resolveControlPlaneUrl, requireConvexConfig, decodeJwtPayload2, parseTokenExpiresAt, shouldRefreshToken, isUnauthorizedError, clearControlPlaneAccessToken, resetClientCache, forceReconnectControlPlaneClient, getControlPlaneConnectionState, subscribeToControlPlaneConnectionState, handleUnauthorized, refreshSession, discardInvalidControlPlaneRefreshToken, loadControlPlaneToken, requireControlPlaneToken, getClient2, boxPortsList, logRequest, logResponse, withConvexRequestTimeout, resolveInstanceIdFromEntries, loadViewerIdentity, ensureViewerIdentity, resolveProjectCanonical, normalizeOptionalString, resolveProjectForInstance, resolveProjectForInstanceLineage, toLegacyRegistry, resolveInstanceIdForAlias, getRegistryFromConvex, fetchRegistry, listViewerInstances, subscribeViewerInstancesWithClient, subscribePortsForInstanceWithClient, subscribeViewerInstances, upsertRegistry, recordRegistryUsage, removeRegistryEntry, resolveManagedDaemonControlTarget, recoverManagedDaemonControlTarget, resolveManagedDaemonProxyConnectInfo, subscribeBoxPorts, subscribeInstancePorts, fetchBoxPorts, fetchInstancePorts;
|
|
76706
|
+
var MANAGED_DAEMON_NOT_READY_CODE, MANAGED_DAEMON_WAKING_TIMEOUT_MS, ManagedDaemonNotReadyError, delay, registryGet, registryUpsert, registryUsage, registryRemoveChunked, instancesList, helloViewerGet, managedDaemonControlGrantIssue, managedDaemonRecoverForInstance, logger2, TOKEN_REFRESH_BUFFER_MS, CONVEX_REQUEST_TIMEOUT_MS, MANAGED_DAEMON_HOT_PATH_CONVEX_REQUEST_TIMEOUT_MS, clientCache, clientCacheAuthFingerprint, clientCacheViewerAuthFingerprint, trimEnv, fingerprintToken, resolveConvexUrl, resolveControlPlaneUrl, requireConvexConfig, decodeJwtPayload2, parseTokenExpiresAt, shouldRefreshToken, isUnauthorizedError, clearControlPlaneAccessToken, resetClientCache, forceReconnectControlPlaneClient, getControlPlaneConnectionState, subscribeToControlPlaneConnectionState, handleUnauthorized, refreshSession, discardInvalidControlPlaneRefreshToken, loadControlPlaneToken, DaemonNotLoggedInError, requireControlPlaneToken, getClient2, boxPortsList, logRequest, logResponse, withConvexRequestTimeout, resolveInstanceIdFromEntries, loadViewerIdentity, ensureViewerIdentity, resolveProjectCanonical, normalizeOptionalString, resolveProjectForInstance, resolveProjectForInstanceLineage, toLegacyRegistry, resolveInstanceIdForAlias, getRegistryFromConvex, fetchRegistry, listViewerInstances, subscribeViewerInstancesWithClient, subscribePortsForInstanceWithClient, subscribeViewerInstances, upsertRegistry, recordRegistryUsage, removeRegistryEntry, resolveManagedDaemonControlTarget, recoverManagedDaemonControlTarget, resolveManagedDaemonProxyConnectInfo, subscribeBoxPorts, subscribeInstancePorts, fetchBoxPorts, fetchInstancePorts;
|
|
76707
76707
|
var init_spritesRegistry = __esm({
|
|
76708
76708
|
"../daemon/src/spritesRegistry.ts"() {
|
|
76709
76709
|
"use strict";
|
|
@@ -76971,10 +76971,16 @@ var init_spritesRegistry = __esm({
|
|
|
76971
76971
|
syncDevboxSentryUserFromControlPlaneToken(token);
|
|
76972
76972
|
return token ?? null;
|
|
76973
76973
|
};
|
|
76974
|
+
DaemonNotLoggedInError = class extends Error {
|
|
76975
|
+
constructor() {
|
|
76976
|
+
super("Not logged in. Run `dvb setup` to log in to boxes.dev.");
|
|
76977
|
+
this.name = "DaemonNotLoggedInError";
|
|
76978
|
+
}
|
|
76979
|
+
};
|
|
76974
76980
|
requireControlPlaneToken = async () => {
|
|
76975
76981
|
const token = await loadControlPlaneToken();
|
|
76976
76982
|
if (!token) {
|
|
76977
|
-
throw new
|
|
76983
|
+
throw new DaemonNotLoggedInError();
|
|
76978
76984
|
}
|
|
76979
76985
|
return token;
|
|
76980
76986
|
};
|
|
@@ -77091,7 +77097,7 @@ var init_spritesRegistry = __esm({
|
|
|
77091
77097
|
await clearControlPlaneAccessToken();
|
|
77092
77098
|
await resetClientCache();
|
|
77093
77099
|
logger2.warn("control_plane_session_cleared", { error: "no_viewer" });
|
|
77094
|
-
throw new
|
|
77100
|
+
throw new DaemonNotLoggedInError();
|
|
77095
77101
|
}
|
|
77096
77102
|
syncDevboxSentryUserFromViewerIdentity(viewer);
|
|
77097
77103
|
clientCacheViewerAuthFingerprint = authFingerprint;
|
|
@@ -78418,6 +78424,7 @@ var init_ports2 = __esm({
|
|
|
78418
78424
|
throw new Error("Port forward owner is required.");
|
|
78419
78425
|
}
|
|
78420
78426
|
this.noteBox(box);
|
|
78427
|
+
await this.resolveComputeProviderForBox(box);
|
|
78421
78428
|
const map2 = this.getPortMap(box);
|
|
78422
78429
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
78423
78430
|
let record2 = map2.get(port);
|
|
@@ -79684,6 +79691,13 @@ var init_src = __esm({
|
|
|
79684
79691
|
...upgradeRequired.minVersion ? { minVersion: upgradeRequired.minVersion } : {}
|
|
79685
79692
|
};
|
|
79686
79693
|
}
|
|
79694
|
+
if (error4 instanceof DaemonNotLoggedInError) {
|
|
79695
|
+
return {
|
|
79696
|
+
statusCode: 401,
|
|
79697
|
+
error: "control_plane_auth_invalid",
|
|
79698
|
+
message: error4.message
|
|
79699
|
+
};
|
|
79700
|
+
}
|
|
79687
79701
|
const message = error4 instanceof Error ? error4.message.trim() : typeof error4 === "string" ? error4.trim() : String(error4);
|
|
79688
79702
|
if (errorType === "registry_error") {
|
|
79689
79703
|
const normalized = message.toLowerCase();
|
|
@@ -79719,6 +79733,17 @@ var init_src = __esm({
|
|
|
79719
79733
|
});
|
|
79720
79734
|
return;
|
|
79721
79735
|
}
|
|
79736
|
+
if (classified.error === "control_plane_auth_invalid") {
|
|
79737
|
+
logger4.warn(errorType, {
|
|
79738
|
+
error: String(error4),
|
|
79739
|
+
statusCode: classified.statusCode
|
|
79740
|
+
});
|
|
79741
|
+
writeJson(res, classified.statusCode, {
|
|
79742
|
+
error: classified.error,
|
|
79743
|
+
message: classified.message
|
|
79744
|
+
});
|
|
79745
|
+
return;
|
|
79746
|
+
}
|
|
79722
79747
|
logger4.error(errorType, { error: String(error4) });
|
|
79723
79748
|
captureDevboxException(error4, {
|
|
79724
79749
|
tags: {
|
|
@@ -80408,4 +80433,4 @@ smol-toml/dist/index.js:
|
|
|
80408
80433
|
*)
|
|
80409
80434
|
*/
|
|
80410
80435
|
|
|
80411
|
-
//# debugId=
|
|
80436
|
+
//# debugId=8ec136bf-2ffa-50a3-94ec-1d953da56139
|
|
@@ -283,8 +283,13 @@ Git/Review, Terminal, Browser, or Ports.
|
|
|
283
283
|
The app menu also includes **Project settings**, **Settings...**,
|
|
284
284
|
**Configure agents...**, **Sign Out**, update actions, and **Show Workbench**.
|
|
285
285
|
Configure agents can save multiple Codex and Claude accounts or API keys and
|
|
286
|
-
choose one active credential for each agent across all devboxes.
|
|
287
|
-
|
|
286
|
+
choose one active credential for each agent across all devboxes. Codex needs to
|
|
287
|
+
restart to switch to or from an API key. While Codex is working on a devbox, it
|
|
288
|
+
keeps the old credential and the desktop shows **Restart Codex** above the reply
|
|
289
|
+
box. Threads stay connected and running work can still be steered or stopped,
|
|
290
|
+
but new work needs to wait until the running work finishes or Codex restarts.
|
|
291
|
+
Restarting stops all running Codex work on that devbox. The File menu also
|
|
292
|
+
includes **Delete This Project**.
|
|
288
293
|
|
|
289
294
|
## Box status
|
|
290
295
|
|
|
@@ -449,6 +449,16 @@ If a Codex or Claude turn is still working when destruction is confirmed,
|
|
|
449
449
|
boxes.dev stops that turn before preserving the transcript. Other active agent
|
|
450
450
|
types must finish or be stopped before the devbox can be destroyed.
|
|
451
451
|
|
|
452
|
+
If a forked Codex thread needs missing parent history, boxes.dev first tries
|
|
453
|
+
to recover it from your saved thread archives in the same project. If the
|
|
454
|
+
required history is still missing, the devbox will stay available and the app
|
|
455
|
+
will list the affected threads. Choose **Keep devbox**, or review **Destroy anyway**.
|
|
456
|
+
Confirming that choice will keep those threads as readable **History only**
|
|
457
|
+
conversations that cannot be continued. Healthy threads will keep their normal
|
|
458
|
+
restorable archives. If readable history has not finished syncing, the devbox
|
|
459
|
+
will stay available; retry after syncing or delete the affected thread before
|
|
460
|
+
destroying the devbox. Automatic cleanup will not accept this loss for you.
|
|
461
|
+
|
|
452
462
|
Destroying a devbox does not automatically save code to the Template box or to
|
|
453
463
|
Git. Commit, push, merge, download, or otherwise save anything important first.
|
|
454
464
|
The archived transcripts remain readable without a running machine. To
|
|
@@ -459,6 +469,13 @@ current saved Team Template version. The available destination returns the
|
|
|
459
469
|
thread directly to the normal thread list. Restoring a thread restores its
|
|
460
470
|
conversation, not the destroyed devbox's filesystem or working tree.
|
|
461
471
|
|
|
472
|
+
If a restore cannot use the Template box's copy of a fork's parent history,
|
|
473
|
+
the thread will explain the conflict. Where **Restore to new devbox** is
|
|
474
|
+
available, that action will use a separate devbox and preserve the parent on
|
|
475
|
+
its current box. Otherwise, restore the original thread's history on the
|
|
476
|
+
Template box before retrying. Leaving the thread archived will keep its saved
|
|
477
|
+
archive available.
|
|
478
|
+
|
|
462
479
|
If the devbox has a child draft with unsent text, boxes.dev blocks destruction
|
|
463
480
|
until that draft is opened and discarded.
|
|
464
481
|
|
|
@@ -88,9 +88,9 @@ Open a project to see its threads. The list can include:
|
|
|
88
88
|
- recent threads;
|
|
89
89
|
- with **Group devboxes started by agents** on in Settings, each devbox an
|
|
90
90
|
agent started, under the devbox that started it. A slim row labeled
|
|
91
|
-
**Devboxes
|
|
92
|
-
count because the phone may not have loaded all of them, and a
|
|
93
|
-
parent has not loaded lists on its own until it does;
|
|
91
|
+
**Devboxes** shows their status and starts open; tap it to hide them. It
|
|
92
|
+
shows no count because the phone may not have loaded all of them, and a
|
|
93
|
+
devbox whose parent has not loaded lists on its own until it does;
|
|
94
94
|
- devbox groups, with child threads under the devbox and, when the devbox has
|
|
95
95
|
archived threads, an **Archived threads** list at the end of the group;
|
|
96
96
|
- an **Archived threads** list at the end of the project for the Template
|
|
@@ -2298,6 +2298,17 @@ wakes. Listener failures therefore lose an already acknowledged webhook. Use
|
|
|
2298
2298
|
routed delivery for verification challenges or any request that needs the
|
|
2299
2299
|
application's status, headers, or response body.
|
|
2300
2300
|
|
|
2301
|
+
A routed request must receive the application's response status and headers
|
|
2302
|
+
within 10 seconds of reaching the box, or the caller gets HTTP 504. The time
|
|
2303
|
+
spent receiving the request body counts toward that limit. After that, the
|
|
2304
|
+
public-link limits in
|
|
2305
|
+
[Public app links](ports-terminal-and-runtime.md#public-app-links) apply: the
|
|
2306
|
+
connection closes after 2 minutes without data, the whole request must finish
|
|
2307
|
+
within 10 minutes of reaching the box (the 10-second wait is part of that time,
|
|
2308
|
+
not added to it), and a timeout does not guarantee that the application's work
|
|
2309
|
+
stops. For slow work, return a job ID quickly and let the caller poll its
|
|
2310
|
+
status.
|
|
2311
|
+
|
|
2301
2312
|
Project URL traffic does not wake a sleeping box or keep it awake. `list` and
|
|
2302
2313
|
`show` work without a running app. `claim`, `subscribe`, and `browser-link`
|
|
2303
2314
|
require the URL's configured port to be allowed by the project port policy and
|
|
@@ -263,6 +263,38 @@ matches every public link and Project URL, so sharing the port again does not
|
|
|
263
263
|
need another change. Do not set `allowedHosts: true`, which turns the check
|
|
264
264
|
off.
|
|
265
265
|
|
|
266
|
+
Public links apply their own HTTP time limits, whatever timeout the
|
|
267
|
+
application sets. The app must accept the connection within 10 seconds. The
|
|
268
|
+
link closes its connection to the app after 2 minutes without data, including
|
|
269
|
+
while the request is waiting for the first part of its response, so send data
|
|
270
|
+
well before then (for example, every 30 seconds). Each request must finish
|
|
271
|
+
within 10 minutes of arriving. Treat both as ceilings, not guaranteed
|
|
272
|
+
allowances: clients and uploads can have their own shorter limits. A request
|
|
273
|
+
whose response has not reached the client can fail with `Application timed out`
|
|
274
|
+
(HTTP 504), or with `Application unavailable` (HTTP 502) if the app sent only
|
|
275
|
+
its headers, which may stay buffered, so send body bytes early. A response that
|
|
276
|
+
has already reached the client is cut off instead and may keep its original
|
|
277
|
+
status code, so neither a 200 status nor a closed stream shows that the
|
|
278
|
+
operation finished. Raising the application's own timeout does not extend these
|
|
279
|
+
limits.
|
|
280
|
+
|
|
281
|
+
A timeout ends the HTTP connection but does not guarantee that the
|
|
282
|
+
application's work stops: the handler may continue and complete, or it may
|
|
283
|
+
notice the disconnect and cancel itself. Before retrying a request that is not
|
|
284
|
+
safe to repeat, check the application's own receipt or job status. If the
|
|
285
|
+
original request carried an idempotency key that the application or API
|
|
286
|
+
supports, retry with that original key rather than a new one. For work that
|
|
287
|
+
can take more than a minute or two or must not run twice, either stream or use
|
|
288
|
+
an application-owned job. To stream, send body bytes immediately, send progress
|
|
289
|
+
such as a server-sent event or line at least every 30 seconds, disable response
|
|
290
|
+
buffering in the framework and any proxy in front of it, end with an explicit
|
|
291
|
+
completion message, and finish within 10 minutes. For a job, which can also run
|
|
292
|
+
longer than 10 minutes, have the application persist it, return its ID (for
|
|
293
|
+
example, with HTTP 202), and let the client poll a status endpoint; after a
|
|
294
|
+
disconnect the client looks up the same job instead of resubmitting. The
|
|
295
|
+
application runs the job and stores its status, so keep the box awake until
|
|
296
|
+
long jobs finish.
|
|
297
|
+
|
|
266
298
|
If recovery replaces the machine, boxes.dev will revoke its old public links.
|
|
267
299
|
Share the app again on the recovered machine to get a new URL.
|
|
268
300
|
|
|
@@ -800,12 +800,13 @@ answer. Choose an option to advance to the next question or send the answers
|
|
|
800
800
|
on the last question. For a custom answer, type it and select **Continue** or
|
|
801
801
|
**Send**. Your answer will reach the running turn, and any text or attachments
|
|
802
802
|
already in the reply box will stay there. Use **Skip** to
|
|
803
|
-
leave a question unanswered.
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
803
|
+
leave a question unanswered. When several questions are waiting, the panel
|
|
804
|
+
shows your position among them; use its arrows or the Left and Right arrow keys
|
|
805
|
+
to move between them. Once you send or skip the last question, the panel
|
|
806
|
+
closes for the rest of the turn. The X or Esc minimizes the panel instead,
|
|
807
|
+
without stopping the turn; select **Answer questions** to reopen it. Historical
|
|
808
|
+
questions do not automatically reopen when you return to the thread; any you
|
|
809
|
+
have not sent or skipped stay under **Answer questions**. If
|
|
809
810
|
the turn ends, edited answers that you have not sent will move to the reply box.
|
|
810
811
|
Answers reach the running turn even if ordinary replies are set to Queue.
|
|
811
812
|
|
|
@@ -839,8 +840,10 @@ older boxes.dev service won't show a live list
|
|
|
839
840
|
until its normal automatic update runs.
|
|
840
841
|
|
|
841
842
|
Codex also shows context-window usage when available. When the context window
|
|
842
|
-
gets full, the composer can show an auto-compaction warning
|
|
843
|
-
|
|
843
|
+
gets full, the composer can show an auto-compaction warning. On desktop, clicking
|
|
844
|
+
the context meter in a Codex or Claude thread offers **Compact context now** at
|
|
845
|
+
any time. Hovering over the meter shows the same details, and offers that action
|
|
846
|
+
only at high usage, with a confirmation first.
|
|
844
847
|
|
|
845
848
|
The Codex rate-limit indicator shows remaining session, weekly, and available
|
|
846
849
|
model-specific quotas with countdowns to their resets. Limits for the selected
|
|
@@ -1275,7 +1278,8 @@ activity orders, each row's time and date group show its last activity.
|
|
|
1275
1278
|
an agent started under the devbox that started it. It is off by default and
|
|
1276
1279
|
saved on the account, so every computer and phone follows it. A slim row under
|
|
1277
1280
|
the parent shows whether any of those devboxes are working, unread, or need the
|
|
1278
|
-
user, and selecting the row
|
|
1281
|
+
user, and selecting the row shows or hides them. On desktop the row starts
|
|
1282
|
+
closed and also counts them; on a phone it starts open.
|
|
1279
1283
|
When a devbox started only one, that devbox shows directly under its parent
|
|
1280
1284
|
without the row.
|
|
1281
1285
|
Devboxes nest under the devbox that started them at every level, and in the
|
|
@@ -366,6 +366,22 @@ local port.
|
|
|
366
366
|
If there are no forwarded ports, make sure the app or service is actually
|
|
367
367
|
running inside the selected box.
|
|
368
368
|
|
|
369
|
+
## Public link or Project URL timed out
|
|
370
|
+
|
|
371
|
+
A public link can show `Application timed out` (HTTP 504) when the app sends
|
|
372
|
+
nothing for 2 minutes while the request waits for its response. A routed
|
|
373
|
+
Project URL returns 504 when the app does not send its response status and
|
|
374
|
+
headers within 10 seconds. If the app sent only its headers, either surface
|
|
375
|
+
returns an unavailable-application error (HTTP 502) after 2 minutes instead.
|
|
376
|
+
Raising the app's own timeout does not extend these limits. If the caller gave
|
|
377
|
+
up sooner, check its own timeout. The work the
|
|
378
|
+
request started may still be running or may have finished, so check the app's
|
|
379
|
+
own receipt or job status before retrying. Reuse the original idempotency key
|
|
380
|
+
only if the app or API supports one. To avoid the timeout, stream progress or
|
|
381
|
+
return a job ID; see
|
|
382
|
+
[Public app links](ports-terminal-and-runtime.md#public-app-links) for the
|
|
383
|
+
limits and both patterns.
|
|
384
|
+
|
|
369
385
|
## Files Or Git Will Not Load
|
|
370
386
|
|
|
371
387
|
Files and git status require the selected box to be awake. Wake the box
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boxes-dev/dvb-runtime",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1110",
|
|
4
4
|
"description": "Runtime for the boxes.dev CLI. Install @boxes-dev/dvb to use the CLI.",
|
|
5
5
|
"homepage": "https://boxes.dev",
|
|
6
6
|
"type": "module",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"e2b": "^2.18.0",
|
|
78
78
|
"ink-testing-library": "^4.0.0"
|
|
79
79
|
},
|
|
80
|
-
"devboxReleasedAt": "2026-
|
|
80
|
+
"devboxReleasedAt": "2026-11-01T06:12:06Z"
|
|
81
81
|
}
|