@enjoys/context-engine 1.0.1 → 1.0.3

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.
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "btop",
3
+ "description": "Resource monitor showing usage and stats for processor, memory, disks, network and processes (btop++)",
4
+ "category": "System Monitoring",
5
+ "platforms": ["linux", "macos"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--help", "shorthand": "-h", "description": "Show help message and exit" },
10
+ { "name": "--version", "shorthand": "-v", "description": "Show version information" },
11
+ { "name": "--utf-force", "description": "Force UTF-8 Unicode output regardless of locale" },
12
+ { "name": "--debug", "description": "Start in debug mode, logging to btop.log" },
13
+ { "name": "--low-color", "shorthand": "-lc", "description": "Disable truecolor, use 256-color or 16-color mode" },
14
+ { "name": "--tty-mode", "shorthand": "-t", "description": "Force TTY mode (16 color, simplified UI for TTY terminals)" },
15
+ { "name": "--update", "description": "Set update interval in milliseconds (minimum 100)", "takesValue": true },
16
+ { "name": "--preset", "shorthand": "-p", "description": "Start with a preset layout (0-9) as defined in config", "takesValue": true },
17
+ { "name": "--theme", "description": "Set color theme (name or full path to .theme file)", "takesValue": true },
18
+ { "name": "--no-update-check", "description": "Disable check for newer versions at startup" }
19
+ ],
20
+ "examples": [
21
+ { "command": "btop", "description": "Launch the resource monitor" },
22
+ { "command": "btop --utf-force", "description": "Force UTF-8 output (fix rendering issues)" },
23
+ { "command": "btop -t", "description": "Run in TTY-compatible mode" },
24
+ { "command": "btop --preset 2", "description": "Start with layout preset 2" },
25
+ { "command": "btop --update 500", "description": "Update every 500 milliseconds" },
26
+ { "command": "btop -lc", "description": "Run with low-color mode (no truecolor)" },
27
+ { "command": "btop --theme gruvbox_dark", "description": "Start with the gruvbox_dark theme" },
28
+ { "command": "btop --debug", "description": "Run in debug mode for troubleshooting" }
29
+ ],
30
+ "relatedCommands": ["htop", "top", "ps"],
31
+ "contextEngine": {
32
+ "detectors": [
33
+ {
34
+ "name": "version",
35
+ "description": "btop version",
36
+ "command": "btop --version 2>/dev/null",
37
+ "parser": "lines",
38
+ "cacheFor": 600,
39
+ "requiresCmd": "btop"
40
+ },
41
+ {
42
+ "name": "config",
43
+ "description": "btop config location",
44
+ "command": "ls ~/.config/btop/btop.conf 2>/dev/null",
45
+ "parser": "lines",
46
+ "cacheFor": 300,
47
+ "requiresCmd": "btop"
48
+ },
49
+ {
50
+ "name": "themes",
51
+ "description": "Available btop themes",
52
+ "command": "ls ~/.config/btop/themes/ 2>/dev/null || ls /usr/share/btop/themes/ 2>/dev/null | head -10",
53
+ "parser": "lines",
54
+ "cacheFor": 600,
55
+ "requiresCmd": "btop"
56
+ }
57
+ ]
58
+ }
59
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "htop",
3
+ "description": "Interactive process viewer for Unix systems with a rich terminal UI",
4
+ "category": "System Monitoring",
5
+ "platforms": ["linux", "macos"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--help", "shorthand": "-h", "description": "Show help message and exit" },
10
+ { "name": "--version", "shorthand": "-V", "description": "Print version information" },
11
+ { "name": "--delay", "shorthand": "-d", "description": "Update interval in tenths of seconds (e.g., 10 = 1 second)", "takesValue": true },
12
+ { "name": "--no-color", "shorthand": "-C", "description": "Start in monochrome mode (no colors)" },
13
+ { "name": "--user", "shorthand": "-u", "description": "Show only processes of a given user", "takesValue": true },
14
+ { "name": "--pid", "shorthand": "-p", "description": "Show only the given PIDs (comma-separated list)", "takesValue": true },
15
+ { "name": "--sort-key", "shorthand": "-s", "description": "Sort by specified column (e.g., PERCENT_CPU, PERCENT_MEM, TIME)", "takesValue": true },
16
+ { "name": "--tree", "shorthand": "-t", "description": "Show process tree view" },
17
+ { "name": "--no-mouse", "description": "Disable mouse support" },
18
+ { "name": "--no-unicode", "description": "Do not use Unicode drawing characters" },
19
+ { "name": "--highlight-threads", "shorthand": "-H", "description": "Highlight threads with a different color" },
20
+ { "name": "--filter", "shorthand": "-F", "description": "Filter processes by command name", "takesValue": true },
21
+ { "name": "--readonly", "description": "Disable all system and process changing features (kill, renice, etc.)" },
22
+ { "name": "--drop-capabilities", "description": "Drop unneeded Linux capabilities (when running with elevated privileges)" }
23
+ ],
24
+ "examples": [
25
+ { "command": "htop", "description": "Launch interactive process viewer" },
26
+ { "command": "htop -u root", "description": "Show only root user processes" },
27
+ { "command": "htop -p 1234", "description": "Monitor a specific process by PID" },
28
+ { "command": "htop -t", "description": "Show processes in tree view" },
29
+ { "command": "htop -d 10", "description": "Set update delay to 1 second" },
30
+ { "command": "htop -s PERCENT_MEM", "description": "Sort processes by memory usage" },
31
+ { "command": "htop -C", "description": "Start in monochrome (no color) mode" },
32
+ { "command": "htop -p 1234,5678 -t", "description": "Monitor multiple PIDs in tree view" },
33
+ { "command": "htop --no-mouse --no-unicode", "description": "Run without mouse and Unicode support" }
34
+ ],
35
+ "relatedCommands": ["top", "btop", "ps"],
36
+ "contextEngine": {
37
+ "detectors": [
38
+ {
39
+ "name": "version",
40
+ "description": "htop version",
41
+ "command": "htop --version 2>/dev/null | head -1",
42
+ "parser": "lines",
43
+ "cacheFor": 600,
44
+ "requiresCmd": "htop"
45
+ },
46
+ {
47
+ "name": "running",
48
+ "description": "Check if htop is currently running",
49
+ "command": "pgrep -x htop 2>/dev/null",
50
+ "parser": "lines",
51
+ "cacheFor": 30,
52
+ "requiresCmd": "htop"
53
+ }
54
+ ]
55
+ }
56
+ }