-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
167 lines (167 loc) · 4.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"name": "message-query-language",
"displayName": "Message Query Language (MQL)",
"description": "Syntax highlighter, formatter, and language client for Message Query Language.",
"author": {
"name": "Sublime Security",
"url": "https://sublime.security"
},
"publisher": "SublimeSecurity",
"license": "MIT",
"version": "0.1.1",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/sublime-security/mql-vscode.git"
},
"categories": [
"Language Packs",
"Other"
],
"engines": {
"vscode": "^1.75.0"
},
"keywords": [
"mql",
"message query language",
"sublime security",
"sublime-security",
"cybersecurity",
"security",
"email security"
],
"main": "./out/main.js",
"activationEvents": [
"onLanguage:messageQueryLanguage",
"onLanguage:yaml"
],
"contributes": {
"languages": [
{
"id": "messageQueryLanguage",
"extensions": [
".mql"
],
"aliases": [
"Message Query Language",
"MQL"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "messageQueryLanguage",
"scopeName": "source.mql",
"path": "./syntaxes/messageQueryLanguage.tmLanguage.json"
},
{
"path": "./syntaxes/messageQueryLanguage-injection.json",
"scopeName": "source.mql.injection",
"injectTo": [
"source.yaml"
],
"embeddedLanguages": {
"source.mql": "messageQueryLanguage"
},
"tokenTypes": {
"source.mql": "other"
}
}
],
"yamlValidation": [
{
"fileMatch": [
"detection-rules/**/*.yml",
"discovery-rules/**/*.yml"
],
"url": "./schemas/sublimeRule.json"
},
{
"fileMatch": [
"signals/**/*.yml",
"insights/**/*.yml"
],
"url": "./schemas/sublimeQuery.json"
}
],
"configuration": {
"title": "Message Query Language (MQL)",
"properties": {
"sublimeSecurity.messageQueryLanguage.languageServer.enabled": {
"type": "boolean",
"markdownDescription": "Use the MQL Language Server specified in `languageServerHost`. This establishes a websocket connection to the platform for autocompletion, code analysis, and more.",
"title": "Enabled",
"default": true,
"order": 0
},
"sublimeSecurity.messageQueryLanguage.languageServer.host": {
"type": "string",
"description": "The host of the MQL Language Server",
"title": "Host",
"default": "analyzer.sublimesecurity.com",
"order": 1
},
"sublimeSecurity.messageQueryLanguage.languageServer.apiKey": {
"type": "string",
"markdownDescription": "Platform API key used for language server authentication. This is only required if the language server is enabled and using a host other than `analyzer.sublimesecurity.com`.",
"title": "API key",
"order": 2
},
"sublimeSecurity.messageQueryLanguage.openAI.enabled": {
"type": "boolean",
"description": "Use OpenAI to enable ChatGPT based completions",
"title": "Active",
"required": true,
"default": true,
"order": 3
},
"sublimeSecurity.messageQueryLanguage.openAI.apiKey": {
"type": "string",
"description": "API Key for OpenAI to enable ChatGPT based completions",
"title": "API Key",
"required": true,
"order": 4
},
"sublimeSecurity.messageQueryLanguage.openAI.completionModel": {
"type": "string",
"description": "The model to use for OpenAI code completions",
"title": "Completion Model",
"default": "curie:ft-sublime-security-2023-08-05-00-34-40",
"order": 5
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "npm run esbuild",
"watch": "npm run esbuild-watch",
"lint": "eslint ./src --ext .ts,.tsx",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/mocha": "^9.1.0",
"@types/node": "^16.18.38",
"@types/vscode": "^1.75.1",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@vscode/test-electron": "^2.2.3",
"esbuild": "^0.18.15",
"eslint": "^8.35.0",
"@vscode/vsce": "^2.19.0"
},
"dependencies": {
"axios": "^1.4.0",
"mocha": "^9.2.1",
"openai": "^3.3.0",
"typescript": "^5.0.2",
"vscode-jsonrpc": "^8.1.0",
"vscode-languageclient": "^8.1.0",
"ws": "^8.13.0"
}
}