wispy-cli 2.7.33 → 2.7.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/lib/wispy-tui-v3.mjs +7 -0
- package/package.json +1 -1
package/lib/wispy-tui-v3.mjs
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
import chalk from "chalk";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import { readFile, writeFile, readdir, stat, mkdir } from "node:fs/promises";
|
|
18
|
+
import { appendFileSync } from "node:fs";
|
|
18
19
|
import { fileURLToPath } from "node:url";
|
|
19
20
|
|
|
20
21
|
import {
|
|
@@ -1126,6 +1127,12 @@ class WispyInput extends Input {
|
|
|
1126
1127
|
if (this._wispy.handleGlobalKey(data)) return;
|
|
1127
1128
|
}
|
|
1128
1129
|
|
|
1130
|
+
// Debug: log raw input to file
|
|
1131
|
+
try {
|
|
1132
|
+
const hex = [...data].map(c => c.charCodeAt(0).toString(16).padStart(2, "0")).join(" ");
|
|
1133
|
+
appendFileSync("/tmp/wispy-input-debug.log", `len=${data.length} hex=${hex} str=${JSON.stringify(data)}\n`);
|
|
1134
|
+
} catch {}
|
|
1135
|
+
|
|
1129
1136
|
// Default: pass to Input (single-line, handles typing, backspace, CJK, cursor movement)
|
|
1130
1137
|
super.handleInput(data);
|
|
1131
1138
|
}
|
package/package.json
CHANGED