@lightdash/common 2.595.0 → 2.597.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.
@@ -1,9 +1,10 @@
1
1
  import { z } from 'zod';
2
- export declare const MCP_TOOL_ITERATE_CUSTOM_CHART_TYPE_DESCRIPTION = "Tool: iterate_custom_chart_type\n\nStart a build that adds a version to an existing custom chart type from a follow-up brief. For a new chart type use create_custom_chart_type; for a data app use iterate_data_app.\n\n- Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data.\n- Poll get_data_app_build_status with appSlug set to the slug until it is \"ready\", \"error\" or \"cancelled\". If a version is already building, wait for it to end before calling again.\n- A chart type created over MCP is the caller's personal one, in no space, so a space-restricted agent-scoped session cannot read it. Omit agentUuid here and in get_data_app_build_status.\n";
2
+ export declare const MCP_TOOL_ITERATE_CUSTOM_CHART_TYPE_DESCRIPTION = "Tool: iterate_custom_chart_type\n\nStart a build that adds a version to an existing custom chart type from a follow-up brief. For a new chart type use create_custom_chart_type; for a data app use iterate_data_app.\n\n- Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data. Pass themeSlug only to switch the theme.\n- Poll get_data_app_build_status with appSlug set to the slug until it is \"ready\", \"error\" or \"cancelled\". If a version is already building, wait for it to end before calling again.\n- A chart type created over MCP is the caller's personal one, in no space, so a space-restricted agent-scoped session cannot read it. Omit agentUuid here and in get_data_app_build_status.\n";
3
3
  export declare const mcpIterateCustomChartTypeArgsSchema: z.ZodObject<{
4
4
  slug: z.ZodString;
5
5
  prompt: z.ZodString;
6
6
  queryUuid: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
7
+ themeSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
7
8
  }, z.core.$strip>;
8
9
  export type McpIterateCustomChartTypeArgs = z.infer<typeof mcpIterateCustomChartTypeArgsSchema>;
9
10
  //# sourceMappingURL=toolIterateCustomChartTypeArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolIterateCustomChartTypeArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,8CAA8C,szBAO1D,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;iBAmB9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC"}
1
+ {"version":3,"file":"toolIterateCustomChartTypeArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,8CAA8C,+1BAO1D,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;iBA0B9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC"}
@@ -4,7 +4,7 @@ export const MCP_TOOL_ITERATE_CUSTOM_CHART_TYPE_DESCRIPTION = `Tool: iterate_cus
4
4
 
5
5
  Start a build that adds a version to an existing custom chart type from a follow-up brief. For a new chart type use create_custom_chart_type; for a data app use iterate_data_app.
6
6
 
7
- - Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data.
7
+ - Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data. Pass themeSlug only to switch the theme.
8
8
  - Poll get_data_app_build_status with appSlug set to the slug until it is "ready", "error" or "cancelled". If a version is already building, wait for it to end before calling again.
9
9
  ${MCP_CUSTOM_CHART_TYPE_AGENT_SCOPE_GUIDANCE}
10
10
  `;
@@ -21,5 +21,10 @@ export const mcpIterateCustomChartTypeArgsSchema = z.object({
21
21
  .nullish()
22
22
  .default(null)
23
23
  .describe('Optional uuid of a completed run_metric_query whose first rows are shared with the build as sample data. It does not bind the chart type to that query.'),
24
+ themeSlug: z
25
+ .string()
26
+ .nullish()
27
+ .default(null)
28
+ .describe('Organization theme to rebuild the chart type with: its slug, from list_data_app_themes. Omit it to keep the current theme. An unknown slug returns an error and starts no build.'),
24
29
  });
25
30
  //# sourceMappingURL=toolIterateCustomChartTypeArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolIterateCustomChartTypeArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0CAA0C,EAAE,MAAM,iCAAiC,CAAC;AAE7F,MAAM,CAAC,MAAM,8CAA8C,GAAG;;;;;;EAM5D,0CAA0C;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,CAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACL,mHAAmH,CACtH;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,oMAAoM,CACvM;IACL,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,IAAI,EAAE;SACN,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,yJAAyJ,CAC5J;CACR,CAAC,CAAC"}
1
+ {"version":3,"file":"toolIterateCustomChartTypeArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0CAA0C,EAAE,MAAM,iCAAiC,CAAC;AAE7F,MAAM,CAAC,MAAM,8CAA8C,GAAG;;;;;;EAM5D,0CAA0C;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,CAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACL,mHAAmH,CACtH;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,oMAAoM,CACvM;IACL,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,IAAI,EAAE;SACN,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,yJAAyJ,CAC5J;IACL,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,kLAAkL,CACrL;CACR,CAAC,CAAC"}
@@ -2227,7 +2227,7 @@
2227
2227
  "openWorldHint": false,
2228
2228
  "readOnlyHint": false
2229
2229
  },
2230
- "description": "Tool: iterate_custom_chart_type\n\nStart a build that adds a version to an existing custom chart type from a follow-up brief. For a new chart type use create_custom_chart_type; for a data app use iterate_data_app.\n\n- Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data.\n- Poll get_data_app_build_status with appSlug set to the slug until it is \"ready\", \"error\" or \"cancelled\". If a version is already building, wait for it to end before calling again.\n- A chart type created over MCP is the caller's personal one, in no space, so a space-restricted agent-scoped session cannot read it. Omit agentUuid here and in get_data_app_build_status.\n",
2230
+ "description": "Tool: iterate_custom_chart_type\n\nStart a build that adds a version to an existing custom chart type from a follow-up brief. For a new chart type use create_custom_chart_type; for a data app use iterate_data_app.\n\n- Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data. Pass themeSlug only to switch the theme.\n- Poll get_data_app_build_status with appSlug set to the slug until it is \"ready\", \"error\" or \"cancelled\". If a version is already building, wait for it to end before calling again.\n- A chart type created over MCP is the caller's personal one, in no space, so a space-restricted agent-scoped session cannot read it. Omit agentUuid here and in get_data_app_build_status.\n",
2231
2231
  "inputSchema": {
2232
2232
  "$schema": "http://json-schema.org/draft-07/schema#",
2233
2233
  "properties": {
@@ -2252,6 +2252,18 @@
2252
2252
  "slug": {
2253
2253
  "description": "Slug of the custom chart type to change, from an earlier create_custom_chart_type result or its Chart Studio URL.",
2254
2254
  "type": "string"
2255
+ },
2256
+ "themeSlug": {
2257
+ "anyOf": [
2258
+ {
2259
+ "type": "string"
2260
+ },
2261
+ {
2262
+ "type": "null"
2263
+ }
2264
+ ],
2265
+ "default": null,
2266
+ "description": "Organization theme to rebuild the chart type with: its slug, from list_data_app_themes. Omit it to keep the current theme. An unknown slug returns an error and starts no build."
2255
2267
  }
2256
2268
  },
2257
2269
  "required": ["slug", "prompt"],