@oh-my-pi/pi-tui 11.12.0 → 11.13.0
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/package.json +3 -3
- package/src/tui.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-tui",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.13.0",
|
|
4
4
|
"description": "Terminal User Interface library with differential rendering for efficient text-based applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"bun": ">=1.3.7"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@oh-my-pi/pi-natives": "11.
|
|
51
|
-
"@oh-my-pi/pi-utils": "11.
|
|
50
|
+
"@oh-my-pi/pi-natives": "11.13.0",
|
|
51
|
+
"@oh-my-pi/pi-utils": "11.13.0",
|
|
52
52
|
"@types/mime-types": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|
|
54
54
|
"marked": "^17.0.1",
|
package/src/tui.ts
CHANGED
|
@@ -872,7 +872,7 @@ export class TUI extends Container {
|
|
|
872
872
|
const debugRedraw = process.env.PI_DEBUG_REDRAW === "1";
|
|
873
873
|
const logRedraw = (reason: string): void => {
|
|
874
874
|
if (!debugRedraw) return;
|
|
875
|
-
const logPath = path.join(os.homedir(), ".
|
|
875
|
+
const logPath = path.join(os.homedir(), ".omp", "agent", "omp-debug.log");
|
|
876
876
|
const msg = `[${new Date().toISOString()}] fullRender: ${reason} (prev=${this.#previousLines.length}, new=${newLines.length}, height=${height})\n`;
|
|
877
877
|
fs.appendFileSync(logPath, msg);
|
|
878
878
|
};
|
|
@@ -1018,7 +1018,7 @@ export class TUI extends Container {
|
|
|
1018
1018
|
const isImage = TERMINAL.isImageLine(line);
|
|
1019
1019
|
if (!isImage && visibleWidth(line) > width) {
|
|
1020
1020
|
// Log all lines to crash file for debugging
|
|
1021
|
-
const crashLogPath = path.join(os.homedir(), ".
|
|
1021
|
+
const crashLogPath = path.join(os.homedir(), ".omp", "agent", "omp-crash.log");
|
|
1022
1022
|
const crashData = [
|
|
1023
1023
|
`Crash at ${new Date().toISOString()}`,
|
|
1024
1024
|
`Terminal width: ${width}`,
|