-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathobjectstack.config.js
More file actions
61 lines (61 loc) · 1.79 KB
/
Copy pathobjectstack.config.js
File metadata and controls
61 lines (61 loc) · 1.79 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
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const BiPlugin = {
id: 'com.objectstack.bi',
name: 'Business Intelligence Plugin',
version: '1.0.0',
type: 'plugin',
description: 'Provides BI capabilities, dataset definitions, and chart rendering.',
// 1. Configuration (Settings)
configuration: {
title: 'BI Plugin Configuration',
properties: {
enableCache: {
type: 'boolean',
default: true,
description: 'Enable in-memory caching for query results'
},
maxRows: {
type: 'number',
default: 1000,
description: 'Maximum rows returned per query'
}
}
},
// 2. Capabilities
contributes: {
kinds: [
{
id: 'bi.dataset',
globs: ['**/*.dataset.json', '**/*.dataset.ts'],
description: 'BI Dataset Definition'
},
{
id: 'bi.dashboard',
globs: ['**/*.bi-dash.json'],
description: 'Advanced BI Dashboard'
}
],
menus: {
'sidebar/tools': [
{ id: 'open_bi_studio', label: 'BI Studio', command: 'bi.openStudio' }
]
},
actions: [
{
name: 'refresh_dataset',
label: 'Refresh Dataset',
description: 'Manually trigger a dataset refresh',
input: { datasetId: 'string' }
}
]
},
// 3. Lifecycle Entry Point
// in a real scenario, this would be a path or module name
extensions: {
runtime: {
entry: './src/index.ts'
}
}
};
exports.default = BiPlugin;