@enjoys/context-engine 1.0.3 → 1.0.5

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 (53) hide show
  1. package/data/completion/awk.json +203 -0
  2. package/data/completion/crontab.json +203 -0
  3. package/data/completion/dotenv.json +170 -0
  4. package/data/completion/graphql.json +181 -0
  5. package/data/completion/hcl.json +192 -0
  6. package/data/completion/ini.json +137 -0
  7. package/data/completion/json.json +170 -0
  8. package/data/completion/makefile.json +203 -0
  9. package/data/completion/markdown.json +225 -0
  10. package/data/completion/nginx.json +280 -0
  11. package/data/completion/perl.json +203 -0
  12. package/data/completion/powershell.json +225 -0
  13. package/data/completion/protobuf.json +181 -0
  14. package/data/completion/ssh_config.json +159 -0
  15. package/data/completion/systemd.json +170 -0
  16. package/data/completion/xml.json +159 -0
  17. package/data/completion/zsh.json +214 -0
  18. package/data/defination/awk.json +125 -0
  19. package/data/defination/crontab.json +107 -0
  20. package/data/defination/dotenv.json +71 -0
  21. package/data/defination/graphql.json +119 -0
  22. package/data/defination/hcl.json +125 -0
  23. package/data/defination/ini.json +77 -0
  24. package/data/defination/json.json +83 -0
  25. package/data/defination/makefile.json +113 -0
  26. package/data/defination/markdown.json +107 -0
  27. package/data/defination/nginx.json +131 -0
  28. package/data/defination/perl.json +101 -0
  29. package/data/defination/powershell.json +119 -0
  30. package/data/defination/protobuf.json +119 -0
  31. package/data/defination/ssh_config.json +89 -0
  32. package/data/defination/systemd.json +107 -0
  33. package/data/defination/xml.json +83 -0
  34. package/data/defination/zsh.json +113 -0
  35. package/data/hover/awk.json +47 -0
  36. package/data/hover/crontab.json +47 -0
  37. package/data/hover/dotenv.json +47 -0
  38. package/data/hover/graphql.json +47 -0
  39. package/data/hover/hcl.json +75 -0
  40. package/data/hover/ini.json +68 -0
  41. package/data/hover/json.json +89 -0
  42. package/data/hover/makefile.json +68 -0
  43. package/data/hover/markdown.json +68 -0
  44. package/data/hover/nginx.json +89 -0
  45. package/data/hover/perl.json +47 -0
  46. package/data/hover/powershell.json +54 -0
  47. package/data/hover/protobuf.json +47 -0
  48. package/data/hover/ssh_config.json +47 -0
  49. package/data/hover/systemd.json +54 -0
  50. package/data/hover/xml.json +61 -0
  51. package/data/hover/zsh.json +61 -0
  52. package/data/manifest.json +210 -6
  53. package/package.json +1 -1
