@jupiterone/jupiterone-mcp 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/graphql/queries.d.ts +1 -1
- package/dist/client/graphql/queries.d.ts.map +1 -1
- package/dist/client/graphql/queries.js +4 -0
- package/dist/client/graphql/queries.js.map +1 -1
- package/dist/generated/description-map.d.ts.map +1 -1
- package/dist/generated/description-map.js +410 -15
- package/dist/generated/description-map.js.map +1 -1
- package/dist/server/mcp-server.d.ts.map +1 -1
- package/dist/server/mcp-server.js +35 -1
- package/dist/server/mcp-server.js.map +1 -1
- package/dist/server/tools/alerts.d.ts.map +1 -1
- package/dist/server/tools/alerts.js +2 -5
- package/dist/server/tools/alerts.js.map +1 -1
- package/dist/server/tools/dashboard-layout.d.ts +80 -3
- package/dist/server/tools/dashboard-layout.d.ts.map +1 -1
- package/dist/server/tools/dashboard-layout.js +220 -15
- package/dist/server/tools/dashboard-layout.js.map +1 -1
- package/dist/server/tools/dashboards.d.ts.map +1 -1
- package/dist/server/tools/dashboards.js +379 -10
- package/dist/server/tools/dashboards.js.map +1 -1
- package/dist/server/tools/errors.d.ts +56 -10
- package/dist/server/tools/errors.d.ts.map +1 -1
- package/dist/server/tools/errors.js +194 -10
- package/dist/server/tools/errors.js.map +1 -1
- package/dist/server/tools/integrations.d.ts.map +1 -1
- package/dist/server/tools/integrations.js +15 -4
- package/dist/server/tools/integrations.js.map +1 -1
- package/dist/server/tools/j1ql.d.ts.map +1 -1
- package/dist/server/tools/j1ql.js +72 -4
- package/dist/server/tools/j1ql.js.map +1 -1
- package/dist/server/tools/rules.d.ts.map +1 -1
- package/dist/server/tools/rules.js +57 -6
- package/dist/server/tools/rules.js.map +1 -1
- package/dist/server/tools/telemetry.d.ts +6 -0
- package/dist/server/tools/telemetry.d.ts.map +1 -1
- package/dist/server/tools/telemetry.js.map +1 -1
- package/dist/server/tools/types.d.ts.map +1 -1
- package/dist/server/tools/types.js +7 -1
- package/dist/server/tools/types.js.map +1 -1
- package/dist/server/tools/usage.d.ts +13 -3
- package/dist/server/tools/usage.d.ts.map +1 -1
- package/dist/server/tools/usage.js +140 -4
- package/dist/server/tools/usage.js.map +1 -1
- package/dist/server/tools/value-probe.d.ts +85 -0
- package/dist/server/tools/value-probe.d.ts.map +1 -0
- package/dist/server/tools/value-probe.js +473 -0
- package/dist/server/tools/value-probe.js.map +1 -0
- package/dist/server/tools/widget-config-lint.d.ts +39 -0
- package/dist/server/tools/widget-config-lint.d.ts.map +1 -0
- package/dist/server/tools/widget-config-lint.js +290 -0
- package/dist/server/tools/widget-config-lint.js.map +1 -0
- package/dist/server/tools/widget-preflight.d.ts +63 -0
- package/dist/server/tools/widget-preflight.d.ts.map +1 -0
- package/dist/server/tools/widget-preflight.js +238 -0
- package/dist/server/tools/widget-preflight.js.map +1 -0
- package/dist/server/tools/widget-render-contract.d.ts +134 -0
- package/dist/server/tools/widget-render-contract.d.ts.map +1 -0
- package/dist/server/tools/widget-render-contract.js +421 -0
- package/dist/server/tools/widget-render-contract.js.map +1 -0
- package/dist/server/tools/widget-settings-keys.d.ts +51 -0
- package/dist/server/tools/widget-settings-keys.d.ts.map +1 -0
- package/dist/server/tools/widget-settings-keys.js +152 -0
- package/dist/server/tools/widget-settings-keys.js.map +1 -0
- package/dist/types/jupiterone.d.ts +7 -0
- package/dist/types/jupiterone.d.ts.map +1 -1
- package/dist/utils/j1ql-filters.d.ts +48 -0
- package/dist/utils/j1ql-filters.d.ts.map +1 -0
- package/dist/utils/j1ql-filters.js +184 -0
- package/dist/utils/j1ql-filters.js.map +1 -0
- package/dist/utils/j1ql-validator.d.ts +0 -5
- package/dist/utils/j1ql-validator.d.ts.map +1 -1
- package/dist/utils/j1ql-validator.js +27 -6
- package/dist/utils/j1ql-validator.js.map +1 -1
- package/node_modules/dtrace-provider/build/Makefile +1 -1
- package/package.json +1 -1
- package/dist/utils/description-loader.d.ts +0 -2
- package/dist/utils/description-loader.d.ts.map +0 -1
- package/dist/utils/description-loader.js +0 -17
- package/dist/utils/description-loader.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,4BAA4B,EAAE
|
|
1
|
+
{"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2FAyc2D;IACzF,qBAAqB,EAAE;;;;;;;;;;;;;iGAawE;IAC/F,gCAAgC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gHA6a4E;CAC/G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,KAAK,EAAE,eAAe,EAA2C,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,KAAK,EAAE,eAAe,EAA2C,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AA6D3E,MAAM,WAAW,0BAA0B;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,qBAAa,mBAAmB;IACvB,MAAM,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,eAAe,CAAC,CAAkB;IAC1C,OAAO,CAAC,WAAW,CAAC,CAA6B;gBAErC,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAE,0BAA+B;IAY9E;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAoEtB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAInB;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAKhB,oDAAoD;IACpD,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,gBAAgB;IAsBxB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IA2BjB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,CAC0G;YAE3I,MAAM;IAyDpB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;KAAE,GAAG,cAAc;IAI3E,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAStB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAM5B"}
|
|
@@ -11,6 +11,7 @@ const index_js_1 = require("./tools/index.js");
|
|
|
11
11
|
const errors_js_1 = require("./tools/errors.js");
|
|
12
12
|
const telemetry_js_1 = require("./tools/telemetry.js");
|
|
13
13
|
const icon_js_1 = require("./icon.js");
|
|
14
|
+
const load_description_js_1 = require("../utils/load-description.js");
|
|
14
15
|
const usage_js_1 = require("./tools/usage.js");
|
|
15
16
|
/** Distinguishes a prebuilt Standard Schema from a Zod raw shape (a plain record of Zod types). */
|
|
16
17
|
function isStandardSchema(outputSchema) {
|
|
@@ -68,12 +69,44 @@ class JupiterOneMcpServer {
|
|
|
68
69
|
websiteUrl: 'https://www.jupiterone.com',
|
|
69
70
|
icons: [icon_js_1.JUPITERONE_ICON],
|
|
70
71
|
}, {
|
|
72
|
+
// Cross-tool knowledge, injected into the host's system prompt at initialize. This is the
|
|
73
|
+
// only channel that carries sequencing and contracts spanning several tools — each tool
|
|
74
|
+
// description is read in isolation, so none of them can own "test the query before you
|
|
75
|
+
// build a widget from it" (TD-9016). Everything belonging to one tool stays in that tool's
|
|
76
|
+
// description; every token here is charged to every session on every host.
|
|
77
|
+
instructions: (0, load_description_js_1.loadDescription)('server-instructions.md'),
|
|
71
78
|
// SEP-2549 cache hints, emitted only on 2026-era responses (the 2025-era wire never
|
|
72
79
|
// carries them). The tool list is static per deploy, so let clients cache it for an hour
|
|
73
80
|
// instead of re-fetching on every session start. `private`: the list varies by connection
|
|
74
81
|
// mode (multi-tenant injects a required accountId parameter; pinned does not).
|
|
75
82
|
cacheHints: { 'tools/list': { ttlMs: 3_600_000, cacheScope: 'private' } },
|
|
76
83
|
});
|
|
84
|
+
// A workflow no single tool description can carry: which order to work in, and the discovery
|
|
85
|
+
// and verification steps that separate a dashboard that renders from one that does not. Hosts
|
|
86
|
+
// that do not support prompts simply ignore it.
|
|
87
|
+
server.registerPrompt('build-dashboard', {
|
|
88
|
+
title: 'Build a JupiterOne dashboard',
|
|
89
|
+
description: 'Discovery-first workflow for building an Insights dashboard that actually renders: ' +
|
|
90
|
+
'confirm the account, discover real types and stored value casing, prove every query, ' +
|
|
91
|
+
'then build, lay out and verify.',
|
|
92
|
+
argsSchema: {
|
|
93
|
+
objective: zod_1.z
|
|
94
|
+
.string()
|
|
95
|
+
.describe('What the dashboard is for, e.g. "a CISO view of internet-exposed risk"'),
|
|
96
|
+
},
|
|
97
|
+
}, ({ objective }) => ({
|
|
98
|
+
messages: [
|
|
99
|
+
{
|
|
100
|
+
role: 'user',
|
|
101
|
+
content: {
|
|
102
|
+
type: 'text',
|
|
103
|
+
// A function replacement: as a string, `$&`, `$'` and `$1` in the objective would be
|
|
104
|
+
// read as replacement patterns and silently rewrite what the user typed.
|
|
105
|
+
text: (0, load_description_js_1.loadDescription)('prompt-build-dashboard.md').replace('{{objective}}', () => objective),
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
}));
|
|
77
110
|
for (const tool of index_js_1.allTools) {
|
|
78
111
|
// Account-discovery tools need a host-supplied resolver (the multi-tenant remote); skip them
|
|
79
112
|
// when none is provided (stdio / fixed-account connectors have nothing to list or select).
|
|
@@ -195,6 +228,7 @@ class JupiterOneMcpServer {
|
|
|
195
228
|
finally {
|
|
196
229
|
this.telemetry({
|
|
197
230
|
tool: tool.name,
|
|
231
|
+
version: package_json_1.version,
|
|
198
232
|
outcome,
|
|
199
233
|
durationMs: Date.now() - startedAt,
|
|
200
234
|
errorClass,
|
|
@@ -202,7 +236,7 @@ class JupiterOneMcpServer {
|
|
|
202
236
|
accountId,
|
|
203
237
|
reason,
|
|
204
238
|
input: (0, usage_js_1.summarizeInput)(toolParams),
|
|
205
|
-
result: result ? (0, usage_js_1.summarizeResult)(result) : undefined,
|
|
239
|
+
result: result ? (0, usage_js_1.summarizeResult)(result, tool.name) : undefined,
|
|
206
240
|
});
|
|
207
241
|
}
|
|
208
242
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":";;;AAAA,8DAAgE;AAChE,yDAA2E;AAM3E,6BAAwB;AACxB,yEAAkE;AAElE,qDAA6C;AAC7C,kEAA2D;AAC3D,+CAA4C;AAC5C,iDAA4F;AAE5F,uDAA2E;AAC3E,uCAA4C;AAC5C,+CAAmF;AAgCnF,mGAAmG;AACnG,SAAS,gBAAgB,CACvB,YAA0B;IAE1B,OAAO,WAAW,IAAI,YAAY,CAAC;AACrC,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAS,iBAAiB,CAAC,YAA0B;IACnD,OAAO,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,EAAE,CAAC;AACxF,CAAC;AAaD,MAAa,mBAAmB;IACvB,MAAM,CAAY;IACjB,MAAM,CAAmB;IACzB,SAAS,CAAgB;IAC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sourceRoot":"","sources":["../../../src/server/tools/alerts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAQxE,eAAO,MAAM,UAAU,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../src/server/tools/alerts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAQxE,eAAO,MAAM,UAAU,EAAE,cAAc,EAgDtC,CAAC"}
|
|
@@ -32,11 +32,8 @@ exports.alertTools = [
|
|
|
32
32
|
returned: limitedInstances.length,
|
|
33
33
|
activeAlerts: limitedInstances.map((instance) => ({
|
|
34
34
|
id: instance.id,
|
|
35
|
-
name: instance.questionRuleInstance?.name ||
|
|
36
|
-
|
|
37
|
-
'Unknown',
|
|
38
|
-
description: instance.questionRuleInstance?.description ||
|
|
39
|
-
instance.reportRuleInstance?.description,
|
|
35
|
+
name: instance.questionRuleInstance?.name || instance.reportRuleInstance?.name || 'Unknown',
|
|
36
|
+
description: instance.questionRuleInstance?.description || instance.reportRuleInstance?.description,
|
|
40
37
|
level: instance.level,
|
|
41
38
|
status: instance.status,
|
|
42
39
|
createdOn: instance.createdOn,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../../src/server/tools/alerts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yEAAkE;AAClE,2CAA+C;AAC/C,yCAAwE;AAExE,MAAM,qBAAqB,GAAG;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC;CACrD,CAAC;AAEW,QAAA,UAAU,GAAqB;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IAAI,IAAI,QAAQ,CAAC,kBAAkB,EAAE,IAAI,IAAI,SAAS;oBACvF,WAAW,EACT,QAAQ,CAAC,oBAAoB,EAAE,WAAW,IAAI,QAAQ,CAAC,kBAAkB,EAAE,WAAW;oBACxF,KAAK,EAAE,QAAQ,CAAC,KAAK;oBACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,SAAS,EAAE,QAAQ,CAAC,SAAS;oBAC7B,aAAa,EAAE,QAAQ,CAAC,aAAa;oBACrC,qBAAqB,EAAE,QAAQ,CAAC,qBAAqB;oBACrD,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB;oBACjD,WAAW,EAAE,QAAQ,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,IAAI,CAAC;oBACrF,IAAI,EAAE,QAAQ,CAAC,oBAAoB,EAAE,IAAI,IAAI,EAAE;oBAC/C,MAAM,EAAE,QAAQ,CAAC,oBAAoB,EAAE,MAAM,IAAI,EAAE;oBACnD,OAAO,EAAE,QAAQ,CAAC,oBAAoB,EAAE,OAAO,IAAI,EAAE;oBACrD,KAAK,EAAE,QAAQ,CAAC,KAAK;oBACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,WAAW,EAAE,QAAQ,CAAC,WAAW;oBACjC,SAAS,EAAE,QAAQ,CAAC,SAAS;oBAC7B,WAAW,EAAE,QAAQ,CAAC,WAAW;iBAClC,CAAC,CAAC;aACJ,CAAC,CAAC;QACL,CAAC;KACF,CAAC;CACH,CAAC"}
|
|
@@ -4,14 +4,24 @@ export type AutoLayoutItem = string | {
|
|
|
4
4
|
id: string;
|
|
5
5
|
size?: WidgetSize;
|
|
6
6
|
};
|
|
7
|
+
export declare function heightForWidget(widget: {
|
|
8
|
+
type?: string;
|
|
9
|
+
config?: {
|
|
10
|
+
settings?: {
|
|
11
|
+
markdown?: {
|
|
12
|
+
text?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}): number;
|
|
7
17
|
export interface LayoutEntry {
|
|
8
18
|
i: string;
|
|
9
19
|
x: number;
|
|
10
20
|
y: number;
|
|
11
21
|
w: number;
|
|
12
22
|
h: number;
|
|
13
|
-
moved:
|
|
14
|
-
static:
|
|
23
|
+
moved: boolean;
|
|
24
|
+
static: boolean;
|
|
15
25
|
}
|
|
16
26
|
export interface Layouts {
|
|
17
27
|
xs: LayoutEntry[];
|
|
@@ -21,5 +31,72 @@ export interface Layouts {
|
|
|
21
31
|
xl: LayoutEntry[];
|
|
22
32
|
}
|
|
23
33
|
/** Compute all five breakpoints from an ordered widget list. */
|
|
24
|
-
export declare function computeAutoLayout(items: AutoLayoutItem[]
|
|
34
|
+
export declare function computeAutoLayout(items: AutoLayoutItem[],
|
|
35
|
+
/** Rows per widget id, from `heightForWidget`. Anything unlisted keeps the default height. */
|
|
36
|
+
heights?: Record<string, number>): Layouts;
|
|
37
|
+
/** The five responsive breakpoints the API requires, every one as a non-null array. */
|
|
38
|
+
export declare const BREAKPOINTS: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
39
|
+
export type Breakpoint = (typeof BREAKPOINTS)[number];
|
|
40
|
+
/**
|
|
41
|
+
* Place the widgets that no breakpoint entry covers, below the ones that are already placed.
|
|
42
|
+
*
|
|
43
|
+
* A board's layout is replaced wholesale on write, so filling one in means carrying every existing
|
|
44
|
+
* entry through untouched and appending to it. Nothing already placed is moved, resized or removed:
|
|
45
|
+
* appending below the lowest occupied row is what a person adding a widget to their own board would
|
|
46
|
+
* do, which is what makes this safe to run against a board somebody laid out by hand.
|
|
47
|
+
*
|
|
48
|
+
* Missing widgets are placed per breakpoint, since a board can be laid out at one breakpoint and not
|
|
49
|
+
* another, and the appended set is the union — a widget with a place at every breakpoint is left
|
|
50
|
+
* entirely alone.
|
|
51
|
+
*/
|
|
52
|
+
export declare function appendMissingLayouts(existing: Record<string, unknown[] | undefined> | undefined, widgetIds: string[],
|
|
53
|
+
/** Rows per widget id, from `heightForWidget`. Anything unlisted keeps the default height. */
|
|
54
|
+
heights?: Record<string, number>): {
|
|
55
|
+
layouts: Layouts;
|
|
56
|
+
appended: string[];
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Is the board's layout nothing but this module's own arithmetic?
|
|
60
|
+
*
|
|
61
|
+
* Appending is safe but ugly: a widget that arrives alone has nothing to share a row with, so a
|
|
62
|
+
* board built one create at a time comes out a single-column stack (measured on a live 3-widget
|
|
63
|
+
* board). Re-packing it would fix that, and re-packing a layout somebody arranged would destroy
|
|
64
|
+
* their work — so the two cases have to be told apart, and no board records who placed what.
|
|
65
|
+
*
|
|
66
|
+
* What is recoverable is whether the layout could have come from here: `computeAutoLayout` is
|
|
67
|
+
* deterministic from the widget order and the heights, so the layout the server would have produced
|
|
68
|
+
* for the widgets currently placed can be recomputed and compared. An exact match means nobody has
|
|
69
|
+
* arranged anything and the grid is the server's to replace; one differing coordinate means a person
|
|
70
|
+
* or an agent chose something, and appending is the only safe move.
|
|
71
|
+
*
|
|
72
|
+
* A `static` or `moved` flag set true is human evidence of the same kind — this module only ever
|
|
73
|
+
* writes them false, so a true one came from somebody dragging or pinning the widget.
|
|
74
|
+
*
|
|
75
|
+
* Each breakpoint is judged on its own placed set, since a board can be arranged at one breakpoint
|
|
76
|
+
* and untouched at another; an empty breakpoint is trivially owned.
|
|
77
|
+
*/
|
|
78
|
+
export declare function isServerOwnedLayout(existing: Record<string, unknown[] | undefined> | undefined, widgetIds: string[],
|
|
79
|
+
/** Rows per widget id, from `heightForWidget`. Anything unlisted keeps the default height. */
|
|
80
|
+
heights?: Record<string, number>): boolean;
|
|
81
|
+
interface GridRect {
|
|
82
|
+
i: string;
|
|
83
|
+
x: number;
|
|
84
|
+
y: number;
|
|
85
|
+
w: number;
|
|
86
|
+
h: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Widgets that sit on top of each other in the grid, at any breakpoint.
|
|
90
|
+
*
|
|
91
|
+
* Hand-packed `layouts` are easy to get wrong and the API accepts any arrangement, so two widgets
|
|
92
|
+
* can occupy the same cells and one is drawn over the other. `autoLayout` cannot produce this;
|
|
93
|
+
* a hand-built or imported board can.
|
|
94
|
+
*
|
|
95
|
+
* Every breakpoint provided is scanned, not just `lg`: each one is an independent arrangement, and
|
|
96
|
+
* a collision on the phone layout is exactly as invisible to the caller as one on the desktop
|
|
97
|
+
* layout. A pair that collides at several breakpoints is one mistake and is reported once — the
|
|
98
|
+
* caller fixes the pair, not the breakpoint.
|
|
99
|
+
*/
|
|
100
|
+
export declare function overlappingWidgets(layouts: Partial<Record<Breakpoint, GridRect[]>> | undefined): string[][];
|
|
101
|
+
export {};
|
|
25
102
|
//# sourceMappingURL=dashboard-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-layout.d.ts","sourceRoot":"","sources":["../../../src/server/tools/dashboard-layout.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/D,+FAA+F;AAC/F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboard-layout.d.ts","sourceRoot":"","sources":["../../../src/server/tools/dashboard-layout.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/D,+FAA+F;AAC/F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAexE,wBAAgB,eAAe,CAAC,MAAM,EAAE;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAA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CACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC,GAAG,SAAS,EAC3D,SAAS,EAAE,MAAM,EAAE;AACnB,8FAA8F;AAC9F,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,OAAO,CAYT;AAED,UAAU,QAAQ;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAkBD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,SAAS,GAC3D,MAAM,EAAE,EAAE,CAeZ"}
|
|
@@ -8,7 +8,39 @@
|
|
|
8
8
|
// - Single-column breakpoints (xs/sm) stack every widget at x=0; that example's `sm` items use
|
|
9
9
|
// w=1/h=1 for compact widgets and w=2/h=2 for larger ones.
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.BREAKPOINTS = void 0;
|
|
12
|
+
exports.heightForWidget = heightForWidget;
|
|
11
13
|
exports.computeAutoLayout = computeAutoLayout;
|
|
14
|
+
exports.appendMissingLayouts = appendMissingLayouts;
|
|
15
|
+
exports.isServerOwnedLayout = isServerOwnedLayout;
|
|
16
|
+
exports.overlappingWidgets = overlappingWidgets;
|
|
17
|
+
/**
|
|
18
|
+
* Grid rows a widget needs, by what it draws.
|
|
19
|
+
*
|
|
20
|
+
* Height used to be a flat 2 for everything: a markdown header got a chart's worth of vertical
|
|
21
|
+
* space and rendered as a band of whitespace, while a table got two rows to show a list in. Tables
|
|
22
|
+
* and graphs now get four, matching JupiterOne's own managed boards; tiles and charts keep two; and
|
|
23
|
+
* markdown gets one, because the grid slot is padding around text that sizes itself.
|
|
24
|
+
*/
|
|
25
|
+
/** Grid rows one markdown row displays, measured on a live board: a ~1,600-char methodology
|
|
26
|
+
* intro pinned at one row clipped to its first ~3 blocks (~350 chars visible). */
|
|
27
|
+
const MARKDOWN_CHARS_PER_ROW = 300;
|
|
28
|
+
const MARKDOWN_MAX_ROWS = 4;
|
|
29
|
+
function heightForWidget(widget) {
|
|
30
|
+
// Markdown scales with its body. A flat one row clipped every methodology intro the build
|
|
31
|
+
// prompt now teaches (measured: a 7-block intro showed its first 3 blocks and cut the rest),
|
|
32
|
+
// and a flat larger constant put a band of whitespace under every one-line section label. The
|
|
33
|
+
// divisor is coarse — rendered height depends on width and structure — but a monotonic estimate
|
|
34
|
+
// beats any constant, and the cap keeps a very long brief from consuming the fold: past 4 rows
|
|
35
|
+
// the overflow belongs in widget descriptions, not a taller slot.
|
|
36
|
+
if (widget.type === 'markdown') {
|
|
37
|
+
const text = widget.config?.settings?.markdown?.text ?? '';
|
|
38
|
+
return Math.min(MARKDOWN_MAX_ROWS, Math.max(1, Math.ceil(text.length / MARKDOWN_CHARS_PER_ROW)));
|
|
39
|
+
}
|
|
40
|
+
if (widget.type === 'table' || widget.type === 'graph')
|
|
41
|
+
return 4;
|
|
42
|
+
return 2;
|
|
43
|
+
}
|
|
12
44
|
const MULTI_COLUMN_UNITS = {
|
|
13
45
|
small: { w: 4, h: 2 },
|
|
14
46
|
medium: { w: 6, h: 2 },
|
|
@@ -28,37 +60,62 @@ function normalize(item) {
|
|
|
28
60
|
return { id: item, size: DEFAULT_SIZE };
|
|
29
61
|
return { id: item.id, size: item.size ?? DEFAULT_SIZE };
|
|
30
62
|
}
|
|
31
|
-
/**
|
|
32
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Left-to-right, top-to-bottom row fill across a 12-column grid, starting at row `startY`.
|
|
65
|
+
*
|
|
66
|
+
* A row that cannot fit the next widget is CLOSED before wrapping: its last widget widens to the
|
|
67
|
+
* 12th column. Size sequences that do not sum to twelve are the norm, not the exception — a live
|
|
68
|
+
* board paired a 4-wide tile with a 6-wide bar (a 2-column hole) and left a lone 6-wide line chart
|
|
69
|
+
* beside 6 columns of nothing — and a hole reads as a broken board while a slightly-wider widget
|
|
70
|
+
* reads as designed. Widgets only ever widen, never shrink or move, so reading order is preserved.
|
|
71
|
+
* The final row is closed the same way; a lone trailing widget becomes full-width, which is the
|
|
72
|
+
* hero treatment rather than a hole.
|
|
73
|
+
*/
|
|
74
|
+
function multiColumn(items, startY = 0) {
|
|
75
|
+
const entries = [];
|
|
33
76
|
let x = 0;
|
|
34
|
-
let y =
|
|
77
|
+
let y = startY;
|
|
35
78
|
let rowHeight = 0;
|
|
36
|
-
|
|
37
|
-
const
|
|
79
|
+
const closeRow = () => {
|
|
80
|
+
const last = entries[entries.length - 1];
|
|
81
|
+
if (last && x < GRID_COLUMNS)
|
|
82
|
+
last.w = GRID_COLUMNS - last.x;
|
|
83
|
+
};
|
|
84
|
+
for (const { id, size, height } of items) {
|
|
85
|
+
const { w, h: defaultHeight } = MULTI_COLUMN_UNITS[size];
|
|
86
|
+
const h = height ?? defaultHeight;
|
|
38
87
|
if (x + w > GRID_COLUMNS) {
|
|
88
|
+
closeRow();
|
|
39
89
|
y += rowHeight;
|
|
40
90
|
x = 0;
|
|
41
91
|
rowHeight = 0;
|
|
42
92
|
}
|
|
43
|
-
|
|
93
|
+
entries.push({ i: id, x, y, w, h, moved: false, static: false });
|
|
44
94
|
x += w;
|
|
45
95
|
rowHeight = Math.max(rowHeight, h);
|
|
46
|
-
|
|
47
|
-
|
|
96
|
+
}
|
|
97
|
+
closeRow();
|
|
98
|
+
return entries;
|
|
48
99
|
}
|
|
49
|
-
/** Every widget stacked in a single column (x=0)
|
|
50
|
-
function singleColumn(items) {
|
|
51
|
-
let y =
|
|
52
|
-
return items.map(({ id, size }) => {
|
|
53
|
-
const { w, h } = SINGLE_COLUMN_UNITS[size];
|
|
100
|
+
/** Every widget stacked in a single column (x=0), starting at row `startY`. */
|
|
101
|
+
function singleColumn(items, startY = 0) {
|
|
102
|
+
let y = startY;
|
|
103
|
+
return items.map(({ id, size, height }) => {
|
|
104
|
+
const { w, h: defaultHeight } = SINGLE_COLUMN_UNITS[size];
|
|
105
|
+
const h = height ?? defaultHeight;
|
|
54
106
|
const entry = { i: id, x: 0, y, w, h, moved: false, static: false };
|
|
55
107
|
y += h;
|
|
56
108
|
return entry;
|
|
57
109
|
});
|
|
58
110
|
}
|
|
59
111
|
/** Compute all five breakpoints from an ordered widget list. */
|
|
60
|
-
function computeAutoLayout(items
|
|
61
|
-
|
|
112
|
+
function computeAutoLayout(items,
|
|
113
|
+
/** Rows per widget id, from `heightForWidget`. Anything unlisted keeps the default height. */
|
|
114
|
+
heights = {}) {
|
|
115
|
+
const normalized = items.map((item) => {
|
|
116
|
+
const { id, size } = normalize(item);
|
|
117
|
+
return { id, size, height: heights[id] };
|
|
118
|
+
});
|
|
62
119
|
return {
|
|
63
120
|
xs: singleColumn(normalized),
|
|
64
121
|
sm: singleColumn(normalized),
|
|
@@ -67,4 +124,152 @@ function computeAutoLayout(items) {
|
|
|
67
124
|
xl: multiColumn(normalized),
|
|
68
125
|
};
|
|
69
126
|
}
|
|
127
|
+
/** The five responsive breakpoints the API requires, every one as a non-null array. */
|
|
128
|
+
exports.BREAKPOINTS = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
129
|
+
/**
|
|
130
|
+
* An entry already on the board is only a placement if it carries all four coordinates. Anything
|
|
131
|
+
* else — a null, a partial object, the `__typename`-only husk of one — positions nothing, so its
|
|
132
|
+
* widget counts as unplaced and the entry is not worth sending back.
|
|
133
|
+
*/
|
|
134
|
+
function isPlacement(entry) {
|
|
135
|
+
if (!entry || typeof entry !== 'object')
|
|
136
|
+
return false;
|
|
137
|
+
const item = entry;
|
|
138
|
+
return typeof item.i === 'string' && ['x', 'y', 'w', 'h'].every((k) => Number.isFinite(item[k]));
|
|
139
|
+
}
|
|
140
|
+
// The API returns every layout entry with a `__typename` its own input type rejects, so entries are
|
|
141
|
+
// rebuilt from the seven fields the mutation declares rather than passed through.
|
|
142
|
+
function keptEntry(entry) {
|
|
143
|
+
return {
|
|
144
|
+
i: entry.i,
|
|
145
|
+
x: entry.x,
|
|
146
|
+
y: entry.y,
|
|
147
|
+
w: entry.w,
|
|
148
|
+
h: entry.h,
|
|
149
|
+
moved: entry.moved === true,
|
|
150
|
+
static: entry.static === true,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/** The first row below everything already placed. */
|
|
154
|
+
function nextFreeRow(entries) {
|
|
155
|
+
return entries.reduce((row, entry) => Math.max(row, entry.y + entry.h), 0);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Place the widgets that no breakpoint entry covers, below the ones that are already placed.
|
|
159
|
+
*
|
|
160
|
+
* A board's layout is replaced wholesale on write, so filling one in means carrying every existing
|
|
161
|
+
* entry through untouched and appending to it. Nothing already placed is moved, resized or removed:
|
|
162
|
+
* appending below the lowest occupied row is what a person adding a widget to their own board would
|
|
163
|
+
* do, which is what makes this safe to run against a board somebody laid out by hand.
|
|
164
|
+
*
|
|
165
|
+
* Missing widgets are placed per breakpoint, since a board can be laid out at one breakpoint and not
|
|
166
|
+
* another, and the appended set is the union — a widget with a place at every breakpoint is left
|
|
167
|
+
* entirely alone.
|
|
168
|
+
*/
|
|
169
|
+
function appendMissingLayouts(existing, widgetIds,
|
|
170
|
+
/** Rows per widget id, from `heightForWidget`. Anything unlisted keeps the default height. */
|
|
171
|
+
heights = {}) {
|
|
172
|
+
const layouts = {};
|
|
173
|
+
const appended = new Set();
|
|
174
|
+
for (const breakpoint of exports.BREAKPOINTS) {
|
|
175
|
+
const kept = (existing?.[breakpoint] ?? []).filter(isPlacement).map(keptEntry);
|
|
176
|
+
const placed = new Set(kept.map((entry) => entry.i));
|
|
177
|
+
const missing = widgetIds.filter((id) => !placed.has(id));
|
|
178
|
+
for (const id of missing)
|
|
179
|
+
appended.add(id);
|
|
180
|
+
const pack = breakpoint === 'xs' || breakpoint === 'sm' ? singleColumn : multiColumn;
|
|
181
|
+
const items = missing.map((id) => ({ id, size: DEFAULT_SIZE, height: heights[id] }));
|
|
182
|
+
layouts[breakpoint] = [...kept, ...pack(items, nextFreeRow(kept))];
|
|
183
|
+
}
|
|
184
|
+
return { layouts, appended: widgetIds.filter((id) => appended.has(id)) };
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Coordinates only. The API hands entries back with `static` and `moved` as null where this module
|
|
188
|
+
* wrote false, and in whatever order it likes, so neither the flags nor the order can be part of the
|
|
189
|
+
* comparison — an entry is matched by its `i` and judged on `x`/`y`/`w`/`h`.
|
|
190
|
+
*/
|
|
191
|
+
function samePlacements(entries, expected) {
|
|
192
|
+
if (entries.length !== expected.length)
|
|
193
|
+
return false;
|
|
194
|
+
const byId = new Map(entries.map((entry) => [entry.i, entry]));
|
|
195
|
+
return expected.every((want) => {
|
|
196
|
+
const got = byId.get(want.i);
|
|
197
|
+
return !!got && got.x === want.x && got.y === want.y && got.w === want.w && got.h === want.h;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Is the board's layout nothing but this module's own arithmetic?
|
|
202
|
+
*
|
|
203
|
+
* Appending is safe but ugly: a widget that arrives alone has nothing to share a row with, so a
|
|
204
|
+
* board built one create at a time comes out a single-column stack (measured on a live 3-widget
|
|
205
|
+
* board). Re-packing it would fix that, and re-packing a layout somebody arranged would destroy
|
|
206
|
+
* their work — so the two cases have to be told apart, and no board records who placed what.
|
|
207
|
+
*
|
|
208
|
+
* What is recoverable is whether the layout could have come from here: `computeAutoLayout` is
|
|
209
|
+
* deterministic from the widget order and the heights, so the layout the server would have produced
|
|
210
|
+
* for the widgets currently placed can be recomputed and compared. An exact match means nobody has
|
|
211
|
+
* arranged anything and the grid is the server's to replace; one differing coordinate means a person
|
|
212
|
+
* or an agent chose something, and appending is the only safe move.
|
|
213
|
+
*
|
|
214
|
+
* A `static` or `moved` flag set true is human evidence of the same kind — this module only ever
|
|
215
|
+
* writes them false, so a true one came from somebody dragging or pinning the widget.
|
|
216
|
+
*
|
|
217
|
+
* Each breakpoint is judged on its own placed set, since a board can be arranged at one breakpoint
|
|
218
|
+
* and untouched at another; an empty breakpoint is trivially owned.
|
|
219
|
+
*/
|
|
220
|
+
function isServerOwnedLayout(existing, widgetIds,
|
|
221
|
+
/** Rows per widget id, from `heightForWidget`. Anything unlisted keeps the default height. */
|
|
222
|
+
heights = {}) {
|
|
223
|
+
return exports.BREAKPOINTS.every((breakpoint) => {
|
|
224
|
+
const stored = (existing?.[breakpoint] ?? []).filter(isPlacement);
|
|
225
|
+
if (stored.some((entry) => entry.static === true || entry.moved === true))
|
|
226
|
+
return false;
|
|
227
|
+
const entries = stored.map(keptEntry);
|
|
228
|
+
const placed = new Set(entries.map((entry) => entry.i));
|
|
229
|
+
const expected = computeAutoLayout(widgetIds.filter((id) => placed.has(id)), heights)[breakpoint];
|
|
230
|
+
return samePlacements(entries, expected);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/** Two grid rectangles overlap when they intersect on both axes. */
|
|
234
|
+
function overlaps(a, b) {
|
|
235
|
+
return a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h && b.y < a.y + a.h;
|
|
236
|
+
}
|
|
237
|
+
/** Every colliding pair inside one breakpoint's arrangement. */
|
|
238
|
+
function collidingPairs(items) {
|
|
239
|
+
const pairs = [];
|
|
240
|
+
for (let i = 0; i < items.length; i += 1) {
|
|
241
|
+
for (let j = i + 1; j < items.length; j += 1) {
|
|
242
|
+
if (overlaps(items[i], items[j]))
|
|
243
|
+
pairs.push([items[i].i, items[j].i]);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return pairs;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Widgets that sit on top of each other in the grid, at any breakpoint.
|
|
250
|
+
*
|
|
251
|
+
* Hand-packed `layouts` are easy to get wrong and the API accepts any arrangement, so two widgets
|
|
252
|
+
* can occupy the same cells and one is drawn over the other. `autoLayout` cannot produce this;
|
|
253
|
+
* a hand-built or imported board can.
|
|
254
|
+
*
|
|
255
|
+
* Every breakpoint provided is scanned, not just `lg`: each one is an independent arrangement, and
|
|
256
|
+
* a collision on the phone layout is exactly as invisible to the caller as one on the desktop
|
|
257
|
+
* layout. A pair that collides at several breakpoints is one mistake and is reported once — the
|
|
258
|
+
* caller fixes the pair, not the breakpoint.
|
|
259
|
+
*/
|
|
260
|
+
function overlappingWidgets(layouts) {
|
|
261
|
+
const collisions = [];
|
|
262
|
+
const seen = new Set();
|
|
263
|
+
for (const breakpoint of exports.BREAKPOINTS) {
|
|
264
|
+
const items = (layouts?.[breakpoint] ?? []).filter((item) => item && [item.x, item.y, item.w, item.h].every((n) => typeof n === 'number'));
|
|
265
|
+
for (const pair of collidingPairs(items)) {
|
|
266
|
+
const key = [...pair].sort().join('\u0000');
|
|
267
|
+
if (seen.has(key))
|
|
268
|
+
continue;
|
|
269
|
+
seen.add(key);
|
|
270
|
+
collisions.push(pair);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return collisions;
|
|
274
|
+
}
|
|
70
275
|
//# sourceMappingURL=dashboard-layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-layout.js","sourceRoot":"","sources":["../../../src/server/tools/dashboard-layout.ts"],"names":[],"mappings":";AAAA,iGAAiG;AACjG,+FAA+F;AAC/F,mGAAmG;AACnG,4CAA4C;AAC5C,gGAAgG;AAChG,8BAA8B;AAC9B,iGAAiG;AACjG,+DAA+D
|
|
1
|
+
{"version":3,"file":"dashboard-layout.js","sourceRoot":"","sources":["../../../src/server/tools/dashboard-layout.ts"],"names":[],"mappings":";AAAA,iGAAiG;AACjG,+FAA+F;AAC/F,mGAAmG;AACnG,4CAA4C;AAC5C,gGAAgG;AAChG,8BAA8B;AAC9B,iGAAiG;AACjG,+DAA+D;;;AAoB/D,0CAgBC;AAiGD,8CAgBC;AAiDD,oDAmBC;AAoCD,kD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AAI,CAAC,QAAQ,CAAC,CAAC;YAC5C,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,SAAS;YAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACd,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboards.d.ts","sourceRoot":"","sources":["../../../src/server/tools/dashboards.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboards.d.ts","sourceRoot":"","sources":["../../../src/server/tools/dashboards.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AA2YxF,eAAO,MAAM,cAAc,EAAE,cAAc,EAwb1C,CAAC"}
|