@boxes-dev/dvb 1.0.88 → 1.0.90

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 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]="01475b24-87d7-5416-a55c-cbe75aafb19b")}catch(e){}}();
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]="cfdc4475-1f7e-537b-98a2-129bda9805ad")}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.88";
88692
- const rawGitSha = "8e45974e56bd06729f3f9c411fcdd60bfef76e97";
88691
+ const rawPackageVersion = "1.0.90";
88692
+ const rawGitSha = "43fa944eeb52737c6d762dd78bf1c6e188053cb5";
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.88";
120683
- const rawGitSha = "8e45974e56bd06729f3f9c411fcdd60bfef76e97";
120684
- const rawSentryRelease = "boxes-dev-dvb@1.0.88+8e45974e56bd06729f3f9c411fcdd60bfef76e97";
120682
+ const rawPackageVersion = "1.0.90";
120683
+ const rawGitSha = "43fa944eeb52737c6d762dd78bf1c6e188053cb5";
120684
+ const rawSentryRelease = "boxes-dev-dvb@1.0.90+43fa944eeb52737c6d762dd78bf1c6e188053cb5";
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;
@@ -200731,7 +200731,7 @@ var init_sessionUtils = __esm({
200731
200731
  });
200732
200732
 
200733
200733
  // src/devbox/commands/connect.ts
200734
- 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, 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;
200734
+ 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;
200735
200735
  var init_connect2 = __esm({
200736
200736
  "src/devbox/commands/connect.ts"() {
200737
200737
  "use strict";
@@ -200859,6 +200859,62 @@ var init_connect2 = __esm({
200859
200859
  return env2;
200860
200860
  };
200861
200861
  formatEnvExports = (env2) => Object.entries(env2).map(([key, value]) => `export ${key}=${shellQuote2(value)}`).join("; ");
200862
+ buildModalInteractiveCommand = () => [
200863
+ // Guard against environments that still deliver SIGINT on Ctrl-C
200864
+ // even after apps disable ISIG in raw mode. Background jobs in this
200865
+ // shell have stdin redirected to /dev/null, so direct stty calls are
200866
+ // no-ops there. Target /dev/tty explicitly.
200867
+ 'tty_device="/dev/tty"',
200868
+ "leader_pid=$$",
200869
+ "cleanup_done=0",
200870
+ "tty_intr_guard_pid=",
200871
+ `cleanup() {
200872
+ if [ "$cleanup_done" = "1" ]; then
200873
+ return
200874
+ fi
200875
+ cleanup_done=1
200876
+ if [ -n "$tty_intr_guard_pid" ]; then
200877
+ kill "$tty_intr_guard_pid" 2>/dev/null || true
200878
+ fi
200879
+ if [ -n "$orig_intr" ] && [ "$orig_intr" != "<undef>" ]; then
200880
+ stty intr "$orig_intr" <"$tty_device" 2>/dev/null || true
200881
+ fi
200882
+ }`,
200883
+ `orig_intr="$(stty -a <"$tty_device" 2>/dev/null | sed -n 's/.*intr = \\([^;]*\\);.*/\\1/p')"`,
200884
+ `(
200885
+ while kill -0 "$leader_pid" 2>/dev/null; do
200886
+ state="$(stty -a <"$tty_device" 2>/dev/null || true)"
200887
+ if [ -z "$state" ]; then
200888
+ sleep 0.2
200889
+ continue
200890
+ fi
200891
+ if printf '%s\\n' "$state" | grep -q -- '-isig'; then
200892
+ if ! printf '%s\\n' "$state" | grep -q 'intr = <undef>;'; then
200893
+ stty intr undef <"$tty_device" 2>/dev/null || true
200894
+ fi
200895
+ else
200896
+ if printf '%s\\n' "$state" | grep -q 'intr = <undef>;' && [ -n "$orig_intr" ] && [ "$orig_intr" != "<undef>" ]; then
200897
+ stty intr "$orig_intr" <"$tty_device" 2>/dev/null || true
200898
+ fi
200899
+ fi
200900
+ sleep 0.2
200901
+ done
200902
+ if [ -n "$orig_intr" ] && [ "$orig_intr" != "<undef>" ]; then
200903
+ stty intr "$orig_intr" <"$tty_device" 2>/dev/null || true
200904
+ fi
200905
+ ) &
200906
+ tty_intr_guard_pid=$!
200907
+ trap cleanup EXIT
200908
+ if command -v bash >/dev/null 2>&1; then
200909
+ bash -il
200910
+ shell_status=$?
200911
+ else
200912
+ sh -i
200913
+ shell_status=$?
200914
+ fi
200915
+ cleanup
200916
+ exit "$shell_status"`
200917
+ ].join("; ");
200862
200918
  parseEnvSize = (value) => {
200863
200919
  if (!value) return void 0;
200864
200920
  const parsed = Number(value);
@@ -202586,34 +202642,7 @@ var init_connect2 = __esm({
202586
202642
  return [connectShell, "-lc", `${envCommandPrefix}${parsed.command}`];
202587
202643
  }
202588
202644
  if (computeProvider === "modal") {
202589
- const interactiveCommand = [
202590
- // Guard against environments that still deliver SIGINT on Ctrl-C
202591
- // even after apps disable ISIG in raw mode. When ISIG is off, set
202592
- // VINTR to undef; restore VINTR once ISIG is back on.
202593
- `orig_intr="$(stty -a 2>/dev/null | sed -n 's/.*intr = \\([^;]*\\);.*/\\1/p')"`,
202594
- `(
202595
- while :; do
202596
- state="$(stty -a 2>/dev/null || true)"
202597
- if [ -z "$state" ]; then
202598
- sleep 0.2
202599
- continue
202600
- fi
202601
- if printf '%s\\n' "$state" | grep -q -- '-isig'; then
202602
- if ! printf '%s\\n' "$state" | grep -q 'intr = <undef>;'; then
202603
- stty intr undef 2>/dev/null || true
202604
- fi
202605
- else
202606
- if printf '%s\\n' "$state" | grep -q 'intr = <undef>;' && [ -n "$orig_intr" ] && [ "$orig_intr" != "<undef>" ]; then
202607
- stty intr "$orig_intr" 2>/dev/null || true
202608
- fi
202609
- fi
202610
- sleep 0.2
202611
- done
202612
- ) &
202613
- tty_intr_guard_pid=$!
202614
- trap 'kill "$tty_intr_guard_pid" 2>/dev/null || true; if [ -n "$orig_intr" ] && [ "$orig_intr" != "<undef>" ]; then stty intr "$orig_intr" 2>/dev/null || true; fi' EXIT`,
202615
- "exec bash -il || exec sh -i"
202616
- ].join("; ");
202645
+ const interactiveCommand = buildModalInteractiveCommand();
202617
202646
  if (projectWorkdir) {
202618
202647
  return [
202619
202648
  "/bin/sh",
@@ -220297,4 +220326,4 @@ smol-toml/dist/index.js:
220297
220326
  */
220298
220327
  //# sourceMappingURL=dvb.cjs.map
220299
220328
 
220300
- //# debugId=01475b24-87d7-5416-a55c-cbe75aafb19b
220329
+ //# debugId=cfdc4475-1f7e-537b-98a2-129bda9805ad