@lightdash/common 2.616.2 → 2.617.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.
Files changed (124) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +12 -12
  3. package/dist/cjs/ee/AiAgent/schemas/index.d.ts +2 -2
  4. package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
  5. package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
  6. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  7. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
  9. package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
  10. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
  11. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +21 -3
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +10 -0
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +23 -4
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +4 -1
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +9 -3
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts +85 -0
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts.map +1 -0
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js +72 -0
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js.map +1 -0
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +59 -59
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  28. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
  29. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  30. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js +1 -0
  31. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  32. package/dist/cjs/ee/AiAgent/utils.d.ts +25 -25
  33. package/dist/cjs/ee/externalConnections/aliasFromName.d.ts +4 -0
  34. package/dist/cjs/ee/externalConnections/aliasFromName.d.ts.map +1 -0
  35. package/dist/cjs/ee/externalConnections/aliasFromName.js +23 -0
  36. package/dist/cjs/ee/externalConnections/aliasFromName.js.map +1 -0
  37. package/dist/cjs/ee/index.d.ts +1 -0
  38. package/dist/cjs/ee/index.d.ts.map +1 -1
  39. package/dist/cjs/ee/index.js +1 -0
  40. package/dist/cjs/ee/index.js.map +1 -1
  41. package/dist/cjs/schemas/json/mcp-tools-1.0.json +139 -4
  42. package/dist/esm/.tsbuildinfo +1 -1
  43. package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +25 -25
  44. package/dist/esm/ee/AiAgent/schemas/index.d.ts +2 -2
  45. package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
  46. package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
  47. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  48. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
  50. package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +18 -0
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +10 -0
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +22 -3
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +4 -1
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
  61. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +10 -4
  62. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
  63. package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts +85 -0
  64. package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts.map +1 -0
  65. package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js +69 -0
  66. package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js.map +1 -0
  67. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +59 -59
  68. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  69. package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
  70. package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  71. package/dist/esm/ee/AiAgent/schemas/visualizations/index.js +1 -0
  72. package/dist/esm/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  73. package/dist/esm/ee/AiAgent/utils.d.ts +28 -28
  74. package/dist/esm/ee/externalConnections/aliasFromName.d.ts +4 -0
  75. package/dist/esm/ee/externalConnections/aliasFromName.d.ts.map +1 -0
  76. package/dist/esm/ee/externalConnections/aliasFromName.js +18 -0
  77. package/dist/esm/ee/externalConnections/aliasFromName.js.map +1 -0
  78. package/dist/esm/ee/index.d.ts +1 -0
  79. package/dist/esm/ee/index.d.ts.map +1 -1
  80. package/dist/esm/ee/index.js +1 -0
  81. package/dist/esm/ee/index.js.map +1 -1
  82. package/dist/esm/schemas/json/mcp-tools-1.0.json +139 -4
  83. package/dist/types/.tsbuildinfo +1 -1
  84. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +25 -25
  85. package/dist/types/ee/AiAgent/schemas/index.d.ts +2 -2
  86. package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
  87. package/dist/types/ee/AiAgent/schemas/index.js.map +1 -1
  88. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  89. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  90. package/dist/types/ee/AiAgent/schemas/tools/index.js +1 -0
  91. package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
  92. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
  93. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  94. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +18 -0
  95. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  96. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +10 -0
  97. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  98. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +22 -3
  99. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  100. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +4 -1
  101. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
  102. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +10 -4
  103. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
  104. package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts +85 -0
  105. package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts.map +1 -0
  106. package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js +69 -0
  107. package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js.map +1 -0
  108. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +59 -59
  109. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  110. package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
  111. package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  112. package/dist/types/ee/AiAgent/schemas/visualizations/index.js +1 -0
  113. package/dist/types/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  114. package/dist/types/ee/AiAgent/utils.d.ts +28 -28
  115. package/dist/types/ee/externalConnections/aliasFromName.d.ts +4 -0
  116. package/dist/types/ee/externalConnections/aliasFromName.d.ts.map +1 -0
  117. package/dist/types/ee/externalConnections/aliasFromName.js +18 -0
  118. package/dist/types/ee/externalConnections/aliasFromName.js.map +1 -0
  119. package/dist/types/ee/index.d.ts +1 -0
  120. package/dist/types/ee/index.d.ts.map +1 -1
  121. package/dist/types/ee/index.js +1 -0
  122. package/dist/types/ee/index.js.map +1 -1
  123. package/dist/types/schemas/json/mcp-tools-1.0.json +139 -4
  124. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExpiredGenerateDataAppBuildOutcome = exports.getGenerateDataAppBuildOutcome = exports.getDataAppBuilderPath = exports.isToolGenerateDataAppResult = exports.toolGenerateDataAppOutputSchema = exports.toolGenerateDataAppStructuredContentSchema = exports.toolGenerateDataAppArgsSchema = exports.mcpDataAppBuildStartedOutputSchema = exports.MCP_TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.MCP_DATA_APP_PLACEMENT_GUIDANCE = exports.MCP_DATA_APP_AGENT_SCOPE_GUIDANCE = exports.TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.DATA_APP_THEME_SLUG_DESCRIPTION = exports.DATA_APP_VIZ_LINE_FORMAT = exports.DATA_APP_BUILD_TEMPLATES = exports.AI_DATA_APP_BUILD_PENDING_GRACE_MS = exports.DATA_APP_BUILD_POLL_INTERVAL_MS = void 0;
