-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 3.74 KB
/
package.json
File metadata and controls
144 lines (144 loc) · 3.74 KB
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
{
"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.2.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.sublime.security",
"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.sublime.security`.",
"title": "API key",
"order": 2
}
}
}
},
"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": "^10.0.10",
"@types/node": "^25.0.3",
"@types/vscode": "^1.75.1",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "^8.50.1",
"@typescript-eslint/parser": "^8.50.1",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.2",
"eslint": "^9.39.2",
"typescript-eslint": "^8.50.1"
},
"dependencies": {
"mocha": "^11.7.5",
"typescript": "^5.9.3",
"vscode-jsonrpc": "^8.2.1",
"vscode-languageclient": "^9.0.1",
"ws": "^8.18.3"
}
}