arisa 2.3.0 → 2.3.2
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/bin/arisa.js +1 -1
- package/package.json +1 -1
- package/src/shared/ink-shim.js +3 -1
package/bin/arisa.js
CHANGED
|
@@ -450,7 +450,7 @@ function provisionArisaUser() {
|
|
|
450
450
|
|
|
451
451
|
// 3. Write ink-shim for non-TTY execution (prevents Ink setRawMode crash)
|
|
452
452
|
const shimPath = "/home/arisa/.arisa-ink-shim.js";
|
|
453
|
-
writeFileSync(shimPath, 'if(process.stdin&&!process.stdin.
|
|
453
|
+
writeFileSync(shimPath, 'if(process.stdin&&!process.stdin.isTTY){process.stdin.setRawMode=()=>process.stdin;process.stdin.isTTY=true;}\n');
|
|
454
454
|
spawnSync("chown", ["arisa:arisa", shimPath], { stdio: "ignore" });
|
|
455
455
|
step(true, "Ink shim installed");
|
|
456
456
|
|
package/package.json
CHANGED
package/src/shared/ink-shim.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Shim for running CLI tools that use Ink without a TTY.
|
|
2
2
|
// Prevents "Raw mode is not supported" crash by providing a no-op setRawMode.
|
|
3
|
-
|
|
3
|
+
// Must patch when isTTY is false — setRawMode may exist but throw at runtime.
|
|
4
|
+
if (process.stdin && !process.stdin.isTTY) {
|
|
4
5
|
process.stdin.setRawMode = () => process.stdin;
|
|
6
|
+
process.stdin.isTTY = true;
|
|
5
7
|
}
|