3
+ exports.getExpiredGenerateDataAppBuildOutcome = exports.getGenerateDataAppBuildOutcome = exports.getDataAppBuilderPath = exports.isToolGenerateDataAppResult = exports.toolGenerateDataAppOutputSchema = exports.toolGenerateDataAppStructuredContentSchema = exports.toolGenerateDataAppArgsSchema = exports.externalConnectionSlugsInput = exports.mcpDataAppBuildStartedOutputSchema = exports.dataAppBuildWarningsSchema = exports.MCP_TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.MCP_DATA_APP_PLACEMENT_GUIDANCE = exports.MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE = exports.MCP_DATA_APP_AGENT_SCOPE_GUIDANCE = exports.TOOL_GENERATE_DATA_APP_DESCRIPTION = exports.DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE = exports.DATA_APP_THEME_SLUG_DESCRIPTION = exports.DATA_APP_VIZ_LINE_FORMAT = exports.DATA_APP_BUILD_TEMPLATES = exports.AI_DATA_APP_BUILD_PENDING_GRACE_MS = exports.DATA_APP_BUILD_POLL_INTERVAL_MS = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const types_1 = require("../../../apps/types");
6
6
  const outputMetadata_1 = require("../outputMetadata");
@@ -20,15 +20,20 @@ exports.DATA_APP_BUILD_TEMPLATES = [
20
20
  exports.DATA_APP_VIZ_LINE_FORMAT = '[viz title][explore; metrics; dimensions; filters; sort]';
21
21
  /** Shared by generateDataApp and iterateDataApp; the iterate tool adds its own theme-change caveat in its description. */
22
22
  exports.DATA_APP_THEME_SLUG_DESCRIPTION = 'Organization theme to build the app with: its slug, from the attached context ("Theme: <name> (slug: <slug>)"). Omit when no theme is given — the organization default applies. An unknown slug returns an error listing the valid slugs and starts no build.';
23
+ /** Shared by the agent generate and iterate tools. */
24
+ exports.DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE = 'When the app needs an outside API (product analytics, billing, CRM) or the user names a connection, call listDataAppConnections first and pass the matching slugs as externalConnectionSlugs; a connection named only in the brief is not linked.';
23
25
  exports.TOOL_GENERATE_DATA_APP_DESCRIPTION = [
24
26
  "Start building a new data app — an interactive application generated from a brief on top of this project's semantic layer.",
25
27
  'Use it when the user asks to build, make, or generate a data app (or an app, slide show, or PDF report); questions, charts, dashboards, and other saved content have their own tools.',
26
28
  'This tool always creates a new app: to change an app that already exists, use iterateDataApp instead.',
27
29
  'Name the app yourself: the name fixes both the app name and its slug at creation, and neither changes afterwards.',
28
30
  'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending") and the outcome lands on this result for a later turn. One request, one call — never wait, poll, or call this tool again for the same request: tell the user the build has started and end your turn.',
31
+ exports.DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE,
29
32
  ].join(' ');
30
33
  /** Why a scoped session loses sight of a personal app; shared by every MCP build tool. */
31
34
  exports.MCP_DATA_APP_AGENT_SCOPE_GUIDANCE = '- An agent-scoped session restricted to specific spaces cannot read a personal app. Call this tool and get_data_app_build_status without agentUuid to build and poll an app you own.';
35
+ /** Shared by the MCP generate and iterate tools. */
36
+ exports.MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE = '- For an outside API (analytics, billing, CRM), pass externalConnectionSlugs from list_data_app_connections.';
32
37
  /** Placement every MCP-started build shares; stated on each start tool. */
33
38
  exports.MCP_DATA_APP_PLACEMENT_GUIDANCE = [
34
39
  "- The app is created as the calling user's personal app: at the project root, in no space, visible only to them until they move it.",
@@ -44,16 +49,21 @@ Important:
44
49
  - The build runs in the background for several minutes. This call returns as soon as the build has started. Poll get_data_app_build_status with the returned slug every ${exports.DATA_APP_BUILD_POLL_INTERVAL_MS / 1000} seconds until its status is "ready", "error", or "cancelled". Call this tool once per request.
45
50
  ${exports.MCP_DATA_APP_PLACEMENT_GUIDANCE}
46
51
  - An unknown themeSlug fails before the build starts and lists the valid slugs. Call list_data_app_themes when the user names a theme, brand, or look.
52
+ ${exports.MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE}
47
53
 
48
54
  Response shape (MCP CallToolResult):
49
55
  - content: [{ type: "text", text: "<confirmation that the build started>" }]
50
56
  - structuredContent: {
51
- slug: string, // the app's permanent slug; pass it to get_data_app_build_status
52
- version: number // the version of the app this build produces
57
+ slug: string, // the app's permanent slug; pass it to get_data_app_build_status
58
+ version: number, // the version of the app this build produces
59
+ warnings: string[] // e.g. a connection the brief names but does not link
53
60
  }
54
61
 
55
- Errors: an unknown themeSlug, dashboardSlug, or chartSlug returns an error and starts no build.
62
+ Errors: an unknown themeSlug, dashboardSlug, chartSlug, or externalConnectionSlug returns an error and starts no build.
56
63
  `;
64
+ exports.dataAppBuildWarningsSchema = zod_1.z
65
+ .array(zod_1.z.string())
66
+ .describe('Non-blocking issues with the request, such as a connection the brief names that the app does not link. Empty when there are none.');
57
67
  /** What a started build reports at the MCP surface; the app uuid stays internal. */
58
68
  exports.mcpDataAppBuildStartedOutputSchema = zod_1.z.object({
59
69
  slug: zod_1.z
@@ -64,7 +74,13 @@ exports.mcpDataAppBuildStartedOutputSchema = zod_1.z.object({
64
74
  .int()
65
75
  .positive()
66
76
  .describe('The version of the app this build produces.'),
77
+ warnings: exports.dataAppBuildWarningsSchema,
67
78
  });
79
+ exports.externalConnectionSlugsInput = zod_1.z
80
+ .array(zod_1.z.string())
81
+ .nullish()
82
+ .default(null)
83
+ .describe('External connections to link to the app before the build: slugs from listDataAppConnections (list_data_app_connections over MCP). The build gets their instructions and samples and can call them at runtime. An unknown or unlinkable slug fails and starts no build. Omit when the app uses no external API.');
68
84
  exports.toolGenerateDataAppArgsSchema = zod_1.z.object({
69
85
  name: zod_1.z
70
86
  .string()
@@ -92,6 +108,7 @@ exports.toolGenerateDataAppArgsSchema = zod_1.z.object({
92
108
  .nullish()
93
109
  .default(null)
94
110
  .describe(exports.DATA_APP_THEME_SLUG_DESCRIPTION),
111
+ externalConnectionSlugs: exports.externalConnectionSlugsInput,
95
112
  });
96
113
  const versionSchema = zod_1.z
97
114
  .number()
@@ -100,6 +117,8 @@ const pendingBuildSchema = zod_1.z.object({
100
117
  status: zod_1.z
101
118
  .literal('pending')
102
119
  .describe('The build has started and is still running; its outcome replaces this result on a later turn.'),
120
+ // Optional: pending results persisted before warnings existed lack it.
121
+ warnings: exports.dataAppBuildWarningsSchema.optional(),
103
122
  });
104
123
  const readyBuildSchema = zod_1.z.object({
105
124
  status: zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAK6B;AAC7B,sDAG2B;AAC3B,qEAAsE;AAEtE,mFAAmF;AACtE,QAAA,+BAA+B,GAAG,KAAM,CAAC;AAEtD,kFAAkF;AACrE,QAAA,kCAAkC,GAAG,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AE;YACN,MAAM,EAAE,OAAO;YACf,OAAO;YACP,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;YAC1C,OAAO;SACV;QACD,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AA5DW,QAAA,8BAA8B,GAA9B,8BAA8B,CA4DzC;AAEK,MAAM,qCAAqC,GAAG,CACjD,OAAe,EACkB,EAAE;IACnC,MAAM,OAAO,GAAG,8CACZ,QAAA,kCAAkC,GAAG,KACzC,WAAW,CAAC;IACZ,MAAM,MAAM,GAAG,sCAAsC,OAAO,EAAE,CAAC;IAC/D,OAAO;QACH,MAAM;QACN,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;QACjE,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AAZW,QAAA,qCAAqC,GAArC,qCAAqC,CAYhD"}
1
+ {"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAK6B;AAC7B,sDAG2B;AAC3B,qEAAsE;AAEtE,mFAAmF;AACtE,QAAA,+BAA+B,GAAG,KAAM,CAAC;AAEtD,kFAAkF;AACrE,QAAA,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,8FAA8F;AACjF,QAAA,wBAAwB,GAAG;IACpC,WAAW;IACX,WAAW;IACX,KAAK;IACL,QAAQ;CACmC,CAAC;AAGhD,6FAA6F;AAChF,QAAA,wBAAwB,GACjC,0DAA0D,CAAC;AAE/D,0HAA0H;AAC7G,QAAA,+BAA+B,GACxC,+PAA+P,CAAC;AAEpQ,sDAAsD;AACzC,QAAA,4CAA4C,GAC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IAAI,EAAE;SAC1D,CAAC;IACN,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,KAAK,qCAA6B,CAAC;IAC1D,MAAM,OAAO,GAAG,SAAS;QACrB,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,CAAC,aAAa,IAAI,mBAAmB,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,sCAAsC,OAAO,EAAE,CAAC;IAC/D,OAAO;QACH,MAAM;QACN,QAAQ,EAAE;YACN,MAAM,EAAE,OAAO;YACf,OAAO;YACP,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;YAC1C,OAAO;SACV;QACD,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AA5DW,QAAA,8BAA8B,GAA9B,8BAA8B,CA4DzC;AAEK,MAAM,qCAAqC,GAAG,CACjD,OAAe,EACkB,EAAE;IACnC,MAAM,OAAO,GAAG,8CACZ,QAAA,kCAAkC,GAAG,KACzC,WAAW,CAAC;IACZ,MAAM,MAAM,GAAG,sCAAsC,OAAO,EAAE,CAAC;IAC/D,OAAO;QACH,MAAM;QACN,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;QACjE,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AAZW,QAAA,qCAAqC,GAArC,qCAAqC,CAYhD"}
@@ -1,16 +1,18 @@
1
1
  import { z } from 'zod';
2
2
  import { type ToolGenerateDataAppOutput } from './toolGenerateDataAppArgs';
3
3
  export declare const TOOL_ITERATE_DATA_APP_DESCRIPTION: string;
4
- export declare const MCP_TOOL_ITERATE_DATA_APP_DESCRIPTION = "Tool: iterate_data_app\n\nPurpose:\nStart a build that adds a version to an existing data app from a follow-up brief. Use it to change, fix, or extend an app that already exists; generate_data_app is the tool for a brand-new app.\n\nImportant:\n- The coding agent works from the app's current source, so the brief describes the change rather than restating the whole app.\n- The app's name and slug stay as they are. The build adds a version to the app named by appSlug.\n- The build runs in the background for several minutes. This call returns as soon as the build has started. Poll get_data_app_build_status with the same appSlug every 15 seconds until its status is \"ready\", \"error\", or \"cancelled\". Call this tool once per request.\n- While a version is already building for the app, this call fails with \"A version is already building for this app\". Poll get_data_app_build_status until that build reaches a terminal status, then call this tool again.\n- An agent-scoped session restricted to specific spaces cannot read a personal app. Call this tool and get_data_app_build_status without agentUuid to build and poll an app you own.\n- Pass themeSlug only when the user asks to switch the app's theme; omitting it keeps the current one. An unknown themeSlug fails before the build starts and lists the valid slugs, which list_data_app_themes also returns.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<confirmation that the build started>\" }]\n- structuredContent: {\n slug: string, // the app's slug, unchanged by this build\n version: number // the version of the app this build produces\n }\n\nErrors: an unknown appSlug, themeSlug, dashboardSlug, or chartSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.\n";
4
+ export declare const MCP_TOOL_ITERATE_DATA_APP_DESCRIPTION = "Tool: iterate_data_app\n\nPurpose:\nStart a build that adds a version to an existing data app from a follow-up brief. Use it to change, fix, or extend an app that already exists; generate_data_app is the tool for a brand-new app.\n\nImportant:\n- The coding agent works from the app's current source, so the brief describes the change rather than restating the whole app.\n- The app's name and slug stay as they are. The build adds a version to the app named by appSlug.\n- The build runs in the background for several minutes. This call returns as soon as the build has started. Poll get_data_app_build_status with the same appSlug every 15 seconds until its status is \"ready\", \"error\", or \"cancelled\". Call this tool once per request.\n- While a version is already building for the app, this call fails with \"A version is already building for this app\". Poll get_data_app_build_status until that build reaches a terminal status, then call this tool again.\n- An agent-scoped session restricted to specific spaces cannot read a personal app. Call this tool and get_data_app_build_status without agentUuid to build and poll an app you own.\n- Pass themeSlug only when the user asks to switch the app's theme; omitting it keeps the current one. An unknown themeSlug fails before the build starts and lists the valid slugs, which list_data_app_themes also returns.\n- For an outside API (analytics, billing, CRM), pass externalConnectionSlugs from list_data_app_connections.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<confirmation that the build started>\" }]\n- structuredContent: {\n slug: string, // the app's slug, unchanged by this build\n version: number, // the version of the app this build produces\n warnings: string[] // e.g. a connection the brief names but does not link\n }\n\nErrors: an unknown appSlug, themeSlug, dashboardSlug, chartSlug, or externalConnectionSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.\n";
5
5
  export declare const toolIterateDataAppArgsSchema: z.ZodObject<{
6
6
  appSlug: z.ZodString;
7
7
  prompt: z.ZodString;
8
8
  dashboardSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9
9
  chartSlugs: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
10
10
  themeSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
11
+ externalConnectionSlugs: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
11
12
  }, z.core.$strip>;
12
13
  export declare const toolIterateDataAppStructuredContentSchema: z.ZodObject<{
13
14
  status: z.ZodLiteral<"pending">;
15
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
16
  }, z.core.$strip>;
15
17
  export declare const toolIterateDataAppOutputSchema: z.ZodObject<{
16
18
  result: z.ZodString;
@@ -37,6 +39,7 @@ export declare const toolIterateDataAppOutputSchema: z.ZodObject<{
37
39
  }, z.core.$strip>], "status">;
38
40
  structuredContent: z.ZodUnion<readonly [z.ZodObject<{
39
41
  status: z.ZodLiteral<"pending">;
42
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
43
  }, z.core.$strip>, z.ZodObject<{
41
44
  refusal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
45
  code: z.ZodLiteral<"ai_access_refused">;
@@ -1 +1 @@
1
- {"version":3,"file":"toolIterateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAMH,KAAK,yBAAyB,EACjC,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,iCAAiC,QAOnC,CAAC;AAEZ,eAAO,MAAM,qCAAqC,szDAuBjD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;iBAgCvC,CAAC;AAEH,eAAO,MAAM,yCAAyC;;iBAMpD,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOzC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,yCAAyC,CACnD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;CAGtC,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,wBAAwB,GACjC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,UAE3D,CAAC,KACV,MAAM,IAAI,CAAC,GAAG;IACb,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;IAC/C,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC;CAC0B,CAAC"}
1
+ {"version":3,"file":"toolIterateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAUH,KAAK,yBAAyB,EACjC,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,iCAAiC,QAQnC,CAAC;AAEZ,eAAO,MAAM,qCAAqC,+gEAyBjD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;iBAmCvC,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;iBAQpD,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOzC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,yCAAyC,CACnD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;CAGtC,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,wBAAwB,GACjC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,UAE3D,CAAC,KACV,MAAM,IAAI,CAAC,GAAG;IACb,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;IAC/C,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC;CAC0B,CAAC"}
@@ -12,6 +12,7 @@ exports.TOOL_ITERATE_DATA_APP_DESCRIPTION = [
12
12
  'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending") and the outcome lands on this result for a later turn. One request, one call — never wait, poll, or call this tool again for the same request: tell the user the build has started and end your turn.',
13
13
  'While a version is already building for the app, the call fails — relay that the user should wait for the current build to finish.',
14
14
  'When the attached context lists element references for this app (bracketed `[tag "text" @path:line]` strings), copy every one of them verbatim into the brief — the coding agent resolves them by source location and cannot see them otherwise.',
15
+ toolGenerateDataAppArgs_1.DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE,
15
16
  ].join(' ');
16
17
  exports.MCP_TOOL_ITERATE_DATA_APP_DESCRIPTION = `Tool: iterate_data_app
17
18
 
@@ -25,15 +26,17 @@ Important:
25
26
  - While a version is already building for the app, this call fails with "A version is already building for this app". Poll get_data_app_build_status until that build reaches a terminal status, then call this tool again.
26
27
  ${toolGenerateDataAppArgs_1.MCP_DATA_APP_AGENT_SCOPE_GUIDANCE}
27
28
  - Pass themeSlug only when the user asks to switch the app's theme; omitting it keeps the current one. An unknown themeSlug fails before the build starts and lists the valid slugs, which list_data_app_themes also returns.
29
+ ${toolGenerateDataAppArgs_1.MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE}
28
30
 
29
31
  Response shape (MCP CallToolResult):
30
32
  - content: [{ type: "text", text: "<confirmation that the build started>" }]
31
33
  - structuredContent: {
32
- slug: string, // the app's slug, unchanged by this build
33
- version: number // the version of the app this build produces
34
+ slug: string, // the app's slug, unchanged by this build
35
+ version: number, // the version of the app this build produces
36
+ warnings: string[] // e.g. a connection the brief names but does not link
34
37
  }
35
38
 
36
- Errors: an unknown appSlug, themeSlug, dashboardSlug, or chartSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.
39
+ Errors: an unknown appSlug, themeSlug, dashboardSlug, chartSlug, or externalConnectionSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.
37
40
  `;
38
41
  exports.toolIterateDataAppArgsSchema = zod_1.z.object({
39
42
  appSlug: zod_1.z
@@ -57,11 +60,14 @@ exports.toolIterateDataAppArgsSchema = zod_1.z.object({
57
60
  .nullish()
58
61
  .default(null)
59
62
  .describe(`${toolGenerateDataAppArgs_1.DATA_APP_THEME_SLUG_DESCRIPTION} On an existing app, passing it switches the app's theme; omit it unless the user asked to switch the theme in this request, so the app keeps its current theme.`),
63
+ externalConnectionSlugs: toolGenerateDataAppArgs_1.externalConnectionSlugsInput.describe('External connections to link to the app before the build: slugs from listDataAppConnections (list_data_app_connections over MCP). Adds to the connections the app already links; none are removed. An unknown or unlinkable slug fails and starts no build. Omit when the change needs no new external API.'),
60
64
  });
