@sma1lboy/kobe 0.9.33 → 0.9.35
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/index.js +320 -320
- package/dist/cli/kobe-run.js +313 -313
- package/dist/cli/pty-host-node.mjs +7 -1
- package/dist/cli/rove-run.js +313 -313
- package/package.json +1 -1
|
@@ -955,6 +955,7 @@ class WarmSpare {
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
// ../kobe-daemon/src/daemon/pty-host.ts
|
|
958
|
+
var LOGGED_WRITE_BYTES = 1024;
|
|
958
959
|
var DEFAULT_SCROLLBACK_CAP = 512 * 1024;
|
|
959
960
|
var EXIT_TAIL_BYTES = 16 * 1024;
|
|
960
961
|
var DEFAULT_HUMAN_WRITE_QUIET_MS = 1e4;
|
|
@@ -1084,9 +1085,14 @@ class PtyHost {
|
|
|
1084
1085
|
if (client !== undefined && session.sinks.has(client)) {
|
|
1085
1086
|
session.lastHumanWriteMs = Date.now();
|
|
1086
1087
|
}
|
|
1088
|
+
if (data.length >= LOGGED_WRITE_BYTES) {
|
|
1089
|
+
this.opts.log?.("pty", `wrote ${data.length} bytes to ${key}`);
|
|
1090
|
+
}
|
|
1087
1091
|
try {
|
|
1088
1092
|
session.proc?.write(data);
|
|
1089
|
-
} catch {
|
|
1093
|
+
} catch (error) {
|
|
1094
|
+
this.opts.log?.("pty", `write failed on ${key} (${data.length} bytes): ${String(error)}`);
|
|
1095
|
+
}
|
|
1090
1096
|
}
|
|
1091
1097
|
resize(key, cols, rows) {
|
|
1092
1098
|
const session = this.sessions.get(key);
|