@triedotdev/mcp 1.0.61 → 1.0.62

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.
@@ -3497,6 +3497,10 @@ var InteractiveDashboard = class {
3497
3497
  this.isActive = true;
3498
3498
  this.state.startTime = Date.now();
3499
3499
  this.addActivity("Guardian started");
3500
+ process.stdout.write(
3501
+ "\x1B[?1049h\x1B[?25l\x1B[2J\x1B[H"
3502
+ // Move cursor to home
3503
+ );
3500
3504
  this.setupKeyboardHandlers();
3501
3505
  this.startUpdateLoop();
3502
3506
  this.registerOutputManagerCallbacks();
@@ -3569,7 +3573,10 @@ var InteractiveDashboard = class {
3569
3573
  const outputManager = getOutputManager();
3570
3574
  outputManager.clearTUICallbacks();
3571
3575
  outputManager.setMode("console");
3572
- process.stdout.write("\x1B[2J\x1B[H\x1B[?25h");
3576
+ process.stdout.write(
3577
+ "\x1B[?25h\x1B[?1049l"
3578
+ // Exit alternate screen buffer (restores previous screen)
3579
+ );
3573
3580
  }
3574
3581
  /**
3575
3582
  * Add activity log entry
@@ -3996,7 +4003,12 @@ var InteractiveDashboard = class {
3996
4003
  this.renderFooter(width);
3997
4004
  const frame = this.buffer.join("\n");
3998
4005
  if (frame !== this.lastFrame) {
3999
- process.stdout.write("\x1B[?25l\x1B[H\x1B[2J" + frame);
4006
+ process.stdout.write(
4007
+ "\x1B[?25l\x1B[H" + // Move cursor to home position (1,1)
4008
+ frame + // Write the frame content
4009
+ "\x1B[J"
4010
+ // Clear from cursor to end of screen
4011
+ );
4000
4012
  this.lastFrame = frame;
4001
4013
  }
4002
4014
  }
@@ -4023,7 +4035,7 @@ var InteractiveDashboard = class {
4023
4035
  const midBorder = colors.border(box.leftT + this.line(width - 2) + box.rightT);
4024
4036
  const brand = colors.brand("TRIE GUARDIAN");
4025
4037
  const rightContent = statusText + " " + watchLabel + alertText + " " + time;
4026
- const innerWidth = width - 4;
4038
+ const innerWidth = width - 5;
4027
4039
  const brandLen = visibleLength(brand);
4028
4040
  const rightLen = visibleLength(rightContent);
4029
4041
  const gap = Math.max(2, innerWidth - brandLen - rightLen);
@@ -6993,4 +7005,4 @@ export {
6993
7005
  InteractiveDashboard,
6994
7006
  TrieScanTool
6995
7007
  };
6996
- //# sourceMappingURL=chunk-XVGHO2Z5.js.map
7008
+ //# sourceMappingURL=chunk-XXNE6HBE.js.map