61
65
  exports.toolIterateDataAppStructuredContentSchema = zod_1.z.object({
62
66
  status: zod_1.z
63
67
  .literal('pending')
64
68
  .describe('The build has started and runs in the background; its outcome lands on this result later.'),
69
+ // Optional: pending results persisted before warnings existed lack it.
70
+ warnings: toolGenerateDataAppArgs_1.dataAppBuildWarningsSchema.optional(),
65
71
  });
66
72
  // The iterate tool shares the create tool's outcome contract: same pending,
67
73
  // success, and error metadata, patched by the same build outcome recording.
@@ -1 +1 @@
1
- {"version":3,"file":"toolIterateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAqE;AACrE,qEAAsE;AACtE,uEAOmC;AAEtB,QAAA,iCAAiC,GAAG;IAC7C,mFAAmF;IACnF,sMAAsM;IACtM,2HAA2H;IAC3H,+TAA+T;IAC/T,oIAAoI;IACpI,kPAAkP;CACrP,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEC,QAAA,qCAAqC,GAAG;;;;;;;;yKASjD,yDAA+B,GAAG,IACtC;;EAEE,2DAAiC;;;;;;;;;;;CAWlC,CAAC;AAEW,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,yHAAyH,CAC5H;IACL,MAAM,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,yXAAyX,CAC5X;IACL,aAAa,EAAE,OAAC;SACX,MAAM,EAAE;SACR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AAE,oDAA0B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,4EAA4E;AAC5E,4EAA4E;AAC5E,sEAAsE;AACtE,8CAA8C;AACjC,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yDAA+B,CAAC,KAAK,CAAC,QAAQ;IACxD,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC;QACvB,QAAA,yCAAyC;QACzC,iDAAgC;KACnC,CAAC;CACL,CAAC,CAAC;AAcU,QAAA,0BAA0B,GAAG,IAAA,mDAA0B,EAChE,gBAAgB,EAChB,yDAA+B,CAAC,KAAK,CAAC,QAAQ,CACjD,CAAC;AAEF,0EAA0E;AACnE,MAAM,wBAAwB,GAAG,CAGpC,MAAS,EAKX,EAAE,CAAC,IAAA,qDAA2B,EAAC,MAAM,CAAC,IAAI,IAAA,QAAA,0BAA0B,EAAC,MAAM,CAAC,CAAC;AARlE,QAAA,wBAAwB,GAAxB,wBAAwB,CAQ0C"}
@@ -0,0 +1,85 @@
1
+ import { z } from 'zod';
2
+ export declare const TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION: string;
3
+ export declare const MCP_TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = "Tool: list_data_app_connections\n\nPurpose:\nList the project's external connections you can link to a data app. An external connection is an admin-configured, credentialed proxy to an outside API (product analytics, billing, CRM, ...); a data app can call an API only through a linked connection.\n\nImportant:\n- Call it when the user wants a data app to use an outside API or names a connection, then pass the matching slugs as externalConnectionSlugs to generate_data_app or iterate_data_app.\n- Only connections you may link are listed. Credentials are never returned.\n- Pass appSlug to also see which connections that app already links.\n\nParameters:\n- appSlug: Optional. A data app's slug; fills linkedAliases for that app.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<the connections, one per line>\" }]\n- structuredContent: {\n connections: [{\n slug: string, // pass in externalConnectionSlugs\n name: string,\n authType: string, // \"none\" | \"api_key\" | \"bearer_token\" | \"google_service_account\" | \"oauth_client_credentials\"\n origin: string, // the API's base URL\n instructions: string | null, // how to use the API, written by an admin\n linkedAliases: string[] // aliases the appSlug app links it under; empty when not linked or no appSlug\n }]\n }\n\nErrors: an unknown appSlug, or an app this caller may not view, returns an error.\n";
4
+ export declare const toolListDataAppConnectionsArgsSchema: z.ZodObject<{
5
+ appSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6
+ }, z.core.$strip>;
7
+ export type ToolListDataAppConnectionsArgs = z.infer<typeof toolListDataAppConnectionsArgsSchema>;
8
+ export declare const mcpListDataAppConnectionsStructuredOutputSchema: z.ZodObject<{
9
+ connections: z.ZodArray<z.ZodObject<{
10
+ slug: z.ZodString;
11
+ name: z.ZodString;
12
+ authType: z.ZodString;
13
+ origin: z.ZodString;
14
+ instructions: z.ZodNullable<z.ZodString>;
15
+ linkedAliases: z.ZodArray<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ export type McpListDataAppConnectionsOutput = z.infer<typeof mcpListDataAppConnectionsStructuredOutputSchema>;
19
+ export declare const toolListDataAppConnectionsOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
20
+ result: z.ZodString;
21
+ metadata: z.ZodIntersection<z.ZodObject<{
22
+ status: z.ZodEnum<{
23
+ error: "error";
24
+ success: "success";
25
+ }>;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ status: z.ZodEnum<{
28
+ success: "success";
29
+ }>;
30
+ }, z.core.$strip>>;
31
+ structuredContent: z.ZodObject<{
32
+ connections: z.ZodArray<z.ZodObject<{
33
+ slug: z.ZodString;
34
+ name: z.ZodString;
35
+ authType: z.ZodString;
36
+ origin: z.ZodString;
37
+ instructions: z.ZodNullable<z.ZodString>;
38
+ linkedAliases: z.ZodArray<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ result: z.ZodString;
43
+ metadata: z.ZodIntersection<z.ZodObject<{
44
+ status: z.ZodEnum<{
45
+ error: "error";
46
+ success: "success";
47
+ }>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ status: z.ZodEnum<{
50
+ error: "error";
51
+ }>;
52
+ refusal: z.ZodOptional<z.ZodObject<{
53
+ code: z.ZodLiteral<"ai_access_refused">;
54
+ reason: z.ZodString;
55
+ message: z.ZodString;
56
+ action: z.ZodNullable<z.ZodString>;
57
+ settingsUrl: z.ZodNullable<z.ZodString>;
58
+ connectUrl: z.ZodNullable<z.ZodString>;
59
+ capability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ policyLayer: z.ZodOptional<z.ZodString>;
61
+ operation: z.ZodOptional<z.ZodString>;
62
+ policyVersion: z.ZodOptional<z.ZodNumber>;
63
+ projectUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>>;
66
+ structuredContent: z.ZodObject<{
67
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
68
+ code: z.ZodLiteral<"ai_access_refused">;
69
+ reason: z.ZodString;
70
+ message: z.ZodString;
71
+ action: z.ZodNullable<z.ZodString>;
72
+ settingsUrl: z.ZodNullable<z.ZodString>;
73
+ connectUrl: z.ZodNullable<z.ZodString>;
74
+ capability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ policyLayer: z.ZodOptional<z.ZodString>;
76
+ operation: z.ZodOptional<z.ZodString>;
77
+ policyVersion: z.ZodOptional<z.ZodNumber>;
78
+ projectUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>>>;
80
+ error: z.ZodString;
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>]>;
83
+ export type ToolListDataAppConnectionsStructuredContent = McpListDataAppConnectionsOutput;
84
+ export type ToolListDataAppConnectionsOutput = z.infer<typeof toolListDataAppConnectionsOutputSchema>;
85
+ //# sourceMappingURL=toolListDataAppConnectionsArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolListDataAppConnectionsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0CAA0C,QAI5C,CAAC;AAEZ,eAAO,MAAM,8CAA8C,09CA2B1D,CAAC;AAEF,eAAO,MAAM,oCAAoC;;iBAS/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,oCAAoC,CAC9C,CAAC;AAEF,eAAO,MAAM,+CAA+C;;;;;;;;;iBA0B1D,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,+CAA+C,CACzD,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAI7C,CAAC;AAEP,MAAM,MAAM,2CAA2C,GACnD,+BAA+B,CAAC;AAEpC,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,sCAAsC,CAChD,CAAC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toolListDataAppConnectionsOutputSchema = exports.mcpListDataAppConnectionsStructuredOutputSchema = exports.toolListDataAppConnectionsArgsSchema = exports.MCP_TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = exports.TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = void 0;
4
+ const zod_1 = require("zod");
5
+ const outputMetadata_1 = require("../outputMetadata");
6
+ exports.TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = [
7
+ "List the project's external connections you can link to a data app: admin-configured, credentialed proxies to outside APIs (product analytics, billing, CRM). A data app can call an API only through a linked connection.",
8
+ 'Call it when the user wants a data app to use an outside API or names a connection; match the request to a connection and pass its slug in externalConnectionSlugs to generateDataApp or iterateDataApp.',
9
+ 'Pass appSlug to see which connections an existing app already links. Credentials are never returned.',
10
+ ].join(' ');
11
+ exports.MCP_TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = `Tool: list_data_app_connections
12
+
13
+ Purpose:
14
+ List the project's external connections you can link to a data app. An external connection is an admin-configured, credentialed proxy to an outside API (product analytics, billing, CRM, ...); a data app can call an API only through a linked connection.
15
+
16
+ Important:
17
+ - Call it when the user wants a data app to use an outside API or names a connection, then pass the matching slugs as externalConnectionSlugs to generate_data_app or iterate_data_app.
18
+ - Only connections you may link are listed. Credentials are never returned.
19
+ - Pass appSlug to also see which connections that app already links.
20
+
21
+ Parameters:
22
+ - appSlug: Optional. A data app's slug; fills linkedAliases for that app.
23
+
24
+ Response shape (MCP CallToolResult):
25
+ - content: [{ type: "text", text: "<the connections, one per line>" }]
26
+ - structuredContent: {
27
+ connections: [{
28
+ slug: string, // pass in externalConnectionSlugs
29
+ name: string,
30
+ authType: string, // "none" | "api_key" | "bearer_token" | "google_service_account" | "oauth_client_credentials"
31
+ origin: string, // the API's base URL
32
+ instructions: string | null, // how to use the API, written by an admin
33
+ linkedAliases: string[] // aliases the appSlug app links it under; empty when not linked or no appSlug
34
+ }]
35
+ }
36
+
37
+ Errors: an unknown appSlug, or an app this caller may not view, returns an error.
38
+ `;
39
+ exports.toolListDataAppConnectionsArgsSchema = zod_1.z.object({
40
+ appSlug: zod_1.z
41
+ .string()
42
+ .min(1)
43
+ .nullish()
44
+ .default(null)
45
+ .describe("A data app's slug. Pass it to see which connections that app already links; omit to list connections only."),
46
+ });
47
+ exports.mcpListDataAppConnectionsStructuredOutputSchema = zod_1.z.object({
48
+ connections: zod_1.z
49
+ .array(zod_1.z.object({
50
+ slug: zod_1.z
51
+ .string()
52
+ .describe('Pass in externalConnectionSlugs when starting a data app build.'),
53
+ name: zod_1.z.string().describe("The connection's display name."),
54
+ authType: zod_1.z
55
+ .string()
56
+ .describe('How the proxy authenticates to the API.'),
57
+ origin: zod_1.z.string().describe("The API's base URL."),
58
+ instructions: zod_1.z
59
+ .string()
60
+ .nullable()
61
+ .describe('How to use the API, written by an admin.'),
62
+ linkedAliases: zod_1.z
63
+ .array(zod_1.z.string())
64
+ .describe('Aliases the appSlug app links this connection under; empty when not linked or no appSlug was given.'),
65
+ }))
66
+ .describe('Connections you may link; empty when there are none.'),
67
+ });
68
+ exports.toolListDataAppConnectionsOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
69
+ metadata: outputMetadata_1.baseOutputMetadataSchema,
70
+ structuredContent: exports.mcpListDataAppConnectionsStructuredOutputSchema,
71
+ });
72
+ //# sourceMappingURL=toolListDataAppConnectionsArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolListDataAppConnectionsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAG2B;AAEd,QAAA,0CAA0C,GAAG;IACtD,4NAA4N;IAC5N,0MAA0M;IAC1M,sGAAsG;CACzG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEC,QAAA,8CAA8C,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B7D,CAAC;AAEW,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,OAAO,EAAE,OAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,4GAA4G,CAC/G;CACR,CAAC,CAAC;AAMU,QAAA,+CAA+C,GAAG,OAAC,CAAC,MAAM,CAAC;IACpE,WAAW,EAAE,OAAC;SACT,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;QACL,IAAI,EAAE,OAAC;aACF,MAAM,EAAE;aACR,QAAQ,CACL,iEAAiE,CACpE;QACL,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC3D,QAAQ,EAAE,OAAC;aACN,MAAM,EAAE;aACR,QAAQ,CAAC,yCAAyC,CAAC;QACxD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QAClD,YAAY,EAAE,OAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,0CAA0C,CAAC;QACzD,aAAa,EAAE,OAAC;aACX,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;aACjB,QAAQ,CACL,qGAAqG,CACxG;KACR,CAAC,CACL;SACA,QAAQ,CAAC,sDAAsD,CAAC;CACxE,CAAC,CAAC;AAMU,QAAA,sCAAsC,GAC/C,IAAA,2CAA0B,EAAC;IACvB,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,+CAA+C;CACrE,CAAC,CAAC"}
@@ -979,18 +979,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
979
979
  limit: number | null;
980
980
  };
981
981
  tableCalculations: ({
982
- name: string;
983
- displayName: string;
984
- type: "formula";
985
- formula: string;
986
- format: "number" | "percent" | null;
987
- resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
988
- } | {
989
- name: string;
990
- displayName: string;
991
- type: "rank_in_column";
992
- fieldId: string;
993
- } | {
994
982
  name: string;
995
983
  displayName: string;
996
984
  type: "percent_change_from_previous";
@@ -1000,6 +988,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1000
988
  order: "asc" | "desc" | null;
1001
989
  }[];
1002
990
  partitionBy: string[] | null;
991
+ } | {
992
+ name: string;
993
+ displayName: string;
994
+ type: "running_total";
995
+ fieldId: string;
996
+ } | {
997
+ name: string;
998
+ displayName: string;
999
+ type: "formula";
1000
+ formula: string;
1001
+ format: "number" | "percent" | null;
1002
+ resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1003
1003
  } | {
1004
1004
  name: string;
1005
1005
  displayName: string;
@@ -1019,7 +1019,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1019
1019
  } | {
1020
1020
  name: string;
1021
1021
  displayName: string;
1022
- type: "running_total";
1022
+ type: "rank_in_column";
1023
1023
  fieldId: string;
1024
1024
  } | {
1025
1025
  name: string;
@@ -1074,17 +1074,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1074
1074
  type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1075
1075
  filters: {
1076
1076
  filter: {
1077
- fieldId: string;
1078
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1079
- fieldFilterType: import("../../../..").FilterType.STRING;
1080
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1081
- } | {
1082
- fieldId: string;
1083
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1084
- fieldFilterType: import("../../../..").FilterType.STRING;
1085
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1086
- values: string[];
1087
- } | {
1088
1077
  fieldId: string;
1089
1078
  fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
1090
1079
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
@@ -1095,6 +1084,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1095
1084
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
1096
1085
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
1097
1086
  values: boolean[];
1087
+ } | {
1088
+ fieldId: string;
1089
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1090
+ fieldFilterType: import("../../../..").FilterType.STRING;
1091
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1092
+ } | {
1093
+ fieldId: string;
1094
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1095
+ fieldFilterType: import("../../../..").FilterType.STRING;
1096
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1097
+ values: string[];
1098
1098
  } | {
1099
1099
  fieldId: string;
1100
1100
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -1168,18 +1168,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1168
1168
  }[] | null;
1169
1169
  })[] | null;
1170
1170
  tableCalculations: ({
1171
- name: string;
1172
- displayName: string;
1173
- type: "formula";
1174
- formula: string;
1175
- format: "number" | "percent" | null;
1176
- resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1177
- } | {
1178
- name: string;
1179
- displayName: string;
1180
- type: "rank_in_column";
1181
- fieldId: string;
1182
- } | {
1183
1171
  name: string;
1184
1172
  displayName: string;
1185
1173
  type: "percent_change_from_previous";
@@ -1189,6 +1177,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1189
1177
  order: "asc" | "desc" | null;
1190
1178
  }[];
1191
1179
  partitionBy: string[] | null;
1180
+ } | {
1181
+ name: string;
1182
+ displayName: string;
1183
+ type: "running_total";
1184
+ fieldId: string;
1185
+ } | {
1186
+ name: string;
1187
+ displayName: string;
1188
+ type: "formula";
1189
+ formula: string;
1190
+ format: "number" | "percent" | null;
1191
+ resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1192
1192
  } | {
1193
1193
  name: string;
1194
1194
  displayName: string;
@@ -1208,7 +1208,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1208
1208
  } | {
1209
1209
  name: string;
1210
1210
  displayName: string;
1211
- type: "running_total";
1211
+ type: "rank_in_column";
1212
1212
  fieldId: string;
1213
1213
  } | {
1214
1214
  name: string;
@@ -1236,17 +1236,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1236
1236
  filters: {
1237
1237
  type: "and" | "or";
1238
1238
  dimensions: ({
1239
- fieldId: string;
1240
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1241
- fieldFilterType: import("../../../..").FilterType.STRING;
1242
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1243
- } | {
1244
- fieldId: string;
1245
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1246
- fieldFilterType: import("../../../..").FilterType.STRING;
1247
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1248
- values: string[];
1249
- } | {
1250
1239
  fieldId: string;
1251
1240
  fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
1252
1241
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
@@ -1257,6 +1246,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1257
1246
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
1258
1247
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
1259
1248
  values: boolean[];
1249
+ } | {
1250
+ fieldId: string;
1251
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1252
+ fieldFilterType: import("../../../..").FilterType.STRING;
1253
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1254
+ } | {
1255
+ fieldId: string;
1256
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1257
+ fieldFilterType: import("../../../..").FilterType.STRING;
1258
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1259
+ values: string[];
1260
1260
  } | {
1261
1261
  fieldId: string;
1262
1262
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -1327,17 +1327,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1327
1327
  values: string[];
1328
1328
  })[] | null;
1329
1329
  metrics: ({
1330
- fieldId: string;
1331
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1332
- fieldFilterType: import("../../../..").FilterType.STRING;
1333
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1334
- } | {
1335
- fieldId: string;
1336
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1337
- fieldFilterType: import("../../../..").FilterType.STRING;
1338
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1339
- values: string[];
1340
- } | {
1341
1330
  fieldId: string;
1342
1331
  fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
1343
1332
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
@@ -1348,6 +1337,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1348
1337
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
1349
1338
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
1350
1339
  values: boolean[];
1340
+ } | {
1341
+ fieldId: string;
1342
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1343
+ fieldFilterType: import("../../../..").FilterType.STRING;
1344
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1345
+ } | {
1346
+ fieldId: string;
1347
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1348
+ fieldFilterType: import("../../../..").FilterType.STRING;
1349
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1350
+ values: string[];
1351
1351
  } | {
1352
1352
  fieldId: string;
1353
1353
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;