@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.
Files changed (270) hide show
  1. package/data/codeActions/angular.json +126 -0
  2. package/data/codeActions/css.json +111 -0
  3. package/data/codeActions/nestjs.json +124 -0
  4. package/data/codeActions/nextjs.json +198 -0
  5. package/data/codeActions/react.json +154 -0
  6. package/data/codeActions/shadcn.json +112 -0
  7. package/data/codeActions/shell.json +169 -26
  8. package/data/codeActions/tailwindcss.json +76 -0
  9. package/data/codeLens/angular.json +22 -0
  10. package/data/codeLens/css.json +68 -0
  11. package/data/codeLens/nestjs.json +21 -0
  12. package/data/codeLens/nextjs.json +117 -0
  13. package/data/codeLens/react.json +89 -0
  14. package/data/codeLens/shadcn.json +89 -0
  15. package/data/codeLens/shell.json +59 -17
  16. package/data/codeLens/tailwindcss.json +103 -0
  17. package/data/color/angular.json +21 -0
  18. package/data/color/css.json +124 -0
  19. package/data/color/nestjs.json +18 -0
  20. package/data/color/nextjs.json +22 -0
  21. package/data/color/react.json +93 -0
  22. package/data/color/shadcn.json +66 -0
  23. package/data/color/shell.json +106 -80
  24. package/data/color/tailwindcss.json +53 -0
  25. package/data/commands/angular.json +312 -0
  26. package/data/commands/css.json +41 -0
  27. package/data/commands/manifest.json +734 -727
  28. package/data/commands/nestjs.json +273 -0
  29. package/data/commands/nextjs.json +123 -0
  30. package/data/commands/react.json +210 -0
  31. package/data/commands/shadcn.json +410 -0
  32. package/data/commands/shell.json +571 -41
  33. package/data/commands/tailwindcss.json +53 -0
  34. package/data/completion/angular.json +1490 -0
  35. package/data/completion/css.json +1176 -0
  36. package/data/completion/javascript.json +27 -0
  37. package/data/completion/nestjs.json +1454 -0
  38. package/data/completion/nextjs.json +1373 -0
  39. package/data/completion/react.json +1319 -0
  40. package/data/completion/redis-cli.json +1 -1
  41. package/data/completion/shadcn.json +1202 -0
  42. package/data/completion/shell.json +2446 -510
  43. package/data/completion/tailwindcss.json +284 -0
  44. package/data/completion/typescript.json +27 -0
  45. package/data/declaration/angular.json +46 -0
  46. package/data/declaration/css.json +59 -0
  47. package/data/declaration/nestjs.json +47 -0
  48. package/data/declaration/nextjs.json +274 -0
  49. package/data/declaration/react.json +199 -0
  50. package/data/declaration/shadcn.json +211 -0
  51. package/data/declaration/shell.json +343 -24
  52. package/data/declaration/tailwindcss.json +137 -0
  53. package/data/definition/angular.json +670 -0
  54. package/data/definition/css.json +115 -0
  55. package/data/definition/nestjs.json +684 -0
  56. package/data/definition/nextjs.json +439 -0
  57. package/data/definition/react.json +397 -0
  58. package/data/definition/redis-cli.json +1 -1
  59. package/data/definition/shadcn.json +99 -0
  60. package/data/definition/shell.json +820 -0
  61. package/data/definition/tailwindcss.json +115 -0
  62. package/data/documentHighlight/angular.json +414 -0
  63. package/data/documentHighlight/css.json +125 -0
  64. package/data/documentHighlight/nestjs.json +115 -0
  65. package/data/documentHighlight/nextjs.json +212 -0
  66. package/data/documentHighlight/react.json +119 -0
  67. package/data/documentHighlight/shadcn.json +168 -0
  68. package/data/documentHighlight/shell.json +664 -334
  69. package/data/documentHighlight/tailwindcss.json +160 -0
  70. package/data/documentRangeFormatting/angular.json +45 -0
  71. package/data/documentRangeFormatting/css.json +101 -0
  72. package/data/documentRangeFormatting/nestjs.json +17 -0
  73. package/data/documentRangeFormatting/nextjs.json +17 -0
  74. package/data/documentRangeFormatting/react.json +78 -0
  75. package/data/documentRangeFormatting/shadcn.json +45 -0
  76. package/data/documentRangeFormatting/shell.json +120 -53
  77. package/data/documentRangeFormatting/tailwindcss.json +55 -0
  78. package/data/documentSymbol/angular.json +180 -0
  79. package/data/documentSymbol/css.json +96 -0
  80. package/data/documentSymbol/nestjs.json +152 -0
  81. package/data/documentSymbol/nextjs.json +159 -0
  82. package/data/documentSymbol/react.json +145 -0
  83. package/data/documentSymbol/shadcn.json +131 -0
  84. package/data/documentSymbol/shell.json +166 -26
  85. package/data/documentSymbol/tailwindcss.json +110 -0
  86. package/data/foldingRange/angular.json +99 -0
  87. package/data/foldingRange/css.json +66 -0
  88. package/data/foldingRange/nestjs.json +26 -0
  89. package/data/foldingRange/nextjs.json +26 -0
  90. package/data/foldingRange/react.json +120 -0
  91. package/data/foldingRange/shadcn.json +93 -0
  92. package/data/foldingRange/shell.json +106 -46
  93. package/data/foldingRange/tailwindcss.json +60 -0
  94. package/data/formatting/angular.json +21 -0
  95. package/data/formatting/css.json +73 -0
  96. package/data/formatting/nestjs.json +23 -0
  97. package/data/formatting/nextjs.json +23 -0
  98. package/data/formatting/react.json +71 -0
  99. package/data/formatting/shadcn.json +61 -0
  100. package/data/formatting/shell.json +103 -19
  101. package/data/formatting/tailwindcss.json +48 -0
  102. package/data/hover/angular.json +455 -0
  103. package/data/hover/css.json +300 -0
  104. package/data/hover/nestjs.json +296 -0
  105. package/data/hover/nextjs.json +305 -0
  106. package/data/hover/react.json +173 -0
  107. package/data/hover/redis-cli.json +1 -1
  108. package/data/hover/shadcn.json +450 -0
  109. package/data/hover/shell.json +684 -75
  110. package/data/hover/tailwindcss.json +968 -0
  111. package/data/implementation/angular.json +22 -0
  112. package/data/implementation/css.json +65 -0
  113. package/data/implementation/nestjs.json +24 -0
  114. package/data/implementation/nextjs.json +137 -0
  115. package/data/implementation/react.json +125 -0
  116. package/data/implementation/shadcn.json +89 -0
  117. package/data/implementation/shell.json +59 -3
  118. package/data/implementation/tailwindcss.json +59 -0
  119. package/data/inlayHints/angular.json +24 -0
  120. package/data/inlayHints/css.json +87 -0
  121. package/data/inlayHints/nestjs.json +24 -0
  122. package/data/inlayHints/nextjs.json +143 -0
  123. package/data/inlayHints/react.json +177 -0
  124. package/data/inlayHints/shadcn.json +109 -0
  125. package/data/inlayHints/shell.json +223 -35
  126. package/data/inlayHints/tailwindcss.json +111 -0
  127. package/data/inlineCompletions/angular.json +135 -0
  128. package/data/inlineCompletions/css.json +125 -0
  129. package/data/inlineCompletions/javascript.json +12 -0
  130. package/data/inlineCompletions/nestjs.json +25 -0
  131. package/data/inlineCompletions/nextjs.json +179 -0
  132. package/data/inlineCompletions/react.json +203 -0
  133. package/data/inlineCompletions/shadcn.json +115 -0
  134. package/data/inlineCompletions/shell.json +185 -35
  135. package/data/inlineCompletions/tailwindcss.json +411 -0
  136. package/data/inlineCompletions/typescript.json +12 -0
  137. package/data/linkedEditingRange/angular.json +23 -0
  138. package/data/linkedEditingRange/css.json +40 -0
  139. package/data/linkedEditingRange/nestjs.json +10 -0
  140. package/data/linkedEditingRange/nextjs.json +11 -0
  141. package/data/linkedEditingRange/react.json +75 -0
  142. package/data/linkedEditingRange/shadcn.json +23 -0
  143. package/data/linkedEditingRange/shell.json +25 -25
  144. package/data/linkedEditingRange/tailwindcss.json +30 -0
  145. package/data/links/angular.json +95 -0
  146. package/data/links/css.json +55 -0
  147. package/data/links/nestjs.json +130 -0
  148. package/data/links/nextjs.json +91 -0
  149. package/data/links/react.json +75 -0
  150. package/data/links/shadcn.json +98 -0
  151. package/data/links/shell.json +56 -0
  152. package/data/links/tailwindcss.json +65 -0
  153. package/data/manifest.json +399 -150
  154. package/data/onTypeFormatting/angular.json +14 -0
  155. package/data/onTypeFormatting/css.json +82 -0
  156. package/data/onTypeFormatting/nestjs.json +16 -0
  157. package/data/onTypeFormatting/nextjs.json +17 -0
  158. package/data/onTypeFormatting/react.json +127 -0
  159. package/data/onTypeFormatting/shadcn.json +54 -0
  160. package/data/onTypeFormatting/shell.json +72 -68
  161. package/data/onTypeFormatting/tailwindcss.json +63 -0
  162. package/data/rangeSemanticTokens/angular.json +140 -0
  163. package/data/rangeSemanticTokens/css.json +125 -0
  164. package/data/rangeSemanticTokens/nestjs.json +27 -0
  165. package/data/rangeSemanticTokens/nextjs.json +28 -0
  166. package/data/rangeSemanticTokens/react.json +216 -0
  167. package/data/rangeSemanticTokens/shadcn.json +140 -0
  168. package/data/rangeSemanticTokens/shell.json +247 -69
  169. package/data/rangeSemanticTokens/tailwindcss.json +186 -0
  170. package/data/references/angular.json +26 -0
  171. package/data/references/css.json +65 -0
  172. package/data/references/nestjs.json +24 -0
  173. package/data/references/nextjs.json +178 -0
  174. package/data/references/react.json +192 -0
  175. package/data/references/shadcn.json +101 -0
  176. package/data/references/shell.json +323 -92
  177. package/data/references/tailwindcss.json +125 -0
  178. package/data/rename/angular.json +131 -0
  179. package/data/rename/css.json +91 -0
  180. package/data/rename/nestjs.json +32 -0
  181. package/data/rename/nextjs.json +31 -0
  182. package/data/rename/react.json +88 -0
  183. package/data/rename/shadcn.json +79 -0
  184. package/data/rename/shell.json +101 -31
  185. package/data/rename/tailwindcss.json +58 -0
  186. package/data/selectionRange/angular.json +95 -0
  187. package/data/selectionRange/css.json +55 -0
  188. package/data/selectionRange/nestjs.json +21 -0
  189. package/data/selectionRange/nextjs.json +22 -0
  190. package/data/selectionRange/react.json +87 -0
  191. package/data/selectionRange/shadcn.json +89 -0
  192. package/data/selectionRange/shell.json +65 -35
  193. package/data/selectionRange/tailwindcss.json +35 -0
  194. package/data/semanticTokens/angular.json +198 -0
  195. package/data/semanticTokens/css.json +107 -0
  196. package/data/semanticTokens/nestjs.json +35 -0
  197. package/data/semanticTokens/nextjs.json +38 -0
  198. package/data/semanticTokens/react.json +215 -0
  199. package/data/semanticTokens/shadcn.json +180 -0
  200. package/data/semanticTokens/shell.json +238 -65
  201. package/data/semanticTokens/tailwindcss.json +161 -0
  202. package/data/signatureHelp/angular.json +182 -0
  203. package/data/signatureHelp/css.json +137 -0
  204. package/data/signatureHelp/nestjs.json +128 -0
  205. package/data/signatureHelp/nextjs.json +127 -0
  206. package/data/signatureHelp/react.json +281 -0
  207. package/data/signatureHelp/shadcn.json +237 -0
  208. package/data/signatureHelp/shell.json +797 -104
  209. package/data/signatureHelp/tailwindcss.json +64 -0
  210. package/data/typeDefinition/angular.json +362 -0
  211. package/data/typeDefinition/css.json +53 -0
  212. package/data/typeDefinition/nestjs.json +334 -0
  213. package/data/typeDefinition/nextjs.json +285 -0
  214. package/data/typeDefinition/react.json +236 -0
  215. package/data/typeDefinition/shadcn.json +292 -0
  216. package/data/typeDefinition/shell.json +104 -40
  217. package/data/typeDefinition/tailwindcss.json +47 -0
  218. package/package.json +1 -1
  219. package/data/codeActions/bash.json +0 -169
  220. package/data/codeActions/zsh.json +0 -49
  221. package/data/codeLens/bash.json +0 -75
  222. package/data/codeLens/zsh.json +0 -19
  223. package/data/color/bash.json +0 -100
  224. package/data/color/zsh.json +0 -80
  225. package/data/commands/bash.json +0 -102
  226. package/data/commands/zsh.json +0 -166
  227. package/data/completion/bash.json +0 -1184
  228. package/data/completion/zsh.json +0 -973
  229. package/data/declaration/bash.json +0 -301
  230. package/data/declaration/zsh.json +0 -205
  231. package/data/definition/bash.json +0 -565
  232. package/data/definition/zsh.json +0 -350
  233. package/data/documentHighlight/bash.json +0 -393
  234. package/data/documentHighlight/zsh.json +0 -266
  235. package/data/documentRangeFormatting/bash.json +0 -41
  236. package/data/documentRangeFormatting/zsh.json +0 -59
  237. package/data/documentSymbol/bash.json +0 -124
  238. package/data/documentSymbol/zsh.json +0 -26
  239. package/data/foldingRange/bash.json +0 -76
  240. package/data/foldingRange/zsh.json +0 -46
  241. package/data/formatting/bash.json +0 -88
  242. package/data/formatting/zsh.json +0 -28
  243. package/data/hover/bash.json +0 -579
  244. package/data/hover/zsh.json +0 -96
  245. package/data/implementation/bash.json +0 -44
  246. package/data/implementation/zsh.json +0 -41
  247. package/data/inlayHints/bash.json +0 -207
  248. package/data/inlayHints/zsh.json +0 -43
  249. package/data/inlineCompletions/bash.json +0 -155
  250. package/data/inlineCompletions/zsh.json +0 -17
  251. package/data/linkedEditingRange/bash.json +0 -25
  252. package/data/linkedEditingRange/zsh.json +0 -25
  253. package/data/links/bash.json +0 -56
  254. package/data/links/zsh.json +0 -15
  255. package/data/onTypeFormatting/bash.json +0 -68
  256. package/data/onTypeFormatting/zsh.json +0 -68
  257. package/data/rangeSemanticTokens/bash.json +0 -90
  258. package/data/rangeSemanticTokens/zsh.json +0 -76
  259. package/data/references/bash.json +0 -221
  260. package/data/references/zsh.json +0 -166
  261. package/data/rename/bash.json +0 -37
  262. package/data/rename/zsh.json +0 -31
  263. package/data/selectionRange/bash.json +0 -35
  264. package/data/selectionRange/zsh.json +0 -35
  265. package/data/semanticTokens/bash.json +0 -71
  266. package/data/semanticTokens/zsh.json +0 -71
  267. package/data/signatureHelp/bash.json +0 -111
  268. package/data/signatureHelp/zsh.json +0 -118
  269. package/data/typeDefinition/bash.json +0 -95
  270. package/data/typeDefinition/zsh.json +0 -40
