@boxes-dev/dvb 1.0.91 → 1.0.92
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 +22 -8
- package/dist/bin/dvb.cjs.map +1 -1
- package/dist/bin/dvbd.cjs +5 -5
- package/dist/devbox/commands/connect.d.ts +1 -0
- package/dist/devbox/commands/connect.d.ts.map +1 -1
- package/dist/devbox/commands/connect.js +14 -0
- package/dist/devbox/commands/connect.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]="c34e4bfc-3689-5411-a60a-34ffb6dbd6ed")}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.92";
|
|
88692
|
+
const rawGitSha = "b1d29ffb7b9985f59bd3f4733d0dbc0122b4c1ab";
|
|
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 };
|
|
@@ -120679,9 +120679,9 @@ var init_sentry = __esm({
|
|
|
120679
120679
|
sentryEnabled = false;
|
|
120680
120680
|
uncaughtExceptionMonitorInstalled = false;
|
|
120681
120681
|
readBuildMetadata2 = () => {
|
|
120682
|
-
const rawPackageVersion = "1.0.
|
|
120683
|
-
const rawGitSha = "
|
|
120684
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
120682
|
+
const rawPackageVersion = "1.0.92";
|
|
120683
|
+
const rawGitSha = "b1d29ffb7b9985f59bd3f4733d0dbc0122b4c1ab";
|
|
120684
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.92+b1d29ffb7b9985f59bd3f4733d0dbc0122b4c1ab";
|
|
120685
120685
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
120686
120686
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
120687
120687
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -200772,7 +200772,7 @@ var init_sessionUtils = __esm({
|
|
|
200772
200772
|
});
|
|
200773
200773
|
|
|
200774
200774
|
// src/devbox/commands/connect.ts
|
|
200775
|
-
var import_node_child_process4, import_node_crypto10, import_node_os9, import_node_path16, import_node_readline3, import_promises13, resolveInitialSessionId, shouldAttachToExistingSession, resolveSessionSpecifierFromExplicitTarget, isAttachReplacedCloseCode, shouldCancelConnectOnSigint, DEFAULT_TTY_COLS, DEFAULT_TTY_ROWS, TERMINAL_INPUT_MODE_RESET, resetTerminalInputModes, openBrowser2, warnSetupStatus, resolveTtyEnv, formatEnvExports, buildModalInteractiveCommand, parseEnvSize, readStreamSize, resolveTtySize, resolveSessionEnv, parseReachabilityState, runCommand, checkReachability, watchReachabilityWithScutil, watchReachabilityWithNotifyutil, waitForNetworkOnline, parseConnectArgs, parseConnectTarget, isSessionNotFoundError, SESSION_NAME_TOKEN_KEY, encodeSessionNameToken, decodeSessionNameToken, extractSessionNameFromCommand, SESSION_LOG_FLUSH_BYTES, SESSION_LOG_EOF_MARKER, createRemoteSessionLogSink, CONNECT_SHELL_CANDIDATES, resolveConnectShell, confirmNewSession, promptRenameSession, HEARTBEAT_INTERVAL_MS, INPUT_PROBE_TIMEOUT_MS, STREAM_STALL_PROBE_MISS_THRESHOLD, CONNECT_OPEN_TIMEOUT_MS, WS_OPEN_STATE, createScrollbackEraseFilter, createInitialAttachClearFilter, createModalTtyOutputFilter, MODAL_DISCONNECT_FILTER_CHUNKS, stripModalDisconnectArtifacts, streamExecSession, runConnect;
|
|
200775
|
+
var import_node_child_process4, import_node_crypto10, import_node_os9, import_node_path16, import_node_readline3, import_promises13, resolveInitialSessionId, shouldAttachToExistingSession, resolveSessionSpecifierFromExplicitTarget, isAttachReplacedCloseCode, shouldCancelConnectOnSigint, isRawCtrlCChunk, DEFAULT_TTY_COLS, DEFAULT_TTY_ROWS, TERMINAL_INPUT_MODE_RESET, resetTerminalInputModes, openBrowser2, warnSetupStatus, resolveTtyEnv, formatEnvExports, buildModalInteractiveCommand, parseEnvSize, readStreamSize, resolveTtySize, resolveSessionEnv, parseReachabilityState, runCommand, checkReachability, watchReachabilityWithScutil, watchReachabilityWithNotifyutil, waitForNetworkOnline, parseConnectArgs, parseConnectTarget, isSessionNotFoundError, SESSION_NAME_TOKEN_KEY, encodeSessionNameToken, decodeSessionNameToken, extractSessionNameFromCommand, SESSION_LOG_FLUSH_BYTES, SESSION_LOG_EOF_MARKER, createRemoteSessionLogSink, CONNECT_SHELL_CANDIDATES, resolveConnectShell, confirmNewSession, promptRenameSession, HEARTBEAT_INTERVAL_MS, INPUT_PROBE_TIMEOUT_MS, STREAM_STALL_PROBE_MISS_THRESHOLD, CONNECT_OPEN_TIMEOUT_MS, WS_OPEN_STATE, createScrollbackEraseFilter, createInitialAttachClearFilter, createModalTtyOutputFilter, MODAL_DISCONNECT_FILTER_CHUNKS, stripModalDisconnectArtifacts, streamExecSession, runConnect;
|
|
200776
200776
|
var init_connect2 = __esm({
|
|
200777
200777
|
"src/devbox/commands/connect.ts"() {
|
|
200778
200778
|
"use strict";
|
|
@@ -200831,6 +200831,7 @@ var init_connect2 = __esm({
|
|
|
200831
200831
|
};
|
|
200832
200832
|
isAttachReplacedCloseCode = (closeCode) => closeCode === 1012;
|
|
200833
200833
|
shouldCancelConnectOnSigint = (phase) => phase !== "attached";
|
|
200834
|
+
isRawCtrlCChunk = (chunk) => chunk.length === 1 && chunk[0] === 3;
|
|
200834
200835
|
DEFAULT_TTY_COLS = 80;
|
|
200835
200836
|
DEFAULT_TTY_ROWS = 24;
|
|
200836
200837
|
TERMINAL_INPUT_MODE_RESET = [
|
|
@@ -201912,6 +201913,12 @@ var init_connect2 = __esm({
|
|
|
201912
201913
|
hasLf: chunk.includes(10)
|
|
201913
201914
|
});
|
|
201914
201915
|
const onStdin = (chunk) => {
|
|
201916
|
+
if (options.tty && isRawCtrlCChunk(chunk)) {
|
|
201917
|
+
const handled = options.onRawCtrlC?.() ?? false;
|
|
201918
|
+
if (handled) {
|
|
201919
|
+
return;
|
|
201920
|
+
}
|
|
201921
|
+
}
|
|
201915
201922
|
if (!opened) {
|
|
201916
201923
|
pendingInput.push(chunk);
|
|
201917
201924
|
logger8.debug("connect_stdin_buffered_preopen", {
|
|
@@ -202981,6 +202988,13 @@ ${message}\r
|
|
|
202981
202988
|
},
|
|
202982
202989
|
onPortEvent: notifyPortEvent,
|
|
202983
202990
|
...shouldReconnect ? {
|
|
202991
|
+
onRawCtrlC: () => {
|
|
202992
|
+
if (!shouldCancelConnectOnSigint(connectPhase)) {
|
|
202993
|
+
return false;
|
|
202994
|
+
}
|
|
202995
|
+
onSigint();
|
|
202996
|
+
return true;
|
|
202997
|
+
},
|
|
202984
202998
|
onDisconnectNotice: () => {
|
|
202985
202999
|
setConnectPhase("reconnecting");
|
|
202986
203000
|
resetTerminalInputModes();
|
|
@@ -220367,4 +220381,4 @@ smol-toml/dist/index.js:
|
|
|
220367
220381
|
*/
|
|
220368
220382
|
//# sourceMappingURL=dvb.cjs.map
|
|
220369
220383
|
|
|
220370
|
-
//# debugId=
|
|
220384
|
+
//# debugId=c34e4bfc-3689-5411-a60a-34ffb6dbd6ed
|