@sisense/sdk-ai-core 0.13.0 → 0.15.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/engines/build-chart/build-chart-engine.d.ts +1 -11
- package/dist/engines/build-chart/build-chart-engine.d.ts.map +1 -1
- package/dist/engines/build-chart/create-chart/assemble-chart-widget.d.ts +7 -2
- package/dist/engines/build-chart/create-chart/assemble-chart-widget.d.ts.map +1 -1
- package/dist/engines/build-chart/create-chart/create-chart.d.ts.map +1 -1
- package/dist/engines/build-chart/create-chart/rebind-chart-to-query.d.ts +11 -0
- package/dist/engines/build-chart/create-chart/rebind-chart-to-query.d.ts.map +1 -0
- package/dist/engines/build-chart/shared/chart-column-utils.d.ts +7 -0
- package/dist/engines/build-chart/shared/chart-column-utils.d.ts.map +1 -0
- package/dist/engines/build-chart/shared/finalize-chart-widget-save.d.ts +8 -0
- package/dist/engines/build-chart/shared/finalize-chart-widget-save.d.ts.map +1 -0
- package/dist/engines/build-chart/shared/normalize-cartesian-axes-mapping.d.ts +8 -0
- package/dist/engines/build-chart/shared/normalize-cartesian-axes-mapping.d.ts.map +1 -0
- package/dist/engines/build-chart/shared/sync-chart-state-measure-flags.d.ts +22 -0
- package/dist/engines/build-chart/shared/sync-chart-state-measure-flags.d.ts.map +1 -0
- package/dist/engines/build-chart/types.d.ts +147 -4
- package/dist/engines/build-chart/types.d.ts.map +1 -1
- package/dist/engines/build-chart/update-chart/update-chart-query.d.ts.map +1 -1
- package/dist/engines/build-csv-model/build-csv-model-engine.d.ts.map +1 -1
- package/dist/engines/build-csv-model/rest-build.d.ts +26 -0
- package/dist/engines/build-csv-model/rest-build.d.ts.map +1 -1
- package/dist/engines/build-csv-model/types.d.ts +1 -1
- package/dist/engines/build-csv-model/types.d.ts.map +1 -1
- package/dist/engines/build-dashboard/build-dashboard-engine.d.ts +1 -9
- package/dist/engines/build-dashboard/build-dashboard-engine.d.ts.map +1 -1
- package/dist/engines/build-dashboard/index.d.ts +1 -1
- package/dist/engines/build-dashboard/index.d.ts.map +1 -1
- package/dist/engines/build-dashboard/types.d.ts +43 -20
- package/dist/engines/build-dashboard/types.d.ts.map +1 -1
- package/dist/engines/build-data-model/types.d.ts +3 -3
- package/dist/engines/get-data-source-fields/get-data-source-fields-engine.d.ts.map +1 -1
- package/dist/engines/get-data-source-fields/types.d.ts +2 -1
- package/dist/engines/get-data-source-fields/types.d.ts.map +1 -1
- package/dist/engines/manage-perspectives/manage-perspectives-engine.d.ts.map +1 -1
- package/dist/engines/manage-perspectives/types.d.ts +19 -5
- package/dist/engines/manage-perspectives/types.d.ts.map +1 -1
- package/dist/index.js +14165 -13528
- package/dist/index.js.map +1 -1
- package/dist/services/dashboards/dashboards-service.d.ts.map +1 -1
- package/dist/utils/zod-utils.d.ts +14 -0
- package/dist/utils/zod-utils.d.ts.map +1 -1
- package/package.json +2 -3
- package/dist/engines/build-dashboard/create-chart-widget.d.ts +0 -5
- package/dist/engines/build-dashboard/create-chart-widget.d.ts.map +0 -1
- package/dist/engines/build-dashboard/update-chart-widget.d.ts +0 -5
- package/dist/engines/build-dashboard/update-chart-widget.d.ts.map +0 -1
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import { ChartSummary, BuildChartContext, buildChartSchema
|
|
1
|
+
import { ChartSummary, BuildChartContext, buildChartSchema } from './types';
|
|
2
2
|
import { default as z } from 'zod/v4';
|
|
3
|
-
/**
|
|
4
|
-
* Build contextual system prompt for build chart
|
|
5
|
-
*/
|
|
6
|
-
export declare function buildContextualSystemPrompt(chartsForContext: ChartContextPromptEntry[], priorChartId?: string, outerQueryId?: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Standalone build chart engine - completely decoupled from any UI or store
|
|
9
|
-
* @param params - The parameters for the build chart
|
|
10
|
-
* @param context - All external dependencies injected
|
|
11
|
-
* @returns The chart summary
|
|
12
|
-
*/
|
|
13
3
|
export declare function buildChartEngine(params: z.infer<typeof buildChartSchema>, context: BuildChartContext): Promise<ChartSummary>;
|
|
14
4
|
//# sourceMappingURL=build-chart-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-chart-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-chart/build-chart-engine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-chart-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-chart/build-chart-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EAEZ,iBAAiB,EAEjB,gBAAgB,EAEhB,MAAM,SAAS,CAAC;AAkBjB,OAAO,CAAC,MAAM,QAAQ,CAAC;AAqLvB,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,EACxC,OAAO,EAAE,iBAAiB,GACxB,OAAO,CAAC,YAAY,CAAC,CAuBvB"}
|
|
@@ -10,17 +10,22 @@ export type AssembleChartWidgetParams = {
|
|
|
10
10
|
columnsJSON: ColumnJSON[];
|
|
11
11
|
title?: string;
|
|
12
12
|
chartTitle: string;
|
|
13
|
+
/** When rebinding, preserve the prior widget entity id. */
|
|
14
|
+
widgetId?: string;
|
|
15
|
+
artifactId?: string;
|
|
13
16
|
};
|
|
14
|
-
export declare const assembleChartWidget: ({ nlqResult, chartType, axesMapping, columnsJSON, title, chartTitle, }: AssembleChartWidgetParams) => ExtendedChartWidgetProps;
|
|
17
|
+
export declare const assembleChartWidget: ({ nlqResult, chartType, axesMapping, columnsJSON, title, chartTitle, widgetId, artifactId, }: AssembleChartWidgetParams) => ExtendedChartWidgetProps;
|
|
15
18
|
/**
|
|
16
19
|
* Assemble a chart widget reusing already-resolved DataOptionsJSON (skips generateChartRecommendations).
|
|
17
20
|
* Returns null when translateChartFromJSON fails, allowing the caller to fall back gracefully.
|
|
18
21
|
*/
|
|
19
|
-
export declare const assembleChartWidgetFromDataOptions: ({ nlqResult, chartType, dataOptions, title, chartTitle, }: {
|
|
22
|
+
export declare const assembleChartWidgetFromDataOptions: ({ nlqResult, chartType, dataOptions, title, chartTitle, widgetId, artifactId, }: {
|
|
20
23
|
nlqResult: QueryExecutionResult;
|
|
21
24
|
chartType: string;
|
|
22
25
|
dataOptions: DataOptionsJSON;
|
|
23
26
|
title?: string;
|
|
24
27
|
chartTitle: string;
|
|
28
|
+
widgetId?: string;
|
|
29
|
+
artifactId?: string;
|
|
25
30
|
}) => ExtendedChartWidgetProps | null;
|
|
26
31
|
//# sourceMappingURL=assemble-chart-widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assemble-chart-widget.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/create-chart/assemble-chart-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAEN,eAAe,EAGf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMvE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIvE,MAAM,MAAM,yBAAyB,GAAG;IACvC,SAAS,EAAE,oBAAoB,CAAC;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC/C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"assemble-chart-widget.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/create-chart/assemble-chart-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MA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BAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGhE,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,eAAO,MAAM,WAAW,GACvB,+DAMG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EACpC,SAAS,iBAAiB;;;;
|
|
1
|
+
{"version":3,"file":"create-chart.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/create-chart/create-chart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGhE,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,eAAO,MAAM,WAAW,GACvB,+DAMG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EACpC,SAAS,iBAAiB;;;;EA8C1B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuildChartContext } from '../types';
|
|
2
|
+
export type RebindChartToQueryParams = {
|
|
3
|
+
priorChartId: string;
|
|
4
|
+
queryId: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const rebindChartToQuery: ({ priorChartId, queryId }: RebindChartToQueryParams, context: BuildChartContext) => Promise<{
|
|
7
|
+
message: string;
|
|
8
|
+
chartState: import('../../..').ChartState | undefined;
|
|
9
|
+
dataset: import('../../..').Dataset | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=rebind-chart-to-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rebind-chart-to-query.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/create-chart/rebind-chart-to-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAA4B,MAAM,UAAU,CAAC;AAiB5E,MAAM,MAAM,wBAAwB,GAAG;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AA6BF,eAAO,MAAM,kBAAkB,GAC9B,2BAA2B,wBAAwB,EACnD,SAAS,iBAAiB;;;;EAyG1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ColumnJSON } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when the column set (dimensions + measures) is identical between
|
|
4
|
+
* new and prior queryState — the only change is in filters/highlights.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isFilterOnlyChange(newCols: ColumnJSON[], priorCols: ColumnJSON[]): boolean;
|
|
7
|
+
//# sourceMappingURL=chart-column-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-column-utils.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/shared/chart-column-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,UAAU,EAAE,EACrB,SAAS,EAAE,UAAU,EAAE,GACrB,OAAO,CAYT"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtendedChartWidgetProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Serializes chartState for tool output while preserving live widget props.
|
|
4
|
+
* translateChartToJSON can mutate dataOptions in place and drop presentation
|
|
5
|
+
* flags such as showOnRightAxis — especially after y2Axis is enabled.
|
|
6
|
+
*/
|
|
7
|
+
export declare function finalizeChartWidgetSave(chartWidgetProps: ExtendedChartWidgetProps): void;
|
|
8
|
+
//# sourceMappingURL=finalize-chart-widget-save.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalize-chart-widget-save.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/shared/finalize-chart-widget-save.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AA6CtE;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,gBAAgB,EAAE,wBAAwB,GACxC,IAAI,CAoCN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { axesMappingSchema, ColumnJSON } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* For cartesian charts, moves measure column indices mistakenly placed in breakBy
|
|
5
|
+
* into value so translateChartFromJSON accepts the mapping.
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeCartesianAxesMapping(axesMapping: z.infer<typeof axesMappingSchema>, columnsJSON: ColumnJSON[]): z.infer<typeof axesMappingSchema>;
|
|
8
|
+
//# sourceMappingURL=normalize-cartesian-axes-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-cartesian-axes-mapping.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/shared/normalize-cartesian-axes-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAwB9D;;;GAGG;AACH,wBAAgB,6BAA6B,CAC5C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC9C,WAAW,EAAE,UAAU,EAAE,GACvB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CA4BnC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChartDataOptions, StyledMeasureColumn } from '@sisense/sdk-ui';
|
|
2
|
+
import { BaseChartSummary } from '../types';
|
|
3
|
+
export type MeasurePresentationFlags = {
|
|
4
|
+
showOnRightAxis?: boolean;
|
|
5
|
+
color?: StyledMeasureColumn['color'];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Snapshots per-measure presentation flags before translateChartToJSON, which
|
|
9
|
+
* can mutate dataOptions in place and strip showOnRightAxis.
|
|
10
|
+
*/
|
|
11
|
+
export declare function snapshotCartesianMeasureFlags(dataOptions: ChartDataOptions | undefined): Map<string, MeasurePresentationFlags>;
|
|
12
|
+
/**
|
|
13
|
+
* Re-applies presentation flags onto live dataOptions after translateChartToJSON
|
|
14
|
+
* without replacing CSDK class instances (required for CustomSuperJSON).
|
|
15
|
+
*/
|
|
16
|
+
export declare function restoreCartesianMeasureFlags(dataOptions: ChartDataOptions | undefined, flags: Map<string, MeasurePresentationFlags>): void;
|
|
17
|
+
/**
|
|
18
|
+
* Copies per-measure presentation flags from live dataOptions onto chartState
|
|
19
|
+
* after translateChartToJSON, which can drop showOnRightAxis from the summary.
|
|
20
|
+
*/
|
|
21
|
+
export declare function syncChartStateMeasureFlagsFromDataOptions(chartState: BaseChartSummary, dataOptions: ChartDataOptions | undefined): BaseChartSummary;
|
|
22
|
+
//# sourceMappingURL=sync-chart-state-measure-flags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-chart-state-measure-flags.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/shared/sync-chart-state-measure-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA2D5C,MAAM,MAAM,wBAAwB,GAAG;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,6BAA6B,CAC5C,WAAW,EAAE,gBAAgB,GAAG,SAAS,GACvC,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAqBvC;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,WAAW,EAAE,gBAAgB,GAAG,SAAS,EACzC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAC1C,IAAI,CAuBN;AAoBD;;;GAGG;AACH,wBAAgB,yCAAyC,CACxD,UAAU,EAAE,gBAAgB,EAC5B,WAAW,EAAE,gBAAgB,GAAG,SAAS,GACvC,gBAAgB,CA0DlB"}
|
|
@@ -261,12 +261,155 @@ export declare const chartRecommendationsSchema: z.ZodObject<{
|
|
|
261
261
|
* Canonical tool description for buildChart — reusable by any host (sdk-assistant, MCP server, custom integrations).
|
|
262
262
|
* Hosts may append host-specific notes but should not duplicate or contradict this text.
|
|
263
263
|
*/
|
|
264
|
-
export declare const buildChartToolDescription = "Creates or revises a chart
|
|
264
|
+
export declare const buildChartToolDescription = "Creates or revises a chart via a required structured `action` param. For new data, call buildQuery first. Load the buildChart skill via loadSkill before calling this tool \u2014 the skill documents all action types and when to use each. Hosts may append UI notes (e.g. showCanvas).";
|
|
265
|
+
/** JSON-Schema-safe union; run {@link parseActionWithGuards} at execution time. */
|
|
266
|
+
export declare const buildChartActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"create">;
|
|
268
|
+
queryId: z.ZodString;
|
|
269
|
+
chartType: z.ZodEnum<{
|
|
270
|
+
area: "area";
|
|
271
|
+
table: "table";
|
|
272
|
+
indicator: "indicator";
|
|
273
|
+
column: "column";
|
|
274
|
+
line: "line";
|
|
275
|
+
pie: "pie";
|
|
276
|
+
bar: "bar";
|
|
277
|
+
polar: "polar";
|
|
278
|
+
funnel: "funnel";
|
|
279
|
+
treemap: "treemap";
|
|
280
|
+
sunburst: "sunburst";
|
|
281
|
+
scatter: "scatter";
|
|
282
|
+
areamap: "areamap";
|
|
283
|
+
boxplot: "boxplot";
|
|
284
|
+
scattermap: "scattermap";
|
|
285
|
+
arearange: "arearange";
|
|
286
|
+
}>;
|
|
287
|
+
title: z.ZodString;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
type: z.ZodLiteral<"update-title">;
|
|
290
|
+
priorChartId: z.ZodString;
|
|
291
|
+
title: z.ZodString;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
type: z.ZodLiteral<"update-type">;
|
|
294
|
+
priorChartId: z.ZodString;
|
|
295
|
+
chartType: z.ZodEnum<{
|
|
296
|
+
area: "area";
|
|
297
|
+
table: "table";
|
|
298
|
+
indicator: "indicator";
|
|
299
|
+
column: "column";
|
|
300
|
+
line: "line";
|
|
301
|
+
pie: "pie";
|
|
302
|
+
bar: "bar";
|
|
303
|
+
polar: "polar";
|
|
304
|
+
funnel: "funnel";
|
|
305
|
+
treemap: "treemap";
|
|
306
|
+
sunburst: "sunburst";
|
|
307
|
+
scatter: "scatter";
|
|
308
|
+
areamap: "areamap";
|
|
309
|
+
boxplot: "boxplot";
|
|
310
|
+
scattermap: "scattermap";
|
|
311
|
+
arearange: "arearange";
|
|
312
|
+
}>;
|
|
313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
+
type: z.ZodLiteral<"rebind-query">;
|
|
315
|
+
priorChartId: z.ZodString;
|
|
316
|
+
queryId: z.ZodString;
|
|
317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
318
|
+
type: z.ZodLiteral<"update-sorting">;
|
|
319
|
+
priorChartId: z.ZodString;
|
|
320
|
+
userPrompt: z.ZodString;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
type: z.ZodLiteral<"update-trend-forecast">;
|
|
323
|
+
priorChartId: z.ZodString;
|
|
324
|
+
userPrompt: z.ZodString;
|
|
325
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
326
|
+
type: z.ZodLiteral<"update-style">;
|
|
327
|
+
priorChartId: z.ZodString;
|
|
328
|
+
userPrompt: z.ZodString;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"update-data-options">;
|
|
331
|
+
priorChartId: z.ZodString;
|
|
332
|
+
userPrompt: z.ZodString;
|
|
333
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
334
|
+
type: z.ZodLiteral<"update-measure-chart-types">;
|
|
335
|
+
priorChartId: z.ZodString;
|
|
336
|
+
userPrompt: z.ZodString;
|
|
337
|
+
}, z.core.$strip>]>;
|
|
338
|
+
export type BuildChartAction = z.infer<typeof buildChartActionSchema>;
|
|
265
339
|
export declare const buildChartSchema: z.ZodObject<{
|
|
266
340
|
dataSourceTitle: z.ZodString;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
341
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
|
+
type: z.ZodLiteral<"create">;
|
|
343
|
+
queryId: z.ZodString;
|
|
344
|
+
chartType: z.ZodEnum<{
|
|
345
|
+
area: "area";
|
|
346
|
+
table: "table";
|
|
347
|
+
indicator: "indicator";
|
|
348
|
+
column: "column";
|
|
349
|
+
line: "line";
|
|
350
|
+
pie: "pie";
|
|
351
|
+
bar: "bar";
|
|
352
|
+
polar: "polar";
|
|
353
|
+
funnel: "funnel";
|
|
354
|
+
treemap: "treemap";
|
|
355
|
+
sunburst: "sunburst";
|
|
356
|
+
scatter: "scatter";
|
|
357
|
+
areamap: "areamap";
|
|
358
|
+
boxplot: "boxplot";
|
|
359
|
+
scattermap: "scattermap";
|
|
360
|
+
arearange: "arearange";
|
|
361
|
+
}>;
|
|
362
|
+
title: z.ZodString;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
type: z.ZodLiteral<"update-title">;
|
|
365
|
+
priorChartId: z.ZodString;
|
|
366
|
+
title: z.ZodString;
|
|
367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
368
|
+
type: z.ZodLiteral<"update-type">;
|
|
369
|
+
priorChartId: z.ZodString;
|
|
370
|
+
chartType: z.ZodEnum<{
|
|
371
|
+
area: "area";
|
|
372
|
+
table: "table";
|
|
373
|
+
indicator: "indicator";
|
|
374
|
+
column: "column";
|
|
375
|
+
line: "line";
|
|
376
|
+
pie: "pie";
|
|
377
|
+
bar: "bar";
|
|
378
|
+
polar: "polar";
|
|
379
|
+
funnel: "funnel";
|
|
380
|
+
treemap: "treemap";
|
|
381
|
+
sunburst: "sunburst";
|
|
382
|
+
scatter: "scatter";
|
|
383
|
+
areamap: "areamap";
|
|
384
|
+
boxplot: "boxplot";
|
|
385
|
+
scattermap: "scattermap";
|
|
386
|
+
arearange: "arearange";
|
|
387
|
+
}>;
|
|
388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"rebind-query">;
|
|
390
|
+
priorChartId: z.ZodString;
|
|
391
|
+
queryId: z.ZodString;
|
|
392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
393
|
+
type: z.ZodLiteral<"update-sorting">;
|
|
394
|
+
priorChartId: z.ZodString;
|
|
395
|
+
userPrompt: z.ZodString;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
+
type: z.ZodLiteral<"update-trend-forecast">;
|
|
398
|
+
priorChartId: z.ZodString;
|
|
399
|
+
userPrompt: z.ZodString;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"update-style">;
|
|
402
|
+
priorChartId: z.ZodString;
|
|
403
|
+
userPrompt: z.ZodString;
|
|
404
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
405
|
+
type: z.ZodLiteral<"update-data-options">;
|
|
406
|
+
priorChartId: z.ZodString;
|
|
407
|
+
userPrompt: z.ZodString;
|
|
408
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
409
|
+
type: z.ZodLiteral<"update-measure-chart-types">;
|
|
410
|
+
priorChartId: z.ZodString;
|
|
411
|
+
userPrompt: z.ZodString;
|
|
412
|
+
}, z.core.$strip>]>;
|
|
270
413
|
}, z.core.$strip>;
|
|
271
414
|
export declare const createChartSchema: z.ZodObject<{
|
|
272
415
|
queryPrompt: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-chart/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAC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GAAG,IAAI,CAAC;IACxD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,6FAA6F;IAC7F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chart-query.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"update-chart-query.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAe3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,gBAAgB,GAC5B,6BAA6B,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EACnE,SAAS,iBAAiB;;;;EA+F1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-csv-model-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/build-csv-model-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"build-csv-model-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/build-csv-model-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAgB3B,OAAO,EACN,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,MAAM,SAAS,CAAC;AAiCjB;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC7C,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EACjD,OAAO,EAAE,qBAAqB,EAC9B,UAAU,CAAC,EAAE,CACZ,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,6BAA6B,KACpC,IAAI,GACP,OAAO,CAAC,mBAAmB,CAAC,CAgT9B"}
|
|
@@ -2,6 +2,25 @@ import { HttpClient } from '@sisense/sdk-rest-client';
|
|
|
2
2
|
export declare function triggerFullBuild(datamodelOid: string, httpClient?: HttpClient): Promise<{
|
|
3
3
|
buildOid: string;
|
|
4
4
|
}>;
|
|
5
|
+
export interface WaitForSchemaResult {
|
|
6
|
+
ready: boolean;
|
|
7
|
+
tablesFound: number;
|
|
8
|
+
relationsFound: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Block until the model's schema reflects all expected tables and relations (or
|
|
12
|
+
* the timeout elapses). Returns `ready: false` on timeout so the caller can
|
|
13
|
+
* still attempt the build rather than hang forever.
|
|
14
|
+
*/
|
|
15
|
+
export declare function waitForSchemaPersisted(datamodelOid: string, expected: {
|
|
16
|
+
tableOids: string[];
|
|
17
|
+
relationOids: string[];
|
|
18
|
+
}, options?: {
|
|
19
|
+
intervalMs?: number;
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
httpClient?: HttpClient;
|
|
22
|
+
onUpdate?: (detail: string) => void;
|
|
23
|
+
}): Promise<WaitForSchemaResult>;
|
|
5
24
|
export interface PollBuildResult {
|
|
6
25
|
status: 'done' | 'failed' | 'timeout';
|
|
7
26
|
durationMs: number;
|
|
@@ -9,6 +28,13 @@ export interface PollBuildResult {
|
|
|
9
28
|
export declare function pollBuild(buildOid: string, options?: {
|
|
10
29
|
intervalMs?: number;
|
|
11
30
|
timeoutMs?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Delay before the FIRST status check. POST /builds returns an oid before
|
|
33
|
+
* the build row is queryable — GET /builds/{oid} 400s with "BE#983754 Data
|
|
34
|
+
* source not found for build id" for the first few seconds. Wait this long
|
|
35
|
+
* before polling so the first request lands after the row exists.
|
|
36
|
+
*/
|
|
37
|
+
initialDelayMs?: number;
|
|
12
38
|
onUpdate?: (status: string) => void;
|
|
13
39
|
httpClient?: HttpClient;
|
|
14
40
|
}): Promise<PollBuildResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-build.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/rest-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAuBtD,wBAAsB,gBAAgB,CACrC,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,GACrB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAwB/B;
|
|
1
|
+
{"version":3,"file":"rest-build.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/rest-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAuBtD,wBAAsB,gBAAgB,CACrC,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,GACrB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAwB/B;AAmDD,MAAM,WAAW,mBAAmB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC3C,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE;IAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,EACzD,OAAO,GAAE;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,GACJ,OAAO,CAAC,mBAAmB,CAAC,CA8D9B;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,SAAS,CAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;CACnB,GACJ,OAAO,CAAC,eAAe,CAAC,CAkD1B"}
|
|
@@ -4,7 +4,7 @@ import { HttpClient } from '@sisense/sdk-rest-client';
|
|
|
4
4
|
* Canonical tool description for uploadFiles — reusable by any host (sdk-assistant, MCP server, custom integrations).
|
|
5
5
|
* Hosts may append host-specific notes but should not duplicate or contradict this text.
|
|
6
6
|
*/
|
|
7
|
-
export declare const uploadFilesToolDescription = "Opens the host's file-upload flow so the user can provide one or more CSV files. When the host uses a blocking UI, this should be the ONLY tool call in that turn until the user completes the upload \u2014 do not chain other tools in parallel.\n\nUse when the user wants to upload, ingest, import, or onboard raw files into a new Elasticube model.\n\nOnboarding pace: start this step alone; after files are uploaded, agree on a model title with the user in chat before calling buildDataModelFromUploads \u2014 do not rush multiple structural steps in one assistant turn when the workflow expects the user to confirm between steps.\n\nAfter this tool returns successfully, propose a model title derived from the file names and ask the user to confirm or change it before calling buildDataModelFromUploads.\n\nReply format (REQUIRED \u2014 output exactly these four lines, verbatim aside from substituting the proposed name; no extra preamble, no closing sentence, no paraphrasing, no translation, no icons, no headings, no blockquotes, no code fences, no bullets, no extra blank lines):\n\nYour files uploaded successfully\n**Let's set up your data model**\nSuggested name: **<Proposed Model Name>**\nThis name is permanent. If it's already taken, a number will be added at the end automatically.\n\nRules:\n- Each of the first three lines MUST end with exactly two trailing space characters before the newline (CommonMark hard line break). The four lines must therefore render stacked tightly, one per line, with no paragraph gaps. The last line has no trailing spaces.\n- Bold (**\u2026**) appears in exactly two places: the entire second line, and the model-name token on the third line. Nowhere else.\n- All four lines render at the SAME size \u2014 never promote any line to a heading.\n- Substitute <Proposed Model Name> with the title derived from the file names; keep the surrounding ** so it renders bold.\nWait for the user to confirm or change the name before calling buildDataModelFromUploads.";
|
|
7
|
+
export declare const uploadFilesToolDescription = "Opens the host's file-upload flow so the user can provide one or more CSV files. When the host uses a blocking UI, this should be the ONLY tool call in that turn until the user completes the upload \u2014 do not chain other tools in parallel.\n\nUse when the user wants to upload, ingest, import, or onboard raw files into a new Elasticube model.\n\nCALL THIS TOOL IMMEDIATELY, as the FIRST action, the moment the user expresses intent to upload / import / onboard data files or build a model from files (e.g. \"I want to upload data files and build a model\") \u2014 even though no file is attached yet. THIS TOOL IS the upload surface: invoking it opens the file picker. Do NOT reply with text asking the user to attach or upload files via the chat input or paperclip \u2014 that is the wrong response and leaves the user with no upload UI. Open the tool; don't describe it.\n\nOnboarding pace: start this step alone; after files are uploaded, agree on a model title with the user in chat before calling buildDataModelFromUploads \u2014 do not rush multiple structural steps in one assistant turn when the workflow expects the user to confirm between steps.\n\nAfter this tool returns successfully, propose a model title derived from the file names and ask the user to confirm or change it before calling buildDataModelFromUploads.\n\nReply format (REQUIRED \u2014 output exactly these four lines, verbatim aside from substituting the proposed name; no extra preamble, no closing sentence, no paraphrasing, no translation, no icons, no headings, no blockquotes, no code fences, no bullets, no extra blank lines):\n\nYour files uploaded successfully\n**Let's set up your data model**\nSuggested name: **<Proposed Model Name>**\nThis name is permanent. If it's already taken, a number will be added at the end automatically.\n\nRules:\n- Each of the first three lines MUST end with exactly two trailing space characters before the newline (CommonMark hard line break). The four lines must therefore render stacked tightly, one per line, with no paragraph gaps. The last line has no trailing spaces.\n- Bold (**\u2026**) appears in exactly two places: the entire second line, and the model-name token on the third line. Nowhere else.\n- All four lines render at the SAME size \u2014 never promote any line to a heading.\n- Substitute <Proposed Model Name> with the title derived from the file names; keep the surrounding ** so it renders bold.\nWait for the user to confirm or change the name before calling buildDataModelFromUploads.";
|
|
8
8
|
/**
|
|
9
9
|
* Canonical tool description for buildDataModelFromUploads — reusable by any host (sdk-assistant, MCP server, custom integrations).
|
|
10
10
|
* Hosts may append host-specific notes but should not duplicate or contradict this text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,0+EAsBmD,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,wCAAwC,snCAQyK,CAAC;AAI/N,eAAO,MAAM,uBAAuB;;;;;iBAarB,CAAC;AAEhB,MAA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{ BuildDashboardContext, DashboardSummary, buildDashboardSchema } from './types';
|
|
3
2
|
import { default as z } from 'zod/v4';
|
|
4
|
-
export declare function buildContextualSystemPrompt(chartSummaries: ChartSummary[], chartListSummaries: ChartListSummary[], dashboardsForContext: DashboardContextPromptEntry[], priorDashboardId?: string): string;
|
|
5
|
-
/**
|
|
6
|
-
* Standalone build dashboard engine - completely decoupled from any UI or store
|
|
7
|
-
* @param params - The parameters for the build dashboard
|
|
8
|
-
* @param context - All external dependencies injected
|
|
9
|
-
* @returns The dashboard summary
|
|
10
|
-
*/
|
|
11
3
|
export declare function buildDashboardEngine(params: z.infer<typeof buildDashboardSchema>, context: BuildDashboardContext): Promise<DashboardSummary>;
|
|
12
4
|
//# sourceMappingURL=build-dashboard-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-dashboard-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-engine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-dashboard-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-engine.ts"],"names":[],"mappings":"AACA,OAAO,EACN,qBAAqB,EAErB,gBAAgB,EAGhB,oBAAoB,EACpB,MAAM,SAAS,CAAC;AAWjB,OAAO,CAAC,MAAM,QAAQ,CAAC;AAuIvB,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC5C,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAuB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC"}
|
|
@@ -52,14 +52,54 @@ export type DashboardContextPromptEntry = DashboardSummary | {
|
|
|
52
52
|
* Canonical tool description for buildDashboard — reusable by any host (sdk-assistant, MCP server, custom integrations).
|
|
53
53
|
* Hosts may append host-specific notes but should not duplicate or contradict this text.
|
|
54
54
|
*/
|
|
55
|
-
export declare const buildDashboardToolDescription = "Creates or updates a dashboard
|
|
55
|
+
export declare const buildDashboardToolDescription = "Creates or updates a dashboard via a required structured `action` param. Build charts with buildChart first, then pass chartIds where needed. Load the buildDashboard skill via loadSkill before calling this tool.";
|
|
56
|
+
/** JSON-Schema-safe union; run {@link parseActionWithGuards} at execution time. */
|
|
57
|
+
export declare const buildDashboardActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
+
type: z.ZodLiteral<"load-existing">;
|
|
59
|
+
dashboardTitle: z.ZodString;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"create">;
|
|
62
|
+
title: z.ZodString;
|
|
63
|
+
chartIds: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"add-charts">;
|
|
66
|
+
priorDashboardId: z.ZodString;
|
|
67
|
+
chartIds: z.ZodArray<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"update-title">;
|
|
70
|
+
priorDashboardId: z.ZodString;
|
|
71
|
+
title: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<"add-filters">;
|
|
74
|
+
priorDashboardId: z.ZodString;
|
|
75
|
+
filterDescription: z.ZodString;
|
|
76
|
+
}, z.core.$strip>]>;
|
|
77
|
+
export type BuildDashboardAction = z.infer<typeof buildDashboardActionSchema>;
|
|
56
78
|
/**
|
|
57
79
|
* Schema for the main buildDashboard smart tool
|
|
58
80
|
*/
|
|
59
81
|
export declare const buildDashboardSchema: z.ZodObject<{
|
|
60
82
|
dataSourceTitle: z.ZodString;
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<"load-existing">;
|
|
85
|
+
dashboardTitle: z.ZodString;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"create">;
|
|
88
|
+
title: z.ZodString;
|
|
89
|
+
chartIds: z.ZodArray<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"add-charts">;
|
|
92
|
+
priorDashboardId: z.ZodString;
|
|
93
|
+
chartIds: z.ZodArray<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"update-title">;
|
|
96
|
+
priorDashboardId: z.ZodString;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"add-filters">;
|
|
100
|
+
priorDashboardId: z.ZodString;
|
|
101
|
+
filterDescription: z.ZodString;
|
|
102
|
+
}, z.core.$strip>]>;
|
|
63
103
|
}, z.core.$strip>;
|
|
64
104
|
export type BuildDashboardParams = z.infer<typeof buildDashboardSchema>;
|
|
65
105
|
/**
|
|
@@ -93,23 +133,6 @@ export declare const addDashboardWidgetsSchema: z.ZodObject<{
|
|
|
93
133
|
widgetIdsToAdd: z.ZodArray<z.ZodString>;
|
|
94
134
|
}, z.core.$strip>;
|
|
95
135
|
export type AddDashboardWidgetsParams = z.infer<typeof addDashboardWidgetsSchema>;
|
|
96
|
-
/**
|
|
97
|
-
* Schema for createChartForDashboard tool
|
|
98
|
-
*/
|
|
99
|
-
export declare const createChartWidgetForDashboardSchema: z.ZodObject<{
|
|
100
|
-
dashboardId: z.ZodString;
|
|
101
|
-
userPrompt: z.ZodString;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
export type CreateChartWidgetForDashboardParams = z.infer<typeof createChartWidgetForDashboardSchema>;
|
|
104
|
-
/**
|
|
105
|
-
* Schema for updateChartWidgetForDashboard tool
|
|
106
|
-
*/
|
|
107
|
-
export declare const updateChartWidgetForDashboardSchema: z.ZodObject<{
|
|
108
|
-
dashboardId: z.ZodString;
|
|
109
|
-
widgetId: z.ZodString;
|
|
110
|
-
userPrompt: z.ZodString;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
export type UpdateChartWidgetForDashboardParams = z.infer<typeof updateChartWidgetForDashboardSchema>;
|
|
113
136
|
/**
|
|
114
137
|
* Schema for addDashboardFilters tool
|
|
115
138
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,iB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AE,sBAAsB,KAAK,IAAI,CAAC;IACjE;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,CAAC;IACvD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,aAAa,CAAC;CAC1B"}
|
|
@@ -21,8 +21,8 @@ export declare const dataModelDocumentSchema: z.ZodObject<{
|
|
|
21
21
|
isPrimaryKey: z.ZodBoolean;
|
|
22
22
|
isForeignKey: z.ZodBoolean;
|
|
23
23
|
type: z.ZodEnum<{
|
|
24
|
-
text: "text";
|
|
25
24
|
datetime: "datetime";
|
|
25
|
+
text: "text";
|
|
26
26
|
numeric: "numeric";
|
|
27
27
|
}>;
|
|
28
28
|
fakerType: z.ZodString;
|
|
@@ -51,8 +51,8 @@ export declare const dataModelJsonPatchSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
51
51
|
isPrimaryKey: z.ZodBoolean;
|
|
52
52
|
isForeignKey: z.ZodBoolean;
|
|
53
53
|
type: z.ZodEnum<{
|
|
54
|
-
text: "text";
|
|
55
54
|
datetime: "datetime";
|
|
55
|
+
text: "text";
|
|
56
56
|
numeric: "numeric";
|
|
57
57
|
}>;
|
|
58
58
|
fakerType: z.ZodString;
|
|
@@ -75,8 +75,8 @@ export declare const dataModelJsonPatchSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
75
75
|
isPrimaryKey: z.ZodBoolean;
|
|
76
76
|
isForeignKey: z.ZodBoolean;
|
|
77
77
|
type: z.ZodEnum<{
|
|
78
|
-
text: "text";
|
|
79
78
|
datetime: "datetime";
|
|
79
|
+
text: "text";
|
|
80
80
|
numeric: "numeric";
|
|
81
81
|
}>;
|
|
82
82
|
fakerType: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-data-source-fields-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/get-data-source-fields/get-data-source-fields-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EACN,eAAe,EAEf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEN,8BAA8B,EAC9B,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"get-data-source-fields-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/get-data-source-fields/get-data-source-fields-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EACN,eAAe,EAEf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEN,8BAA8B,EAC9B,MAAM,8CAA8C,CAAC;AAGtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,EACN,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,MAAM,SAAS,CAAC;AAGjB;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC9C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EACjD,OAAO,EAAE,0BAA0B,GACjC,OAAO,CAAC,sBAAsB,CAAC,CAsEjC;AAsDD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACzC,QAAQ,EAAE,eAAe,EAAE,GACzB,MAAM,CAuCR;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACzC,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,8BAA8B,EAAE,GAAG,eAAe,EAAE,EAC5D,QAAQ,CAAC,EAAE,eAAe,EAAE,GAC1B,MAAM,CA2BR"}
|
|
@@ -7,12 +7,13 @@ import { MeasureItemJSON } from '@sisense/sdk-ui/analytics-composer';
|
|
|
7
7
|
* Canonical tool description for getDataSourceFields — reusable by any host (sdk-assistant, MCP server, custom integrations).
|
|
8
8
|
* Hosts may append host-specific notes but should not duplicate or contradict this text.
|
|
9
9
|
*/
|
|
10
|
-
export declare const getDataSourceFieldsToolDescription = "
|
|
10
|
+
export declare const getDataSourceFieldsToolDescription = "Lists the fields of a data source \u2014 its tables, columns, and user-created formulas \u2014 in an interactive, searchable field browser. THIS is the tool to use whenever the user asks to \"list / show / see the fields, tables, or columns\" of a data source or data model. Pass the data source / model title from getDataSources or listDataModels.\n\nUse this for the FIELD/COLUMN/TABLE LIST. Use getModelSchema (or getPerspective) only for the visual model/perspective DIAGRAM (\"show me the model / perspective\", \"open the diagram\") \u2014 not for a plain field list. Do not answer a \"list the fields/columns/tables\" request as plain text; always call this tool so the field browser renders.\n\nPERSPECTIVES: a perspective is not its own data source. To list a perspective's fields, set `dataSourceTitle` to the perspective's PARENT model title and pass `perspectiveOid` \u2014 the parent model's fields are then filtered to exactly what the perspective exposes.";
|
|
11
11
|
/**
|
|
12
12
|
* Schema for getDataSourceFields engine parameters
|
|
13
13
|
*/
|
|
14
14
|
export declare const getDataSourceFieldsSchema: z.ZodObject<{
|
|
15
15
|
dataSourceTitle: z.ZodString;
|
|
16
|
+
perspectiveOid: z.ZodOptional<z.ZodString>;
|
|
16
17
|
}, z.core.$strip>;
|
|
17
18
|
/**
|
|
18
19
|
* Context interface for getDataSourceFieldsEngine
|