@enjoys/context-engine 1.0.4 → 1.0.6
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/data/commands/journalctl.json +203 -66
- package/data/commands/manifest.json +6 -2
- package/data/commands/systemctl.json +800 -23
- package/data/commands/systemd-analyze.json +239 -0
- package/data/commands/zsh.json +166 -0
- package/data/completion/nginx.json +561 -77
- package/data/completion/systemd.json +795 -47
- package/data/completion/zsh.json +829 -70
- package/data/defination/nginx.json +416 -32
- package/data/defination/systemd.json +538 -56
- package/data/defination/zsh.json +323 -86
- package/data/hover/nginx.json +59 -17
- package/data/hover/systemd.json +42 -7
- package/data/hover/zsh.json +44 -9
- package/package.json +2 -2
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "systemd-analyze",
|
|
3
|
+
"description": "Analyze and debug system manager — boot performance, unit dependencies, security",
|
|
4
|
+
"category": "system",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux"
|
|
7
|
+
],
|
|
8
|
+
"shells": [
|
|
9
|
+
"bash",
|
|
10
|
+
"zsh",
|
|
11
|
+
"fish"
|
|
12
|
+
],
|
|
13
|
+
"subcommands": [
|
|
14
|
+
{
|
|
15
|
+
"name": "time",
|
|
16
|
+
"description": "Show overall boot time breakdown (kernel, initrd, userspace)",
|
|
17
|
+
"examples": [
|
|
18
|
+
"systemd-analyze time"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "blame",
|
|
23
|
+
"description": "List units by startup time (slowest first)",
|
|
24
|
+
"options": [
|
|
25
|
+
{
|
|
26
|
+
"name": "--no-pager",
|
|
27
|
+
"description": "Don't pipe through pager"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"examples": [
|
|
31
|
+
"systemd-analyze blame",
|
|
32
|
+
"systemd-analyze blame | head -20"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "critical-chain",
|
|
37
|
+
"description": "Show time-critical chain of units for boot",
|
|
38
|
+
"args": [
|
|
39
|
+
{
|
|
40
|
+
"name": "<unit>",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"required": false,
|
|
43
|
+
"description": "Unit to trace"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"examples": [
|
|
47
|
+
"systemd-analyze critical-chain",
|
|
48
|
+
"systemd-analyze critical-chain nginx.service"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "plot",
|
|
53
|
+
"description": "Generate SVG boot timeline chart",
|
|
54
|
+
"examples": [
|
|
55
|
+
"systemd-analyze plot > boot.svg"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "dot",
|
|
60
|
+
"description": "Generate GraphViz dependency graph",
|
|
61
|
+
"options": [
|
|
62
|
+
{
|
|
63
|
+
"name": "--to-pattern",
|
|
64
|
+
"description": "Filter to units matching pattern",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "--from-pattern",
|
|
69
|
+
"description": "Filter from units matching pattern",
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"examples": [
|
|
74
|
+
"systemd-analyze dot | dot -Tsvg > deps.svg",
|
|
75
|
+
"systemd-analyze dot --to-pattern='*.target' | dot -Tsvg > targets.svg"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "verify",
|
|
80
|
+
"description": "Verify unit file correctness",
|
|
81
|
+
"args": [
|
|
82
|
+
{
|
|
83
|
+
"name": "<unit-file>",
|
|
84
|
+
"type": "file",
|
|
85
|
+
"required": true,
|
|
86
|
+
"description": "Unit file(s) to verify"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"examples": [
|
|
90
|
+
"systemd-analyze verify myapp.service",
|
|
91
|
+
"systemd-analyze verify /etc/systemd/system/myapp.service"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "security",
|
|
96
|
+
"description": "Analyze security exposure of service units",
|
|
97
|
+
"args": [
|
|
98
|
+
{
|
|
99
|
+
"name": "<unit>",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"required": false,
|
|
102
|
+
"description": "Unit to analyze (or all)"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"examples": [
|
|
106
|
+
"systemd-analyze security",
|
|
107
|
+
"systemd-analyze security nginx.service",
|
|
108
|
+
"systemd-analyze security --no-pager"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "calendar",
|
|
113
|
+
"description": "Test and normalize OnCalendar expressions",
|
|
114
|
+
"args": [
|
|
115
|
+
{
|
|
116
|
+
"name": "<expression>",
|
|
117
|
+
"type": "string",
|
|
118
|
+
"required": true,
|
|
119
|
+
"description": "Calendar expression"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"options": [
|
|
123
|
+
{
|
|
124
|
+
"name": "--iterations",
|
|
125
|
+
"description": "Show N future iterations",
|
|
126
|
+
"type": "number"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"examples": [
|
|
130
|
+
"systemd-analyze calendar daily",
|
|
131
|
+
"systemd-analyze calendar '*-*-* 02:00:00'",
|
|
132
|
+
"systemd-analyze calendar 'Mon *-*-* 09:00:00' --iterations=5"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "timespan",
|
|
137
|
+
"description": "Normalize time span expression",
|
|
138
|
+
"args": [
|
|
139
|
+
{
|
|
140
|
+
"name": "<span>",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"required": true,
|
|
143
|
+
"description": "Time span expression"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"examples": [
|
|
147
|
+
"systemd-analyze timespan '2h 30min'",
|
|
148
|
+
"systemd-analyze timespan '1d 6h'"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "cat-config",
|
|
153
|
+
"description": "Show configuration file with drop-ins",
|
|
154
|
+
"args": [
|
|
155
|
+
{
|
|
156
|
+
"name": "<path>",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"required": true,
|
|
159
|
+
"description": "Config file path"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"examples": [
|
|
163
|
+
"systemd-analyze cat-config systemd/system.conf"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "unit-paths",
|
|
168
|
+
"description": "List directories where unit files are searched",
|
|
169
|
+
"examples": [
|
|
170
|
+
"systemd-analyze unit-paths"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "log-level",
|
|
175
|
+
"description": "Get or set log level",
|
|
176
|
+
"args": [
|
|
177
|
+
{
|
|
178
|
+
"name": "<level>",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"required": false,
|
|
181
|
+
"description": "Log level: emerg, alert, crit, err, warning, notice, info, debug"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"examples": [
|
|
185
|
+
"systemd-analyze log-level",
|
|
186
|
+
"systemd-analyze log-level debug"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"globalOptions": [
|
|
191
|
+
{
|
|
192
|
+
"name": "--help",
|
|
193
|
+
"short": "-h",
|
|
194
|
+
"description": "Show help"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "--no-pager",
|
|
198
|
+
"description": "Don't pipe through pager"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "--user",
|
|
202
|
+
"description": "Operate on user instance"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "--system",
|
|
206
|
+
"description": "Operate on system instance (default)"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "--order",
|
|
210
|
+
"description": "Show only After/Before ordering in dot"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "--require",
|
|
214
|
+
"description": "Show only Requires/Wants dependencies in dot"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"examples": [
|
|
218
|
+
"systemd-analyze",
|
|
219
|
+
"systemd-analyze time",
|
|
220
|
+
"systemd-analyze blame",
|
|
221
|
+
"systemd-analyze blame | head -20",
|
|
222
|
+
"systemd-analyze critical-chain",
|
|
223
|
+
"systemd-analyze critical-chain nginx.service",
|
|
224
|
+
"systemd-analyze plot > boot.svg",
|
|
225
|
+
"systemd-analyze verify myapp.service",
|
|
226
|
+
"systemd-analyze security",
|
|
227
|
+
"systemd-analyze security nginx.service",
|
|
228
|
+
"systemd-analyze calendar daily",
|
|
229
|
+
"systemd-analyze calendar '*-*-* 02:00:00'",
|
|
230
|
+
"systemd-analyze calendar 'Mon *-*-* 09:00:00' --iterations=5",
|
|
231
|
+
"systemd-analyze timespan '2h 30min'",
|
|
232
|
+
"systemd-analyze unit-paths"
|
|
233
|
+
],
|
|
234
|
+
"relatedCommands": [
|
|
235
|
+
"systemctl",
|
|
236
|
+
"journalctl",
|
|
237
|
+
"timedatectl"
|
|
238
|
+
]
|
|
239
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zsh",
|
|
3
|
+
"description": "Z Shell — advanced interactive shell with powerful scripting features",
|
|
4
|
+
"category": "shell",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux",
|
|
7
|
+
"macos"
|
|
8
|
+
],
|
|
9
|
+
"shells": [
|
|
10
|
+
"bash",
|
|
11
|
+
"zsh",
|
|
12
|
+
"fish"
|
|
13
|
+
],
|
|
14
|
+
"subcommands": [],
|
|
15
|
+
"globalOptions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "-c",
|
|
18
|
+
"description": "Execute the given string as a command",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "-s",
|
|
23
|
+
"description": "Read commands from standard input"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "-i",
|
|
27
|
+
"description": "Force interactive mode"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "-l",
|
|
31
|
+
"description": "Start as a login shell"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "-f",
|
|
35
|
+
"description": "Don't read startup files (.zshrc, .zprofile, etc.)"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "-d",
|
|
39
|
+
"description": "Don't read global startup files (/etc/zsh/*)"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "-n",
|
|
43
|
+
"description": "No-execute mode (syntax check only)"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "-x",
|
|
47
|
+
"description": "Trace mode — print commands before executing"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "-v",
|
|
51
|
+
"description": "Verbose — print input lines as they are read"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "-e",
|
|
55
|
+
"description": "Exit on first error (like set -e)"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "-o",
|
|
59
|
+
"description": "Set shell option (e.g., -o pipefail)",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "+o",
|
|
64
|
+
"description": "Unset shell option",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "--emulate",
|
|
69
|
+
"description": "Emulate another shell (sh, ksh, csh)",
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "--version",
|
|
74
|
+
"description": "Print zsh version"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"examples": [
|
|
78
|
+
"zsh",
|
|
79
|
+
"zsh -c 'echo hello'",
|
|
80
|
+
"zsh -l",
|
|
81
|
+
"zsh -f",
|
|
82
|
+
"zsh -i -l",
|
|
83
|
+
"zsh script.zsh",
|
|
84
|
+
"zsh -n script.zsh",
|
|
85
|
+
"zsh -x script.zsh",
|
|
86
|
+
"zsh -c 'print -l **/*.txt'",
|
|
87
|
+
"zsh -c 'for i in {1..10}; do echo $i; done'",
|
|
88
|
+
"zsh --emulate sh -c 'echo POSIX mode'",
|
|
89
|
+
"zsh --version"
|
|
90
|
+
],
|
|
91
|
+
"relatedCommands": [
|
|
92
|
+
"bash",
|
|
93
|
+
"fish",
|
|
94
|
+
"sh",
|
|
95
|
+
"chsh",
|
|
96
|
+
"source"
|
|
97
|
+
],
|
|
98
|
+
"contextEngine": {
|
|
99
|
+
"detectors": [
|
|
100
|
+
{
|
|
101
|
+
"name": "zsh_version",
|
|
102
|
+
"description": "Installed zsh version",
|
|
103
|
+
"command": "zsh --version 2>/dev/null",
|
|
104
|
+
"parser": "text",
|
|
105
|
+
"cacheFor": 3600,
|
|
106
|
+
"requiresCmd": "zsh"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "current_shell",
|
|
110
|
+
"description": "Current user shell",
|
|
111
|
+
"command": "echo $SHELL",
|
|
112
|
+
"parser": "text",
|
|
113
|
+
"cacheFor": 3600,
|
|
114
|
+
"requiresCmd": "zsh"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "zshrc_exists",
|
|
118
|
+
"description": "Check if .zshrc exists",
|
|
119
|
+
"command": "test -f ~/.zshrc && echo 'yes' || echo 'no'",
|
|
120
|
+
"parser": "text",
|
|
121
|
+
"cacheFor": 60,
|
|
122
|
+
"requiresCmd": "zsh"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "oh_my_zsh",
|
|
126
|
+
"description": "Check if Oh My Zsh is installed",
|
|
127
|
+
"command": "test -d ~/.oh-my-zsh && echo 'installed' || echo 'not installed'",
|
|
128
|
+
"parser": "text",
|
|
129
|
+
"cacheFor": 300,
|
|
130
|
+
"requiresCmd": "zsh"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "zsh_theme",
|
|
134
|
+
"description": "Current ZSH_THEME",
|
|
135
|
+
"command": "grep '^ZSH_THEME=' ~/.zshrc 2>/dev/null | head -1 | cut -d'\"' -f2",
|
|
136
|
+
"parser": "text",
|
|
137
|
+
"cacheFor": 120,
|
|
138
|
+
"requiresCmd": "zsh"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "zsh_plugins",
|
|
142
|
+
"description": "Configured Oh My Zsh plugins",
|
|
143
|
+
"command": "grep -A20 '^plugins=(' ~/.zshrc 2>/dev/null | sed -n '/^plugins=(/,/)/p' | tr -d '()' | sed 's/plugins=//' | tr '\\n' ' '",
|
|
144
|
+
"parser": "text",
|
|
145
|
+
"cacheFor": 120,
|
|
146
|
+
"requiresCmd": "zsh"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "fpath_dirs",
|
|
150
|
+
"description": "Number of fpath directories",
|
|
151
|
+
"command": "zsh -c 'echo ${#fpath}' 2>/dev/null",
|
|
152
|
+
"parser": "text",
|
|
153
|
+
"cacheFor": 300,
|
|
154
|
+
"requiresCmd": "zsh"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "aliases_count",
|
|
158
|
+
"description": "Number of defined aliases",
|
|
159
|
+
"command": "zsh -ic 'alias | wc -l' 2>/dev/null",
|
|
160
|
+
"parser": "text",
|
|
161
|
+
"cacheFor": 60,
|
|
162
|
+
"requiresCmd": "zsh"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|