@lightdash/common 2.346.0 → 2.347.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 (127) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +28 -28
  3. package/dist/cjs/ee/AiAgent/schemas/outputMetadata.d.ts +42 -0
  4. package/dist/cjs/ee/AiAgent/schemas/outputMetadata.d.ts.map +1 -1
  5. package/dist/cjs/ee/AiAgent/schemas/outputMetadata.js +36 -1
  6. package/dist/cjs/ee/AiAgent/schemas/outputMetadata.js.map +1 -1
  7. package/dist/cjs/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.d.ts +97 -3
  8. package/dist/cjs/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.d.ts.map +1 -1
  9. package/dist/cjs/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.js +60 -3
  10. package/dist/cjs/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.js.map +1 -1
  11. package/dist/cjs/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.d.ts +31 -3
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.d.ts.map +1 -1
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.js +9 -3
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.js.map +1 -1
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +55 -0
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +33 -1
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts +37 -0
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts.map +1 -1
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js +35 -1
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js.map +1 -1
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +92 -92
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +128 -5
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +32 -7
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  28. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts +45 -0
  29. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
  30. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js +77 -76
  31. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
  32. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +71 -0
  33. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  34. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +7 -4
  35. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  36. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +64 -0
  37. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  38. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +7 -4
  39. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  40. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +62 -62
  41. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  42. package/dist/cjs/ee/AiAgent/utils.d.ts +13 -13
  43. package/dist/esm/.tsbuildinfo +1 -1
  44. package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +13 -13
  45. package/dist/esm/ee/AiAgent/schemas/outputMetadata.d.ts +42 -0
  46. package/dist/esm/ee/AiAgent/schemas/outputMetadata.d.ts.map +1 -1
  47. package/dist/esm/ee/AiAgent/schemas/outputMetadata.js +34 -0
  48. package/dist/esm/ee/AiAgent/schemas/outputMetadata.js.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.d.ts +97 -3
  50. package/dist/esm/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.d.ts.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.js +60 -3
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.js.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.d.ts +31 -3
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.d.ts.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.js +9 -3
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.js.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +55 -0
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +32 -0
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
  61. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts +37 -0
  62. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts.map +1 -1
  63. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js +34 -0
  64. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js.map +1 -1
  65. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +92 -92
  66. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +128 -5
  67. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  68. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +30 -6
  69. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  70. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts +45 -0
  71. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
  72. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js +76 -75
  73. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
  74. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +71 -0
  75. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  76. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +6 -3
  77. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  78. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +64 -0
  79. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  80. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +6 -3
  81. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  82. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +62 -62
  83. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  84. package/dist/esm/ee/AiAgent/utils.d.ts +12 -12
  85. package/dist/types/.tsbuildinfo +1 -1
  86. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +13 -13
  87. package/dist/types/ee/AiAgent/schemas/outputMetadata.d.ts +42 -0
  88. package/dist/types/ee/AiAgent/schemas/outputMetadata.d.ts.map +1 -1
  89. package/dist/types/ee/AiAgent/schemas/outputMetadata.js +34 -0
  90. package/dist/types/ee/AiAgent/schemas/outputMetadata.js.map +1 -1
  91. package/dist/types/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.d.ts +97 -3
  92. package/dist/types/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.d.ts.map +1 -1
  93. package/dist/types/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.js +60 -3
  94. package/dist/types/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.js.map +1 -1
  95. package/dist/types/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.d.ts +31 -3
  96. package/dist/types/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.d.ts.map +1 -1
  97. package/dist/types/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.js +9 -3
  98. package/dist/types/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.js.map +1 -1
  99. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +55 -0
  100. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
  101. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +32 -0
  102. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
  103. package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts +37 -0
  104. package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts.map +1 -1
  105. package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js +34 -0
  106. package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js.map +1 -1
  107. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +92 -92
  108. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +128 -5
  109. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  110. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +30 -6
  111. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  112. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts +45 -0
  113. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
  114. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js +76 -75
  115. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
  116. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +71 -0
  117. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  118. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +6 -3
  119. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  120. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +64 -0
  121. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  122. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +6 -3
  123. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  124. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +62 -62
  125. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  126. package/dist/types/ee/AiAgent/utils.d.ts +12 -12
  127. package/package.json +1 -1