@@ -0,0 +1,211 @@
1
+ {
2
+ "language": "shadcn",
3
+ "declarations": {
4
+ "cn": {
5
+ "signature": "cn(...inputs: ClassValue[]): string",
6
+ "description": "Merges class names using clsx and tailwind-merge, resolving Tailwind CSS conflicts",
7
+ "type": "function",
8
+ "module": "@/lib/utils"
9
+ },
10
+ "cva": {
11
+ "signature": "cva(base: string, config?: CVAConfig): VariantFunction",
12
+ "description": "Creates a class-variance-authority function for variant-based class generation",
13
+ "type": "function",
14
+ "module": "class-variance-authority"
15
+ },
16
+ "Button": {
17
+ "signature": "React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>",
18
+ "description": "Button component with variant, size, and asChild props",
19
+ "type": "component",
20
+ "module": "@/components/ui/button"
21
+ },
22
+ "Card": {
23
+ "signature": "React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>",
24
+ "description": "Card container component with sub-components: CardHeader, CardTitle, CardDescription, CardContent, CardFooter",
25
+ "type": "component",
26
+ "module": "@/components/ui/card"
27
+ },
28
+ "Dialog": {
29
+ "signature": "React.FC<DialogPrimitive.DialogProps>",
30
+ "description": "Modal dialog component built on Radix Dialog primitive",
31
+ "type": "component",
32
+ "module": "@/components/ui/dialog"
33
+ },
34
+ "Form": {
35
+ "signature": "React.FC<FormProviderProps<TFieldValues>>",
36
+ "description": "Form context provider wrapping react-hook-form FormProvider",
37
+ "type": "component",
38
+ "module": "@/components/ui/form"
39
+ },
40
+ "Input": {
41
+ "signature": "React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>",
42
+ "description": "Styled input component extending native HTML input",
43
+ "type": "component",
44
+ "module": "@/components/ui/input"
45
+ },
46
+ "Select": {
47
+ "signature": "React.FC<SelectPrimitive.SelectProps>",
48
+ "description": "Select dropdown built on Radix Select primitive",
49
+ "type": "component",
50
+ "module": "@/components/ui/select"
51
+ },
52
+ "Toast": {
53
+ "signature": "React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>",
54
+ "description": "Toast notification component with variant support",
55
+ "type": "component",
56
+ "module": "@/components/ui/toast"
57
+ },
58
+ "useToast": {
59
+ "signature": "useToast(): { toast: (props: ToastProps) => { id: string; dismiss: () => void; update: (props: ToastProps) => void }; toasts: Toast[]; dismiss: (toastId?: string) => void }",
60
+ "description": "Hook for creating and managing toast notifications",
61
+ "type": "hook",
62
+ "module": "@/components/ui/use-toast"
63
+ },
64
+ "useFormField": {
65
+ "signature": "useFormField(): { id: string; name: string; formItemId: string; formDescriptionId: string; formMessageId: string; invalid: boolean; isDirty: boolean; isTouched: boolean; error?: FieldError }",
66
+ "description": "Hook to access form field context within FormField render prop",
67
+ "type": "hook",
68
+ "module": "@/components/ui/form"
69
+ },
70
+ "buttonVariants": {
71
+ "signature": "buttonVariants(props?: { variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'; size?: 'default' | 'sm' | 'lg' | 'icon' }): string",
72
+ "description": "CVA function returning class string for button variants",
73
+ "type": "function",
74
+ "module": "@/components/ui/button"
75
+ },
76
+ "badgeVariants": {
77
+ "signature": "badgeVariants(props?: { variant?: 'default' | 'secondary' | 'outline' | 'destructive' }): string",
78
+ "description": "CVA function returning class string for badge variants",
79
+ "type": "function",
80
+ "module": "@/components/ui/badge"
81
+ },
82
+ "columns": {
83
+ "signature": "ColumnDef<TData, TValue>[]",
84
+ "description": "Column definitions array for TanStack Table DataTable component",
85
+ "type": "variable",
86
+ "module": "@/components/ui/data-table"
87
+ },
88
+ "TooltipProvider": {
89
+ "signature": "React.FC<TooltipPrimitive.TooltipProviderProps>",
90
+ "description": "Provider component that wraps app to enable Tooltip delay behavior",
91
+ "type": "component",
92
+ "module": "@/components/ui/tooltip"
93
+ },
94
+ "Toaster": {
95
+ "signature": "React.FC<{}>",
96
+ "description": "Toast viewport component placed in root layout to render toast notifications",
97
+ "type": "component",
98
+ "module": "@/components/ui/toaster"
99
+ },
100
+ "Textarea": {
101
+ "signature": "React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>",
102
+ "description": "Styled textarea component extending native HTML textarea",
103
+ "type": "component",
104
+ "module": "@/components/ui/textarea"
105
+ },
106
+ "Label": {
107
+ "signature": "React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>",
108
+ "description": "Label component built on Radix Label primitive",
109
+ "type": "component",
110
+ "module": "@/components/ui/label"
111
+ },
112
+ "Badge": {
113
+ "signature": "React.FC<BadgeProps & React.HTMLAttributes<HTMLDivElement>>",
114
+ "description": "Badge component with variant-based styling",
115
+ "type": "component",
116
+ "module": "@/components/ui/badge"
117
+ },
118
+ "Checkbox": {
119
+ "signature": "React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>",
120
+ "description": "Checkbox component built on Radix Checkbox primitive",
121
+ "type": "component",
122
+ "module": "@/components/ui/checkbox"
123
+ },
124
+ "Switch": {
125
+ "signature": "React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>",
126
+ "description": "Toggle switch component built on Radix Switch primitive",
127
+ "type": "component",
128
+ "module": "@/components/ui/switch"
129
+ },
130
+ "Separator": {
131
+ "signature": "React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>",
132
+ "description": "Visual separator component built on Radix Separator primitive",
133
+ "type": "component",
134
+ "module": "@/components/ui/separator"
135
+ }
136
+ },
137
+ "declarationPatterns": [
138
+ {
139
+ "name": "ForwardRef Component",
140
+ "pattern": "const\\s+(\\w+)\\s*=\\s*React\\.forwardRef<",
141
+ "captureGroup": 1,
142
+ "description": "Component declared with React.forwardRef"
143
+ },
144
+ {
145
+ "name": "Function Component",
146
+ "pattern": "(?:export\\s+)?function\\s+(\\w+)\\s*\\(\\s*(?:\\{|props)",
147
+ "captureGroup": 1,
148
+ "description": "Named function component declaration"
149
+ },
150
+ {
151
+ "name": "CVA Const",
152
+ "pattern": "const\\s+(\\w+Variants?)\\s*=\\s*cva\\(",
153
+ "captureGroup": 1,
154
+ "description": "CVA variant function declaration"
155
+ },
156
+ {
157
+ "name": "Interface Declaration",
158
+ "pattern": "(?:export\\s+)?interface\\s+(\\w+)",
159
+ "captureGroup": 1,
160
+ "description": "TypeScript interface declaration"
161
+ },
162
+ {
163
+ "name": "Type Alias",
164
+ "pattern": "(?:export\\s+)?type\\s+(\\w+)\\s*=",
165
+ "captureGroup": 1,
166
+ "description": "TypeScript type alias declaration"
167
+ },
168
+ {
169
+ "name": "Zod Schema",
170
+ "pattern": "const\\s+(\\w+Schema)\\s*=\\s*z\\.",
171
+ "captureGroup": 1,
172
+ "description": "Zod validation schema declaration"
173
+ },
174
+ {
175
+ "name": "Hook Function",
176
+ "pattern": "(?:export\\s+)?function\\s+(use\\w+)\\s*\\(",
177
+ "captureGroup": 1,
178
+ "description": "Custom React hook function declaration"
179
+ },
180
+ {
181
+ "name": "Arrow Hook",
182
+ "pattern": "(?:export\\s+)?const\\s+(use\\w+)\\s*=\\s*(?:\\(|\\<)",
183
+ "captureGroup": 1,
184
+ "description": "Custom React hook declared as arrow function"
185
+ },
186
+ {
187
+ "name": "Export Default",
188
+ "pattern": "export\\s+default\\s+(?:function|class)\\s+(\\w+)",
189
+ "captureGroup": 1,
190
+ "description": "Default export declaration"
191
+ },
192
+ {
193
+ "name": "Export Const",
194
+ "pattern": "export\\s+const\\s+(\\w+)\\s*[:=]",
195
+ "captureGroup": 1,
196
+ "description": "Named const export declaration"
197
+ },
198
+ {
199
+ "name": "Context Declaration",
200
+ "pattern": "const\\s+(\\w+)\\s*=\\s*(?:React\\.)?createContext",
201
+ "captureGroup": 1,
202
+ "description": "React context object declaration"
203
+ },
204
+ {
205
+ "name": "Column Definition Array",
206
+ "pattern": "const\\s+(columns)\\s*(?::\\s*ColumnDef)?\\s*=\\s*\\[",
207
+ "captureGroup": 1,
208
+ "description": "DataTable column definitions array declaration"
209
+ }
210
+ ]
211
+ }
@@ -1,24 +1,343 @@
1
- {
2
- "language": "shell",
3
- "declarations": {},
4
- "declarationPatterns": [
5
- {
6
- "name": "Function",
7
- "pattern": "^\\s*(?:function\\s+)?(\\w+)\\s*\\(\\)",
8
- "captureGroup": 1,
9
- "type": "function"
10
- },
11
- {
12
- "name": "Variable",
13
- "pattern": "^\\s*(\\w+)=",
14
- "captureGroup": 1,
15
- "type": "variable"
16
- },
17
- {
18
- "name": "Alias",
19
- "pattern": "^\\s*alias\\s+(\\w+)",
20
- "captureGroup": 1,
21
- "type": "variable"
22
- }
23
- ]
24
- }
1
+ {
2
+ "language": "shell",
3
+ "declarations": {
4
+ "echo": {
5
+ "signature": "echo",
6
+ "description": "Built-in: echo",
7
+ "type": "function",
8
+ "module": "builtin"
9
+ },
10
+ "printf": {
11
+ "signature": "printf",
12
+ "description": "Built-in: printf",
13
+ "type": "function",
14
+ "module": "builtin"
15
+ },
16
+ "read": {
17
+ "signature": "read",
18
+ "description": "Built-in: read",
19
+ "type": "function",
20
+ "module": "builtin"
21
+ },
22
+ "test": {
23
+ "signature": "test",
24
+ "description": "Built-in: test",
25
+ "type": "function",
26
+ "module": "builtin"
27
+ },
28
+ "[": {
29
+ "signature": "[",
30
+ "description": "Built-in: [",
31
+ "type": "function",
32
+ "module": "builtin"
33
+ },
34
+ "[[": {
35
+ "signature": "[[",
36
+ "description": "Built-in: [[",
37
+ "type": "function",
38
+ "module": "builtin"
39
+ },
40
+ "cd": {
41
+ "signature": "cd",
42
+ "description": "Built-in: cd",
43
+ "type": "function",
44
+ "module": "builtin"
45
+ },
46
+ "pwd": {
47
+ "signature": "pwd",
48
+ "description": "Built-in: pwd",
49
+ "type": "function",
50
+ "module": "builtin"
51
+ },
52
+ "pushd": {
53
+ "signature": "pushd",
54
+ "description": "Built-in: pushd",
55
+ "type": "function",
56
+ "module": "builtin"
57
+ },
58
+ "popd": {
59
+ "signature": "popd",
60
+ "description": "Built-in: popd",
61
+ "type": "function",
62
+ "module": "builtin"
63
+ },
64
+ "dirs": {
65
+ "signature": "dirs",
66
+ "description": "Built-in: dirs",
67
+ "type": "function",
68
+ "module": "builtin"
69
+ },
70
+ "alias": {
71
+ "signature": "alias",
72
+ "description": "Built-in: alias",
73
+ "type": "function",
74
+ "module": "builtin"
75
+ },
76
+ "unalias": {
77
+ "signature": "unalias",
78
+ "description": "Built-in: unalias",
79
+ "type": "function",
80
+ "module": "builtin"
81
+ },
82
+ "type": {
83
+ "signature": "type",
84
+ "description": "Built-in: type",
85
+ "type": "function",
86
+ "module": "builtin"
87
+ },
88
+ "which": {
89
+ "signature": "which",
90
+ "description": "Built-in: which",
91
+ "type": "function",
92
+ "module": "builtin"
93
+ },
94
+ "command": {
95
+ "signature": "command",
96
+ "description": "Built-in: command",
97
+ "type": "function",
98
+ "module": "builtin"
99
+ },
100
+ "hash": {
101
+ "signature": "hash",
102
+ "description": "Built-in: hash",
103
+ "type": "function",
104
+ "module": "builtin"
105
+ },
106
+ "help": {
107
+ "signature": "help",
108
+ "description": "Built-in: help",
109
+ "type": "function",
110
+ "module": "builtin"
111
+ },
112
+ "let": {
113
+ "signature": "let",
114
+ "description": "Built-in: let",
115
+ "type": "function",
116
+ "module": "builtin"
117
+ },
118
+ "expr": {
119
+ "signature": "expr",
120
+ "description": "Built-in: expr",
121
+ "type": "function",
122
+ "module": "builtin"
123
+ },
124
+ "true": {
125
+ "signature": "true",
126
+ "description": "Built-in: true",
127
+ "type": "function",
128
+ "module": "builtin"
129
+ },
130
+ "false": {
131
+ "signature": "false",
132
+ "description": "Built-in: false",
133
+ "type": "function",
134
+ "module": "builtin"
135
+ },
136
+ "kill": {
137
+ "signature": "kill",
138
+ "description": "Built-in: kill",
139
+ "type": "function",
140
+ "module": "builtin"
141
+ },
142
+ "wait": {
143
+ "signature": "wait",
144
+ "description": "Built-in: wait",
145
+ "type": "function",
146
+ "module": "builtin"
147
+ },
148
+ "jobs": {
149
+ "signature": "jobs",
150
+ "description": "Built-in: jobs",
151
+ "type": "function",
152
+ "module": "builtin"
153
+ },
154
+ "bg": {
155
+ "signature": "bg",
156
+ "description": "Built-in: bg",
157
+ "type": "function",
158
+ "module": "builtin"
159
+ },
160
+ "fg": {
161
+ "signature": "fg",
162
+ "description": "Built-in: fg",
163
+ "type": "function",
164
+ "module": "builtin"
165
+ },
166
+ "disown": {
167
+ "signature": "disown",
168
+ "description": "Built-in: disown",
169
+ "type": "function",
170
+ "module": "builtin"
171
+ },
172
+ "suspend": {
173
+ "signature": "suspend",
174
+ "description": "Built-in: suspend",
175
+ "type": "function",
176
+ "module": "builtin"
177
+ },
178
+ "logout": {
179
+ "signature": "logout",
180
+ "description": "Built-in: logout",
181
+ "type": "function",
182
+ "module": "builtin"
183
+ },
184
+ "print": {
185
+ "signature": "print",
186
+ "description": "Built-in: print",
187
+ "type": "function",
188
+ "module": "builtin"
189
+ },
190
+ "whence": {
191
+ "signature": "whence",
192
+ "description": "Built-in: whence",
193
+ "type": "function",
194
+ "module": "builtin"
195
+ }
196
+ },
197
+ "declarationPatterns": [
198
+ {
199
+ "name": "Function",
200
+ "pattern": "^\\s*(?:function\\s+)?(\\w+)\\s*\\(\\)",
201
+ "captureGroup": 1,
202
+ "type": "function"
203
+ },
204
+ {
205
+ "name": "Variable",
206
+ "pattern": "^\\s*(\\w+)=",
207
+ "captureGroup": 1,
208
+ "type": "variable"
209
+ },
210
+ {
211
+ "name": "Alias",
212
+ "pattern": "^\\s*alias\\s+(\\w+)",
213
+ "captureGroup": 1,
214
+ "type": "variable"
215
+ },
216
+ {
217
+ "name": "Function (keyword form)",
218
+ "pattern": "^\\s*function\\s+(\\w[\\w-]*)",
219
+ "captureGroup": 1,
220
+ "type": "function"
221
+ },
222
+ {
223
+ "name": "Function (parens form)",
224
+ "pattern": "^\\s*(\\w[\\w-]*)\\s*\\(\\s*\\)",
225
+ "captureGroup": 1,
226
+ "type": "function"
227
+ },
228
+ {
229
+ "name": "Local variable declaration",
230
+ "pattern": "^\\s*local\\s+(?:-\\w+\\s+)*(\\w+)",
231
+ "captureGroup": 1,
232
+ "type": "variable"
233
+ },
234
+ {
235
+ "name": "Declare variable",
236
+ "pattern": "^\\s*declare\\s+(?:-\\w+\\s+)*(\\w+)",
237
+ "captureGroup": 1,
238
+ "type": "variable"
239
+ },
240
+ {
241
+ "name": "Exported variable",
242
+ "pattern": "^\\s*export\\s+(\\w+)(?:=|$)",
243
+ "captureGroup": 1,
244
+ "type": "variable"
245
+ },
246
+ {
247
+ "name": "Readonly variable",
248
+ "pattern": "^\\s*readonly\\s+(\\w+)",
249
+ "captureGroup": 1,
250
+ "type": "constant"
251
+ },
252
+ {
253
+ "name": "Indexed array (declare)",
254
+ "pattern": "^\\s*declare\\s+-a\\s+(\\w+)",
255
+ "captureGroup": 1,
256
+ "type": "variable"
257
+ },
258
+ {
259
+ "name": "Associative array (declare)",
260
+ "pattern": "^\\s*declare\\s+-A\\s+(\\w+)",
261
+ "captureGroup": 1,
262
+ "type": "variable"
263
+ },
264
+ {
265
+ "name": "Integer variable",
266
+ "pattern": "^\\s*declare\\s+-i\\s+(\\w+)",
267
+ "captureGroup": 1,
268
+ "type": "variable"
269
+ },
270
+ {
271
+ "name": "Nameref variable",
272
+ "pattern": "^\\s*declare\\s+-n\\s+(\\w+)",
273
+ "captureGroup": 1,
274
+ "type": "variable"
275
+ },
276
+ {
277
+ "name": "Alias definition",
278
+ "pattern": "^\\s*alias\\s+([\\w-]+)=",
279
+ "captureGroup": 1,
280
+ "type": "variable"
281
+ },
282
+ {
283
+ "name": "For loop variable",
284
+ "pattern": "^\\s*for\\s+(\\w+)\\s+in",
285
+ "captureGroup": 1,
286
+ "type": "variable"
287
+ },
288
+ {
289
+ "name": "Read into variable",
290
+ "pattern": "\\bread\\s+(?:-[a-zA-Z]+\\s+)*(?:-p\\s+['\"][^'\"]+['\"]\\s+)*(\\w+)",
291
+ "captureGroup": 1,
292
+ "type": "variable"
293
+ },
294
+ {
295
+ "name": "Mapfile into array",
296
+ "pattern": "\\bmapfile\\s+(?:-\\w+\\s+)*(\\w+)",
297
+ "captureGroup": 1,
298
+ "type": "variable"
299
+ },
300
+ {
301
+ "name": "Select variable",
302
+ "pattern": "^\\s*select\\s+(\\w+)\\s+in",
303
+ "captureGroup": 1,
304
+ "type": "variable"
305
+ },
306
+ {
307
+ "name": "Getopts variable",
308
+ "pattern": "\\bgetopts\\s+[\"']?\\w+[\"']?\\s+(\\w+)",
309
+ "captureGroup": 1,
310
+ "type": "variable"
311
+ },
312
+ {
313
+ "name": "Completion function",
314
+ "pattern": "^\\s*complete\\s+.*-F\\s+(\\w+)",
315
+ "captureGroup": 1,
316
+ "type": "function"
317
+ },
318
+ {
319
+ "name": "C-style for loop variable",
320
+ "pattern": "^\\s*for\\s*\\(\\(\\s*(\\w+)\\s*=",
321
+ "captureGroup": 1,
322
+ "type": "variable"
323
+ },
324
+ {
325
+ "name": "Function (keyword)",
326
+ "pattern": "^\\\\s*function\\\\s+(\\\\w+)",
327
+ "captureGroup": 1,
328
+ "type": "function"
329
+ },
330
+ {
331
+ "name": "Function (parens)",
332
+ "pattern": "^\\\\s*(\\\\w+)\\\\s*\\\\(\\\\)",
333
+ "captureGroup": 1,
334
+ "type": "function"
335
+ },
336
+ {
337
+ "name": "Variable",
338
+ "pattern": "^\\\\s*(\\\\w+)=",
339
+ "captureGroup": 1,
340
+ "type": "variable"
341
+ }
342
+ ]
343
+ }