sandbox 3.3.0 → 3.3.1
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.
|
@@ -7286,7 +7286,7 @@ const scope = {
|
|
|
7286
7286
|
|
|
7287
7287
|
//#endregion
|
|
7288
7288
|
//#region package.json
|
|
7289
|
-
var version = "3.3.
|
|
7289
|
+
var version = "3.3.1";
|
|
7290
7290
|
|
|
7291
7291
|
//#endregion
|
|
7292
7292
|
//#region src/error.ts
|
|
@@ -7584,8 +7584,19 @@ const TERM = "xterm-256color";
|
|
|
7584
7584
|
* A custom prompt so interactive sessions show the Vercel triangle and the
|
|
7585
7585
|
* working directory (e.g. `▲ /vercel/sandbox/ `) instead of the shell's
|
|
7586
7586
|
* default prompt. The server passes this through to the shell verbatim.
|
|
7587
|
+
*
|
|
7588
|
+
* This is built from primitives every POSIX shell honors so it renders the
|
|
7589
|
+
* same regardless of which shell a customer image ships as `/bin/sh`.
|
|
7590
|
+
*
|
|
7591
|
+
* The color escapes are wrapped in the raw readline "ignore" markers
|
|
7592
|
+
* `\x01` (RL_PROMPT_START_IGNORE) and `\x02` (RL_PROMPT_END_IGNORE) — the
|
|
7593
|
+
* same bytes that bash's `\[` / `\]` decode into. This lets bash's readline
|
|
7594
|
+
* exclude the (zero-width) escape sequences from its prompt-width calculation
|
|
7595
|
+
* so cursor positioning stays correct on long/wrapping lines and during line
|
|
7596
|
+
* editing. In non-bash shells these are C0 control bytes that terminals treat
|
|
7597
|
+
* as non-printing, so they don't affect rendering there.
|
|
7587
7598
|
*/
|
|
7588
|
-
const PS1 = `▲
|
|
7599
|
+
const PS1 = `▲ \x01\x1b[2m\x02$PWD/\x01\x1b[0m\x02 `;
|
|
7589
7600
|
/**
|
|
7590
7601
|
* Starts an interactive shell session with a sandbox. The API hands us a
|
|
7591
7602
|
* WebSocket URL and token, and we tunnel stdin/stdout over it.
|
|
@@ -12056,4 +12067,4 @@ const app = (opts) => (0, import_cjs.subcommands)({
|
|
|
12056
12067
|
|
|
12057
12068
|
//#endregion
|
|
12058
12069
|
export { source_exports as a, init_source as i, printTopLevelError as n, require_cjs as r, app as t };
|
|
12059
|
-
//# sourceMappingURL=app-
|
|
12070
|
+
//# sourceMappingURL=app-C0bIcnCg.mjs.map
|