@@ -27,18 +27,31 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
27
27
  tableCalculations: ({
28
28
  name: string;
29
29
  displayName: string;
30
- type: "percent_change_from_previous";
30
+ type: "percent_of_column_total";
31
31
  fieldId: string;
32
- orderBy: {
33
- fieldId: string;
34
- order: "asc" | "desc" | null;
35
- }[];
36
32
  partitionBy: string[] | null;
37
33
  } | {
38
34
  name: string;
39
35
  displayName: string;
40
- type: "running_total";
41
- fieldId: string;
36
+ type: "window_function";
37
+ windowFunction: import("../../../..").WindowFunctionType;
38
+ fieldId: string | null;
39
+ orderBy: {
40
+ fieldId: string;
41
+ order: "asc" | "desc" | null;
42
+ }[] | null;
43
+ partitionBy: string[] | null;
44
+ frame: {
45
+ frameType: "range" | "rows";
46
+ start: {
47
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
48
+ offset: number | null;
49
+ } | null;
50
+ end: {
51
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
52
+ offset: number | null;
53
+ };
54
+ } | null;
42
55
  } | {
43
56
  name: string;
44
57
  displayName: string;
@@ -49,7 +62,7 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
49
62
  } | {
50
63
  name: string;
51
64
  displayName: string;
52
- type: "percent_of_previous_value";
65
+ type: "percent_change_from_previous";
53
66
  fieldId: string;
54
67
  orderBy: {
55
68
  fieldId: string;
@@ -59,8 +72,12 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
59
72
  } | {
60
73
  name: string;
61
74
  displayName: string;
62
- type: "percent_of_column_total";
75
+ type: "percent_of_previous_value";
63
76
  fieldId: string;
77
+ orderBy: {
78
+ fieldId: string;
79
+ order: "asc" | "desc" | null;
80
+ }[];
64
81
  partitionBy: string[] | null;
65
82
  } | {
66
83
  name: string;
@@ -70,25 +87,8 @@ export declare const getWebAiChartConfig: ({ vizConfig, metricQuery, maxQueryLim
70
87
  } | {
71
88
  name: string;
72
89
  displayName: string;
73
- type: "window_function";
74
- windowFunction: import("../../../..").WindowFunctionType;
75
- fieldId: string | null;
76
- orderBy: {
77
- fieldId: string;
78
- order: "asc" | "desc" | null;
79
- }[] | null;
80
- partitionBy: string[] | null;
81
- frame: {
82
- frameType: "range" | "rows";
83
- start: {
84
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
85
- offset: number | null;
86
- } | null;
87
- end: {
88
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
89
- offset: number | null;
90
- };
91
- } | null;
90
+ type: "running_total";
91
+ fieldId: string;
92
92
  })[] | null;
93
93
  filters: import("../../../..").Filters;
94
94
  };
@@ -6,4 +6,46 @@ export declare const baseOutputMetadataSchema: z.ZodObject<{
6
6
  }>;
7
7
  }, z.core.$strip>;
8
8
  export type BaseOutputMetadata = z.infer<typeof baseOutputMetadataSchema>;
9
+ export declare const toolErrorStructuredContentSchema: z.ZodObject<{
10
+ error: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export type ToolErrorStructuredContent = z.infer<typeof toolErrorStructuredContentSchema>;
13
+ declare const defaultContentStatuses: z.ZodEnum<{
14
+ success: "success";
15
+ }>;
16
+ declare const defaultErrorStatuses: z.ZodEnum<{
17
+ error: "error";
18
+ }>;
19
+ /**
20
+ * Output envelope of every agent tool. `result` is the text the model reads,
21
+ * `metadata` carries the status plus tool-specific diagnostics, and
22
+ * `structuredContent` is the same answer as typed JSON: the tool's own shape on
23
+ * success, `{ error }` on failure. It is required on every path so programs
24
+ * (code mode) never have to parse text.
25
+ */
26
+ export declare const structuredToolOutputSchema: <TMetadata extends z.ZodType, TStructuredContent extends z.ZodType, TContentStatuses extends z.ZodEnum<Record<string, string>> = typeof defaultContentStatuses, TErrorStatuses extends z.ZodEnum<Record<string, string>> = typeof defaultErrorStatuses>(schemas: {
27
+ metadata: TMetadata;
28
+ structuredContent: TStructuredContent;
29
+ contentStatuses?: TContentStatuses;
30
+ errorStatuses?: TErrorStatuses;
31
+ }) => z.ZodUnion<readonly [z.ZodObject<{
32
+ result: z.ZodString;
33
+ metadata: z.ZodIntersection<TMetadata, z.ZodObject<{
34
+ status: TContentStatuses | z.ZodEnum<{
35
+ success: "success";
36
+ }>;
37
+ }, z.core.$strip>>;
38
+ structuredContent: TStructuredContent;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ result: z.ZodString;
41
+ metadata: z.ZodIntersection<TMetadata, z.ZodObject<{
42
+ status: TErrorStatuses | z.ZodEnum<{
43
+ error: "error";
44
+ }>;
45
+ }, z.core.$strip>>;
46
+ structuredContent: z.ZodObject<{
47
+ error: z.ZodString;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>]>;
50
+ export {};
9
51
  //# sourceMappingURL=outputMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"outputMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/outputMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"outputMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/outputMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,gCAAgC;;iBAI3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC;AAEF,QAAA,MAAM,sBAAsB;;EAAsB,CAAC;AACnD,QAAA,MAAM,oBAAoB;;EAAoB,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACnC,SAAS,SAAS,CAAC,CAAC,OAAO,EAC3B,kBAAkB,SAAS,CAAC,CAAC,OAAO,EACpC,gBAAgB,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACtD,OAAO,sBAAsB,EACjC,cAAc,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACpD,OAAO,oBAAoB,WACxB;IACP,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,aAAa,CAAC,EAAE,cAAc,CAAC;CAClC;;;;;;;;;;;;;;;;;;mBA4BA,CAAC"}
@@ -1,8 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.baseOutputMetadataSchema = void 0;
3
+ exports.structuredToolOutputSchema = exports.toolErrorStructuredContentSchema = exports.baseOutputMetadataSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.baseOutputMetadataSchema = zod_1.z.object({
6
6
  status: zod_1.z.enum(['success', 'error']),
7
7
  });
8
+ exports.toolErrorStructuredContentSchema = zod_1.z.object({
9
+ error: zod_1.z
10
+ .string()
11
+ .describe('Why the tool call failed; the same message as `result`.'),
12
+ });
13
+ const defaultContentStatuses = zod_1.z.enum(['success']);
14
+ const defaultErrorStatuses = zod_1.z.enum(['error']);
15
+ /**
16
+ * Output envelope of every agent tool. `result` is the text the model reads,
17
+ * `metadata` carries the status plus tool-specific diagnostics, and
18
+ * `structuredContent` is the same answer as typed JSON: the tool's own shape on
19
+ * success, `{ error }` on failure. It is required on every path so programs
20
+ * (code mode) never have to parse text.
21
+ */
22
+ const structuredToolOutputSchema = (schemas) => {
23
+ const contentStatuses = schemas.contentStatuses ?? defaultContentStatuses;
24
+ const errorStatuses = schemas.errorStatuses ?? defaultErrorStatuses;
25
+ const errors = new Set(errorStatuses.options);
26
+ if (contentStatuses.options.some((status) => errors.has(status))) {
27
+ throw new Error('Tool output content and error statuses must be disjoint');
28
+ }
29
+ return zod_1.z.union([
30
+ zod_1.z.object({
31
+ result: zod_1.z.string(),
32
+ metadata: zod_1.z.intersection(schemas.metadata, zod_1.z.object({ status: contentStatuses })),
33
+ structuredContent: schemas.structuredContent,
34
+ }),
35
+ zod_1.z.object({
36
+ result: zod_1.z.string(),
37
+ metadata: zod_1.z.intersection(schemas.metadata, zod_1.z.object({ status: errorStatuses })),
38
+ structuredContent: exports.toolErrorStructuredContentSchema,
39
+ }),
40
+ ]);
41
+ };
42
+ exports.structuredToolOutputSchema = structuredToolOutputSchema;
8
43
  //# sourceMappingURL=outputMetadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"outputMetadata.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/outputMetadata.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CACvC,CAAC,CAAC"}
1
+ {"version":3,"file":"outputMetadata.js","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/outputMetadata.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CACvC,CAAC,CAAC;AAIU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,CAAC,yDAAyD,CAAC;CAC3E,CAAC,CAAC;AAMH,MAAM,sB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
@@ -1,18 +1,112 @@
1
1
  import { z } from 'zod';
2
+ import { DBFieldTypes } from '../../../../types/api';
3
+ import { FieldImpactSeverity } from '../../../../types/fieldImpact';
2
4
  export declare const TOOL_ANALYZE_FIELD_IMPACT_DESCRIPTION = "Tool: analyzeFieldImpact\n\nPurpose:\nCompute the EXACT impact of changing or removing a single semantic-layer field (a metric or dimension) BEFORE the change is made. Use this whenever the user is about to remove, rename, deduplicate or otherwise alter a field and asks \"what uses this?\", \"what will this break?\", or \"what's the impact?\".\n\nThis is a deterministic lookup over saved content \u2014 NOT a fuzzy search. Prefer it over findContent/searchSemanticLayer when you already know the exact field id and need a reliable blast radius. It returns:\n- the saved charts that directly reference the field\n- the dashboards that embed those charts\n- dashboards whose filters target the field\n- other metrics built on this metric (metric-on-metric dependencies that break with no chart between them)\n- scheduled deliveries / alerts on the affected charts or dashboards\n- a severity: \"breaking\" if anything references the field, otherwise \"safe\"\n\nParameters:\n- fieldId: The exact field id to analyze, formatted as \"<table>_<fieldName>\" (e.g. \"orders_total_revenue\"). This is the id used in chart definitions, not the human label. Use findFields / searchSemanticLayer first if you only have a label and need the id.\n\nOutput:\n- A structured impact report with counts plus the named charts, dashboards, dependent metrics and scheduled deliveries.\n\nImportant:\nThis tool reports field REFERENCES, not field VALUES. It cannot detect silent value-drift \u2014 a field whose id stays the same but whose underlying SQL/aggregation changes (so numbers move without breaking anything), nor whether a value-affecting change preserves the numbers it claims to (merging onto another field, splitting a metric into parts, replacing or refactoring a definition). A \"safe\" reference result does NOT prove a change is value-correct. When a change rests on a value claim \u2014 fields are equivalent, a split reconstructs the original, a refactor leaves results unchanged \u2014 prove it separately before calling the change safe: by construction (the same aggregation/column/model, a uniqueness guarantee such as a row_number() = 1 dedup or a primary key, or a true partition) or by data (run the relevant fields at a total grain and across a time dimension and confirm the expected relationship). Surface any divergence instead of asserting safety.\n";
3
5
  export declare const toolAnalyzeFieldImpactArgsSchema: z.ZodObject<{
4
6
  fieldId: z.ZodString;
5
7
  }, z.core.$strip>;
6
- export declare const toolAnalyzeFieldImpactOutputSchema: z.ZodObject<{
8
+ export declare const toolAnalyzeFieldImpactStructuredContentSchema: z.ZodObject<{
9
+ fieldId: z.ZodString;
10
+ fieldType: z.ZodNullable<z.ZodEnum<typeof DBFieldTypes>>;
11
+ severity: z.ZodEnum<typeof FieldImpactSeverity>;
12
+ summary: z.ZodObject<{
13
+ charts: z.ZodNumber;
14
+ dashboards: z.ZodNumber;
15
+ dashboardFilterTargets: z.ZodNumber;
16
+ metricTreeDependents: z.ZodNumber;
17
+ scheduledDeliveries: z.ZodNumber;
18
+ }, z.core.$strip>;
19
+ charts: z.ZodArray<z.ZodObject<{
20
+ uuid: z.ZodString;
21
+ name: z.ZodString;
22
+ spaceName: z.ZodString;
23
+ dashboardName: z.ZodNullable<z.ZodString>;
24
+ viewsCount: z.ZodNumber;
25
+ }, z.core.$strip>>;
26
+ dashboards: z.ZodArray<z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ name: z.ZodString;
29
+ viaChartName: z.ZodString;
30
+ }, z.core.$strip>>;
31
+ dashboardFilterTargets: z.ZodArray<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ name: z.ZodString;
34
+ }, z.core.$strip>>;
35
+ metricTreeDependents: z.ZodArray<z.ZodObject<{
36
+ fieldId: z.ZodString;
37
+ }, z.core.$strip>>;
38
+ scheduledDeliveries: z.ZodArray<z.ZodObject<{
39
+ name: z.ZodString;
40
+ savedChartUuid: z.ZodNullable<z.ZodString>;
41
+ dashboardUuid: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>;
44
+ export declare const toolAnalyzeFieldImpactOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
7
45
  result: z.ZodString;
8
- metadata: z.ZodObject<{
46
+ metadata: z.ZodIntersection<z.ZodObject<{
9
47
  status: z.ZodEnum<{
10
48
  error: "error";
11
49
  success: "success";
12
50
  }>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ status: z.ZodEnum<{
53
+ success: "success";
54
+ }>;
55
+ }, z.core.$strip>>;
56
+ structuredContent: z.ZodObject<{
57
+ fieldId: z.ZodString;
58
+ fieldType: z.ZodNullable<z.ZodEnum<typeof DBFieldTypes>>;
59
+ severity: z.ZodEnum<typeof FieldImpactSeverity>;
60
+ summary: z.ZodObject<{
61
+ charts: z.ZodNumber;
62
+ dashboards: z.ZodNumber;
63
+ dashboardFilterTargets: z.ZodNumber;
64
+ metricTreeDependents: z.ZodNumber;
65
+ scheduledDeliveries: z.ZodNumber;
66
+ }, z.core.$strip>;
67
+ charts: z.ZodArray<z.ZodObject<{
68
+ uuid: z.ZodString;
69
+ name: z.ZodString;
70
+ spaceName: z.ZodString;
71
+ dashboardName: z.ZodNullable<z.ZodString>;
72
+ viewsCount: z.ZodNumber;
73
+ }, z.core.$strip>>;
74
+ dashboards: z.ZodArray<z.ZodObject<{
75
+ uuid: z.ZodString;
76
+ name: z.ZodString;
77
+ viaChartName: z.ZodString;
78
+ }, z.core.$strip>>;
79
+ dashboardFilterTargets: z.ZodArray<z.ZodObject<{
80
+ uuid: z.ZodString;
81
+ name: z.ZodString;
82
+ }, z.core.$strip>>;
83
+ metricTreeDependents: z.ZodArray<z.ZodObject<{
84
+ fieldId: z.ZodString;
85
+ }, z.core.$strip>>;
86
+ scheduledDeliveries: z.ZodArray<z.ZodObject<{
87
+ name: z.ZodString;
88
+ savedChartUuid: z.ZodNullable<z.ZodString>;
89
+ dashboardUuid: z.ZodNullable<z.ZodString>;
90
+ }, z.core.$strip>>;
13
91
  }, z.core.$strip>;
14
- }, z.core.$strip>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ result: z.ZodString;
94
+ metadata: z.ZodIntersection<z.ZodObject<{
95
+ status: z.ZodEnum<{
96
+ error: "error";
97
+ success: "success";
98
+ }>;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ status: z.ZodEnum<{
101
+ error: "error";
102
+ }>;
103
+ }, z.core.$strip>>;
104
+ structuredContent: z.ZodObject<{
105
+ error: z.ZodString;
106
+ }, z.core.$strip>;
107
+ }, z.core.$strip>]>;
15
108
  export type ToolAnalyzeFieldImpactArgs = z.infer<typeof toolAnalyzeFieldImpactArgsSchema>;
16
109
  export type ToolAnalyzeFieldImpactArgsTransformed = ToolAnalyzeFieldImpactArgs;
110
+ export type ToolAnalyzeFieldImpactStructuredContent = z.infer<typeof toolAnalyzeFieldImpactStructuredContentSchema>;
17
111
  export type ToolAnalyzeFieldImpactOutput = z.infer<typeof toolAnalyzeFieldImpactOutputSchema>;
18
112
  //# sourceMappingURL=toolAnalyzeFieldImpactArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolAnalyzeFieldImpactArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qCAAqC,+zEAqBjD,CAAC;AAEF,eAAO,MAAM,gCAAgC;;iBAQjC,CAAC;AAEb,eAAO,MAAM,kCAAkC;;;;;;;;iBAG7C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG,0BAA0B,CAAC;AAC/E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,kCAAkC,CAC5C,CAAC"}
1
+ {"version":3,"file":"toolAnalyzeFieldImpactArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAOpE,eAAO,MAAM,qCAAqC,+zEAqBjD,CAAC;AAEF,eAAO,MAAM,gCAAgC;;iBAQjC,CAAC;AAEb,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwExD,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAG7C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG,0BAA0B,CAAC;AAC/E,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,6CAA6C,CACvD,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,kCAAkC,CAC5C,CAAC"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toolAnalyzeFieldImpactOutputSchema = exports.toolAnalyzeFieldImpactArgsSchema = exports.TOOL_ANALYZE_FIELD_IMPACT_DESCRIPTION = void 0;
3
+ exports.toolAnalyzeFieldImpactOutputSchema = exports.toolAnalyzeFieldImpactStructuredContentSchema = exports.toolAnalyzeFieldImpactArgsSchema = exports.TOOL_ANALYZE_FIELD_IMPACT_DESCRIPTION = void 0;
4
4
  const zod_1 = require("zod");
5
+ const api_1 = require("../../../../types/api");
6
+ const fieldImpact_1 = require("../../../../types/fieldImpact");
5
7
  const outputMetadata_1 = require("../outputMetadata");
6
8
  const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
7
9
  exports.TOOL_ANALYZE_FIELD_IMPACT_DESCRIPTION = `Tool: analyzeFieldImpact
@@ -33,8 +35,63 @@ exports.toolAnalyzeFieldImpactArgsSchema = (0, toolSchemaBuilder_1.createToolSch
33
35
  .describe('The exact field id to analyze, formatted as "<table>_<fieldName>" (e.g. "orders_total_revenue"). This is the id used in chart definitions, not the human-readable label.'),
34
36
  })
35
37
  .build();
36
- exports.toolAnalyzeFieldImpactOutputSchema = zod_1.z.object({
37
- result: zod_1.z.string(),
38
+ exports.toolAnalyzeFieldImpactStructuredContentSchema = zod_1.z.object({
39
+ fieldId: zod_1.z
40
+ .string()
41
+ .describe('The analyzed field id ("<table>_<fieldName>").'),
42
+ fieldType: zod_1.z
43
+ .nativeEnum(api_1.DBFieldTypes)
44
+ .nullable()
45
+ .describe('Inferred from the content referencing the field; null when nothing references it.'),
46
+ severity: zod_1.z
47
+ .nativeEnum(fieldImpact_1.FieldImpactSeverity)
48
+ .describe('"breaking" when at least one chart, dependent metric or dashboard filter references the field; otherwise "safe". Does not detect silent value-drift.'),
49
+ summary: zod_1.z
50
+ .object({
51
+ charts: zod_1.z.number(),
52
+ dashboards: zod_1.z.number(),
53
+ dashboardFilterTargets: zod_1.z.number(),
54
+ metricTreeDependents: zod_1.z.number(),
55
+ scheduledDeliveries: zod_1.z.number(),
56
+ })
57
+ .describe('Count of each referencing item type.'),
58
+ charts: zod_1.z
59
+ .array(zod_1.z.object({
60
+ uuid: zod_1.z.string(),
61
+ name: zod_1.z.string(),
62
+ spaceName: zod_1.z.string(),
63
+ dashboardName: zod_1.z
64
+ .string()
65
+ .nullable()
66
+ .describe('Set when the chart lives inside a dashboard rather than a space.'),
67
+ viewsCount: zod_1.z.number(),
68
+ }))
69
+ .describe('Saved charts that directly reference the field.'),
70
+ dashboards: zod_1.z
71
+ .array(zod_1.z.object({
72
+ uuid: zod_1.z.string(),
73
+ name: zod_1.z.string(),
74
+ viaChartName: zod_1.z
75
+ .string()
76
+ .describe('Name of an impacted chart that places this dashboard in the blast radius.'),
77
+ }))
78
+ .describe('Dashboards that embed an impacted chart.'),
79
+ dashboardFilterTargets: zod_1.z
80
+ .array(zod_1.z.object({ uuid: zod_1.z.string(), name: zod_1.z.string() }))
81
+ .describe('Dashboards whose filters target the field.'),
82
+ metricTreeDependents: zod_1.z
83
+ .array(zod_1.z.object({ fieldId: zod_1.z.string() }))
84
+ .describe('Metrics built on this metric; they break with no chart between them.'),
85
+ scheduledDeliveries: zod_1.z
86
+ .array(zod_1.z.object({
87
+ name: zod_1.z.string(),
88
+ savedChartUuid: zod_1.z.string().nullable(),
89
+ dashboardUuid: zod_1.z.string().nullable(),
90
+ }))
91
+ .describe('Scheduled deliveries and alerts on the affected charts or dashboards.'),
92
+ });
93
+ exports.toolAnalyzeFieldImpactOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
38
94
  metadata: outputMetadata_1.baseOutputMetadataSchema,
95
+ structuredContent: exports.toolAnalyzeFieldImpactStructuredContentSchema,
39
96
  });
40
97
  //# sourceMappingURL=toolAnalyzeFieldImpactArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolAnalyzeFieldImpactArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA6D;AAC7D,4DAAwD;AAE3C,QAAA,qCAAqC,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBpD,CAAC;AAEW,QAAA,gCAAgC,GAAG,IAAA,oCAAgB,GAAE;KAC7D,MAAM,CAAC;IACJ,OAAO,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,0KAA0K,CAC7K;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAEA,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yCAAwB;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"toolAnalyzeFieldImpactArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolAnalyzeFieldImpactArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAAqD;AACrD,+DAAoE;AAC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,QAAQ,CAAC,iDAAiD,CAAC;IAChE,UAAU,EAAE,OAAC;SACR,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;QACL,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,YAAY,EAAE,OAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACL,2EAA2E,CAC9E;KACR,CAAC,CACL;SACA,QAAQ,CAAC,0CAA0C,CAAC;IACzD,sBAAsB,EAAE,OAAC;SACpB,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SACvD,QAAQ,CAAC,4CAA4C,CAAC;IAC3D,oBAAoB,EAAE,OAAC;SAClB,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SACxC,QAAQ,CACL,sEAAsE,CACzE;IACL,mBAAmB,EAAE,OAAC;SACjB,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;QACL,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC,CACL;SACA,QAAQ,CACL,uEAAuE,CAC1E;CACR,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,IAAA,2CAA0B,EAAC;IACzE,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,6CAA6C;CACnE,CAAC,CAAC"}
@@ -4,14 +4,42 @@ export declare const toolClosePullRequestArgsSchema: z.ZodObject<{
4
4
  prUrl: z.ZodString;
5
5
  }, z.core.$strip>;
6
6
  export type ToolClosePullRequestArgs = z.infer<typeof toolClosePullRequestArgsSchema>;
7
- export declare const toolClosePullRequestOutputSchema: z.ZodObject<{
7
+ export declare const toolClosePullRequestStructuredContentSchema: z.ZodObject<{
8
+ prUrl: z.ZodString;
9
+ state: z.ZodLiteral<"closed">;
10
+ }, z.core.$strip>;
11
+ export type ToolClosePullRequestStructuredContent = z.infer<typeof toolClosePullRequestStructuredContentSchema>;
12
+ export declare const toolClosePullRequestOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
8
13
  result: z.ZodString;
9
- metadata: z.ZodObject<{
14
+ metadata: z.ZodIntersection<z.ZodObject<{
10
15
  status: z.ZodEnum<{
11
16
  error: "error";
12
17
  success: "success";
13
18
  }>;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ status: z.ZodEnum<{
21
+ success: "success";
22
+ }>;
23
+ }, z.core.$strip>>;
24
+ structuredContent: z.ZodObject<{
25
+ prUrl: z.ZodString;
26
+ state: z.ZodLiteral<"closed">;
14
27
  }, z.core.$strip>;
15
- }, z.core.$strip>;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ result: z.ZodString;
30
+ metadata: z.ZodIntersection<z.ZodObject<{
31
+ status: z.ZodEnum<{
32
+ error: "error";
33
+ success: "success";
34
+ }>;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ status: z.ZodEnum<{
37
+ error: "error";
38
+ }>;
39
+ }, z.core.$strip>>;
40
+ structuredContent: z.ZodObject<{
41
+ error: z.ZodString;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>]>;
16
44
  export type ToolClosePullRequestOutput = z.infer<typeof toolClosePullRequestOutputSchema>;
17
45
  //# sourceMappingURL=toolClosePullRequestArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolClosePullRequestArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC,QAIrC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;iBAMzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;iBAG3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC"}
1
+ {"version":3,"file":"toolClosePullRequestArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mCAAmC,QAIrC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;iBAMzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;iBAKtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,2CAA2C,CACrD,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAG3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CAC1C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toolClosePullRequestOutputSchema = exports.toolClosePullRequestArgsSchema = exports.TOOL_CLOSE_PULL_REQUEST_DESCRIPTION = void 0;
3
+ exports.toolClosePullRequestOutputSchema = exports.toolClosePullRequestStructuredContentSchema = exports.toolClosePullRequestArgsSchema = exports.TOOL_CLOSE_PULL_REQUEST_DESCRIPTION = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const outputMetadata_1 = require("../outputMetadata");
6
6
  exports.TOOL_CLOSE_PULL_REQUEST_DESCRIPTION = [
@@ -13,8 +13,14 @@ exports.toolClosePullRequestArgsSchema = zod_1.z.object({
13
13
  .string()
14
14
  .describe('The full URL of the pull request to close, e.g. "https://github.com/acme/web-app/pull/42". Must be a pull request opened on this project\'s repository.'),
15
15
  });
16
- exports.toolClosePullRequestOutputSchema = zod_1.z.object({
17
- result: zod_1.z.string(),
16
+ exports.toolClosePullRequestStructuredContentSchema = zod_1.z.object({
17
+ prUrl: zod_1.z.string().describe('URL of the pull request that was closed.'),
18
+ state: zod_1.z
19
+ .literal('closed')
20
+ .describe('State of the pull request on the provider after the call.'),
21
+ });
22
+ exports.toolClosePullRequestOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
18
23
  metadata: outputMetadata_1.baseOutputMetadataSchema,
24
+ structuredContent: exports.toolClosePullRequestStructuredContentSchema,
19
25
  });
20
26
  //# sourceMappingURL=toolClosePullRequestArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolClosePullRequestArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA6D;AAEhD,QAAA,mCAAmC,GAAG;IAC/C,kGAAkG;IAClG,iMAAiM;IACjM,iTAAiT;CACpT,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEC,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,CACL,yJAAyJ,CAC5J;CACR,CAAC,CAAC;AAMU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yCAAwB;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"toolClosePullRequestArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolClosePullRequestArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAG2B;AAEd,QAAA,mCAAmC,GAAG;IAC/C,kGAAkG;IAClG,iMAAiM;IACjM,iTAAiT;CACpT,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEC,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,CACL,yJAAyJ,CAC5J;CACR,CAAC,CAAC;AAMU,QAAA,2CAA2C,GAAG,OAAC,CAAC,MAAM,CAAC;IAChE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IACtE,KAAK,EAAE,OAAC;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,QAAQ,CAAC,2DAA2D,CAAC;CAC7E,CAAC,CAAC;AAMU,QAAA,gCAAgC,GAAG,IAAA,2CAA0B,EAAC;IACvE,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,2CAA2C;CACjE,CAAC,CAAC"}
@@ -59,6 +59,33 @@ export declare const toolCreateContentArgsSchema: z.ZodObject<{
59
59
  }, z.core.$loose>]>;
60
60
  }, z.core.$strip>;
61
61
  export type ToolCreateContentArgs = z.infer<typeof toolCreateContentArgsSchema>;
62
+ export declare const toolCreateContentStructuredContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
+ href: z.ZodString;
64
+ uuid: z.ZodString;
65
+ slug: z.ZodString;
66
+ name: z.ZodString;
67
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
68
+ warnings: z.ZodArray<z.ZodString>;
69
+ type: z.ZodLiteral<"dashboard">;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ href: z.ZodString;
72
+ uuid: z.ZodString;
73
+ slug: z.ZodString;
74
+ name: z.ZodString;
75
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
76
+ warnings: z.ZodArray<z.ZodString>;
77
+ type: z.ZodLiteral<"chart">;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ href: z.ZodString;
80
+ uuid: z.ZodString;
81
+ slug: z.ZodString;
82
+ name: z.ZodString;
83
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
84
+ warnings: z.ZodArray<z.ZodString>;
85
+ type: z.ZodLiteral<"document">;
86
+ versionUuid: z.ZodString;
87
+ }, z.core.$strip>], "type">;
88
+ export type ToolCreateContentStructuredContent = z.infer<typeof toolCreateContentStructuredContentSchema>;
62
89
  export declare const toolCreateContentOutputSchema: z.ZodObject<{
63
90
  result: z.ZodString;
64
91
  metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -71,6 +98,34 @@ export declare const toolCreateContentOutputSchema: z.ZodObject<{
71
98
  href: z.ZodString;
72
99
  warnings: z.ZodArray<z.ZodString>;
73
100
  }, z.core.$strip>], "status">;
101
+ structuredContent: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
102
+ href: z.ZodString;
103
+ uuid: z.ZodString;
104
+ slug: z.ZodString;
105
+ name: z.ZodString;
106
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
107
+ warnings: z.ZodArray<z.ZodString>;
108
+ type: z.ZodLiteral<"dashboard">;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ href: z.ZodString;
111
+ uuid: z.ZodString;
112
+ slug: z.ZodString;
113
+ name: z.ZodString;
114
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
115
+ warnings: z.ZodArray<z.ZodString>;
116
+ type: z.ZodLiteral<"chart">;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ href: z.ZodString;
119
+ uuid: z.ZodString;
120
+ slug: z.ZodString;
121
+ name: z.ZodString;
122
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
123
+ warnings: z.ZodArray<z.ZodString>;
124
+ type: z.ZodLiteral<"document">;
125
+ versionUuid: z.ZodString;
126
+ }, z.core.$strip>], "type">, z.ZodObject<{
127
+ error: z.ZodString;
128
+ }, z.core.$strip>]>;
74
129
  }, z.core.$strip>;
75
130
  export type ToolCreateContentOutput = z.infer<typeof toolCreateContentOutputSchema>;
76
131
  //# sourceMappingURL=toolCreateContentArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolCreateContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,+BAA+B,4IACiG,CAAC;AA0B9I,eAAO,MAAM,gCAAgC;;;;;;;;iBAIa,CAAC;AAoB3D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAchF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;iBAGxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACvC,CAAC"}
1
+ {"version":3,"file":"toolCreateContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B,4IACiG,CAAC;AA0B9I,eAAO,MAAM,gCAAgC;;;;;;;;iBAIa,CAAC;AAoB3D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAiChF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;2BAepD,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,wCAAwC,CAClD,CAAC;AAIF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACvC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toolCreateContentOutputSchema = exports.toolCreateContentArgsSchema = exports.toolChartAsCodeMetricQuerySchema = exports.TOOL_CREATE_CONTENT_DESCRIPTION = void 0;
3
+ exports.toolCreateContentOutputSchema = exports.toolCreateContentStructuredContentSchema = exports.toolCreateContentArgsSchema = exports.toolChartAsCodeMetricQuerySchema = exports.TOOL_CREATE_CONTENT_DESCRIPTION = void 0;
4
4
  const zod_1 = require("zod");
5
+ const outputMetadata_1 = require("../outputMetadata");
5
6
  exports.TOOL_CREATE_CONTENT_DESCRIPTION = 'Create a new dashboard or chart, consult the skills for the required fields. Returns the created content with the final persisted slug.';
6
7
  const TOOL_CHART_AS_CODE_METRIC_QUERY_DESCRIPTION = 'Chart-as-code metricQuery object. Required fields: exploreName, dimensions, metrics, filters, sorts, limit, tableCalculations. Optional passthrough fields: additionalMetrics, customDimensions, metricOverrides, dimensionOverrides, timezone, pivotDimensions, metadata. Every dimension in dimensions must appear in exactly one of: layout.xField, layout.yField, or pivotConfig.columns.';
7
8
  const chartAsCodeMetricQueryShape = {
@@ -73,8 +74,39 @@ const toolCreateContentMetadataSchema = zod_1.z.discriminatedUnion('status', [
73
74
  warnings: zod_1.z.array(zod_1.z.string()),
74
75
  }),
75
76
  ]);
77
+ const createdContentShape = {
78
+ href: zod_1.z.string().describe('Canonical link to the created content.'),
79
+ uuid: zod_1.z.string().describe('UUID of the created content.'),
80
+ slug: zod_1.z
81
+ .string()
82
+ .describe('Final persisted slug; may differ from the requested slug when it was already taken.'),
83
+ name: zod_1.z.string(),
84
+ content: zod_1.z
85
+ .record(zod_1.z.string(), zod_1.z.unknown())
86
+ .describe('The persisted content as code, as shown in `result`.'),
87
+ warnings: zod_1.z
88
+ .array(zod_1.z.string())
89
+ .describe('Non-fatal problems with the created content, e.g. metricQuery dimensions the chart does not use.'),
90
+ };
91
+ exports.toolCreateContentStructuredContentSchema = zod_1.z.discriminatedUnion('type', [
92
+ zod_1.z.object({ type: zod_1.z.literal('dashboard'), ...createdContentShape }),
93
+ zod_1.z.object({ type: zod_1.z.literal('chart'), ...createdContentShape }),
94
+ zod_1.z.object({
95
+ type: zod_1.z.literal('document'),
96
+ ...createdContentShape,
97
+ versionUuid: zod_1.z
98
+ .string()
99
+ .describe('Latest Document version UUID, required for content edits.'),
100
+ }),
101
+ ]);
102
+ // Mirrors structuredToolOutputSchema, whose metadata parameter only accepts a
103
+ // z.object; consumers narrow on this discriminated-union metadata.
76
104
  exports.toolCreateContentOutputSchema = zod_1.z.object({
77
105
  result: zod_1.z.string(),
78
106
  metadata: toolCreateContentMetadataSchema,
107
+ structuredContent: zod_1.z.union([
108
+ exports.toolCreateContentStructuredContentSchema,
109
+ outputMetadata_1.toolErrorStructuredContentSchema,
110
+ ]),
79
111
  });
80
112
  //# sourceMappingURL=toolCreateContentArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolCreateContentArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateContentArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGX,QAAA,+BAA+B,GACxC,yIAAyI,CAAC;AAa9I,MAAM,2CAA2C,GAC7C,+XAA+X,CAAC;AAEpY,MAAM,2BAA2B,GAAG;IAChC,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,OAAO,E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