@@ -0,0 +1,203 @@
1
+ {
2
+ "language": "makefile",
3
+ "completions": [
4
+ {
5
+ "label": "target",
6
+ "kind": 15,
7
+ "detail": "Make target",
8
+ "documentation": {
9
+ "value": "A basic make target with prerequisites and recipe."
10
+ },
11
+ "insertText": "${1:target}: ${2:prerequisites}\n\t${3:command}",
12
+ "insertTextRules": 4,
13
+ "sortText": "00_target"
14
+ },
15
+ {
16
+ "label": ".PHONY",
17
+ "kind": 15,
18
+ "detail": "Phony target",
19
+ "documentation": {
20
+ "value": "Declare targets that are not files to prevent conflicts with file names."
21
+ },
22
+ "insertText": ".PHONY: ${1:target}",
23
+ "insertTextRules": 4,
24
+ "sortText": "00_phony"
25
+ },
26
+ {
27
+ "label": "variable",
28
+ "kind": 15,
29
+ "detail": "Variable assignment",
30
+ "documentation": {
31
+ "value": "Assign a value to a make variable."
32
+ },
33
+ "insertText": "${1:VAR} := ${2:value}",
34
+ "insertTextRules": 4,
35
+ "sortText": "00_var"
36
+ },
37
+ {
38
+ "label": "conditional variable",
39
+ "kind": 15,
40
+ "detail": "Conditional assignment",
41
+ "documentation": {
42
+ "value": "Only set the variable if it is not already defined."
43
+ },
44
+ "insertText": "${1:VAR} ?= ${2:default}",
45
+ "insertTextRules": 4,
46
+ "sortText": "00_condvar"
47
+ },
48
+ {
49
+ "label": "all target",
50
+ "kind": 15,
51
+ "detail": "Default target",
52
+ "documentation": {
53
+ "value": "The default target that runs when make is called without arguments."
54
+ },
55
+ "insertText": ".PHONY: all\nall: ${1:build}",
56
+ "insertTextRules": 4,
57
+ "sortText": "01_all"
58
+ },
59
+ {
60
+ "label": "build target",
61
+ "kind": 15,
62
+ "detail": "Build target",
63
+ "documentation": {
64
+ "value": "A common build target."
65
+ },
66
+ "insertText": ".PHONY: build\nbuild:\n\t${1:go build -o bin/app ./cmd/...}",
67
+ "insertTextRules": 4,
68
+ "sortText": "01_build"
69
+ },
70
+ {
71
+ "label": "clean target",
72
+ "kind": 15,
73
+ "detail": "Clean target",
74
+ "documentation": {
75
+ "value": "Remove build artifacts and temporary files."
76
+ },
77
+ "insertText": ".PHONY: clean\nclean:\n\trm -rf ${1:bin/ dist/ *.o}",
78
+ "insertTextRules": 4,
79
+ "sortText": "01_clean"
80
+ },
81
+ {
82
+ "label": "test target",
83
+ "kind": 15,
84
+ "detail": "Test target",
85
+ "documentation": {
86
+ "value": "Run tests."
87
+ },
88
+ "insertText": ".PHONY: test\ntest:\n\t${1:go test ./...}",
89
+ "insertTextRules": 4,
90
+ "sortText": "01_test"
91
+ },
92
+ {
93
+ "label": "install target",
94
+ "kind": 15,
95
+ "detail": "Install target",
96
+ "documentation": {
97
+ "value": "Install the compiled binary or artifacts."
98
+ },
99
+ "insertText": ".PHONY: install\ninstall:\n\tcp ${1:bin/app} ${2:/usr/local/bin/}",
100
+ "insertTextRules": 4,
101
+ "sortText": "01_install"
102
+ },
103
+ {
104
+ "label": "run target",
105
+ "kind": 15,
106
+ "detail": "Run target",
107
+ "documentation": {
108
+ "value": "Run the application."
109
+ },
110
+ "insertText": ".PHONY: run\nrun:\n\t${1:go run ./cmd/server}",
111
+ "insertTextRules": 4,
112
+ "sortText": "01_run"
113
+ },
114
+ {
115
+ "label": "docker target",
116
+ "kind": 15,
117
+ "detail": "Docker build target",
118
+ "documentation": {
119
+ "value": "Build a Docker image."
120
+ },
121
+ "insertText": ".PHONY: docker\ndocker:\n\tdocker build -t ${1:myapp}:${2:latest} .",
122
+ "insertTextRules": 4,
123
+ "sortText": "02_docker"
124
+ },
125
+ {
126
+ "label": "deploy target",
127
+ "kind": 15,
128
+ "detail": "Deploy target",
129
+ "documentation": {
130
+ "value": "Deploy the application."
131
+ },
132
+ "insertText": ".PHONY: deploy\ndeploy:\n\t${1:kubectl apply -f k8s/}",
133
+ "insertTextRules": 4,
134
+ "sortText": "02_deploy"
135
+ },
136
+ {
137
+ "label": "lint target",
138
+ "kind": 15,
139
+ "detail": "Lint target",
140
+ "documentation": {
141
+ "value": "Run linters."
142
+ },
143
+ "insertText": ".PHONY: lint\nlint:\n\t${1:golangci-lint run}",
144
+ "insertTextRules": 4,
145
+ "sortText": "02_lint"
146
+ },
147
+ {
148
+ "label": "help target",
149
+ "kind": 15,
150
+ "detail": "Help target",
151
+ "documentation": {
152
+ "value": "Print available make targets with descriptions."
153
+ },
154
+ "insertText": ".PHONY: help\nhelp:\n\t@echo \"Available targets:\"\n\t@echo \" build - Build the project\"\n\t@echo \" test - Run tests\"\n\t@echo \" clean - Remove build artifacts\"\n\t@echo \" deploy - Deploy the application\"",
155
+ "insertTextRules": 4,
156
+ "sortText": "02_help"
157
+ },
158
+ {
159
+ "label": "include",
160
+ "kind": 14,
161
+ "detail": "Include other Makefiles",
162
+ "documentation": {
163
+ "value": "Include another Makefile."
164
+ },
165
+ "insertText": "include ${1:Makefile.common}",
166
+ "insertTextRules": 4,
167
+ "sortText": "03_include"
168
+ },
169
+ {
170
+ "label": "shell function",
171
+ "kind": 14,
172
+ "detail": "Shell command in variable",
173
+ "documentation": {
174
+ "value": "Execute a shell command and store the result."
175
+ },
176
+ "insertText": "${1:GIT_HASH} := $(shell ${2:git rev-parse --short HEAD})",
177
+ "insertTextRules": 4,
178
+ "sortText": "03_shell"
179
+ },
180
+ {
181
+ "label": "ifeq",
182
+ "kind": 14,
183
+ "detail": "Conditional",
184
+ "documentation": {
185
+ "value": "Conditional execution based on variable comparison."
186
+ },
187
+ "insertText": "ifeq ($(${1:VAR}),${2:value})\n\t${3:# commands}\nendif",
188
+ "insertTextRules": 4,
189
+ "sortText": "03_ifeq"
190
+ },
191
+ {
192
+ "label": "pattern rule",
193
+ "kind": 15,
194
+ "detail": "Pattern rule",
195
+ "documentation": {
196
+ "value": "A pattern rule using % wildcard."
197
+ },
198
+ "insertText": "%.o: %.c\n\t$(CC) $(CFLAGS) -c $< -o $@",
199
+ "insertTextRules": 4,
200
+ "sortText": "03_pattern"
201
+ }
202
+ ]
203
+ }
@@ -0,0 +1,225 @@
1
+ {
2
+ "language": "markdown",
3
+ "completions": [
4
+ {
5
+ "label": "heading 1",
6
+ "kind": 15,
7
+ "detail": "H1 heading",
8
+ "documentation": {
9
+ "value": "Top-level heading."
10
+ },
11
+ "insertText": "# ${1:Title}",
12
+ "insertTextRules": 4,
13
+ "sortText": "00_h1"
14
+ },
15
+ {
16
+ "label": "heading 2",
17
+ "kind": 15,
18
+ "detail": "H2 heading",
19
+ "documentation": {
20
+ "value": "Second-level heading."
21
+ },
22
+ "insertText": "## ${1:Heading}",
23
+ "insertTextRules": 4,
24
+ "sortText": "00_h2"
25
+ },
26
+ {
27
+ "label": "heading 3",
28
+ "kind": 15,
29
+ "detail": "H3 heading",
30
+ "documentation": {
31
+ "value": "Third-level heading."
32
+ },
33
+ "insertText": "### ${1:Heading}",
34
+ "insertTextRules": 4,
35
+ "sortText": "00_h3"
36
+ },
37
+ {
38
+ "label": "bold",
39
+ "kind": 15,
40
+ "detail": "Bold text",
41
+ "documentation": {
42
+ "value": "Make text bold."
43
+ },
44
+ "insertText": "**${1:text}**",
45
+ "insertTextRules": 4,
46
+ "sortText": "01_bold"
47
+ },
48
+ {
49
+ "label": "italic",
50
+ "kind": 15,
51
+ "detail": "Italic text",
52
+ "documentation": {
53
+ "value": "Make text italic."
54
+ },
55
+ "insertText": "*${1:text}*",
56
+ "insertTextRules": 4,
57
+ "sortText": "01_italic"
58
+ },
59
+ {
60
+ "label": "strikethrough",
61
+ "kind": 15,
62
+ "detail": "Strikethrough",
63
+ "documentation": {
64
+ "value": "Strikethrough text."
65
+ },
66
+ "insertText": "~~${1:text}~~",
67
+ "insertTextRules": 4,
68
+ "sortText": "01_strike"
69
+ },
70
+ {
71
+ "label": "link",
72
+ "kind": 15,
73
+ "detail": "Hyperlink",
74
+ "documentation": {
75
+ "value": "An inline hyperlink."
76
+ },
77
+ "insertText": "[${1:text}](${2:url})",
78
+ "insertTextRules": 4,
79
+ "sortText": "01_link"
80
+ },
81
+ {
82
+ "label": "image",
83
+ "kind": 15,
84
+ "detail": "Image",
85
+ "documentation": {
86
+ "value": "Embed an image."
87
+ },
88
+ "insertText": "![${1:alt text}](${2:url})",
89
+ "insertTextRules": 4,
90
+ "sortText": "01_image"
91
+ },
92
+ {
93
+ "label": "code inline",
94
+ "kind": 15,
95
+ "detail": "Inline code",
96
+ "documentation": {
97
+ "value": "Inline code span."
98
+ },
99
+ "insertText": "`${1:code}`",
100
+ "insertTextRules": 4,
101
+ "sortText": "02_code"
102
+ },
103
+ {
104
+ "label": "code block",
105
+ "kind": 15,
106
+ "detail": "Fenced code block",
107
+ "documentation": {
108
+ "value": "A fenced code block with syntax highlighting."
109
+ },
110
+ "insertText": "```${1:language}\n${2:code}\n```",
111
+ "insertTextRules": 4,
112
+ "sortText": "02_codeblock"
113
+ },
114
+ {
115
+ "label": "unordered list",
116
+ "kind": 15,
117
+ "detail": "Bullet list",
118
+ "documentation": {
119
+ "value": "An unordered (bullet) list."
120
+ },
121
+ "insertText": "- ${1:item1}\n- ${2:item2}\n- ${3:item3}",
122
+ "insertTextRules": 4,
123
+ "sortText": "02_ul"
124
+ },
125
+ {
126
+ "label": "ordered list",
127
+ "kind": 15,
128
+ "detail": "Numbered list",
129
+ "documentation": {
130
+ "value": "An ordered (numbered) list."
131
+ },
132
+ "insertText": "1. ${1:item1}\n2. ${2:item2}\n3. ${3:item3}",
133
+ "insertTextRules": 4,
134
+ "sortText": "02_ol"
135
+ },
136
+ {
137
+ "label": "task list",
138
+ "kind": 15,
139
+ "detail": "Checkbox list",
140
+ "documentation": {
141
+ "value": "A task/checkbox list (GitHub Flavored Markdown)."
142
+ },
143
+ "insertText": "- [ ] ${1:task1}\n- [ ] ${2:task2}\n- [x] ${3:completed task}",
144
+ "insertTextRules": 4,
145
+ "sortText": "02_task"
146
+ },
147
+ {
148
+ "label": "blockquote",
149
+ "kind": 15,
150
+ "detail": "Blockquote",
151
+ "documentation": {
152
+ "value": "A blockquote section."
153
+ },
154
+ "insertText": "> ${1:quoted text}",
155
+ "insertTextRules": 4,
156
+ "sortText": "03_quote"
157
+ },
158
+ {
159
+ "label": "horizontal rule",
160
+ "kind": 15,
161
+ "detail": "Horizontal rule",
162
+ "documentation": {
163
+ "value": "A horizontal divider line."
164
+ },
165
+ "insertText": "---",
166
+ "insertTextRules": 4,
167
+ "sortText": "03_hr"
168
+ },
169
+ {
170
+ "label": "table",
171
+ "kind": 15,
172
+ "detail": "Table",
173
+ "documentation": {
174
+ "value": "A markdown table with headers."
175
+ },
176
+ "insertText": "| ${1:Header 1} | ${2:Header 2} | ${3:Header 3} |\n|---|---|---|\n| ${4:cell} | ${5:cell} | ${6:cell} |",
177
+ "insertTextRules": 4,
178
+ "sortText": "03_table"
179
+ },
180
+ {
181
+ "label": "footnote",
182
+ "kind": 15,
183
+ "detail": "Footnote",
184
+ "documentation": {
185
+ "value": "Add a footnote reference and definition."
186
+ },
187
+ "insertText": "[^${1:note}]\n\n[^${1:note}]: ${2:Footnote text}",
188
+ "insertTextRules": 4,
189
+ "sortText": "04_footnote"
190
+ },
191
+ {
192
+ "label": "collapsible section",
193
+ "kind": 15,
194
+ "detail": "Details/Summary",
195
+ "documentation": {
196
+ "value": "HTML details element for collapsible content (GitHub)."
197
+ },
198
+ "insertText": "<details>\n<summary>${1:Click to expand}</summary>\n\n${2:Hidden content}\n\n</details>",
199
+ "insertTextRules": 4,
200
+ "sortText": "04_details"
201
+ },
202
+ {
203
+ "label": "frontmatter (YAML)",
204
+ "kind": 15,
205
+ "detail": "YAML frontmatter",
206
+ "documentation": {
207
+ "value": "YAML frontmatter block for metadata."
208
+ },
209
+ "insertText": "---\ntitle: ${1:Title}\ndate: ${2:2024-01-01}\ntags: [${3:tag1, tag2}]\n---",
210
+ "insertTextRules": 4,
211
+ "sortText": "04_front"
212
+ },
213
+ {
214
+ "label": "README template",
215
+ "kind": 15,
216
+ "detail": "README.md template",
217
+ "documentation": {
218
+ "value": "Basic README.md structure."
219
+ },
220
+ "insertText": "# ${1:Project Name}\n\n${2:Brief description}\n\n## Installation\n\n```bash\n${3:npm install}\n```\n\n## Usage\n\n```bash\n${4:npm start}\n```\n\n## License\n\n${5:MIT}",
221
+ "insertTextRules": 4,
222
+ "sortText": "05_readme"
223
+ }
224
+ ]
225
+ }