@threadbase-sh/streamer 1.55.3 → 1.55.4
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/cli.cjs +4 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -108227,7 +108227,7 @@ function createScreen() {
|
|
|
108227
108227
|
function stripAnsi(str) {
|
|
108228
108228
|
return str.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, "").replace(/\x1b\][^\x07]*\x07/g, "");
|
|
108229
108229
|
}
|
|
108230
|
-
var import_headless, PTY_COLS, PTY_ROWS, SCREEN_SCROLLBACK, pty;
|
|
108230
|
+
var import_headless, PTY_COLS, PTY_ROWS, SCREEN_SCROLLBACK, REPLAY_MAX_LINES, pty;
|
|
108231
108231
|
var init_pty_shared = __esm({
|
|
108232
108232
|
"src/pty-shared.ts"() {
|
|
108233
108233
|
"use strict";
|
|
@@ -108235,6 +108235,7 @@ var init_pty_shared = __esm({
|
|
|
108235
108235
|
PTY_COLS = 120;
|
|
108236
108236
|
PTY_ROWS = 40;
|
|
108237
108237
|
SCREEN_SCROLLBACK = 1e3;
|
|
108238
|
+
REPLAY_MAX_LINES = SCREEN_SCROLLBACK + PTY_ROWS;
|
|
108238
108239
|
pty = null;
|
|
108239
108240
|
}
|
|
108240
108241
|
});
|
|
@@ -149858,6 +149859,7 @@ function handleListProjects(url2, res) {
|
|
|
149858
149859
|
|
|
149859
149860
|
// src/server-wiring.ts
|
|
149860
149861
|
init_logger();
|
|
149862
|
+
init_pty_shared();
|
|
149861
149863
|
init_capabilities();
|
|
149862
149864
|
function wsAllows(principal, required2) {
|
|
149863
149865
|
return principal === null || hasCapability(principal, required2);
|
|
@@ -150173,7 +150175,7 @@ function createApiDeps(deps) {
|
|
|
150173
150175
|
}
|
|
150174
150176
|
deps.addSessionSubscriber(msg.sessionId, ws2);
|
|
150175
150177
|
if (deps.ptyManager.hasSession(msg.sessionId)) {
|
|
150176
|
-
const lines = await deps.ptyManager.getOutputLines(msg.sessionId,
|
|
150178
|
+
const lines = await deps.ptyManager.getOutputLines(msg.sessionId, REPLAY_MAX_LINES);
|
|
150177
150179
|
const userMessages = deps.ptyManager.getInputHistory(msg.sessionId);
|
|
150178
150180
|
ws2.send(
|
|
150179
150181
|
JSON.stringify({
|