-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
510 lines (510 loc) · 16 KB
/
package.json
File metadata and controls
510 lines (510 loc) · 16 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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
{
"name": "bruin",
"displayName": "Bruin",
"description": "Manage your Bruin data assets from within VS Code.",
"version": "0.79.9",
"engines": {
"vscode": "^1.87.0"
},
"icon": "img/bruin-logo-sm128.png",
"categories": [
"Data Science",
"Formatters"
],
"main": "./out/extension/extension.js",
"repository": {
"type": "git",
"url": "https://github.com/bruin-data/bruin-vscode"
},
"publisher": "bruin",
"activationEvents": [
"*",
"workspaceContains:.bruin.yml",
"workspaceContains:pipeline.yml"
],
"extensionDependencies": [
"redhat.vscode-yaml"
],
"contributes": {
"yamlValidation": [
{
"fileMatch": [
".bruin.yml",
".bruin.yaml"
],
"url": "./schemas/config-schema.json"
},
{
"fileMatch": [
"pipeline.yml",
"pipeline.yaml"
],
"url": "./schemas/pipeline-schema.json"
},
{
"fileMatch": [
"*.asset.yml",
"*.asset.yaml",
"*.task.yml",
"*.task.yaml"
],
"url": "./schemas/yaml-assets-schema.json"
}
],
"languages": [
{
"id": "sql",
"extensions": [
".sql"
],
"configuration": "./syntaxes/bruin-sql-injection.json"
},
{
"id": "python",
"extensions": [
".py"
],
"configuration": "./syntaxes/bruin-python-injection.json"
},
{
"id": "yaml",
"extensions": [
".yml",
".yaml"
]
}
],
"viewsContainers": {
"activitybar": [
{
"id": "bruin",
"title": "Databases",
"icon": "$(database)"
}
],
"panel": [
{
"id": "bruin-assetLineageView",
"title": "🐻 Lineage",
"icon": "$(graph)"
},
{
"id": "QueryPreview",
"title": "🐻 Query Preview",
"icon": "$(preview)"
},
{
"id": "TableDiff",
"title": "🐻 Table Diff",
"icon": "$(diff)"
},
{
"id": "RunHistory",
"title": "🐻 Run History",
"icon": "$(history)"
}
]
},
"views": {
"bruin": [
{
"id": "bruinConnections",
"name": "Databases"
}
],
"bruin-assetLineageView": [
{
"type": "webview",
"id": "bruin.assetLineageView",
"name": "Asset Lineage"
}
],
"QueryPreview": [
{
"type": "webview",
"id": "bruin.QueryPreviewView",
"name": "Query Preview"
}
],
"TableDiff": [
{
"type": "webview",
"id": "bruin.tableDiffView",
"name": "Table Diff"
}
],
"RunHistory": [
{
"type": "webview",
"id": "bruin.runHistoryView",
"name": "Run History"
}
]
},
"configuration": {
"type": "object",
"title": "Bruin Extension Settings",
"properties": {
"bruin.documentation": {
"markdownDescription": "For more information about using the Bruin extension, please refer to the [Bruin Documentation](https://bruin-data.github.io/bruin/). The documentation provides comprehensive guides and examples to help you get started and make the most of the Bruin extension."
},
"bruin.telemetry.enabled": {
"type": "boolean",
"default": true,
"description": "Enable anonymous usage data collection to help improve the extension."
},
"bruin.format.sqlfluff": {
"type": "boolean",
"default": false,
"description": "Enable SQLFluff formatting for SQL files."
},
"bruin.FoldingState": {
"type": "string",
"enum": [
"folded",
"expanded"
],
"default": "folded",
"description": "Sets the default folding state for custom Bruin foldable regions in Python and SQL files."
},
"bruin.pathSeparator": {
"type": "string",
"default": "/",
"enum": [
"/",
"\\"
],
"description": "The path separator to use when constructing Bruin asset paths."
},
"bruin.checkbox.defaultIntervalModifiers": {
"type": "boolean",
"default": false,
"description": "Sets whether the 'Interval-modifiers' checkbox is checked by default."
},
"bruin.checkbox.defaultExclusiveEndDate": {
"type": "boolean",
"default": true,
"description": "Sets whether the 'Exclusive-End-Date' checkbox is checked by default."
},
"bruin.checkbox.defaultPushMetadata": {
"type": "boolean",
"default": false,
"description": "Sets whether the 'Push-Metadata' checkbox is checked by default."
},
"bruin.checkbox.defaultApplySensorMode": {
"type": "boolean",
"default": false,
"description": "Sets whether the 'Apply-Sensor-Mode' checkbox is checked by default."
},
"bruin.run.sensorMode": {
"type": "string",
"enum": [
"once",
"skip",
"wait"
],
"enumDescriptions": [
"Run sensor query once and proceed based on result (default)",
"Skip sensors entirely (useful for local development)",
"Loop until the expected result is met (production-like behavior)"
],
"default": "skip",
"description": "Sensor mode to use when 'Apply-Sensor-Mode' checkbox is enabled. 'once' runs the sensor query once, 'skip' bypasses sensors, 'wait' loops until condition is met."
},
"bruin.validate.defaultExcludeTag": {
"type": "string",
"default": "",
"description": "Sets the validate exclude tag to be used with validation commands."
},
"bruin.query.previewSelectedQuery.enabled": {
"type": "boolean",
"default": true,
"description": "Show 'Preview selected query' CodeLens when text is selected in SQL files"
},
"bruin.query.timeout": {
"type": "number",
"default": 1000,
"description": "Timeout in seconds for query execution (default: 1000 seconds)"
},
"bruin.cli.autoUpdate": {
"type": "boolean",
"default": true,
"description": "Automatically update the Bruin CLI when a new version is available."
}
}
},
"snippets": [
{
"language": "sql",
"path": "./snippets/bruin-asset.code-snippets"
},
{
"language": "sql-bigquery",
"path": "./snippets/bruin-asset.code-snippets"
},
{
"language": "snowflake-sql",
"path": "./snippets/bruin-asset.code-snippets"
},
{
"language": "python",
"path": "./snippets/bruin-asset.code-snippets"
},
{
"language": "yaml",
"path": "./snippets/bruin-pipeline.code-snippets"
},
{
"language": "yaml",
"path": "./snippets/bruin-ingestr.code-snippets"
}
],
"grammars": [
{
"path": "./syntaxes/bruin-sql-injection.json",
"scopeName": "sql.comment.block",
"injectTo": [
"source.sql",
"source.sql-bigquery",
"source.pgsql"
]
},
{
"path": "./syntaxes/bruin-python-injection.json",
"scopeName": "python.docstring.block",
"injectTo": [
"source.python"
]
}
],
"menus": {
"editor/title/run": [
{
"command": "bruin.renderSQL",
"group": "navigation"
}
],
"editor/context": [
{
"command": "bruin.previewSelectedQuery",
"when": "editorHasSelection",
"group": "1_modification"
}
],
"view/title": [
{
"command": "bruin.refreshConnections",
"when": "view == bruinConnections",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "bruin.refreshConnection",
"when": "view == bruinConnections && viewItem == 'bruin_connection'",
"group": "inline"
},
{
"command": "bruin.refreshSchema",
"when": "view == bruinConnections && viewItem == 'schema'",
"group": "inline@2"
}
]
},
"commands": [
{
"command": "bruin.renderSQL",
"title": "Bruin Render",
"shortTitle": "Bruin",
"category": "Bruin",
"icon": "img/bruin-logo-sm128.png",
"description": "Render a Bruin asset."
},
{
"command": "bruin.refreshConnections",
"title": "Refresh Connections",
"category": "Bruin",
"icon": "$(refresh)",
"description": "Refresh connections list."
},
{
"command": "bruin.refreshConnection",
"title": "Refresh Connection",
"category": "Bruin",
"icon": "$(refresh)",
"description": "Refresh a single connection."
},
{
"command": "bruin.refreshSchema",
"title": "Refresh Schema",
"category": "Bruin",
"icon": "$(refresh)",
"description": "Refresh a single schema."
},
{
"command": "bruin.showConnectionDetails",
"title": "Show Connection Details",
"category": "Bruin",
"icon": "$(info)",
"description": "Show connection details."
},
{
"command": "bruin.installCli",
"title": "Install Bruin CLI",
"category": "Bruin",
"description": "Install the Bruin CLI."
},
{
"command": "bruin.toggleFoldings",
"title": "Toggle Folding",
"category": "Bruin",
"description": "Toggle the folding state of custom Bruin foldable regions in Python and SQL files."
},
{
"command": "bruin.convertFileToAsset",
"title": "Convert File to Asset",
"category": "Bruin",
"description": "Convert a file to a Bruin asset."
},
{
"command": "bruin.previewSelectedQuery",
"title": "Preview Selected Query",
"category": "Bruin",
"icon": "$(play)",
"description": "Preview the selected SQL query in the Query Preview panel."
},
{
"command": "bruin.showWalkthrough",
"title": "Show Getting Started Walkthrough",
"category": "Bruin",
"description": "Show the Bruin getting started walkthrough."
}
],
"keybindings": [
{
"command": "bruin.previewSelectedQuery",
"key": "ctrl+shift+r",
"mac": "cmd+shift+r",
"when": "editorTextFocus && editorHasSelection && resourceExtname == .sql"
}
],
"welcomePage": {
"walkthrough": "bruin.bruin-getting-started"
},
"walkthroughs": [
{
"id": "bruin-getting-started",
"title": "Getting Started with Bruin",
"description": "Learn the essential features and keyboard shortcuts to be productive with Bruin",
"primary": true,
"featured": true,
"steps": [
{
"id": "keyboard-shortcuts",
"title": "Essential Keyboard Shortcuts",
"description": "Master the most important keyboard shortcuts for autocomplete and productivity",
"media": {
"markdown": "walkthroughs/keyboard-shortcuts.md"
}
},
{
"id": "autocomplete-features",
"title": "Autocomplete & IntelliSense",
"description": "Discover how autocomplete works in Bruin YAML files and SQL assets",
"media": {
"markdown": "walkthroughs/autocomplete-features.md"
}
},
{
"id": "file-types",
"title": "Supported File Types",
"description": "Learn which file types have Bruin support and what features are available",
"media": {
"markdown": "walkthroughs/file-types.md"
}
},
{
"id": "query-preview",
"title": "Query Preview Features",
"description": "Use the powerful query preview and lineage features to analyze your data pipeline",
"media": {
"markdown": "walkthroughs/query-preview.md"
}
}
]
}
]
},
"scripts": {
"install:all": "npm install && cd webview-ui && npm install",
"start:webview": "cd webview-ui && npm run start",
"dev:watch": "concurrently -n EXTENSION,WEBVIEW -c yellow,blue \"tsc -watch -p ./\" \"cd webview-ui && npm run watch\"",
"build:webview": "cd webview-ui && npm run build-only && node scripts/copy-codicons.js",
"vscode:prepublish": "npm run compile",
"selenium:setup-tests": "extest setup-tests",
"selenium:run-tests:connections": "node webview-ui/scripts/copy-test-assets.js && extest setup-and-run './out/ui-test/connections-integration.test.js' --code_version 1.103.0 --code_settings settings.json",
"selenium:run-tests:ingestr": "node webview-ui/scripts/copy-test-assets.js && extest setup-and-run './out/ui-test/ingestr-asset-ui-integration.test.js' --code_version 1.103.0 --code_settings settings.json",
"selenium:run-tests:lineage": "node webview-ui/scripts/copy-test-assets.js && extest setup-and-run './out/ui-test/lineage-integration.test.js' --code_version 1.103.0 --code_settings settings.json",
"selenium:run-tests:webview": "node webview-ui/scripts/copy-test-assets.js && extest setup-and-run './out/ui-test/webview-tests.test.js' --code_version 1.103.0 --code_settings settings.json",
"selenium:run-tests:query-preview": "node webview-ui/scripts/copy-test-assets.js && extest setup-and-run './out/ui-test/query-preview-integration.test.js' --code_version 1.103.0 --code_settings settings.json",
"selenium:run-tests:all": "npm run selenium:run-tests:connections && npm run selenium:run-tests:ingestr && npm run selenium:run-tests:webview",
"test": "node ./out/test/runTest.js",
"test:webview": "cd webview-ui && npm run test",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"format": "prettier --write src/**/*.ts",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"coverage:integration": "node tools/coverage/generate-coverage-analysis.js && node tools/coverage/real-coverage-calculator.js",
"tag:patch": "./scripts/tag-helper.sh patch",
"tag:minor": "./scripts/tag-helper.sh minor",
"tag:major": "./scripts/tag-helper.sh major"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.10",
"@types/node": "^20.11.30",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.0",
"eslint": "^8.57.0",
"mocha": "^11.0.0",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.3",
"vscode-extension-tester": "^8.2.0",
"vscode-test": "^1.6.1"
},
"overrides": {
"undici": "^6.21.1",
"glob": "^11.0.0",
"http-proxy-agent": "^7.0.2",
"serialize-javascript": "^7.0.5",
"diff": "^8.0.3",
"uuid": "^14.0.0"
},
"dependencies": {
"@rudderstack/analytics-js": "^3.11.15",
"@rudderstack/rudder-sdk-node": "^3.0.3",
"@tailwindcss/forms": "^0.5.7",
"@vue-flow/background": "^1.3.0",
"@vue-flow/controls": "^1.1.1",
"@vue-flow/core": "^1.43.1",
"@vue-flow/minimap": "^1.5.3",
"chokidar": "^4.0.3",
"concurrently": "^9.0.1",
"cron-parser": "^4.9.0",
"dotenv": "^16.4.7",
"elkjs": "^0.9.3",
"fs-extra": "^11.3.0",
"luxon": "^3.4.4",
"markdown-it": "^14.1.0",
"proxyquire": "^2.1.3",
"sinon": "^17.0.1",
"vue3-virtual-scroller": "^0.2.3"
}
}