-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
442 lines (442 loc) · 13.2 KB
/
Copy pathpackage.json
File metadata and controls
442 lines (442 loc) · 13.2 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
{
"name": "septic-config",
"displayName": "Septic",
"icon": "images/septic_128.png",
"description": "Provides snippets, syntax highlighting and multi-level folding in Septic config files.",
"author": "Equinor ASA",
"license": "MIT",
"version": "1.25.10",
"repository": {
"type": "git",
"url": "https://github.com/equinor/vscode-septic"
},
"publisher": "EinarSIdso",
"categories": [
"AI",
"Chat"
],
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.95.0"
},
"activationEvents": [
"onLanguage:septic"
],
"main": "./dist/extension",
"contributes": {
"commands": [
{
"command": "septic.detectCycles",
"title": "Septic: Detect Cycles in Calcs"
},
{
"command": "septic.opcTagList",
"title": "Septic: List all OPC-Tags"
},
{
"command": "septic.compareCnfg",
"title": "Septic: Compare config versions"
},
{
"command": "septic.generateCalc",
"title": "Septic: Generate Calc"
}
],
"configuration": {
"type": "object",
"title": "Septic",
"properties": {
"septic.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"septic.documentation.version": {
"scope": "window",
"type": "string",
"enum": [
"latest",
"v2.88",
"v2.89",
"v2.90",
"v3.0",
"v3.1",
"v3.2",
"v3.3",
"v3.4"
],
"default": "latest",
"description": "Select which version of Septic to use for documentation and diagnostics."
},
"septic.diagnostics.enabled": {
"scope": "window",
"type": "boolean",
"default": "true",
"description": "Controls the publishing of diagnostics reports"
},
"septic.folding.calcModl": {
"scope": "window",
"type": "boolean",
"default": "false",
"description": "Sets the foldinglevel of CalcModl to level 1 when enabled."
},
"septic.formatting.enabled": {
"scope": "window",
"type": "boolean",
"default": "false",
"description": "Turns on formatting for cnfg files (Manually Shift+Alt+F or on save if enabled)."
},
"septic.ignored.paths": {
"scope": "window",
"type": "object",
"default": {},
"description": "Path(s) to files/folders that should be ignored when publishing diagnostics."
},
"septic.codeActions.insertEvrPosition": {
"scope": "window",
"type": "string",
"enum": [
"top",
"bottom"
],
"default": "bottom",
"description": "Position of inserted Evr. Bottom = Above CalcModl, Top = Below DmmyAppl"
},
"septic.completion.onlySuggestValidSnippets": {
"scope": "window",
"type": "boolean",
"default": "false",
"description": "Only suggest valid snippets based on the current object hierarchy."
}
}
},
"languages": [
{
"id": "septic",
"aliases": [
"Septic"
],
"extensions": [
".cnfg"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./images/septic_light.svg",
"dark": "./images/septic_dark.svg"
}
},
{
"id": "jinja",
"aliases": [
"Jinja Raw",
"jinja-raw"
],
"extensions": [],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "septic",
"scopeName": "source.septic",
"path": "./syntaxes/septic.tmLanguage.json"
},
{
"language": "jinja",
"scopeName": "source.jinja",
"path": "./syntaxes/jinja.tmLanguage.json"
}
],
"snippets": [
{
"language": "septic",
"path": "snippets/snippets.json"
}
],
"configurationDefaults": {
"[septic]": {
"files.encoding": "windows1252",
"editor.wordWrap": "on",
"editor.insertSpaces": true
},
"hediet.vscode-drawio.customLibraries": [
{
"entryId": "Septic",
"libName": "Septic",
"url": "https://raw.githubusercontent.com/equinor/septic-config-generator/refs/heads/main/docs/septic_scratchpad.xml"
}
],
"yaml.schemas": {
"https://raw.githubusercontent.com/equinor/septic-config-generator/refs/heads/main/docs/config.schema.json": "/*/scg/*.yaml"
}
},
"chatParticipants": [
{
"id": "septic.chat",
"name": "septic",
"fullName": "Septic",
"description": "Chatbot for Septic related topics using tools",
"isSticky": true,
"commands": [
{
"name": "calculation",
"description": "Generate and update calculations in Septic configs",
"isSticky": true
},
{
"name": "scg",
"description": "Documentation, updates and answers realted to Septic Config Generator tool and contexts",
"isSticky": true
}
]
}
],
"languageModelTools": [
{
"name": "septic-tools_validate_calculation",
"tags": [
"septic",
"calculation"
],
"toolReferenceName": "validateCalculation",
"displayName": "Validate Calculation",
"modelDescription": "Validates a given calculation and outputs the diagnostic messages that describes the errors and warnings in the calculation.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {
"calculation": {
"type": "string",
"description": "The calculation to validate."
},
"newVariables": {
"type": "array",
"items": {
"type": "string",
"description": "A variable to be added to the context."
},
"description": "New variables in calculation to be added to the context."
}
}
}
},
{
"name": "septic-tools_get_functions",
"tags": [
"septic",
"calculation"
],
"toolReferenceName": "getFunctions",
"displayName": "Get functions",
"modelDescription": "Returns a list of all available functions for use in calculations with description.",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "septic-tools_get_variables",
"tags": [
"septic",
"calculation"
],
"toolReferenceName": "getVariables",
"displayName": "Get variables in context",
"modelDescription": "Returns a list of all available variables in the current context with description.",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "septic-tools_get_scg_source",
"tags": [
"septic",
"scg"
],
"toolReferenceName": "getScgSource",
"displayName": "Read content of scg source in csv format",
"modelDescription": "Returns the content of an septic config generator (scg) source in csv format.",
"inputSchema": {
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "The full file path of the scg source"
}
}
}
},
{
"name": "septic-tools_update_scg_source",
"tags": [
"septic",
"scg"
],
"toolReferenceName": "updateScgSource",
"displayName": "Update the content of an scg source in csv format on disk",
"modelDescription": "Updates the given cell in the scg source on csv format with the new value.",
"inputSchema": {
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "The full file path of the scg context"
},
"updates": {
"type": "array",
"description": "A set of updates to be applied to the scg source.",
"items": {
"type": "object",
"properties": {
"index": {
"type": "string",
"description": "Index of the row to be updated"
},
"column": {
"type": "string",
"description": "Name of the column to be updated"
},
"value": {
"type": "string",
"description": "The new value for the cell"
}
}
}
}
}
}
},
{
"name": "septic-tools_modify_scg_source",
"tags": [
"septic",
"scg"
],
"toolReferenceName": "modifyScgSource",
"displayName": "Modify an scg source in csv format",
"modelDescription": "Modify an scg source in csv format on disk by adding or deleting a row or column",
"inputSchema": {
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "The full file path of the scg source"
},
"direction": {
"type": "string",
"enum": [
"row",
"column"
],
"description": "Select if you want to modify a row or column"
},
"action": {
"type": "string",
"enum": [
"add",
"delete"
],
"description": "Select action to perform"
},
"id": {
"type": "string",
"description": "Index of the row or the column header to be added or deleted"
},
"values": {
"type": "array",
"description": "Values to be added to the row or column excluded the index or header.",
"optional": true,
"items": {
"type": "string"
}
}
}
}
}
]
},
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"coverage/",
"**/*.test.ts",
"**/test/util/*",
"client/*",
"server/src/contextManager.ts",
"server/src/server.ts",
"server/src/documentProvider.ts",
"server/src/settings.ts",
"server/src/protocol.ts",
".vscode-test/*",
"**/index.ts"
],
"reporter": [
"html"
],
"require": [
"ts-node/register",
"source-map-support/register"
],
"all": true,
"cache": false,
"sourceMap": true,
"instrument": true
},
"scripts": {
"vscode:prepublish": "npm run package",
"check-types": "tsc --noEmit",
"clean": "rimraf ./server/out/public && rimraf ./client/out/test/fixtures",
"copy-files": "copyfiles -u 2 ./server/src/public/** ./server/out",
"copy-files-fixtures": "copyfiles -u 2 \"./client/src/test/fixtures/**/*\" ./client/out/",
"compile": "npm run check-types && node esbuild.js",
"compile-tests": "tsc -p ./client && tsc -p ./server && npm run copy-files-fixtures && npm run copy-files",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && node esbuild.js --production",
"lint": "eslint -c eslint.config.mjs ./client/src ./server/src",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"e2e-test": "npm run compile && npm run compile-tests && node ./client/out/test/runTest",
"test": "cross-env NODE_ENV=test mocha --require ts-node/register server/src/test/**/*.test.ts ",
"test_with_coverage": "npm run compile && nyc mocha --require ts-node/register --require source-map-support/register --recursive server/src/test/**/*.test.ts "
},
"dependencies": {
"@vscode/prompt-tsx": "^0.3.0-alpha.13",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@eslint/js": "^9.14.0",
"@types/chai": "5.2.2",
"@types/eslint__js": "^8.42.3",
"@types/mocha": "^10.0.7",
"@types/node": "^16.18.126",
"@types/vscode": "^1.103.0",
"@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.14.0",
"chai": "^5.3.1",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"esbuild": "^0.25.5",
"eslint": "^9.14.0",
"mocha": "^11.1.0",
"npm-run-all": "^4.1.5",
"nyc": "^17.1.0",
"rimraf": "^6.0.1",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.14.0"
}
}