@enjoys/context-engine 1.2.0 → 1.4.1
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/codeActions/angular.json +126 -0
- package/data/codeActions/css.json +111 -0
- package/data/codeActions/nestjs.json +124 -0
- package/data/codeActions/nextjs.json +198 -0
- package/data/codeActions/react.json +154 -0
- package/data/codeActions/shadcn.json +112 -0
- package/data/codeActions/shell.json +169 -26
- package/data/codeActions/tailwindcss.json +76 -0
- package/data/codeLens/angular.json +22 -0
- package/data/codeLens/css.json +68 -0
- package/data/codeLens/nestjs.json +21 -0
- package/data/codeLens/nextjs.json +117 -0
- package/data/codeLens/react.json +89 -0
- package/data/codeLens/shadcn.json +89 -0
- package/data/codeLens/shell.json +59 -17
- package/data/codeLens/tailwindcss.json +103 -0
- package/data/color/angular.json +21 -0
- package/data/color/css.json +124 -0
- package/data/color/nestjs.json +18 -0
- package/data/color/nextjs.json +22 -0
- package/data/color/react.json +93 -0
- package/data/color/shadcn.json +66 -0
- package/data/color/shell.json +106 -80
- package/data/color/tailwindcss.json +53 -0
- package/data/commands/angular.json +312 -0
- package/data/commands/css.json +41 -0
- package/data/commands/manifest.json +734 -727
- package/data/commands/nestjs.json +273 -0
- package/data/commands/nextjs.json +123 -0
- package/data/commands/react.json +210 -0
- package/data/commands/shadcn.json +410 -0
- package/data/commands/shell.json +571 -41
- package/data/commands/tailwindcss.json +53 -0
- package/data/completion/angular.json +1490 -0
- package/data/completion/css.json +1176 -0
- package/data/completion/javascript.json +27 -0
- package/data/completion/nestjs.json +1454 -0
- package/data/completion/nextjs.json +1373 -0
- package/data/completion/react.json +1319 -0
- package/data/completion/redis-cli.json +1 -1
- package/data/completion/shadcn.json +1202 -0
- package/data/completion/shell.json +2446 -510
- package/data/completion/tailwindcss.json +284 -0
- package/data/completion/typescript.json +27 -0
- package/data/declaration/angular.json +46 -0
- package/data/declaration/css.json +59 -0
- package/data/declaration/nestjs.json +47 -0
- package/data/declaration/nextjs.json +274 -0
- package/data/declaration/react.json +199 -0
- package/data/declaration/shadcn.json +211 -0
- package/data/declaration/shell.json +343 -24
- package/data/declaration/tailwindcss.json +137 -0
- package/data/definition/angular.json +670 -0
- package/data/definition/css.json +115 -0
- package/data/definition/nestjs.json +684 -0
- package/data/definition/nextjs.json +439 -0
- package/data/definition/react.json +397 -0
- package/data/definition/redis-cli.json +1 -1
- package/data/definition/shadcn.json +99 -0
- package/data/definition/shell.json +820 -0
- package/data/definition/tailwindcss.json +115 -0
- package/data/documentHighlight/angular.json +414 -0
- package/data/documentHighlight/css.json +125 -0
- package/data/documentHighlight/nestjs.json +115 -0
- package/data/documentHighlight/nextjs.json +212 -0
- package/data/documentHighlight/react.json +119 -0
- package/data/documentHighlight/shadcn.json +168 -0
- package/data/documentHighlight/shell.json +664 -334
- package/data/documentHighlight/tailwindcss.json +160 -0
- package/data/documentRangeFormatting/angular.json +45 -0
- package/data/documentRangeFormatting/css.json +101 -0
- package/data/documentRangeFormatting/nestjs.json +17 -0
- package/data/documentRangeFormatting/nextjs.json +17 -0
- package/data/documentRangeFormatting/react.json +78 -0
- package/data/documentRangeFormatting/shadcn.json +45 -0
- package/data/documentRangeFormatting/shell.json +120 -53
- package/data/documentRangeFormatting/tailwindcss.json +55 -0
- package/data/documentSymbol/angular.json +180 -0
- package/data/documentSymbol/css.json +96 -0
- package/data/documentSymbol/nestjs.json +152 -0
- package/data/documentSymbol/nextjs.json +159 -0
- package/data/documentSymbol/react.json +145 -0
- package/data/documentSymbol/shadcn.json +131 -0
- package/data/documentSymbol/shell.json +166 -26
- package/data/documentSymbol/tailwindcss.json +110 -0
- package/data/foldingRange/angular.json +99 -0
- package/data/foldingRange/css.json +66 -0
- package/data/foldingRange/nestjs.json +26 -0
- package/data/foldingRange/nextjs.json +26 -0
- package/data/foldingRange/react.json +120 -0
- package/data/foldingRange/shadcn.json +93 -0
- package/data/foldingRange/shell.json +106 -46
- package/data/foldingRange/tailwindcss.json +60 -0
- package/data/formatting/angular.json +21 -0
- package/data/formatting/css.json +73 -0
- package/data/formatting/nestjs.json +23 -0
- package/data/formatting/nextjs.json +23 -0
- package/data/formatting/react.json +71 -0
- package/data/formatting/shadcn.json +61 -0
- package/data/formatting/shell.json +103 -19
- package/data/formatting/tailwindcss.json +48 -0
- package/data/hover/angular.json +455 -0
- package/data/hover/css.json +300 -0
- package/data/hover/nestjs.json +296 -0
- package/data/hover/nextjs.json +305 -0
- package/data/hover/react.json +173 -0
- package/data/hover/redis-cli.json +1 -1
- package/data/hover/shadcn.json +450 -0
- package/data/hover/shell.json +684 -75
- package/data/hover/tailwindcss.json +968 -0
- package/data/implementation/angular.json +22 -0
- package/data/implementation/css.json +65 -0
- package/data/implementation/nestjs.json +24 -0
- package/data/implementation/nextjs.json +137 -0
- package/data/implementation/react.json +125 -0
- package/data/implementation/shadcn.json +89 -0
- package/data/implementation/shell.json +59 -3
- package/data/implementation/tailwindcss.json +59 -0
- package/data/inlayHints/angular.json +24 -0
- package/data/inlayHints/css.json +87 -0
- package/data/inlayHints/nestjs.json +24 -0
- package/data/inlayHints/nextjs.json +143 -0
- package/data/inlayHints/react.json +177 -0
- package/data/inlayHints/shadcn.json +109 -0
- package/data/inlayHints/shell.json +223 -35
- package/data/inlayHints/tailwindcss.json +111 -0
- package/data/inlineCompletions/angular.json +135 -0
- package/data/inlineCompletions/css.json +125 -0
- package/data/inlineCompletions/javascript.json +12 -0
- package/data/inlineCompletions/nestjs.json +25 -0
- package/data/inlineCompletions/nextjs.json +179 -0
- package/data/inlineCompletions/react.json +203 -0
- package/data/inlineCompletions/shadcn.json +115 -0
- package/data/inlineCompletions/shell.json +185 -35
- package/data/inlineCompletions/tailwindcss.json +411 -0
- package/data/inlineCompletions/typescript.json +12 -0
- package/data/linkedEditingRange/angular.json +23 -0
- package/data/linkedEditingRange/css.json +40 -0
- package/data/linkedEditingRange/nestjs.json +10 -0
- package/data/linkedEditingRange/nextjs.json +11 -0
- package/data/linkedEditingRange/react.json +75 -0
- package/data/linkedEditingRange/shadcn.json +23 -0
- package/data/linkedEditingRange/shell.json +25 -25
- package/data/linkedEditingRange/tailwindcss.json +30 -0
- package/data/links/angular.json +95 -0
- package/data/links/css.json +55 -0
- package/data/links/nestjs.json +130 -0
- package/data/links/nextjs.json +91 -0
- package/data/links/react.json +75 -0
- package/data/links/shadcn.json +98 -0
- package/data/links/shell.json +56 -0
- package/data/links/tailwindcss.json +65 -0
- package/data/manifest.json +399 -150
- package/data/onTypeFormatting/angular.json +14 -0
- package/data/onTypeFormatting/css.json +82 -0
- package/data/onTypeFormatting/nestjs.json +16 -0
- package/data/onTypeFormatting/nextjs.json +17 -0
- package/data/onTypeFormatting/react.json +127 -0
- package/data/onTypeFormatting/shadcn.json +54 -0
- package/data/onTypeFormatting/shell.json +72 -68
- package/data/onTypeFormatting/tailwindcss.json +63 -0
- package/data/rangeSemanticTokens/angular.json +140 -0
- package/data/rangeSemanticTokens/css.json +125 -0
- package/data/rangeSemanticTokens/nestjs.json +27 -0
- package/data/rangeSemanticTokens/nextjs.json +28 -0
- package/data/rangeSemanticTokens/react.json +216 -0
- package/data/rangeSemanticTokens/shadcn.json +140 -0
- package/data/rangeSemanticTokens/shell.json +247 -69
- package/data/rangeSemanticTokens/tailwindcss.json +186 -0
- package/data/references/angular.json +26 -0
- package/data/references/css.json +65 -0
- package/data/references/nestjs.json +24 -0
- package/data/references/nextjs.json +178 -0
- package/data/references/react.json +192 -0
- package/data/references/shadcn.json +101 -0
- package/data/references/shell.json +323 -92
- package/data/references/tailwindcss.json +125 -0
- package/data/rename/angular.json +131 -0
- package/data/rename/css.json +91 -0
- package/data/rename/nestjs.json +32 -0
- package/data/rename/nextjs.json +31 -0
- package/data/rename/react.json +88 -0
- package/data/rename/shadcn.json +79 -0
- package/data/rename/shell.json +101 -31
- package/data/rename/tailwindcss.json +58 -0
- package/data/selectionRange/angular.json +95 -0
- package/data/selectionRange/css.json +55 -0
- package/data/selectionRange/nestjs.json +21 -0
- package/data/selectionRange/nextjs.json +22 -0
- package/data/selectionRange/react.json +87 -0
- package/data/selectionRange/shadcn.json +89 -0
- package/data/selectionRange/shell.json +65 -35
- package/data/selectionRange/tailwindcss.json +35 -0
- package/data/semanticTokens/angular.json +198 -0
- package/data/semanticTokens/css.json +107 -0
- package/data/semanticTokens/nestjs.json +35 -0
- package/data/semanticTokens/nextjs.json +38 -0
- package/data/semanticTokens/react.json +215 -0
- package/data/semanticTokens/shadcn.json +180 -0
- package/data/semanticTokens/shell.json +238 -65
- package/data/semanticTokens/tailwindcss.json +161 -0
- package/data/signatureHelp/angular.json +182 -0
- package/data/signatureHelp/css.json +137 -0
- package/data/signatureHelp/nestjs.json +128 -0
- package/data/signatureHelp/nextjs.json +127 -0
- package/data/signatureHelp/react.json +281 -0
- package/data/signatureHelp/shadcn.json +237 -0
- package/data/signatureHelp/shell.json +797 -104
- package/data/signatureHelp/tailwindcss.json +64 -0
- package/data/typeDefinition/angular.json +362 -0
- package/data/typeDefinition/css.json +53 -0
- package/data/typeDefinition/nestjs.json +334 -0
- package/data/typeDefinition/nextjs.json +285 -0
- package/data/typeDefinition/react.json +236 -0
- package/data/typeDefinition/shadcn.json +292 -0
- package/data/typeDefinition/shell.json +104 -40
- package/data/typeDefinition/tailwindcss.json +47 -0
- package/package.json +1 -1
- package/data/codeActions/bash.json +0 -169
- package/data/codeActions/zsh.json +0 -49
- package/data/codeLens/bash.json +0 -75
- package/data/codeLens/zsh.json +0 -19
- package/data/color/bash.json +0 -100
- package/data/color/zsh.json +0 -80
- package/data/commands/bash.json +0 -102
- package/data/commands/zsh.json +0 -166
- package/data/completion/bash.json +0 -1184
- package/data/completion/zsh.json +0 -973
- package/data/declaration/bash.json +0 -301
- package/data/declaration/zsh.json +0 -205
- package/data/definition/bash.json +0 -565
- package/data/definition/zsh.json +0 -350
- package/data/documentHighlight/bash.json +0 -393
- package/data/documentHighlight/zsh.json +0 -266
- package/data/documentRangeFormatting/bash.json +0 -41
- package/data/documentRangeFormatting/zsh.json +0 -59
- package/data/documentSymbol/bash.json +0 -124
- package/data/documentSymbol/zsh.json +0 -26
- package/data/foldingRange/bash.json +0 -76
- package/data/foldingRange/zsh.json +0 -46
- package/data/formatting/bash.json +0 -88
- package/data/formatting/zsh.json +0 -28
- package/data/hover/bash.json +0 -579
- package/data/hover/zsh.json +0 -96
- package/data/implementation/bash.json +0 -44
- package/data/implementation/zsh.json +0 -41
- package/data/inlayHints/bash.json +0 -207
- package/data/inlayHints/zsh.json +0 -43
- package/data/inlineCompletions/bash.json +0 -155
- package/data/inlineCompletions/zsh.json +0 -17
- package/data/linkedEditingRange/bash.json +0 -25
- package/data/linkedEditingRange/zsh.json +0 -25
- package/data/links/bash.json +0 -56
- package/data/links/zsh.json +0 -15
- package/data/onTypeFormatting/bash.json +0 -68
- package/data/onTypeFormatting/zsh.json +0 -68
- package/data/rangeSemanticTokens/bash.json +0 -90
- package/data/rangeSemanticTokens/zsh.json +0 -76
- package/data/references/bash.json +0 -221
- package/data/references/zsh.json +0 -166
- package/data/rename/bash.json +0 -37
- package/data/rename/zsh.json +0 -31
- package/data/selectionRange/bash.json +0 -35
- package/data/selectionRange/zsh.json +0 -35
- package/data/semanticTokens/bash.json +0 -71
- package/data/semanticTokens/zsh.json +0 -71
- package/data/signatureHelp/bash.json +0 -111
- package/data/signatureHelp/zsh.json +0 -118
- package/data/typeDefinition/bash.json +0 -95
- package/data/typeDefinition/zsh.json +0 -40
|
@@ -1,40 +1,104 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "shell",
|
|
3
|
-
"typeDefinitions": {
|
|
4
|
-
"string": {
|
|
5
|
-
"type": "type",
|
|
6
|
-
"signature": "\"text\" or 'text'",
|
|
7
|
-
"description": "Text value, double-quoted allows variable expansion and escapes, single-quoted is literal"
|
|
8
|
-
},
|
|
9
|
-
"integer": {
|
|
10
|
-
"type": "type",
|
|
11
|
-
"signature": "integer",
|
|
12
|
-
"description": "Whole number used in arithmetic via $(( )) and test comparisons"
|
|
13
|
-
},
|
|
14
|
-
"array": {
|
|
15
|
-
"type": "type",
|
|
16
|
-
"signature": "array=(val1 val2 val3)",
|
|
17
|
-
"description": "Indexed array of strings declared with parentheses, accessed with ${arr[i]}"
|
|
18
|
-
},
|
|
19
|
-
"exit_status": {
|
|
20
|
-
"type": "type",
|
|
21
|
-
"signature": "$? (0-255)",
|
|
22
|
-
"description": "Integer 0-255 returned by commands; 0 means success, non-zero is failure"
|
|
23
|
-
},
|
|
24
|
-
"file_descriptor": {
|
|
25
|
-
"type": "type",
|
|
26
|
-
"signature": "0 (stdin), 1 (stdout), 2 (stderr)",
|
|
27
|
-
"description": "Integer handle for I/O streams used with redirection operators > < 2>"
|
|
28
|
-
},
|
|
29
|
-
"pid": {
|
|
30
|
-
"type": "type",
|
|
31
|
-
"signature": "$$ (self) or $! (last bg)",
|
|
32
|
-
"description": "Process ID number for the current shell or background processes"
|
|
33
|
-
},
|
|
34
|
-
"glob_pattern": {
|
|
35
|
-
"type": "type",
|
|
36
|
-
"signature": "*, ?, [chars], {a,b}",
|
|
37
|
-
"description": "Filename expansion pattern with wildcards for matching multiple paths"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "shell",
|
|
3
|
+
"typeDefinitions": {
|
|
4
|
+
"string": {
|
|
5
|
+
"type": "type",
|
|
6
|
+
"signature": "\"text\" or 'text'",
|
|
7
|
+
"description": "Text value, double-quoted allows variable expansion and escapes, single-quoted is literal"
|
|
8
|
+
},
|
|
9
|
+
"integer": {
|
|
10
|
+
"type": "type",
|
|
11
|
+
"signature": "integer",
|
|
12
|
+
"description": "Whole number used in arithmetic via $(( )) and test comparisons"
|
|
13
|
+
},
|
|
14
|
+
"array": {
|
|
15
|
+
"type": "type",
|
|
16
|
+
"signature": "array=(val1 val2 val3)",
|
|
17
|
+
"description": "Indexed array of strings declared with parentheses, accessed with ${arr[i]}"
|
|
18
|
+
},
|
|
19
|
+
"exit_status": {
|
|
20
|
+
"type": "type",
|
|
21
|
+
"signature": "$? (0-255)",
|
|
22
|
+
"description": "Integer 0-255 returned by commands; 0 means success, non-zero is failure"
|
|
23
|
+
},
|
|
24
|
+
"file_descriptor": {
|
|
25
|
+
"type": "type",
|
|
26
|
+
"signature": "0 (stdin), 1 (stdout), 2 (stderr)",
|
|
27
|
+
"description": "Integer handle for I/O streams used with redirection operators > < 2>"
|
|
28
|
+
},
|
|
29
|
+
"pid": {
|
|
30
|
+
"type": "type",
|
|
31
|
+
"signature": "$$ (self) or $! (last bg)",
|
|
32
|
+
"description": "Process ID number for the current shell or background processes"
|
|
33
|
+
},
|
|
34
|
+
"glob_pattern": {
|
|
35
|
+
"type": "type",
|
|
36
|
+
"signature": "*, ?, [chars], {a,b}",
|
|
37
|
+
"description": "Filename expansion pattern with wildcards for matching multiple paths"
|
|
38
|
+
},
|
|
39
|
+
"indexed_array": {
|
|
40
|
+
"type": "primitive",
|
|
41
|
+
"signature": "declare -a name=(value1 value2 ...)",
|
|
42
|
+
"description": "Ordered array indexed by non-negative integers starting at 0. Can be sparse. Created implicitly with name=() or name[n]=value, or explicitly with declare -a.",
|
|
43
|
+
"module": "builtin"
|
|
44
|
+
},
|
|
45
|
+
"associative_array": {
|
|
46
|
+
"type": "primitive",
|
|
47
|
+
"signature": "declare -A name=([key1]=val1 [key2]=val2)",
|
|
48
|
+
"description": "Key-value map using arbitrary string keys. Must be explicitly declared with declare -A. Available since Bash 4.0. Cannot be exported.",
|
|
49
|
+
"module": "builtin"
|
|
50
|
+
},
|
|
51
|
+
"nameref": {
|
|
52
|
+
"type": "type_alias",
|
|
53
|
+
"signature": "declare -n ref=varname",
|
|
54
|
+
"description": "Name reference variable that acts as an alias for another variable. All operations on the nameref affect the referenced variable. Available since Bash 4.3. Useful for passing variable names to functions.",
|
|
55
|
+
"module": "builtin"
|
|
56
|
+
},
|
|
57
|
+
"readonly": {
|
|
58
|
+
"type": "primitive",
|
|
59
|
+
"signature": "declare -r name=value or readonly name=value",
|
|
60
|
+
"description": "Immutable variable that cannot be reassigned or unset after declaration. Applies to strings, integers, and arrays.",
|
|
61
|
+
"module": "builtin"
|
|
62
|
+
},
|
|
63
|
+
"exported": {
|
|
64
|
+
"type": "primitive",
|
|
65
|
+
"signature": "declare -x name=value or export name=value",
|
|
66
|
+
"description": "Variable marked for export to child processes. The value is copied into the environment of subsequently executed commands.",
|
|
67
|
+
"module": "builtin"
|
|
68
|
+
},
|
|
69
|
+
"lowercase": {
|
|
70
|
+
"type": "primitive",
|
|
71
|
+
"signature": "declare -l name",
|
|
72
|
+
"description": "Variable with lowercase attribute. Any value assigned is automatically converted to lowercase.",
|
|
73
|
+
"module": "builtin"
|
|
74
|
+
},
|
|
75
|
+
"uppercase": {
|
|
76
|
+
"type": "primitive",
|
|
77
|
+
"signature": "declare -u name",
|
|
78
|
+
"description": "Variable with uppercase attribute. Any value assigned is automatically converted to uppercase.",
|
|
79
|
+
"module": "builtin"
|
|
80
|
+
},
|
|
81
|
+
"function": {
|
|
82
|
+
"type": "primitive",
|
|
83
|
+
"signature": "name() { commands; } or function name { commands; }",
|
|
84
|
+
"description": "Shell function. Takes positional parameters ($1, $2, ...), can declare local variables, and returns an exit status (0-255) via return.",
|
|
85
|
+
"module": "builtin"
|
|
86
|
+
},
|
|
87
|
+
"regex": {
|
|
88
|
+
"type": "primitive",
|
|
89
|
+
"signature": "[[ string =~ regex ]]",
|
|
90
|
+
"description": "POSIX extended regular expression used with the =~ operator in [[ ]]. Capture groups populate BASH_REMATCH array. Do not quote the regex pattern.",
|
|
91
|
+
"module": "builtin"
|
|
92
|
+
},
|
|
93
|
+
"float": {
|
|
94
|
+
"type": "type",
|
|
95
|
+
"signature": "float (typeset -F)",
|
|
96
|
+
"description": "Floating-point variable type declared with typeset -F or float builtin"
|
|
97
|
+
},
|
|
98
|
+
"glob": {
|
|
99
|
+
"type": "type",
|
|
100
|
+
"signature": "*(D) **/pattern (#q)",
|
|
101
|
+
"description": "Extended glob patterns with qualifiers for recursive matching and file filtering"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "tailwindcss",
|
|
3
|
+
"typeDefinitionPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "@apply\\s+([\\w:-]+)",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"targetPattern": "\\.${1}\\s*\\{([^}]+)\\}",
|
|
8
|
+
"description": "Navigate from @apply utility reference to its generated CSS definition."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "theme\\(['\"]([^'\"]+)['\"]\\)",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"targetPattern": "${config_path}:\\s*['\"]?([^,'\"\\s]+)",
|
|
14
|
+
"description": "Navigate from theme() function call to the corresponding value in tailwind.config.js."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "screen\\(['\"]([^'\"]+)['\"]\\)",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"targetPattern": "screens:\\s*\\{[^}]*${1}:\\s*['\"]?([^,'\"]+)",
|
|
20
|
+
"description": "Navigate from screen() function call to the breakpoint definition in config."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pattern": "\\b(flex|grid|block|inline|hidden|table)\\b",
|
|
24
|
+
"captureGroup": 1,
|
|
25
|
+
"targetPattern": "display:\\s*${1}",
|
|
26
|
+
"description": "Navigate from display utility class to its CSS display property definition."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"pattern": "\\b(bg|text|border|ring)-(\\w+)-(\\d+)\\b",
|
|
30
|
+
"captureGroup": 0,
|
|
31
|
+
"targetPattern": "colors:\\s*\\{[^}]*${2}:\\s*\\{[^}]*${3}:",
|
|
32
|
+
"description": "Navigate from color utility to color definition in the theme."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "@config\\s+['\"]([^'\"]+)['\"]",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"targetPattern": "module\\.exports\\s*=",
|
|
38
|
+
"description": "Navigate from @config directive to the Tailwind configuration file."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"pattern": "@layer\\s+(base|components|utilities)",
|
|
42
|
+
"captureGroup": 1,
|
|
43
|
+
"targetPattern": "@tailwind\\s+${1}",
|
|
44
|
+
"description": "Navigate from @layer definition to corresponding @tailwind injection point."
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enjoys/context-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Comprehensive CLI command context engine with 135 tools — subcommands, options, examples, and runtime context detectors for intelligent terminal autocomplete",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "bash",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
"title": "Add 'set -euo pipefail' header",
|
|
6
|
-
"kind": "source",
|
|
7
|
-
"description": "Add strict mode header (set -euo pipefail) to the beginning of the script for safer execution",
|
|
8
|
-
"pattern": "^#!/",
|
|
9
|
-
"isPreferred": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"title": "Add shebang line",
|
|
13
|
-
"kind": "source",
|
|
14
|
-
"description": "Add #!/usr/bin/env bash shebang as the first line of the script",
|
|
15
|
-
"pattern": "^[^#]",
|
|
16
|
-
"isPreferred": true
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"title": "Organize source/import statements",
|
|
20
|
-
"kind": "source.organizeImports",
|
|
21
|
-
"description": "Sort and deduplicate source/. statements at the top of the script",
|
|
22
|
-
"pattern": "\\bsource\\b|^\\s*\\.\\s+",
|
|
23
|
-
"isPreferred": true
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"title": "Extract to function",
|
|
27
|
-
"kind": "refactor.extract",
|
|
28
|
-
"description": "Extract selected code into a new bash function with appropriate local variables",
|
|
29
|
-
"pattern": ".*",
|
|
30
|
-
"isPreferred": false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Extract to variable",
|
|
34
|
-
"kind": "refactor.extract",
|
|
35
|
-
"description": "Extract command substitution or expression into a named variable",
|
|
36
|
-
"pattern": "\\$\\(|`",
|
|
37
|
-
"isPreferred": false
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Inline variable",
|
|
41
|
-
"kind": "refactor.inline",
|
|
42
|
-
"description": "Replace variable with its value at all usage sites",
|
|
43
|
-
"pattern": "\\blocal\\b|^\\s*\\w+=",
|
|
44
|
-
"isPreferred": false
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "Convert to function keyword syntax",
|
|
48
|
-
"kind": "refactor.rewrite",
|
|
49
|
-
"description": "Convert name() { } to function name() { } syntax",
|
|
50
|
-
"pattern": "^\\s*\\w+\\s*\\(\\s*\\)",
|
|
51
|
-
"isPreferred": false
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Convert to POSIX function syntax",
|
|
55
|
-
"kind": "refactor.rewrite",
|
|
56
|
-
"description": "Convert function name() { } to name() { } (POSIX-compatible) syntax",
|
|
57
|
-
"pattern": "^\\s*function\\s+\\w+",
|
|
58
|
-
"isPreferred": false
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"title": "Convert backticks to $() syntax",
|
|
62
|
-
"kind": "quickfix",
|
|
63
|
-
"description": "Replace legacy backtick command substitution with modern $(command) syntax",
|
|
64
|
-
"pattern": "`[^`]+`",
|
|
65
|
-
"isPreferred": true
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "Convert [ ] to [[ ]]",
|
|
69
|
-
"kind": "quickfix",
|
|
70
|
-
"description": "Replace POSIX test brackets with bash extended test brackets for safer evaluation",
|
|
71
|
-
"pattern": "\\[\\s+.*\\s+\\]",
|
|
72
|
-
"isPreferred": false
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"title": "Quote unquoted variable",
|
|
76
|
-
"kind": "quickfix",
|
|
77
|
-
"description": "Add double quotes around unquoted variable expansion to prevent word splitting and globbing",
|
|
78
|
-
"pattern": "\\$\\w+|\\$\\{\\w+\\}",
|
|
79
|
-
"isPreferred": true
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"title": "Add missing 'local' keyword",
|
|
83
|
-
"kind": "quickfix",
|
|
84
|
-
"description": "Add 'local' keyword to variable assignments inside functions to prevent global scope pollution",
|
|
85
|
-
"pattern": "^\\s*\\w+=(?!.*\\bexport\\b)",
|
|
86
|
-
"isPreferred": false
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"title": "Replace echo with printf",
|
|
90
|
-
"kind": "refactor.rewrite",
|
|
91
|
-
"description": "Replace echo with printf for more portable and predictable output formatting",
|
|
92
|
-
"pattern": "\\becho\\b",
|
|
93
|
-
"isPreferred": false
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"title": "Add error handling to command",
|
|
97
|
-
"kind": "quickfix",
|
|
98
|
-
"description": "Add || { echo 'Error' >&2; exit 1; } error handling to a command",
|
|
99
|
-
"pattern": "^\\s*\\w+",
|
|
100
|
-
"isPreferred": false
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"title": "Convert to here-document",
|
|
104
|
-
"kind": "refactor.rewrite",
|
|
105
|
-
"description": "Convert multiple echo/printf statements into a single here-document (<<EOF)",
|
|
106
|
-
"pattern": "\\becho\\b|\\bprintf\\b",
|
|
107
|
-
"isPreferred": false
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"title": "Wrap in if-check for command existence",
|
|
111
|
-
"kind": "refactor.rewrite",
|
|
112
|
-
"description": "Wrap command in 'if command -v cmd &>/dev/null; then ... fi' to check availability",
|
|
113
|
-
"pattern": "^\\s*\\w+",
|
|
114
|
-
"isPreferred": false
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"title": "Convert arithmetic to (( )) syntax",
|
|
118
|
-
"kind": "quickfix",
|
|
119
|
-
"description": "Replace expr or let with modern (( )) arithmetic syntax",
|
|
120
|
-
"pattern": "\\bexpr\\b|\\blet\\b",
|
|
121
|
-
"isPreferred": true
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"title": "Fix all ShellCheck warnings",
|
|
125
|
-
"kind": "source.fixAll",
|
|
126
|
-
"description": "Apply all available ShellCheck-based quick-fixes automatically",
|
|
127
|
-
"pattern": ".*",
|
|
128
|
-
"isPreferred": false
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"title": "Add trap for cleanup on exit",
|
|
132
|
-
"kind": "source",
|
|
133
|
-
"description": "Add a trap command to clean up temporary files or resources on script exit",
|
|
134
|
-
"pattern": "\\bmktemp\\b|\\btmp\\b",
|
|
135
|
-
"isPreferred": false
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"title": "Convert to array iteration",
|
|
139
|
-
"kind": "refactor.rewrite",
|
|
140
|
-
"description": "Convert whitespace-separated variable to proper array with safe iteration",
|
|
141
|
-
"pattern": "\\bfor\\s+\\w+\\s+in\\s+\\$",
|
|
142
|
-
"isPreferred": false
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"title": "Add input validation",
|
|
146
|
-
"kind": "quickfix",
|
|
147
|
-
"description": "Add parameter count check and usage message at the top of the script or function",
|
|
148
|
-
"pattern": "\\$1|\\$\\{1",
|
|
149
|
-
"isPreferred": false
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"title": "Convert to getopts argument parsing",
|
|
153
|
-
"kind": "refactor.rewrite",
|
|
154
|
-
"description": "Replace manual argument parsing with getopts-based option handling loop",
|
|
155
|
-
"pattern": "\\$1|\\$\\{1|\\bshift\\b",
|
|
156
|
-
"isPreferred": false
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"providedCodeActionKinds": [
|
|
160
|
-
"quickfix",
|
|
161
|
-
"refactor",
|
|
162
|
-
"refactor.extract",
|
|
163
|
-
"refactor.inline",
|
|
164
|
-
"refactor.rewrite",
|
|
165
|
-
"source",
|
|
166
|
-
"source.fixAll",
|
|
167
|
-
"source.organizeImports"
|
|
168
|
-
]
|
|
169
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "zsh",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
"title": "Organize imports",
|
|
6
|
-
"kind": "source.organizeImports",
|
|
7
|
-
"description": "Sort and clean up source/./autoload/zmodload statements",
|
|
8
|
-
"pattern": "\\\\bsource\\\\b|\\\\b\\.\\\\b|\\\\bautoload\\\\b|\\\\bzmodload\\\\b",
|
|
9
|
-
"isPreferred": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"title": "Extract to function",
|
|
13
|
-
"kind": "refactor.extract",
|
|
14
|
-
"description": "Extract selected code into a new function",
|
|
15
|
-
"pattern": ".*",
|
|
16
|
-
"isPreferred": false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"title": "Extract to variable",
|
|
20
|
-
"kind": "refactor.extract",
|
|
21
|
-
"description": "Extract expression into a variable",
|
|
22
|
-
"pattern": ".*",
|
|
23
|
-
"isPreferred": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"title": "Fix all auto-fixable problems",
|
|
27
|
-
"kind": "source.fixAll",
|
|
28
|
-
"description": "Apply all available quick-fixes",
|
|
29
|
-
"pattern": ".*",
|
|
30
|
-
"isPreferred": false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Inline variable",
|
|
34
|
-
"kind": "refactor.inline",
|
|
35
|
-
"description": "Inline a variable at its usage sites",
|
|
36
|
-
"pattern": "\\\\blocal\\\\b",
|
|
37
|
-
"isPreferred": false
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"providedCodeActionKinds": [
|
|
41
|
-
"quickfix",
|
|
42
|
-
"refactor",
|
|
43
|
-
"refactor.extract",
|
|
44
|
-
"refactor.inline",
|
|
45
|
-
"source",
|
|
46
|
-
"source.fixAll",
|
|
47
|
-
"source.organizeImports"
|
|
48
|
-
]
|
|
49
|
-
}
|
package/data/codeLens/bash.json
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "bash",
|
|
3
|
-
"codeLensPatterns": [
|
|
4
|
-
{
|
|
5
|
-
"pattern": "^\\s*function\\s+(\\w+)",
|
|
6
|
-
"captureGroup": 1,
|
|
7
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
8
|
-
"title": "Find References",
|
|
9
|
-
"description": "Show all references to this function"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"pattern": "^\\s*(\\w[\\w-]*)\\s*\\(\\s*\\)",
|
|
13
|
-
"captureGroup": 1,
|
|
14
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
15
|
-
"title": "Find References",
|
|
16
|
-
"description": "Show all references to this function"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"pattern": "^\\s*@test\\s+['\"](.+)['\"]",
|
|
20
|
-
"captureGroup": 1,
|
|
21
|
-
"commandId": "testing.runAtCursor",
|
|
22
|
-
"title": "Run Test",
|
|
23
|
-
"description": "Run this BATS test case"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"pattern": "^\\s*(?:test_\\w+)\\s*\\(\\s*\\)",
|
|
27
|
-
"captureGroup": 0,
|
|
28
|
-
"commandId": "testing.runAtCursor",
|
|
29
|
-
"title": "Run Test",
|
|
30
|
-
"description": "Run this test function"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"pattern": "^\\s*(?:function\\s+)?main\\s*\\(\\s*\\)|^\\s*function\\s+main\\b",
|
|
34
|
-
"captureGroup": 0,
|
|
35
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
36
|
-
"title": "Entry Point",
|
|
37
|
-
"description": "Script main entry point"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"pattern": "^\\s*(?:export\\s+)?([A-Z_][A-Z0-9_]*)=",
|
|
41
|
-
"captureGroup": 1,
|
|
42
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
43
|
-
"title": "Find References",
|
|
44
|
-
"description": "Show all references to this variable"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"pattern": "^\\s*source\\s+['\"]?([^'\"\\s]+)['\"]?|^\\s*\\.\\s+['\"]?([^'\"\\s]+)['\"]?",
|
|
48
|
-
"captureGroup": 1,
|
|
49
|
-
"commandId": "editor.action.revealDefinition",
|
|
50
|
-
"title": "Open Source",
|
|
51
|
-
"description": "Open the sourced file"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"pattern": "^\\s*trap\\s+['\"]?\\w+['\"]?\\s+(\\w+)",
|
|
55
|
-
"captureGroup": 1,
|
|
56
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
57
|
-
"title": "Trap Handler",
|
|
58
|
-
"description": "Signal trap handler"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"pattern": "^\\s*complete\\s+.*-F\\s+(\\w+)\\s+(\\w+)",
|
|
62
|
-
"captureGroup": 2,
|
|
63
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
64
|
-
"title": "Completion",
|
|
65
|
-
"description": "Programmable completion for this command"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"pattern": "^\\s*alias\\s+([\\w-]+)=",
|
|
69
|
-
"captureGroup": 1,
|
|
70
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
71
|
-
"title": "Find References",
|
|
72
|
-
"description": "Show all references to this alias"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
package/data/codeLens/zsh.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "zsh",
|
|
3
|
-
"codeLensPatterns": [
|
|
4
|
-
{
|
|
5
|
-
"pattern": "^\\\\s*function\\\\s+(\\\\w+)",
|
|
6
|
-
"captureGroup": 1,
|
|
7
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
8
|
-
"title": "Find References",
|
|
9
|
-
"description": "Show all references to this function"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"pattern": "^\\\\s*(\\\\w+)\\\\s*\\\\(\\\\)",
|
|
13
|
-
"captureGroup": 1,
|
|
14
|
-
"commandId": "editor.action.referenceSearch.trigger",
|
|
15
|
-
"title": "Find References",
|
|
16
|
-
"description": "Show all references to this function"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
package/data/color/bash.json
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "bash",
|
|
3
|
-
"colorPatterns": [
|
|
4
|
-
{
|
|
5
|
-
"pattern": "\\\\033\\[(\\d+;)*\\d+m|\\\\e\\[(\\d+;)*\\d+m|\\\\x1b\\[(\\d+;)*\\d+m",
|
|
6
|
-
"format": "ansi_escape",
|
|
7
|
-
"description": "ANSI escape code color sequence (\\033[...m, \\e[...m, \\x1b[...m)"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"pattern": "tput\\s+setaf\\s+(\\d+)",
|
|
11
|
-
"format": "tput_setaf",
|
|
12
|
-
"description": "tput foreground color (0-255)"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"pattern": "tput\\s+setab\\s+(\\d+)",
|
|
16
|
-
"format": "tput_setab",
|
|
17
|
-
"description": "tput background color (0-255)"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"colorPresentations": [
|
|
21
|
-
"ansi_escape",
|
|
22
|
-
"tput"
|
|
23
|
-
],
|
|
24
|
-
"namedColors": {
|
|
25
|
-
"black": {
|
|
26
|
-
"red": 0,
|
|
27
|
-
"green": 0,
|
|
28
|
-
"blue": 0,
|
|
29
|
-
"alpha": 1
|
|
30
|
-
},
|
|
31
|
-
"red": {
|
|
32
|
-
"red": 0.804,
|
|
33
|
-
"green": 0,
|
|
34
|
-
"blue": 0,
|
|
35
|
-
"alpha": 1
|
|
36
|
-
},
|
|
37
|
-
"green": {
|
|
38
|
-
"red": 0,
|
|
39
|
-
"green": 0.804,
|
|
40
|
-
"blue": 0,
|
|
41
|
-
"alpha": 1
|
|
42
|
-
},
|
|
43
|
-
"yellow": {
|
|
44
|
-
"red": 0.804,
|
|
45
|
-
"green": 0.804,
|
|
46
|
-
"blue": 0,
|
|
47
|
-
"alpha": 1
|
|
48
|
-
},
|
|
49
|
-
"blue": {
|
|
50
|
-
"red": 0,
|
|
51
|
-
"green": 0,
|
|
52
|
-
"blue": 0.804,
|
|
53
|
-
"alpha": 1
|
|
54
|
-
},
|
|
55
|
-
"magenta": {
|
|
56
|
-
"red": 0.804,
|
|
57
|
-
"green": 0,
|
|
58
|
-
"blue": 0.804,
|
|
59
|
-
"alpha": 1
|
|
60
|
-
},
|
|
61
|
-
"cyan": {
|
|
62
|
-
"red": 0,
|
|
63
|
-
"green": 0.804,
|
|
64
|
-
"blue": 0.804,
|
|
65
|
-
"alpha": 1
|
|
66
|
-
},
|
|
67
|
-
"white": {
|
|
68
|
-
"red": 0.804,
|
|
69
|
-
"green": 0.804,
|
|
70
|
-
"blue": 0.804,
|
|
71
|
-
"alpha": 1
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"ansiColorCodes": {
|
|
75
|
-
"30": "black",
|
|
76
|
-
"31": "red",
|
|
77
|
-
"32": "green",
|
|
78
|
-
"33": "yellow",
|
|
79
|
-
"34": "blue",
|
|
80
|
-
"35": "magenta",
|
|
81
|
-
"36": "cyan",
|
|
82
|
-
"37": "white",
|
|
83
|
-
"40": "bg black",
|
|
84
|
-
"41": "bg red",
|
|
85
|
-
"42": "bg green",
|
|
86
|
-
"43": "bg yellow",
|
|
87
|
-
"44": "bg blue",
|
|
88
|
-
"45": "bg magenta",
|
|
89
|
-
"46": "bg cyan",
|
|
90
|
-
"47": "bg white",
|
|
91
|
-
"90": "bright black",
|
|
92
|
-
"91": "bright red",
|
|
93
|
-
"92": "bright green",
|
|
94
|
-
"93": "bright yellow",
|
|
95
|
-
"94": "bright blue",
|
|
96
|
-
"95": "bright magenta",
|
|
97
|
-
"96": "bright cyan",
|
|
98
|
-
"97": "bright white"
|
|
99
|
-
}
|
|
100
|
-
}
|