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 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.setRawMode)process.stdin.setRawMode=()=>process.stdin;\n');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arisa",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Arisa - dynamic agent runtime with daemon/core architecture that evolves through user interaction",
5
5
  "preferGlobal": true,
6
6
  "bin": {
@@ -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
- if (process.stdin && !process.stdin.setRawMode) {
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
  }