@hasna/terminal 0.7.3 → 0.7.4

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.
@@ -4,7 +4,11 @@ import { dirname } from "path";
4
4
  const LAZY_THRESHOLD = 200; // lines before switching to lazy mode (was 100, too aggressive)
5
5
  // Commands where the user explicitly wants full output — never lazify
6
6
  const PASSTHROUGH_COMMANDS = [
7
+ // File reading — user explicitly wants content
7
8
  /\bcat\b/, /\bhead\b/, /\btail\b/, /\bbat\b/, /\bless\b/, /\bmore\b/,
9
+ // Git review commands — truncating diffs/patches loses semantic meaning
10
+ /\bgit\s+diff\b/, /\bgit\s+show\b/, /\bgit\s+log\s+-p\b/, /\bgit\s+log\s+--patch\b/,
11
+ // Summary/report commands — summarizing a summary is pointless
8
12
  /\bsummary\b/i, /\bstatus\b/i, /\breport\b/i, /\bstats\b/i,
9
13
  /\bweek\b/i, /\btoday\b/i, /\bdashboard\b/i,
10
14
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/terminal",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Smart terminal wrapper for AI agents and humans — structured output, token compression, MCP server, natural language",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,7 +15,11 @@ export interface LazyResult {
15
15
 
16
16
  // Commands where the user explicitly wants full output — never lazify
17
17
  const PASSTHROUGH_COMMANDS = [
18
+ // File reading — user explicitly wants content
18
19
  /\bcat\b/, /\bhead\b/, /\btail\b/, /\bbat\b/, /\bless\b/, /\bmore\b/,
20
+ // Git review commands — truncating diffs/patches loses semantic meaning
21
+ /\bgit\s+diff\b/, /\bgit\s+show\b/, /\bgit\s+log\s+-p\b/, /\bgit\s+log\s+--patch\b/,
22
+ // Summary/report commands — summarizing a summary is pointless
19
23
  /\bsummary\b/i, /\bstatus\b/i, /\breport\b/i, /\bstats\b/i,
20
24
  /\bweek\b/i, /\btoday\b/i, /\bdashboard\b/i,
21
25
  ];